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

1393 lines
2.6 MiB

This file contains invisible Unicode characters!

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

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

(self.webpackChunk=self.webpackChunk||[]).push([[67],{40001:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});var zt=Kt(96663),ke=Kt(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Cn=Oe,Be=Kt(7657),vn=function(Nt,se){return ke.createElement(Be.Z,(0,zt.Z)({},Nt,{ref:se,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie},73331:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});var zt=Kt(96663),ke=Kt(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Cn=Oe,Be=Kt(7657),vn=function(Nt,se){return ke.createElement(Be.Z,(0,zt.Z)({},Nt,{ref:se,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie},15277:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});var zt=Kt(96663),ke=Kt(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Cn=Oe,Be=Kt(7657),vn=function(Nt,se){return ke.createElement(Be.Z,(0,zt.Z)({},Nt,{ref:se,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie},33853:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});var zt=Kt(96663),ke=Kt(59301),Oe={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"},Cn=Oe,Be=Kt(7657),vn=function(Nt,se){return ke.createElement(Be.Z,(0,zt.Z)({},Nt,{ref:se,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie},61485:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});var zt=Kt(96663),ke=Kt(59301),Oe={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Cn=Oe,Be=Kt(7657),vn=function(Nt,se){return ke.createElement(Be.Z,(0,zt.Z)({},Nt,{ref:se,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie},38819:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});var zt=Kt(96663),ke=Kt(59301),Oe={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"},Cn=Oe,Be=Kt(7657),vn=function(Nt,se){return ke.createElement(Be.Z,(0,zt.Z)({},Nt,{ref:se,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie},47472:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});var zt=Kt(96663),ke=Kt(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Cn=Oe,Be=Kt(7657),vn=function(Nt,se){return ke.createElement(Be.Z,(0,zt.Z)({},Nt,{ref:se,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie},37036:function(){"use strict"},88010:function(Fi,Ti){"use strict";Ti.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},76895:function(Fi,Ti){"use strict";Ti.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},74413:function(){"use strict";function Fi(Ut,et,nt,ht){nt===void 0&&(nt=0),ht===void 0&&(ht=1/0),this._name=Ut,this._defaultValue=et,this._minimum=nt,this._maximum=ht}Object.defineProperty(Fi.prototype,"name",{get:function(){return this._name},set:function(Ut){if(typeof Ut!="string"||Ut==="")throw new Error("Shape name must be a valid string.");this._name=Ut}}),Object.defineProperty(Fi.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ut){if(typeof Ut!="number"||isNaN(Ut))throw new Error("The default value must be a real number, not: "+Ut);this._defaultValue=Ut}}),Object.defineProperty(Fi.prototype,"minimum",{get:function(){return this._minimum},set:function(Ut){if(typeof Ut!="number"||isNaN(Ut))throw new Error("Minimum must be a real number, not: "+Ut);this._minimum=Ut}}),Object.defineProperty(Fi.prototype,"maximum",{get:function(){return this._maximum},set:function(Ut){if(typeof Ut!="number"||isNaN(Ut))throw new Error("Maximum must be a real number, not: "+Ut);this._maximum=Ut}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ut,et){var nt=go.Shape._FigureParameters[Ut];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Ut,et,nt){if(!(nt instanceof Fi))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValue<nt.minimum||nt.defaultValue>nt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var ht=go.Shape._FigureParameters[Ut];ht||(ht=[],go.Shape._FigureParameters[Ut]=ht),ht[et]=nt};var Ti=[];function Kt(Ut,et){var nt=Ti.pop();return nt===void 0?new go.Point(Ut,et):(nt.x=Ut,nt.y=et,nt)}function zt(){var Ut=Ti.pop();return Ut===void 0?new go.Point:Ut}function ke(Ut){Ti.push(Ut)}function Oe(Ut,et,nt,ht,at,ft,vt,Mt,Rt){Rt||(Rt=new go.Point);var Gt=Ut-nt,$t=at-vt,ae=NaN,ve=NaN;if(Gt===0)if($t===0)Ut===nt&&(ae=Ut,ve=et);else{var fe=(ft-Mt)/$t,Ye=ft-fe*at;ae=Ut,ve=fe*ae+Ye}else if($t===0){var De=(et-ht)/Gt,hn=et-De*Ut;ae=at,ve=De*ae+hn}else{var De=(et-ht)/Gt,fe=(ft-Mt)/$t,hn=et-De*Ut,Ye=ft-fe*at;ae=(Ye-hn)/(De-fe),ve=De*ae+hn}return Rt.x=ae,Rt.y=ve,Rt}function Cn(Ut,et,nt,ht,at,ft,vt,Mt,Rt,Gt,$t,ae,ve,fe){var Ye=1-Rt,De=Rt,hn=Ut*Ye+nt*De,Ue=et*Ye+ht*De,Pn=nt*Ye+at*De,qn=ht*Ye+ft*De,un=at*Ye+vt*De,fn=ft*Ye+Mt*De,mn=hn*Ye+Pn*De,pe=Ue*Ye+qn*De,Xt=Pn*Ye+un*De,Ve=qn*Ye+fn*De,Vn=mn*Ye+Xt*De,si=pe*Ye+Ve*De;Gt.x=hn,Gt.y=Ue,$t.x=mn,$t.y=pe,ae.x=Vn,ae.y=si,ve.x=Xt,ve.y=Ve,fe.x=un,fe.y=fn}var Be=new go.Spot(.156,.156),vn=new go.Spot(.844,.844),Ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Fi("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var at=ht*Ie,ft=new go.Geometry().add(new go.PathFigure(ht,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-ht,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-at,0,et,at)).add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)).add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,nt-at,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,ht,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,at,nt,0,nt-at)).add(new go.PathSegment(go.PathSegment.Line,0,ht)).add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,at,at,0).close()));return at>1&&(ft.spot1=new go.Spot(0,0,at,at),ft.spot2=new go.Spot(1,1,-at,-at)),ft}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ut,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=nt/2,ht.endX=et,ht.endY=nt/2,ht}),go.Shape.defineFigureGenerator("LineV",function(Ut,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et/2,ht.startY=0,ht.endX=et/2,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ut,et,nt){var ht=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ht*et,(1-ht)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ut,et,nt){var ht=et/2,at=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ht,ht,ht,ht).close()));return at.spot1=Be,at.spot2=vn,at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Line1",function(Ut,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Line2",function(Ut,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et,ht.startY=0,ht.endX=0,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Curve1",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Ie*et,0,et,(1-Ie)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,Ie*nt,(1-Ie)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,Ie*nt,Ie*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-Ie)*et,0,0,(1-Ie)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Fi("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)?ht=.1:ht<-1?ht=-1:ht>1&&(ht=1);var at=Math.abs(ht)*et;if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())),at<et/2&&ft.setSpots(at/et,0,(et-at)/et,1),ft}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Fi("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)?ht=10:ht<-et?ht=-et:ht>et&&(ht=et);var at=Math.abs(ht);if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())),at<et/2&&ft.setSpots(at/et,0,(et-at)/et,1),ft}}),go.Shape.setFigureParameter("Trapezoid1",0,new Fi("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)?ht=.2:ht<.5?ht=-.5:ht>.5&&(ht=.5);var at=Math.abs(ht)*et;if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())),at<et/2&&ft.setSpots(at/et,0,(et-at)/et,1),ft}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Fi("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)?ht=20:ht<-et?ht=-et/2:ht>et&&(ht=et/2);var at=Math.abs(ht);if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())),at<et/2&&ft.setSpots(at/et,0,(et-at)/et,1),ft}}),go.Shape.setFigureParameter("ManualOperation",0,new Fi("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)?ht=10:ht<-et?ht=-et/2:ht>et&&(ht=et/2);var at=Math.abs(ht);if(ht===0){var ft=new go.Geometry(go.Geometry.Rectangle);return ft.startX=0,ft.startY=0,ft.endX=et,ft.endY=nt,ft}else{var ft=new go.Geometry;return ht>0?ft.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-at,nt)).add(new go.PathSegment(go.PathSegment.Line,at,nt).close())):ft.add(new go.PathFigure(at,0).add(new go.PathSegment(go.PathSegment.Line,et-at,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),at<et/2&&ft.setSpots(at/et,0,(et-at)/et,1),ft}});var ge=[];function ye(){var Ut=ge.pop();return Ut===void 0?[]:Ut}function Nt(Ut){Ut.length=0,ge.push(Ut)}function se(Ut){for(var et=ye(),nt=.5,ht=.5,at=Math.PI*1.5,ft=0,vt=0;vt<Ut;vt++)ft=2*Math.PI/Ut*vt+at,et[vt]=new go.Point(ht+nt*Math.cos(ft),ht+nt*Math.sin(ft));return et.push(et[0]),et}function oe(Ut){var et=me(Ut),nt=ye();nt[0]=et[0];for(var ht=1,at=1;ht<et.length;ht+=2,at+=3)nt[at]=et[ht],nt[at+1]=et[ht],nt[at+2]=et[ht+1];return Nt(et),nt}function me(Ut){for(var et=se(Ut),nt=ye(),ht=Math.floor(et.length/2),at=et.length-1,ft=Ut%2===0?2:1,vt=0;vt<at;vt++){var Mt=et[vt],Rt=et[vt+1],Gt=et[(ht+vt-1)%at],$t=et[(ht+vt+ft)%at];nt[vt*2]=Mt,nt[vt*2+1]=Oe(Mt.x,Mt.y,Gt.x,Gt.y,Rt.x,Rt.y,$t.x,$t.y,new go.Point)}return nt[nt.length]=nt[0],Nt(et),nt}go.Shape.defineFigureGenerator("Pentagon",function(Ut,et,nt){var ht=se(5),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<5;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.2,.22),at.spot2=new go.Spot(.8,.9),at}),go.Shape.defineFigureGenerator("Hexagon",function(Ut,et,nt){var ht=se(6),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<6;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.07,.25),at.spot2=new go.Spot(.93,.75),at}),go.Shape.defineFigureGenerator("Heptagon",function(Ut,et,nt){var ht=se(7),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<7;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.2,.15),at.spot2=new go.Spot(.8,.85),at}),go.Shape.defineFigureGenerator("Octagon",function(Ut,et,nt){var ht=se(8),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<8;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.15,.15),at.spot2=new go.Spot(.85,.85),at}),go.Shape.defineFigureGenerator("Nonagon",function(Ut,et,nt){var ht=se(9),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<9;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.17,.13),at.spot2=new go.Spot(.82,.82),at}),go.Shape.defineFigureGenerator("Decagon",function(Ut,et,nt){var ht=se(10),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<10;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.16,.16),at.spot2=new go.Spot(.84,.84),at}),go.Shape.defineFigureGenerator("Dodecagon",function(Ut,et,nt){var ht=se(12),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<12;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.16,.16),at.spot2=new go.Spot(.84,.84),at}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ut,et,nt){var ht=me(5),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<10;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.266,.333),at.spot2=new go.Spot(.733,.733),at}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ut,et,nt){var ht=me(6),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<12;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.17,.25),at.spot2=new go.Spot(.83,.75),at}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ut,et,nt){var ht=me(7),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<14;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.222,.277),at.spot2=new go.Spot(.777,.666),at}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ut,et,nt){var ht=me(8),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<16;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.25,.25),at.spot2=new go.Spot(.75,.75),at}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ut,et,nt){var ht=me(9),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<18;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.222,.277),at.spot2=new go.Spot(.777,.666),at}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ut,et,nt){var ht=me(10),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<20;vt++)ft.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return ft.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),Nt(ht),at.spot1=new go.Spot(.281,.261),at.spot2=new go.Spot(.723,.748),at}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ut,et,nt){var ht=oe(5),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<ht.length;vt+=3)ft.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return ft.segments.last().close(),Nt(ht),at.spot1=new go.Spot(.222,.277),at.spot2=new go.Spot(.777,.777),at}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ut,et,nt){var ht=oe(6),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<ht.length;vt+=3)ft.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return ft.segments.last().close(),Nt(ht),at.spot1=new go.Spot(.17,.222),at.spot2=new go.Spot(.833,.777),at}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ut,et,nt){var ht=oe(7),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<ht.length;vt+=3)ft.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return ft.segments.last().close(),Nt(ht),at.spot1=new go.Spot(.222,.222),at.spot2=new go.Spot(.777,.777),at}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ut,et,nt){var ht=oe(8),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<ht.length;vt+=3)ft.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return ft.segments.last().close(),Nt(ht),at.spot1=new go.Spot(.222,.222),at.spot2=new go.Spot(.777,.777),at}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ut,et,nt){var ht=oe(9),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<ht.length;vt+=3)ft.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return ft.segments.last().close(),Nt(ht),at.spot1=new go.Spot(.222,.222),at.spot2=new go.Spot(.777,.777),at}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ut,et,nt){var ht=oe(10),at=new go.Geometry,ft=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);at.add(ft);for(var vt=1;vt<ht.length;vt+=3)ft.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return ft.segments.last().close(),Nt(ht),at.spot1=new go.Spot(.222,.222),at.spot2=new go.Spot(.777,.777),at}),go.Shape.setFigureParameter("FramedRectangle",0,new Fi("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Fi("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN,at=Ut?Ut.parameter2:NaN;isNaN(ht)&&(ht=8),isNaN(at)&&(at=8);var ft=new go.Geometry,vt=new go.PathFigure(0,0,!0);return ft.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht<et/2&&at<nt/2&&(vt.add(new go.PathSegment(go.PathSegment.Move,ht,at)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt-at)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,nt-at)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,at).close())),ft.setSpots(0,0,1,1,ht,at,-ht,-at),ft}),go.Shape.setFigureParameter("Ring",0,new Fi("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=8);var at=et/2,ft=new go.Geometry,vt=new go.PathFigure(et,et/2,!0);ft.add(vt),vt.add(new go.PathSegment(go.PathSegment.Arc,0,360,at,at,at,at).close());var Mt=Math.max(at-ht,0);return Mt>0&&(vt.add(new go.PathSegment(go.PathSegment.Move,et/2+Mt,et/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,at,at,Mt,Mt).close())),ft.spot1=Be,ft.spot2=vn,ft.defaultStretch=go.GraphObject.Uniform,ft}),go.Shape.defineFigureGenerator("Cloud",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ut,et,nt){var ht=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ht*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close())).setSpots(ht/2,ht/2,1-ht/2,1-ht/2)}),go.Shape.setFigureParameter("Pie",0,new Fi("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Fi("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN,at=Ut?Ut.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(at)&&(at=315);var ft=ht%360;ft<0&&(ft+=360);var vt=at%360,Mt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(Mt,Mt).add(new go.PathSegment(go.PathSegment.Arc,ft,vt,Mt,Mt,Mt,Mt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ut,et,nt){var ht=Ie/Math.SQRT2*.5,at=Math.SQRT2/2,ft=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,at*et,ft*nt,et,(1-ht)*nt,(at+ht)*et,(ft+ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Fi("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30);var at=Math.min(ht,et)/2,ft=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(ft-at,0,!0).add(new go.PathSegment(go.PathSegment.Line,ft+at,0)).add(new go.PathSegment(go.PathSegment.Line,ft+at,vt-at)).add(new go.PathSegment(go.PathSegment.Line,et,vt-at)).add(new go.PathSegment(go.PathSegment.Line,et,vt+at)).add(new go.PathSegment(go.PathSegment.Line,ft+at,vt+at)).add(new go.PathSegment(go.PathSegment.Line,ft+at,nt)).add(new go.PathSegment(go.PathSegment.Line,ft-at,nt)).add(new go.PathSegment(go.PathSegment.Line,ft-at,vt+at)).add(new go.PathSegment(go.PathSegment.Line,0,vt+at)).add(new go.PathSegment(go.PathSegment.Line,0,vt-at)).add(new go.PathSegment(go.PathSegment.Line,ft-at,vt-at).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Fi("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var at=Math.min(ht,et)/2,ft=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(ft-at,0,!0).add(new go.PathSegment(go.PathSegment.Line,ft+at,0)).add(new go.PathSegment(go.PathSegment.Line,ft+at,vt-at)).add(new go.PathSegment(go.PathSegment.Line,et,vt-at)).add(new go.PathSegment(go.PathSegment.Line,et,vt+at)).add(new go.PathSegment(go.PathSegment.Line,ft+at,vt+at)).add(new go.PathSegment(go.PathSegment.Line,ft+at,nt)).add(new go.PathSegment(go.PathSegment.Line,ft-at,nt)).add(new go.PathSegment(go.PathSegment.Line,ft-at,vt+at)).add(new go.PathSegment(go.PathSegment.Line,0,vt+at)).add(new go.PathSegment(go.PathSegment.Line,0,vt-at)).add(new go.PathSegment(go.PathSegment.Line,ft-at,vt-at).close()))}),go.Shape.setFigureParameter("ThickX",0,new Fi("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;if((isNaN(ht)||ht<0)&&(ht=30),et===0||nt===0){var at=new go.Geometry(go.Geometry.Rectangle);return at.startX=0,at.startY=0,at.endX=et,at.endY=nt,at}else{var ft=et/2,vt=nt/2,Mt=Math.atan2(nt,et),Rt=ht-Math.min(Math.cos(Mt)*ht/2,ft),Gt=ht-Math.min(Math.sin(Mt)*ht/2,vt),at=new go.Geometry,$t=new go.PathFigure(Rt,0,!0);return at.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,ft,.2*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,et-Rt,0)),$t.add(new go.PathSegment(go.PathSegment.Line,et,Gt)),$t.add(new go.PathSegment(go.PathSegment.Line,.8*et,vt)),$t.add(new go.PathSegment(go.PathSegment.Line,et,nt-Gt)),$t.add(new go.PathSegment(go.PathSegment.Line,et-Rt,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,ft,.8*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,Rt,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,nt-Gt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,Gt).close()),at}}),go.Shape.setFigureParameter("ThinX",0,new Fi("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var at=new go.Geometry,ft=new go.PathFigure(.1*et,0,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),at}),go.Shape.setFigureParameter("SquareIBeam",0,new Fi("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.2);var at=new go.Geometry,ft=new go.PathFigure(0,0,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,ht*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,(1-ht)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,(1-ht)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,ht*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close()),at}),go.Shape.setFigureParameter("RoundedIBeam",0,new Fi("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.5);var at=new go.Geometry,ft=new go.PathFigure(0,0,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-ht)*et,.25*nt,Math.abs(1-ht)*et,.75*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),at}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,Ie*et,0,et,(.5-Ie/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+Ie/2)*nt,Ie*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.4*et,.6*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var ft=.2,vt=.3,Mt=0,Rt=ft*Ie;return at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+ft+Mt)*nt,(.5-ft+vt)*et,(.5+Rt+Mt)*nt,(.5-Rt+vt)*et,(.5+ft+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ft+vt)*et,(.5+Mt)*nt,(.5+Rt+vt)*et,(.5+ft+Mt)*nt,(.5+ft+vt)*et,(.5+Rt+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-ft+Mt)*nt,(1-.5+ft+vt)*et,(.5-Rt+Mt)*nt,(.5+Rt+vt)*et,(.5-ft+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Rt+vt)*et,(.5-ft+Mt)*nt,(.5-ft+vt+.05)*et,(.5-Rt+Mt-.02)*nt)),ft=.2,vt=0,Mt=-.3,Rt=ft*Ie,at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ft+vt)*et,(.5+Mt)*nt,(.5+Rt+vt)*et,(.5+ft+Mt)*nt,(.5+ft+vt)*et,(.5+Rt+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-ft+Mt)*nt,(1-.5+ft+vt)*et,(.5-Rt+Mt)*nt,(.5+Rt+vt)*et,(.5-ft+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ft+vt)*et,(.5+Mt)*nt,(.5-Rt+vt)*et,(.5-ft+Mt)*nt,(.5-ft+vt)*et,(.5-Rt+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Rt+vt)*et,(.5+ft+Mt)*nt,(.5-ft+vt)*et,(.5+Rt+Mt)*nt,(.5-Rt+vt)*et,(.5+ft+Mt)*nt)),ft=.2,vt=-.3,Mt=0,Rt=ft*Ie,at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-ft+Mt)*nt,(1-.5+ft+vt-.05)*et,(.5-Rt+Mt-.02)*nt,(.5+Rt+vt)*et,(.5-ft+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ft+vt)*et,(.5+Mt)*nt,(.5-Rt+vt)*et,(.5-ft+Mt)*nt,(.5-ft+vt)*et,(.5-Rt+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+ft+Mt)*nt,(.5-ft+vt)*et,(.5+Rt+Mt)*nt,(.5-Rt+vt)*et,(.5+ft+Mt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Rt+vt)*et,(.5+ft+Mt)*nt,(.5+ft+vt)*et,(.5+Rt+Mt)*nt).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*.5,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),at.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),at.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ft=.1,vt=.5,Mt=.25;return at.add(new go.PathSegment(go.PathSegment.Move,(vt+ft)*et,Mt*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*vt,nt*Mt,ft*et,ft*et).close()),at=new go.PathFigure(et*.5,0,!1),ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),Mt=.75,at=new go.PathFigure((vt+ft)*et,Mt*nt,!0),ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*vt,nt*Mt,ft*et,ft*et).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Ut,et,nt){var ht=.8535533905932737,at=.5*et,ft=.5*nt;return new go.Geometry().add(new go.PathFigure(at,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,at,ft,at,ft)).add(new go.PathSegment(go.PathSegment.Line,at,nt)).add(new go.PathSegment(go.PathSegment.Move,at,ft)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,at,ft)).add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=.5,vt=.5,Mt=.5,Rt=new go.PathFigure(vt*et,(Mt-ft)*nt);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Mt*nt,(vt-at)*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+ft)*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Mt*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-ft)*nt,(vt+ft)*et,(Mt-at)*nt,(vt+at)*et,(Mt-ft)*nt)),ft=.4,at=Ie*.4;var Gt=zt(),$t=zt(),ae=zt(),ve=zt();Cn(vt,Mt-ft,vt+at,Mt-ft,vt+ft,Mt-at,vt+ft,Mt,.42,Gt,$t,ae,ve,ve);var fe=zt(),Ye=zt(),De=zt();Cn(vt,Mt-ft,vt+at,Mt-ft,vt+ft,Mt-at,vt+ft,Mt,.58,ve,ve,De,fe,Ye);var hn=zt(),Ue=zt(),Pn=zt();Cn(vt,Mt+ft,vt-at,Mt+ft,vt-ft,Mt+at,vt-ft,Mt,.42,hn,Ue,Pn,ve,ve);var qn=zt(),un=zt(),fn=zt();return Cn(vt,Mt+ft,vt-at,Mt+ft,vt-ft,Mt+at,vt-ft,Mt,.58,ve,ve,fn,qn,un),Rt.add(new go.PathSegment(go.PathSegment.Move,fn.x*et,fn.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Mt*nt,qn.x*et,qn.y*nt,un.x*et,un.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*et,ae.y*nt,Gt.x*et,Gt.y*nt,$t.x*et,$t.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,fn.x*et,fn.y*nt).close()),Rt.add(new go.PathSegment(go.PathSegment.Move,Pn.x*et,Pn.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,De.x*et,De.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Mt*nt,fe.x*et,fe.y*nt,Ye.x*et,Ye.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Pn.x*et,Pn.y*nt,hn.x*et,hn.y*nt,Ue.x*et,Ue.y*nt).close()),ke(Gt),ke($t),ke(ae),ke(ve),ke(fe),ke(Ye),ke(De),ke(hn),ke(Ue),ke(Pn),ke(qn),ke(un),ke(fn),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Fi("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30),ht>et&&(ht=et);var at=(et-ht)/2,ft=at+ht;return new go.Geometry().add(new go.PathFigure(ft,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,at,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.4,ft=.4,vt=.5,Mt=.5,Rt=zt(),Gt=zt(),$t=zt(),ae=zt(),ve=new go.PathFigure((vt-ft)*et,Mt*nt,!1);ht.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt)),Cn(vt,Mt-ft,vt+at,Mt-ft,vt+ft,Mt-at,vt+ft,Mt,.44,$t,ae,Gt,Rt,Rt),ve.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*et,Gt.y*nt,$t.x*et,$t.y*nt,ae.x*et,ae.y*nt));var fe=Kt(Gt.x,Gt.y);Cn(vt,Mt-ft,vt+at,Mt-ft,vt+ft,Mt-at,vt+ft,Mt,.56,Rt,Rt,Gt,$t,ae);var Ye=Kt(Gt.x,Gt.y);ve.add(new go.PathSegment(go.PathSegment.Line,(fe.x*.1+.95*.9)*et,fe.y*.1*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*et,fe.y*.1*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),ve.add(new go.PathSegment(go.PathSegment.Line,et,0)),ve.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,(Ye.x*.1+.9)*et,.15*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,(Ye.x*.1+.9)*et,(Ye.y*.1+.05*.9)*nt)),ve.add(new go.PathSegment(go.PathSegment.Line,Ye.x*et,Ye.y*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Mt*nt,$t.x*et,$t.y*nt,ae.x*et,ae.y*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Mt*nt,(vt-at)*et,(Mt+ft)*nt,(vt-ft)*et,(Mt+at)*nt)),ft=.35,at=Ie*.35;var De=new go.PathFigure(vt*et,(Mt-ft)*nt,!1);ht.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Mt*nt,(vt-at)*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt)),De.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+ft)*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt)),De.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Mt*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),De.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-ft)*nt,(vt+ft)*et,(Mt-at)*nt,(vt+at)*et,(Mt-ft)*nt));var hn=new go.PathFigure((vt-ft)*et,Mt*nt,!1);return ht.add(hn),ke(Rt),ke(Gt),ke($t),ke(ae),ke(fe),ke(Ye),ht.spot1=new go.Spot(.202,.257),ht.spot2=new go.Spot(.792,.739),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("GenderFemale",function(Ut,et,nt){var ht=new go.Geometry,at=.375,ft=0,vt=-.125,Mt=at*Ie,Rt=new go.PathFigure((.525+ft)*et,(.5+at+vt)*nt,!1);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ft)*et,(.5+vt)*nt,(.5+Mt+ft)*et,(.5+at+vt)*nt,(.5+at+ft)*et,(.5+Mt+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ft)*et,(.5-at+vt)*nt,(1-.5+at+ft)*et,(.5-Mt+vt)*nt,(.5+Mt+ft)*et,(.5-at+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+vt)*nt,(.5-Mt+ft)*et,(.5-at+vt)*nt,(.5-at+ft)*et,(.5-Mt+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ft)*et,(.5+at+vt)*nt,(.5-at+ft)*et,(.5+Mt+vt)*nt,(.5-Mt+ft)*et,(.5+at+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),at=.325,ft=0,vt=-.125,Mt=at*Ie;var Rt=new go.PathFigure((1-.5+at+ft)*et,(.5+vt)*nt,!1);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ft)*et,(.5+at+vt)*nt,(.5+at+ft)*et,(.5+Mt+vt)*nt,(.5+Mt+ft)*et,(.5+at+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+vt)*nt,(.5-Mt+ft)*et,(.5+at+vt)*nt,(.5-at+ft)*et,(.5+Mt+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ft)*et,(.5-at+vt)*nt,(.5-at+ft)*et,(.5-Mt+vt)*nt,(.5-Mt+ft)*et,(.5-at+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ft)*et,(.5+vt)*nt,(.5+Mt+ft)*et,(.5-at+vt)*nt,(1-.5+at+ft)*et,(.5-Mt+vt)*nt));var Rt=new go.PathFigure((.525+ft)*et,(.5+at+vt)*nt,!1);return ht.add(Rt),ht.spot1=new go.Spot(.232,.136),ht.spot2=new go.Spot(.682,.611),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicImplies",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ut,et,nt){var ht=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicTruth",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ut,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ut,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Fi("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Fi("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=Ut?Ut.parameter2:NaN;isNaN(at)&&(at=.3);var ft=(1-ht)*et,vt=(.5-at/2)*nt,Mt=(.5+at/2)*nt,Rt=new go.Geometry,Gt=new go.PathFigure(0,vt,!0);Rt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,ft,vt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ft,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ft,nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ft,Mt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,Mt).close()),Rt.spot1=new go.Spot(0,vt/nt);var $t=Oe(0,Mt/nt,1,Mt/nt,ft/et,1,1,.5,zt());return Rt.spot2=new go.Spot($t.x,$t.y),ke($t),Rt}),go.Shape.setFigureParameter("Arrow2",0,new Fi("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Fi("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=30),ht>et&&(ht=et);var at=Ut?Ut.parameter2:NaN;isNaN(at)&&(at=30),at=Math.min(at,nt/2);var ft=et-ht,vt=(nt-at)/2,Mt=vt+at,Rt=new go.Geometry,Gt=new go.PathFigure(0,vt,!0);Rt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,ft,vt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ft,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ft,nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ft,Mt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,Mt).close()),Rt.spot1=new go.Spot(0,vt/nt);var $t=Oe(0,Mt/nt,1,Mt/nt,ft/et,1,1,.5,zt());return Rt.spot2=new go.Spot($t.x,$t.y),ke($t),Rt}),go.Shape.defineFigureGenerator("Chevron",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),ht}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Fi("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,vt=new go.Geometry,Mt=new go.PathFigure(et,.5*nt,!0);vt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),Mt.add(new go.PathSegment(go.PathSegment.Line,.3*et,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Rt=Oe(0,.5,.3,0,0,at/nt,.1,at/nt,zt());return vt.spot1=new go.Spot(Rt.x,Rt.y),Rt=Oe(.7,1,1,.5,0,ft/nt,1,ft/nt,Rt),vt.spot2=new go.Spot(Rt.x,Rt.y),ke(Rt),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Fi("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Fi("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=40);var at=Ut?Ut.parameter2:NaN;isNaN(at)&&(at=100);var ft=(nt-ht)/2,vt=ft+ht,Mt=(nt-at)/2,Rt=Mt+at;(ht>nt||at>nt)&&(at>ht?(ht=ht*nt/at,ft=(nt-ht)/2,vt=ft+ht,Mt=0,Rt=nt):(ft=0,vt=nt,Mt=0,Rt=nt));var Gt=new go.Geometry,$t=new go.PathFigure(et,.5*nt,!0);Gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.7*et,Rt)),$t.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),$t.add(new go.PathSegment(go.PathSegment.Line,.3*et,vt)),$t.add(new go.PathSegment(go.PathSegment.Line,.3*et,Rt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.3*et,Mt)),$t.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),$t.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),$t.add(new go.PathSegment(go.PathSegment.Line,.7*et,Mt).close());var ae=Oe(0,.5,.3,Mt/nt,0,ft/nt,1,ft/nt,zt());return Gt.spot1=new go.Spot(ae.x,ae.y),ae=Oe(.7,Rt/nt,1,.5,0,vt/nt,1,vt/nt,ae),Gt.spot2=new go.Spot(ae.x,ae.y),ke(ae),Gt}),go.Shape.setFigureParameter("IBeamArrow",0,new Fi("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,vt=new go.Geometry,Mt=new go.PathFigure(et,.5*nt,!0);vt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(0,at/nt);var Rt=Oe(.7,1,1,.5,0,ft/nt,1,ft/nt,zt());return vt.spot2=new go.Spot(Rt.x,Rt.y),ke(Rt),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Fi("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Fi("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=40);var at=Ut?Ut.parameter2:NaN;isNaN(at)&&(at=100);var ft=(nt-ht)/2,vt=ft+ht,Mt=(nt-at)/2,Rt=Mt+at;(ht>nt||at>nt)&&(at>ht?(ht=ht*nt/at,ft=(nt-ht)/2,vt=ft+ht,Mt=0,Rt=nt):(ft=0,vt=nt,Mt=0,Rt=nt));var Gt=new go.Geometry,$t=new go.PathFigure(et,.5*nt,!0);Gt.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.7*et,Rt)),$t.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,Rt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,Rt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,Mt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,Mt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),$t.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),$t.add(new go.PathSegment(go.PathSegment.Line,.7*et,Mt).close()),Gt.spot1=new go.Spot(0,ft/nt);var ae=Oe(.7,Rt/nt,1,.5,0,vt/nt,1,vt/nt,zt());return Gt.spot2=new go.Spot(ae.x,ae.y),ke(ae),Gt}),go.Shape.setFigureParameter("Pointer",0,new Fi("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.1);var at=new go.Geometry,ft=new go.PathFigure(et,.5*nt,!0);at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,ht*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),at.spot1=new go.Spot(ht,.35);var vt=Oe(.2,.65,1,.65,0,1,1,.5,zt());return at.spot2=new go.Spot(vt.x,vt.y),ke(vt),at}),go.Shape.setFigureParameter("RoundedPointer",0,new Fi("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=new go.Geometry,ft=new go.PathFigure(et,.5*nt,!0);at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),at.spot1=new go.Spot(ht,.35);var vt=Oe(0,.65,1,.65,0,1,1,.5,zt());return at.spot2=new go.Spot(vt.x,vt.y),ke(vt),at}),go.Shape.setFigureParameter("SplitEndArrow",0,new Fi("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.4);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,vt=new go.Geometry,Mt=new go.PathFigure(et,.5*nt,!0);vt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,.3);var Rt=Oe(.7,1,1,.5,0,ft/nt,1,ft/nt,zt());return vt.spot2=new go.Spot(Rt.x,Rt.y),ke(Rt),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Fi("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=50);var at=(nt-ht)/2,ft=at+ht;ht>nt&&(at=0,ft=nt);var vt=new go.Geometry,Mt=new go.PathFigure(et,.5*nt,!0);vt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,at/nt);var Rt=Oe(.7,1,1,.5,0,ft/nt,1,ft/nt,zt());return vt.spot2=new go.Spot(Rt.x,Rt.y),ke(Rt),vt}),go.Shape.setFigureParameter("SquareArrow",0,new Fi("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.7);var at=new go.Geometry,ft=new go.PathFigure(et,.5*nt,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),at.spot1=go.Spot.TopLeft,at.spot2=new go.Spot(ht,1),at}),go.Shape.defineFigureGenerator("Cone1",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=Ie*.1,vt=new go.PathFigure(0,.9*nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+ft)*nt,(.5+at)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-at)*et,nt,0,(.9+ft)*nt).close()),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.97),ht}),go.Shape.defineFigureGenerator("Cone2",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.9*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var ft=new go.PathFigure(0,.9*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.82),ht}),go.Shape.defineFigureGenerator("Cube1",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var ft=new go.PathFigure(.5*et,nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.5,.85),ht}),go.Shape.defineFigureGenerator("Cube2",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.3*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ft=new go.PathFigure(0,.3*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.7,1),ht}),go.Shape.defineFigureGenerator("Cylinder1",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var at=new go.Geometry,ft=Ie*.5,vt=new go.PathFigure(0,ht,!0);at.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ie*ht,(.5-ft)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ht,(.5+ft)*et,0,1*et,Ie*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-Ie*ht,(.5+ft)*et,1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-ft)*et,1*nt,0,nt-Ie*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var Mt=new go.PathFigure(et,ht,!1);return at.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ht,1*et,2*ht-Ie*ht,(.5+ft)*et,2*ht)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-ft)*et,2*ht,0,2*ht-Ie*ht)),at.spot1=new go.Spot(0,0,0,2*ht),at.spot2=new go.Spot(1,1),at}),go.Shape.defineFigureGenerator("Cylinder2",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var at=new go.Geometry,ft=Ie*.5,vt=new go.PathFigure(0,nt-ht,!0);at.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ie*ht,(.5-ft)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,(.5+ft)*et,0,et,Ie*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-Ie*ht,(.5+ft)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-ft)*et,nt,0,nt-Ie*ht));var Mt=new go.PathFigure(0,nt-ht,!1);return at.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ht,0,nt-ht-Ie*ht,(.5-ft)*et,nt-2*ht)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ht,(.5+ft)*et,nt-2*ht,et,nt-ht-Ie*ht)),at.spot1=new go.Spot(0,0),at.spot2=new go.Spot(1,1,0,-2*ht),at}),go.Shape.defineFigureGenerator("Cylinder3",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var at=new go.Geometry,ft=Ie*.5,vt=new go.PathFigure(ht,0,!0);at.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Ie*ht,0,et,(.5-ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+ft)*nt,et-Ie*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Ie*ht,nt,0,(.5+ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-ft)*nt,Ie*ht,0));var Mt=new go.PathFigure(ht,0,!1);return at.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*nt,ht+Ie*ht,0,2*ht,(.5-ft)*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,nt,2*ht,(.5+ft)*nt,ht+Ie*ht,nt)),at.spot1=new go.Spot(0,0,2*ht,0),at.spot2=new go.Spot(1,1),at}),go.Shape.defineFigureGenerator("Cylinder4",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var at=new go.Geometry,ft=Ie*.5,vt=new go.PathFigure(et-ht,0,!0);at.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Ie*ht,0,et,(.5-ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+ft)*nt,et-Ie*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Ie*ht,nt,0,(.5+ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-ft)*nt,Ie*ht,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0));var Mt=new go.PathFigure(et-ht,0,!1);return at.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ht,.5*nt,et-ht-Ie*ht,0,et-2*ht,(.5-ft)*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et-2*ht,(.5+ft)*nt,et-ht-Ie*ht,nt)),at.spot1=new go.Spot(0,0),at.spot2=new go.Spot(1,1,-2*ht,0),at}),go.Shape.defineFigureGenerator("Prism1",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.25*et,.25*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var ft=new go.PathFigure(.25*et,.25*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.408,.172),ht.spot2=new go.Spot(.833,.662),ht}),go.Shape.defineFigureGenerator("Prism2",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.25*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var ft=new go.PathFigure(0,nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("Pyramid1",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var ft=new go.PathFigure(.5*et,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Pyramid2",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var ft=new go.PathFigure(.5*et,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Actor",function(Ut,et,nt){var ht=new go.Geometry,at=.2,ft=.1,vt=Ie*at,Mt=Ie*ft,Rt=.5,Gt=.1,$t=new go.PathFigure(Rt*et,(Gt+ft)*nt,!0);ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-at)*et,Gt*nt,(Rt-vt)*et,(Gt+ft)*nt,(Rt-at)*et,(Gt+Mt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-ft)*nt,(Rt-at)*et,(Gt-Mt)*nt,(Rt-vt)*et,(Gt-ft)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+at)*et,Gt*nt,(Rt+vt)*et,(Gt-ft)*nt,(Rt+at)*et,(Gt-Mt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt+ft)*nt,(Rt+at)*et,(Gt+Mt)*nt,(Rt+vt)*et,(Gt+ft)*nt));var ae=.05,ve=Ie*ae;Rt=.05,Gt=.25;var fe=new go.PathFigure(.5*et,.2*nt,!0);return ht.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Rt=.95,Gt=.25,fe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+ae)*et,Gt*nt,(Rt+ve)*et,(Gt-ae)*nt,(Rt+ae)*et,(Gt-ve)*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),ae=.025,ve=Ie*ae,Rt=.825,Gt=.35,fe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-ae)*nt,(Rt+ae)*et,(Gt-ve)*nt,(Rt+ve)*et,(Gt-ae)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-ae)*et,Gt*nt,(Rt-ve)*et,(Gt-ae)*nt,(Rt-ae)*et,(Gt-ve)*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),ae=.05,ve=Ie*ae,Rt=.5,Gt=.7,fe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-ae)*nt,(Rt+ae)*et,(Gt-ve)*nt,(Rt+ve)*et,(Gt-ae)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-ae)*et,Gt*nt,(Rt-ve)*et,(Gt-ae)*nt,(Rt-ae)*et,(Gt-ve)*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),ae=.025,ve=Ie*ae,Rt=.175,Gt=.35,fe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-ae)*nt,(Rt+ae)*et,(Gt-ve)*nt,(Rt+ve)*et,(Gt-ae)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-ae)*et,Gt*nt,(Rt-ve)*et,(Gt-ae)*nt,(Rt-ae)*et,(Gt-ve)*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ae=.05,ve=Ie*ae,Rt=.05,Gt=.25,fe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-ae)*nt,(Rt-ae)*et,(Gt-ve)*nt,(Rt-ve)*et,(Gt-ae)*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),ht.spot1=new go.Spot(.2,.2),ht.spot2=new go.Spot(.8,.65),ht}),go.Shape.setFigureParameter("Card",0,new Fi("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;isNaN(ht)&&(ht=.2);var at=new go.Geometry,ft=new go.PathFigure(et,0,!0);return at.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),at.spot1=new go.Spot(0,ht),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("Collate",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,.5*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var ft=new go.PathFigure(.5*et,.5*nt,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,.25),ht}),go.Shape.defineFigureGenerator("CreateRequest",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)&&(at=.1);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,at*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,at*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-at)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-at)*nt)),ht}),go.Shape.defineFigureGenerator("Database",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=Ie*.1,vt=new go.PathFigure(et,.1*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+ft)*nt,(.5+at)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-at)*et,nt,0,(.9+ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ft)*nt,(.5-at)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+at)*et,0,et,(.1-ft)*nt));var Mt=new go.PathFigure(et,.1*nt,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+ft)*nt,(.5+at)*et,.2*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-at)*et,.2*nt,0,(.1+ft)*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+ft)*nt,(.5+at)*et,.3*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-at)*et,.3*nt,0,(.2+ft)*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+ft)*nt,(.5+at)*et,.4*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-at)*et,.4*nt,0,(.3+ft)*nt)),ht.spot1=new go.Spot(0,.4),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("DataStorage",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),ht.spot1=new go.Spot(.226,0),ht.spot2=new go.Spot(.81,1),ht}),go.Shape.defineFigureGenerator("DiskStorage",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=Ie*.1,vt=new go.PathFigure(et,.1*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+ft)*nt,(.5+at)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-at)*et,nt,0,(.9+ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ft)*nt,(.5-at)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+at)*et,0,et,(.1-ft)*nt));var Mt=new go.PathFigure(et,.1*nt,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+ft)*nt,(.5+at)*et,.2*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-at)*et,.2*nt,0,(.1+ft)*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+ft)*nt,(.5+at)*et,.3*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-at)*et,.3*nt,0,(.2+ft)*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("Display",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.25*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("DividedEvent",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)?at=.2:at<.15&&(at=.15);var ft=Ie*.2,vt=new go.PathFigure(0,.2*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ft)*nt,(.2-ft)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+ft)*et,0,et,(.2-ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+ft)*nt,(.8+ft)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-ft)*et,nt,0,(.8+ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var Mt=new go.PathFigure(0,at*nt,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et,at*nt)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;(isNaN(at)||at<.1)&&(at=.1);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,at*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,at*nt)),ht}),go.Shape.defineFigureGenerator("Document",function(Ut,et,nt){var ht=new go.Geometry;nt=nt/.8;var at=new go.PathFigure(0,.7*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;(isNaN(at)||at<.2)&&(at=.2);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(at*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,at*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,et,at*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-at)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-at)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-at)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-at)*nt)),ht}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var ft=new go.PathFigure(.1*et,.4*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("File",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var ft=new go.PathFigure(.75*et,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Interrupt",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,.5*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var ft=new go.PathFigure(et,.5*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt));var vt=new go.PathFigure(et,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("InternalStorage",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN,ft=Ut?Ut.parameter2:NaN;isNaN(at)&&(at=.1),isNaN(ft)&&(ft=.1);var vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var Mt=new go.PathFigure(at*et,0,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,0,ft*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,et,ft*nt)),ht}),go.Shape.defineFigureGenerator("Junction",function(Ut,et,nt){var ht=new go.Geometry,at=1/Math.SQRT2,ft=(1-1/Math.SQRT2)/2,vt=Ie*.5,Mt=.5,Rt=new go.PathFigure(et,Mt*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,nt,et,(Mt+vt)*nt,(Mt+vt)*et,nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,0,Mt*nt,(Mt-vt)*et,nt,0,(Mt+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,0,0,(Mt-vt)*nt,(Mt-vt)*et,0)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,et,Mt*nt,(Mt+vt)*et,0,et,(Mt-vt)*nt));var Gt=new go.PathFigure((ft+at)*et,(ft+at)*nt,!1);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,ft*et,ft*nt)),Gt.add(new go.PathSegment(go.PathSegment.Move,ft*et,(ft+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,(ft+at)*et,ft*nt)),ht}),go.Shape.defineFigureGenerator("LinedDocument",function(Ut,et,nt){var ht=new go.Geometry;nt=nt/.8;var at=new go.PathFigure(0,.7*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var ft=new go.PathFigure(.1*et,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),ht.spot1=new go.Spot(.1,0),ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("LoopLimit",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MagneticTape",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=.5,vt=new go.PathFigure(.5*et,nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*nt,(ft-at)*et,nt,0,(ft+at)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-at)*nt,(ft-at)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*nt,(ft+at)*et,0,et,(ft-at)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ft+.1)*et,.9*nt,et,(ft+at)*nt,(ft+at)*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.15,.15),ht.spot2=new go.Spot(.85,.8),ht}),go.Shape.defineFigureGenerator("ManualInput",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)&&(at=.7);var ft=new go.PathFigure(0,0,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,at*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)&&(at=.25);var ft=new go.PathFigure(0,0,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,at*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-at)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("MultiDocument",function(Ut,et,nt){var ht=new go.Geometry;nt=nt/.8;var at=new go.PathFigure(et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ft=new go.PathFigure(.1*et,.2*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.8,.77),ht}),go.Shape.defineFigureGenerator("MultiProcess",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.1*et,.1*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var ft=new go.PathFigure(.2*et,.1*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),ht.spot1=new go.Spot(0,.2),ht.spot2=new go.Spot(.8,1),ht}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)&&(at=.1);var ft=1-at,vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var Mt=new go.PathFigure(.5*at*et,at*nt,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*at)*et,at*nt)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("Or",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=.5,vt=new go.PathFigure(et,ft*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,nt,et,(ft+at)*nt,(ft+at)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*nt,(ft-at)*et,nt,0,(ft+at)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-at)*nt,(ft-at)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*nt,(ft+at)*et,0,et,(ft-at)*nt));var Mt=new go.PathFigure(et,.5*nt,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Ut,et,nt){var ht=new go.Geometry;nt=nt/.8;var at=new go.PathFigure(0,.7*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=new go.Spot(0,.49),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN,ft=Ut?Ut.parameter2:NaN;isNaN(at)&&(at=.1),isNaN(ft)&&(ft=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-ft)*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN,ft=Ut?Ut.parameter2:NaN;isNaN(at)&&(at=.1),isNaN(ft)&&(ft=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-ft)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-ft)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Procedure",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)&&(at=.1);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure((1-at)*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-at)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,at*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),ht}),go.Shape.defineFigureGenerator("Process",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)&&(at=.1);var ft=new go.PathFigure(0,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(at*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Sort",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var ft=new go.PathFigure(0,.5*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.5),ht}),go.Shape.defineFigureGenerator("Start",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)&&(at=.25);var ft=new go.PathFigure(at*et,0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var vt=new go.PathFigure(at*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-at)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-at)*et,nt)),ht.spot1=new go.Spot(at,0),ht.spot2=new go.Spot(1-at,1),ht}),go.Shape.defineFigureGenerator("Terminator",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.25*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),ht.spot1=new go.Spot(.23,0),ht.spot2=new go.Spot(.77,1),ht}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ut,et,nt){var ht=new go.Geometry,at=Ut?Ut.parameter1:NaN;isNaN(at)&&(at=.1);var ft=new go.PathFigure(0,0,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-at)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,(1-at)*nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("AndGate",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=new go.PathFigure(0,0,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+at)*et,0,et,(.5-at)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+at)*nt,(.5+at)*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.55,1),ht}),go.Shape.defineFigureGenerator("Buffer",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Clock",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=.5,vt=new go.PathFigure(et,ft*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,nt,et,(ft+at)*nt,(ft+at)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*nt,(ft-at)*et,nt,0,(ft+at)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-at)*nt,(ft-at)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*nt,(ft+at)*et,0,et,(ft-at)*nt));var Mt=new go.PathFigure(et,ft*nt,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et,ft*nt));var Rt=new go.PathFigure(.8*et,.75*nt,!1);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),ht}),go.Shape.defineFigureGenerator("Ground",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),ht}),go.Shape.defineFigureGenerator("Inverter",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.1,ft=.1,vt=.9,Mt=.5,Rt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var Gt=new go.PathFigure((vt+ft)*et,Mt*nt,!0);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Mt*nt,(vt-at)*et,(Mt+ft)*nt,(vt-ft)*et,(Mt+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Mt*nt,(vt+at)*et,(Mt-ft)*nt,(vt+ft)*et,(Mt-at)*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=Ie*.4,vt=Ie*.1,Mt=.1,Rt=.9,Gt=.5,$t=new go.PathFigure(.8*et,.5*nt,!0);ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+ft)*nt,(.4+at)*et,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,nt)),$t.add(new go.PathSegment(go.PathSegment.Line,0,0)),$t.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),$t.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+at)*et,0,.8*et,(.5-ft)*nt));var ae=new go.PathFigure((Rt+Mt)*et,Gt*nt,!0);return ht.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt+Mt)*nt,(Rt+Mt)*et,(Gt+vt)*nt,(Rt+vt)*et,(Gt+Mt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Mt)*et,Gt*nt,(Rt-vt)*et,(Gt+Mt)*nt,(Rt-Mt)*et,(Gt+vt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-Mt)*nt,(Rt-Mt)*et,(Gt-vt)*nt,(Rt-vt)*et,(Gt-Mt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Mt)*et,Gt*nt,(Rt+vt)*et,(Gt-Mt)*nt,(Rt+Mt)*et,(Gt-vt)*nt)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Ut,et,nt){var ht=new go.Geometry,at=.5,ft=Ie*at,vt=0,Mt=.5,Rt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+ft)*et,(Mt-at)*nt,.7*et,(Mt-ft)*nt)),at=.1,ft=Ie*.1,vt=.9,Mt=.5;var Gt=new go.PathFigure((vt-at)*et,Mt*nt,!0);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Mt*nt,(vt+ft)*et,(Mt-at)*nt,(vt+at)*et,(Mt-ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Mt*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Ut,et,nt){var ht=new go.Geometry,at=.5,ft=Ie*at,vt=0,Mt=.5,Rt=new go.PathFigure(0,0,!0);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+ft+ft)*et,(Mt-at)*nt,.8*et,(Mt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(Mt+ft)*nt,(vt+ft+ft)*et,(Mt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("XnorGate",function(Ut,et,nt){var ht=new go.Geometry,at=.5,ft=Ie*at,vt=.2,Mt=.5,Rt=new go.PathFigure(.1*et,0,!1);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Gt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+ft)*et,(Mt-at)*nt,.7*et,(Mt-ft)*nt)),at=.1,ft=Ie*.1,vt=.9,Mt=.5;var $t=new go.PathFigure((vt-at)*et,Mt*nt,!0);return ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Mt*nt,(vt+ft)*et,(Mt-at)*nt,(vt+at)*et,(Mt-ft)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Mt*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Ut,et,nt){var ht=new go.Geometry,at=.5,ft=Ie*at,vt=.2,Mt=.5,Rt=new go.PathFigure(.1*et,0,!1);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Gt=new go.PathFigure(.2*et,0,!0);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+ft)*et,(Mt-at)*nt,.9*et,(Mt-ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.8,.75),ht}),go.Shape.defineFigureGenerator("Capacitor",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Resistor",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Inductor",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.1,ft=.1,vt=.1,Mt=.5,Rt=new go.PathFigure((vt-at*.5)*et,nt,!1);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,0,(vt-at)*et,nt,(vt-ft)*et,0)),vt=.3,Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+ft)*et,0,(vt+at)*et,nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,0,(vt-at)*et,nt,(vt-ft)*et,0)),vt=.5,Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+ft)*et,0,(vt+at)*et,nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,0,(vt-at)*et,nt,(vt-ft)*et,0)),vt=.7,Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+ft)*et,0,(vt+at)*et,nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,0,(vt-at)*et,nt,(vt-ft)*et,0)),vt=.9,Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at*.5)*et,nt,(vt+ft)*et,0,(vt+at)*et,nt)),ht}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.5,ft=.5,vt=.5,Mt=.5,Rt=new go.PathFigure((vt-ft)*et,Mt*nt,!1);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Mt*nt,(vt+at)*et,(Mt-ft)*nt,(vt+ft)*et,(Mt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Mt*nt,(vt-at)*et,(Mt+ft)*nt,(vt-ft)*et,(Mt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Move,(vt-ft+.1)*et,Mt*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft-.1)*et,Mt*nt,vt*et,(Mt-ft)*nt,vt*et,(Mt+ft)*nt)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.75*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Diode",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Wifi",function(Ut,et,nt){var ht=new go.Geometry,at=et,ft=nt;et=et*.38,nt=nt*.6;var vt=Ie*.8,Mt=.8,Rt=0,Gt=.5,$t=(at-et)/2,ae=(ft-nt)/2,ve=new go.PathFigure(Rt*et+$t,(Gt+Mt)*nt+ae,!0);ht.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Mt)*et+$t,Gt*nt+ae,(Rt-vt)*et+$t,(Gt+Mt)*nt+ae,(Rt-Mt)*et+$t,(Gt+vt)*nt+ae)),ve.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Mt)*nt+ae,(Rt-Mt)*et+$t,(Gt-vt)*nt+ae,(Rt-vt)*et+$t,(Gt-Mt)*nt+ae)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Mt+vt*.5)*et+$t,Gt*nt+ae,Rt*et+$t,(Gt-Mt)*nt+ae,(Rt-Mt+vt*.5)*et+$t,(Gt-vt)*nt+ae)),ve.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Mt)*nt+ae,(Rt-Mt+vt*.5)*et+$t,(Gt+vt)*nt+ae,Rt*et+$t,(Gt+Mt)*nt+ae).close()),vt=Ie*.4,Mt=.4,Rt=.2,Gt=.5;var fe=new go.PathFigure(Rt*et+$t,(Gt+Mt)*nt+ae,!0);ht.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Mt)*et+$t,Gt*nt+ae,(Rt-vt)*et+$t,(Gt+Mt)*nt+ae,(Rt-Mt)*et+$t,(Gt+vt)*nt+ae)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Mt)*nt+ae,(Rt-Mt)*et+$t,(Gt-vt)*nt+ae,(Rt-vt)*et+$t,(Gt-Mt)*nt+ae)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Mt+vt*.5)*et+$t,Gt*nt+ae,Rt*et+$t,(Gt-Mt)*nt+ae,(Rt-Mt+vt*.5)*et+$t,(Gt-vt)*nt+ae)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Mt)*nt+ae,(Rt-Mt+vt*.5)*et+$t,(Gt+vt)*nt+ae,Rt*et+$t,(Gt+Mt)*nt+ae).close()),vt=Ie*.2,Mt=.2,Rt=.5,Gt=.5;var Ye=new go.PathFigure((Rt-Mt)*et+$t,Gt*nt+ae,!0);ht.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Mt)*nt+ae,(Rt-Mt)*et+$t,(Gt-vt)*nt+ae,(Rt-vt)*et+$t,(Gt-Mt)*nt+ae)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Mt)*et+$t,Gt*nt+ae,(Rt+vt)*et+$t,(Gt-Mt)*nt+ae,(Rt+Mt)*et+$t,(Gt-vt)*nt+ae)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Mt)*nt+ae,(Rt+Mt)*et+$t,(Gt+vt)*nt+ae,(Rt+vt)*et+$t,(Gt+Mt)*nt+ae)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Mt)*et+$t,Gt*nt+ae,(Rt-vt)*et+$t,(Gt+Mt)*nt+ae,(Rt-Mt)*et+$t,(Gt+vt)*nt+ae)),vt=Ie*.4,Mt=.4,Rt=.8,Gt=.5;var De=new go.PathFigure(Rt*et+$t,(Gt-Mt)*nt+ae,!0);ht.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Mt)*et+$t,Gt*nt+ae,(Rt+vt)*et+$t,(Gt-Mt)*nt+ae,(Rt+Mt)*et+$t,(Gt-vt)*nt+ae)),De.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Mt)*nt+ae,(Rt+Mt)*et+$t,(Gt+vt)*nt+ae,(Rt+vt)*et+$t,(Gt+Mt)*nt+ae)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Mt-vt*.5)*et+$t,Gt*nt+ae,Rt*et+$t,(Gt+Mt)*nt+ae,(Rt+Mt-vt*.5)*et+$t,(Gt+vt)*nt+ae)),De.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Mt)*nt+ae,(Rt+Mt-vt*.5)*et+$t,(Gt-vt)*nt+ae,Rt*et+$t,(Gt-Mt)*nt+ae).close()),vt=Ie*.8,Mt=.8,Rt=1,Gt=.5;var hn=new go.PathFigure(Rt*et+$t,(Gt-Mt)*nt+ae,!0);return ht.add(hn),hn.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Mt)*et+$t,Gt*nt+ae,(Rt+vt)*et+$t,(Gt-Mt)*nt+ae,(Rt+Mt)*et+$t,(Gt-vt)*nt+ae)),hn.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Mt)*nt+ae,(Rt+Mt)*et+$t,(Gt+vt)*nt+ae,(Rt+vt)*et+$t,(Gt+Mt)*nt+ae)),hn.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Mt-vt*.5)*et+$t,Gt*nt+ae,Rt*et+$t,(Gt+Mt)*nt+ae,(Rt+Mt-vt*.5)*et+$t,(Gt+vt)*nt+ae)),hn.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Mt)*nt+ae,(Rt+Mt-vt*.5)*et+$t,(Gt-vt)*nt+ae,Rt*et+$t,(Gt-Mt)*nt+ae).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ft=new go.PathFigure(0,0,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),ft.add(new go.PathSegment(go.PathSegment.Move,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Ethernet",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.35*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ft=new go.PathFigure(.1*et,nt,!0,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var vt=new go.PathFigure(.6*et,nt,!0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var Mt=new go.PathFigure(0,.5*nt,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Power",function(Ut,et,nt){var ht=new go.Geometry,at=Ie*.4,ft=.4,vt=.5,Mt=.5,Rt=zt(),Gt=zt(),$t=zt(),ae=zt();Cn(vt,Mt-ft,vt+at,Mt-ft,vt+ft,Mt-at,vt+ft,Mt,.5,Rt,Rt,Gt,$t,ae);var ve=Kt(Gt.x,Gt.y),fe=new go.PathFigure(Gt.x*et,Gt.y*nt,!0);ht.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Mt*nt,$t.x*et,$t.y*nt,ae.x*et,ae.y*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Mt*nt,(vt-at)*et,(Mt+ft)*nt,(vt-ft)*et,(Mt+at)*nt)),Cn(vt-ft,Mt,vt-ft,Mt-at,vt-at,Mt-ft,vt,Mt-ft,.5,$t,ae,Gt,Rt,Rt),fe.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*et,Gt.y*nt,$t.x*et,$t.y*nt,ae.x*et,ae.y*nt)),at=Ie*.3,ft=.3,Cn(vt-ft,Mt,vt-ft,Mt-at,vt-at,Mt-ft,vt,Mt-ft,.5,$t,ae,Gt,Rt,Rt),fe.add(new go.PathSegment(go.PathSegment.Line,Gt.x*et,Gt.y*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Mt*nt,ae.x*et,ae.y*nt,$t.x*et,$t.y*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+ft)*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Mt*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Cn(vt,Mt-ft,vt+at,Mt-ft,vt+ft,Mt-at,vt+ft,Mt,.5,Rt,Rt,Gt,$t,ae),fe.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*et,Gt.y*nt,ae.x*et,ae.y*nt,$t.x*et,$t.y*nt).close());var fe=new go.PathFigure(.45*et,0,!0);return ht.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ke(Rt),ke(Gt),ke($t),ke(ae),ke(ve),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt/2,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function ft(vt,Mt,Rt){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+Mt)*et,(.8+Rt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+Mt)*et,(.5+Rt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+Mt)*et,(.5+Rt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+Mt)*et,(.8+Rt)*nt).close())}return ft(at,0,0),ft(at,.4,0),ft(at,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.2*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),ht.spot1=new go.Spot(.3,.3),ht.spot2=new go.Spot(.7,.7),ht}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.37*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),ht}),go.Shape.defineFigureGenerator("FireHazard",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.1*et,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),ht.spot1=new go.Spot(.07,.445),ht.spot2=new go.Spot(.884,.958),ht}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ut,et,nt){var ht=new go.Geometry,at=.5,ft=0,vt=0,Mt=at*Ie,Rt=.4*Math.SQRT2/2+.5,Gt=.5-.5*Math.SQRT2/2,$t=1,ae=.5,ve=.5,fe=0,Ye=new go.PathFigure(Rt*et,(1-Gt)*nt,!1);return ht.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,ae*nt,$t*et,.7*nt,$t*et,ae*nt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ft)*et,(fe+ft)*nt,(.5+at+ft)*et,(.5-Mt+ft)*nt,(.5+Mt+ft)*et,(.5-at+ft)*nt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+vt)*nt,(.5-Mt+ft)*et,(.5-at+vt)*nt,(.5-at+ft)*et,(.5-Mt+vt)*nt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ft)*et,.9*nt,(.5-at+ft)*et,(.5+Mt+vt)*nt,(.5-Mt+ft)*et,.9*nt)),Ye.add(new go.PathSegment(go.PathSegment.Move,(.25+ft)*et,.8*nt)),Ye.add(new go.PathSegment(go.PathSegment.Line,(.35+ft)*et,.9*nt)),Ye.add(new go.PathSegment(go.PathSegment.Line,(.2+ft)*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Move,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);ht.add(at);var ft=new go.PathFigure(et,nt,!1);ht.add(ft);var vt=new go.PathFigure(0,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.2*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var at=new go.PathFigure(0,.2*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.7*et,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var ft=new go.PathFigure(.45*et,.73*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);ht.add(at);var ft=new go.PathFigure(.335*et,(1-.555)*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var vt=.5-.285,Mt=.5,Rt=vt,Gt=Math.PI/4,$t=4*(1-Math.cos(Gt))/(3*Math.sin(Gt)),ae=$t*.5,ve=vt,fe=vt,Ye=$t*ve,De=$t*fe;ft.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ve)*et,Rt*nt,(Mt-(Ye+ve)/2)*et,(Rt+(fe+De)/2)*nt,(Mt-ve)*et,(Rt+De)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Rt-fe)*nt,(Mt-ve)*et,(Rt-De)*nt,(Mt-Ye)*et,(Rt-fe)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+ve)*et,Rt*nt,(Mt+Ye)*et,(Rt-fe)*nt,(Mt+ve)*et,(Rt-De)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(Mt+ve)*et,(Rt+De)*nt,(Mt+(Ye+ve)/2)*et,(Rt+(fe+De)/2)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var hn=new go.PathFigure(.2*et,nt,!1);ht.add(hn),hn.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var Ue=new go.PathFigure(.8*et,nt,!1);return ht.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.1*et,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var ft=new go.PathFigure(.2*et,.2*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);ht.add(at);var ft=new go.PathFigure(et,nt,!1);ht.add(ft);var vt=new go.PathFigure(.1*et,nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Caution",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.05*et,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var ft=.05;return at.add(new go.PathSegment(go.PathSegment.Move,(.5-ft)*et,.875*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,ft*et,ft*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),ht}),go.Shape.defineFigureGenerator("Recycle",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.45*et,.95*nt,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var ft=new go.PathFigure(.475*et,.2*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var vt=new go.PathFigure(.675*et,.575*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ut,et,nt){var ht=new go.Geometry,at=.5,ft=Ie*.5,vt=new go.PathFigure(et,at*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,at*et,nt,et,(at+ft)*nt,(at+ft)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,at*nt,(at-ft)*et,nt,0,(at+ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,at*et,0,0,(at-ft)*nt,(at-ft)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,at*nt,(at+ft)*et,0,et,(at-ft)*nt));var Mt=new go.PathFigure(at*et,0,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,at*et,.15*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,at*et,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,at*et,.85*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,0,at*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.15*et,at*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,et,at*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.85*et,at*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,at*et,at*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),Mt.add(new go.PathSegment(go.PathSegment.Move,at*et,at*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Package",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.15*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var ft=new go.PathFigure(0,.15*nt,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),ht.spot1=new go.Spot(0,.1),ht.spot2=new go.Spot(1,1),ht}),go.Shape.defineFigureGenerator("Class",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ft=new go.PathFigure(0,.2*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(0,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Component",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var ft=new go.PathFigure(0,.2*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var vt=new go.PathFigure(0,.6*nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),ht}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.15*et,.6*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var ft=new go.PathFigure(.15*et,.6*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Workcell",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Supermarket",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),at.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ht}),go.Shape.defineFigureGenerator("TruckShipment",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ft=new go.PathFigure(et,.8*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var vt=.1,Mt=Ie*.1,Rt=.2,Gt=.9,$t=new go.PathFigure((Rt-vt)*et,Gt*nt,!0);ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-vt)*nt,(Rt-vt)*et,(Gt-Mt)*nt,(Rt-Mt)*et,(Gt-vt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+vt)*et,Gt*nt,(Rt+Mt)*et,(Gt-vt)*nt,(Rt+vt)*et,(Gt-Mt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt+vt)*nt,(Rt+vt)*et,(Gt+Mt)*nt,(Rt+Mt)*et,(Gt+vt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-vt)*et,Gt*nt,(Rt-Mt)*et,(Gt+vt)*nt,(Rt-vt)*et,(Gt+Mt)*nt).close()),vt=.1,Mt=Ie*.1,Rt=.8,Gt=.9;var ae=new go.PathFigure((Rt-vt)*et,Gt*nt,!0);return ht.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-vt)*nt,(Rt-vt)*et,(Gt-Mt)*nt,(Rt-Mt)*et,(Gt-vt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+vt)*et,Gt*nt,(Rt+Mt)*et,(Gt-vt)*nt,(Rt+vt)*et,(Gt-Mt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt+vt)*nt,(Rt+vt)*et,(Gt+Mt)*nt,(Rt+Mt)*et,(Gt+vt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-vt)*et,Gt*nt,(Rt-Mt)*et,(Gt+vt)*nt,(Rt-vt)*et,(Gt+Mt)*nt).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.2*et,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ht}),go.Shape.defineFigureGenerator("Forklift",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,0));var ft=new go.PathFigure(0,.5*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var vt=new go.PathFigure(.5*et,.8*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var Mt=new go.PathFigure(.5*et,.7*nt,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Rt=.1,Gt=Ie*.1,$t=.1,ae=.9,ve=new go.PathFigure(($t-Rt)*et,ae*nt,!0);ht.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,(ae-Rt)*nt,($t-Rt)*et,(ae-Gt)*nt,($t-Gt)*et,(ae-Rt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,($t+Rt)*et,ae*nt,($t+Gt)*et,(ae-Rt)*nt,($t+Rt)*et,(ae-Gt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,(ae+Rt)*nt,($t+Rt)*et,(ae+Gt)*nt,($t+Gt)*et,(ae+Rt)*nt)),ve.add(new go.PathSegment(go.PathSegment.Bezier,($t-Rt)*et,ae*nt,($t-Gt)*et,(ae+Rt)*nt,($t-Rt)*et,(ae+Gt)*nt)),Rt=.1,Gt=Ie*.1,$t=.4,ae=.9;var fe=new go.PathFigure(($t-Rt)*et,ae*nt,!0);return ht.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,(ae-Rt)*nt,($t-Rt)*et,(ae-Gt)*nt,($t-Gt)*et,(ae-Rt)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,($t+Rt)*et,ae*nt,($t+Gt)*et,(ae-Rt)*nt,($t+Rt)*et,(ae-Gt)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,(ae+Rt)*nt,($t+Rt)*et,(ae+Gt)*nt,($t+Gt)*et,(ae+Rt)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,($t-Rt)*et,ae*nt,($t-Gt)*et,(ae+Rt)*nt,($t-Rt)*et,(ae+Gt)*nt)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.1*et,.4*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var ft=new go.PathFigure(.45*et,.7*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var vt=new go.PathFigure(.55*et,.4*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var $t=.05,ae=Ie*.05,ve=.175,fe=.95,Mt=new go.PathFigure((ve-$t)*et,fe*nt,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ve*et,(fe-$t)*nt,(ve-$t)*et,(fe-ae)*nt,(ve-ae)*et,(fe-$t)*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ve+$t)*et,fe*nt,(ve+ae)*et,(fe-$t)*nt,(ve+$t)*et,(fe-ae)*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ve*et,(fe+$t)*nt,(ve+$t)*et,(fe+ae)*nt,(ve+ae)*et,(fe+$t)*nt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ve-$t)*et,fe*nt,(ve-ae)*et,(fe+$t)*nt,(ve-$t)*et,(fe+ae)*nt));var $t=.05,ae=Ie*.05,ve=.375,fe=.95,Rt=new go.PathFigure((ve-$t)*et,fe*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,ve*et,(fe-$t)*nt,(ve-$t)*et,(fe-ae)*nt,(ve-ae)*et,(fe-$t)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(ve+$t)*et,fe*nt,(ve+ae)*et,(fe-$t)*nt,(ve+$t)*et,(fe-ae)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,ve*et,(fe+$t)*nt,(ve+$t)*et,(fe+ae)*nt,(ve+ae)*et,(fe+$t)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(ve-$t)*et,fe*nt,(ve-ae)*et,(fe+$t)*nt,(ve-$t)*et,(fe+ae)*nt));var $t=.05,ae=Ie*.05,ve=.625,fe=.95,Gt=new go.PathFigure((ve-$t)*et,fe*nt,!0);ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,ve*et,(fe-$t)*nt,(ve-$t)*et,(fe-ae)*nt,(ve-ae)*et,(fe-$t)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(ve+$t)*et,fe*nt,(ve+ae)*et,(fe-$t)*nt,(ve+$t)*et,(fe-ae)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,ve*et,(fe+$t)*nt,(ve+$t)*et,(fe+ae)*nt,(ve+ae)*et,(fe+$t)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(ve-$t)*et,fe*nt,(ve-ae)*et,(fe+$t)*nt,(ve-$t)*et,(fe+ae)*nt));var $t=.05,ae=Ie*.05,ve=.825,fe=.95,Ye=new go.PathFigure((ve-$t)*et,fe*nt,!0);ht.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ve*et,(fe-$t)*nt,(ve-$t)*et,(fe-ae)*nt,(ve-ae)*et,(fe-$t)*nt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ve+$t)*et,fe*nt,(ve+ae)*et,(fe-$t)*nt,(ve+$t)*et,(fe-ae)*nt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ve*et,(fe+$t)*nt,(ve+$t)*et,(fe+ae)*nt,(ve+ae)*et,(fe+$t)*nt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ve-$t)*et,fe*nt,(ve-ae)*et,(fe+$t)*nt,(ve-$t)*et,(fe+ae)*nt).close());var De=new go.PathFigure(0,nt,!1);return ht.add(De),De.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ft=new go.PathFigure(0,.2*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(.15*et,nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var Mt=.05,Rt=Ie*.05,Gt=.35,$t=.775,ae=new go.PathFigure((Gt-Mt)*et,$t*nt,!0);return ht.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,($t-Mt)*nt,(Gt-Mt)*et,($t-Rt)*nt,(Gt-Rt)*et,($t-Mt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Mt)*et,$t*nt,(Gt+Rt)*et,($t-Mt)*nt,(Gt+Mt)*et,($t-Rt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,($t+Mt)*nt,(Gt+Mt)*et,($t+Rt)*nt,(Gt+Rt)*et,($t+Mt)*nt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Mt)*et,$t*nt,(Gt-Rt)*et,($t+Mt)*nt,(Gt-Mt)*et,($t+Rt)*nt).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),ht}),go.Shape.defineFigureGenerator("Bluetooth",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.75*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),at.add(new go.PathSegment(go.PathSegment.Line,0,0)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Globe",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),ht}),go.Shape.defineFigureGenerator("Wave",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.25*nt,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Operator",function(Ut,et,nt){var ht=new go.Geometry,at=.3,ft=Ie*.3,vt=.5,Mt=.7,Rt=new go.PathFigure((vt-at)*et,Mt*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Mt*nt,(vt+ft)*et,(Mt-at)*nt,(vt+at)*et,(Mt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Mt*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt));var Gt=new go.PathFigure(0,.7*nt,!1);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),ht}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.5*et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et,0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht}),go.Shape.defineFigureGenerator("Battery",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var ft=new go.PathFigure(0,.6*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Delete",function(Ut,et,nt){var ht=new go.Geometry,at=.5,ft=Ie*.5,vt=.5,Mt=.5,Rt=new go.PathFigure((vt-at)*et,Mt*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Mt*nt,(vt+ft)*et,(Mt-at)*nt,(vt+at)*et,(Mt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Mt*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt));var Gt=new go.PathFigure(.15*et,.5*nt,!1);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Flag",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.1*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),at.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),ht}),go.Shape.defineFigureGenerator("Help",function(Ut,et,nt){var ht=new go.Geometry,at=.5,ft=Ie*.5,vt=.5,Mt=.5,Rt=new go.PathFigure((vt-at)*et,Mt*nt,!1);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Mt*nt,(vt+ft)*et,(Mt-at)*nt,(vt+at)*et,(Mt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Mt*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt).close()),at=.05,ft=Ie*.05,vt=.5,Mt=.8;var Gt=new go.PathFigure((vt-at)*et,Mt*nt,!1);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt-at)*nt,(vt-at)*et,(Mt-ft)*nt,(vt-ft)*et,(Mt-at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Mt*nt,(vt+ft)*et,(Mt-at)*nt,(vt+at)*et,(Mt-ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Mt+at)*nt,(vt+at)*et,(Mt+ft)*nt,(vt+ft)*et,(Mt+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Mt*nt,(vt-ft)*et,(Mt+at)*nt,(vt-at)*et,(Mt+ft)*nt).close()),Gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),ht}),go.Shape.defineFigureGenerator("Location",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var ft=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),ht}),go.Shape.defineFigureGenerator("Unlocked",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var ft=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),ht}),go.Shape.defineFigureGenerator("Gear",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.5*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Map",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,.2*nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),at.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),at.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),at.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("Eject",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et,nt)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var ft=new go.PathFigure(0,nt*.6,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),ht}),go.Shape.defineFigureGenerator("Pencil",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*1,nt*1,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),at.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),at.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),at.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),at.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var ft=new go.PathFigure(.126*et,.85*nt,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),ft.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var vt=new go.PathFigure(.402*et,.85*nt,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var Mt=new go.PathFigure(.678*et,.85*nt,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var Rt=new go.PathFigure(.5*et,.1*nt,!1);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt*1,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),at.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),at.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),at.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),at.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),ht}),go.Shape.defineFigureGenerator("5Bars",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,nt*1,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var ft=new go.PathFigure(et*.204,nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var vt=new go.PathFigure(et*.408,nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var Mt=new go.PathFigure(et*.612,nt,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var Rt=new go.PathFigure(et*.816,nt,!0);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),Rt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),Rt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ft=new go.PathFigure(et*.055,.07*nt,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var vt=new go.PathFigure(et*.055,.13*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var Mt=new go.PathFigure(et*.055,.18*nt,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var Rt=new go.PathFigure(et*1,0,!0);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),Rt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(.55*et,nt,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),at.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),ht}),go.Shape.defineFigureGenerator("Key",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*1,nt*.5,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),at.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),at.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),at.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),ht}),go.Shape.defineFigureGenerator("FilmTape",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(0,0,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),at.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),at.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var ft=new go.PathFigure(0,0,!1);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),ft.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var vt=new go.PathFigure(et*.11,nt*.1,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var Mt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var Rt=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),Rt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),Rt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ut,et,nt){var ht=new go.Geometry,at=8,ft=at*Ie,vt=new go.PathFigure(at,0,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-at)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-at,nt,et,nt-ft,et-ft,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,at,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-at,ft,nt,0,nt-ft)),vt.add(new go.PathSegment(go.PathSegment.Line,0,at)),vt.add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,ft,ft,0).close());var Mt=new go.PathFigure(et*.83,0,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var Rt=new go.PathFigure(et*.83,nt*1,!1);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),Rt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),Rt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var Gt=new go.PathFigure(et*.78,nt*.05,!1);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),Gt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),Gt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ut,et,nt){var ht=Ut?Ut.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var at=ht*Ie,ft=nt*.8,vt=new go.Geometry,Mt=new go.PathFigure(ht,0,!0);return vt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-at,0,et,at)),Mt.add(new go.PathSegment(go.PathSegment.Line,et,ft-ht)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,ft,et,ft-at,et-at,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ft)),Mt.add(new go.PathSegment(go.PathSegment.Line,ht,ft)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft-ht,at,ft,0,ft-at)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,at,at,0).close()),at>1?(vt.spot1=new go.Spot(0,0,at,at),vt.spot2=new go.Spot(1,.8,-at,-at)):(vt.spot1=go.Spot.TopLeft,vt.spot2=new go.Spot(1,.8)),vt}),go.Shape.defineFigureGenerator("Repeat",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*.45,!0);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),at.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),at.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var ft=new go.PathFigure(et*1,nt*.55,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),ht}),go.Shape.defineFigureGenerator("Windows",function(Ut,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*.1,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var ft=new go.PathFigure(et*.1,nt*.2,!0);ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var vt=new go.PathFigure(et*.28,nt*.37,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),ht}),go.Shape.defineFigureGenerator("Beaker",function(Ut,et,nt){var ht=new go.Geometry,at=15,ft=at*Ie,vt=new go.PathFigure(et*.62,nt*.475,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-at)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-at,nt,et,nt-ft,et-ft,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,at,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-at,ft,nt,0,nt-ft)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),ft>1?(ht.spot1=new go.Spot(0,0,ft,ft),ht.spot2=new go.Spot(1,1,-ft,-ft)):(ht.spot1=go.Spot.TopLeft,ht.spot2=go.Spot.BottomRight),ht}),go.Shape.defineFigureGenerator("Download",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*1,!0);ht.add(at);var ft=.1/.3;at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-ft)).close());var vt=new go.PathFigure(et*.4,nt*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),ht}),go.Shape.defineFigureGenerator("Bin",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*1,!0);ht.add(at);var ft=.1/.3;return at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-ft)).close()),ht}),go.Shape.defineFigureGenerator("Upload",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*0,nt*1,!0);ht.add(at);var ft=.1/.3;at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-ft))),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-ft)).close());var vt=new go.PathFigure(et*.5,nt*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*.15,nt*0,!1);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),ht}),go.Shape.defineFigureGenerator("Drink",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*.15,nt*0,!1);ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),at.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var ft=new go.PathFigure(et*.235,nt*.28,!0);return ht.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),ht}),go.Shape.defineFigureGenerator("4Arrows",function(Ut,et,nt){var ht=new go.Geometry,at=new go.PathFigure(et*.5,nt*0,!0);return ht.add(at),at.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),at.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),at.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),at.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),at.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),at.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),at.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),at.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Fi={},Ti="5.0",Kt={},zt=null,ke=!1,Oe=!1,Cn=null,Be=!1,vn=null,Ie=null,ge=0;ge<arguments.length;ge++){var ye=arguments[ge];if(ye!==null)switch(typeof ye){case"number":Ti=ye.toFixed(1);break;case"string":ye.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ti=ye:Cn=ye;break;case"object":typeof ye.is3D!="undefined"?zt=ye:Kt=ye;break;case"boolean":ke=ye,Oe=!0;break}}zt===null&&(zt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Kt.material_id!==void 0&&!Oe&&(ke=!0)),Cn!==null&&Kt.id===void 0&&(Kt.id=Cn);var Nt="",se="",oe=!1,me=null,Ut=null,et=null,nt=!1,ht=null,at=null,ft=null,vt=null,Mt=null;Kt.height!==void 0&&(Kt.height=Math.round(Kt.height)),Kt.width!==void 0&&(Kt.width=Math.round(Kt.width));var Rt=function(An){return parseFloat(An)>4?parseFloat(An):5};Fi.setHTML5Codebase=function(An,Nn){Ie=An,Ve(An,Nn)},Fi.setJavaCodebase=Fi.setJavaCodebaseVersion=Fi.isCompiledInstalled=Fi.setPreCompiledScriptPath=Fi.setPreCompiledResourcePath=function(){},Fi.setHTML5CodebaseVersion=function(An,Nn){var Yn=parseFloat(An);if(Yn!==NaN&&Yn<5){console.log("The GeoGebra HTML5 codebase version "+Yn+" is deprecated. Using version latest instead.");return}vn=An,Xt(An,Nn)},Fi.getHTML5CodebaseVersion=function(){return Ut},Fi.getParameters=function(){return Kt},Fi.setFontsCSSURL=function(An){vt=An},Fi.setGiacJSURL=function(An){},Fi.setJNLPFile=function(An){Nt=An},Fi.setJNLPBaseDir=function(An){},Fi.inject=function(){function An(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Nn="auto",Yn=Kt.id,Ci,Mi=!1,Ri=0;Ri<arguments.length;Ri++){var Te=arguments[Ri];typeof Te=="string"?(Te=Te.toLowerCase(),Te.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Nn=Te:Yn=arguments[Ri]):typeof Te=="boolean"?Mi=Te:Te instanceof HTMLElement&&(Ci=Te)}ci();function ci(){if(!Be){setTimeout(ci,200);return}Nn=mn(Nn);var ki=Ci||document.getElementById(Yn);if(!ki){console.log("possibly bug on ajax loading? ");return}if(Fi.removeExistingApplet(ki,!1),Kt.width===void 0&&ki.clientWidth&&(Kt.width=ki.clientWidth),Kt.height===void 0&&ki.clientHeight&&(Kt.height=ki.clientHeight),!(Kt.width&&Kt.height)&&Nn==="html5"&&(delete Kt.width,delete Kt.height),me=Nn,Nn==="screenshot")Ue(ki,Kt);else{var Dn=!1;Kt.hasOwnProperty("playButton")&&Kt.playButton||Kt.hasOwnProperty("clickToLoad")&&Kt.clickToLoad?Dn=!0:Kt.hasOwnProperty("playButtonAutoDecide")&&Kt.playButtonAutoDecide&&(Dn=(!Gt()||An())&&$t()),Dn?(me="screenshot",qn(ki,Kt,Mi,Nn)):hn(ki,Kt,Mi)}}};function Gt(){try{return window.self!==window.top}catch(An){return!0}}function $t(){return Kt.hasOwnProperty("screenshotGenerator")&&Kt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Fi.getViews=function(){return zt},Fi.isJavaInstalled=function(){return!1};var ae=function(An){var Nn=function(Ri){var Te=JSON.parse(Ri),ci=function(yi){return yi.type=="G"||yi.type=="E"},ki=Te.elements?Te.elements.filter(ci)[0]:Te;if(!ki||!ki.url){Yn();return}Kt.fileName=ki.url,ve(ki.settings||{}),zt.is3D=!0;var Dn="https://www.geogebra.org/images/";Fi.setPreviewImage(ht||ki.previewUrl,Dn+"GeoGebra_loading.png",Dn+"applet_play.png"),An()},Yn=function(){Kt.onError&&Kt.onError(),Vn("Error: Fetching material (id "+Kt.material_id+") failed.",Kt)},Ci=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Mi="/materials/"+Kt.material_id+"?scope=basic";fe("https://"+Ci+"/api/proxy.php?path="+encodeURIComponent(Mi),Nn,Yn)};function ve(An){var Nn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Yn){An[Yn]=!!An[Yn]}),Nn.forEach(function(Yn){Kt[Yn]===void 0&&An[Yn]!==void 0&&(Kt[Yn]=An[Yn])}),Kt.showToolBarHelp===void 0&&(Kt.showToolBarHelp=Kt.showToolBar)}function fe(An,Nn,Yn){var Ci=new XMLHttpRequest;Ci.open("GET",An),Ci.onload=function(){Nn(Ci.responseText)},Ci.onerror=Yn,Ci.send()}Fi.isHTML5Installed=function(){return!0},Fi.getLoadedAppletType=function(){return me},Fi.setPreviewImage=function(An,Nn,Yn){ht=An,at=Nn,ft=Yn},Fi.removeExistingApplet=function(An,Nn){var Yn;typeof An=="string"&&(An=document.getElementById(An)),me=null;var Ci=null;for(Yn=0;Yn<An.childNodes.length;Yn++){var Mi=An.childNodes[Yn],Ri=Mi.className;Ri==="applet_screenshot"?Nn?(Mi.style.display="block",me="screenshot"):Mi.style.display="none":Ri!=="applet_scaler prerender"&&(An.removeChild(Mi),Ci=Ri&&Ri.indexOf("appletParameters")!=-1?Mi.id:null,Yn--)}var Te=Kt.id!==void 0?Kt.id:Ci,ci=window[Te];ci&&typeof ci.getBase64=="function"&&(ci.remove(),window[Te]=null)},Fi.refreshHitPoints=function(){if(Rt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var An=Fi.getAppletObject();return An&&typeof An.recalculateEnvironments=="function"?(An.recalculateEnvironments(),!0):!1},Fi.startAnimation=function(){var An=Fi.getAppletObject();return An&&typeof An.startAnimation=="function"?(An.startAnimation(),!0):!1},Fi.stopAnimation=function(){var An=Fi.getAppletObject();return An&&typeof An.stopAnimation=="function"?(An.stopAnimation(),!0):!1},Fi.getAppletObject=function(){var An=Kt.id!==void 0?Kt.id:"ggbApplet";return window[An]},Fi.resize=function(){};var Ye=function(An,Nn,Yn){var Ci=document.createElement("param");Ci.setAttribute("name",Nn),Ci.setAttribute("value",Yn),An.appendChild(Ci)},De=function(An){return An&&An!=="false"},hn=function(An,Nn,Yn){Rt(Ut)<=4.2&&(Yn=!0);var Ci=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ut||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(Ci=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Mi=document.createElement("div");Mi.classList.add("appletParameters","notranslate");var Ri=Nn.width,Te=Nn.height;if(Nn.disableAutoScale=Nn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Nn.disableAutoScale,Nn.width!==void 0)if(Rt(Ut)<=4.4)De(Nn.showToolBar)&&(Nn.height-=7),De(Nn.showAlgebraInput)&&(Nn.height-=37),Nn.width<605&&De(Nn.showToolBar)&&(Nn.width=605,Ri=605);else{var ci=100;(De(Nn.showToolBar)||De(Nn.showMenuBar))&&(Nn.hasOwnProperty("customToolBar")&&(Nn.customToolbar=Nn.customToolBar),ci=De(Nn.showMenuBar)?245:155),Ri<ci&&(Nn.width=ci,Ri=ci)}Mi.style.border="none",Mi.style.display="inline-block";for(var ki in Nn)Nn.hasOwnProperty(ki)&&ki!=="appletOnLoad"&&Mi.setAttribute("data-param-"+ki,Nn[ki]);vt&&Mi.setAttribute("data-param-fontscssurl",vt),Fi.resize=function(){GGBAppletUtils.responsiveResize(An,Nn)},window.addEventListener("resize",function(bt){Fi.resize()});var Dn=typeof Nn.appletOnLoad=="function"?Nn.appletOnLoad:function(){};if(!Yn&&Nn.width!==void 0){Nn.hasOwnProperty("showSplash")||Mi.setAttribute("data-param-showSplash","false");var yi=An.querySelector(".applet_scaler.prerender"),En=yi!==null;if(En)var gn=yi.querySelector(".ggb_preview");else{var gn=fn(Ri,Te,Nn.borderColor,!1);yi=document.createElement("div"),yi.className="applet_scaler",yi.style.position="relative",yi.style.display="block",yi.style.width=Ri+"px",yi.style.height=Te+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yi,"66%"),Rt(Ut)>=5?(Nn.appletOnLoad=function(bt){var Vt=An.querySelector(".ggb_preview");Vt&&Vt.parentNode.removeChild(Vt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(yi),window.GGBT_wsf_view&&$(window).trigger("resize"),Dn(bt)},En||yi.appendChild(gn)):Mi.appendChild(gn),yi.appendChild(Mi),En||An.appendChild(yi),setTimeout(function(){Fi.resize()},1)}else{var Ne=document.createElement("div");Ne.className="applet_scaler",Ne.style.position="relative",Ne.style.display="block",Ne.appendChild(Mi),An.appendChild(Ne),Nn.appletOnLoad=function(bt){Fi.resize(),Dn(bt)}}function Xe(bt,Vt){Vt&&typeof Vt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(bt,Vt.appletOnLoad):renderGGBElement(bt),Vn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Vt)}function wn(bt,Vt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:bt,params:Vt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(le){Xe(le.article,le.params)}),html5AppletsToProcess=null)},Rt(Ut)<5&&(bt.className+=" geogebraweb")):Xe(bt,Vt)}if(Ci){scriptLoadStarted=!0;for(var sn=0;sn<Mi.childNodes.length;sn++){var Wn=Mi.childNodes[sn].tagName;Wn==="TABLE"&&(Mi.removeChild(Mi.childNodes[sn]),sn--)}if(ggbHTML5LoadedScript!==null){var Hn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Hn!=null&&Hn.parentNode.removeChild(Hn)}var Jt=document.createElement("script"),It=function(){wn(Mi,Nn)};Jt.src=se+et,ggbHTML5LoadedCodebaseIsWebSimple=nt,ggbHTML5LoadedCodebaseVersion=Ut,ggbHTML5LoadedScript=Jt.src,Vn("GeoGebra HTML5 codebase loaded: '"+se+"'.",Nn),!Ie&&(!vn||vn=="5.0")?(nt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),It()):se.requirejs?__webpack_require__.e(4184).then(function(){var bt=[__webpack_require__(74620)];It.apply(null,bt)}.bind(this)).catch(__webpack_require__.oe):(Jt.onload=It,An.appendChild(Jt))}else wn(Mi,Nn);Nn.height=Te,Nn.width=Ri},Ue=function(An,Nn,Yn){var Ci=fn(Nn.width,Nn.height,Nn.borderColor,Yn),Mi=document.createElement("div");Mi.style.position="relative",Mi.style.display="block",Mi.style.width=Nn.width+"px",Mi.style.height=Nn.height+"px",Mi.className="applet_screenshot applet_scaler"+(Yn?" applet_screenshot_play":""),Mi.appendChild(Ci);var Ri=GGBAppletUtils.getScale(Nn,An,Yn);Yn?(An.appendChild(un()),window.GGBT_wsf_view||(An.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Mi,"66%"),An.appendChild(Mi),Ri!==1&&!isNaN(Ri)&&(GGBAppletUtils.scaleElement(Mi,Ri),Mi.style.width=Nn.width+"px",Mi.style.height=Nn.height+"px",Mi.parentNode.style.width=Nn.width*Ri+"px",Mi.parentNode.style.height=Nn.height*Ri+"px"),Fi.resize=function(){Pn(An,Ci,Mi,Yn)},window.addEventListener("resize",function(Te){Fi.resize()}),Fi.resize()};function Pn(An,Nn,Yn,Ci){if(An.contains(Nn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(An.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(An)}var Mi=GGBAppletUtils.getScale(Kt,An,Ci);Yn.parentNode!==null&&(!isNaN(Mi)&&Mi!==1?(GGBAppletUtils.scaleElement(Yn,Mi),Yn.parentNode.style.width=Kt.width*Mi+"px",Yn.parentNode.style.height=Kt.height*Mi+"px"):(GGBAppletUtils.scaleElement(Yn,1),Yn.parentNode.style.width=Kt.width+"px",Yn.parentNode.style.height=Kt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(An),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Fi.onExitFullscreen=function(An,Nn){Nn.appendChild(An)};var qn=function(An,Nn,Yn,Ci){Ue(An,Nn,!0);for(var Mi=function(){var ci=[];for(Te=0;Te<An.childNodes.length;Te++)ci.push(An.childNodes[Te]);if(window.GGBT_wsf_view){var ki=window.GGBT_wsf_view.renderFullScreen(An,Nn.id),Dn=document.getElementById("fullscreencontainer"),yi=jQuery(An).find(".fullscreencontent");yi.length>0?(ki.remove(),yi.attr("id","fullscreencontent").show(),jQuery(Dn).append(yi),window.dispatchEvent(new Event("resize"))):hn(ki,Nn,!1),window.GGBT_wsf_view.launchFullScreen(Dn)}else me=Ci,hn(An,Nn,!1);if(!window.GGBT_wsf_view)for(Te=0;Te<ci.length;Te++)An.removeChild(ci[Te])},Ri=An.getElementsByClassName("ggb_preview_play"),Te=0;Te<Ri.length;Te++)Ri[Te].addEventListener("click",Mi,!1),Ri[Te].addEventListener("ontouchstart",Mi,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(An),$t()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},un=function(){var An=document.createElement("div");if(An.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Nn='.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");}',Yn=document.createElement("style");Yn.styleSheet?Yn.styleSheet.cssText=Nn:Yn.appendChild(document.createTextNode(Nn)),document.getElementsByTagName("head")[0].appendChild(Yn)}return An},fn=function(An,Nn,Yn,Ci){var Mi=document.createElement("div");Mi.className="ggb_preview",Mi.style.position="absolute",Mi.style.zIndex="90",Mi.style.width=An-2+"px",Mi.style.height=Nn-2+"px",Mi.style.top="0px",Mi.style.left="0px",Mi.style.overflow="hidden",Mi.style.backgroundColor="white";var Ri="lightgrey";Yn!==void 0&&(Yn==="none"?Ri="transparent":Ri=Yn),Mi.style.border="1px solid "+Ri;var Te=document.createElement("img");if(Te.style.position="relative",Te.style.zIndex="1000",Te.style.top="-1px",Te.style.left="-1px",ht!==null&&Te.setAttribute("src",ht),Te.style.opacity=.7,at!==null){var ci,ki,Dn;if(!Ci){ci=document.createElement("img"),ci.style.position="absolute",ci.style.zIndex="1001",ci.style.opacity=1,Te.style.opacity=.3,ki=360,ki>An/4*3&&(ki=An/4*3),Dn=ki/5.8,ci.setAttribute("src",at),ci.setAttribute("width",ki),ci.setAttribute("height",Dn);var yi=(An-ki)/2,En=(Nn-Dn)/2;ci.style.left=yi+"px",ci.style.top=En+"px",Mi.appendChild(ci)}}return Mi.appendChild(Te),Mi},mn=function(An){return An=An.toLowerCase(),An==="html5"||An==="screenshot"?An:"html5"},pe=["web","webSimple","web3d","tablet","tablet3d","phone"],Xt=function(An,Nn){if(Ut=An,Nn){Ve(Ut,!0);return}var Yn=!ke;if(Yn){var Ci=Rt(Ut);!isNaN(Ci)&&Ci<4.4&&(Yn=!1)}var Mi,Ri;window.location.protocol.substr(0,4)==="http"?Mi=window.location.protocol:Mi="http:";var Te=Ut.indexOf("//");Te>0?Ri=Ut:Te===0?Ri=Mi+Ut:Ri="https://www.geogebra.org/apps/5.2.814.0/";for(var ci in pe)if(Ut.slice(pe[ci].length*-1)===pe[ci]||Ut.slice((pe[ci].length+1)*-1)===pe[ci]+"/"){Ve(Ri,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Yn&&!zt.is3D&&!zt.AV&&!zt.SV&&!zt.CV&&!zt.EV2&&!zt.CP&&!zt.PC&&!zt.DA&&!zt.FI&&!zt.PV&&!De(Kt.showToolBar)&&!De(Kt.showMenuBar)&&!De(Kt.showAlgebraInput)&&!De(Kt.enableRightClick)&&(!Kt.appName||Kt.appName=="classic")?Ri+="webSimple/":Ri+="web3d/",Ve(Ri,!1)},Ve=function(An,Nn){if(An.requirejs){se=An;return}An.slice(-1)!=="/"&&(An+="/"),se=An,Nn===null&&(Nn=An.indexOf("http")===-1),oe=Nn,et="web.nocache.js",nt=!1;var Yn=se.split("/");Yn.length>1&&(!Nn&&Yn[Yn.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):pe.indexOf(Yn[Yn.length-2])>=0&&(et=Yn[Yn.length-2]+".nocache.js")),Yn=An.split("/"),Ut=Yn[Yn.length-3],Ut.substr(0,4)==="test"?Ut=Ut.substr(4,1)+"."+Ut.substr(5,1):(Ut.substr(0,3)==="war"||Ut.substr(0,4)==="beta")&&(Ut="5.0");var Ci=parseFloat(Ut);Ci!==NaN&&Ci<5&&An.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ci+" is deprecated. Using version latest instead."),Xt("5.0",Nn))},Vn=function(An,Nn){window.console&&window.console.log&&(!Nn||typeof Nn.showLogging=="undefined"||Nn.showLogging&&Nn.showLogging!=="false")&&console.log(An)};Kt.material_id!==void 0?ae(si):si();function si(){var An=Ti;vn!==null?An=vn:parseFloat(An)<5&&(An="5.0"),Xt(An,!1),Ie!==null&&Ve(Ie,oe),Be=!0}return Fi},GGBAppletUtils=function(){"use strict";function Fi(){return window.GGBT_wsf_edit!==void 0}function Ti(Be,vn){vn!=1?(Be.style.transformOrigin="0% 0% 0px",Be.style.webkitTransformOrigin="0% 0% 0px",Be.style.transform="scale("+vn+","+vn+")",Be.style.webkitTransform="scale("+vn+","+vn+")",Be.style.maxWidth="initial",Be.querySelector(".ggb_preview")!==null&&(Be.querySelector(".ggb_preview").style.maxWidth="initial"),Be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Be.style.transform="none",Be.style.webkitTransform="none")}function Kt(Be,vn,Ie,ge,ye,Nt){var se=null;if(Nt!=null&&Nt!="")for(var oe=Be.parentNode;oe!=null;)if((" "+oe.className+" ").indexOf(" "+Nt+" ")>-1){se=oe;break}else oe=oe.parentNode;var me=0,Ut=0,et=0,nt=0,ht=0,at=0,ft=0;if(se)me=se.offsetWidth,Ut=Math.max(ge?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(me=Math.min(window.innerWidth,document.documentElement.clientWidth),Ut=Math.min(window.innerHeight,document.documentElement.clientHeight),et=me):(me=window.innerWidth,Ut=window.innerHeight,et=window.innerWidth),Be){var vt=Be.getBoundingClientRect();vt.left>0&&vt.left<=me&&(ye===void 0||!ye)&&(document.dir==="rtl"?(ht=me-vt.width-vt.left,at=et<=480?10:30):(at=vt.left,ht=et<=480?10:30),nt=at+ht)}if(Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Mt=Be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,ft=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,ft=40)}}return Be&&((Ie===void 0||!Ie)&&vn>0&&vn+nt<me?me=vn:me-=nt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie===void 0||!Ie)&&(Ut-=ft)),{width:me,height:Ut}}function zt(Be,vn,Ie,ge,ye){if(Be.isScreenshoGenerator)return 1;var Nt=ge!==void 0&&ge,se=Be.noScaleMargin!=null&&Be.noScaleMargin,oe=function(Mt){return Mt&&Mt!=="false"},me=oe(Be.autoHeight),Ut=Kt(vn,Be.width,Ie,me,Nt&&window.GGBT_wsf_view||se,ye),et=parseInt(Ut.width),nt=Be.width,ht=Be.height;if(nt===void 0){var at=vn.querySelector(".appletParameters");at&&(nt=at.offsetWidth,ht=at.offsetHeight)}var ft=et/nt,vt=Nt?1:Ut.height/ht;return Ie!==void 0&&!Ie&&(ft=Math.min(1,ft),vt=Math.min(1,vt)),Math.min(ft,vt)}function ke(Be,vn,Ie){var ge=1,ye,Nt=!1;if(Be.hasOwnProperty("allowUpscale")&&(Nt=Be.allowUpscale),Be.hasOwnProperty("scale")&&(ge=parseFloat(Be.scale),(isNaN(ge)||ge===null||ge===0)&&(ge=1),ge>1&&(Nt=!0)),vn&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Nt=!0),!(Be.hasOwnProperty("disableAutoScale")&&Be.disableAutoScale))ye=zt(Be,vn,Nt,Ie,Be.scaleContainerClass);else return ge;return Nt&&(!Be.hasOwnProperty("scale")||ge===1)?ye:Math.min(ge,ye)}function Oe(Be){var vn=Math.min(window.innerWidth,document.documentElement.clientWidth),Ie=Math.min(window.innerHeight,document.documentElement.clientHeight),ge=Be.getBoundingClientRect(),ye=(vn-ge.width)/2,Nt=(Ie-ge.height)/2;Nt<0&&(Nt=0),Be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ye<40?Be.style.left="40px":Be.style.left=ye+"px",Be.style.top=Nt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Nt<40?Be.style.top="40px":Be.style.top=Nt+"px",Be.style.left=ye+"px")}function Cn(Be,vn){var Ie=Be.querySelector(".appletParameters");if(Ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vn.id!==Ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Be)}if(Ie.parentElement&&/fullscreen/.test(Ie.parentElement.className))return;var ge=ke(vn,Be);Fi()&&Ie.setAttribute("data-param-scale",ge);for(var ye=null,Nt=0;Nt<Be.childNodes.length;Nt++)if(Be.childNodes[Nt].className!==void 0&&Be.childNodes[Nt].className.match(/^applet_scaler/)){ye=Be.childNodes[Nt];break}if(ye!==null&&ye.querySelector(".noscale")!==null)return;var se=vn.id!==void 0?vn.id:"ggbApplet",oe=window[se];(oe==null||!oe.recalculateEnvironments)&&ye!==null&&!ye.className.match(/fullscreen/)&&(ye.parentNode.style.transform="",!isNaN(ge)&&ge!==1?(ye.parentNode.style.width=vn.width*ge+"px",ye.parentNode.style.height=vn.height*ge+"px",Ti(ye,ge)):(Ti(ye,1),ye.parentNode.style.width=vn.width+"px",ye.parentNode.style.height=vn.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Oe(Be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ie).parents(".content-added-content"))}}return{responsiveResize:Cn,isFlexibleWorksheetEditor:Fi,positionCenter:Oe,getScale:ke,scaleElement:Ti}}();__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 Fi=n.location.search;return Fi.indexOf(J)!=-1||Fi.indexOf(K)!=-1}function q(Fi,Ti){}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(Fi){var Ti=s[L].bindings;s[L].bindings=function(){for(var Kt=Ti?Ti():{},zt=Fi[webModule.__softPermutationId],ke=O;ke<zt.length;ke++){var Oe=zt[ke];Kt[Oe[O]]=Oe[P]}return Kt}};var t;function u(){return v(),t}function v(){if(!t){var Fi=o.createElement(Q);if(Fi.id=L,Fi.style.cssText=R+S,Fi.tabIndex=-1,o.body.appendChild(Fi),t=Fi.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ti=document.compatMode==U?V:W;t.write(Ti+X),t.close()}}}function w(Fi){function Ti(zt){function ke(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Oe=ke();if(Oe){zt();return}function Cn(){if(!Oe){if(!ke())return;Oe=!0,zt(),o.removeEventListener&&o.removeEventListener(Z,Cn,!1),Be&&clearInterval(Be)}}o.addEventListener&&o.addEventListener(Z,Cn,!1);var Be=setInterval(function(){Cn()},$)}function Kt(zt){var ke=u(),Oe=ke.body,Cn=ke.createElement(_);Cn.language=ab,Cn.crossOrigin=W,Cn.src=zt,webModule.__errFn&&(Cn.onerror=function(){webModule.__errFn(L,new Error(bb+zt))}),Oe.appendChild(Cn)}Ti(function(){Kt(Fi)})}webModule.__startLoadingFragment=function(Fi){return C(Fi)},webModule.__installRunAsyncCode=function(Fi){var Ti=u(),Kt=Ti.body,zt=Ti.createElement(_);zt.language=ab,zt.text=Fi,Kt.appendChild(zt),Kt.removeChild(zt)};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(Fi){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Fi){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Fi){var Ti=c[Fi];return Ti==null?null:Ti},r=d,webModule.__errFn=e}function B(){function Fi(Be){var vn=Be.lastIndexOf(rb);vn==-1&&(vn=Be.length);var Ie=Be.indexOf(sb);Ie==-1&&(Ie=Be.length);var ge=Be.lastIndexOf(tb,Math.min(Ie,vn));return ge>=O?Be.substring(O,ge+P):W}function Ti(Be){if(!Be.match(/^\w+:\/\//)){var vn=o.createElement(ub);vn.src=Be+vb,Be=Fi(vn.src)}return Be}function Kt(){var Be=__gwt_getMetaProperty(wb);return Be!=null?Be:W}function zt(){for(var Be=o.getElementsByTagName(_),vn=O;vn<Be.length;++vn)if(Be[vn].src.indexOf(xb)!=-1)return Fi(Be[vn].src);return W}function ke(){var Be=o.getElementsByTagName(yb);return Be.length>O?Be[Be.length-P].href:W}function Oe(){var Be=o.location;return Be.href==Be.protocol+zb+Be.host+Be.pathname+Be.search+Be.hash}var Cn=Kt();return Cn==W&&(Cn=zt()),Cn==W&&(Cn=ke()),Cn==W&&Oe()&&(Cn=Fi(o.location.href)),Cn=Ti(Cn),Cn}function C(Fi){return Fi.match(/^\//)||Fi.match(/^[a-zA-Z]+:\/\//)?Fi:webModule.__moduleBase+Fi}function D(){var Fi=[],Ti=O,Kt=[],zt=[];function ke(Be){var vn=zt[Be](),Ie=Kt[Be];if(vn in Ie)return vn;var ge=[];for(var ye in Ie)ge[Ie[ye]]=ye;throw r&&r(Be,ge,vn),null}if(__gwt_isKnownPropertyValue=function(Be,vn){return vn in Kt[Be]},webModule.__getPropMap=function(){var Be={};for(var vn in Kt)Kt.hasOwnProperty(vn)&&(Be[vn]=ke(vn));return Be},webModule.__computePropValue=ke,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Oe;try{Oe=Cb;var Cn=Oe.indexOf(Db);Cn!=-1&&(Ti=parseInt(Oe.substring(Cn+P),$),Oe=Oe.substring(O,Cn))}catch(Be){}return webModule.__softPermutationId=Ti,C(Oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Ax:function(){return Cn},Ds:function(){return Be},KI:function(){return Ie},SI:function(){return Oe},f1:function(){return ke}});var zt=Kt(3294);function ke(ge){let ye=!0;if(ge.length>0){for(let Nt=0;Nt<ge.length;Nt++)if(ge[Nt].compile_success==0||!ge[Nt].compile_success){ye=!1;break}}else ye=!1;return ye}function Oe(ge,ye=""){let Nt=[];for(let se=0;se<ge.length;se++){let oe=ge[se],me=ye?`${ye}/${oe.name}`:`${oe.name}`;Nt.push({title:oe.name,type:oe.type,isLeaf:oe.type!=="tree",key:me})}return Nt}function Cn(ge,ye,Nt){for(let se=0;se<ge.length;se++){let oe=ge[se];if(oe.key===ye){oe.children=Nt;break}oe.children&&Cn(oe.children,ye,Nt)}return ge}function Be(ge,ye,Nt){let se;return function(){let oe=this,me=arguments,Ut=function(){se=null,Nt||ge.apply(oe,me)},et=Nt&&!se;clearTimeout(se),se=setTimeout(Ut,ye),et&&ge.apply(oe,me)}}const vn=!0,Ie=zt.Z.API_SERVER},16406:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return Hn}});var zt=Kt(59301),ke={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Oe=Kt(92310),Cn=Kt.n(Oe),Be=Kt(71418);var vn=function(Jt,It){return(vn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(bt,Vt){bt.__proto__=Vt}||function(bt,Vt){for(var le in Vt)Object.prototype.hasOwnProperty.call(Vt,le)&&(bt[le]=Vt[le])})(Jt,It)};function Ie(Jt,It){function bt(){this.constructor=Jt}vn(Jt,It),Jt.prototype=It===null?Object.create(It):(bt.prototype=It.prototype,new bt)}function ge(Jt,It,bt,Vt){return new(bt||(bt=Promise))(function(le,Ot){function be(ii){try{Zn(Vt.next(ii))}catch(wi){Ot(wi)}}function pn(ii){try{Zn(Vt.throw(ii))}catch(wi){Ot(wi)}}function Zn(ii){var wi;ii.done?le(ii.value):(wi=ii.value,wi instanceof bt?wi:new bt(function(Nr){Nr(wi)})).then(be,pn)}Zn((Vt=Vt.apply(Jt,It||[])).next())})}function ye(Jt,It){var bt,Vt,le,Ot,be={label:0,sent:function(){if(1&le[0])throw le[1];return le[1]},trys:[],ops:[]};return Ot={next:pn(0),throw:pn(1),return:pn(2)},typeof Symbol=="function"&&(Ot[Symbol.iterator]=function(){return this}),Ot;function pn(Zn){return function(ii){return function(wi){if(bt)throw new TypeError("Generator is already executing.");for(;be;)try{if(bt=1,Vt&&(le=2&wi[0]?Vt.return:wi[0]?Vt.throw||((le=Vt.return)&&le.call(Vt),0):Vt.next)&&!(le=le.call(Vt,wi[1])).done)return le;switch(Vt=0,le&&(wi=[2&wi[0],le.value]),wi[0]){case 0:case 1:le=wi;break;case 4:return be.label++,{value:wi[1],done:!1};case 5:be.label++,Vt=wi[1],wi=[0];continue;case 7:wi=be.ops.pop(),be.trys.pop();continue;default:if(le=be.trys,!((le=le.length>0&&le[le.length-1])||wi[0]!==6&&wi[0]!==2)){be=0;continue}if(wi[0]===3&&(!le||wi[1]>le[0]&&wi[1]<le[3])){be.label=wi[1];break}if(wi[0]===6&&be.label<le[1]){be.label=le[1],le=wi;break}if(le&&be.label<le[2]){be.label=le[2],be.ops.push(wi);break}le[2]&&be.ops.pop(),be.trys.pop();continue}wi=It.call(Jt,be)}catch(Nr){wi=[6,Nr],Vt=0}finally{bt=le=0}if(5&wi[0])throw wi[1];return{value:wi[0]?wi[1]:void 0,done:!0}}([Zn,ii])}}}function Nt(){for(var Jt=0,It=0,bt=arguments.length;It<bt;It++)Jt+=arguments[It].length;var Vt=Array(Jt),le=0;for(It=0;It<bt;It++)for(var Ot=arguments[It],be=0,pn=Ot.length;be<pn;be++,le++)Vt[le]=Ot[be];return Vt}var se=function(){function Jt(){}return Jt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Jt.setAttributes=function(It,bt){for(var Vt=0,le=bt;Vt<le.length;Vt++){var Ot=le[Vt],be=Ot[0],pn=Ot[1];It.setAttribute(be,pn)}},Jt.createRect=function(It,bt,Vt){var le=document.createElementNS("http://www.w3.org/2000/svg","rect");return le.setAttribute("width",It.toString()),le.setAttribute("height",bt.toString()),Vt&&Jt.setAttributes(le,Vt),le},Jt.createLine=function(It,bt,Vt,le,Ot){var be=document.createElementNS("http://www.w3.org/2000/svg","line");return be.setAttribute("x1",It.toString()),be.setAttribute("y1",bt.toString()),be.setAttribute("x2",Vt.toString()),be.setAttribute("y2",le.toString()),Ot&&Jt.setAttributes(be,Ot),be},Jt.createPolygon=function(It,bt){var Vt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Vt.setAttribute("points",It),bt&&Jt.setAttributes(Vt,bt),Vt},Jt.createCircle=function(It,bt){var Vt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Vt.setAttribute("cx",(It/2).toString()),Vt.setAttribute("cy",(It/2).toString()),Vt.setAttribute("r",It.toString()),bt&&Jt.setAttributes(Vt,bt),Vt},Jt.createEllipse=function(It,bt,Vt){var le=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return le.setAttribute("cx",(It/2).toString()),le.setAttribute("cy",(bt/2).toString()),le.setAttribute("rx",(It/2).toString()),le.setAttribute("ry",(bt/2).toString()),Vt&&Jt.setAttributes(le,Vt),le},Jt.createGroup=function(It){var bt=document.createElementNS("http://www.w3.org/2000/svg","g");return It&&Jt.setAttributes(bt,It),bt},Jt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Jt.createMarker=function(It,bt,Vt,le,Ot,be,pn){var Zn=document.createElementNS("http://www.w3.org/2000/svg","marker");return Jt.setAttributes(Zn,[["id",It],["orient",bt],["markerWidth",Vt.toString()],["markerHeight",le.toString()],["refX",Ot.toString()],["refY",be.toString()]]),Zn.appendChild(pn),Zn},Jt.createText=function(It){var bt=document.createElementNS("http://www.w3.org/2000/svg","text");return bt.setAttribute("x","0"),bt.setAttribute("y","0"),It&&Jt.setAttributes(bt,It),bt},Jt.createTSpan=function(It,bt){var Vt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Vt.textContent=It,bt&&Jt.setAttributes(Vt,bt),Vt},Jt.createImage=function(It){var bt=document.createElementNS("http://www.w3.org/2000/svg","image");return It&&Jt.setAttributes(bt,It),bt},Jt.createPoint=function(It,bt){var Vt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Vt.x=It,Vt.y=bt,Vt},Jt.createPath=function(It,bt){var Vt=document.createElementNS("http://www.w3.org/2000/svg","path");return Vt.setAttribute("d",It),bt&&Jt.setAttributes(Vt,bt),Vt},Jt}(),oe=function(){function Jt(){}return Jt.addKey=function(It){Jt.key=It},Object.defineProperty(Jt,"isLicensed",{get:function(){return!!Jt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Jt.key)},enumerable:!1,configurable:!0}),Jt}(),me=function(){function Jt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Jt.prototype.rasterize=function(It,bt,Vt){var le=this;return new Promise(function(Ot){var be=Vt!==void 0?Vt:document.createElement("canvas");It===null&&(le.markersOnly=!0,le.naturalSize=!1);var pn=document.createElementNS("http://www.w3.org/2000/svg","svg");pn.setAttribute("xmlns","http://www.w3.org/2000/svg"),pn.setAttribute("width",bt.width.baseVal.valueAsString),pn.setAttribute("height",bt.height.baseVal.valueAsString),pn.setAttribute("viewBox","0 0 "+bt.viewBox.baseVal.width.toString()+" "+bt.viewBox.baseVal.height.toString()),pn.innerHTML=bt.innerHTML,le.naturalSize===!0?(pn.width.baseVal.value=It.naturalWidth,pn.height.baseVal.value=It.naturalHeight):le.width!==void 0&&le.height!==void 0&&(pn.width.baseVal.value=le.width,pn.height.baseVal.value=le.height),be.width=pn.width.baseVal.value,be.height=pn.height.baseVal.value;var Zn=pn.outerHTML,ii=be.getContext("2d");le.markersOnly!==!0&&ii.drawImage(It,0,0,be.width,be.height);var wi=window.URL,Nr=new Image(be.width,be.height);Nr.setAttribute("crossOrigin","anonymous");var _r=new Blob([Zn],{type:"image/svg+xml"}),Tr=wi.createObjectURL(_r);Nr.onload=function(){ii.drawImage(Nr,0,0),wi.revokeObjectURL(Tr);var po=be.toDataURL(le.imageType,le.imageQuality);Ot(po)},Nr.src=Tr})},Jt}(),Ut=function(){},et=function(){function Jt(It){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+It+"_"}return Object.defineProperty(Jt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Jt.prototype.addClass=function(It){return this.styleSheet===void 0&&this.addStyleSheet(),It.name=""+this.classNamePrefix+It.localName,this.classes.push(It),this.styleSheet.sheet.insertRule("."+It.name+" {"+It.style+"}",this.styleSheet.sheet.cssRules.length),It},Jt.prototype.addRule=function(It){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(It),this.styleSheet.sheet.insertRule(It.selector+" {"+It.style+"}",this.styleSheet.sheet.cssRules.length)},Jt.prototype.addStyleSheet=function(){var It;this.styleSheet=document.createElement("style"),((It=this.styleSheetRoot)!==null&&It!==void 0?It:document.head).appendChild(this.styleSheet),this.addRule(new nt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ht("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ht("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Jt.prototype.removeStyleSheet=function(){var It;this.styleSheet&&(((It=this.styleSheetRoot)!==null&&It!==void 0?It:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Jt}(),nt=function(Jt,It){this.selector=Jt,this.style=It},ht=function(Jt,It){this.localName=Jt,this.style=It},at=function(){function Jt(It,bt,Vt,le,Ot){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=It,this.displayMode=bt,this.markerItems=Vt,this.uiStyleSettings=le,this.styles=Ot,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Jt.prototype.show=function(It){var bt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=It,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Vt=document.createElement("div");Vt.className=this.toolbarBlockStyleClass.name,Vt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Vt),this.addActionButton(Vt,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Vt,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Vt,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Vt,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Vt,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Vt,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Vt,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Vt,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Ot){var be=document.createElement("div");be.className=""+bt.toolbarButtonStyleClass.name,be.setAttribute("data-type-name",Ot.typeName),be.innerHTML=Ot.icon,be.addEventListener("click",function(){bt.markerToolbarButtonClicked(be,Ot)}),bt.buttons.push(be),bt.markerButtons.push(be)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var le=document.createElement("div");le.className=this.toolbarBlockStyleClass.name,le.style.whiteSpace="nowrap",le.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(le),this.addActionButton(le,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(le,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Jt.prototype.addButtonClickListener=function(It){this.buttonClickListeners.push(It)},Jt.prototype.removeButtonClickListener=function(It){this.buttonClickListeners.indexOf(It)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(It),1)},Jt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Jt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var It=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var bt=0;bt<this.markerButtons.length;bt++)bt<It||bt===It&&this.markerButtons.length-1===It?this.markerButtonBlock.appendChild(this.markerButtons[bt]):(bt===It&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[bt]))}},Jt.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Jt.prototype.resetButtonStyles=function(){var It=this;this.buttons.forEach(function(bt){bt.className=bt.className.replace(It.uiStyleSettings.toolbarButtonStyleColorsClassName?It.uiStyleSettings.toolbarButtonStyleColorsClassName:It.toolbarButtonStyleColorsClass.name,"").trim(),bt.className=bt.className.replace(It.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?It.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:It.toolbarActiveButtonStyleColorsClass.name,"").trim(),bt.className+=" "+(It.uiStyleSettings.toolbarButtonStyleColorsClassName?It.uiStyleSettings.toolbarButtonStyleColorsClassName:It.toolbarButtonStyleColorsClass.name)})},Jt.prototype.addActionButton=function(It,bt,Vt){var le=this,Ot=document.createElement("div");switch(Ot.className=""+this.toolbarButtonStyleClass.name,Ot.innerHTML=bt,Ot.setAttribute("data-action",Vt),Ot.addEventListener("click",function(){le.actionToolbarButtonClicked(Ot,Vt)}),Vt){case"select":Ot.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ot.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ot.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ot.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ot.style.fill=this.uiStyleSettings.closeButtonColor}It.appendChild(Ot),this.buttons.push(Ot)},Jt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ht("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ht("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ht("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ht("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ht("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var It=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ht("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*It)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*It)+`px;
padding: `+It+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ht("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ht("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Jt.prototype.markerToolbarButtonClicked=function(It,bt){this.setActiveButton(It),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Vt){return Vt("marker",bt)}),this.markerButtonOverflowBlock.style.display="none"},Jt.prototype.actionToolbarButtonClicked=function(It,bt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Vt){return Vt("action",bt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Jt.prototype.setActiveButton=function(It){this.resetButtonStyles(),It.className=It.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),It.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Jt.prototype.setActiveMarkerButton=function(It){var bt=this.markerButtons.find(function(Vt){return Vt.getAttribute("data-type-name")===It});bt&&this.setActiveButton(bt)},Jt.prototype.setCurrentMarker=function(It){var bt=this;this.currentMarker=It,this.buttons.filter(function(Vt){return/delete|notes/.test(Vt.getAttribute("data-action"))}).forEach(function(Vt){bt.currentMarker===void 0?(Vt.style.fillOpacity="0.4",Vt.style.pointerEvents="none"):(Vt.style.fillOpacity="1",Vt.style.pointerEvents="all")})},Jt}(),ft=function(){function Jt(It,bt,Vt,le){this.panels=[],this.panelButtons=[],this.markerjsContainer=It,this.displayMode=bt,this.uiStyleSettings=Vt,this.styles=le,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Jt.prototype.addStyles=function(){var It;this.toolboxStyleClass=this.styles.addClass(new ht("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ht("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var bt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ht("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ht("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ht("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ht("toolbox-panel-row_colors",`
background-color: `+((It=this.uiStyleSettings.toolboxBackgroundColor)!==null&&It!==void 0?It:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ht("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*bt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*bt)+`px;
padding: `+bt+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ht("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ht("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Jt.prototype.show=function(It){var bt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=It,this.uiContainer.className=this.toolboxStyleClass.name+" "+((bt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&bt!==void 0?bt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Jt.prototype.setPanelButtons=function(It){var bt,Vt,le=this;this.panels=It,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((bt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&bt!==void 0?bt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Vt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Vt!==void 0?Vt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ot){var be;Ot.uiStyleSettings=le.uiStyleSettings;var pn=document.createElement("div");pn.className=le.toolboxButtonStyleClass.name+" "+((be=le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&be!==void 0?be:le.toolboxButtonStyleColorsClass.name),pn.innerHTML=Ot.icon,pn.title=Ot.title,pn.addEventListener("click",function(){le.panelButtonClick(Ot)}),le.panelButtons.push(pn),le.buttonRow.appendChild(pn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Jt.prototype.panelButtonClick=function(It){var bt=this,Vt=-1;if(It!==this.activePanel){Vt=this.panels.indexOf(It),this.panelRow.innerHTML="";var le=It.getUi();le.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(le),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=It}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){bt.displayMode==="inline"?bt.panelRow.style.display="none":bt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ot,be){var pn,Zn;Ot.className=bt.toolboxButtonStyleClass.name+" "+(be===Vt?""+((pn=bt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&pn!==void 0?pn:bt.toolboxActiveButtonStyleColorsClass.name):""+((Zn=bt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Zn!==void 0?Zn:bt.toolboxButtonStyleColorsClass.name))})},Jt}(),vt=function(Jt,It){this.title=Jt,this.icon=It},Mt=function(Jt){function It(bt,Vt,le,Ot){var be=Jt.call(this,bt,Ot||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return be.colors=[],be.addTransparent=!1,be.colorBoxes=[],be.colors=Vt,be.currentColor=le,be.setCurrentColor=be.setCurrentColor.bind(be),be.getColorBox=be.getColorBox.bind(be),be}return Ie(It,Jt),It.prototype.getUi=function(){var bt=this,Vt=document.createElement("div");return Vt.style.overflow="hidden",Vt.style.whiteSpace="nowrap",this.colors.forEach(function(le){var Ot=bt.getColorBox(le);Vt.appendChild(Ot),bt.colorBoxes.push(Ot)}),Vt},It.prototype.getColorBox=function(bt){var Vt=this,le=this.uiStyleSettings.toolbarHeight/4,Ot=this.uiStyleSettings.toolbarHeight-le,be=document.createElement("div");be.style.display="inline-block",be.style.boxSizing="content-box",be.style.width=Ot-2+"px",be.style.height=Ot-2+"px",be.style.padding="1px",be.style.marginRight="2px",be.style.marginBottom="2px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderRadius=(Ot+2)/2+"px",be.style.borderColor=bt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Vt.setCurrentColor(bt,be)});var pn=document.createElement("div");return pn.style.display="inline-block",pn.style.width=Ot-2+"px",pn.style.height=Ot-2+"px",pn.style.backgroundColor=bt,pn.style.borderRadius=Ot/2+"px",bt==="transparent"&&(pn.style.fill=this.uiStyleSettings.toolboxAccentColor,pn.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),be.appendChild(pn),be},It.prototype.setCurrentColor=function(bt,Vt){var le=this;this.currentColor=bt,this.colorBoxes.forEach(function(Ot){Ot.style.borderColor=Ot===Vt?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(bt)},It}(vt),Rt=function(){function Jt(It,bt,Vt){this._state="new",this._isSelected=!1,this._container=It,this._overlayContainer=bt,this.globalSettings=Vt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Jt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Jt.prototype.ownsTarget=function(It){return!1},Object.defineProperty(Jt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Jt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Jt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Jt.prototype.pointerDown=function(It,bt){},Jt.prototype.dblClick=function(It,bt){},Jt.prototype.manipulate=function(It){},Jt.prototype.pointerUp=function(It){this.stateChanged()},Jt.prototype.dispose=function(){},Jt.prototype.addMarkerVisualToContainer=function(It){this.container.childNodes.length>0?this.container.insertBefore(It,this.container.childNodes[0]):this.container.appendChild(It)},Jt.prototype.getState=function(){return{typeName:Jt.typeName,state:this.state,notes:this.notes}},Jt.prototype.restoreState=function(It){this._state=It.state,this.notes=It.notes},Jt.prototype.scale=function(It,bt){},Jt.prototype.colorChanged=function(It){this.onColorChanged&&this.onColorChanged(It),this.stateChanged()},Jt.prototype.fillColorChanged=function(It){this.onFillColorChanged&&this.onFillColorChanged(It),this.stateChanged()},Jt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var It=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),It.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(It)&&this.onStateChanged(this)}},Jt.typeName="MarkerBase",Jt}(),Gt=function(){function Jt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Jt.prototype.findGripByVisual=function(It){return this.topLeft.ownsTarget(It)?this.topLeft:this.topCenter.ownsTarget(It)?this.topCenter:this.topRight.ownsTarget(It)?this.topRight:this.centerLeft.ownsTarget(It)?this.centerLeft:this.centerRight.ownsTarget(It)?this.centerRight:this.bottomLeft.ownsTarget(It)?this.bottomLeft:this.bottomCenter.ownsTarget(It)?this.bottomCenter:this.bottomRight.ownsTarget(It)?this.bottomRight:void 0},Jt}(),$t=function(){function Jt(){this.GRIP_SIZE=10,this.visual=se.createGroup(),this.visual.appendChild(se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(se.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Jt.prototype.ownsTarget=function(It){return It===this.visual||It===this.visual.childNodes[0]||It===this.visual.childNodes[1]},Jt}(),ae=function(){function Jt(){}return Jt.toITransformMatrix=function(It){return{a:It.a,b:It.b,c:It.c,d:It.d,e:It.e,f:It.f}},Jt.toSVGMatrix=function(It,bt){return It.a=bt.a,It.b=bt.b,It.c=bt.c,It.d=bt.d,It.e=bt.e,It.f=bt.f,It},Jt}(),ve=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.left=0,Ot.top=0,Ot.width=0,Ot.height=0,Ot.defaultSize={x:50,y:20},Ot.offsetX=0,Ot.offsetY=0,Ot.rotationAngle=0,Ot.CB_DISTANCE=10,Ot._suppressMarkerCreateEvent=!1,Ot.container.transform.baseVal.appendItem(se.createTransform()),Ot.setupControlBox(),Ot}return Ie(It,Jt),Object.defineProperty(It.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"visual",{get:function(){return this._visual},set:function(bt){this._visual=bt;var Vt=se.createTransform();this._visual.transform.baseVal.appendItem(Vt)},enumerable:!1,configurable:!0}),It.prototype.ownsTarget=function(bt){return!!Jt.prototype.ownsTarget.call(this,bt)||!!(this.controlGrips.findGripByVisual(bt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(bt))},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.state==="new"&&(this.left=bt.x,this.top=bt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var le=this.unrotatePoint(bt);if(this.manipulationStartX=le.x,this.manipulationStartY=le.y,this.offsetX=le.x-this.left,this.offsetY=le.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Vt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Vt)){this.activeGrip=this.rotatorGrip;var Ot=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ot.x-this.width/2,this.top=Ot.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var be=this.container.transform.baseVal.getItem(0);be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(be,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},It.prototype.pointerUp=function(bt){var Vt=this.state;Jt.prototype.pointerUp.call(this,bt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(bt),this._state="select",Vt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},It.prototype.moveVisual=function(bt){this.visual.style.transform="translate("+bt.x+"px, "+bt.y+"px)"},It.prototype.manipulate=function(bt){var Vt=this.unrotatePoint(bt);this.state==="creating"?this.resize(bt):this.state==="move"?(this.left=this.manipulationStartLeft+(Vt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Vt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Vt):this.state==="rotate"&&this.rotate(bt)},It.prototype.resize=function(bt){var Vt=this.manipulationStartLeft,le=this.manipulationStartWidth,Ot=this.manipulationStartTop,be=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Vt=this.manipulationStartLeft+bt.x-this.manipulationStartX,le=this.manipulationStartWidth+this.manipulationStartLeft-Vt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:le=this.manipulationStartWidth+bt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ot=this.manipulationStartTop+bt.y-this.manipulationStartY,be=this.manipulationStartHeight+this.manipulationStartTop-Ot;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:be=this.manipulationStartHeight+bt.y-this.manipulationStartY}le>=0?(this.left=Vt,this.width=le):(this.left=Vt+le,this.width=-le),be>=0?(this.top=Ot,this.height=be):(this.top=Ot+be,this.height=-be),this.setSize()},It.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},It.prototype.rotate=function(bt){if(Math.abs(bt.x-this.centerX)>.1){var Vt=Math.sign(bt.x-this.centerX);this.rotationAngle=180*Math.atan((bt.y-this.centerY)/(bt.x-this.centerX))/Math.PI+90*Vt,this.applyRotation()}},It.prototype.applyRotation=function(){var bt=this.container.transform.baseVal.getItem(0);bt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(bt,0)},It.prototype.rotatePoint=function(bt){if(this.rotationAngle===0)return bt;var Vt=this.container.getCTM(),le=se.createPoint(bt.x,bt.y);return{x:(le=le.matrixTransform(Vt)).x,y:le.y}},It.prototype.unrotatePoint=function(bt){if(this.rotationAngle===0)return bt;var Vt=this.container.getCTM();Vt=Vt.inverse();var le=se.createPoint(bt.x,bt.y);return{x:(le=le.matrixTransform(Vt)).x,y:le.y}},It.prototype.select=function(){Jt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},It.prototype.deselect=function(){Jt.prototype.deselect.call(this),this.controlBox.style.display="none"},It.prototype.setupControlBox=function(){this.controlBox=se.createGroup();var bt=se.createTransform();bt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(bt),this.container.appendChild(this.controlBox),this.controlRect=se.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=se.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Gt,this.addControlGrips(),this.controlBox.style.display="none"},It.prototype.adjustControlBox=function(){var bt=this.controlBox.transform.baseVal.getItem(0);bt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(bt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},It.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},It.prototype.createGrip=function(){var bt=new $t;return bt.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(bt.visual),bt},It.prototype.positionGrips=function(){var bt=this.controlGrips.topLeft.GRIP_SIZE,Vt=-bt/2,le=Vt,Ot=(this.width+this.CB_DISTANCE)/2-bt/2,be=(this.height+this.CB_DISTANCE)/2-bt/2,pn=this.height+this.CB_DISTANCE-bt/2,Zn=this.width+this.CB_DISTANCE-bt/2;this.positionGrip(this.controlGrips.topLeft.visual,Vt,le),this.positionGrip(this.controlGrips.topCenter.visual,Ot,le),this.positionGrip(this.controlGrips.topRight.visual,Zn,le),this.positionGrip(this.controlGrips.centerLeft.visual,Vt,be),this.positionGrip(this.controlGrips.centerRight.visual,Zn,be),this.positionGrip(this.controlGrips.bottomLeft.visual,Vt,pn),this.positionGrip(this.controlGrips.bottomCenter.visual,Ot,pn),this.positionGrip(this.controlGrips.bottomRight.visual,Zn,pn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ot,le-3*this.CB_DISTANCE)},It.prototype.positionGrip=function(bt,Vt,le){var Ot=bt.transform.baseVal.getItem(0);Ot.setTranslate(Vt,le),bt.transform.baseVal.replaceItem(Ot,0)},It.prototype.hideControlBox=function(){this.controlBox.style.display="none"},It.prototype.showControlBox=function(){this.controlBox.style.display=""},It.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ae.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ae.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Jt.prototype.getState.call(this))},It.prototype.restoreState=function(bt){Jt.prototype.restoreState.call(this,bt);var Vt=bt;this.left=Vt.left,this.top=Vt.top,this.width=Vt.width,this.height=Vt.height,this.rotationAngle=Vt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ae.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Vt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ae.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Vt.containerTransformMatrix))},It.prototype.scale=function(bt,Vt){Jt.prototype.scale.call(this,bt,Vt);var le=this.rotatePoint({x:this.left,y:this.top}),Ot=this.unrotatePoint({x:le.x*bt,y:le.y*Vt});this.left=Ot.x,this.top=Ot.y,this.width=this.width*bt,this.height=this.height*Vt,this.adjustControlBox()},It}(Rt),fe=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.fillColor="transparent",Ot.strokeColor="transparent",Ot.strokeWidth=0,Ot.strokeDasharray="",Ot.opacity=1,Ot.setStrokeColor=Ot.setStrokeColor.bind(Ot),Ot.setFillColor=Ot.setFillColor.bind(Ot),Ot.setStrokeWidth=Ot.setStrokeWidth.bind(Ot),Ot.setStrokeDasharray=Ot.setStrokeDasharray.bind(Ot),Ot.createVisual=Ot.createVisual.bind(Ot),Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return!(!Jt.prototype.ownsTarget.call(this,bt)&&bt!==this.visual)},It.prototype.createVisual=function(){this.visual=se.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.state==="new"&&(this.createVisual(),this.moveVisual(bt),this._state="creating")},It.prototype.manipulate=function(bt){Jt.prototype.manipulate.call(this,bt)},It.prototype.resize=function(bt){Jt.prototype.resize.call(this,bt),this.setSize()},It.prototype.setSize=function(){Jt.prototype.setSize.call(this),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},It.prototype.pointerUp=function(bt){Jt.prototype.pointerUp.call(this,bt),this.setSize()},It.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(bt),this.stateChanged()},It.prototype.setFillColor=function(bt){this.fillColor=bt,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},It.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},It.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},It.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Jt.prototype.getState.call(this))},It.prototype.restoreState=function(bt){var Vt=bt;this.fillColor=Vt.fillColor,this.strokeColor=Vt.strokeColor,this.strokeWidth=Vt.strokeWidth,this.strokeDasharray=Vt.strokeDasharray,this.opacity=Vt.opacity,this.createVisual(),Jt.prototype.restoreState.call(this,bt),this.setSize()},It.prototype.scale=function(bt,Vt){Jt.prototype.scale.call(this,bt,Vt),this.setSize()},It.title="Rectangle marker",It}(ve),Ye=function(Jt){function It(bt,Vt,le,Ot){var be=Jt.call(this,bt,Ot||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return be.widths=[],be.widthBoxes=[],be.widths=Vt,be.currentWidth=le,be.setCurrentWidth=be.setCurrentWidth.bind(be),be}return Ie(It,Jt),It.prototype.getUi=function(){var bt=this,Vt=document.createElement("div");return Vt.style.display="flex",Vt.style.overflow="hidden",Vt.style.flexGrow="2",this.widths.forEach(function(le){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.flexGrow="2",Ot.style.alignItems="center",Ot.style.justifyContent="space-between",Ot.style.padding="5px",Ot.style.borderWidth="2px",Ot.style.borderStyle="solid",Ot.style.borderColor=le===bt.currentWidth?bt.uiStyleSettings.toolboxAccentColor:"transparent",Ot.addEventListener("click",function(){bt.setCurrentWidth(le,Ot)}),Vt.appendChild(Ot);var be=document.createElement("div");be.innerText=le.toString(),be.style.marginRight="5px",Ot.appendChild(be);var pn=document.createElement("div");pn.style.minHeight="20px",pn.style.flexGrow="2",pn.style.display="flex",pn.style.alignItems="center";var Zn=document.createElement("hr");Zn.style.minWidth="20px",Zn.style.border="0px",Zn.style.borderTop=le+"px solid "+bt.uiStyleSettings.toolboxColor,Zn.style.flexGrow="2",pn.appendChild(Zn),Ot.appendChild(pn),bt.widthBoxes.push(Ot)}),Vt},It.prototype.setCurrentWidth=function(bt,Vt){var le=this;this.currentWidth=bt,this.widthBoxes.forEach(function(Ot){Ot.style.borderColor=Ot===Vt?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},It}(vt),De=function(Jt){function It(bt,Vt,le,Ot){var be=Jt.call(this,bt,Ot||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return be.styles=[],be.styleBoxes=[],be.styles=Vt,be.currentStyle=le,be.setCurrentStyle=be.setCurrentStyle.bind(be),be}return Ie(It,Jt),It.prototype.getUi=function(){var bt=this,Vt=document.createElement("div");return Vt.style.display="flex",Vt.style.overflow="hidden",Vt.style.flexGrow="2",this.styles.forEach(function(le){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.justifyContent="space-between",Ot.style.padding="5px",Ot.style.borderWidth="2px",Ot.style.borderStyle="solid",Ot.style.overflow="hidden",Ot.style.maxWidth=100/bt.styles.length-5+"%",Ot.style.borderColor=le===bt.currentStyle?bt.uiStyleSettings.toolboxAccentColor:"transparent",Ot.addEventListener("click",function(){bt.setCurrentStyle(le,Ot)}),Vt.appendChild(Ot);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.overflow="hidden";var pn=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+bt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(le!==""?'stroke-dasharray="'+le+'"':"")+` />
</svg>`;be.innerHTML=pn,Ot.appendChild(be),bt.styleBoxes.push(Ot)}),Vt},It.prototype.setCurrentStyle=function(bt,Vt){var le=this;this.currentStyle=bt,this.styleBoxes.forEach(function(Ot){Ot.style.borderColor=Ot===Vt?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},It}(vt),hn=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.strokeColor=le.defaultColor,Ot.strokeWidth=le.defaultStrokeWidth,Ot.strokeDasharray=le.defaultStrokeDasharray,Ot.strokePanel=new Mt("Line color",le.defaultColorSet,le.defaultColor),Ot.strokePanel.onColorChanged=Ot.setStrokeColor,Ot.strokeWidthPanel=new Ye("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),Ot.strokeWidthPanel.onWidthChanged=Ot.setStrokeWidth,Ot.strokeStylePanel=new De("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),Ot.strokeStylePanel.onStyleChanged=Ot.setStrokeDasharray,Ot}return Ie(It,Jt),Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Jt.prototype.getState.call(this);return bt.typeName=It.typeName,bt},It.typeName="FrameMarker",It.title="Frame marker",It.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',It}(fe),Ue=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Pn=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.x1=0,Ot.y1=0,Ot.x2=0,Ot.y2=0,Ot.defaultLength=50,Ot.manipulationStartX=0,Ot.manipulationStartY=0,Ot.manipulationStartX1=0,Ot.manipulationStartY1=0,Ot.manipulationStartX2=0,Ot.manipulationStartY2=0,Ot.setupControlBox(),Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return!!Jt.prototype.ownsTarget.call(this,bt)||!(!this.grip1.ownsTarget(bt)&&!this.grip2.ownsTarget(bt))},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.manipulationStartX=bt.x,this.manipulationStartY=bt.y,this.state==="new"&&(this.x1=bt.x,this.y1=bt.y,this.x2=bt.x,this.y2=bt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Vt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Vt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},It.prototype.pointerUp=function(bt){var Vt=this.state;Jt.prototype.pointerUp.call(this,bt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(bt),this._state="select",Vt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},It.prototype.adjustVisual=function(){},It.prototype.manipulate=function(bt){this.state==="creating"?this.resize(bt):this.state==="move"?(this.x1=this.manipulationStartX1+bt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+bt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+bt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+bt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(bt)},It.prototype.resize=function(bt){switch(this.activeGrip){case this.grip1:this.x1=bt.x,this.y1=bt.y;break;case this.grip2:case void 0:this.x2=bt.x,this.y2=bt.y}this.adjustVisual(),this.adjustControlBox()},It.prototype.select=function(){Jt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},It.prototype.deselect=function(){Jt.prototype.deselect.call(this),this.controlBox.style.display="none"},It.prototype.setupControlBox=function(){this.controlBox=se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},It.prototype.adjustControlBox=function(){this.positionGrips()},It.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},It.prototype.createGrip=function(){var bt=new $t;return bt.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(bt.visual),bt},It.prototype.positionGrips=function(){var bt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-bt/2,this.y1-bt/2),this.positionGrip(this.grip2.visual,this.x2-bt/2,this.y2-bt/2)},It.prototype.positionGrip=function(bt,Vt,le){var Ot=bt.transform.baseVal.getItem(0);Ot.setTranslate(Vt,le),bt.transform.baseVal.replaceItem(Ot,0)},It.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Jt.prototype.getState.call(this))},It.prototype.restoreState=function(bt){Jt.prototype.restoreState.call(this,bt);var Vt=bt;this.x1=Vt.x1,this.y1=Vt.y1,this.x2=Vt.x2,this.y2=Vt.y2},It.prototype.scale=function(bt,Vt){Jt.prototype.scale.call(this,bt,Vt),this.x1=this.x1*bt,this.y1=this.y1*Vt,this.x2=this.x2*bt,this.y2=this.y2*Vt,this.adjustVisual(),this.adjustControlBox()},It}(Rt),qn=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.strokeColor="transparent",Ot.strokeWidth=0,Ot.strokeDasharray="",Ot.setStrokeColor=Ot.setStrokeColor.bind(Ot),Ot.setStrokeWidth=Ot.setStrokeWidth.bind(Ot),Ot.setStrokeDasharray=Ot.setStrokeDasharray.bind(Ot),Ot.strokeColor=le.defaultColor,Ot.strokeWidth=le.defaultStrokeWidth,Ot.strokeDasharray=le.defaultStrokeDasharray,Ot.strokePanel=new Mt("Line color",le.defaultColorSet,le.defaultColor),Ot.strokePanel.onColorChanged=Ot.setStrokeColor,Ot.strokeWidthPanel=new Ye("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),Ot.strokeWidthPanel.onWidthChanged=Ot.setStrokeWidth,Ot.strokeStylePanel=new De("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),Ot.strokeStylePanel.onStyleChanged=Ot.setStrokeDasharray,Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return!(!Jt.prototype.ownsTarget.call(this,bt)&&bt!==this.visual&&bt!==this.selectorLine&&bt!==this.visibleLine)},It.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},It.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},It.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.adjustVisual(),this.colorChanged(bt)},It.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.adjustVisual()},It.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Jt.prototype.getState.call(this));return bt.typeName=It.typeName,bt},It.prototype.restoreState=function(bt){Jt.prototype.restoreState.call(this,bt);var Vt=bt;this.strokeColor=Vt.strokeColor,this.strokeWidth=Vt.strokeWidth,this.strokeDasharray=Vt.strokeDasharray,this.createVisual(),this.adjustVisual()},It.typeName="LineMarker",It.title="Line marker",It.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',It}(Pn),un=function(Jt){function It(bt,Vt,le,Ot){var be=Jt.call(this,bt,Ot||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return be.fonts=[],be.fontBoxes=[],be.fonts=Vt,be.currentFont=le,be.setCurrentFont=be.setCurrentFont.bind(be),be}return Ie(It,Jt),It.prototype.getUi=function(){var bt=this,Vt=document.createElement("div");return Vt.style.overflow="hidden",Vt.style.flexGrow="2",this.fonts.forEach(function(le){var Ot=document.createElement("div");Ot.style.display="inline-block",Ot.style.alignItems="center",Ot.style.justifyContent="space-between",Ot.style.padding="5px",Ot.style.borderWidth="2px",Ot.style.borderStyle="solid",Ot.style.overflow="hidden",Ot.style.maxWidth=100/bt.fonts.length-5+"%",Ot.style.borderColor=le===bt.currentFont?bt.uiStyleSettings.toolboxAccentColor:"transparent",Ot.addEventListener("click",function(){bt.setCurrentFont(le,Ot)}),Vt.appendChild(Ot);var be=document.createElement("div");be.style.display="flex",be.style.minHeight="20px",be.style.flexGrow="2",be.style.fontFamily=le,be.style.overflow="hidden";var pn=document.createElement("div");pn.style.whiteSpace="nowrap",pn.style.overflow="hidden",pn.style.textOverflow="ellipsis",pn.innerHTML="The quick brown fox jumps over the lazy dog",be.appendChild(pn),Ot.appendChild(be),bt.fontBoxes.push(Ot)}),Vt},It.prototype.setCurrentFont=function(bt,Vt){var le=this;this.currentFont=bt,this.fontBoxes.forEach(function(Ot){Ot.style.borderColor=Ot===Vt?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},It}(vt),fn=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.color="transparent",Ot.padding=5,Ot.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ot.text=Ot.DEFAULT_TEXT,Ot.isMoved=!1,Ot.color=le.defaultColor,Ot.fontFamily=le.defaultFontFamily,Ot.defaultSize={x:100,y:30},Ot.setColor=Ot.setColor.bind(Ot),Ot.setFont=Ot.setFont.bind(Ot),Ot.renderText=Ot.renderText.bind(Ot),Ot.sizeText=Ot.sizeText.bind(Ot),Ot.textEditDivClicked=Ot.textEditDivClicked.bind(Ot),Ot.showTextEditor=Ot.showTextEditor.bind(Ot),Ot.setSize=Ot.setSize.bind(Ot),Ot.positionTextEditor=Ot.positionTextEditor.bind(Ot),Ot.colorPanel=new Mt("Color",le.defaultColorSet,le.defaultColor),Ot.colorPanel.onColorChanged=Ot.setColor,Ot.fontFamilyPanel=new un("Font",le.defaultFontFamilies,le.defaultFontFamily),Ot.fontFamilyPanel.onFontChanged=Ot.setFont,Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){if(Jt.prototype.ownsTarget.call(this,bt)||bt===this.visual||bt===this.textElement||bt===this.bgRectangle)return!0;var Vt=!1;return this.textElement.childNodes.forEach(function(le){le===bt&&(Vt=!0)}),Vt},It.prototype.createVisual=function(){this.visual=se.createGroup(),this.bgRectangle=se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.isMoved=!1,this.pointerDownPoint=bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(bt),this._state="creating")},It.prototype.renderText=function(){var bt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Vt){bt.textElement.appendChild(se.createTSpan(Vt.trim()===""?" ":Vt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},It.prototype.getTextScale=function(){var bt=this.textElement.getBBox(),Vt=1;if(bt.width>0&&bt.height>0){var le=(1*this.width-this.width*this.padding*2/100)/bt.width,Ot=(1*this.height-this.height*this.padding*2/100)/bt.height;Vt=Math.min(le,Ot)}return Vt},It.prototype.getTextPosition=function(bt){var Vt=this.textElement.getBBox(),le=0,Ot=0;return Vt.width>0&&Vt.height>0&&(le=(this.width-Vt.width*bt)/2,Ot=this.height/2-Vt.height*bt/2),{x:le,y:Ot}},It.prototype.sizeText=function(){var bt=this.textElement.getBBox(),Vt=this.getTextScale(),le=this.getTextPosition(Vt);le.y-=bt.y*Vt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+le.x+"px, "+le.y+"px) scale("+Vt+", "+Vt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(le.x,le.y),this.textElement.transform.baseVal.getItem(1).setScale(Vt,Vt))},It.prototype.manipulate=function(bt){Jt.prototype.manipulate.call(this,bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(bt.x-this.pointerDownPoint.x)>5||Math.abs(bt.y-this.pointerDownPoint.y)>5)},It.prototype.resize=function(bt){Jt.prototype.resize.call(this,bt),this.isMoved=!0,this.setSize(),this.sizeText()},It.prototype.setSize=function(){Jt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},It.prototype.pointerUp=function(bt){var Vt=this.state;Vt==="creating"&&(this._suppressMarkerCreateEvent=!0),Jt.prototype.pointerUp.call(this,bt),this.setSize(),(Vt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},It.prototype.showTextEditor=function(){var bt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Vt){Vt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Vt=Number.parseFloat(bt.textEditor.style.fontSize);bt.textEditor.clientWidth>=Number.parseInt(bt.textEditor.style.maxWidth)&&Vt>.9;)Vt-=.1,bt.textEditor.style.fontSize=Math.max(Vt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Vt){Vt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Vt){if(Vt.clipboardData){var le=Vt.clipboardData.getData("text"),Ot=window.getSelection();if(!Ot.rangeCount)return!1;Ot.deleteFromDocument(),Ot.getRangeAt(0).insertNode(document.createTextNode(le)),Vt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){bt.textEditDivClicked(bt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},It.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var bt=this.getTextScale(),Vt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),le=this.textElement.getBBox(),Ot={x:le.width*bt,y:le.height*bt};Vt.x-=Ot.x/2,Vt.y-=Ot.y/2,this.textEditor.style.top=Vt.y+"px",this.textEditor.style.left=Vt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Vt.x+"px",this.textEditor.style.fontSize=Math.max(16*bt,12)+"px",this.textElement.style.display="none"}},It.prototype.textEditDivClicked=function(bt){this.text=bt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},It.prototype.select=function(){Jt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},It.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Jt.prototype.deselect.call(this)},It.prototype.dblClick=function(bt,Vt){Jt.prototype.dblClick.call(this,bt,Vt),this.showTextEditor()},It.prototype.setColor=function(bt){this.textElement&&se.setAttributes(this.textElement,[["fill",bt]]),this.color=bt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(bt)},It.prototype.setFont=function(bt){this.textElement&&se.setAttributes(this.textElement,[["font-family",bt]]),this.fontFamily=bt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},It.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},It.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Jt.prototype.getState.call(this));return bt.typeName=It.typeName,bt},It.prototype.restoreState=function(bt){var Vt=bt;this.color=Vt.color,this.fontFamily=Vt.fontFamily,this.padding=Vt.padding,this.text=Vt.text,this.createVisual(),Jt.prototype.restoreState.call(this,bt),this.setSize()},It.prototype.scale=function(bt,Vt){Jt.prototype.scale.call(this,bt,Vt),this.setSize(),this.sizeText(),this.positionTextEditor()},It.typeName="TextMarker",It.title="Text marker",It.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',It}(ve),mn=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.color="transparent",Ot.lineWidth=3,Ot.drawing=!1,Ot.pixelRatio=1,Ot.color=le.defaultColor,Ot.lineWidth=le.defaultStrokeWidth,Ot.pixelRatio=le.freehandPixelRatio,Ot.setColor=Ot.setColor.bind(Ot),Ot.addCanvas=Ot.addCanvas.bind(Ot),Ot.finishCreation=Ot.finishCreation.bind(Ot),Ot.setLineWidth=Ot.setLineWidth.bind(Ot),Ot.colorPanel=new Mt("Color",le.defaultColorSet,le.defaultColor),Ot.colorPanel.onColorChanged=Ot.setColor,Ot.lineWidthPanel=new Ye("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),Ot.lineWidthPanel.onWidthChanged=Ot.setLineWidth,Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return!(!Jt.prototype.ownsTarget.call(this,bt)&&bt!==this.visual&&bt!==this.drawingImage)},It.prototype.createVisual=function(){this.visual=se.createGroup(),this.drawingImage=se.createImage(),this.visual.appendChild(this.drawingImage);var bt=se.createTransform();this.visual.transform.baseVal.appendItem(bt),this.addMarkerVisualToContainer(this.visual)},It.prototype.pointerDown=function(bt,Vt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(bt.x,bt.y),this.drawing=!0):Jt.prototype.pointerDown.call(this,bt,Vt)},It.prototype.manipulate=function(bt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(bt.x,bt.y),this.canvasContext.stroke()):Jt.prototype.manipulate.call(this,bt)},It.prototype.resize=function(bt){Jt.prototype.resize.call(this,bt),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},It.prototype.pointerUp=function(bt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Jt.prototype.pointerUp.call(this,bt)},It.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},It.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Jt.prototype.select.call(this)},It.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Jt.prototype.deselect.call(this)},It.prototype.finishCreation=function(){for(var bt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Vt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],le=Vt[0],Ot=Vt[1],be=Vt[2],pn=Vt[3],Zn=!1,ii=0;ii<this.canvasElement.height;ii++)for(var wi=0;wi<this.canvasElement.width;wi++)bt.data[ii*this.canvasElement.width*4+4*wi+3]>0&&(Zn=!0,ii<Ot&&(Ot=ii),wi<le&&(le=wi),ii>pn&&(pn=ii),wi>be&&(be=wi));if(Zn){this.left=le/this.pixelRatio,this.top=Ot/this.pixelRatio,this.width=(be-le)/this.pixelRatio,this.height=(pn-Ot)/this.pixelRatio;var Nr=document.createElement("canvas");Nr.width=be-le,Nr.height=pn-Ot,Nr.getContext("2d").putImageData(this.canvasContext.getImageData(le,Ot,be-le,pn-Ot),0,0),this.drawingImgUrl=Nr.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},It.prototype.setDrawingImage=function(){se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},It.prototype.setColor=function(bt){this.color=bt,this.colorChanged(bt)},It.prototype.setLineWidth=function(bt){this.lineWidth=bt},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Object.assign({drawingImgUrl:this.drawingImgUrl},Jt.prototype.getState.call(this));return bt.typeName=It.typeName,bt},It.prototype.restoreState=function(bt){this.createVisual(),Jt.prototype.restoreState.call(this,bt),this.drawingImgUrl=bt.drawingImgUrl,this.setDrawingImage()},It.prototype.scale=function(bt,Vt){Jt.prototype.scale.call(this,bt,Vt),this.setDrawingImage()},It.typeName="FreehandMarker",It.title="Freehand marker",It.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',It}(ve),pe=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,le||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ot.typeBoxes=[],Ot.currentType=Vt,Ot.setCurrentType=Ot.setCurrentType.bind(Ot),Ot}return Ie(It,Jt),It.prototype.getUi=function(){var bt=this,Vt=document.createElement("div");Vt.style.display="flex",Vt.style.overflow="hidden",Vt.style.flexGrow="2";for(var le=function(pn){var Zn="both";switch(pn){case 0:Zn="both";break;case 1:Zn="start";break;case 2:Zn="end";break;case 3:Zn="none"}var ii=document.createElement("div");if(ii.style.display="flex",ii.style.flexGrow="2",ii.style.alignItems="center",ii.style.justifyContent="space-between",ii.style.padding="5px",ii.style.borderWidth="2px",ii.style.borderStyle="solid",ii.style.borderColor=Zn===Ot.currentType?Ot.uiStyleSettings.toolboxAccentColor:"transparent",ii.addEventListener("click",function(){bt.setCurrentType(Zn,ii)}),Vt.appendChild(ii),Zn==="both"||Zn==="start"){var wi=document.createElement("div");wi.style.display="flex",wi.style.alignItems="center",wi.style.minHeight="20px",wi.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(Ot.uiStyleSettings!==void 0?Ot.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,wi.style.marginLeft="5px",ii.appendChild(wi)}var Nr=document.createElement("div");Nr.style.display="flex",Nr.style.alignItems="center",Nr.style.minHeight="20px",Nr.style.flexGrow="2";var _r=document.createElement("hr");if(_r.style.minWidth="20px",_r.style.border="0px",_r.style.borderTop="3px solid "+(Ot.uiStyleSettings!==void 0?Ot.uiStyleSettings.toolboxColor:"#eeeeee"),_r.style.flexGrow="2",Nr.appendChild(_r),ii.appendChild(Nr),Zn==="both"||Zn==="end"){var Tr=document.createElement("div");Tr.style.display="flex",Tr.style.alignItems="center",Tr.style.minHeight="20px",Tr.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Ot.uiStyleSettings!==void 0?Ot.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Tr.style.marginRight="5px",ii.appendChild(Tr)}Ot.typeBoxes.push(ii)},Ot=this,be=0;be<4;be++)le(be);return Vt},It.prototype.setCurrentType=function(bt,Vt){var le=this;this.currentType=bt,this.typeBoxes.forEach(function(Ot){Ot.style.borderColor=Ot===Vt?le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},It}(vt),Xt=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.arrowType="end",Ot.arrowBaseHeight=10,Ot.arrowBaseWidth=10,Ot.getArrowPoints=Ot.getArrowPoints.bind(Ot),Ot.setArrowType=Ot.setArrowType.bind(Ot),Ot.arrowTypePanel=new pe("Arrow type","end"),Ot.arrowTypePanel.onArrowTypeChanged=Ot.setArrowType,Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return!(!Jt.prototype.ownsTarget.call(this,bt)&&bt!==this.arrow1&&bt!==this.arrow2)},It.prototype.getArrowPoints=function(bt,Vt){var le=this.arrowBaseWidth+2*this.strokeWidth,Ot=this.arrowBaseHeight+2*this.strokeWidth;return bt-le/2+","+(Vt+Ot/2)+" "+bt+","+(Vt-Ot/2)+" "+(bt+le/2)+","+(Vt+Ot/2)},It.prototype.createTips=function(){this.arrow1=se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow2)},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.state==="creating"&&this.createTips()},It.prototype.adjustVisual=function(){if(Jt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),se.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var bt=0;Math.abs(this.x1-this.x2)>.1&&(bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Vt=this.arrow1.transform.baseVal.getItem(0);Vt.setRotate(bt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Vt,0);var le=this.arrow2.transform.baseVal.getItem(0);le.setRotate(bt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(le,0)}},It.prototype.setArrowType=function(bt){this.arrowType=bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Object.assign({arrowType:this.arrowType},Jt.prototype.getState.call(this));return bt.typeName=It.typeName,bt},It.prototype.restoreState=function(bt){Jt.prototype.restoreState.call(this,bt);var Vt=bt;this.arrowType=Vt.arrowType,this.createTips(),this.adjustVisual()},It.typeName="ArrowMarker",It.title="Arrow marker",It.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',It}(qn),Ve=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.fillColor=le.defaultFillColor,Ot.strokeWidth=0,Ot.fillPanel=new Mt("Color",le.defaultColorSet,le.defaultFillColor),Ot.fillPanel.onColorChanged=Ot.setFillColor,Ot}return Ie(It,Jt),Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Jt.prototype.getState.call(this);return bt.typeName=It.typeName,bt},It.typeName="CoverMarker",It.title="Cover marker",It.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',It}(fe),Vn=function(Jt){function It(bt,Vt,le,Ot){var be=Jt.call(this,bt,Ot||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return be.opacities=[],be.opacityBoxes=[],be.opacities=Vt,be.currentOpacity=le,be.setCurrentOpacity=be.setCurrentOpacity.bind(be),be}return Ie(It,Jt),It.prototype.getUi=function(){var bt=this,Vt=document.createElement("div");return Vt.style.display="flex",Vt.style.overflow="hidden",Vt.style.flexGrow="2",Vt.style.justifyContent="space-between",this.opacities.forEach(function(le){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.justifyContent="center",Ot.style.padding="5px",Ot.style.borderWidth="2px",Ot.style.borderStyle="solid",Ot.style.borderColor=le===bt.currentOpacity?bt.uiStyleSettings.toolboxAccentColor:"transparent",Ot.addEventListener("click",function(){bt.setCurrentOpacity(le,Ot)}),Vt.appendChild(Ot);var be=document.createElement("div");be.innerText=100*le+"%",Ot.appendChild(be),bt.opacityBoxes.push(Ot)}),Vt},It.prototype.setCurrentOpacity=function(bt,Vt){var le=this;this.currentOpacity=bt,this.opacityBoxes.forEach(function(Ot){Ot.style.borderColor=Ot===Vt?le.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},It}(vt),si=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.setOpacity=Ot.setOpacity.bind(Ot),Ot.fillColor=le.defaultHighlightColor,Ot.strokeWidth=0,Ot.opacity=le.defaultHighlightOpacity,Ot.fillPanel=new Mt("Color",le.defaultColorSet,Ot.fillColor),Ot.fillPanel.onColorChanged=Ot.setFillColor,Ot.opacityPanel=new Vn("Opacity",le.defaultOpacitySteps,Ot.opacity),Ot.opacityPanel.onOpacityChanged=Ot.setOpacity,Ot}return Ie(It,Jt),It.prototype.setOpacity=function(bt){this.opacity=bt,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Jt.prototype.getState.call(this);return bt.typeName=It.typeName,bt},It.typeName="HighlightMarker",It.title="Highlight marker",It.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',It}(Ve),An='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Nn='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Yn=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.bgColor="transparent",Ot.tipPosition={x:0,y:0},Ot.tipBase1Position={x:0,y:0},Ot.tipBase2Position={x:0,y:0},Ot.tipMoving=!1,Ot.color=le.defaultStrokeColor,Ot.bgColor=le.defaultFillColor,Ot.fontFamily=le.defaultFontFamily,Ot.defaultSize={x:100,y:30},Ot.setBgColor=Ot.setBgColor.bind(Ot),Ot.getTipPoints=Ot.getTipPoints.bind(Ot),Ot.positionTip=Ot.positionTip.bind(Ot),Ot.setTipPoints=Ot.setTipPoints.bind(Ot),Ot.colorPanel=new Mt("Text color",le.defaultColorSet,Ot.color,An),Ot.colorPanel.onColorChanged=Ot.setColor,Ot.bgColorPanel=new Mt("Fill color",le.defaultColorSet,Ot.bgColor,Nn),Ot.bgColorPanel.onColorChanged=Ot.setBgColor,Ot.fontFamilyPanel=new un("Font",le.defaultFontFamilies,le.defaultFontFamily),Ot.fontFamilyPanel.onFontChanged=Ot.setFont,Ot.tipGrip=new $t,Ot.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),Ot.controlBox.appendChild(Ot.tipGrip.visual),Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return Jt.prototype.ownsTarget.call(this,bt)||this.tipGrip.ownsTarget(bt)||this.tip===bt},It.prototype.createTip=function(){se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=se.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},It.prototype.pointerDown=function(bt,Vt){this.state==="new"&&Jt.prototype.pointerDown.call(this,bt,Vt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Vt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Jt.prototype.pointerDown.call(this,bt,Vt)},It.prototype.pointerUp=function(bt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Jt.prototype.pointerUp.call(this,bt);else{var Vt=this.state==="creating";Jt.prototype.pointerUp.call(this,bt),this.setTipPoints(Vt),this.positionTip()}},It.prototype.manipulate=function(bt){if(this.tipMoving){var Vt=this.unrotatePoint(bt);this.tipPosition={x:Vt.x-this.manipulationStartLeft,y:Vt.y-this.manipulationStartTop},this.positionTip()}else Jt.prototype.manipulate.call(this,bt)},It.prototype.setBgColor=function(bt){this.bgRectangle&&this.tip&&(se.setAttributes(this.bgRectangle,[["fill",bt]]),se.setAttributes(this.tip,[["fill",bt]])),this.bgColor=bt,this.fillColorChanged(bt)},It.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},It.prototype.setTipPoints=function(bt){bt===void 0&&(bt=!1);var Vt=Math.min(this.height/2,15),le=this.height/5;bt&&(this.tipPosition={x:Vt+le/2,y:this.height+20});var Ot=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ot<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(le=this.width/5,Vt=Math.min(this.width/2,15),this.tipBase1Position={x:Vt,y:0},this.tipBase2Position={x:Vt+le,y:0}):(this.tipBase1Position={x:0,y:Vt},this.tipBase2Position={x:0,y:Vt+le}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ot<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(le=this.width/5,Vt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Vt-le,y:0},this.tipBase2Position={x:this.width-Vt,y:0}):(this.tipBase1Position={x:this.width,y:Vt},this.tipBase2Position={x:this.width,y:Vt+le}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ot<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(le=this.width/5,Vt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Vt-le,y:this.height},this.tipBase2Position={x:this.width-Vt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Vt-le},this.tipBase2Position={x:this.width,y:this.height-Vt}):Ot<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(le=this.width/5,Vt=Math.min(this.width/2,15),this.tipBase1Position={x:Vt,y:this.height},this.tipBase2Position={x:Vt+le,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Vt},this.tipBase2Position={x:0,y:this.height-Vt-le})},It.prototype.resize=function(bt){Jt.prototype.resize.call(this,bt),this.positionTip()},It.prototype.positionTip=function(){se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var bt=this.tipGrip.visual.transform.baseVal.getItem(0);bt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(bt,0)},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),It.prototype.select=function(){this.positionTip(),Jt.prototype.select.call(this)},It.prototype.getState=function(){var bt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Jt.prototype.getState.call(this));return bt.typeName=It.typeName,bt},It.prototype.restoreState=function(bt){var Vt=bt;this.bgColor=Vt.bgColor,this.tipPosition=Vt.tipPosition,Jt.prototype.restoreState.call(this,bt),this.createTip(),this.setTipPoints()},It.prototype.scale=function(bt,Vt){Jt.prototype.scale.call(this,bt,Vt),this.tipPosition={x:this.tipPosition.x*bt,y:this.tipPosition.y*Vt},this.positionTip()},It.typeName="CalloutMarker",It.title="Callout marker",It.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',It}(fn),Ci=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.fillColor="transparent",Ot.strokeColor="transparent",Ot.strokeWidth=0,Ot.strokeDasharray="",Ot.opacity=1,Ot.strokeColor=le.defaultColor,Ot.strokeWidth=le.defaultStrokeWidth,Ot.strokeDasharray=le.defaultStrokeDasharray,Ot.fillColor=le.defaultFillColor,Ot.setStrokeColor=Ot.setStrokeColor.bind(Ot),Ot.setFillColor=Ot.setFillColor.bind(Ot),Ot.setStrokeWidth=Ot.setStrokeWidth.bind(Ot),Ot.setStrokeDasharray=Ot.setStrokeDasharray.bind(Ot),Ot.setOpacity=Ot.setOpacity.bind(Ot),Ot.createVisual=Ot.createVisual.bind(Ot),Ot.strokePanel=new Mt("Line color",Nt(le.defaultColorSet,["transparent"]),le.defaultColor),Ot.strokePanel.onColorChanged=Ot.setStrokeColor,Ot.fillPanel=new Mt("Fill color",Nt(le.defaultColorSet,["transparent"]),Ot.fillColor,Nn),Ot.fillPanel.onColorChanged=Ot.setFillColor,Ot.strokeWidthPanel=new Ye("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),Ot.strokeWidthPanel.onWidthChanged=Ot.setStrokeWidth,Ot.strokeStylePanel=new De("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),Ot.strokeStylePanel.onStyleChanged=Ot.setStrokeDasharray,Ot.opacityPanel=new Vn("Opacity",le.defaultOpacitySteps,Ot.opacity),Ot.opacityPanel.onOpacityChanged=Ot.setOpacity,Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return!(!Jt.prototype.ownsTarget.call(this,bt)&&bt!==this.visual)},It.prototype.createVisual=function(){this.visual=se.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.state==="new"&&(this.createVisual(),this.moveVisual(bt),this._state="creating")},It.prototype.manipulate=function(bt){Jt.prototype.manipulate.call(this,bt)},It.prototype.resize=function(bt){Jt.prototype.resize.call(this,bt),this.setSize()},It.prototype.setSize=function(){Jt.prototype.setSize.call(this),se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},It.prototype.pointerUp=function(bt){Jt.prototype.pointerUp.call(this,bt),this.setSize()},It.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(bt),this.stateChanged()},It.prototype.setFillColor=function(bt){this.fillColor=bt,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(bt),this.stateChanged()},It.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},It.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},It.prototype.setOpacity=function(bt){this.opacity=bt,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Jt.prototype.getState.call(this));return bt.typeName=It.typeName,bt},It.prototype.restoreState=function(bt){var Vt=bt;this.fillColor=Vt.fillColor,this.strokeColor=Vt.strokeColor,this.strokeWidth=Vt.strokeWidth,this.strokeDasharray=Vt.strokeDasharray,this.opacity=Vt.opacity,this.createVisual(),Jt.prototype.restoreState.call(this,bt),this.setSize()},It.prototype.scale=function(bt,Vt){Jt.prototype.scale.call(this,bt,Vt),this.setSize()},It.typeName="EllipseMarker",It.title="Ellipse marker",It.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',It}(ve),Mi=function(Jt){function It(bt,Vt,le){return Jt.call(this,bt,Vt,le)||this}return Ie(It,Jt),Object.defineProperty(It.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),It.prototype.ownsTarget=function(bt){return!(!Jt.prototype.ownsTarget.call(this,bt)&&bt!==this.tip1&&bt!==this.tip2)},It.prototype.createTips=function(){this.tip1=se.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=se.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.tip2)},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.state==="creating"&&this.createTips()},It.prototype.adjustVisual=function(){if(Jt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(se.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Vt=this.tip1.transform.baseVal.getItem(0);Vt.setRotate(bt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Vt,0);var le=this.tip2.transform.baseVal.getItem(0);le.setRotate(bt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(le,0)}},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Jt.prototype.getState.call(this);return bt.typeName=It.typeName,bt},It.prototype.restoreState=function(bt){Jt.prototype.restoreState.call(this,bt),this.createTips(),this.adjustVisual()},It.typeName="MeasurementMarker",It.title="Measurement marker",It.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',It}(qn),Ri=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.strokePanel.colors=le.defaultColorSet,Ot.fillColor="transparent",Ot}return Ie(It,Jt),Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Jt.prototype.getState.call(this);return bt.typeName=It.typeName,bt},It.typeName="EllipseFrameMarker",It.title="Ellipse frame marker",It.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',It}(Ci),Te=function(){function Jt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Jt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Jt.prototype.addUndoStep=function(It){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(It)||(this.undoStack.push(It),JSON.stringify(this.lastRedoStep)!==JSON.stringify(It)&&this.redoStack.splice(0,this.redoStack.length))},Jt.prototype.replaceLastUndoStep=function(It){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=It)},Jt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Jt.prototype.undo=function(){if(this.undoStack.length>1){var It=this.undoStack.pop();return It!==void 0&&this.redoStack.push(It),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Jt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Jt}(),ci=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.strokeColor="transparent",Ot.strokeWidth=0,Ot.strokeDasharray="",Ot.curveX=0,Ot.curveY=0,Ot.manipulationStartCurveX=0,Ot.manipulationStartCurveY=0,Ot.setStrokeColor=Ot.setStrokeColor.bind(Ot),Ot.setStrokeWidth=Ot.setStrokeWidth.bind(Ot),Ot.setStrokeDasharray=Ot.setStrokeDasharray.bind(Ot),Ot.positionGrips=Ot.positionGrips.bind(Ot),Ot.addControlGrips=Ot.addControlGrips.bind(Ot),Ot.adjustVisual=Ot.adjustVisual.bind(Ot),Ot.setupControlBox=Ot.setupControlBox.bind(Ot),Ot.resize=Ot.resize.bind(Ot),Ot.strokeColor=le.defaultColor,Ot.strokeWidth=le.defaultStrokeWidth,Ot.strokeDasharray=le.defaultStrokeDasharray,Ot.strokePanel=new Mt("Line color",le.defaultColorSet,le.defaultColor),Ot.strokePanel.onColorChanged=Ot.setStrokeColor,Ot.strokeWidthPanel=new Ye("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),Ot.strokeWidthPanel.onWidthChanged=Ot.setStrokeWidth,Ot.strokeStylePanel=new De("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),Ot.strokeStylePanel.onStyleChanged=Ot.setStrokeDasharray,Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return!(!Jt.prototype.ownsTarget.call(this,bt)&&bt!==this.visual&&bt!==this.selectorCurve&&bt!==this.visibleCurve&&!this.curveGrip.ownsTarget(bt))},It.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},It.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorCurve=se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=se.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=bt.x,this.curveY=bt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Vt)&&(this.activeGrip=this.curveGrip,this._state="resize")},It.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},It.prototype.setupControlBox=function(){Jt.prototype.setupControlBox.call(this),this.curveControlLine1=se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=se.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},It.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Jt.prototype.addControlGrips.call(this)},It.prototype.positionGrips=function(){Jt.prototype.positionGrips.call(this);var bt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-bt/2,this.curveY-bt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},It.prototype.manipulate=function(bt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+bt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+bt.y-this.manipulationStartY),Jt.prototype.manipulate.call(this,bt)},It.prototype.resize=function(bt){this.activeGrip===this.curveGrip&&(this.curveX=bt.x,this.curveY=bt.y),Jt.prototype.resize.call(this,bt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},It.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.adjustVisual(),this.colorChanged(bt)},It.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.adjustVisual()},It.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.adjustVisual()},It.prototype.scale=function(bt,Vt){this.curveX=this.curveX*bt,this.curveY=this.curveY*Vt,Jt.prototype.scale.call(this,bt,Vt)},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Jt.prototype.getState.call(this));return bt.typeName=It.typeName,bt},It.prototype.restoreState=function(bt){Jt.prototype.restoreState.call(this,bt);var Vt=bt;this.strokeColor=Vt.strokeColor,this.strokeWidth=Vt.strokeWidth,this.strokeDasharray=Vt.strokeDasharray,this.curveX=Vt.curveX,this.curveY=Vt.curveY,this.createVisual(),this.adjustVisual()},It.typeName="CurveMarker",It.title="Curve marker",It.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',It}(Pn),ki=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,Vt,le)||this;return Ot.fillColor="transparent",Ot.strokeColor="transparent",Ot.strokeWidth=0,Ot.strokeDasharray="",Ot.textColor="transparent",Ot.fontSize="1rem",Ot.isMoved=!1,Ot.captionText="Caption",Ot.PADDING=5,Ot.captionBoxWidth=0,Ot.captionBoxHeight=0,Ot.strokeColor=le.defaultColor,Ot.strokeWidth=le.defaultStrokeWidth,Ot.strokeDasharray=le.defaultStrokeDasharray,Ot.fillColor=le.defaultFillColor,Ot.textColor=le.defaultStrokeColor,Ot.fontFamily=le.defaultFontFamily,Ot.fontSize=le.defaultCaptionFontSize,Ot.captionText=le.defaultCaptionText,Ot.setStrokeColor=Ot.setStrokeColor.bind(Ot),Ot.setFillColor=Ot.setFillColor.bind(Ot),Ot.setStrokeWidth=Ot.setStrokeWidth.bind(Ot),Ot.setStrokeDasharray=Ot.setStrokeDasharray.bind(Ot),Ot.createVisual=Ot.createVisual.bind(Ot),Ot.sizeCaption=Ot.sizeCaption.bind(Ot),Ot.setCaptionText=Ot.setCaptionText.bind(Ot),Ot.showTextEditor=Ot.showTextEditor.bind(Ot),Ot.positionTextEditor=Ot.positionTextEditor.bind(Ot),Ot.finishTextEditing=Ot.finishTextEditing.bind(Ot),Ot.setFont=Ot.setFont.bind(Ot),Ot.setTextColor=Ot.setTextColor.bind(Ot),Ot.strokePanel=new Mt("Line color",Nt(le.defaultColorSet,["transparent"]),Ot.strokeColor),Ot.strokePanel.onColorChanged=Ot.setStrokeColor,Ot.fillPanel=new Mt("Fill color",Nt(le.defaultColorSet,["transparent"]),Ot.fillColor,Nn),Ot.fillPanel.onColorChanged=Ot.setFillColor,Ot.strokeWidthPanel=new Ye("Line width",le.defaultStrokeWidths,le.defaultStrokeWidth),Ot.strokeWidthPanel.onWidthChanged=Ot.setStrokeWidth,Ot.strokeStylePanel=new De("Line style",le.defaultStrokeDasharrays,le.defaultStrokeDasharray),Ot.strokeStylePanel.onStyleChanged=Ot.setStrokeDasharray,Ot.fontFamilyPanel=new un("Font",le.defaultFontFamilies,le.defaultFontFamily),Ot.fontFamilyPanel.onFontChanged=Ot.setFont,Ot.textColorPanel=new Mt("Text color",le.defaultColorSet,Ot.textColor,An),Ot.textColorPanel.onColorChanged=Ot.setTextColor,Ot}return Ie(It,Jt),It.prototype.ownsTarget=function(bt){return!(!Jt.prototype.ownsTarget.call(this,bt)&&bt!==this.visual&&bt!==this.frame&&bt!==this.captionBg&&bt!==this.captionElement)},It.prototype.createVisual=function(){this.visual=se.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=se.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=se.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=se.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},It.prototype.setCaptionText=function(bt){this.captionText=bt,this.captionElement.textContent=this.captionText,this.sizeCaption()},It.prototype.pointerDown=function(bt,Vt){Jt.prototype.pointerDown.call(this,bt,Vt),this.isMoved=!1,this.pointerDownPoint=bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(bt),this._state="creating")},It.prototype.manipulate=function(bt){Jt.prototype.manipulate.call(this,bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(bt.x-this.pointerDownPoint.x)>5||Math.abs(bt.y-this.pointerDownPoint.y)>5)},It.prototype.resize=function(bt){Jt.prototype.resize.call(this,bt),this.setSize()},It.prototype.sizeCaption=function(){var bt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=bt.width+2*this.PADDING,this.captionBoxHeight=bt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),se.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),se.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},It.prototype.showTextEditor=function(){var bt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Vt){Vt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Vt){Vt.key==="Enter"&&bt.finishTextEditing(bt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Vt){Vt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){bt.finishTextEditing(bt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){bt.finishTextEditing(bt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},It.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},It.prototype.finishTextEditing=function(bt){this.setCaptionText(bt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},It.prototype.setFont=function(bt){this.captionElement&&se.setAttributes(this.captionElement,[["font-family",bt]]),this.fontFamily=bt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},It.prototype.setTextColor=function(bt){this.captionElement&&se.setAttributes(this.captionElement,[["fill",bt]]),this.textColor=bt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},It.prototype.setSize=function(){Jt.prototype.setSize.call(this),se.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},It.prototype.pointerUp=function(bt){Jt.prototype.pointerUp.call(this,bt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},It.prototype.dblClick=function(bt,Vt){Jt.prototype.dblClick.call(this,bt,Vt),this.showTextEditor()},It.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.frame&&se.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(bt),this.stateChanged()},It.prototype.setFillColor=function(bt){this.fillColor=bt,this.captionBg&&se.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(bt),this.stateChanged()},It.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.frame&&se.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},It.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.frame&&se.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),It.prototype.getState=function(){var bt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Jt.prototype.getState.call(this));return bt.typeName=this.typeName,bt},It.prototype.restoreState=function(bt){var Vt=bt;this.fillColor=Vt.fillColor,this.strokeColor=Vt.strokeColor,this.strokeWidth=Vt.strokeWidth,this.strokeDasharray=Vt.strokeDasharray,this.textColor=Vt.textColor,this.fontFamily=Vt.fontFamily,this.captionText=Vt.captionText,this.fontSize=Vt.fontSize,this.createVisual(),Jt.prototype.restoreState.call(this,bt),this.setSize()},It.prototype.scale=function(bt,Vt){Jt.prototype.scale.call(this,bt,Vt),this.setSize()},It.typeName="CaptionFrameMarker",It.title="Caption frame marker",It.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',It}(ve),Dn=function(){function Jt(It,bt){bt===void 0&&(bt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=It,this.cancelable=bt}return Object.defineProperty(Jt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Jt.prototype.preventDefault=function(){this._defaultPrevented=!0},Jt}(),yi=function(Jt){function It(bt,Vt,le){var Ot=Jt.call(this,bt,!1)||this;return Ot.dataUrl=Vt,Ot.state=le,Ot}return Ie(It,Jt),It}(Dn),En=function(Jt){function It(bt,Vt,le){le===void 0&&(le=!1);var Ot=Jt.call(this,bt,le)||this;return Ot.marker=Vt,Ot}return Ie(It,Jt),It}(Dn),gn=function(){function Jt(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Jt.prototype.addEventListener=function(It,bt){this[It].push(bt)},Jt.prototype.removeEventListener=function(It,bt){var Vt=this[It].indexOf(bt);Vt>-1&&this[It].splice(Vt,1)},Jt}(),Ne=function(){function Jt(It){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ue,this._isOpen=!1,this.undoRedoManager=new Te,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new gn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Jt.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=It,this.targetRoot=document.body,this.width=It.clientWidth,this.height=It.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Jt.prototype,"ALL_MARKER_TYPES",{get:function(){return[hn,mn,Xt,fn,Ri,Ci,si,Yn,Mi,Ve,qn,ci,ki]},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[hn,mn,Xt,fn,Ci,si,Yn]},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[hn,mn,Xt,fn,si]},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(It){var bt=this;this._availableMarkerTypes.splice(0),It.forEach(function(Vt){if(typeof Vt=="string"){var le=bt.ALL_MARKER_TYPES.find(function(Ot){return Ot.typeName===Vt});le!==void 0&&bt._availableMarkerTypes.push(le)}else bt._availableMarkerTypes.push(Vt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(It){this._zoomLevel=It,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Jt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Jt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Jt.prototype.show=function(){var It=this;this.styles.styleSheetRoot===void 0&&Ut.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ut.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(bt){return bt(new Dn(It))})},Jt.prototype.render=function(){return ge(this,void 0,void 0,function(){var It;return ye(this,function(bt){switch(bt.label){case 0:return this.setCurrentMarker(),(It=new me).naturalSize=this.renderAtNaturalSize,It.imageType=this.renderImageType,It.imageQuality=this.renderImageQuality,It.markersOnly=this.renderMarkersOnly,It.width=this.renderWidth,It.height=this.renderHeight,[4,It.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return bt.sent(),[4,It.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,bt.sent()]}})})},Jt.prototype.close=function(It){var bt=this;if(It===void 0&&(It=!1),this.isOpen){var Vt=!1;It||this.eventListeners.beforeclose.forEach(function(le){var Ot=new Dn(bt,!0);le(Ot),Ot.defaultPrevented&&(Vt=!0)}),Vt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(le){return le(new Dn(bt))}),this.detachEvents(),this._isOpen=!1)}},Jt.prototype.addMarkersToToolbar=function(){for(var It,bt=[],Vt=0;Vt<arguments.length;Vt++)bt[Vt]=arguments[Vt];(It=this._availableMarkerTypes).push.apply(It,bt)},Jt.prototype.addRenderEventListener=function(It){this.addEventListener("render",function(bt){It(bt.dataUrl,bt.state)})},Jt.prototype.removeRenderEventListener=function(It){},Jt.prototype.addCloseEventListener=function(It){this.addEventListener("close",function(){It()})},Jt.prototype.removeCloseEventListener=function(It){},Jt.prototype.setupResizeObserver=function(){var It=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){It.resize(It.target.clientWidth,It.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return It.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Jt.prototype.onPopupTargetResize=function(){var It=1*this.target.clientWidth/this.target.clientHeight,bt=this.editorCanvas.clientWidth/It>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*It:this.editorCanvas.clientWidth,Vt=bt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/It;this.resize(bt,Vt)},Jt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Jt.prototype.resize=function(It,bt){this._isResizing=!0;var Vt=It/this.imageWidth,le=bt/this.imageHeight;this.imageWidth=Math.round(It),this.imageHeight=Math.round(bt),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Vt,le),this._isResizing=!1},Jt.prototype.scaleMarkers=function(It,bt){var Vt,le=this;this._currentMarker&&this._currentMarker instanceof fn?this._currentMarker.scale(It,bt):(Vt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ot){Ot!==le._currentMarker&&Ot.scale(It,bt)}),Vt!==void 0&&this.setCurrentMarker(Vt)},Jt.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Jt.prototype.setTopLeft=function(){var It=this.editingTarget.getBoundingClientRect(),bt=this.editorCanvas.getBoundingClientRect();this.left=It.left-bt.left,this.top=It.top-bt.top},Jt.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Jt.prototype.addDefs=function(){for(var It,bt=[],Vt=0;Vt<arguments.length;Vt++)bt[Vt]=arguments[Vt];this.defs=se.createDefs(),this.addDefsToImage(),(It=this.defs).append.apply(It,bt)},Jt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Jt.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Jt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Jt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Jt.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Jt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Jt.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Jt.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var It=document.createElement("a");It.href="https://markerjs.com/",It.target="_blank",It.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',It.title="Powered by marker.js",It.style.display="grid",It.style.alignItems="center",It.style.justifyItems="center",It.style.padding="3px",It.style.width="20px",It.style.height="20px",this.logoUI.appendChild(It),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Jt.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Jt.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Jt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Jt.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var It=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=It+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new at(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ft(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Jt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Jt.prototype.removeMarker=function(It){this.markerImage.removeChild(It.container),this.markers.indexOf(It)>-1&&this.markers.splice(this.markers.indexOf(It),1),It.dispose()},Jt.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Jt.prototype.toolbarButtonClicked=function(It,bt){if(It==="marker"&&bt!==void 0)this.createNewMarker(bt);else if(It==="action")switch(bt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Jt.prototype.deleteSelectedMarker=function(){var It=this;if(this._currentMarker!==void 0){var bt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(le){var Ot=new En(It,It._currentMarker,!0);le(Ot),Ot.defaultPrevented&&(bt=!0)}),!bt){var Vt=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(le){return le(new En(It,Vt))})}}},Jt.prototype.clear=function(){var It=this,bt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(be){var pn=new En(It,void 0,!0);be(pn),pn.defaultPrevented&&(bt=!0)}),!bt)){this.setCurrentMarker();for(var Vt=function(be){var pn=le.markers[be];le.setCurrentMarker(le.markers[be]),le._currentMarker.dispose(),le.markerImage.removeChild(le._currentMarker.container),le.markers.splice(le.markers.indexOf(le._currentMarker),1),le.eventListeners.markerdelete.forEach(function(Zn){return Zn(new En(It,pn))})},le=this,Ot=this.markers.length-1;Ot>=0;Ot--)Vt(Ot);this.addUndoStep()}},Object.defineProperty(Jt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Jt.prototype.showNotesEditor=function(){var It;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(It=this._currentMarker.notes)!==null&&It!==void 0?It:"",this.overlayContainer.appendChild(this.notesArea))},Jt.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Jt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Jt.prototype.addUndoStep=function(){var It=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var bt=this.getState(),Vt=this.undoRedoManager.getLastUndoStep();if(!Vt||Vt.width===bt.width&&Vt.height===bt.height){var le=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(bt),le<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ot){return Ot(new Dn(It))})}else this.undoRedoManager.replaceLastUndoStep(bt),this.eventListeners.statechange.forEach(function(Ot){return Ot(new Dn(It))})}},Jt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Jt.prototype.undoStep=function(){var It=this,bt=this.undoRedoManager.undo();bt!==void 0&&(this.restoreState(bt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Vt){return Vt(new Dn(It))}))},Jt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Jt.prototype.redoStep=function(){var It=this,bt=this.undoRedoManager.redo();bt!==void 0&&(this.restoreState(bt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Vt){return Vt(new Dn(It))}))},Jt.prototype.stepZoom=function(){var It=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=It<this.zoomSteps.length-1?this.zoomSteps[It+1]:this.zoomSteps[0]},Jt.prototype.panTo=function(It){this.contentDiv.scrollBy({left:this.prevPanPoint.x-It.x,top:this.prevPanPoint.y-It.y}),this.prevPanPoint=It},Jt.prototype.startRenderAndClose=function(){return ge(this,void 0,void 0,function(){var It,bt,Vt=this;return ye(this,function(le){switch(le.label){case 0:return[4,this.render()];case 1:return It=le.sent(),bt=this.getState(),this.eventListeners.render.forEach(function(Ot){return Ot(new yi(Vt,It,bt))}),this.close(!0),[2]}})})},Jt.prototype.getState=function(It){It===!0&&this.setCurrentMarker();var bt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Vt){return bt.markers.push(Vt.getState())}),bt},Jt.prototype.restoreState=function(It){var bt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);It.markers.forEach(function(Vt){var le=bt._availableMarkerTypes.find(function(be){return be.typeName===Vt.typeName});if(le!==void 0){var Ot=bt.addNewMarker(le);Ot.restoreState(Vt),bt.markers.push(Ot)}}),It.width&&It.height&&(It.width!==this.imageWidth||It.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/It.width,this.imageHeight/It.height),this.eventListeners.restorestate.forEach(function(Vt){return Vt(new Dn(bt))})},Jt.prototype.addNewMarker=function(It){var bt=se.createGroup();return this.markerImage.appendChild(bt),new It(bt,this.overlayContainer,this.settings)},Jt.prototype.createNewMarker=function(It){var bt,Vt=this;(bt=typeof It=="string"?this._availableMarkerTypes.find(function(le){return le.typeName===It}):It)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(bt),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(bt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(le){return le(new En(Vt,Vt._currentMarker))}))},Jt.prototype.markerCreated=function(It){var bt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(It),this.setCurrentMarker(It),It instanceof mn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(mn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Vt){return Vt(new En(bt,bt._currentMarker))})},Jt.prototype.colorChanged=function(It){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=It,this.settings.defaultStrokeColor=It)},Jt.prototype.fillColorChanged=function(It){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=It)},Jt.prototype.markerStateChanged=function(It){var bt=this;this.eventListeners.markerchange.forEach(function(Vt){return Vt(new En(bt,It))})},Jt.prototype.setCurrentMarker=function(It){var bt=this;this._currentMarker!==It&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Vt){return Vt(new En(bt,bt._currentMarker))})),this._currentMarker=It,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Vt){return Vt(new En(bt,bt._currentMarker))}))},Jt.prototype.onPointerDown=function(It){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||It.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var bt=this.markers.find(function(Vt){return Vt.ownsTarget(It.target)});bt!==void 0?(this.setCurrentMarker(bt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(It.clientX,It.clientY),It.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:It.clientX,y:It.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(It.clientX,It.clientY))},Jt.prototype.onDblClick=function(It){if(this._isFocused||this.focus(),this.mode==="select"){var bt=this.markers.find(function(Vt){return Vt.ownsTarget(It.target)});bt!==void 0&&bt!==this._currentMarker&&this.setCurrentMarker(bt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(It.clientX,It.clientY),It.target):this.setCurrentMarker()}},Jt.prototype.onPointerMove=function(It){this.touchPoints!==1&&It.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||It.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(It.clientX,It.clientY)):this.zoomLevel>1&&this.panTo({x:It.clientX,y:It.clientY}))},Jt.prototype.onPointerUp=function(It){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(It.clientX,It.clientY)),this.isDragging=!1,this.addUndoStep()},Jt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Jt.prototype.onKeyUp=function(It){this._currentMarker===void 0||this.notesArea!==void 0||It.key!=="Delete"&&It.key!=="Backspace"||this.deleteSelectedMarker()},Jt.prototype.clientToLocalCoordinates=function(It,bt){var Vt=this.markerImage.getBoundingClientRect();return{x:(It-Vt.left)/this.zoomLevel,y:(bt-Vt.top)/this.zoomLevel}},Jt.prototype.onWindowResize=function(){this.positionUI()},Jt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var It=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=It+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Jt.prototype.addLicenseKey=function(It){oe.addKey(It)},Jt.prototype.addEventListener=function(It,bt){this.eventListeners.addEventListener(It,bt)},Jt.prototype.removeEventListener=function(It,bt){this.eventListeners.removeEventListener(It,bt)},Jt.prototype.renderState=function(It){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(It),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Jt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Jt.prototype.focus=function(){var It=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(bt){return bt(new Dn(It))}))},Jt.prototype.blur=function(){var It=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(bt){return bt(new Dn(It))}))},Jt.instanceCounter=0,Jt}(),Xe=Kt(99064),wn=Kt(955),sn=(Jt,It,bt)=>new Promise((Vt,le)=>{var Ot=Zn=>{try{pn(bt.next(Zn))}catch(ii){le(ii)}},be=Zn=>{try{pn(bt.throw(Zn))}catch(ii){le(ii)}},pn=Zn=>Zn.done?Vt(Zn.value):Promise.resolve(Zn.value).then(Ot,be);pn((bt=bt.apply(Jt,It)).next())}),Hn=({data:Jt,className:It,fullWidth:bt,style:Vt={},onClose:le,onOk:Ot,showFullTools:be,noAssociationId:pn})=>{const Zn=(0,zt.useRef)(null),ii=(0,zt.useRef)(null),wi=(0,zt.useRef)(null),Nr=(0,zt.useRef)(null),[_r,Tr]=(0,zt.useState)(!1),[po,To]=(0,zt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,zt.useEffect)(()=>(wi.current||(wi.current=document.createElement("style"),document.head.appendChild(wi.current)),Jt!=null&&Jt.visible?(document.body.setAttribute("data-custom","y-hidden"),wi.current.innerHTML=" html { overflow-y: hidden; }",Jt!=null&&Jt.src&&Co()):(document.body.removeAttribute("data-custom"),wi.current&&(document.head.removeChild(wi.current),wi.current=null)),()=>{document.body.removeAttribute("data-custom"),wi.current&&(document.head.removeChild(wi.current),wi.current=null)}),[Jt==null?void 0:Jt.visible]);const Co=()=>sn(void 0,null,function*(){Tr(!0),To("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Vr=yield(0,wn.ZJ)(Jt==null?void 0:Jt.src);Zn.current.src="",Zn.current.src=Vr,Zn.current.onload=function(){Wr()},Tr(!1),To("")}),Kr=Vr=>sn(void 0,null,function*(){Tr(!0),To("\u6B63\u5728\u4FDD\u5B58\u4E2D");const No=yield(0,Xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Jt.title,file:Vr.dataUrl}});No!=null&&No.id&&!pn?(yield(0,Xe.ZP)(`/api/attachments/${Jt.id}/add_subitem.json`,{method:"post",body:{subitem_id:No==null?void 0:No.id,settings:JSON.stringify(Vr.state)}})).status===0&&Ot():No!=null&&No.id&&Ot(No),Tr(!1),To("")}),gr=()=>{const Vr=document.querySelector('a[href="https://markerjs.com/"]');Vr&&Vr.parentNode&&(Vr.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(us=>{const Os=document.querySelector(us.name);Os&&Os.setAttribute("title",us.title)})},Wr=()=>{ii.current=new Ne(Zn.current),ii.current.targetRoot=Nr.current,ii.current.addEventListener("render",Kr),ii.current.addEventListener("beforeclose",le),be&&(ii.current.availableMarkerTypes=ii.current.ALL_MARKER_TYPES,ii.current.uiStyleSettings.redoButtonVisible=!0,ii.current.uiStyleSettings.notesButtonVisible=!0,ii.current.uiStyleSettings.zoomButtonVisible=!0,ii.current.uiStyleSettings.zoomOutButtonVisible=!0,ii.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ii.current.uiStyleSettings,ii.current.show(),Jt!=null&&Jt.snapshotData&&ii.current.restoreState(Jt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),gr()},300)};return zt.createElement(zt.Fragment,null,(Jt==null?void 0:Jt.visible)&&zt.createElement(Be.Z,{spinning:_r,tip:po,style:{position:"absolute",width:"100vw"}},zt.createElement("div",{ref:Nr,className:Cn()(ke.imageDimensions,It,bt?ke.fullWidth:""),style:Vt},zt.createElement("img",{className:ke.img,ref:Zn}))))}},41588:function(Fi,Ti,Kt){"use strict";var zt=Kt(59301),ke=Kt(95237),Oe=Kt(43604),Cn=Kt(99313),Be=Kt(3113),vn=Kt(85149),Ie=Kt(88010),ge=Kt(48136),ye=Kt(59301);const Nt=(0,zt.forwardRef)(({callback:se,showSaveButton:oe,value:me=""},Ut)=>{const et=(0,zt.useRef)(),nt=[{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 "}]}]}],ht=[{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}`}]}]}],at=Mt=>{et.current.setValue(et.current.getValue()+" "+Mt.value+" ")},ft=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ye.createElement(ke.Z,{className:Ie.Z.lists,gutter:[10,10]},nt.map((Mt,Rt)=>ye.createElement(Oe.Z,{flex:"110px",className:Ie.Z.item},ye.createElement("div",null,ye.createElement(vn.Z,{value:`$$${Mt.value}$$`}),Mt.name),ye.createElement("div",{className:Ie.Z.children},Mt.children.map((Gt,$t)=>ye.createElement("div",{key:$t},ye.createElement("h1",null,Gt.name),ye.createElement(ke.Z,{gutter:[10,10]},Gt.data.map((ae,ve)=>ye.createElement(Oe.Z,{key:ve,onClick:()=>at(ae),className:Ie.Z.diamond},ye.createElement(vn.Z,{value:"`$$"+ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ye.createElement(ke.Z,{className:Ie.Z.lists,gutter:[10,10]},ht.map((Mt,Rt)=>ye.createElement(Oe.Z,{flex:"110px",className:Ie.Z.item},ye.createElement("div",null,ye.createElement(vn.Z,{value:"`$$"+Mt.value+"$$`"}),Mt.name),ye.createElement("div",{className:Ie.Z.children},Mt.children.map((Gt,$t)=>ye.createElement("div",{key:$t},Gt.name&&ye.createElement("h1",null,Gt.name),ye.createElement(ke.Z,{gutter:[10,10]},Gt.data.map((ae,ve)=>ye.createElement(Oe.Z,{key:ve,onClick:()=>at(ae),className:Ie.Z.diamond},ye.createElement(vn.Z,{value:"`$$"+ae.value+"$$`"}))))))))))}],vt=()=>{var Mt=document.createElement("div");Mt.innerHTML=et.current.getValue();var Rt=Mt.innerText;return se&&se(Rt),Rt};return(0,zt.useImperativeHandle)(Ut,()=>({getData:vt})),ye.createElement("div",{className:Ie.Z.mathWrap},ye.createElement(Cn.default,{defaultActiveKey:"1",items:ft}),ye.createElement("math-field",{locale:"zh_cn",className:Ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},me||""),oe&&ye.createElement("div",{className:Ie.Z.button},ye.createElement(Be.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ti.Z=Nt},8797:function(Fi,Ti,Kt){"use strict";var zt=Kt(59301),ke=Kt(93314),Oe=Kt(3113),Cn=Object.defineProperty,Be=Object.defineProperties,vn=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Nt=(Ut,et,nt)=>et in Ut?Cn(Ut,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ut[et]=nt,se=(Ut,et)=>{for(var nt in et||(et={}))ge.call(et,nt)&&Nt(Ut,nt,et[nt]);if(Ie)for(var nt of Ie(et))ye.call(et,nt)&&Nt(Ut,nt,et[nt]);return Ut},oe=(Ut,et)=>Be(Ut,vn(et));const me=({img:Ut,buttonProps:et={},styles:nt={},customText:ht,ButtonText:at,ButtonClick:ft,Buttonclass:vt,ButtonTwo:Mt,imgStyles:Rt,loading:Gt=!1,className:$t=""})=>zt.createElement("section",{className:`tc animated fadeIn ${$t}`,style:se({color:"#999",margin:"100px auto",visibility:Gt?"hidden":"visible"},nt)},zt.createElement("img",{src:Ut||ke,style:oe(se({},Rt),{pointerEvents:"none",userSelect:"none"})}),zt.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),at&&zt.createElement(Oe.ZP,se({className:vt,onClick:ft},et),at),Mt&&Mt);Ti.Z=me},23210:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return vt}});var zt=Kt(59301),ke={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Oe=Kt(3113),Cn=Kt(70557),Be=Kt(23954),vn=Kt(6848),Ie=Kt(955),ge=Kt(94941),ye=Kt(8797),Nt=Kt(3294),se=Kt(19381),oe=Kt(59301),me=Object.defineProperty,Ut=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(Mt,Rt,Gt)=>Rt in Mt?me(Mt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Mt[Rt]=Gt,at=(Mt,Rt)=>{for(var Gt in Rt||(Rt={}))et.call(Rt,Gt)&&ht(Mt,Gt,Rt[Gt]);if(Ut)for(var Gt of Ut(Rt))nt.call(Rt,Gt)&&ht(Mt,Gt,Rt[Gt]);return Mt},ft=(Mt,Rt,Gt)=>new Promise(($t,ae)=>{var ve=De=>{try{Ye(Gt.next(De))}catch(hn){ae(hn)}},fe=De=>{try{Ye(Gt.throw(De))}catch(hn){ae(hn)}},Ye=De=>De.done?$t(De.value):Promise.resolve(De.value).then(ve,fe);Ye((Gt=Gt.apply(Mt,Rt)).next())}),vt=({editOffice:Mt="view",data:Rt,theme:Gt,type:$t,filename:ae,monacoEditor:ve,className:fe,style:Ye,close:De,onClose:hn,hasMask:Ue,disabledDownload:Pn,onImgDimensions:qn,showNodata:un,recordInfo:fn})=>{const[mn,pe]=(0,zt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Xt,Ve]=(0,zt.useState)(""),[Vn,si]=(0,zt.useState)(),An=window.ENV==="build"?"/react/build":"",Nn=location.host.startsWith("localhost")?Nt.Z.PROXY_SERVER:Nt.Z.API_SERVER,Ci=10*(1024*1024),Mi=(0,zt.useRef)();Rt!=null&&Rt.startsWith("/api")&&$t!=="txt"&&(Rt=Nt.Z.API_SERVER+Rt);const Ri=Dn=>Dn.substring(Dn.lastIndexOf("/")+1).split(".").pop();ae&&ve&&(ve.filename=ae),(0,zt.useEffect)(()=>{var Dn,yi;const En=(yi=(Dn=document.cookie)==null?void 0:Dn.replace(/\s/g,""))==null?void 0:yi.split(";");En==null||En.map(gn=>{let Ne=gn.split("=");Ne[0]==="_educoder_session"&&Ve(Ne[1])})},[]),(0,zt.useEffect)(()=>{$t==="office"&&(Rt.indexOf("bigfilescdn.")>-1||Rt.indexOf("bigfiles1")>-1?si({url:Rt,fileType:Ri(Rt),model:Rt.indexOf("model=edit")?"edit":"view"}):Te())},[$t,Rt]);const Te=()=>ft(void 0,null,function*(){console.log("data:",Rt);let Dn=Rt;Rt.startsWith("http")||(Dn=location.origin+Dn);let yi=new URL(Dn).pathname.split("/").pop();const En=yield(0,ge.gJ)({attachment_id:yi});En.url=Nn+En.url,si(En)}),ci=()=>{if(Rt.startsWith("http")||Rt.startsWith("blob:")){ki();return}(0,Ie.Sv)(ae||"educoder",Rt,ae)},ki=()=>{fn&&(0,se.fc)({id:fn==null?void 0:fn.id,watch_type:1,course_id:fn==null?void 0:fn.course_id}),(0,Ie.Nd)(ae||"educoder",decodeURIComponent(Rt))};return oe.createElement("div",{style:at({},Ye||{}),className:`${Ue&&ke.bgBlack} ${$t?ke.wrp:"hide"}`},De&&oe.createElement("div",{className:ke.close,ref:Mi},!!qn&&oe.createElement(vn.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Mi.current},oe.createElement("span",{onClick:()=>{hn(),qn()}},oe.createElement("i",{className:"icon-yulanpizhu"}))),!Pn&&oe.createElement(vn.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Mi.current},oe.createElement("span",{onClick:ki},oe.createElement("i",{className:"icon-quxiaozhiding"}))),oe.createElement(vn.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Mi.current},oe.createElement("span",{className:"",onClick:hn},oe.createElement("i",{className:"icon-guanbi1"})))),oe.createElement("div",{className:`${ke[fe]} ${fe} ${ke.monaco} ${$t==="txt"?"show":"hide"}`},$t==="txt"&&oe.createElement(oe.Fragment,null,oe.createElement(Be.ZP,at({},ve)))),$t==="audio"&&oe.createElement("audio",{src:`${(Rt==null?void 0:Rt.indexOf("http://"))>-1||(Rt==null?void 0:Rt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Rt}`,autoPlay:!0}),$t==="video"&&oe.createElement(oe.Fragment,null,(Rt==null?void 0:Rt.indexOf("http"))>-1?oe.createElement("video",{controls:!0,src:`${Rt}`,autoPlay:!0}):oe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Rt}`,autoPlay:!0})),$t==="office"&&Vn&&oe.createElement("iframe",{src:`${An}/office.html?key=${Vn.key}&url=${btoa(Vn.url)}&callbackUrl=${Nn+(Vn.callbackUrl||"")}&fileType=${Vn.fileType}&title=${Vn.title||""}&model=${Mt}&officeServer=${Nt.Z.ONLYOFFICE}&disabledDownload=${!!Pn}`}),$t==="html"&&oe.createElement("iframe",{src:Rt+"&disposition=inline"}),$t==="pdf"&&oe.createElement("iframe",{src:`${An}/js/pdfview/index.html?filename=${ae||"educoder.pdf"}&url=${encodeURIComponent(Rt)}&disabledDownload=${!!Pn}`}),$t==="image"&&oe.createElement("img",{src:`${(Rt==null?void 0:Rt.indexOf("http://"))>-1||(Rt==null?void 0:Rt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Rt}`}),($t==="other"||$t==="download")&&oe.createElement(oe.Fragment,null,un?oe.createElement(ye.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:oe.createElement(Oe.ZP,{icon:oe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ci,disabled:Pn},"\u4E0B\u8F7D")}):oe.createElement(Oe.ZP,{type:"primary",size:"middle",onClick:ci,disabled:Pn},oe.createElement(Cn.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{z:function(){return $t},Z:function(){return ae}});var zt=Kt(59301),ke=Kt(50304),Oe=Kt(24768),Cn=Kt(64018),Be=Kt(40846),vn=Kt(3294),Ie=Kt(955),ge=Kt(15342),ye=Kt(1012),Nt=Kt(23210),se=Kt(59301),me=({html:ve})=>{const fe=(0,zt.useRef)(null),Ye=(0,zt.useRef)(null),De=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 36px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,zt.useEffect)(()=>{const hn=fe.current.attachShadow({mode:"open"});Ye.current=document.createElement("div"),Ye.current.className="markdown-body",Ye.current.innerHTML=ve,hn.appendChild(Ye.current);const Ue=document.createElement("style");return Ue.textContent=De,hn.appendChild(Ue),()=>{hn.innerHTML=""}},[]),(0,zt.useEffect)(()=>{Ye.current&&(Ye.current.innerHTML=ve)},[ve]),se.createElement("div",{ref:fe})},Ut=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,at=(ve,fe,Ye)=>fe in ve?Ut(ve,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ve[fe]=Ye,ft=(ve,fe)=>{for(var Ye in fe||(fe={}))nt.call(fe,Ye)&&at(ve,Ye,fe[Ye]);if(et)for(var Ye of et(fe))ht.call(fe,Ye)&&at(ve,Ye,fe[Ye]);return ve};const vt="@\u2581\u2581@",Mt="@\u2581@",Rt=/<pre[^>]*>/g;function Gt(ve){let fe=document.createElement("div");return fe.innerHTML=ve,fe.childNodes.length===0?"":fe.childNodes[0].nodeValue}const $t=(ve,fe)=>{ve=ve||"";const Ye=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,hn=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return fe?ve.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ye,(Pn,qn,un,fn,mn,pe,Xt)=>{const Ve=qn||fn||pe,Vn=un||mn||Xt||"?";return vn.Z.API_SERVER+"/api/attachments/"+Ve+Vn+"&t="+(0,Ie.Jn)(Ve,Date.now())+(Pn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ve=ve.replace(Ue,(Pn,qn,un,fn,mn,pe,Xt)=>{const Ve=qn||fn||pe,Vn=un||mn||Xt||"?";return vn.Z.API_SERVER+"/attachments/download/"+Ve+Vn+"&t="+(0,Ie.Jn)(Ve,Date.now())+(Pn.indexOf(")")>-1?")":"&")}).replace(Ye,(Pn,qn,un,fn,mn,pe,Xt)=>{const Ve=qn||fn||pe,Vn=un||mn||Xt||"?";return vn.Z.API_SERVER+"/api/attachments/"+Ve+Vn+"&t="+(0,Ie.Jn)(Ve,Date.now())+(Pn.indexOf(")")>-1?")":"&")}).replace(De,(Pn,qn,un,fn,mn)=>{const pe=qn||fn,Xt=un||mn||"";return'"'+vn.Z.API_SERVER+"/api/attachments/"+pe+Xt+pe+Xt+"&t="+(0,Ie.Jn)(pe,Date.now())}).replace(hn,(Pn,qn,un,fn,mn)=>{const pe=qn||fn,Xt=un||mn||"";return"("+vn.Z.API_SERVER+"/files/uploads/"+pe+Xt+pe+Xt+"&t="+(0,Ie.Jn)(pe,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),ve)};var ae=({value:ve="",className:fe,showTextOnly:Ye,showLines:De,style:hn={},stylesPrev:Ue={},highlightKeywords:Pn,showProgramFill:qn,isProgramFill:un,disabledFill:fn=!1,programFillValue:mn,onFillChange:pe=Vn=>{},onFillBlur:Xt=()=>{},onFillFocus:Ve=()=>{}})=>{let Vn=String(ve);const[si,An]=(0,zt.useState)(""),[Nn,Yn]=(0,zt.useState)("office"),[Ci,Mi]=(0,zt.useState)([]),Ri=(0,zt.useRef)("a"+(0,ye.Z)()),Te={},ci=(Jt,It,bt)=>{const Vt=document.createElement(Jt===Mt?"input":"textarea");Vt.style.width="100%",Vt.style.height=Jt===Mt?"40px":"151px",Vt.rows=5,Vt.spellcheck=!1,Vt.name="edu-program-fill",Vt.placeholder="\u8BF7\u8F93\u5165",Vt.dataset.id=It;const le=Object.keys(Te).length;return Te[le]=Vt,`<span class="edu-program-fill-wrap ${Jt===Mt?"":"show"}" style="width:${Jt===Mt?"400px":"100%"}" title=${bt||""}><span>${Vt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ki(Jt){return Jt=Jt.replace(/!\[.*?\]\(.*?\)/g,""),Jt=Jt.replace(/\[.*?\]\(.*?\)/g,""),Jt=Jt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Jt=Jt.replace(/<embed.*?>/g,""),Jt=Jt.replace(/<img.*?>/g,""),Jt=Jt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Jt=Jt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Jt=Jt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Jt=Jt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Jt}const Dn=Jt=>Jt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(It,bt){let Vt=bt.replace(/(\n|\r)/g,"").split("}"),le=[];return Vt.map(Ot=>{Ot!=""&&le.push(`.${Ri.current} ${Ot}`)}),`<style>${le.join("}")}</style>`}),yi=(0,zt.useMemo)(()=>{try{const Vt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,le=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ot=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,be=/\(\/attachments\/download\//g;Vn=Vn.replace(be,"("+vn.Z.API_SERVER+"/attachments/download/").replace(Vt,"("+vn.Z.API_SERVER+"/api/attachments/").replace(le,'"'+vn.Z.API_SERVER+"/api/attachments/").replace(Ot,'"'+vn.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Vt){}if(qn){let Vt=-1;return Vn=Vn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(le,Ot,be){var pn;return++Vt,ci(le,Vt,(pn=mn==null?void 0:mn[Vt])==null?void 0:pn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Dn(Vn||"")}</pre>`}let Jt=Dn(Vn);Jt=(0,Oe.ZP)(Jt);const It=(0,Oe.ez)();Vn.match(/\[TOC\]/)&&(Jt=Jt.replace("<p>[TOC]</p>",(0,Oe.Qv)()),(0,Oe.Iy)()),Jt=Jt.replace(/(__special_katext_id_\d+__)/g,(Vt,le)=>{const{type:Ot,expression:be}=It[le];return(0,ge.renderToString)(Gt(be)||"",{displayMode:Ot==="block",throwOnError:!1,output:"html"})}),Jt=Jt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Oe.AL)();const bt=document.createElement("div");if(bt.innerHTML=Jt,Ye)return bt.innerText;if(Pn){const Vt=Pn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Xe(bt,Vt),bt.innerHTML}return setTimeout(()=>Wn(),500),bt.innerHTML},[Vn,Pn]);(0,zt.useEffect)(()=>{wn.current&&wn.current.querySelectorAll(["input","textarea"]).forEach(It=>{It.oninput=En,It.onblur=gn,It.onfocus=Ne})},[Ci]),(0,zt.useEffect)(()=>{var Jt,It,bt,Vt,le;if(mn!=null&&mn.length)try{const Ot=wn.current.querySelectorAll(".edu-program-fill-score"),be=wn.current.querySelectorAll('[name="edu-program-fill"]');for(const[pn,Zn]of be.entries())Zn.value=((Jt=mn==null?void 0:mn[pn])==null?void 0:Jt.value)||"",((It=mn==null?void 0:mn[pn])==null?void 0:It.type)==="warning"?Zn.className="program-fill-warning":((bt=mn==null?void 0:mn[pn])==null?void 0:bt.type)==="success"?Zn.className="program-fill-success":Zn.className="";for(const[pn,Zn]of Ot.entries())Zn.innerHTML=(Vt=mn==null?void 0:mn[pn])!=null&&Vt.score?`${(le=mn==null?void 0:mn[pn])==null?void 0:le.score}\u5206`:"";Mi(mn)}catch(Ot){console.log(Ot,"error")}},[mn]);const En=Jt=>{Ci[Jt.target.dataset.id]=Ci[Jt.target.dataset.id]||{},Ci[Jt.target.dataset.id].value=Jt.target.value,Mi([...Ci]),pe(Ci,Jt.target.dataset.id)},gn=Jt=>{Ci[Jt.target.dataset.id]=Ci[Jt.target.dataset.id]||{},Ci[Jt.target.dataset.id].value=Jt.target.value,Mi([...Ci]),Xt(Ci,Jt.target.dataset.id)},Ne=Jt=>{Ci[Jt.target.dataset.id]=Ci[Jt.target.dataset.id]||{},Ci[Jt.target.dataset.id].value=Jt.target.value,Mi([...Ci]),Ve(Ci,Jt.target.dataset.id)};function Xe(Jt,It){return Jt.childNodes.forEach(bt=>{var Vt;if(bt.childNodes.length>0)Xe(bt,It);else if(bt.nodeName!=="IMG")if(bt.innerHTML)bt.innerHTML=(Vt=bt.innerHTML)==null?void 0:Vt.replace(new RegExp(It,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const le=document.createElement("span");le.innerHTML=bt.textContent.replace(new RegExp(It,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),bt.replaceWith(le)}})}const wn=(0,zt.useRef)();Oe.jb.WebkitLineClamp=De,De&&(hn=ft(ft({},hn),Oe.jb));function sn(Jt){let It=Jt.target;if(It.tagName.toUpperCase()==="A"){let bt=It.getAttribute("href");if(bt.indexOf("office")>-1)Jt.preventDefault(),An(bt),Yn("office");else if(bt.indexOf("application/pdf")>-1)Jt.preventDefault(),An(bt),Yn("pdf");else if(bt.indexOf("text/html")>-1)Jt.preventDefault(),An(bt),Yn("html");else if(bt.startsWith("#")){Jt.preventDefault();let Vt=document.getElementById(bt.replace("#",""));Vt&&Vt.scrollIntoView(!0)}}}const Wn=()=>{var Jt;const It=(Jt=wn.current)==null?void 0:Jt.querySelectorAll("video");It==null||It.forEach(bt=>{if(bt.oncontextmenu=()=>!1,bt.src.indexOf(".m3u8")>-1&&!bt.canPlayType("application/vnd.apple.mpegurl")){if(Be.ZP.isSupported()){var Vt=new Be.ZP;Vt.loadSource(bt.src),Vt.attachMedia(bt)}}})};(0,zt.useEffect)(()=>{if(wn.current&&yi&&yi.match(Rt)&&window.PR.prettyPrint(),wn.current)return wn.current.addEventListener("click",sn),()=>{var Jt;(Jt=wn.current)==null||Jt.removeEventListener("click",sn),(0,Oe.AL)(),(0,Oe.Iy)()}},[yi,wn.current,sn]),(0,zt.useEffect)(()=>{var Jt;const It=bt=>{bt.preventDefault(),bt.clipboardData.setData("text",window.getSelection().toString())};return(Jt=wn.current)==null||Jt.addEventListener("copy",It),()=>{var bt;(bt=wn.current)==null||bt.removeEventListener("copy",It)}},[wn.current]);const Hn=Jt=>/<style[\s\S]*?>/i.test(Jt||"");return zt.createElement(zt.Fragment,null,Ye&&zt.createElement("div",{ref:wn},yi),!Ye&&!Hn(yi)&&zt.createElement("div",{ref:wn,style:ft({},hn),className:`${fe||""} ${fn?"disabled-fill":""} markdown-body ${Ri.current}`,dangerouslySetInnerHTML:{__html:yi}}),!Ye&&Hn(yi)&&zt.createElement(me,{html:yi}),zt.createElement(Nt.Z,{close:!0,data:si,type:si!=null&&si.length?Nn:"",style:ft({},Ue),onClose:()=>An("")}))}},53932:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{h:function(){return Mt},Z:function(){return vt}});var zt=Kt(59301),ke=Kt(57809),Oe=Kt(78241),Cn=Kt(3113),Be=Kt(89780),vn=Kt.n(Be),Ie=Kt(37036),ge=Object.defineProperty,ye=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Ut=(Rt,Gt,$t)=>Gt in Rt?ge(Rt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Rt[Gt]=$t,et=(Rt,Gt)=>{for(var $t in Gt||(Gt={}))oe.call(Gt,$t)&&Ut(Rt,$t,Gt[$t]);if(se)for(var $t of se(Gt))me.call(Gt,$t)&&Ut(Rt,$t,Gt[$t]);return Rt},nt=(Rt,Gt)=>ye(Rt,Nt(Gt));const ht=ke.default.Option,at={labelCol:{span:4},wrapperCol:{span:20}},ft={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"]};var vt=({callback:Rt,onCancel:Gt})=>{const[$t,ae]=(0,zt.useState)("python");function ve(Ye){ae(ft[Ye][1])}function fe(Ye){Rt(Ye)}return zt.createElement(Oe.default,nt(et({},at),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:fe,style:{width:500}}),zt.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},zt.createElement(ke.default,{getPopupContainer:Ye=>Ye.parentNode,onChange:ve},Object.keys(ft).map(Ye=>zt.createElement(ht,{key:Ye,value:Ye},ft[Ye][0])))),zt.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},zt.createElement(Mt,{mode:$t})),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(Cn.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(Cn.ZP,{type:"ghost",onClick:Gt},"\u53D6\u6D88")))};function Mt({value:Rt,onChange:Gt,mode:$t,options:ae={}}){const ve=(0,zt.useRef)(),[fe,Ye]=(0,zt.useState)();return(0,zt.useEffect)(()=>{if(fe){let De=function(hn){const Ue=hn.getValue();Gt&&Gt(Ue)};return fe.on("change",De),()=>{fe.off("change",De)}}},[fe,Gt]),(0,zt.useEffect)(()=>{fe&&fe.setOption("mode",$t)},[fe,$t]),(0,zt.useEffect)(()=>{fe&&(Rt!==fe.getValue()||Rt==="")&&setTimeout(()=>{fe.setValue(Rt||"")},300)},[fe,Rt]),(0,zt.useEffect)(()=>{if(ve.current&&!fe){const De=vn().fromTextArea(ve.current,et({mode:$t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ae));Ye(De)}},[ve.current,fe]),zt.createElement("div",{className:"my-codemirror-container"},zt.createElement("textarea",{ref:ve}))}},12290:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return Lr}});var zt=Kt(59301),ke=Kt(89780),Oe=Kt.n(ke),Cn=Kt(76374),Be=Kt(37036),vn=Kt(6313),Ie=Kt(25717),ge=Kt(99498),ye=Kt(25419),Nt=Kt(67549),se=Kt(85149),oe=({value:ln="",className:nn,showTextOnly:Ae,showLines:Tn,style:Jn={}})=>{const He=(0,zt.useMemo)(()=>"",[ln]);return zt.createElement(zt.Fragment,null,zt.createElement("div",{dangerouslySetInnerHTML:{__html:He}}))},me=Kt(59301),Ut=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,vt=(ln,nn,Ae)=>nn in ln?Ut(ln,nn,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):ln[nn]=Ae,Mt=(ln,nn)=>{for(var Ae in nn||(nn={}))at.call(nn,Ae)&&vt(ln,Ae,nn[Ae]);if(ht)for(var Ae of ht(nn))ft.call(nn,Ae)&&vt(ln,Ae,nn[Ae]);return ln},Rt=(ln,nn)=>et(ln,nt(nn));let Gt=[{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 $t({onActionCallback:ln,title:nn,icon:Ae,actionName:Tn,className:Jn="",children:He}){function we(){ln(Tn)}return me.createElement("a",{title:nn,className:Jn,onClick:we},me.createElement("i",{className:`${Ae}`}),He)}var ae=({watch:ln,showNullButton:nn,showNullProgramButton:Ae,onActionCallback:Tn,fullScreen:Jn,insertTemp:He,hidetoolBar:we,extraUse:qe})=>{const In=[...Gt,{title:`${ln?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ln?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return me.createElement("ul",{className:"markdown-toolbar-container"},!we&&In.map((ui,Pi)=>me.createElement("li",{key:Pi},ui.actionName?me.createElement($t,Rt(Mt({},ui),{onActionCallback:Tn})):me.createElement("span",{className:"v-line"}))),nn?me.createElement("li",null,me.createElement($t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tn},me.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ae?me.createElement(me.Fragment,null,me.createElement("li",null,me.createElement($t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Tn},me.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),me.createElement("li",null,me.createElement($t,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Tn},me.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,He&&me.createElement("li",null,me.createElement($t,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${He}`,onActionCallback:Tn},me.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),qe&&me.createElement("li",null,qe),me.createElement("li",{className:"btn-full-screen"},me.createElement($t,{icon:`${Jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tn})))},ve=Kt(79346),fe=Kt(78241),Ye=Kt(92832),De=Kt(3113),hn=Object.defineProperty,Ue=Object.defineProperties,Pn=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,mn=(ln,nn,Ae)=>nn in ln?hn(ln,nn,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):ln[nn]=Ae,pe=(ln,nn)=>{for(var Ae in nn||(nn={}))un.call(nn,Ae)&&mn(ln,Ae,nn[Ae]);if(qn)for(var Ae of qn(nn))fn.call(nn,Ae)&&mn(ln,Ae,nn[Ae]);return ln},Xt=(ln,nn)=>Ue(ln,Pn(nn));const Ve={labelCol:{span:4},wrapperCol:{span:20}};var Vn=({callback:ln,onCancel:nn})=>{function Ae(Tn){ln(Tn)}return zt.createElement(fe.default,Xt(pe({},Ve),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ae,style:{width:500}}),zt.createElement(fe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},zt.createElement(Ye.default,null)),zt.createElement(fe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},zt.createElement(Ye.default,null)),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(De.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},si=Kt(53932),An=Kt(28451),Nn=Kt(43418),Yn=Kt(95237),Ci=Kt(16406),Mi=Kt(59301),Ri=({callback:ln,onCancel:nn})=>{const Ae=document.createElement("canvas"),Tn=Ae.getContext("2d");Ae.width=1e3,Ae.height=800,Tn.fillStyle="#ffffff",Tn.fillRect(0,0,Ae.width,Ae.height);const Jn=Ae.toDataURL("image/png");return Mi.createElement(Nn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Mi.createElement(Yn.Z,{style:{height:"100vh"}},Mi.createElement(Ci.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Jn,visible:!0,title:String(Date.now())},onOk:He=>{ln({src:He.url})},onClose:nn})))},Te=Kt(12378);function ci(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ci,go.CommandHandler),ci.prototype.canAlignSelection=function(){var ln=this.diagram;return!(ln===null||ln.isReadOnly||ln.isModelReadOnly||ln.selection.count<2)},ci.prototype.alignLeft=function(){var ln=this.diagram;ln.startTransaction("aligning left");var nn=1/0;ln.selection.each(function(Ae){Ae instanceof go.Link||(nn=Math.min(Ae.position.x,nn))}),ln.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(nn,Ae.position.y))}),ln.commitTransaction("aligning left")},ci.prototype.alignRight=function(){var ln=this.diagram;ln.startTransaction("aligning right");var nn=-1/0;ln.selection.each(function(Ae){if(!(Ae instanceof go.Link)){var Tn=Ae.actualBounds.x+Ae.actualBounds.width;nn=Math.max(Tn,nn)}}),ln.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(nn-Ae.actualBounds.width,Ae.position.y))}),ln.commitTransaction("aligning right")},ci.prototype.alignTop=function(){var ln=this.diagram;ln.startTransaction("alignTop");var nn=1/0;ln.selection.each(function(Ae){Ae instanceof go.Link||(nn=Math.min(Ae.position.y,nn))}),ln.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(Ae.position.x,nn))}),ln.commitTransaction("alignTop")},ci.prototype.alignBottom=function(){var ln=this.diagram;ln.startTransaction("aligning bottom");var nn=-1/0;ln.selection.each(function(Ae){if(!(Ae instanceof go.Link)){var Tn=Ae.actualBounds.y+Ae.actualBounds.height;nn=Math.max(Tn,nn)}}),ln.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(Ae.actualBounds.x,nn-Ae.actualBounds.height))}),ln.commitTransaction("aligning bottom")},ci.prototype.alignCenterX=function(){var ln=this.diagram,nn=ln.selection.first();if(nn){ln.startTransaction("aligning Center X");var Ae=nn.actualBounds.x+nn.actualBounds.width/2;ln.selection.each(function(Tn){Tn instanceof go.Link||Tn.move(new go.Point(Ae-Tn.actualBounds.width/2,Tn.actualBounds.y))}),ln.commitTransaction("aligning Center X")}},ci.prototype.alignCenterY=function(){var ln=this.diagram,nn=ln.selection.first();if(nn){ln.startTransaction("aligning Center Y");var Ae=nn.actualBounds.y+nn.actualBounds.height/2;ln.selection.each(function(Tn){Tn instanceof go.Link||Tn.move(new go.Point(Tn.actualBounds.x,Ae-Tn.actualBounds.height/2))}),ln.commitTransaction("aligning Center Y")}},ci.prototype.alignColumn=function(ln){var nn=this.diagram;nn.startTransaction("align Column"),ln===void 0&&(ln=0),ln=parseFloat(ln);var Ae=new Array;nn.selection.each(function(qe){qe instanceof go.Link||Ae.push(qe)});for(var Tn=0;Tn<Ae.length-1;Tn++){var Jn=Ae[Tn],He=Jn.actualBounds.y+Jn.actualBounds.height+ln,we=Ae[Tn+1];we.move(new go.Point(Jn.actualBounds.x,He))}nn.commitTransaction("align Column")},ci.prototype.alignRow=function(ln){ln===void 0&&(ln=0),ln=parseFloat(ln);var nn=this.diagram;nn.startTransaction("align Row");var Ae=new Array;nn.selection.each(function(qe){qe instanceof go.Link||Ae.push(qe)});for(var Tn=0;Tn<Ae.length-1;Tn++){var Jn=Ae[Tn],He=Jn.actualBounds.x+Jn.actualBounds.width+ln,we=Ae[Tn+1];we.move(new go.Point(He,Jn.actualBounds.y))}nn.commitTransaction("align Row")},ci.prototype.canRotate=function(ln){var nn=this.diagram;return!(nn===null||nn.isReadOnly||nn.isModelReadOnly||nn.selection.count<1)},ci.prototype.rotate=function(ln){ln===void 0&&(ln=90);var nn=this.diagram;nn.startTransaction("rotate "+ln.toString());var nn=this.diagram;nn.selection.each(function(Ae){Ae instanceof go.Link||Ae instanceof go.Group||(Ae.angle+=ln)}),nn.commitTransaction("rotate "+ln.toString())},ci.prototype.pullToFront=function(){var ln=this.diagram;ln.startTransaction("pullToFront");var nn=new go.Map;ln.selection.each(function(Ae){nn.set(Ae.layer,0)}),nn.iteratorKeys.each(function(Ae){var Tn=0;Ae.parts.each(function(Jn){if(!Jn.isSelected){var He=Jn.zOrder;isNaN(He)?Jn.zOrder=0:Tn=Math.max(Tn,He)}}),nn.set(Ae,Tn)}),ln.selection.each(function(Ae){ci._assignZOrder(Ae,nn.get(Ae.layer)+1)}),ln.commitTransaction("pullToFront")},ci.prototype.pushToBack=function(){var ln=this.diagram;ln.startTransaction("pushToBack");var nn=new go.Map;ln.selection.each(function(Ae){nn.set(Ae.layer,0)}),nn.iteratorKeys.each(function(Ae){var Tn=0;Ae.parts.each(function(Jn){if(!Jn.isSelected){var He=Jn.zOrder;isNaN(He)?Jn.zOrder=0:Tn=Math.min(Tn,He)}}),nn.set(Ae,Tn)}),ln.selection.each(function(Ae){ci._assignZOrder(Ae,nn.get(Ae.layer)-1-ci._findGroupDepth(Ae))}),ln.commitTransaction("pushToBack")},ci._assignZOrder=function(ln,nn,Ae){Ae===void 0&&(Ae=ln),ln.layer===Ae.layer&&(ln.zOrder=nn),ln instanceof go.Group&&ln.memberParts.each(function(Tn){ci._assignZOrder(Tn,nn+1,Ae)})},ci._findGroupDepth=function(ln){if(ln instanceof go.Group){var nn=0;return ln.memberParts.each(function(Ae){nn=Math.max(nn,ci._findGroupDepth(Ae))}),nn+1}else return 0},ci.prototype.doKeyDown=function(){var ln=this.diagram;if(ln!==null){var nn=ln.lastInput;if(nn.key==="Up"||nn.key==="Down"||nn.key==="Left"||nn.key==="Right"){var Ae=this.arrowKeyBehavior;if(Ae==="none")return;if(Ae==="select"){this._arrowKeySelect();return}else if(Ae==="move"){this._arrowKeyMove();return}else if(Ae==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ci.prototype._getAllParts=function(){var ln=new Array;return this.diagram.nodes.each(function(nn){ln.push(nn)}),this.diagram.parts.each(function(nn){ln.push(nn)}),ln},ci.prototype._arrowKeyMove=function(){var ln=this.diagram,nn=ln.lastInput,Ae=0,Tn=0;if(nn.control||nn.meta)Ae=1,Tn=1;else if(ln.grid!==null){var Jn=ln.grid.gridCellSize;Tn=Jn.width,Ae=Jn.height}ln.startTransaction("arrowKeyMove"),ln.selection.each(function(He){nn.key==="Up"?He.move(new go.Point(He.actualBounds.x,He.actualBounds.y-Ae)):nn.key==="Down"?He.move(new go.Point(He.actualBounds.x,He.actualBounds.y+Ae)):nn.key==="Left"?He.move(new go.Point(He.actualBounds.x-Tn,He.actualBounds.y)):nn.key==="Right"&&He.move(new go.Point(He.actualBounds.x+Tn,He.actualBounds.y))}),ln.commitTransaction("arrowKeyMove")},ci.prototype._arrowKeySelect=function(){var ln=this.diagram,nn=ln.lastInput,Ae=null;nn.key==="Up"?Ae=this._findNearestPartTowards(270):nn.key==="Down"?Ae=this._findNearestPartTowards(90):nn.key==="Left"?Ae=this._findNearestPartTowards(180):nn.key==="Right"&&(Ae=this._findNearestPartTowards(0)),Ae!==null&&(nn.shift?Ae.isSelected=!0:nn.control||nn.meta?Ae.isSelected=!Ae.isSelected:ln.select(Ae))},ci.prototype._findNearestPartTowards=function(ln){var nn=this.diagram.selection.first();if(nn===null)return null;for(var Ae=nn.actualBounds.center,Tn=this._getAllParts(),Jn=1/0,He=nn,we=0;we<Tn.length;we++){var qe=Tn[we];if(qe!==nn&&qe.canSelect()){var In=qe.actualBounds.center,ui=Ae.directionPoint(In),Pi=this._angleCloseness(ui,ln);if(Pi<=45){var Fe=Ae.distanceSquaredPoint(In);Fe*=1+Math.sin(Pi*Math.PI/180),Fe<Jn&&(Jn=Fe,He=qe)}}}return He},ci.prototype._angleCloseness=function(ln,nn){return Math.min(Math.abs(nn-ln),Math.min(Math.abs(nn+360-ln),Math.abs(nn-360-ln)))},ci.prototype._arrowKeyTree=function(){var ln=this.diagram,nn=ln.selection.first();if(nn instanceof go.Node){var Ae=ln.lastInput;if(Ae.key==="Right"){if(!nn.isTreeLeaf)if(!nn.isTreeExpanded)ln.commandHandler.canExpandTree(nn)&&ln.commandHandler.expandTree(nn);else{var Tn=this._sortTreeChildrenByY(nn).first();Tn!==null&&ln.select(Tn)}}else if(Ae.key==="Left")if(!nn.isTreeLeaf&&nn.isTreeExpanded)ln.commandHandler.canCollapseTree(nn)&&ln.commandHandler.collapseTree(nn);else{var Jn=nn.findTreeParentNode();Jn!==null&&ln.select(Jn)}else if(Ae.key==="Up"){var Jn=nn.findTreeParentNode();if(Jn!==null){var He=this._sortTreeChildrenByY(Jn),we=He.indexOf(nn);if(we>0){for(var qe=He.elt(we-1);qe!==null&&qe.isTreeExpanded&&!qe.isTreeLeaf;){var In=this._sortTreeChildrenByY(qe);qe=In.last()}qe!==null&&ln.select(qe)}else ln.select(Jn)}}else if(Ae.key==="Down")if(nn.isTreeExpanded&&!nn.isTreeLeaf){var Tn=this._sortTreeChildrenByY(nn).first();Tn!==null&&ln.select(Tn)}else for(;nn!==null;){var Jn=nn.findTreeParentNode();if(Jn===null)break;var He=this._sortTreeChildrenByY(Jn),we=He.indexOf(nn);if(we<He.length-1){ln.select(He.elt(we+1));break}else nn=Jn}var ui=ln.selection.first();ui!==null&&ln.scrollToRect(ui.actualBounds)}},ci.prototype._sortTreeChildrenByY=function(ln){var nn=new go.List().addAll(ln.findTreeChildrenNodes());return nn.sort(function(Ae,Tn){var Jn=Ae.location,He=Tn.location;return Jn.y<He.y?-1:Jn.y>He.y?1:Jn.x<He.x?-1:Jn.x>He.x?1:0}),nn},ci.prototype.copyToClipboard=function(ln){go.CommandHandler.prototype.copyToClipboard.call(this,ln),this._lastPasteOffset.set(this.pasteOffset)},ci.prototype.pasteFromClipboard=function(){var ln=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ln,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ln},Object.defineProperty(ci.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ln){if(ln!=="move"&&ln!=="select"&&ln!=="scroll"&&ln!=="tree"&&ln!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ln);this._arrowKeyBehavior=ln}}),Object.defineProperty(ci.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ln){if(!(ln instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ln);this._pasteOffset.set(ln)}});var ki=ci,Dn=Kt(74413),yi=Kt(43604),En=Kt(99064),gn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ne=Kt(24065),Xe=Kt(59301),wn=(ln,nn,Ae)=>new Promise((Tn,Jn)=>{var He=In=>{try{qe(Ae.next(In))}catch(ui){Jn(ui)}},we=In=>{try{qe(Ae.throw(In))}catch(ui){Jn(ui)}},qe=In=>In.done?Tn(In.value):Promise.resolve(In.value).then(He,we);qe((Ae=Ae.apply(ln,nn)).next())});function sn({onCancel:ln,callback:nn}){let Ae=(0,zt.useRef)(),Tn=(0,zt.useRef)(),Jn=(0,zt.useRef)(),He=(0,zt.useRef)(!1);const we=(0,zt.useRef)(!1),[qe,In]=(0,zt.useState)(0);function ui(){const Fe=Te.bx.make,Qn={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"};Ae.current=new Te.S0(Tn.current,{padding:20,grid:Fe(Te.s_,"Grid",Fe(Te.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Fe(Te.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Hi=>{var pr=Hi.diagram.commandHandler.addTopLevelParts(Hi.diagram.selection,!0);pr||Hi.diagram.currentTool.doCancel()},commandHandler:Fe(ki),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Hi=>{var pr=Hi.subject;pr.location=pr.location.copy().snapToGridPoint(Hi.diagram.grid.gridOrigin,Hi.diagram.grid.gridCellSize),setTimeout(()=>{Hi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Hi=>{var pr=Hi.subject;setTimeout(()=>{Hi.diagram.commandHandler.editTextBlock()})},LinkRelinked:Hi=>{var pr=Hi.parameter.part;pr.invalidateConnectedLinks();var jr=Hi.subject;Hi.diagram.toolManager.linkingTool.isForwards?jr.toNode.invalidateConnectedLinks():jr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ae.current.nodeTemplate=Fe(Te.NB,"Auto",{locationSpot:Te.z6.Center,locationObjectName:"SHAPE",desiredSize:new Te.$u(120,60),minSize:new Te.$u(40,40),resizable:!0,resizeCellSize:new Te.$u(10,10),rotatable:!0},new Te.KX("location","loc",Te.E9.parse).makeTwoWay(Te.E9.stringify),new Te.KX("desiredSize","size",Te.$u.parse).makeTwoWay(Te.$u.stringify),Fe(Te.bn,{name:"SHAPE",fill:Qn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Te.z6.AllSides,toSpot:Te.z6.AllSides},new Te.KX("figure"),new Te.KX("fill"),new Te.KX("stroke","borderColor"),new Te.KX("strokeWidth","thickness"),new Te.KX("strokeDashArray","dash")),Fe(Te.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Fe(Te.al,{margin:1,textAlign:"center",overflow:Te.al.OverflowEllipsis,editable:!0},new Te.KX("text").makeTwoWay(),new Te.KX("stroke","color"))),Ae.current.nodeTemplate.toolTip=Fe("ToolTip",Fe(Te.s_,"Vertical",{maxSize:new Te.$u(200,NaN)},Fe(Te.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Te.KX("text")),Fe(Te.al,{font:"10pt sans-serif",textAlign:"center"},new Te.KX("text","details"))));function Ei(Hi,pr){var jr=(Ir,co)=>{Ir.handled=!0,Ir.diagram.model.commit(Io=>{var oo=co.part.adornedPart,eo=new Te.E9().setRectSpot(oo.actualBounds,Hi);eo.subtract(oo.location),eo.scale(2,2),eo.x+=Math.sign(eo.x)*130,eo.y+=Math.sign(eo.y)*130,eo.add(oo.location),eo.snapToGridPoint(Ir.diagram.grid.gridOrigin,Ir.diagram.grid.gridCellSize);var Br=Io.copyNodeData(oo.data);Io.setGroupKeyForNodeData(Br,Io.getGroupKeyForNodeData(oo.data)),Io.addNodeData(Br);var ai={from:oo.key,to:Io.getKeyForNodeData(Br)};Io.addLinkData(ai);var vo=Ir.diagram.findNodeForData(Br);vo.location=eo,Ir.diagram.select(vo),setTimeout(()=>{Ir.diagram.commandHandler.editTextBlock()},20)})};return Fe(Te.bn,{figure:pr,alignment:Hi,alignmentFocus:Hi.opposite(),width:Hi.equals(Te.z6.Top)||Hi.equals(Te.z6.Bottom)?25:18,height:Hi.equals(Te.z6.Top)||Hi.equals(Te.z6.Bottom)?18:25,fill:"orange",stroke:Qn.white,strokeWidth:4,mouseEnter:(Ir,co)=>co.fill="dodgerblue",mouseLeave:(Ir,co)=>co.fill="orange",isActionable:!0,click:jr,contextClick:jr})}function Ar(Hi){return Fe(Te.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:(pr,jr)=>jr.fill="dodgerblue",mouseLeave:(pr,jr)=>jr.fill="orange",click:(pr,jr)=>{pr.diagram.commandHandler.showContextMenu(jr.part.adornedPart)}},Hi||{})}Ae.current.nodeTemplate.selectionAdornmentTemplate=Fe(Te.uz,"Spot",Fe(Te.Vm,{padding:10}),Ei(Te.z6.Top,"TriangleUp"),Ei(Te.z6.Left,"TriangleLeft"),Ei(Te.z6.Right,"TriangleRight"),Ei(Te.z6.Bottom,"TriangleDown"),Ar({alignment:new Te.z6(.75,0)}));function Sn(Hi,pr){return(jr,Ir)=>{jr.handled=!0,jr.diagram.model.commit(co=>{co.set(Ir.part.adornedPart.data,Hi,pr)})}}function $n(Hi,pr){return pr||(pr="color"),Fe(Te.bn,{width:16,height:16,stroke:"lightgray",fill:Hi,margin:1,background:"transparent",mouseEnter:(jr,Ir)=>Ir.stroke="dodgerblue",mouseLeave:(jr,Ir)=>Ir.stroke="lightgray",click:Sn(pr,Hi),contextClick:Sn(pr,Hi)})}function xr(){return[Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",$n(Qn.white,"fill"),$n(Qn.beige,"fill"),$n(Qn.extralightblue,"fill"),$n(Qn.extralightred,"fill"))),Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",$n(Qn.lightgray,"fill"),$n(Qn.lightgreen,"fill"),$n(Qn.lightblue,"fill"),$n(Qn.lightred,"fill")))]}function dr(){return[Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",$n(Qn.black),$n(Qn.green),$n(Qn.blue),$n(Qn.red))),Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",$n(Qn.white),$n(Qn.magenta),$n(Qn.purple),$n(Qn.orange)))]}function Dr(Hi,pr){return pr||(pr="thickness"),Fe(Te.bn,"LineH",{width:16,height:16,strokeWidth:Hi,margin:1,background:"transparent",mouseEnter:(jr,Ir)=>Ir.background="dodgerblue",mouseLeave:(jr,Ir)=>Ir.background="transparent",click:Sn(pr,Hi),contextClick:Sn(pr,Hi)})}function tr(Hi,pr){return pr||(pr="dash"),Fe(Te.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Hi,margin:1,background:"transparent",mouseEnter:(jr,Ir)=>Ir.background="dodgerblue",mouseLeave:(jr,Ir)=>Ir.background="transparent",click:Sn(pr,Hi),contextClick:Sn(pr,Hi)})}function vr(){return[Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",Dr(1),Dr(2),Dr(3),Dr(4))),Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",tr(null),tr([2,4]),tr([4,4])))]}function ur(Hi,pr){return pr||(pr="figure"),Fe(Te.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Hi,margin:1,background:"transparent",mouseEnter:(jr,Ir)=>Ir.fill="dodgerblue",mouseLeave:(jr,Ir)=>Ir.fill="lightgray",click:Sn(pr,Hi),contextClick:Sn(pr,Hi)})}Ae.current.nodeTemplate.contextMenu=Fe("ContextMenu",Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",ur("Rectangle"),ur("RoundedRectangle"),ur("Ellipse"),ur("Diamond"))),Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",ur("Parallelogram2"),ur("ManualOperation"),ur("Procedure"),ur("Cylinder1"))),Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",ur("Terminator"),ur("CreateRequest"),ur("Document"),ur("TriangleDown"))),xr(),dr(),vr()),Ae.current.groupTemplate=Fe(Te.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Te.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Hi,pr)=>{var jr=pr.addMembers(pr.diagram.selection,!0);jr||pr.diagram.currentTool.doCancel()},avoidable:!1},new Te.KX("location","loc",Te.E9.parse).makeTwoWay(Te.E9.stringify),Fe(Te.s_,"Auto",{name:"BODY"},Fe(Te.bn,{parameter1:10,fill:Qn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Te.z6.AllSides,toSpot:Te.z6.AllSides},new Te.KX("fill"),new Te.KX("stroke","color"),new Te.KX("strokeWidth","thickness"),new Te.KX("strokeDashArray","dash")),Fe(Te.Vm,{background:"transparent",margin:20})),Fe(Te.al,{alignment:Te.z6.Top,alignmentFocus:Te.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Te.KX("text"),new Te.KX("stroke","color"))),Ae.current.groupTemplate.selectionAdornmentTemplate=Fe(Te.uz,"Spot",Fe(Te.s_,"Auto",Fe(Te.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Fe(Te.Vm,{margin:1.5})),Ar({alignment:Te.z6.TopRight,alignmentFocus:Te.z6.BottomRight})),Ae.current.groupTemplate.contextMenu=Fe("ContextMenu",xr(),dr(),vr()),Ae.current.linkTemplate=Fe(Te.rU,{layerName:"Foreground",routing:Te.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Te.KX("fromSpot","fromSpot",Te.z6.parse),new Te.KX("toSpot","toSpot",Te.z6.parse),new Te.KX("fromShortLength","dir",Hi=>Hi>=1?10:0),new Te.KX("toShortLength","dir",Hi=>Hi>=1?10:0),new Te.KX("points").makeTwoWay(),Fe(Te.bn,{strokeWidth:2},new Te.KX("stroke","color"),new Te.KX("strokeWidth","thickness"),new Te.KX("strokeDashArray","dash")),Fe(Te.bn,{segmentIndex:0,segmentOffset:new Te.E9(15,0),segmentOrientation:Te.rU.OrientAlong,alignmentFocus:Te.z6.Right,figure:"circle",width:10,strokeWidth:0},new Te.KX("fill","color"),new Te.KX("visible","dir",Hi=>Hi===1)),Fe(Te.bn,{segmentIndex:-1,segmentOffset:new Te.E9(-10,6),segmentOrientation:Te.rU.OrientPlus90,alignmentFocus:Te.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Te.KX("fill","color"),new Te.KX("visible","dir",Hi=>Hi>=1),new Te.KX("width","thickness",Hi=>7+3*Hi),new Te.KX("height","thickness",Hi=>7+3*Hi),new Te.KX("segmentOffset","thickness",Hi=>new Te.E9(-15,4+1.5*Hi))),Fe(Te.bn,{segmentIndex:0,segmentOffset:new Te.E9(15,-6),segmentOrientation:Te.rU.OrientMinus90,alignmentFocus:Te.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Te.KX("fill","color"),new Te.KX("visible","dir",Hi=>Hi===2),new Te.KX("width","thickness",Hi=>7+3*Hi),new Te.KX("height","thickness",Hi=>7+3*Hi),new Te.KX("segmentOffset","thickness",Hi=>new Te.E9(-15,4+1.5*Hi))),Fe(Te.al,{alignmentFocus:new Te.z6(0,1,-4,0),editable:!0},new Te.KX("text").makeTwoWay(),new Te.KX("stroke","color"))),Ae.current.linkTemplate.selectionAdornmentTemplate=Fe(Te.uz,Fe(Te.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:kr(2)},new Te.KX("pathPattern","thickness",kr)),Ar({alignmentFocus:new Te.z6(0,0,-6,-4)}));function kr(Hi){return Fe(Te.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Hi+4).toString()+" H3"})}function Ao(Hi){var pr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Hi===0?pr="M0 0 M16 16 M0 8 L16 8":Hi===2&&(pr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Fe(Te.bn,{geometryString:pr,margin:2,background:"transparent",mouseEnter:(jr,Ir)=>Ir.background="dodgerblue",mouseLeave:(jr,Ir)=>Ir.background="transparent",click:Sn("dir",Hi),contextClick:Sn("dir",Hi)})}function Oo(Hi){var pr=(jr,Ir)=>{jr.handled=!0,jr.diagram.model.commit(co=>{var Io=Ir.part.adornedPart;co.set(Io.data,Hi?"toSpot":"fromSpot",Te.z6.stringify(Te.z6.AllSides)),(Hi?Io.toNode:Io.fromNode).invalidateConnectedLinks()})};return Fe(Te.bn,{width:12,height:12,fill:"transparent",mouseEnter:(jr,Ir)=>Ir.background="dodgerblue",mouseLeave:(jr,Ir)=>Ir.background="transparent",click:pr,contextClick:pr})}function Kn(Hi,pr){var jr=0,Ir=Te.z6.RightSide;Hi.equals(Te.z6.Top)?(jr=270,Ir=Te.z6.TopSide):Hi.equals(Te.z6.Left)?(jr=180,Ir=Te.z6.LeftSide):Hi.equals(Te.z6.Bottom)&&(jr=90,Ir=Te.z6.BottomSide),pr||(jr-=180);var co=(Io,oo)=>{Io.handled=!0,Io.diagram.model.commit(eo=>{var Br=oo.part.adornedPart;eo.set(Br.data,pr?"toSpot":"fromSpot",Te.z6.stringify(Ir)),(pr?Br.toNode:Br.fromNode).invalidateConnectedLinks()})};return Fe(Te.bn,{alignment:Hi,alignmentFocus:Hi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:jr,background:"transparent",mouseEnter:(Io,oo)=>oo.background="dodgerblue",mouseLeave:(Io,oo)=>oo.background="transparent",click:co,contextClick:co})}Ae.current.linkTemplate.contextMenu=Fe("ContextMenu",dr(),vr(),Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",Ao(0),Ao(1),Ao(2))),Fe("ContextMenuButton",Fe(Te.s_,"Horizontal",Fe(Te.s_,"Spot",Oo(!1),Kn(Te.z6.Top,!1),Kn(Te.z6.Left,!1),Kn(Te.z6.Right,!1),Kn(Te.z6.Bottom,!1)),Fe(Te.s_,"Spot",{margin:new Te.Zt(0,0,0,2)},Oo(!0),Kn(Te.z6.Top,!0),Kn(Te.z6.Left,!0),Kn(Te.z6.Right,!0),Kn(Te.z6.Bottom,!0)))));const Vo=`{ "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 rs=["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 Po(Hi){return console.log("shapeName:",Hi),rs.indexOf(Hi)>=0}var zn=new Te.YI(Jn.current,{maxSelectionCount:1,linkTemplate:Fe(Te.rU,{locationSpot:Te.z6.Center,selectionAdornmentTemplate:Fe(Te.uz,"Link",{locationSpot:Te.z6.Center},Fe(Te.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Fe(Te.bn,{toArrow:"Standard",stroke:null}))},{routing:Te.rU.AvoidsNodes,curve:Te.rU.JumpOver,corner:5,toShortLength:4},new Te.KX("points"),Fe(Te.bn,{isPanelMain:!0,strokeWidth:2}),Fe(Te.bn,{toArrow:"Standard",stroke:null})),model:new Te.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Te.bn.getFigureGenerators().toArray().map(Hi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Hi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ae.current.addDiagramListener("TextEdited",function(Hi){var pr;const jr=Hi.subject.part;var Ir=(pr=document.activeElement)==null?void 0:pr.value;typeof Ir=="string"&&Ir.trim()===""&&Ae.current.model.commit(function(co){co.set(jr.data,"text","\u672A\u547D\u540D"),Ae.current.commandHandler.stopCommand()},"increment")}),zn.nodeTemplate=Fe(Te.NB,"Auto",{locationSpot:Te.z6.Center},new Te.KX("location","location",Te.E9.parse).makeTwoWay(Te.E9.stringify),Fe(Te.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 Te.KX("stroke").makeTwoWay(),new Te.KX("fill").makeTwoWay(),new Te.KX("figure")),Fe(Te.al,{margin:new Te.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Te.$u(16,16),maxSize:new Te.$u(10,NaN),textAlign:"center",editable:!0},new Te.KX("key").makeTwoWay())),setTimeout(()=>{Ae.current.grid=Fe(Te.s_,"Grid",Fe(Te.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Fe(Te.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ae.current.grid.visible=!0,Ae.current.grid.gridCellStroke="darkgray",Ae.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ae.current,Ae.current}const Pi=()=>wn(this,null,function*(){var Fe,Qn=Ae.current.makeImage();const Ei=yield(0,En.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Qn.src,file_data:JSON.stringify({login:(Fe=(0,Ne.eY)())==null?void 0:Fe.login,data:JSON.parse(Ae.current.model.toJson())})}});nn({src:Ei.url})});return(0,zt.useEffect)(()=>(setTimeout(()=>{ui()},500),In(qe+1),()=>{Ae.current=null}),[]),Xe.createElement("div",{ref:we,className:He.current?`${gn.maxH60} body-overflow-initial`:"body-overflow-initial"},Xe.createElement(Nn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!qe,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Xe.createElement(Yn.Z,null,Xe.createElement(yi.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Xe.createElement(yi.Z,{onClick:()=>{var Fe,Qn,Ei=Ae.current.selection.first();if(He.current=!He.current,document.activeElement&&Ei){let Ar=(Qn=(Fe=document.activeElement)==null?void 0:Fe.value)==null?void 0:Qn.trim();typeof Ar=="string"&&Ae.current.model.commit(function(Sn){Sn.set(Ei.data,"text",Ar||"\u672A\u547D\u540D"),Ae.current.commandHandler.stopCommand()},"increment")}In(qe+1)}},Xe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ln},Xe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:gn.flowChartWrp},Xe.createElement("div",{style:{display:"flex",height:"100%"}},Xe.createElement("div",{style:{width:"300px",height:"100%"}},Xe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Xe.createElement("div",{style:{height:"calc(100% - 50px)"},className:gn.myPaletteDiv,ref:Jn})),Xe.createElement("div",{style:{flex:1,position:"relative"}},Xe.createElement("div",{ref:Tn,style:{height:"80vh"}}))),Xe.createElement("div",{className:"tr"},Xe.createElement(De.ZP,{size:"large",onClick:Pi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Wn=sn,Hn=Kt(5112),Jt=Kt(5871);const It=Hn.ZP.Group,bt={margin:"0 8px"};var Vt=({callback:ln,onCancel:nn})=>{function Ae(Tn){ln(Tn)}return zt.createElement(fe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ae},zt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},zt.createElement("span",{style:bt},"\u5355\u5143\u683C\u6570\uFF1A"),zt.createElement("span",{style:bt},"\u884C\u6570"),zt.createElement(fe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},zt.createElement(Jt.Z,null)),zt.createElement("span",{style:bt},"\u5217\u6570"),zt.createElement(fe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},zt.createElement(Jt.Z,null))),zt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},zt.createElement("span",{style:bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),zt.createElement(fe.default.Item,{name:"align"},zt.createElement(It,null,zt.createElement(Hn.ZP,{value:"default"},zt.createElement("i",{className:"fa fa-align-justify"})),zt.createElement(Hn.ZP,{value:"left"},zt.createElement("i",{className:"fa fa-align-left"})),zt.createElement(Hn.ZP,{value:"center"},zt.createElement("i",{className:"fa fa-align-center"})),zt.createElement(Hn.ZP,{value:"right"},zt.createElement("i",{className:"fa fa-align-right"}))))),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(De.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},le=Kt(78673),Ot=Kt(80727),be=Kt.n(Ot),Zn=(0,zt.forwardRef)(({use3d:ln,width:nn,height:Ae,callback:Tn,showSaveButton:Jn},He)=>{const we=(0,zt.useRef)(),qe=(0,zt.useRef)(),[In,ui]=(0,zt.useState)(!1),Pi=(0,zt.useRef)({id:we,appName:"graphing",width:nn||1e3,height:Ae||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,zt.useEffect)(()=>{qe.current=new(be())(Pi.current,!0),window.onload=function(){qe.current.inject("applet_container")}},[]);const Fe=()=>{var Qn=window.ggbApplet.getPNGBase64(1,!0,72);return Tn&&Tn(Qn),Qn};return(0,zt.useEffect)(()=>{Pi.current.appName=In?"3D":"graphing",qe.current.inject("applet_container")},[In]),(0,zt.useEffect)(()=>{ui(ln)},[ln]),(0,zt.useImperativeHandle)(He,()=>({getImgData:Fe})),zt.createElement(zt.Fragment,null,zt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:we}),zt.createElement(Yn.Z,{align:"middle"},zt.createElement(yi.Z,{flex:1},zt.createElement(le.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:In,onChange:Qn=>ui(Qn)})),zt.createElement(yi.Z,null,zt.createElement(De.ZP,{size:"large",onClick:Fe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ii=Kt(41588),wi=Kt(8591);const Nr="link",_r="upload-image",Tr="add-flowchart",po="draw-image",To="add-flowchart",Co="code-block",Kr="add-table",gr="------------",Wr={default:gr,left:`:${gr}`,center:`:${gr}:`,right:`${gr}:`};var Vr=Kt(58856);function No(){}let us=0;const Os=1e4,Ms="\u2581",Fo="@\u2581\u2581@",jt="@\u2581@",la=`
**\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`,fs=["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 vs(ln){return/^\d+$/.test(ln)?`${ln}px`:ln}const Fa=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Sa={[Fa+"-B"]:"bold",[Fa+"-I"]:"italic"},Pr={[Nr]:"\u6DFB\u52A0\u94FE\u63A5",[Co]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[_r]:"\u6DFB\u52A0\u56FE\u7247",[po]:"\u6DFB\u52A0\u753B\u56FE",[Tr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Lr=({defaultValue:ln="",onChange:nn,width:Ae="100%",height:Tn=400,miniToolbar:Jn=!1,isFocus:He=!1,watch:we,insertTemp:qe,mode:In="markdown",id:ui="markdown-editor-id",showResizeBar:Pi=!1,noStorage:Fe=!1,showNullButton:Qn=!1,showNullProgramButton:Ei=!1,hidetoolBar:Ar=!1,fullScreen:Sn=!1,onBlur:$n,onCMBeforeChange:xr,onFullScreen:dr,className:Dr="",disablePaste:tr=!1,disabled:vr=!1,disabledFill:ur=!1,placeholder:kr="",values:Ao="",extraUse:Oo})=>{const[Kn,Vo]=(0,zt.useState)(null),[rs,Po]=(0,zt.useState)(ln),[zn,Hi]=(0,zt.useState)(we),[pr,jr]=(0,zt.useState)(Sn),[Ir,co]=(0,zt.useState)(""),[Io,oo]=(0,zt.useState)(0),[eo,Br]=(0,zt.useState)(Tn),[ai,vo]=(0,zt.useState)(!1),[ei,Qo]=(0,zt.useState)(0),[Vs,Xo]=(0,zt.useState)(0),Js=(0,zt.useRef)(),ks=(0,zt.useRef)(),no=(0,zt.useRef)(),ro=(0,zt.useRef)();(0,zt.useEffect)(()=>{const Hr=window.scrollY||window.pageYOffset;Po(Ao),Kn==null||Kn.setValue(Ao),window.scrollTo(0,Hr)},[Ao]),(0,zt.useEffect)(()=>{dr==null||dr(pr)},[pr]),(0,zt.useEffect)(()=>{if(Js.current){let Hr=function(Ni,to){var hs;if(tr){to.preventDefault();return}const zs=to.clipboardData;if(zs){const Gs=zs.types.toString(),so=zs.items;if(Gs==="Files"||zs.types.indexOf("Files")>-1){if(to.preventDefault(),In=="stex")return;try{let Ls=so[1];((hs=so[0])==null?void 0:hs.kind)==="file"&&(Ls=so[0]);const Xa=Ls.getAsFile(),Ul=Xa.name.split(".").pop();(0,An.I)(Xa,Ta=>{var qo,Mn,ca;Ta.id?((qo=Xa==null?void 0:Xa.type)==null?void 0:qo.indexOf("image"))>-1?zr.replaceSelection(`<img width="100%" src="/api/attachments/${Ta.id}?type=${Ta.content_type})" alt="" />`):((Mn=Xa==null?void 0:Xa.type)==null?void 0:Mn.indexOf("video"))>-1?zr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ta.id}"></video>`):((ca=Xa==null?void 0:Xa.type)==null?void 0:ca.indexOf("pdf"))>-1?zr.replaceSelection(`<a href="/api/attachments/${Ta.id}?type=${Xa.type}&disposition=inline" target="_blank">${Xa.name}</a>`):fs.includes(Ul)?zr.replaceSelection(`<a href="/api/attachments/${Ta.id}?type=office&disposition=inline" target="_blank">${Xa.name}</a>`):zr.replaceSelection(`[${Xa.name}](/api/attachments/${Ta.id}?type=${Ta.content_type})`):(Ta==null?void 0:Ta.status)===401&&(document.location.href="/user/login")})}catch(Ls){wi.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const zr=Oe().fromTextArea(Js.current,{mode:In,lineNumbers:!Jn,lineWrapping:!0,value:ln,autoCloseTags:!0,autoCloseBrackets:!0});return zr.on("keyup",function(Ni,to){to.keyCode===8&&(Ni.getValue()==""?zr.setOption("placeholder",kr):zr.setOption("placeholder",null))}),zr.on("keydown",function(Ni,to){if(to.keyCode===8){var hs=Ro(Ni);hs&&to.preventDefault()}}),He&&zr.focus(),zr.on("paste",Hr),vr&&zr.on("beforeChange",function(Ni,to){(to.origin==="paste"||to.origin==="+input")&&to.cancel()}),Vo(zr),()=>{zr.off("paste",Hr)}}},[]);const Go=(0,zt.useCallback)(()=>{if(ks.current)try{}catch(Hr){console.log(Hr,"---- to set md editor body height")}},[eo,ks,pr]);(0,zt.useEffect)(()=>{function Hr(){let zr=new Cn.Z(Ni=>{for(let to of Ni)(to.target.offsetHeight>0||to.target.offsetWidth>0)&&(Go(),Kn.setSize("100%","100%"),Kn.refresh())});return zr.observe(Js.current.parentElement),zr}if(Kn){const zr=Hr();return()=>{var Ni,to;(Ni=Js.current)!=null&&Ni.parentElement&&zr.unobserve((to=Js.current)==null?void 0:to.parentElement)}}},[Kn,Go]),(0,zt.useEffect)(()=>{if(Kn){let Hr=[];for(const[zr,Ni]of Object.entries(Sa)){let to={[zr]:()=>{Ji(Ni)}};Hr.push(to),Kn.addKeyMap(to)}return()=>{for(let zr of Hr)Kn.removeKeyMap(zr)}}},[Kn]),(0,zt.useEffect)(()=>{Sn!==pr&&jr(Sn)},[Sn]),(0,Vr.Z)(()=>{if(!Fe&&Io>0){let Hr=new Date().getTime(),zr=window.sessionStorage.getItem(ui);Hr>=Io+Os&&(!zr||zr!==rs)&&(window.sessionStorage.setItem(ui,rs),vo(!0))}},Os),(0,zt.useEffect)(()=>{Hi(we)},[Kn,we]),(0,zt.useEffect)(()=>{Kn&&He&&Kn.focus()},[Kn,He]),(0,zt.useEffect)(()=>{if(zn&&Kn){let Hr=function(Ni){let to=Ni.target;if(ro.current){let hs=to.scrollTop/to.scrollHeight;ro.current.scrollTop=ro.current.scrollHeight*hs}};const zr=Kn.getScrollerElement();return zr.addEventListener("scroll",Hr),()=>{zr.removeEventListener("scroll",Hr)}}},[Kn,zn]),(0,zt.useEffect)(()=>{if(Kn&&xr){let Hr=function(zr,Ni){xr(zr,Ni)};return Kn.on("beforeChange",Hr),()=>{Kn.off("beforeChange",Hr)}}},[Kn,xr]),(0,zt.useEffect)(()=>{if(Kn&&$n){let Hr=function(){$n(Kn.getValue())};return Kn.on("blur",Hr),()=>{Kn.off("blur",Hr)}}},[Kn,$n]);function Ro(Hr,zr){var Ni=Hr.getDoc(),to=Ni.getCursor(),hs=Ni.getLine(to.line),zs=hs.charAt(to.ch-1),Gs=hs.lastIndexOf("@\u2581@",to.ch),so=hs.lastIndexOf("@\u2581\u2581@",to.ch),Ls=Gs>so?Gs:so,Xa=Gs>so?3:4;if(Fo.indexOf(zs)===-1)return null;if(console.log("change1:",zr,Hr,hs,to,Ls,Gs,so,zs),Ls>=0&&to.ch-Ls<5){var Ul=Ls+Xa;return Ni.replaceRange("",{line:to.line,ch:Ls},{line:to.line,ch:Ul}),{line:to.line,ch:Ul}}return null}(0,zt.useEffect)(()=>{if(Kn){let Hr=function(zr,Ni){const to=zr.getValue();Po(to),oo(new Date().getTime()),zr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nn&&(Ei?nn(to,yo(to)):nn(to))};return Kn.on("change",Hr),()=>{Kn.off("change",Hr)}}},[Kn,nn]),(0,zt.useEffect)(()=>{if(Kn)if(ln==null)Kn.setValue(""),Po("");else{const Hr=window.scrollY||window.pageYOffset;ln!==Kn.getValue()&&(Kn.setValue(ln),Po(ln),Kn.setCursor(vr?1:Kn.lineCount(),0),window.scrollTo(0,Hr))}},[Kn,ln]);const Ji=(0,zt.useCallback)(Hr=>{const zr=Kn.getCursor(),Ni=Kn.getSelection();let to=Ni.split(`
`);switch(Hr){case"bold":return Kn.replaceSelection("**"+Ni+"**"),Ni===""&&Kn.setCursor(zr.line,zr.ch+2),Kn.focus();case"italic":return Kn.replaceSelection("*"+Ni+"*"),Ni===""&&Kn.setCursor(zr.line,zr.ch+1),Kn.focus();case"code":return Kn.replaceSelection("`"+Ni+"`"),Ni===""&&Kn.setCursor(zr.line,zr.ch+1),Kn.focus();case"inline-latex":return co("inline-latex"),Kn.focus();case"latex":return Kn.replaceSelection("```latex\n"+Ni+"\n```"),Kn.setCursor(zr.line+1,Ni.length+1),Kn.focus();case"line-break":return Kn.replaceSelection(`<br/>
`),Kn.focus();case"list-ul":return Ni===""?Kn.replaceSelection("- "+Ni):Kn.replaceSelection(to.map(hs=>hs===""?"":`- ${hs}`).join(`
`)),Kn.focus();case"list-ol":return Ni===""?Kn.replaceSelection("1. "+Ni):Kn.replaceSelection(to.map((hs,zs)=>hs===""?"":`${zs+1}. ${hs}`).join(`
`)),Kn.focus();case"add-null-ch":return Ni===""&&Kn.setCursor(zr.line,zr.ch),Kn.replaceSelection(Ms),Kn.focus();case"add-signal":return Ni===""&&Kn.setCursor(zr.line,zr.ch),Kn.replaceSelection(jt),Kn.focus();case"add-multiple":return Ni===""&&Kn.setCursor(zr.line,zr.ch),Kn.replaceSelection(Fo),Kn.focus();case"inster-template-1":return Ni===""&&Kn.setCursor(zr.line,zr.ch),Kn.replaceSelection(la),Kn.focus();case"eraser":return Kn.setValue(""),Kn.focus();case"trigger-watch":return Hi(!zn),Kn.focus();case"trigger-full-screen":return jr(!pr),Kn.focus();case Nr:co(Nr);return;case Co:co(Co);return;case _r:co(_r);return;case po:co(po);return;case"maths-latex":co("maths-latex");return;case Tr:co(Tr);return;case Kr:co(Kr);return;default:throw new Error}},[Kn,zn,pr]),re=(0,zt.useCallback)((Hr,zr)=>{var Ni,to,hs,zs,Gs,so;switch(co(""),Ir){case Nr:const{title:qo,link:Mn}=Hr;return Kn.replaceSelection(`[${qo}](${Mn})`),Kn.focus();case Co:const{language:ca,content:tc}=Hr;return Kn.replaceSelection(["```"+ca,tc,"```"].join(`
`)),Kn.focus();case"maths-latex":for(var Ls=atob(Hr),Xa=new Uint8Array(Ls.length),Ul=0;Ul<Ls.length;Ul++)Xa[Ul]=Ls.charCodeAt(Ul);var Ta=new Blob([Xa],{type:"image/png"});(0,An.I)(Ta,jo=>{jo.id?Kn.replaceSelection(`![,](/api/attachments/${jo.id}?type=${jo.content_type})`):(jo==null?void 0:jo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Kn.replaceSelection("`$$"+Hr+"$$`");break;case _r:case po:case To:const{src:Vl,alt:aA}=Hr,Oa=zr,ec=(hs=(to=(Ni=Oa==null?void 0:Oa.name)==null?void 0:Ni.split("."))==null?void 0:to.pop)==null?void 0:hs.call(to);return((zs=Oa==null?void 0:Oa.type)==null?void 0:zs.indexOf("image"))>-1||!(Oa!=null&&Oa.type)?Oa!=null&&Oa.align||Oa!=null&&Oa.width?Kn.replaceSelection(`<p style="text-align:${Oa.align||"initial"}"><img width="${Oa.width?Oa.width+"%":"initial"}" src="${Vl}" alt="${aA||""}" /></p>`):Kn.replaceSelection(`<img width="100%" src="${Vl}" alt="${aA||""}" />`):((Gs=Oa==null?void 0:Oa.type)==null?void 0:Gs.indexOf("video"))>-1?Kn.replaceSelection(`<video width="100%" controls src="${Vl}"></video>`):((so=Oa==null?void 0:Oa.type)==null?void 0:so.indexOf("pdf"))>-1?Kn.replaceSelection(`<a href="${Vl}?type=${Oa.type}&disposition=inline" target="_blank">${Oa.name}</a>`):fs.includes(ec)?Kn.replaceSelection(`<a href="${Vl}?type=office&disposition=inline" target="_blank">${Oa.name}</a>`):Kn.replaceSelection(`[${Oa.name}](${Vl})`),Kn.focus();case Kr:const{row:Al,col:ps,align:Ys}=Hr;let lA=`
`;for(let jo=0;jo<Al;jo++){let Fs=[],Zo=[];for(let mr=0;mr<ps;mr++)jo===1&&Zo.push(Wr[Ys]),Fs.push(" ");jo===1&&(lA+=`| ${Zo.join(" | ")} |
`),lA+=`| ${Fs.join(ps===1?"":" | ")} |
`}return Kn.replaceSelection(lA+`
`),Kn.focus();default:throw new Error}},[Kn,Ir]),zo=(0,zt.useMemo)(()=>{switch(Ir){case Nr:return zt.createElement(Vn,{callback:re,onCancel:Hs});case Co:return zt.createElement(si.Z,{callback:re,onCancel:Hs});case _r:return zt.createElement(An.Z,{callback:re,onCancel:Hs});case Tr:return zt.createElement(Wn,{callback:re,onCancel:Hs});case Kr:return zt.createElement(Vt,{callback:re,onCancel:Hs});case"maths-latex":return zt.createElement(Zn,{showSaveButton:!0,callback:re});case"inline-latex":return zt.createElement(ii.Z,{showSaveButton:!0,callback:re});default:return null}},[Ir]);function Hs(){co("")}(0,zt.useEffect)(()=>{if(no.current){let Hr=function(Gs){hs=!0,zs=Gs.pageY},zr=function(){hs=!1},Ni=function(Gs){if(hs){let so=Gs.pageY-zs;so<0&&(so=0),so>300&&(so=300);let Ls=Tn+so+"px";Br(Ls)}},to=no.current,hs=!1,zs=0;return to.addEventListener("mousedown",Hr),document.addEventListener("mousemove",Ni),document.addEventListener("mouseup",zr),()=>{to.removeEventListener("mousedown",Hr),document.removeEventListener("mousemove",Ni),document.removeEventListener("mouseup",zr)}}},[Kn,no]),(0,zt.useEffect)(()=>{Br(Tn)},[Tn]);const Qa=vs(Ae),Ra=vs(eo),hl={width:Qa,height:Ra},Do=(0,zt.useMemo)(()=>{if(Io){let Hr=new Date(Io),zr=Hr.getHours(),Ni=Hr.getMinutes(),to=Hr.getSeconds();return zr=zr<10?"0"+zr:zr,Ni=Ni<10?"0"+Ni:Ni,to=to<10?"0"+to:to,`${zr}:${Ni}:${to}`}return 0},[Io]),yo=Hr=>{const zr=[];if(Ei){let Ni=-1;Hr=Hr.replace(/(@▁▁@|@▁@)/g,function(to,hs,zs){zr.push({multiLine:to!==jt})})}return zr};function os(){window.sessionStorage.removeItem(ui),vo(!1),oo(0)}function wo(){vo(!1),oo(0),Kn.setValue(window.sessionStorage.getItem(ui))}(0,zt.useEffect)(()=>{Pr[Ir]&&Ir!==po&&Ir!==Tr&&setTimeout(()=>{const Hr=document.getElementsByClassName("markdown-popup-form")[0],zr=window.innerWidth/2-Hr.offsetWidth/2,Ni=window.innerHeight/2-Hr.offsetHeight/2;Qo(zr),Xo(Ni)},0)},[Ir]);const Ps=Hr=>{Hr.preventDefault();const zr=Hr.clientX-ei,Ni=Hr.clientY-Vs;document.body.onmousemove=to=>{let hs=to.clientX-zr,zs=to.clientY-Ni;const Gs=document.getElementsByClassName("markdown-popup-form")[0],so=window.innerWidth-Gs.offsetWidth,Ls=window.innerHeight-Gs.offsetHeight;hs=Math.max(0,Math.min(hs,so)),zs=Math.max(0,Math.min(zs,Ls)),Pl(to.clientX,to.clientY,zr,Ni)&&(Qo(hs),Xo(zs))},document.body.onmouseup=function(){document.body.onmousemove=null}},Pl=(Hr,zr,Ni,to)=>{const hs=document.body.clientHeight,zs=document.body.clientWidth;return Hr<20&&Ni>Hr||Hr>zs-20&&Ni<Hr||zr<20&&to>zr||zr>hs-20&&to<zr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return zt.createElement(zt.Fragment,null,zt.createElement("div",{className:"markdown-editor-wrapper",ref:ks},zt.createElement("div",{className:`markdown-editor-container ${Dr} ${zn?"on-preview":""} ${Jn?"mini":""} ${pr?"full-screen":""}`,style:hl},zt.createElement(ae,{insertTemp:qe,watch:zn,fullScreen:pr,showNullButton:Qn,showNullProgramButton:Ei,onActionCallback:Ji,hidetoolBar:Ar,extraUse:Oo}),zt.createElement("div",{className:"markdown-editor-body"},zt.createElement("div",{className:"codemirror-container"},zt.createElement("textarea",{ref:Js,placeholder:kr})),zn?zt.createElement("div",{ref:ro,className:"preview-container"},In==="stex"&&zt.createElement(oe,{value:rs}),In!=="stex"&&zt.createElement(se.Z,{disabledFill:ur,showProgramFill:Ei,value:rs})):null))),Pi?zt.createElement("a",{ref:no,className:"editor-resize"}):null,Ir===po&&zt.createElement(Ri,{callback:re,onCancel:Hs}),Ir===Tr&&zt.createElement(Wn,{callback:re,onCancel:Hs}),zt.createElement(ve.Z,null,Pr[Ir]&&Ir!==po&&Ir!==Tr?zt.createElement(Nn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ei,top:Vs},title:zt.createElement("div",{style:{cursor:"move"},onMouseDown:Ps},Pr[Ir]),open:!0,onCancel:Hs,footer:null,destroyOnClose:!0,width:Ir===Tr?"1200px":null,height:Ir===Tr?"80vh":null,className:"markdown-popup-form"},zo):null))}},28451:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return Gt},I:function(){return ae}});var zt=Kt(78241),ke=Kt(8591),Oe=Kt(92832),Cn=Kt(81327),Be=Kt(5871),vn=Kt(5112),Ie=Kt(3113),ge=Kt(77903),ye=Kt(59301),Nt=Kt(59301),se=Object.defineProperty,oe=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(ve,fe,Ye)=>fe in ve?se(ve,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ve[fe]=Ye,at=(ve,fe)=>{for(var Ye in fe||(fe={}))et.call(fe,Ye)&&ht(ve,Ye,fe[Ye]);if(Ut)for(var Ye of Ut(fe))nt.call(fe,Ye)&&ht(ve,Ye,fe[Ye]);return ve},ft=(ve,fe)=>oe(ve,me(fe));const{useForm:vt}=zt.default,Mt={width:280,marginRight:10},Rt={labelCol:{span:5},wrapperCol:{span:19}};var Gt=({callback:ve,onCancel:fe})=>{const[Ye]=vt();let De=(0,ye.useRef)();function hn(qn){De.current.width=Ye.getFieldValue("width"),De.current.align=Ye.getFieldValue("align"),ve(qn,De.current)}function Ue(qn,un){if(qn.status===-1){ke.ZP.error(qn.message);return}Ye.setFieldsValue({src:`/api/attachments/${qn.id}`,type:un.type})}function Pn(qn){let un=qn.target.files[0];De.current=un,ae(un,Ue)}return Nt.createElement(zt.default,ft(at({form:Ye},Rt),{className:"upload-image-panel",onFinish:hn,style:{width:470,overflow:"hidden"}}),Nt.createElement(zt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Nt.createElement("div",{className:"flex-container"},Nt.createElement(zt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Nt.createElement(Oe.default,{style:Mt})),Nt.createElement($t,{onFileChange:Pn}))),Nt.createElement(zt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Nt.createElement(Oe.default,{style:{width:264}})),Nt.createElement(zt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Nt.createElement(Cn.Z,null,Nt.createElement(zt.default.Item,{name:"width",style:{margin:0}},Nt.createElement(Be.Z,{style:{width:264}})),Nt.createElement("span",{className:"ml8"},"%"))),Nt.createElement(zt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Nt.createElement(vn.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"}]})),Nt.createElement("aside",null,Nt.createElement(zt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Nt.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Nt.createElement(Ie.ZP,{type:"default",onClick:fe},"\u53D6\u6D88"))))};function $t({onFileChange:ve}){return Nt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Nt.createElement("input",{type:"file",onChange:ve}))}function ae(ve,fe){if(!ve)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ye=new FormData;Ye.append("editormd-image-file",ve),Ye.append("file_param_name","editormd-image-file"),Ye.append("byxhr","true");var De=new window.XMLHttpRequest;De.withCredentials=!0,De.addEventListener("load",function(hn){fe(JSON.parse(hn.target.responseText),ve)},!1),De.addEventListener("error",function(hn){console.error(hn)},!1),De.open("POST",`${ge.KI}/api/attachments.json`),De.send(Ye)}},79346:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return Oe}});var zt=Kt(59301),ke=Kt(4676);class Oe extends zt.Component{constructor(Be){super(Be);const vn=window.document;this.node=vn.createElement("div"),vn.body.appendChild(this.node)}render(){const{children:Be}=this.props;return(0,ke.createPortal)(Be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{SV:function(){return wn},ZP:function(){return Xe}});var zt=Kt(59301),ke=Kt(76374);const Oe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Cn={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Be={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},vn={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Ie={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var ge=Kt(53184),ye=Kt.n(ge),Nt=Object.defineProperty,se=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(sn,Wn,Hn)=>Wn in sn?Nt(sn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):sn[Wn]=Hn,ht=(sn,Wn)=>{for(var Hn in Wn||(Wn={}))Ut.call(Wn,Hn)&&nt(sn,Hn,Wn[Hn]);if(me)for(var Hn of me(Wn))et.call(Wn,Hn)&&nt(sn,Hn,Wn[Hn]);return sn},at=(sn,Wn)=>se(sn,oe(Wn)),ft=(sn,Wn,Hn)=>new Promise((Jt,It)=>{var bt=Ot=>{try{le(Hn.next(Ot))}catch(be){It(be)}},Vt=Ot=>{try{le(Hn.throw(Ot))}catch(be){It(be)}},le=Ot=>Ot.done?Jt(Ot.value):Promise.resolve(Ot.value).then(bt,Vt);le((Hn=Hn.apply(sn,Wn)).next())});const vt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Mt=(sn,Wn)=>Wn.map(Hn=>({label:Hn,kind:sn.languages.CompletionItemKind.Keyword,insertText:Hn})),Rt=sn=>Object.keys(vt.tables).map(Wn=>({label:Wn,kind:sn.languages.CompletionItemKind.Variable,insertText:Wn})),Gt=(sn,Wn)=>{const Hn=vt.tables[sn];return Hn?Hn.map(Jt=>({label:Jt,kind:Wn.languages.CompletionItemKind.Field,insertText:Jt})):[]};function $t(sn,Wn,Hn,Jt,It){let bt=Wn.getWordUntilPosition(Hn),Vt={startLineNumber:Hn.lineNumber,endLineNumber:Hn.lineNumber,startColumn:bt.startColumn,endColumn:bt.endColumn},le=Jt.map(Ot=>({label:Ot,kind:sn.languages.CompletionItemKind.Keyword,insertText:Ot,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vt}));return It.map(Ot=>{le.push(at(ht({},Ot),{range:Vt}))}),le}var ae=sn=>{vt.languages.map(It=>(sn.languages.registerDocumentFormattingEditProvider(It,{provideDocumentFormattingEdits(bt,Vt,le){return ft(this,null,function*(){const Ot=ye()(bt.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:bt.getFullModelRange(),text:Ot}]})}}),It));const Wn=Be.quickKey.map(It=>({label:It.label,kind:sn.languages.CompletionItemKind.Method,insertText:It.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Hn=vn.quickKey.map(It=>({label:It.label,kind:sn.languages.CompletionItemKind.Method,insertText:It.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Jt=Cn.quickKey.map(It=>({label:It.label,kind:sn.languages.CompletionItemKind.Method,insertText:It.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet}));sn.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(It,bt){var Vt=It.getWordUntilPosition(bt),le={startLineNumber:bt.lineNumber,endLineNumber:bt.lineNumber,startColumn:Vt.startColumn,endColumn:Vt.endColumn},Ot=It.getLineContent(bt.lineNumber).substring(Vt.startColumn-2,Vt.endColumn);return{suggestions:[...Be.keywords.map(be=>({label:be,kind:sn.languages.CompletionItemKind.Function,documentation:be,insertText:be,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le})),...Be.quickKey.map(be=>({label:be.label,kind:sn.languages.CompletionItemKind.Function,documentation:be.content,insertText:Ot.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le}))]}}}),sn.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(It,bt){var Vt=It.getWordUntilPosition(bt),le={startLineNumber:bt.lineNumber,endLineNumber:bt.lineNumber,startColumn:Vt.startColumn,endColumn:Vt.endColumn};return{suggestions:[...Oe.keywords.map(Ot=>({label:Ot,kind:sn.languages.CompletionItemKind.Function,documentation:Ot,insertText:Ot,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le}))]}}}),sn.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(It,bt){var Vt=It.getWordUntilPosition(bt),le={startLineNumber:bt.lineNumber,endLineNumber:bt.lineNumber,startColumn:Vt.startColumn,endColumn:Vt.endColumn},Ot=It.getLineContent(bt.lineNumber).substring(Vt.startColumn-2,Vt.endColumn);return{suggestions:[...Cn.keywords.map(be=>({label:be,kind:sn.languages.CompletionItemKind.Function,documentation:be,insertText:be,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le})),...Cn.quickKey.map(be=>({label:be.label,kind:sn.languages.CompletionItemKind.Function,documentation:be.content,insertText:Ot.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le}))]}}}),sn.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(It,bt){var Vt=It.getWordUntilPosition(bt),le={startLineNumber:bt.lineNumber,endLineNumber:bt.lineNumber,startColumn:Vt.startColumn,endColumn:Vt.endColumn},Ot=It.getLineContent(bt.lineNumber).substring(Vt.startColumn-2,Vt.endColumn);return{suggestions:[...Ie.keywords.map(be=>({label:be,kind:sn.languages.CompletionItemKind.Function,documentation:be,insertText:be,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le})),...Ie.quickKey.map(be=>({label:be.label,kind:sn.languages.CompletionItemKind.Function,documentation:be.content,insertText:Ot.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le}))]}}}),sn.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(It,bt){var Vt=It.getWordUntilPosition(bt),le={startLineNumber:bt.lineNumber,endLineNumber:bt.lineNumber,startColumn:Vt.startColumn,endColumn:Vt.endColumn},Ot=It.getLineContent(bt.lineNumber).substring(Vt.startColumn-2,Vt.endColumn);return{suggestions:[...vn.keywords.map(be=>({label:be,kind:sn.languages.CompletionItemKind.Function,documentation:be,insertText:be,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le})),...vn.quickKey.map(be=>({label:be.label,kind:sn.languages.CompletionItemKind.Function,documentation:be.content,insertText:Ot.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:le}))]}}})};const ve="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var fe=Object.defineProperty,Ye=(sn,Wn,Hn)=>Wn in sn?fe(sn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):sn[Wn]=Hn,De=(sn,Wn,Hn)=>Ye(sn,typeof Wn!="symbol"?Wn+"":Wn,Hn);const hn=class yw{constructor(Wn,Hn,Jt){this.placeholder=Wn,this.editor=Hn,this.monaco=Jt,Hn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return yw.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};De(hn,"ID","editor.widget.placeholderHint");var Pn=hn,qn=Kt(96236),un=Kt(8591),fn=Kt(6848),mn=Kt(89392),pe=Kt(34604),Xt=Kt(56102),Ve=Object.defineProperty,Vn=Object.defineProperties,si=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,Ci=(sn,Wn,Hn)=>Wn in sn?Ve(sn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):sn[Wn]=Hn,Mi=(sn,Wn)=>{for(var Hn in Wn||(Wn={}))Nn.call(Wn,Hn)&&Ci(sn,Hn,Wn[Hn]);if(An)for(var Hn of An(Wn))Yn.call(Wn,Hn)&&Ci(sn,Hn,Wn[Hn]);return sn},Ri=(sn,Wn)=>Vn(sn,si(Wn)),Te=(sn,Wn)=>{var Hn={};for(var Jt in sn)Nn.call(sn,Jt)&&Wn.indexOf(Jt)<0&&(Hn[Jt]=sn[Jt]);if(sn!=null&&An)for(var Jt of An(sn))Wn.indexOf(Jt)<0&&Yn.call(sn,Jt)&&(Hn[Jt]=sn[Jt]);return Hn},ci=(sn,Wn,Hn)=>new Promise((Jt,It)=>{var bt=Ot=>{try{le(Hn.next(Ot))}catch(be){It(be)}},Vt=Ot=>{try{le(Hn.throw(Ot))}catch(be){It(be)}},le=Ot=>Ot.done?Jt(Ot.value):Promise.resolve(Ot.value).then(bt,Vt);le((Hn=Hn.apply(sn,Wn)).next())});function ki(sn){return/^\d+$/.test(sn)?`${sn}px`:sn}function Dn(){}let yi=!1;const En={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function gn(sn=[]){let Wn=sn;if(Array.isArray(sn)){for(let Hn=0;Hn<sn.length;Hn++){let Jt=En[sn[Hn]];if(Jt)return Jt}return Wn[0]}return En[Wn]||Wn}let Ne=null;var Xe=sn=>{var Wn=sn,{width:Hn="100%",height:Jt="100%",value:It,language:bt="javascript",style:Vt={},options:le={},overrideServices:Ot={},theme:be="vs-dark",onEditBlur:pn,isCopy:Zn=!1,onSave:ii,autoHeight:wi=!1,forbidCopy:Nr=!1,onChange:_r=Dn,editorDidMount:Tr=Dn,onFocus:po=Dn,onBreakPoint:To=Dn,breakPointValue:Co=[],filename:Kr="educoder.txt",errorLine:gr,errorContent:Wr="",highlightLine:Vr,openBreakPoint:No=!1,placeholder:us=""}=Wn,Os=Te(Wn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Ms=(0,zt.useRef)(),Fo=(0,zt.useRef)({}),jt=(0,zt.useRef)(),la=(0,zt.useRef)(),fs=(0,zt.useRef)([]),vs=(0,zt.useRef)(!1),Ws=(0,zt.useRef)(),Fa=(0,zt.useRef)(),Sa=(0,zt.useRef)(!1),[Pr,Lr]=(0,zt.useState)(!1);function ln(){let Sn;return Ms.current&&(Sn=new ke.Z($n=>{for(let xr of $n)(xr.target.offsetHeight>0||xr.target.offsetWidth>0)&&Fo.current.instance.layout()}),Sn.observe(Ms.current)),Sn}function nn(){un.ZP.warning({content:decodeURIComponent(ve),key:"monaco-editor-tip"})}const Ae=()=>{let Sn=Fo.current.instance;if(It!=null&&Sn&&Pr){const $n=Sn.getModel();$n&&It!==$n.getValue()&&(yi=!0,$n.setValue(It),Sn.layout(),yi=!1)}};(0,zt.useEffect)(()=>{const Sn=pe.Z.subscribe("formatDocument",$n=>{var xr;let dr=Fo.current.instance;(xr=dr==null?void 0:dr.getAction)==null||xr.call(dr,"editor.action.formatDocument").run()});return window.updateMonacoValue=$n=>{_r($n)},Sn},[]),(0,zt.useEffect)(()=>{var Sn;let $n=Fo.current.instance;la.current&&clearTimeout(la.current),la.current=setTimeout(()=>{Ae()},500),It&&(It!=null&&It.length)&&((Sn=$n==null?void 0:$n.updateOptions)==null||Sn.call($n,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(It.split(/\r\n|\r|\n/g).length))+3,5)}))},[It,Pr,Fo.current]),(0,zt.useEffect)(()=>{if(gr&&Fo.current&&Fo.current.instance){let $n=Fo.current.instance;$n.changeViewZones(function(xr){var dr=document.createElement("div");dr.style.padding="10px 20px",dr.style.width="calc(100% - 20px)",dr.className="my-error-line-wrp",dr.innerHTML=Wr,xr.addZone({afterLineNumber:gr||11,heightInLines:3,domNode:dr})});var Sn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};$n.addOverlayWidget(Sn),$n.revealPositionInCenter({lineNumber:20,column:1})}},[gr,Fo.current,Pr]);const Tn=(Sn="",$n)=>{if(!Sn||Sn.trim()==="")return!0;const dr=Fo.current.instance.getModel().getLineTokens($n);let Dr=!1;for(let tr=0;tr<2;tr++)dr.getStandardTokenType(tr)===1&&(Dr=!0);return Dr};(0,zt.useEffect)(()=>{var Sn;const $n=(Sn=Fo.current)==null?void 0:Sn.instance;if($n&&Pr&&Nr){const xr=$n.onDidBlurEditorWidget(()=>{Sa.current=!1}),dr=$n.onDidFocusEditorText(()=>{Sa.current=!0});return()=>{xr.dispose(),dr.dispose()}}},[Fo.current,Pr,Nr]),(0,zt.useEffect)(()=>{var Sn;if((Sn=Fo.current)!=null&&Sn.instance&&Pr&&No){let $n=Fo.current.instance,xr=$n.getModel();if(!xr)return;(()=>{var Po;let zn=[],Hi=[];const pr=xr.getAllDecorations();for(let Ir of pr)Ir.options.className==="highlighted-line"&&(zn.push((Po=Ir==null?void 0:Ir.range)==null?void 0:Po.startLineNumber),Hi.push(Ir==null?void 0:Ir.id));if(Vr===zn[0])return;xr.deltaDecorations(Hi,[]);const jr=xr.getLineCount();Vr&&Vr<=jr&&($n.deltaDecorations([],[{range:new Ne.Range(Vr,1,Vr,xr.getLineMaxColumn(Vr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),$n.revealLineInCenter(Vr))})();const Dr=(Po=!1)=>{var zn;let Hi=[],pr=[];const jr=xr.getAllDecorations();for(let Ir of jr)Ir.options.linesDecorationsClassName==="breakpoints-select"&&(Hi.push((zn=Ir==null?void 0:Ir.range)==null?void 0:zn.startLineNumber),pr.push(Ir==null?void 0:Ir.id));if(Po)return{lines:Hi,ids:pr};To(Hi)},tr=Po=>ci(void 0,null,function*(){let zn={range:new Ne.Range(Po,1,Po,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xr.deltaDecorations([],[zn]),Dr()}),vr=Po=>ci(void 0,null,function*(){let zn=[];const Hi=$n.getLineDecorations(Po);for(let pr of Hi)pr.options.linesDecorationsClassName==="breakpoints-select"&&zn.push(pr.id);yield xr.deltaDecorations(zn,[]),Dr()}),ur=Po=>{let zn=$n.getLineDecorations(Po);for(let Hi of zn)if(Hi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,mn.isEqual)(Co,Dr(!0).lines)){xr.deltaDecorations(Dr(!0).ids,[]);const Po=Co.map(zn=>({range:new Ne.Range(zn,1,zn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xr.deltaDecorations([],Po)}const kr=$n.onDidChangeModelContent(Po=>{let zn=$n.getPosition();if(zn){let Hi=zn.lineNumber;clearTimeout(Fa.current),Fa.current=setTimeout(()=>{Tn(xr.getLineContent(Hi),Hi)?vr(Hi):ur(Hi)?(vr(Hi),tr(Hi)):Dr()},100)}}),Ao=$n.onMouseDown(Po=>{var zn,Hi,pr;if(Po.target.detail&&((pr=(Hi=(zn=Po.target)==null?void 0:zn.element)==null?void 0:Hi.className)!=null&&pr.includes("line-numbers"))){let jr=Po.target.position.lineNumber;if(Tn(xr.getLineContent(jr),jr))return;ur(jr)?vr(jr):tr(jr)}}),Oo=Po=>{let zn={range:new Ne.Range(Po,1,Po,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};fs.current=$n.deltaDecorations(fs.current,[zn])},Kn=()=>{fs.current=$n.deltaDecorations(fs.current,[])},Vo=$n.onMouseMove(Po=>{var zn,Hi,pr;if(Kn(),Po.target.detail&&((pr=(Hi=(zn=Po.target)==null?void 0:zn.element)==null?void 0:Hi.className)!=null&&pr.includes("line-numbers"))){let jr=Po.target.position.lineNumber;if(Tn(xr.getLineContent(jr),jr))return;Oo(jr)}}),rs=$n.onMouseLeave(()=>{Kn()});return()=>{kr.dispose(),Ao.dispose(),Vo.dispose(),rs.dispose()}}},[Fo.current,Pr,Co,Vr,No,bt]),(0,zt.useEffect)(()=>{var Sn;(Sn=Fo.current)!=null&&Sn.instance&&No&&Fo.current.instance.setPosition({lineNumber:0,column:0})},[Vr]);function Jn(){let Sn=Fo.current.instance;if(Sn){const $n=Sn.getSelection(),xr=Fo.current.pastePos||{},dr=new Ne.Range(xr.startLineNumber||$n.endLineNumber,xr.startColumn||$n.endColumn,xr.endLineNumber||$n.endLineNumber,xr.endColumn||$n.endColumn);setTimeout(()=>{Sn.executeEdits("",[{range:dr,text:""}])},300)}}function He(Sn){(window.navigator.platform.match("Mac")?Sn.metaKey:Sn.ctrlKey)&&Sn.keyCode==83&&(Sn.preventDefault(),ii())}const we=()=>{if(wi&&Fo.current.instance){const Sn=Fo.current.instance.getContentHeight();Ei(Sn<Jt?Jt:Sn)}else Ei(Jt)};function qe(Sn){var $n=document.createEvent("MouseEvents");$n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Sn.dispatchEvent($n)}const In=Sn=>{if(!Sa.current)return;const{keyCode:$n,ctrlKey:xr,metaKey:dr,target:Dr,type:tr}=Sn;return(tr==="paste"||($n===67||$n===86)&&(dr||xr))&&Dr.nodeName==="TEXTAREA"&&(nn(),Sn.preventDefault()),!1};function ui(Sn,$n){var xr=window.URL||window.webkitURL||window,dr=new Blob([$n]),Dr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Dr.href=xr.createObjectURL(dr),Dr.download=Sn,qe(Dr)}(0,zt.useEffect)(()=>{we()},[we]),(0,zt.useEffect)(()=>{Ms.current&&!Pr&&Promise.all([Kt.e(8909),Kt.e(3267)]).then(Kt.bind(Kt,71448)).then(Sn=>{try{Ne=Sn,Fo.current.instance=Ne.editor.create(Ms.current,{value:It,language:gn(bt),theme:be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ot);const $n=Fo.current.instance;let Dr=[...qn.BH._menuItems].find(kr=>kr[0]._debugName=="EditorContext")[1],tr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],vr=(kr,Ao)=>{var Oo,Kn;let Vo=kr._first;do Ao.includes((Kn=(Oo=Vo.element)==null?void 0:Oo.command)==null?void 0:Kn.id)&&kr._remove(Vo);while(Vo=Vo.next)};if(Tr($n,Ne),setTimeout(()=>{we(),Fo.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ui(Kr||"educoder.txt",$n.getValue())}})},500),Fo.current.subscription=$n.onDidChangeModelContent(kr=>{vs.current?clearTimeout(Ws.current):(we(),_r($n.getValue(),kr)),Ws.current=setTimeout(()=>{vs.current=!1},500)}),window.Monaco||ae(Ne,gn(bt)),Nr&&(vr(Dr,tr),Ms.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",In),window.removeEventListener("paste",In),window.addEventListener("keydown",In),window.addEventListener("paste",In)),window.Monaco=Ne,pn&&$n.onDidBlurEditorWidget(()=>{pn($n.getValue())}),po&&$n.onDidFocusEditorText(()=>{po($n.getValue())}),Nr)try{$n.onDidPaste(kr=>{const Ao=$n.getSelection(),Oo=Fo.current.pastePos||{},Kn=new Ne.Range(Oo.startLineNumber||Ao.endLineNumber,Oo.startColumn||Ao.endColumn,Oo.endLineNumber||Ao.endLineNumber,Oo.endColumn||Ao.endColumn);$n.executeEdits("",[{range:kr.range,text:""}])})}catch(kr){}let ur=ln();return us&&typeof us=="string"&&new Pn(us,$n,Ne),Lr(!0),()=>{const kr=Fo.current.instance;kr.dispose();const Ao=kr.getModel();Ao&&Ao.dispose(),Fo.current.subscription&&Fo.current.subscription.dispose(),ur.unobserve(Ms.current)}}catch($n){}})},[]),(0,zt.useEffect)(()=>{if(Fo.current.instance&&Pr)return document.addEventListener("keydown",He,!1),()=>{document.removeEventListener("keydown",He)}},[ii,Pr]),(0,zt.useEffect)(()=>{let Sn=Fo.current.instance;if(Sn&&Pr){let $n=gn(bt);Ne.editor.setModelLanguage(Sn.getModel(),$n)}},[bt,Pr]),(0,zt.useEffect)(()=>{Fo.current.instance&&Pr&&Ne.editor.setTheme(be)},[be,Pr]),(0,zt.useEffect)(()=>{let Sn=Fo.current.instance;jt.current=le,Sn&&Pr&&(Sn.updateOptions(Mi({},le)),setTimeout(()=>{Sn.getModel().updateOptions(Mi({},le))},200))},[JSON.stringify(le),Pr]),(0,zt.useEffect)(()=>{let Sn=Fo.current.instance;Sn&&Pr&&Sn.layout()},[Hn,Jt,Pr]);const[Pi,Fe]=(0,zt.useState)(ki(Hn)),[Qn,Ei]=(0,zt.useState)(ki(Jt)),Ar=Ri(Mi({},Vt),{width:Pi,height:Qn,position:"relative"});return zt.createElement("div",{className:"my-monaco-editor",ref:Ms,style:Ar},Zn&&zt.createElement(Xt.CopyToClipboard,{text:It,onCopy:()=>un.ZP.success("\u590D\u5236\u6210\u529F")},zt.createElement(fn.Z,{title:"\u590D\u5236\u4EE3\u7801"},zt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},zt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function wn({width:sn="100%",height:Wn="100%",original:Hn,modified:Jt,language:It,options:bt={}}){const Vt=(0,zt.useRef)(),[le,Ot]=(0,zt.useState)(null);function be(wi){let Nr;return Vt.current&&(Nr=new ke.Z(_r=>{for(let Tr of _r)(Tr.target.offsetHeight>0||Tr.target.offsetWidth>0)&&wi.layout()}),Nr.observe(Vt.current)),Nr}(0,zt.useEffect)(()=>(Vt.current&&Promise.all([Kt.e(8909),Kt.e(9404)]).then(Kt.bind(Kt,2550)).then(wi=>{Ne=wi;const Nr=Ne.editor.createDiffEditor(Vt.current,Ri(Mi({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},bt),{wordWrap:!0}));Ot(Nr);let _r=be(Nr);return()=>{Nr.dispose();const Tr=Nr.getModel();Tr&&Tr.dispose(),_r.unobserve(Vt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,zt.useEffect)(()=>{le&&le.setModel({original:Ne.editor.createModel(Hn,It),modified:Ne.editor.createModel(Jt,It)})},[Hn,Jt,It,le]);const pn=ki(sn),Zn=ki(Wn),ii={width:pn,height:Zn};return zt.createElement("div",{className:"my-diff-editor",ref:Vt,style:ii})}},85057:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{jL:function(){return Be},w9:function(){return Nn},QD:function(){return _r},cQ:function(){return Xt},op:function(){return be},O5:function(){return Sa},_b:function(){return gr},t7:function(){return at},Gi:function(){return ci},YG:function(){return Ri},qp:function(){return se},vr:function(){return To},qE:function(){return ii},Je:function(){return Mt},wb:function(){return qn},cq:function(){return Ne},tp:function(){return Ut}});var zt=Kt(59301),ke={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Be=({dataSource:Pr=[],img:Lr,imgWidth:ln=346,title:nn,sunTitle:Ae,bannerExtraContent:Tn})=>zt.createElement("div",{className:ke.banner},zt.createElement("div",{className:ke.content},zt.createElement("aside",null,zt.createElement("p",null,zt.createElement("b",null,nn),zt.createElement("span",null,Ae)),Pr.length>0&&zt.createElement("div",{className:ke.btns},Pr.map((Jn,He)=>zt.createElement("div",{key:He,onClick:Jn.click},Jn.name,Jn.sign?zt.createElement("img",{src:Oe,width:39}):null))),Tn),Lr&&zt.createElement("img",{style:{marginTop:33,marginRight:38},src:Lr,width:ln}))),vn={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ie=Kt(92310),ge=Kt.n(Ie),ye=Kt(89392),se=({dataSource:Pr=[],value:Lr,onChange:ln,onTitleChange:nn,className:Ae,title:Tn,titleWidth:Jn=41,style:He={},fontColor:we="#6A7283",showCount:qe})=>{const[In,ui]=(0,zt.useState)(0),[Pi,Fe]=(0,zt.useState)(!1),Qn=(0,zt.useRef)(null),Ei=(0,zt.useRef)(null);return(0,zt.useEffect)(()=>{var Ar;Pr.length!==0&&(((Ar=Qn==null?void 0:Qn.current)==null?void 0:Ar.clientHeight)>97?ui(1):ui(0)),Pr.length===0&&ui(0),Fe(!1)},[Pr]),zt.createElement("div",{className:ge()(vn.row,Ae),style:He},zt.createElement("div",{onClick:(0,ye.throttle)(()=>nn==null?void 0:nn(),2e3),style:{width:Jn,marginTop:Pi?12:4},className:`${vn.title} ${nn?"current":""}`},Tn),zt.createElement("div",{className:Pi?`${vn.tagsWrap} ${vn.tagsBorderWrap}`:vn.tagsWrap},zt.createElement("div",{className:vn.bar,ref:Ei,style:In>0?{height:In===1?97:"auto",overflow:In===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},zt.createElement("div",{className:vn.tag,ref:Qn},Pr==null?void 0:Pr.map(Ar=>zt.createElement("span",{onClick:()=>ln(Ar.id),key:Ar.id,style:{color:we},className:Lr===Ar.id?vn.active:""},zt.createElement("span",{title:Ar.name,className:vn.name},Ar.name),!!qe&&zt.createElement("span",{className:vn.num},Ar.count))))),!!In&&zt.createElement(zt.Fragment,null,In===1?zt.createElement("div",{onClick:()=>{var Ar;ui(2),((Ar=Qn==null?void 0:Qn.current)==null?void 0:Ar.clientHeight)>245?Fe(!0):Fe(!1)},className:vn.action},"\u5C55\u5F00",zt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):zt.createElement("div",{onClick:()=>{Ei.current.scrollTop=0,ui(1),Fe(!1)},className:vn.action},"\u6536\u8D77",zt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},oe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ut=({dataSource:Pr=[],value:Lr,onChange:ln,className:nn,style:Ae={}})=>zt.createElement("div",{style:Ae,className:ge()(oe.tabs,nn)},Pr.map(Tn=>zt.createElement("span",{onClick:()=>ln(Tn.id),className:Lr===Tn.id?oe.active:"",key:Tn.id},Tn.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},nt=Kt(92832),at=({dataSource:Pr=[],value:Lr="",onChange:ln,onInputChange:nn=()=>{},className:Ae,style:Tn={},placeholder:Jn,allowClear:He=!1})=>{var we;const[qe,In]=(0,zt.useState)(""),[ui,Pi]=(0,zt.useState)("");(0,zt.useEffect)(()=>{var Ei;let Ar=Lr;(Ei=JSON.stringify(Lr))!=null&&Ei.includes("{")&&(In(Lr.id),Ar=Lr.value||"");try{Pi(decodeURIComponent(Ar||""))}catch(Sn){Pi(decodeURIComponent(Ar||""))}},[Lr]);const Fe=()=>{ln(encodeURIComponent(ui),qe||null)},Qn=Ei=>{Ei!==qe&&(In(Ei),ln(encodeURIComponent(ui),Ei))};return zt.createElement("div",{className:ge()(et.input,Ae),style:Tn},!!Pr.length&&zt.createElement("div",{className:et.dropdown},zt.createElement("div",{className:et.text},(we=Pr.find(Ei=>Ei.id===qe))==null?void 0:we.name,zt.createElement("i",{className:"iconfont icon-zhankai4"}),zt.createElement("b",{className:et.b1}),zt.createElement("b",{className:et.b2})),zt.createElement("div",{className:et.menu},Pr.map((Ei,Ar)=>zt.createElement("div",{key:Ar,onClick:()=>Qn(Ei.id)},Ei.name)))),zt.createElement(nt.default,{onPressEnter:Fe,value:ui,onChange:Ei=>{Pi(Ei.target.value),nn(encodeURIComponent(Ei.target.value),qe||null)},bordered:!1,placeholder:Jn}),zt.createElement("i",{onClick:Fe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ft={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Mt=({value:Pr,onChange:Lr,className:ln,total:nn,pageSize:Ae,style:Tn={}})=>{const Jn=Pr<2,He=Pr>=Math.ceil(nn/Ae);return nn<=Ae?zt.createElement(zt.Fragment,null):zt.createElement("div",{className:ge()(ft.quickPager,ln),style:Tn},zt.createElement("div",{onClick:()=>{Jn||Lr(Pr-1,"prev")},className:Jn?ft.disabled:""},"\u4E0A\u4E00\u9875"),zt.createElement("div",{onClick:()=>{He||Lr(Pr+1,"next")},className:He?ft.disabled:""},"\u4E0B\u4E00\u9875"))},Rt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Gt=Kt(71418),$t=Kt(6848),ae=Kt(13570),ve=Kt(3294),fe=Kt(955),Ye=Kt(96908),De=Kt(57177),hn=Kt(81378),Ue=Kt(8797),qn=({className:Pr,dataSource:Lr=[],col:ln=4,right:nn,bottom:Ae=23,precision:Tn=0,wrapWidth:Jn=1200,trackEventItems:He,loading:we})=>{const qe=Math.floor((Jn-(ln-1)*nn)/ln);return zt.createElement(Gt.Z,{spinning:we},zt.createElement("div",{className:ge()(Rt.list,Pr)},!!Lr.length&&Lr.map((In,ui)=>{const{name:Pi,id:Fe,identifier:Qn,power:Ei,cover_image_id:Ar,pic:Sn}=In;return zt.createElement("div",{className:Rt.wrap,key:Fe,style:{width:qe,marginRight:(1+ui)%ln===0?0:nn+Tn,marginBottom:Ae}},zt.createElement("a",{target:"_blank",href:`/shixuns/${Qn}/challenges`,className:Rt.li,onClick:$n=>{$n.preventDefault(),He&&(0,fe.L9)([He]),Ei&&(0,fe.xg)(`/shixuns/${Qn}/challenges`)}},zt.createElement("div",{className:Rt.img},zt.createElement("img",{className:Rt.cover,src:`${Sn}`}),In.is_jupyter&&zt.createElement("img",{className:Rt.sign,src:Ye}),In.is_jupyter_lab&&zt.createElement("img",{className:Rt.sign,src:De}),In.is_unity_3d&&zt.createElement("img",{className:Rt.sign,src:hn})),zt.createElement("div",{className:Rt.name},zt.createElement($t.Z,{title:Pi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},zt.createElement("span",{className:Rt.e},Pi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),zt.createElement("div",{className:Rt.tags},zt.createElement($t.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},zt.createElement("span",null,zt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),zt.createElement("span",null,In.challenges_count))),!!In.myshixuns_count&&zt.createElement($t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},zt.createElement("span",null,zt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),zt.createElement("span",null,In.myshixuns_count))),zt.createElement($t.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},zt.createElement("span",null,zt.createElement("span",null,In.level))),zt.createElement("div",{className:Rt.rate},zt.createElement(ae.Z,{allowHalf:!0,disabled:!0,defaultValue:In.score_info}),zt.createElement("span",null,"\xA0",In.score_info?`${In.score_info}\u5206`:"5\u5206")))),!Ei&&zt.createElement("div",{className:Rt.lockWrap},zt.createElement("img",{src:`${ve.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),zt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Lr.length&&zt.createElement(Ue.Z,null)))},un={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},fn=Kt(24065),mn=Kt(59301),Xt=({className:Pr,dataSource:Lr=[],col:ln=4,right:nn,bottom:Ae=23,precision:Tn=0,wrapWidth:Jn=1200,trackEventItems:He,loading:we,onRemove:qe=()=>{},isCurrent:In=!0,showAlias:ui=!1})=>{const Pi=Math.floor((Jn-(ln-1)*nn)/ln),Fe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return mn.createElement(Gt.Z,{spinning:we},mn.createElement("div",{className:ge()(un.list,Pr)},!!(Lr!=null&&Lr.length)&&(Lr==null?void 0:Lr.map((Qn,Ei)=>{var Ar;const{name:Sn,id:$n,identifier:xr,featured:dr,school_name:Dr,image_url:tr,excellent:vr,is_plan:ur}=Qn;return mn.createElement("div",{key:$n,className:un.wrap,style:{width:Pi,marginRight:(1+Ei)%ln===0?0:nn+Tn,marginBottom:Ae}},mn.createElement("a",{className:un.li,onClick:kr=>{kr.preventDefault(),kr.stopPropagation(),He&&(0,fe.L9)([He]),(0,fe.xg)(`/paths/${xr}`)}},mn.createElement("div",{className:un.img},mn.createElement("img",{className:un.cover,src:`${tr}`}),In&&(0,fn.bg)()&&(Qn==null?void 0:Qn.studying)&&mn.createElement("div",{className:`${un.movebq} user-path-items`,onClick:kr=>{kr.stopPropagation(),qe(Qn)}},mn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),mn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ar=Qn==null?void 0:Qn.subject_tags)==null?void 0:Ar.map((kr,Ao)=>{var Oo,Kn;if(Ao===0){const rs=(Oo=Fe.find(Po=>Po.name==kr))==null?void 0:Oo.swimg;return mn.createElement("img",{className:un.sign,src:rs,style:{left:"-4px"}})}const Vo=(Kn=Fe.find(rs=>rs.name==kr))==null?void 0:Kn.ptimg;return mn.createElement("img",{className:un.sign,src:Vo,style:{left:`${48+52*(Ao-1)+2*Ao}px`}})}),mn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Qn==null?void 0:Qn.excellent)&&mn.createElement("div",{className:un.bq},"\u5F00\u653E\u8BFE\u7A0B"))),mn.createElement("div",{className:un.name},mn.createElement($t.Z,{title:ui&&(Qn!=null&&Qn.excellent_alias_name)?mn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Sn}`,mn.createElement("br",null),mn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Qn==null?void 0:Qn.excellent_alias_name}`)):Sn},mn.createElement("span",{className:un.e},ui&&(Qn==null?void 0:Qn.excellent_alias_name)||Sn))),mn.createElement($t.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Dr}`},mn.createElement("div",{className:un.unit},mn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Dr)),mn.createElement("div",{className:un.tags},mn.createElement("div",null,mn.createElement($t.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),mn.createElement("span",null,Qn.stages_count))),mn.createElement($t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),mn.createElement("span",null,Qn.members_count)))))))})),!Lr.length&&mn.createElement(Ue.Z,null)))},Ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",si=Kt(59301),Nn=({className:Pr,dataSource:Lr=[],col:ln=4,right:nn,bottom:Ae=23,precision:Tn=0,wrapWidth:Jn=1200,trackEventItems:He,loading:we,handleVery:qe=()=>!0})=>{const In=Math.floor((Jn-(ln-1)*nn)/ln);return si.createElement(Gt.Z,{spinning:we},si.createElement("div",{className:ge()(Ve.list,Pr)},!!Lr.length&&Lr.map((ui,Pi)=>{const{subject_identifier:Fe,id:Qn,identifier:Ei,power:Ar}=ui,Sn=ui.is_public!=0&&ui.is_public;return si.createElement("div",{className:Ve.wrap,key:Qn,style:{width:In,marginRight:(1+Pi)%ln===0?0:nn+Tn,marginBottom:Ae}},si.createElement("a",{className:Ve.li,onClick:$n=>{$n.preventDefault(),qe(ui==null?void 0:ui.first_category_url)&&(He&&(0,fe.L9)([He]),(0,fe.xg)(ui.first_category_url))}},si.createElement("div",{className:Ve.top},si.createElement($t.Z,{title:ui.name},si.createElement("div",{className:Ve.name},ui.name)),si.createElement("img",{className:Ve.img,src:ve.Z.IMG_SERVER+"/images/"+ui.avatar_url}),si.createElement("div",{className:Ve.text,title:ui.creator},ui.creator),Fe&&si.createElement("div",{className:Ve.btns},si.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),si.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Sn&&si.createElement("div",{className:Ve.sign},"\u516C\u5F00")),si.createElement("div",{className:Ve.bottom},ui.visits>0&&si.createElement($t.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},si.createElement("span",null,si.createElement("i",{className:"iconfont icon-liulanyan"}),si.createElement("span",null,ui.visits))),ui.course_members_count>0&&si.createElement($t.Z,{title:"\u6210\u5458",placement:"bottom"},si.createElement("span",null,si.createElement("i",{className:"iconfont icon-chengyuan"}),ui.course_members_count)),ui.tasks_count>0&&si.createElement($t.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},si.createElement("span",null,si.createElement("i",{className:"iconfont icon-zuoye"}),ui.tasks_count)),ui.is_end?si.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):si.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ui.is_accessible&&si.createElement("div",{className:Ve.lockWrap},si.createElement("img",{src:`${ve.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),si.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Lr.length&&si.createElement(Ue.Z,null)))},Yn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ci=Kt(89070),Ri=({dataSource:Pr=[],value:Lr,onChange:ln,className:nn,style:Ae={},tabBarExtraContent:Tn})=>zt.createElement("div",{className:ge()(Yn.tabs,nn),style:Ae},zt.createElement("div",{className:Yn.tabsWrap},Pr.map((Jn,He)=>!(Jn!=null&&Jn.hide)&&zt.createElement("aside",{className:Yn.tab,onClick:()=>{ln(Jn.id),Jn.link&&Ci.history.push(Jn.link)},key:He},zt.createElement("div",{className:Lr===Jn.id?Yn.active:""},Jn.name),(Jn==null?void 0:Jn.resetCount)==null&&(Jn==null?void 0:Jn.total)!==void 0&&zt.createElement("span",null,"\uFF08",Jn==null?void 0:Jn.total,"\uFF09"),(Jn==null?void 0:Jn.resetCount)!==void 0&&(Jn==null?void 0:Jn.total)!==void 0&&zt.createElement($t.Z,{title:(Jn==null?void 0:Jn.tip)!=null?Jn==null?void 0:Jn.tip:""},zt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",zt.createElement("span",{style:{color:"#000"}},Jn==null?void 0:Jn.resetCount),"/",zt.createElement("span",null,Jn==null?void 0:Jn.total),"\uFF09"))))),zt.createElement("div",{className:Yn.tabBar},Tn)),ci=({className:Pr,style:Lr={},children:ln})=>zt.createElement("div",{className:ge()(Pr),style:Lr},ln),ki={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Dn=Kt(38854),yi=Kt(20834);const En=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ne=({sortValue:Pr,dropValue:Lr,className:ln,onSort:nn,onDrop:Ae,dataSource:Tn=En})=>{var Jn;return zt.createElement("div",{className:ge()(ki.orderWrap,ln)},zt.createElement(Dn.Z,{dropdownRender:()=>zt.createElement(yi.default,null,Tn.map((He,we)=>zt.createElement(yi.default.Item,{key:we,onClick:()=>Ae(He.id)},He.name)))},zt.createElement("span",{className:ki.orderTextWrap},(Jn=Tn.find(He=>Lr===He.id))==null?void 0:Jn.name)),zt.createElement("span",{className:ki.orderIconWrap},zt.createElement("span",{className:ki.orderAsc},zt.createElement("i",{className:Pr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ki.cursorPointer} ${ki.active}`:`iconfont icon-sanjiaoxing-up font12 ${ki.cursorPointer}`,onClick:()=>nn(Pr==="asc"?"desc":"asc")})),zt.createElement("span",{className:ki.orderDesc},zt.createElement("i",{className:Pr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ki.cursorPointer} ${ki.active}`:`iconfont icon-sanjiaoxing-down font12 ${ki.cursorPointer}`,onClick:()=>nn(Pr==="asc"?"desc":"asc")}))))},Xe={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},wn=Kt(3113),sn=Object.defineProperty,Wn=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,It=(Pr,Lr,ln)=>Lr in Pr?sn(Pr,Lr,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Pr[Lr]=ln,bt=(Pr,Lr)=>{for(var ln in Lr||(Lr={}))Hn.call(Lr,ln)&&It(Pr,ln,Lr[ln]);if(Wn)for(var ln of Wn(Lr))Jt.call(Lr,ln)&&It(Pr,ln,Lr[ln]);return Pr},Vt=(Pr,Lr)=>{var ln={};for(var nn in Pr)Hn.call(Pr,nn)&&Lr.indexOf(nn)<0&&(ln[nn]=Pr[nn]);if(Pr!=null&&Wn)for(var nn of Wn(Pr))Lr.indexOf(nn)<0&&Jt.call(Pr,nn)&&(ln[nn]=Pr[nn]);return ln},le=(Pr,Lr,ln)=>new Promise((nn,Ae)=>{var Tn=we=>{try{He(ln.next(we))}catch(qe){Ae(qe)}},Jn=we=>{try{He(ln.throw(we))}catch(qe){Ae(qe)}},He=we=>we.done?nn(we.value):Promise.resolve(we.value).then(Tn,Jn);He((ln=ln.apply(Pr,Lr)).next())}),be=Pr=>{var Lr=Pr,{className:ln,style:nn,children:Ae,loading:Tn=!1,openLoading:Jn,onClick:He=()=>{},size:we="middle",shape:qe="round"}=Lr,In=Vt(Lr,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ui,Pi]=(0,zt.useState)(!1);return zt.createElement(wn.ZP,bt({onClick:(0,ye.throttle)(Fe=>le(void 0,null,function*(){Jn&&Pi(!0);try{yield He(Fe)}catch(Qn){console.log("error",Qn)}Jn&&Pi(!1)}),2e3,{leading:!0,trailing:!1}),className:ge()(Xe.btn,Xe[`${we}-${qe}`],ln),style:nn,size:we,shape:qe,loading:ui||Tn},In),Ae)},pn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},ii=({className:Pr,style:Lr,children:ln=null,onClick:nn,title:Ae})=>zt.createElement("div",{className:ge()(pn.head,Pr),style:Lr},zt.createElement("span",{className:"primary-hover",onClick:nn},zt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),zt.createElement("b",{title:Ae},Ae),zt.createElement("div",{className:pn.node},ln)),wi={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},_r=({confirmShow:Pr=!0,confirmTitle:Lr,confirmClick:ln,cancelShow:nn=!0,cancelTitle:Ae,cancelClick:Tn,className:Jn,style:He,confirmLoading:we=!1})=>zt.createElement("div",{className:ge()(wi.btns,Jn),style:He},Pr&&zt.createElement(wn.ZP,{loading:we,onClick:ln,type:"primary",className:wi.confirm},Lr),nn&&zt.createElement(wn.ZP,{onClick:Tn,className:wi.cancel},Ae)),Tr={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},To=({className:Pr,style:Lr={},LeftContent:ln,children:nn,RightContent:Ae})=>zt.createElement("div",{className:ge()(Tr.fixedBottom,Pr),style:Lr},zt.createElement("div",{className:Tr.wrap},zt.createElement("div",{className:Tr.left},ln),zt.createElement("div",{className:Tr.center},nn),zt.createElement("div",{className:Tr.right},Ae))),Co={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},gr=({className:Pr,style:Lr={},dataSource:ln=[]})=>zt.createElement("div",{className:ge()(Co.crumbs,Pr),style:Lr},ln.map((nn,Ae)=>Ae<ln.length-1?zt.createElement(zt.Fragment,{key:Ae},nn.path||nn.onClick?zt.createElement("span",{className:Co.hover,onClick:nn!=null&&nn.onClick?nn.onClick:()=>Ci.history.push(nn.path)},nn.name):zt.createElement("span",null,nn.name),zt.createElement("span",null,"\xA0",">","\xA0")):zt.createElement("span",{key:Ae,style:{color:"#5F6368"}},nn.name))),Wr=Kt(31797),Vr=Object.defineProperty,No=Object.defineProperties,us=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Ms=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,jt=(Pr,Lr,ln)=>Lr in Pr?Vr(Pr,Lr,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Pr[Lr]=ln,la=(Pr,Lr)=>{for(var ln in Lr||(Lr={}))Ms.call(Lr,ln)&&jt(Pr,ln,Lr[ln]);if(Os)for(var ln of Os(Lr))Fo.call(Lr,ln)&&jt(Pr,ln,Lr[ln]);return Pr},fs=(Pr,Lr)=>No(Pr,us(Lr)),vs=(Pr,Lr)=>{var ln={};for(var nn in Pr)Ms.call(Pr,nn)&&Lr.indexOf(nn)<0&&(ln[nn]=Pr[nn]);if(Pr!=null&&Os)for(var nn of Os(Pr))Lr.indexOf(nn)<0&&Fo.call(Pr,nn)&&(ln[nn]=Pr[nn]);return ln};const{Countdown:Ws}=Wr.default;var Sa=Pr=>{var Lr=Pr,{onChange:ln}=Lr,nn=vs(Lr,["onChange"]);const[Ae,Tn]=(0,zt.useState)(null);(0,zt.useEffect)(()=>{typeof Ae=="number"&&Ae>=0&&ln(Ae)},[Ae]);const Jn=He=>{const we=Math.floor(He/1e3);Tn(we)};return zt.createElement(Ws,fs(la({},nn),{onChange:Jn}))}},58856:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ke}});var zt=Kt(59301);function ke(Oe,Cn){const Be=(0,zt.useRef)();(0,zt.useEffect)(()=>{Be.current=Oe}),(0,zt.useEffect)(()=>{function vn(){Be.current()}if(Cn!==null){let Ie=setInterval(vn,Cn);return()=>clearInterval(Ie)}},[Cn])}},19373:function(Fi,Ti,Kt){"use strict";Kt.r(Ti),Kt.d(Ti,{default:function(){return Ri}});var zt=Kt(59301),ke=Kt(8591),Oe=Kt(43418),Cn=Kt(71418),Be=Kt(60324),vn=Kt(5112),Ie=Kt(81327),ge={flex_box_center:"flex_box_center___Ja97S",flex_space_between:"flex_space_between___RJu4E",flex_box_vertical_center:"flex_box_vertical_center___jhPTF",flex_box_center_end:"flex_box_center_end___ZtezU",flex_box_column:"flex_box_column___MqeI4",wrap:"wrap___k3OOZ",head:"head___h6t3O",empty:"empty___S6QaM",content:"content___sMZPl",left:"left___J41Si",title:"title___GUZvZ",add:"add___zhwIv",leftBar:"leftBar___u_UUF",li:"li___Hnrra",active:"active___N4MxL",right:"right___eLWWO",rightBar:"rightBar___fMTLo",center:"center____NDzP",tabs:"tabs___jdS5u",cut:"cut___w1Pz_",action:"action___QkQ0f",tagBtn:"tagBtn___g2gHo",actActive:"actActive___ESHzD",answers:"answers___dVktP",btn:"btn___BnDvU",disableBtn:"disableBtn___WYJSQ",open_md:"open_md___Qcc2e",tip_container:"tip_container___cApBC",container_text:"container_text___riFvY",btn_send:"btn_send___jN38z",hide:"hide___wZuLt","md-container":"md-container___Am7nQ",unsolved:"unsolved___z4SON",box:"box____EpoE",hot:"hot___oUwVX",animation:"animation___YQjk7",stop:"stop___R1QBJ",disabledElement:"disabledElement___jKwzo",text:"text___Si2da",md_editor:"md_editor___vGEmh"},ye=Kt(99064),Nt=Kt(89070),se=Kt(955),oe=Kt(3294),me=Kt(76895),Ut=Kt(61186),et=Kt.n(Ut),nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAAAAXNSR0IArs4c6QAAQABJREFUeAHtnQecVcXZ/+fctnc7ve+ilCCINJWo2IgQS2J7TUhilBQNxsSQ2NONpmlM3uQ1/k3QxJqYhJhYo1GjooCiIoogIKDiLh0Wlu23nv8zF5bcu+zdvWVmzsw5v/l8LnvKnOd55juH+9xpz1i2bfsZEgiAAAiAAAiAgFICPqXaoAwEQAAEQAAEQCBFAA4YLwIIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBOCAHYAOlSAAAiAAAiAAB4x3AARAAARAAAQcIAAH7AB0qAQBEAABEAABOGC8AyAAAiAAAiDgAAE4YAegQyUIgAAIgAAIwAHjHQABEAABEAABBwjAATsAHSpBAARAAARAAA4Y7wAIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBOCAHYAOlSAAAiAAAiAAB4x3AARAAARAAAQcIAAH7AB0qAQBEAABEAABOGC8AyAAAiAAAiDgAAE4YAegQyUIgAAIgAAIwAHjHQABEAABEAABBwjAATsAHSpBAARAAARAAA4Y7wAIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBOCAHYAOlSAAAiAAAiAAB4x3AARAAARAAAQcIAAH7AB0qAQBEAABEAABOGC8AyAAAiAAAiDgAAE4YAegQyUIgAAIgAAIwAHjHQABEAABEAABBwjAATsAHSpBAARAAARAAA4Y7wAIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBOCAHYAOlSAAAiAAAiAAB4x3AARAAARAAAQcIAAH7AB0qAQBEAABEAABOGC8AyAAAiAAAiDgAAE4YAegQyUIgAAIgAAIwAHjHQABEAABEAABBwjAATsAHSpBAARAAARAAA4Y7wAIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBAIO6IRKLxNYtMjafc01A9sjkeEsFhvGP0nLGshsuw/9Gqy2bbua8PQ58Km2GSuxbDvILCtIx0GOzufz3R6eNu3mgQsXtvNzJBAAARAwkQAcsIm1prnNe2fPrmjZvn0si0TG2onEWDL3I3YyOdqyrOF0PJScbLfvXTJLucjxMnLQ/N8XSqqrvzHkrbfW8RMkEAABEDCZQLdfhCYXCLYrJECt2e1XXfWReEvLFHKwU/mHHOUEcpVDu7OCHG93l3u/Zlk7/X7/VSM2bPhr75mRAwRAAATMIAAHbEY9aWHl5hNOGGLv3HkiGXMitWyn0d/J5FLLZRpHreblwX79Lhi6fPkWmXogGwRAAARUE4ADVk3cIH2bjz76cLu5+aRkInESjcOeRC3YMSrNt3y+P9fOmjWPLVgQUakXukAABEBABQE4YBWUTdFx2WUlmxctOoVat2fR50xq3Y7uNL3AzuPOx/P6azGWsPz+b9ds3PjrvB5EZhAAARAwiAAcsEGVJcPULccdNzTZ0HA2d7g0fnsaOdoyGXpylmlZMSsU+nTNunVP5PwMMoIACICAgQTggA2stGJN3jFjRv/ozp0XUNfyZ1Jdy7Syp1iZIp7nLV8WCl0E5yuCJmSAAAjoTgAOWPcaEmRf48yZlc1btpxvx+OfIZGndS4FUtm13FNRyPnazO+/pHbdun/0lA/3QAAEQMAtBOCA3VKTWcqxZfz46YlodB5LJuc43r2cxUZ+2QoErqjZsOFPPWTBLRAAARBwFQE4YFdV5/7C7DvppKqm7dsvpC7meTSuO0n3Ivr8/p+Q812gu52wDwRAAAREEoADFknTYVnbJk0aG2tru4olEp/XubWbjonW+b5Uc911N6VfwzEIgAAIeIEAzcGx/V4oqJvLuPWooz4aa2m5hsZRzyXHq8WEqlx4k70NgYEDpw577bWtueRHHhAAARBwEwG0gA2uzfojjviEHY1eQz+iTuLF0GVCVa5IrZKSS+B8c6WFfCAAAm4jAAdsYI3SxKoz4x0dPybTpxhofspkGve9HcuNTK092A0CICCCABywCIqKZGweP/7EZCTyE2rx8njM5ibL2lVx+OHfN7cAsBwEQAAEiicAB1w8Q+kS6o86amqypYW3eM+QrkyBApp49dO+zz7bokAVVIAACICAtgTggLWtGsZ2TZ8+sL2h4ee0hvcLZCbNWTI/USHerz35ZCw5Mr8qUQIQAIEiCRgzY7bIcpr1+J13+upGj76ibdeutbTH7hdpcpUrnC+vBF8w+AN2zz0xsyoE1oIACICAeAJYhiSeaVESaZz3JBrnvY3GeY8qSpCOD1vW2yPff5/vI4wEAiAAAp4ngC5oTV6BLbNm9Uls2vRr2pXoYk1MEm4GzXy+V7hQCAQBEAABQwnAAWtQcan1vJHI76mreagG5kgxgfrQE6WDB/9NinAIBQEQAAEDCcABO1hpTWecUd24ceNv3NzqPYjXsp4fsGTJjoPnOAABEAABjxOAA3boBeDBNBIdHQuo1TvMIROUqrV8vgeVKoQyEAABENCcAGZBq66g+fMDNMP5VxTJ6nHPOF/LilPgjYdVo4Y+EAABENCZAGZBK6ydHZMn10aam/9KM5ynK1TruCoa/11R+8EHniqz49BhAAiAgPYE0AWtqIrqx407mzZOuJtavX0VqdRHjc/3mj7GwBIQAAEQ0IMAuqBl18ONN/o/HD361mQ0+rAnnS/na1lrZGOGfBAAARAwjQBawBJrLDXLef36vzHbniVRjfaiaf3vZu2NhIEgAAIgoJgAHLAk4FumTBkdb2p6jJzvOEkqzBEbCGw1x1hYCgIgAAJqCMABS+C85YgjTk5EIn8n0f0liDdOpD8QQOxn42oNBoMACMgmgDFgwYQ3jx37xXg0+jSN98L5HmCbTCSSgjFDHAiAAAgYTwAOWGAVfjhmzHcT8fgfqNs5KFCs8aKSyWSV8YVAAUAABEBAMAF0QQsCWj9mzC0skbhakDh3iYlGPRHty12VhtKAAAjIJoBAHMUSXrTIqrv00jsonvNXihXl4udfoFCUK11cPhTNYQI05GNblhWjoC8xCnQTo/ctluR/Dxx3Xkv95deCwTiNi0TpmX2W39/oLylpDA4fvnfAo4+2OVwUqPcQATjgYiqbr/G9//77WDL52WLE4FkQAAE9CJBDjpMljRkfy2qkteyN5NwbydHvor91dji8ORgO1w2dN28bmzcPcxz0qD7jrIADLrTKeEznJ574O/2iPrtQEXgOBEDAbALcYZNT3ppyypa1mc7r+IfR2ne/319XOmzY+32ffbbF7FLCelkE4IALIXvnnb66m29+kJzvpwp5HM+AAAh4gwA5ZvLPbBO1oN+mbvHV5JhXBcvLVw356lc3oOXsjXegp1LCAfdEJ8u9ujFj7qYx37lZbuMyCIAACPRGoIOc8xpyzKvIMa9iweCqkurqlYOWLdvd24O47x4CcMB51mX96NG30bKar+X5GLKDAAiAQC4E1jKfb5EvEHixpG/fRXDIuSAzNw8ccB51R/v4/tROJq/P4xFkBQEQAIGCCVAr+R1qIS+yg8EXS/r3f3Hw0qUNBQvDg9oRgAPOsUqo2/lq6na+JcfsyAYCIAACQgmkxpMtazVvIftDoaeHz5r1H3bbbXzWNpKhBOCAc6i4zePHn5fs6Pg7zaag/wNIIAACIOA8Afoy2kOt44dZKLSw5sorX8CkLufrJF8L4IB7IVY/ceI0u7V1ETnfsl6y4jYIgAAIOEPAsnbR8qd/+IPBhcN///vF7NRT+exrJM0JwAH3UEHbjjlmeKyh4RV6kxFKsQdOuAUCIKAPAWoZb6PlTg+xcHhh7erVr+hjGSzpSgAOuCuRA+e7zz23rPXtt1+i0ylZsuAyCIAACOhNwLLW+/z+34SOP/7+wfff36G3sd6zDg44S53XjRr1Dwq0cW6W27gMAiAAAsYQoFZxA8W8/n3pkCF3DFiyZIcxhrvcUDjgbiqYlhtdQ8uNbu7mFi6BAAiAgLkELCtKzvgv/rKyXw9fvXq1uQVxh+VwwF3qsf7II0+w29ufp9YvtmrswganIAAC7iFAk7ae9YXDvxmxZs3T7imVWSWBA06rrx0zZvSPbN26giZdDU+7jEMQAAEQcC8BilPtKym5tmbt2ufcW0g9SwYHnFYvNO77L2r5np52CYcgAAIg4AkC1CJ+zF9Vde3wt956zxMF1qCQPg1s0MKE+jFjvgPnq0VVwAgQAAEHCND33znxpqZV9F14c+PMmZUOmOA5lWgBU5VvmTDh2ER7+xLqevZ77g1AgUEABECgKwHL2klRtr5f+4c/3IOgHl3hiDuHA77sspIPn3lmOSEdLw4rJIEACICAKwi86Q+Hrxqxdu1iV5RGs0J43gFTd8styUTias3qBeaAAAiAgDYEqDV8b9nEifMHPPpomzZGucAQTzvgrRMnHhdvbX2Jup4xFu6ClxlFAAEQkEjAst4NlpZ+btg777wtUYunRHvW8eyYOzcca2u7G87XU+87CgsCIFAoAdseF2tvf4W2Zv1aoSLwXCYBz7aAKdrVryja1TczceAMBEAABEAgBwKPhA477CtDX3hhbw55kSULAU864G2TJk2JNTe/htZvlrcCl0EABECgFwK0brjeCocvqlmzZmkvWXE7CwFPdkGT870NzjfLG4HLIAACIJADAVo3XMPD9lJv4vfYokUUYhopXwKeawHT+MVFdiJxb76gkB8EQAAEQCArgYdHHnvs59nChdGsOXDjEAKecsA8usu+Dz9cx2x78CEkcAEEQAAEQKBgAtQl/VzFEUf8T78nn2wtWIjHHvRUF3RTXd2P4Hw99oajuCAAAkoIUJf0aS3r1j27bebMvkoUukCJZ1rAmydNmpBsaVlBLwm2GXTBi4sigAAI6EmABoPX+AcPPn34smXb9LRQH6s80wJONDffAuerz4sHS0AABNxJgCa4Tojv2LF4y5Qpo91ZQnGl8oQDrp8wYQYhO1McNkgCARAAARDogcBhtLPSS1smTjyqhzyev+UJB2x3dPzE8zUNACAAAiCgkgBNdqVQvy/wkL8q1Zqky/UOePOECadT1/NJJlUKbAUBEAABlxDoE2ttfWLzUUcd6ZLyCC2G6x1wsr39x0KJQRgIgAAIgEA+BPrQBNgnt0+dWpPPQ17I62oHXD9u3KdoQsA0L1QkyggCIAACuhKg7+HhkcbGJ7FEKbOGXO2Ak9HoDZnFxRkIgAAIgIBDBMbHNm16lM2ZE3JIv3ZqXeuAN48bdw7RHq8dcRgEAiAAAh4lQC3hE+rfeON2jxb/kGK71gFT6/eaQ0qLCyAAAiAAAo4SSCaTX64fO/YyR43QRLkrI2HVTZx4vN3aulgTxjCjFwI+n+9BZllbe8lW2G3bLqP/8O7dQNyy1hO/xwqDg6cKIUD7iH+rp6A+PCay5fO9WYjsbM9Qy7GKNpGZl+2+cdctK+YLh2d5fStDVzrgDw8//CF6Ic8z7qX0qMFDHnqIlRx9tJTS2y0trO4o98YCKD/zTDbgjjuksIPQ7glQYB9Gqyu6v0lX+/3oR6zyC1/Ier+QG9GVK9m281z3lba9vH//aQOWL99ZCBM3POO6LuhtkyaNpVikfPwXyRQC8bg0S62SEmmyIRgEVBGI19erUqVSz5DWhoY/qFSomy7XOeBYW9vV1F3junLp9uKItIe69ESKy5QVDFLvNvYKz4SCM9MIuNQB82o4i/Zod+8QUS8vmqsc1faTT+5H4yQX9VJm3NaNgMQWcKqoIax60K3KYU9+BOJ1dfk9YFBu+s7+Bd+tziCThZnqKgcc27btYiITFkYHgtQQkNkCphJYAexAqaYioUUWARe3gDmycKKl5QE2f77n/qO6ygEn4/FLZf0HKEZuxQUXsMF//jPrd9NNrGruXFY6YwYLDBlSjEhXPWtLbgHDAbvqdfFkYdzcAk5VqG1Prn/ySc8tHXXNL44DWw5qGXgjMHIkC59wQuqT/u1BS6VY7L33WGzjxv1/+TF94h9+yOxYLD2ru48lt4AZWsDufn/cXjr6/xHf5v697ZOJxPdpD+G/D3/rrffcXqWd5XONA7Yjka90Fkq3v/7+/bs1ySovZ6FJk1KfjAyJRMoJp5xzFwedbG7OyOqGE+ktYL/fDZhQBo8SSJDzlf1/RBO04URT0/8jW87QxB7pZrjCATedcUY1SyYvkE6rQAW+vn3ze5IcRmDUqNSndPbsjGcTO3fubyV3ccxG/0KmHxxSExywVLwQnknAEvy+xVw8ASuTHGMU4GQWzYr+fO3GjX/ues+N565wwI0bN15ES49Kda0gf79+wkzzDxrE+Icdf3yGzFR39vvvZ3ZnU9e2Cd3ZNAsyoyzCT3yumuogHA8EiiVgVVQIFejyCViHsKJlib/Yc9ZZj/R78snWQ2667IIrHDBV2Jd1rhefQAecrZyp7myK+BTqGvWpa3f2gXFm3r2dbGrKJk7tddkOGOuA1danx7X5qquFEnD9BKyutGx7cOv69ddRs+WGrrfcdm68A94+bdo46reYrHPFiGwB513Onrqzd+1i8S5d2XxCmNHd2XkDwgMgIJaAr6pKqECvtYA5POoVu3Lr9OkLhr32mpwY8UJrqHBhxjvg6L59cwovvvwneRSmvMeA5ZuV0uAfOJDxT8lxx2VotNvaWCy9O5s7Ze6o+ezsaDQjrwknFBjfBDNho0sIwAEXX5E0pFgWb2i4iSRdWrw0fSUY74Cp+1lrB5zqjjLMAVhlZSw0cWLqk/Hq8u5smhCy8ytfSU0Ey7in8wm6oHWuHdfZBgcsqEqTyblbJk78v+GrV68SJFE7MUY3DahyJhJRLdf+dta0ivHfTl3S//Lu7MMPZ8ndu6WrEqrApt/TSCCggADv8fLnu+qhB7ts2nUpuWdPDznce4v+1/rira0/cG8JGTO6BRzv6NC69ctfHEfHfyW8ucmGBpbYt0+CZHkipW72IM9sSDaQgG/AAMYExh63SktZLQ3/pBL/IcmD1vAPHafea35MPVO0fCf1l987eP1A3tQqAz7RkT/D//IPz3fguPNv6hqPSkfXU+uOO//SNR4YiF9LDUHRMBT/m6ShqiTNI4muX8+ib7213wbBdUbbqJzP40SPePvtNYJFayHOaAdsJZOf1r1t46oWML2yfPY0EgiAQPcEAjU13d8QcZUPpfA1xgfWGafv8ZV+LEJVvjL4RLGGa69lHa++mu+jPean73cr0dr6Xcrkyk12jO2Cpn1/p9CvvrE91p4GN93WAuaTs4xLvCWABAIKCEh1wArsL1QFL/eg++5jwdraQkVkfY43tLZOnjwmawaDbxjrgGPt7eeYwF3XGdCFsjOyBcy755BAQAGBwIgRCrToqcIqKWGVF18s3Dj63+uPt7R8W7hgDQQa64BpnMKIeKHZ4kBrUPcFmWCkA0YLuKC6xkP5E/BqC7iTVGjKlM5DoX+pt/PCXdOnDxQqVANhRjrgHTNm9KcR/2M04NerCW5rAfP1wKYljwSyN61aXGlvkGK4ezn5aIMZKcm2Q2179mi74U6hZTZyElZk586PU7eEET8eXNUCppmP8c2bC33Xsj93YFJJ9gxF3pG833CR1hX1eHTNGrb3hhuKkmHSw32/9z2hs4x52fkEoo6lS3PGkJo13E1uvgQpNGFCN3e8cylBqyRkJSuRuIzdeOMt7IYbErJ0qJZrpAOmQfkzTRnVc1MLOLZp0/4lDoLfUtG7x3Q1L9sXZtd8Jp7z6GSx++830fSCbO5z/fXMErjMhxsRXbmSNXznOwXZk/4Q3/ebx2T3cpIZt5q+84fXP/DA+TU33PCQWxgb0YrMgL1okUXjAR/PuKbxiZtawNLGfyW3gPkaRiQQkE2AR4/zepIdt5rWOH/dTYyNc8BbLr/8WHLAtNrdjOSqFrCk8V8rILkjhgccQAIByQRCRx4pWYP+4qX9SD9QdPruPym1AY/+KHKy0DgHnIhGT8+pZBpk4tPyeVxltyRpE7Akx8rGJCy3vIF6l8Pr47+8diIUEUt2og14xK91km10FvnGOWDqgjglS1m0u+y6IBwmtoAN3L1JuxcZBvVKgM9jKJk2rdd8bs6Q2LKFJSg0pfRk259nNBQpXY8CBWY54PnzA0T9owq4CFHhujCUsqJgSWwB25GIkLqEEBDoiUBo0iRmVVT0lMX19yJvvqmkjNQNXVP3ta/NVKJMshLJg29ird/y7LPTaCZcqVip8qTF1q1jW2fPZsExYzI/o0czKxyWp1iC5MSOHSzZ2ipBMomUOAYMByynyiA1k0D4+OMzL3jwLLJihbpSRyJzSdnz6hTK0WSUA47HYifKwSBHKl/+EqPN7PknPaW2LBs+fL9TJmccHDv2oINO7R+cnlmTY5mTK2QuQ4ID1uQFcrkZ4RNOcHkJey+eUgecTJ6/a86cywcuXNjeu2X65jDKAdP63xmmrP/tqcqpCyUV0IIHtWhftCgjq5+2MzukxUwtaP/gwRn5VJ9IdcCC13Wms4EDTqeBYxkE+GTLkmOMCMwno/gpmfz/GQ8KoyqRHyiPrFrFJ+Q+okqnDD1GOWACMEMGBJ1kJmize/7pWLYswywfjS8ddMxpreZU7FmJY6idRkibAU0K+BeYrAQHLIss5HYSCB99tNR3uFOPzn95MBPV6+2T0eh5xAQOWMWLwdd+mbT+VzSTZEtLaop/12n+3HkFDz/8UOdM10RuDI4WsOgahTy3ECg9w4h9YaTiVtr9fKAktCLmk4wm5rLbbotLLZxE4ca0gKNNTa5v/RZSz6muH5rsFaVPerKoVRygvTkPtpr5RDDecqa/hczWlLoPsMQu6GS70UNE6VXa63Gfq65i1d/4Rq/5dM0QpTWk284/X1fzurWL/z8rgwNmkeXLu+Uj+WKf+mefPbWGsf9I1iNNvDEOmAgcK42CCwXTr0PGYzfzD/tP5vsZGDIk0zEfcM4+Gn/uLtnkxBLbtnV3S8g1qV3QbW1CbIQQEOiOQAl1P/sHum6XvO6K2uO1yBtv9Hhf1k17fzd05hecLGUS5JrjgJPJyRLK70mR8e3bGf+0L1mSUX5/dfV+x5w2K5u3mBN79tDuj/Kmv4kOrp9eKBsOOB0HjgUTKDvzTMES94tr+9e/WJz/eJaQeM9Y2dlnC5PM54ckGhuFyctLUDLJC3JFXs9olNkMB3znnT7yAEdpxM2VpiT27WMJ+iXb0eXXrMxlQhykTAcsbe2yK98AFCofAnw5oZTuZ1q+uOcHP2CJvXvzMSfnvFVf/KJQB9zx+us56xadkZoFw+snTx5fs3LlWtGyVcgzIhLW9jvu+AiBNiYAh4qKU6lD9nZ+Mh0w7z5HAgEZBEqOO475hw4VLprvTSzL+XJjRe/a5ND470HudkvLrIMnhh0Y4YDjbW3ofjbsxcrV3NROSBIjYaEFnGtNIF++BCovvDDfR3LK3/r44znlKzSTcAfsYAuYM6D5LrMLZeH0c0Y44GQyOcVpUNAvh4Ds3aIwBiyn3rwulW+0Unb66cIx8FUNbU8/LVxup8DUskWa1yEqJXbuZLG6OlHiCpJD+wOcwr70pWBBDzv8kBEOmGEClsOviTz1vlK5Iwt8/TQSCIgmUH7BBYwFxX/nt9OKhWRzs2hzD8ormTiRMdq5SVSKvPaaKFEFy+FRsba88oqRwbiNcMAEGC3ggl9PvR+U3QJONjXpDQDWGUmg8nOfk2J36yNyAzuFpoj9Ku3QwAHzikjG4x+TUiGShWrvgHcfc8wgmgE9SDIHiHeIgCW7BQwH7FDNuldt6YwZLMAjzQlOSVru1/7ii4KlZoormTo180KRZzq0gHkRaKKokbthaO+A29vaxhb5juBxjQn4ysqkWmfDAUvlK1Q4LesxIVVdfrkUM3nrV3Y8ZZEOOEnLFmPr10thkbdQy5rO+HJVw5L+Bsfjow1jCnPzIIAu6DxguT2rxGAvotCVTJ7MwtQClpFaFi6UIfagzABtgeofNuzgebEHEZr9LDNATz72kR0V226/fVI+z+iQV3sHTF0LaAHr8KZIsgEOWBJYiJVCoPprX5MiN/r22yz67rtSZHcKFb1ncdcd2zr1OPU32tZm3EQs7R0wsyxxc+adejOgNysBX2Vl1nsibmASlgiKkMEJ8LCspR//uBQYslu/3GjRLXfdHDA1x+V0TUip8f1C9XfAiYTRXdB8zCU4ahRLBZyQWJGmipbqgONx5qXdkEx9B0yxW1brl69Vb33sMekY+OQxUYn/sI2t1Sz6YzJ5nKjyqZKjfSxom7eADRgbylZh/X/6UxYcP56xWIzFPvyQxTZuTH14APPU8fvvs6SHNwzwVVVlQ1f09aRTAeKLthwCdCPg79uXlZ93nhSz+OQrmWt/udGhj3yEZdvtrJBCRV59lUegKuRRmc8ctm3mzL5DX3hBThBtCZZr7YB3TZ8+kJyvvG9oCUC7ivRRxJxUokX7nXvzds2T2LKF8Q3vUx/uoA8450RDQ9esrjuX6YD5Lk5IBhHQeBa0VV5Ou4bImaXd/MAD0ivJ9d3PBwjGduzgC51fkA5UkAKtHTAtQTJ+/Jf/cu4t+fnsRPqETz45IytvwXU641RrmRxznBx0nBy2hr8+M2zP9URmFzRfV4kEAiIIWBKiXnG7+EYG0XXrRJjYowy3T8DqLLwVjfJ9A+CAO4EU9TcSEb/avSiD8nvYV1FBfT+h/B5Ky+3r04fxDb/5Jz3xeLFx6rru6pxjH3zA+D2TkkwH7IUeBJPquldbNR5qkuWAVbR++fyTMO3cJCqlGga6jf8eKBwtRxIb6ksUtCxytG4BUwxocYvWsgCQeZkHbJeRUgHVaVw5NbacroDGZOL19Yc6Zmo16zob2JI4Bowu6PSXA8dFEZCwY1di+3bW9tRTRZmVy8O8+9nijQFBqeOVV7RZ/3tIkWzbqJ3z9HbAjA09BLBBFw6O/6qy2edjgZEjU5/Sj30sQ2ty9+5uHXN827aMfKpPcumiL9QmdEEXSs6h5ySNsYoojYwWcNPdd0uPfMXLXn722SIQHJTB9yvWOI1nc+aE2MKFUY1tPGia3g7Ysox2wLJawAdrL48DPgOyhH8++tGMp+zW1v2OuXNW9oFJYHGasW3TMh7ZyZfDGHmhNsABF0pu/3ORFSvYrnnzihOSz9MK3rd8zEnPK3oZoU07HrX85S/pKqQc896yMsFrlzuWLJFiqwih1AUdqF+zZmINYytEyJMtQ28HnEwa7YCVt4ALeFv47M7QpEmpT8bj9GXInXD6ODOP1BNdsyYjW7EnMlvA6IIusnZo6RzG0Q8wFDwJq/nBB5mKrTJLTzmFWQKD3aSGuOh7QesUiRxD9sEBC6gkox2wTi3gvOuCxrwCo0enPp3Rf/jC+61nnZW3qGwPpPYCLmKSWja5ndcTu3Z1HuIvCBRFQGgXNP2wab7nnqLsyfXh8nPOyTVrTvk6Xnopp3xOZkomk8eS/judtCFX3XpHwrJtox2wzO7VXCtYZD7eGhaZZPcQJHbsEGkuZHmZgMBJWDzsZFzBu8l3Gis97TShtdZugAO2bJs7YCOStg64cebMSpvmDxhBMYuR/v79s9wx87JoByy7hwAO2Mz3LJvVvBXKxzSdSMJawNT63XfHHUqKUDp7NrPCYXG6yHadx38PFtS2x+8+91y5+5weVFbcgbYOuH33bqNbv7xa0ALu+eUUGRqvqyY+yQVxoLtSMfucz/Bnfr8jhRDlgFv+9jcW37pVSRkqL7xQqJ4OCj9pQthcarj5O9avnya08JKEaeuAk7HYEEllViYWLeCeUfsHDuw5QxF3VXTxFWEeHi2AQMk0B79TRXRBR6PKWr983+KS6dMLoJz9kfbnnst+U7M7dixmRDe0tg6YppP30axO8zbHbS3gOEXaEpn8tCxKVkL3syyyzsjly4CqL7/cGeWkVUQLuPnPf2aq1t1XfeUrwlm1PfOMcJmyBFIrGA64GLjJRKKqmOd1eNZNLeAEdZuJ7tKV2QKGA9bhf4A4G/pcfTULHHaYOIF5Sip2HTAfEtl32215ai0se2DECFZ25pmFPZzlqeiqVcq6zrOYkN/lRIIvRdI+adsCJnLV2tPrwUD+H1bk+rseVCm5xTeDEJ38gwaJFnlQHhzwQRRGHwToHRnwi1+wqq9+1dlyFLkOuPG3v2UJRdtjVl1yCU1AEfvV3vr4487yz1M7tYBH8a0J83xMeXZtA3EQQKMdsNu6n2O0+YPo5B8ib5hfVVefaCY6ySs55hhW8+abjplk0YQrXX7EFtMFHd+8mTXfd58Sjv7qalYxZ45YXRRjvu2xx8TKVCCN5oFMIDVax83U1gHT77dq7bZ7zuOlkb3EJg9ThGQVvQSJGxUYKm+iO4/Yg1QkAXKAfEcuJBoDLmIS1t6bbmI2TcBSkSpo5rNF639FJj75ysRJjcR8HHHQ2gGL7acQWOvGt4Al7YQkEHFeokQ7YIu6yGR2QfNWBxIICCNQoANuf/ZZ1kYfFYlvfypj8lXTnUYElToEMU3kPeKQi5pd0NYBEyeju6Dd1gKOC46ClZqAJXFNZwIOWLOvGrPNsQoImco3Otlzww3KCl516aXCYw/wrQc7li9XVgaRiigiFm8Ba530dcDJpNGzoGWHWVT5VtktLSy+c6dQlf7hw4XKSxfGt15MdnSkX8IxCBRFoJAu6MZbb1W27Ij/oJXR+lU1c7uoysn2MFrA2cj0fp26D9AC7h2Tkhyiu5+50XyphKyE7mdZZD0sN88uaL5pQfP99ysDxpdpiR775WXoWLZMWRkkKDostTewBMGiROrbArYssTMJRBHLUQ6fNRzhoduoNWZ6kuKAa2jHTkkJE7AkgfWw2HxmQScbGtjua65h1IhQQqzkqKPEz3ymuM97brxRif2ylBB9/+a1a8fKki9CrrazoOntDYoooFMy+Lq5zrVzfGlAcOxYFhwzhgVpi7/UXzqX2Q0rstzGOWCM/4qsfsjiBHJdB0xOdze1RlVthcknM/b78Y9pmrYltJ6a/vhHJmPpoVAjcxBGIY35RKx3csjqSBZtHbBlWUFVvyBlk0/s28cSNJGh62QGvh9uYNQoFiJnzPfe7fwb5BF/8uzyklkGGQ44VUZJRsfr6iRJhlivEsh1DHjvz3/O2l98URmmSgq6EaK4zyJT9O23WeOvfy1SpGOy7Hhc64lY2jpg6j4wugWcyxvHQztG33kn9UnPz/+z851fUi1l3mru/JCTtshpq04yHHDg8MOlFcMNv9ylwYHgQwgkm5oOudb1Qi5d0Hyf36a77ur6qLRz3vXc99prhcpP7t3Ldl9xhbJ1y0KN706Ybcv7oulOX57XtHXANIU8qGYEJU9iCrLTrzbGnV7K8T399EGN1CuQ6rY+2I3d6Zjpr7SACYkEi3/44UEbRBzwjcJlrgGW8YNBRLkhQ08CiVxm+PfSI9X21FNsz/e+p6yAoSOOYIPuvjv3rvEcLOPzVXZcdBGLuSmITTIpL9pPDkx7y6KtA7apC5rGgXuz31P3eZc8n+HLP127ufjGD6lx5s4x5gPOudhwj7w7l7b2EsqZ/4CQlZK8u58mwSCBQK4Ecpk131MLuO2JJ9juK69k/IezqsTf8W1nny1UXZKWG/KPmxI1WuStdxQASlsHbPokLAF1k5cI/h+Sf7ouG+DRcdK7sDuPA7W1OQVsl9GaDH7kI3mVLZ/MMuzNRz/ymkegY2nv0QqzOeCmBQsYX+9rU0+RyqRqkpfKMknRZdvDpMgVJFRbB2xR5wrav8XXMv9FG3nrrdQnXZpVUsL4RKhOh3zwL00KY2lRf2Q4NN5Sl5VER+ySZSfk6kEg9u67LL59e+/GdOmC5tsL8qVGJu2R23sh3ZeDfEh/dtllJWzBgoiOpdPWAVMXdABd0PJeGTsSYVH68uGf9MSXNQRojW6nQ46sWJF+W8hxaALfpEROkrFtohxLIVUHAs0PPJCTGemzoDuWLGEN112nLMpVTgYiU1YC9W+8MZSiDmzKmsHBG9o6YC9PwnLwfWA2bT0Wo0lX/MNoFxQZSaoDFhyzWkb5IVMPAnzyVctDD+VkDI8FbVN408abb05FuHLLEsmcCm96prY2Pg68ScdiaOuAdYQFm4onwENQ+mjCmKwko8tclq2Q6yyBPT/8IeM9Qbmk6OrVrIFmOWOJWy60NMsTjWo7E1pbB0xd0HHqgg5pVpUwp0gCJVOnFikh++N2WxtDEI7sfHDnvwR413Nb2hK//97p/mjPT3/a/Q1c1Z+AxjOhtY0FTV3Q6ub06/8KucZCmQ44unZtqgvdNbBQECkEWv/5T7b3ppukyIZQ/QjQcMEQ/azab5HuLWBducGuAgnIHP/lUcWQQCArAVqnu++OO9i+3/yGOtewxiIrJ7fdsO1KXYukrQOmFnAC/0V0fW0Ks4tH8godeWRhD+fwVGzNmhxyIYvnCJDjbV+0iO295Ramyyz5kmnTWEjSeviWhx/OeWzbE++CZZXrWk5tHfCBMWBducGuAgjw+NYWBQaRlSI0UcbLKbZuHWt77DEvIzhYdj65Kr5tW2pOQPvzz7MExTjWKZWfdx6rvPhiKSbxsJiJHCeXSTFAN6HJpLZb22rrgPkYMFrAur3Jxdkjs/XLePzsDRuKM9Dwp1uffJLxD5L+BHg8dFkp2doqS7SpcuX96i+SiLaTsGh/S0zCKrJydXs8NHGiNJO487WjUWnyIRgERBLgIWJlJJt2WFMZk1pGGSTI1LYLWl8HTFtMS6gIiHSQgMwWcBTjvw7WLFTnS8Aql+MTkhQiEymTAE24kwM7U01BZ9o6YIKmbfd4QaQ9/pDl97PQpEnSKETefFOabAgGAdEEfLIccA57G4sui+7yaPKnnO4GAQXX1gHzzRgElA8iNCHA1//6qqulWRNZvlyabAgGAdEEZLWA+SYRSF0IoAXcBUhup9r+OMjNfORKJ1B62mnpp0KPk/SrP7Z+vVCZEAYCMgmgBSyTbqZsmswrb8Zbpqq8z3R2cu15lwYPaEug9GMfk2ZblHZsQmAFaXghWAIBWcvxMAbcTWXxAASaJjhgTSvGTWbxDRiCkoIOcE4dr7/uJlwoiwcIoAXsgUrOoYj6OmDLasvBfmQxgECZxNYvLz7Gfw14CWDiQQK+0lLGAnLmmPLhGCRzCGjrgKnfHg7YnPeoR0tljv+yWIxFVq7sUT9ugoBOBGRux5nct0+nosKWXgjI+RnWi9Kcbtu21DFg/4ABLDBE200yckJkRKZgkIWPO06aqXz7wdDYsdLkOyWYj+XFPvywV/V+2ls5NG5cr/mQQRyBjmXLitp1yz9woDhjukhK7N7d5QpOdSagrwOW3ALmsVj70gbbSGYTCIwezYY8/rjZhejGeh6/eOcll3RzJ/NSePp0NoB2+EFSR6B+wgTGI04VmviPJlkJDlgWWTlyte2CpolrcrugsR2ZnDcKUoUQsHza/tcUUj4vC5HpgJNoAXf3amn7n0lbwygWdEd3JIVdgwMWhhKCJBDQd+WEhMJ6S6SPhr9kpURDgyzRxsqljX38uhqvrQOmhVtyZxPAAev6TsIuTgAO2LXvgcwWMBzwoa8NbW0LB3wolp6v2D7flp5zFHk3mSxSAB4HAYkE4IAlwnVWNJ8AKiPxJUjYEexQstSYgwM+FEsvV2xbrgNGC7iXCsBtRwnAATuKX6ZyWV3QGP/NUmvogs4CpqfLodDWnm4Xew+hC4sliOelEsAkLKl4nRQeGDpUinrMgM6KlcJK6Jm0HQMOhcNSHTBDF7SebySs2k8ALWBXvgk8LHFg2DApZUvs3ClFrulCaQw4pmsZtHXAJf37y+2C1rVGYBcIEAEsQ3Lna+AfNIixUEhK4eJb5bZZpBitQCiNAcMB58u577PPttBMUHmbW6IFnG+VID8IgECRBPjGJLJSAg64W7Q03Bjv9oYGF7VtAafYyJyIhUlYGrx+MCErAYwBZ0Vj8g2/RAeMFnCWNwNd0FnA9HKZxkukdUPbaAH3Qh+3HSWAMWBH8ctSLrMFHN8i7etSFg4lcikQB7qgCyLt871X0HO5PIQWcC6UkMcpAnDATpGXqlemA07AAXdbd5iE1S2W3i9SC3hd77kKzAEHXCA4PKaCACZhqaCsXocsB2y3tbEEtiLstkIxCatbLL1fpC8hOODeMSGHGwmgBezGWmWBmhop5cL4b3asNAkLXdDZ8WS/EygrW5v9bpF30AIuEiAel0oADlgqXieEWyUl0hwwZkBnr1HqScUs6Ox4st8Z8uab9dR90Jo9RxF3MAmrCHh4VDoBOGDpiFUrCI4axZik2e2xTZtUF8cYfdQCluNDBBDQexnS/gK+K6Cch4hAKMpDkOCCTgQkfVHrVESv2RIcM0ZakeMffCBNtumCqQUsd2e9IgBp74CljQOjBVzEa4NHpRNAC1g6YtUKZDrgGBxw9ur0+Zqy33T2jvYOmKJhyRsHdpY9tINAVgL0qz3rPdwwk0Bw7FhphqMF3CNatIB7xNPDTSsYlOOA0QLugTpuOU4ADtjxKhBtgDQHHIsxBOHIXls03KhtCziQ3Ww97gTC4TcSHR3CjWlfvJht+8QnhMv1ikC+qfigP/6RsYDcV8iORNjOuXNZsqXFK2hT5eTlziXFN29mrQ89lEtWV+QpP/982l5d7P7qqTW0DQ258ylgBYVF/0+Chx2Wu448csbr6pidSOTxhLeyUl+Sti1gud+eAuqZz4SuGzVqN/2KGSBA3EERyaYmFl2z5uA5DvIjMOAXv5DufLlFzffcwzpeey0/4zyUO7JqFYtce61nSlx21lnMKisTWt72559nu77xDaEyuwoLjBwp7f8Lxn+70j7kHA74ECT5XXiDsp+e3yPILYtAydSprPzTn5Yl/qDcJEX22fe73x08xwEImEogNGGCNNP5+uKK884rSH7k7bdZ7P33C3rWlId0ngWtfQs4VcmWtYLZNhywBm88D5HY78YblViy7/bbGe+pQAIB0wmEjjxSWhHCJ53E+KeQ1P7cc2znpZcW8qgxz9A8Innb2hZJQf9Z0FRAfzC4oshy4nFBBCo+8xkWOuooQdKyi+GB5ZsfeCB7BtwBAYMIqPg/UwiO0o99jMmKT12IPTKeoUZDowy5ImQa4YADJSW8CxrJYQL+6mrWR9F4Y+Ovf81ynYjkMBaoB4FeCYQmTuw1jyMZaLZ95ec/74hqVUqpAbddla589RjhgAevXFlHM9ka8i0c8osl0Oeaa5ivb1+xQruRFlu3jrU+/HA3d3AJBMwjEKytZb6qKm0Nr5gzh1mhkLb2FWtYaWXl1mJlyHreCAecKrxloRUs6y3IQW746KNZhaJfynt//nNmY512DrWCLCYQ0LX7uZOdr18/Vk6zy92YqOHWXr14sbYTSUxywK+48QUxoUx8lmV/vuxIQXCIjhdfZO0vvWQCFtgIAjkR0Lb7Oc36iosvTjtz1eE2nUtjjgMuKVmiM0g329aH1kgG+E4ushMFE9jzk5/I1gL5IKCUAF+2p3sqmTaNyVwq5Vj5LQsOWAT80okTl1ELTNuNlUWUUUcZofHjWdVllykxjc96jm3cqEQXlICACgK0BIaFpkxRoapoHZVubAXDARf9XqQEDFy4sJ0OsBxJDM6cpFgU8i/V9Sw53CQ3Jrl3L9v3m9/kZBcygYApBHj3Mx/CMSGVn3uu1pPFCmKouQM2IxDHAfI+n29JMpH4aEEVgYfyJlBFC/RVjV813norS1DkK6TCCfDlJBWf/WzhAhx+Mvbuu2w3zbR3Uyo55hhjimOVlrKKCy5gTRT+1TUJDlhgVfr9S1gicbVAiRCVhUCItk7rc9VVWe6KvRylcHgtf/ubWKEelOYfPFjZDyYpeONxKWKdFBo+9lgn1eetu/Kii9zlgG1b2yVIvHKMagFXDRr04r4tW+K0MYNRduf9v8DhB/iawAH/93+MqVgbSDvL7LnhhryWHfF1i8HDD5dOibfIWh55RLoeKHAvgRJavmdS4pMtS2fMYO1Ll5pkdlZbfcHgpqw3NbhhlCPj67n2jRr1MnE7WQN2rjWhz5VXsiBNvlKRWh58kEXeeis/VbRGuOqrX83vmQJy80hc/IsosWtXAU/jkbwJKFjmlrdNRTwQHD2a8TW2piU+GcstDjjcv/8Gnfmbswypk6JlPdV5iL/iCYSnT1c26zlJe7Du5euL80ytjz3Gkrt35/lU/tn55JlqRTPA87fOhU8UsM+uzhT4/yUTU+msWSwwZIiJpmfYTLsgtQxYsmRHxkXNToxzwP7SUjhgSS+Rr6KCDfjf/1UScIMXYe9Pf1rQbkd2NMqa7r1XEoVMsTz6l3+A0K2oMxXgzLUEwieeKK1sHa+8wlhM0qpMWv1QceGF0mxXJdhm7D1VugrVY5wDHr569Wr6ZbO50ALjuewE+v3oR8w/fHj2DALvdFDXbksR8Z5517Xd0SHQou5FWeEwWsHdoxF/1UVd0HwJn0wH3P7006ztP/8RXwcHJPLZ9HwNs8mJwlBqH1TAOAeceiF8vn+b/GLoaHv52WezclqCoCLxsdU93/1uUaoStG649aGHipKR68MVNDMUreBcaRWRz0Vd0KFJk6Suqe14/XXW8ve/FwG750f9AweystNP7zmT7nctCw5YRh35QiFslSMQbPCww1h/2gBBVdpHWw3G6uqKVtd0992MKfjSRiu46KrynIDSU06RVma7pYXxHcM6KGa6zAmCpkfGsn0+OGAZb+GIb33rWepe2CZDttdk8olGA26/nVnl5UqKHluzhjX94Q9CdMU++IC1S+yGSzcSreB0GjjujUDpyfIWakRWrEgt27MpdnrrP/7RmykF3y+hSWShj3yk4OedfjDg92MMWEolzJuXpF83f5Ei22NC+1JXcOjII9WUmr4wdl97LeNfHKJS0113iRLVoxzeCq6aN6/HPLgJApwA3/s3NHmyNBgdr712UHaL5GEYk1vBdr9+6w+C0vTAzDFgghkoLX1AU6bGmFV2xhmscu5cZfbuu+MOFqUWsMjEx8J4JC0ViX8Z+fv3V6HKmzpcMgmrlM9+9sn7ao0sX37w/Yi99x7jLWJZqfz885lPUe+YyDLQRN3dI15+ebtImTJkyXtLZFibJpNmQ6+i3ZFWpl3CYR4EAiNGsAEFrMHNQ0VGVh5Vah91dctIaAXLoOqATAXj+SpKVXrqqfLU0BK8roFrWiVOxuJDU9wJG5iM8A3GOmD+Qvj8/vsNfDEcN5mP+w783e+YVVmpxhbqcm7gXc/05SEjtT31FEts2SJD9CEy0Qo+BIm4Cy5oAVu0c1jp7NnimHSR1EGtX76KID21PvGE1CV5JnZD24Y0zox2wKXV1X+hyVjiBhTT32oXH/enTe9V7XLEMe4jZx9ZtUoaUT6mrGoHF75jDMaCJVWlC1rA4eOOY74+fSQBYqxj8eJDZCdpVnTbk08ecl3UhSBNxAp/1KxN6CyfL8/4tqJo5SfHaAc8YPnynRTt5On8iuzt3HzLuvJPfUoZhOg777B9t90mXR/fTclubpauhytAK1gSZhe0gMvOPFMSnP1i22npUXdJ5ppgro/vkmRS8oXD6IJWUWHUDY3JWDmCLpk6lfWjnYeUJepybqCNHWxZIfPSCsJbAc1//WvaFXmHqVbwV74iTwEkG0mAWl1Sg1fw+OextWu7ZRN59VUW3ywvQCCfsMmDcxiRLCsy4lOfWmeCrUa3gDngmtNOe4wmY+0zAbaTNvJITnzclykML7f3lltYdIO6zUia772XBiTUjEjw2eN+A3e6cfIddLtuvm7WJ3GWfPuSJRR3hvr8ukn8uszJWIzGtis/97luNOt3ybLtd9gNN6j5Iiiy+MY7YLZgQcRnWWpiEhYJ26nHeUzXgTQDmW/YrirxYPHN99yjSl1KT3zrVtb2r38p0YlWsATMWZyLBE1SRMrufu5u/De9IC08KIdEhhXkgHmMa90TxYgwovuZczTfAVMhaIcktd/0ur+BXezjmyyUKJxEkdy3jzVcdVXWX+tdzBN6KirKVi5GVX7hC2gF5wLKA3lo3SmT6oDJsbZ3MwErHW2cVgJ0vMy3S5eT/LRFId+qUPfk8/le193GTvtc4YCHrV69jLqhX+wsFP7+l0AVdZWq3lqs4brrWHy7M2vg+WxrPh6mIqEVrIKyGTpKjj1W6hhp5M03c4r7LH0ylsLAPYXWPEWtW1ros6qfC6hWKEufr6TkZ8mOjlNkyTdRbumMGazvD3+o1PSWP/+ZtT3zjFKdXZXxwBwDFbX4+Vgw15fYs6erGcaf8+ApexVu0pFsajKWWcWcOVJtb8/x/1Tbv/+dWg0ga41/+IQTWHD0aMYjcOmYaFnq3hGrVr2jo23d2eQaB1yzdu1zH44a9Sr1e5q1YK27WhFwLXj44WwAhX5kCsdsYuvXsz0//rEA64sT0f788yz+/vssMGpUcYJyeNoqK2NVNCOaTzhzW0o2NrL2F9Gx1Fu9+ioqWNlZZ/WWraj7bbT/by6JB+loffxxqb1efCnjnptuysUc9XksS14fvITSuKILupMLbVOobk+9TqUa/uXB4AfRjkP8r6rE/+Pvnj//kCg9qvSn6+EzQlNbFaZflHicmhHdt69EDRCtM4Hyc85hfDhCVorRSoLYpk05i5fdDV1BcQR8Esubc0G7y+j3G9P9zM13lQOuWbfuCa/Hh07NeKaWr4rWX/r7v+cHP2BR6rLUJfFt2pJ79yoxJ9UKxk5JSljrqESX7udONjxWdGyjvK1wefd2+XnndarT6i99/8EBO1kjvmDQ063g/j/7GQvT2K/K1Epbosn+1Z1veWg+AGt+QF2MFrSC862h/PPzQBf8B6ZOKXTEEVK3HuRlbaVY5/mmloUL830kr/xaRsaiABw1EycaMwOaA3dVC5gXqGbBAr5DtRFRULi9IlP1FVcoDTPJbY+tW8d461fHlHLAkjaA6FrezrHgrtdxLo5AoLZWaSCZXCyX3fqN02QnHs4139T6yCNSg9IEJ0xgJdOm5WuW1Pw0AWs5W7hQzo4vkix3nQNmp55q02LxmyXx0lZs+bnnsj5XX63UPru1le36+tcZb23qmBIUuq/l4YeVmYZWsFzUKjcQyaUkfFex8v/5n1yyFpynhTvSAlJi1y7W/sILBTyZ+yO67ZJEATiMmzHoPgdM70/txRfzXZI+yP1VMjtnmELgqdzbt5MWX+8bo9nGOqfmP/5RmXl879SqSy9Vps9rinTbhars9NOZr7paajW0PfpowfJlDwuV08xvv8TQm/kWnJai/jvfZ5zO70oHnIoD6ve7b11IN29LaOxYNpDWobJQqJu78i41/f73rFXiFmiiLOexqDsWLRIlrlc5qehYErej69UAl2tCQJEAABtgSURBVGbgY46ho47SqnR8+ZnMFFmxgsXq6wtWwVvAyYaGgp/v9UH6zpHdBd+rDf/N0FjzzW8u+++pGUfudMDEnlrB91B4uNVmVENhVgaGDmWD7r9f6XIjbmkHrQ1tvPXWwox24CmV4SlTrWDJX8wOIHRMpUVf8nxuQz8N1penQ+BBbmR3ibf+85/pKvM+5ruQpcaC834y9wf4mmA+Oc7pRMOOz7J585JO25GvftcE4jik4LQbhvW3v32dtbcvshmjHml3JT91fQ267z7G47OqTHFaj7iLr/dNmvOuty9dmtrGLTh+vBJUvBWcio5FgSxMTtzBDC1wDFJIuWkHniBNvJIV1akYG6suu6yYx3t91qZ5FTygRrGJd0NXXnJJsWKyPu8fPpyVzpzJ2p57LmseFTfoR0D+U8VVGNaLDvc6YCp4zZo1S+tGj76PJZNf7IWDUbf55I+BFGgjSN3PKlNq0hWtdzUxZCBvBff/1a+U4OocC977y18q0SdLCS9HaPJkWeKNlRs68kgWPukkqfa3PfGEkP9nfG1+lOKjy+y+55MPnXTA1LqyrQEDnI1/W+Db4HzfQYGG5/pYyZAh11MFSRwIydUSMfn4dmADf/tbVnLMMWIE5iqFokvtph2OVO7vm6tpueTjrYnEjh25ZBWSp/KLX2R+jAULYambkOqvflW6Sc0PPihMh+w1weGTT2bBkSOF2ZuvIOrhfGvEyy87s/tLvsZ2ye96Bzx46dIGiof8nS7lNvKUb3nWn2IOl86erdx+HpTf6U0Wiik0Hw9rpi57VamzFaxKH/SoIRCsqZEe95nHVOe7H4lKbbwrW/J6+AoaC3YqUfezcbOfO1m53gHzgtZu3Hg3tYKNCtLdWUHpf/tSwIvyCy5Iv6TkuIV+jfMxTdNTM+3UZLe1KStGaka05GUqygoDRSkClXyCneRJRy1/+YtQ2gnan1v2j2c+G5oPjTmR/KFQ8YPlThhOOj3hgDlbf3n516kFGXeIc9Fq+3zzm6zyS18qWk6+AjpeeontueGGfB/TMj8fu5bdHZdecIt2yanEuuB0JEYf+wcMkL7sxm5pYS0Ux1x0kr0mmK+HLj/7bNFm5yJv0/C1a1/LJaOOeTzjgIevXr3Ktqzf6lgJvdlUReOJ1d/6Vm/ZhN/n+8HuoiUgdtzY3y2HMGm+5x5Gk/IOuS7rAq87PmMdyXwCfa68Unorj/9ATDY3C4fVsWQJS2zbJlxuukAnImPRnJi/p9tg2rFnHDCvmMpx435EreDNJlVS5Wc+w/o60ALlE5Z20vIFGV8GTvKP1dVJ745LL1+qFSxxGUi6LhzLIxAcM4ZVfPaz8hRwyfTDsIn/QJSQ+LJBGS3rdFNDkyaxEvqoTLQNpNxdJyQXxlMOuN+TT7bSbknzJTMVJp7Hd+5Hk59UpySNGe2kpQXxLVtUq1aiT/V4dhUNHaAVrKRqpSnp973vSR/7bfv3v1l8s7z2Ad+1THZS2QqmxtTGmlWrxM1Wkw2nG/mecsC8/CPeffcx6rbQviu67Iwz2AC+bpVmPqtMPADATnIYUZqJ6dbEQ/xFBc4y7Y0TWsG9EXL2fpI2FekplZ54IgufempPWYTckx2xLfbhhyzymtzh0jIaB1a2/M6yjO5+5i+N5xwwL3TtSSddR47tVX6sYyo77bTUWl9aPqXWPBrr3UVrHEUugVBbgNy1KW8F01iwr6oqdwORUxmBxM6dWXXxMIt9v/vdrPdF3ehYvFjJ/zvZk7FSO0R9+tOisPQox2949zMvnCcdMLvnnlhJdfVnqW25p8caduAmD+s28He/Y4zC8KlOu2k7w3aK8+yF1Pb00yxeRKD7fBnxcIpVGAvOF5uS/Int2WM48GV/KkKY7rvtNiVlbaMNVGQvxUvFh5bfc7eWT6xVAk2iEm86YAI65M036/3h8BfICVMgFT1S6SmnsEG0yxALBpUbtIfWGLc+9phyvU4p5JNSmu++W6l6PhaMVrBS5Dkp61jW/SY6vrIy1ueaa3KSUUymCOnvWL68GBE5P5ukdfBt//pXzvkLyRigqFg8OpbM5PP71f7nlVQYzzpgzpPWjz1Fi+q12LYw5XzvvFP5toKcw16aZd38pz/xQ0+l1JIPWhusKqVawV/+sip10JMDgQRNNMy2pzXfhck/aFAOUorL0qgoRnmnlbK7obkevn2ktGRZ0dDgwfdLk69QsKcdMOdce/31P6TxYEf7XXm38yCnnO+NN7Im2tLQi4m3BniUL5WpihwwWsEqifesqyXLzOCSKVOY7B2PuGXt//mPstZvJ4mO119nfFczmamU5rEERoyQooLG5R9JhRiWIl2tUM87YL6HZPmwYReSE1YXqT+tjstmzWKDFixwpuV7002s6d5706zx3mEzL7/CQCNoBevzjvHdvVKBWbqY5AuH969AkBxykq/73Uux3Z1I0lvBNAZceeGFcooWCv1BjmD1UuGAifmAJUt2BEpLP0/jwQmVVcCXGqUmXDkw5ruXNjiXtehfJcNidcUp4IiIfVfzsQOt4Hxoycu77/bbGY+T3DX1ue46Fhg1qutl4ectf/0ri23cKFxuLgJb//lP6RHhUvGhQ6FczMk5D31Hv1e7Zs3zOT+geUY44AMVNPyddxZZgcC1quqr4rzz2ED6AlA+25m2FeQTrpoUT0BSxbUQPbLXX3a1Ca3grkTUn3csXcqaeM9TlxQ+7jglMdeTjY2s8dZbu2hXdxqnmd88PKXM5Ovfn5WdeaZYFYHAH8UKdFYaHHAa/5oNG26jtbc/S7sk5bCSQtr1/9//pR0iFK/zpS35ds+f78kJVz1VZHTNGtbxstrNstAK7qlG5N6LvvNO6v+BTT9G05OvvJz1V+QUG3/xC5YgJ+xkUrExSSVF1BOWLCtWVl19rzB5GgiCA+5SCSM3bvwhzYymhbhyUhVtZ5YKLyl/nVxGAez29lRs59Ynnsi4jpP9BFQH5kAr2Jk3j//Q2kFjk4k9h4YA6Pv970ubOJRe2sirrzLe/ex0aqMJYDzsrMxUMm0aC02YIEQFTb7664Dly7NHTRGiRa0QOOBueI98771vkBP+Sze3irrUl9YUqoiq09VI3t3Fv3TaKdoOUvcEOigAierxOLSCu68LGVeT5HAbrr+e7aTlMXxbyq6Jr0SQvtkCKeUTvxpojLlr67urPSrO7UiEtT76qHRVopYkUdwGis3rrqQ+3JIh/EbOnfvFuvvuq6L/KJ8QYXL42GOZr18/Jnqz7Vxs4+O9qp1LLnbplId/IfJuQb4BhspUMnmysB9GPMJRcvduleZrq4s7lzhtvxen+Md8M/r2RYuYHY12a29gyBDWn296kuV+tw8VcJG/Yw3f+Q7jO3Lpkvj3UfCww6Sa46fvPYq/z+xEUXNcn6LIV6ulGuqAcIteCsUDkQ6UskCVO+bODUeWLHmSGMkN61KgfXgMBEAABLxAIFBWNotPlHVbWeGAe6nRxpkzK5s2bXqOpmtM6yUrboMACIAACAgmQNsOvlH7/vsfFSxWC3EYA+6lGvq88EJzePDgsyhQx7u9ZMVtEAABEAABwQRo8tUvBYvURhwccA5VMWjZst3BAQNm0y8x141B5FB8ZAEBEAABRwjwwBs11133D0eUK1CKLug8IO876aSqxs2bKYQMOzWPx5AVBEAABECgAAIUHGlu7YYNDxbwqBGPoAWcRzVVL17cNPLUU8+kJUrOL+LLw25kBQEQAAHTCFDr953au+4SvhxUJw5oARdYG/VjxtycTCSuKfBxPAYCIAACINADAVr3e8GItWvlL1TuwQbZt+CAiyBcN2bM11gi8RuaIY2ehCI44lEQAAEQSCdA821ep5nPx6dfc+MxHEcRtVq7ceMdtHXZHOoqaS9CDB4FARAAARBII2CVlPwg7dS1h2gBC6jauokTj2etrY9QS7i/AHEQAQIgAAJeJrBo5AcfzPICALSABdRy7erVrwSqqmbQWuGVAsRBBAiAAAh4kgD1JiZ9FRXKtoV1GjIcsKAaGLZy5caRxxxzvM/n+3+CREIMCIAACHiLgM93V82qVW96pdDogpZQ0/Xjxp1Ngd//gC5pCXAhEgRAwJUEqPXbQBtDHDH0hRf2urKA3RQKLeBuoBR7qebddx8PDBw4lbqkXyxWFp4HARAAAS8QoJCT3/eS8+V1Cgcs6c0e9tprW0feffcseql+RL/sitqHS5KJEAsCIAACWhCg78gVNX/84x+0MEahEeiCVgC7fsKEGXZHx59oW8MaBeqgAgRAAASMIUDO1w5UVJw4bNWqV40xWpChaAELAtmTmJo1a5b6R42aSptSL+wpH+6BAAiAgOcI+P13edH58npGC1jx214/fvxpyY6O/yO1RyhWDXUgAAIgoBuBTZXjx0/u9+STrboZpsIetIBVUE7TUbN27XMjzz57Co0Nf4e6Xjz50qXhwCEIgIBHCaS6nsvKLvWq8+XVjhawgy//tmOOGR7bu/dXdjL5KQfNgGoQAAEQUE6AYibcUfPee/OVK9ZIIRywBpWR6paORG5jtj1OA3NgAgiAAAhIJUCt3/fLJk2aMuDRR9ukKtJcOLqgNaigVLf0KaegW1qDuoAJIAACcgnwrmfaxOYSrztfThktYLnvWt7SN59wwpDkjh3XsmRyHkXSKs1bAB4AARAAAY0J0PyXn9e+954ndjvqrRrggHsj5ND9XdOnD+zYs+dqGh/+Kq0frnDIDKgFARAAAWEEaJ/fl2q//e1ZbN68pDChBguCA9a88raffHK/yNat36IW8RU0RlylubkwDwRAAAS6J2BZO/1Dhkwb8fLL27vP4L2rcMCG1HnTGWdUN27YMJ8c8Xzqmu5riNkwEwRAAAQYjfsmrXD4TD7fBTj+SwAO+L8sjDhqnDmzsrm+/uvJZPIb1CIebITRMBIEQMDTBKxA4KbaDRtu8jSEbgoPB9wNFCMuzZ8fqHvmmXNYNHoJOeLZ1CrGjHYjKg5GgoC3CNC47zO1d9/9CXbqqfQ1hZROAA44nYahx9unTq2JNTd/mSZsfYkmbI0wtBgwGwRAwH0E1vYZMWJG9eLFTe4rWvElggMunqE+EhYtsrZcfvkZ8Y6OS+hX5yfJGQf0MQ6WgAAIeIqAZe3y9et3fM3y5Zs8Ve48CgsHnAcsk7LuPvHEwW07dnzBjscvJrvHm2Q7bAUBEDCcgGVFfKWls2veeedlw0si1Xw4YKl49RC+dfLkMbHW1nOsZPJsGi8+gQZi/HpYBitAAATcSIAmXV1Mk67+4sayiSwTHLBImgbI2jFjRv/orl2fSMZiZ9PSgI+TMy43wGyYCAIgYAgBzHjOvaLggHNn5b6cl11WUv/ii7NYLHYOLWv6BBVwiPsKiRKBAAioIuDz+2+v2bjxW6r0ma4HDtj0GhRo/7ZJk8bG29tPoGAfM8ghn0At5HHUQqY/SCAAAiDQMwGK8XwvxXi+tOdcuJtOAA44nQaOMwjwMJixnTtPsGOx41Njx7Z9LGUIZ2TCCQiAgOcJkPN9qPb66y9EjOf8XgU44Px4eTv3l74U3Lp8+bR4Wxt3xONpmdMR/C8550HeBoPSg4B3CdCSx3/VfvKTF7Dbbot7l0JhJYcDLowbnkojsGXWrD6J7dvH25HIEdR9PZ4+R1C/NXfOh1EXNiJ0pbHCIQi4iQA532drZ88+jy1YEHFTuVSVBQ5YFWkv6qFJXttff/2wRCQylGZdD6KW8hBqNfOJXkPISQ+mYx7Legg564FYGuXFFwRlNpzAIyOPPfZCtnBh1PByOGY+HLBj6KH4IAGK4LX7mmsGtsdi/ckxh8kxh/lfWqxckjpOJPb/pXN6JkzOmt8P0TEmiB2EiAOhBGx7Cr175wqV6SJhNOb759q5c7/Mbrgh4aJiKS8KHLBy5FAIAiCgO4H6MWMuTiYS9+hupxP2kfP9Pc12vsIJ3W7TifE5t9UoygMCIFA0Aduy0LLrhiI531vgfLsBU+AlBOsvEBweAwEQcDUBGulA6iRAYz0J5vdfWbtx4x2d1/C3eAJwwMUzhAQQAAGXESCHUwUPfKBSLavJFwx+dsS77z7jsmp2vDjogna8CmAACICAdgRsu592NjlgEP0Q+cBXWTkDzlcOfDhgOVwhFQRAwGAC1PodaLD5QkynNb5LSoYNO65m5cq1QgRCyCEE4IAPQYILIAACnieQSEz0MgOabLWg9pRTZg9eurTByxxklx1jwLIJQz4IgICJBKaaaHTRNltWs8/nm0c7Gv29aFkQ0CsBtIB7RYQMIAACXiKwY/LkWuqC7uulMqfKalkrg5WVx8L5qqt5OGB1rKEJBEDAAAKxaNRzrV/L779r5OzZJwxbuXKjAVXkGhPRBe2aqkRBQAAERBCg7Te944Ata6cVCl1Ru27dP0Wwg4z8CKAFnB8v5AYBEHA5ATuZnOnyIqaKRxOtHgoPHXoUnK9ztY0WsHPsoRkEQEAzApuPPvpw2oRhhmZmCTWHlhfttoLBK2reffchoYIhLG8CaAHnjQwPgAAIuJVAsrHxIreWjZcr1eodNGginK8etYwWsB71ACtAAAR0IJBMutMBW9a7/lDoWyPWrXtWB8ywYT8BtIDxJoAACIAAEaibOPF4Wn402k0wqLu5hVq93x75yU9OhvPVr2bRAtavTmARCICAAwTs9vavO6BWnkqf76/+gQOvHb5s2TZ5SiC5GAIWTTjwFyMAz4IACICA6QQ2T5x4dLK1dRm1gGn/AePTC8GKiu8PW7XqVeNL4vICoAXs8gpG8UAABHonkGhr+wXlMtr5Unfz61ZJyfdr1q59rvcSI4cOBOCAdagF2AACIOAYgc3jxp3DbPsUxwwoUjH9aljjC4d/OGLt2keKFIXHFRPAJCzFwKEOBEBAIwLz5wcSsdjPNbIoZ1OoxfsatXjn1N5zz2Q435yxaZURY8BaVQeMAQEQUEngw9Gjb2XJ5JUqdRaji1q7No1TPxUoKfnl8HXrXipGFp51ngAcsPN1AAtAAAQcILDliCPOj0cipmy710EbJiz0lZX9csTbb69xABdUSiAABywBKkSCAAjoTWDr5MljYs3Nr1F7skpvS9laXyBwV2DEiAeGvvDCXs1thXl5EsAkrDyBITsIgIDZBHbMnRsm57tQW+drWRGfZf2Ddim6k8Z2l5hNG9b3RAAOuCc6uAcCIOAuApddVtKxeDHfhGCSTgWjsd0k2bOI+f1/C9bU/BOtXZ1qR54tcMDy2EIyCICARgR2zZlT2r58OV+qc5oOZh2YULWMxnb/WjZkyEMDlizZoYNdsEEdAThgdayhCQRAwCECe846q7xt3brHNFjv20EIFpHTfSpUWfnYkDffrHcICdRqQAAOWINKgAkgAALyCOyYMaN/ZOvWh0nDCfK09CDZsupoze6TtAfvU+FJk54fuHBhew+5cctDBOCAPVTZKCoIeI0ALTU6ORGJ/InWzg5TWPZN1MJdbFvWS6HS0iVD3357g0LdUGUQAThggyoLpoIACORIYNEiq+6SS75HQTZ+QM5X2oYzNI7bTo72bWZZK/w+31J/dfXiocuXb8nRSmTzOAE4YI+/ACg+CLiNwOapU0clGhsXULlmCi2bZe2kMeQ1tL/uW8znW+ErLX1rxBVXrGPz5vEZzEggkDcBOOC8keEBEAABHQlsmzmzb6yu7vu0xerlZF8oXxupNZugZ7ZTa3YLtWrfJ0e7noLlr2clJRsq+/bdUL14cVO+MpEfBHoigEhYPdHBPRAAAf0JzJkTqnvjjcuou/lacpwV9KUWo27nGE18ipHxfNYxd5yN/EP3U8fkbBvJwe6mluxWmhy1lVVVbRnxs5/tYKeeSo8igYAaAnDAajhDCwiAAAiAAAhkEMB2hBk4cAICIAACIAACagjAAavhDC0gAAIgAAIgkEEADjgDB05AAARAAARAQA0BOGA1nKEFBEAABEAABDIIwAFn4MAJCIAACIAACKghAAeshjO0gAAIgAAIgEAGATjgDBw4AQEQAAEQAAE1BOCA1XCGFhAAARAAARDIIAAHnIEDJyAAAiAAAiCghgAcsBrO0AICIAACIAACGQTggDNw4AQEQAAEQAAE1BCAA1bDGVpAAARAAARAIIMAHHAGDpyAAAiAAAiAgBoCcMBqOEMLCIAACIAACGQQgAPOwIETEAABEAABEFBDAA5YDWdoAQEQAAEQAIEMAnDAGThwAgIgAAIgAAJqCMABq+EMLSAAAiAAAiCQQQAOOAMHTkAABEAABEBADQE4YDWcoQUEQAAEQAAEMgjAAWfgwAkIgAAIgAAIqCEAB6yGM7SAAAiAAAiAQAYBOOAMHDgBARAAARAAATUE4IDVcIYWEAABEAABEMggAAecgQMnIAACIAACIKCGABywGs7QAgIgAAIgAAIZBOCAM3DgBARAAARAAATUEIADVsMZWkAABEAABEAggwAccAYOnIAACIAACICAGgJwwGo4QwsIgAAIgAAIZBCAA87AgRMQAAEQAAEQUEMADlgNZ2gBARAAARAAgQwCcMAZOHACAiAAAiAAAmoIwAGr4QwtIAACIAACIJBBAA44AwdOQAAEQAAEQEANAThgNZyhBQRAAARAAAQyCMABZ+DACQiAAAiAAAioIQAHrIYztIAACIAACIBABgE44AwcOAEBEAABEAABNQTggNVwhhYQAAEQAAEQyCAAB5yBAycgAAIgAAIgoIYAHLAaztACAiAAAiAAAhkE4IAzcOAEBEAABEAABNQQgANWwxlaQAAEQAAEQCCDABxwBg6cgAAIgAAIgIAaAnDAajhDCwiAAAiAAAhkEIADzsCBExAAARAAARBQQwAOWA1naAEBEAABEACBDAJwwBk4cAICIAACIAACagjAAavhDC0gAAIgAAIgkEEADjgDB05AAARAAARAQA0BOGA1nKEFBEAABEAABDIIwAFn4MAJCIAACIAACKghAAeshjO0gAAIgAAIgEAGATjgDBw4AQEQAAEQAAE1BOCA1XCGFhAAARAAARDIIAAHnIEDJyAAAiAAAiCghgAcsBrO0AICIAACIAACGQTggDNw4AQEQAAEQAAE1BCAA1bDGVpAAARAAARAIIMAHHAGDpyAAAiAAAiAgBoCcMBqOEMLCIAACIAACGQQgAPOwIETEAABEAABEFBDAA5YDWdoAQEQAAEQAIEMAnDAGThwAgIgAAIgAAJqCMABq+EMLSAAAiAAAiCQQQAOOAMHTkAABEAABEBADQE4YDWcoQUEQAAEQAAEMgjAAWfgwAkIgAAIgAAIqCEAB6yGM7SAAAiAAAiAQAYBOOAMHDgBARAAARAAATUE4IDVcIYWEAABEAABEMggAAecgQMnIAACIAACIKCGwP8HMXtRHzz6PSEAAAAASUVORK5CYII=",ht=Kt(12290),at=Kt(85149),ft=Kt(56102),vt=Kt(44164),Mt=Kt.n(vt),Rt=(Te,ci,ki)=>new Promise((Dn,yi)=>{var En=Xe=>{try{Ne(ki.next(Xe))}catch(wn){yi(wn)}},gn=Xe=>{try{Ne(ki.throw(Xe))}catch(wn){yi(wn)}},Ne=Xe=>Xe.done?Dn(Xe.value):Promise.resolve(Xe.value).then(En,gn);Ne((ki=ki.apply(Te,ci)).next())});const Gt=Te=>{const ci=/```[a-z]*\n([\s\S]*?)```/g;return Te.replace(ci,(ki,Dn)=>`<code>${Dn.trim()}</code>`)},$t=(Te,ci,ki)=>{const Dn={markdown:"text/markdown",html:"text/html"},yi=new Blob([Te],{type:Dn[ki]}),En=URL.createObjectURL(yi),gn=document.createElement("a");gn.href=En,gn.download=ci,gn.click(),URL.revokeObjectURL(En)},ae=Te=>et()(Te).format("YYYY-MM-DD HH:mm:ss"),ve=(Te,ci,ki)=>Te.map((Dn,yi)=>`
${yi!==0?`
<div class="message">
<p class="user-name">${ci}<span class="timestamp">${ae(Dn.updated_at)}</span></p>
<pre class="code">${Gt(Dn.question)}</pre>
</div>`:""}
<div class="message">
<p class="user-name">${ki}<span class="timestamp">${ae(Dn.updated_at)}</span></p>
<pre class="code">${Gt(Dn.answer)}</pre>
</div>
`).join(""),fe=(Te,ci,ki)=>Te.map((Dn,yi)=>`${yi!==0?`${ci}
${ae(Dn.updated_at)}
${Dn.question}
`:""}${ki}
${ae(Dn.updated_at)}
${Dn.answer}
`).join(""),Ye=(Te,ci)=>Rt(void 0,null,function*(){const ki=ve(Te.data,Te.my_user_name,Te.user_name),Dn=fe(Te.data,Te.my_user_name,Te.user_name),yi=`export-id-${String(Math.random()).slice(-6)}`,En=`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.wrap {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
padding: 20px 20px 0 20px;
background-color: #f9f9f9;
position:fixed;
left: 0;
top: 0;
z-index: 100;
width: 100vw;
height: 100vh;
overflow: auto;
box-sizing: border-box;
}
.message {
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.user-name {
font-weight: bold;
color: #333;
margin: 0;
}
.timestamp {
display: block;
font-size: 0.8em;
color: #666;
margin-top: 5px;
}
pre.code {
background-color: #f5f5f5;
padding: 10px;
border-radius: 5px;
overflow-x: auto;
white-space: pre-wrap;
word-wrap: break-word;
margin: 10px 0 0;
}
</style>
</head>
<body>
<div class='wrap' id=${yi}>
${ki}
</div>
</body>
</html>
`;if(ci.key==="html")$t(En,`\u4E0E${Te.user_name}\u5BF9\u8BDD\u5185\u5BB9.html`,"html");else if(ci.key==="markdown")$t(Dn,`\u4E0E${Te.user_name}\u5BF9\u8BDD\u5185\u5BB9.md`,"markdown");else if(ci.key==="pdf"){const gn=Oe.default.info({icon:null,width:460,title:"\u63D0\u793A",content:"\u6B63\u5728\u5BFC\u51FAPDF\u4E2D...",maskClosable:!1,keyboard:!1,okButtonProps:{style:{display:"none"}}}),Ne=document.createElement("div");Ne.innerHTML=En.replaceAll("box-shadow","// box-shadow"),document.body.appendChild(Ne);const Xe=document.getElementById(yi);if(!Xe){console.error("PDF \u5143\u7D20\u672A\u627E\u5230");return}Xe.style.width="auto",Xe.style.height="auto",Xe.style.position="initial";const wn={html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1},jsPDF:{unit:"in",format:"letter",orientation:"portrait"},pagebreak:{mode:["avoid-all"]}};Mt()().set(wn).from(Xe).toPdf().get("pdf").save(`\u4E0E${Te.user_name}\u5BF9\u8BDD\u5185\u5BB9.pdf`).finally(()=>{gn.destroy(),document.body.removeChild(Ne)})}});var De={cursor:"cursor___XqlqI"},Ue=({text:Te,open:ci=!1,onTextChange:ki})=>{const[Dn,yi]=(0,zt.useState)(""),[En,gn]=(0,zt.useState)(0),[Ne,Xe]=(0,zt.useState)(!0);return(0,zt.useEffect)(()=>{if(ci)if(En<Te.length){Xe(!1);const wn=setTimeout(()=>{yi(sn=>sn+Te[En]),gn(En+1),ki()},50);return()=>clearTimeout(wn)}else Xe(!0),ki();else yi(Te),gn(0),Xe(!0)},[En,Te,ci]),zt.createElement(at.Z,{value:Dn+(Ne?"":`<span class='${De.cursor}'></span>`)})},Pn={menuWrap:"menuWrap___GDodS",menuMask:"menuMask___dldKr",menu:"menu___OrkS3",itemTwo:"itemTwo___gOXTT",item:"item___XhZWJ",itemDisabled:"itemDisabled___pRoiI",menuWrapRight:"menuWrapRight___Tgo4N"},qn=Kt(85057),un=Kt(92310),fn=Kt.n(un),pe=({disabled:Te=!1,recoverDisabled:ci=!1,onFileType:ki,onRecover:Dn,onEmpty:yi})=>{const[En,gn]=(0,zt.useState)(!1),[Ne,Xe]=(0,zt.useState)(!1),wn=(0,zt.useRef)(null),sn=[{key:"html",label:"\u5BFC\u51FA\u6210HTML"},{key:"markdown",label:"\u5BFC\u51FA\u6210Markdown"},{key:"pdf",label:"\u5BFC\u51FA\u6210PDF"}],Wn=()=>{if(!Te){if(wn.current){const Hn=wn.current.getBoundingClientRect(),Jt=window.innerWidth-Hn.right;Xe(Jt>300)}gn(!0)}};return console.log(Ne),zt.createElement("div",{ref:wn,className:fn()(Pn.menuWrap,Ne&&Pn.menuWrapRight),onMouseEnter:Wn,onMouseLeave:()=>gn(!1)},zt.createElement(qn.op,{disabled:Te},zt.createElement("i",{className:"iconfont icon-gengduo6 font12 mr5"}),"\u66F4\u591A\u64CD\u4F5C"),zt.createElement("div",{className:Pn.menuMask,style:{display:En?"block":"none"}},zt.createElement("div",{className:Pn.menu},zt.createElement("div",{className:Pn.itemOne},zt.createElement("div",{className:Pn.item,style:{cursor:"auto"}},zt.createElement("span",null,"\u5BFC\u51FA\u5BF9\u8BDD"),zt.createElement("div",{className:Pn.itemTwo},sn.map(Hn=>zt.createElement("div",{key:Hn.key,onClick:()=>{gn(!1),ki(Hn)},className:Pn.item},Hn.label)))),ci?zt.createElement("div",{className:Pn.itemDisabled},"\u6062\u590D\u5BF9\u8BDD"):zt.createElement("div",{onClick:Hn=>{gn(!1),Dn(Hn)},className:Pn.item},"\u6062\u590D\u5BF9\u8BDD"),zt.createElement("div",{onClick:Hn=>{gn(!1),yi(Hn)},className:Pn.item},"\u6E05\u7A7A\u5BF9\u8BDD")))))},Xt=Kt(59301),Ve=Object.defineProperty,Vn=Object.getOwnPropertySymbols,si=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Nn=(Te,ci,ki)=>ci in Te?Ve(Te,ci,{enumerable:!0,configurable:!0,writable:!0,value:ki}):Te[ci]=ki,Yn=(Te,ci)=>{for(var ki in ci||(ci={}))si.call(ci,ki)&&Nn(Te,ki,ci[ki]);if(Vn)for(var ki of Vn(ci))An.call(ci,ki)&&Nn(Te,ki,ci[ki]);return Te},Ci=(Te,ci,ki)=>new Promise((Dn,yi)=>{var En=Xe=>{try{Ne(ki.next(Xe))}catch(wn){yi(wn)}},gn=Xe=>{try{Ne(ki.throw(Xe))}catch(wn){yi(wn)}},Ne=Xe=>Xe.done?Dn(Xe.value):Promise.resolve(Xe.value).then(En,gn);Ne((ki=ki.apply(Te,ci)).next())}),Ri=({})=>{var Te,ci,ki,Dn;const{id:yi,position:En}=(0,se.oP)(),[gn,Ne]=(0,zt.useState)(!0),[Xe,wn]=(0,zt.useState)(!1),sn=(0,zt.useRef)("bottomRight"),Wn=(0,zt.useRef)();let[Hn,Jt]=(0,zt.useState)({});const[It,bt]=(0,zt.useState)(Number(yi)),[Vt,le]=(0,zt.useState)([]),[Ot,be]=(0,zt.useState)(1),[pn,Zn]=(0,zt.useState)(Number(En)),ii=(0,zt.useRef)(Number(En)),[wi,Nr]=(0,zt.useState)([]),[_r,Tr]=(0,zt.useState)(!1),[po,To]=(0,zt.useState)(!0),Co=(0,zt.useRef)(null),Kr=(0,zt.useRef)(1),[gr,Wr]=(0,zt.useState)({});let[Vr,No]=(0,zt.useState)("");const[us,Os]=(0,zt.useState)(!1),[Ms,Fo]=(0,zt.useState)(!1),[jt]=(0,Nt.useSearchParams)();(0,zt.useEffect)(()=>((0,Nt.getDvaApp)()._store.dispatch({type:"globalSetting/footerToggle",payload:!1}),()=>{(0,Nt.getDvaApp)()._store.dispatch({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,zt.useEffect)(()=>{la()},[]),(0,zt.useEffect)(()=>{Co.current.scrollTop=Co.current.scrollHeight},[Ot]),(0,zt.useEffect)(()=>{const qe=document.getElementById("wechat_QR_code_ids");return qe.classList.add("hide"),()=>{qe.classList.remove("hide")}},[]);const la=()=>Ci(void 0,null,function*(){var qe,In;const ui=yield(0,ye.ZP)("/api/chats.json",{method:"post",body:{to_user_id:yi}});if((ui==null?void 0:ui.status)===0){const Pi=yield(0,ye.ZP)("/api/chats.json",{method:"get",params:{to_user_id:yi,challenge_id:Number(En)||""}});if(Pi!=null&&Pi.data){To(!1),le((Pi==null?void 0:Pi.data)||[]);const Fe=(In=(qe=Pi==null?void 0:Pi.data)==null?void 0:qe.find(Qn=>Qn.to_user_id===Number(yi)))==null?void 0:In.id;bt(Fe),fs(Fe),Ws(Fe,En)}}}),fs=qe=>Ci(void 0,null,function*(){const In=yield(0,ye.ZP)("/api/chats/challenge_list.json",{method:"get",params:{id:qe,challenge_id:pn||""}});In!=null&&In.challenges&&Nr([{id:0,subject:"\u5168\u90E8"},...In.challenges])}),vs=(qe,In)=>Ci(void 0,null,function*(){const ui=yield(0,ye.ZP)("/api/chats.json",{method:"get",params:{to_user_id:qe,challenge_id:In||""}});ui!=null&&ui.data&&le((ui==null?void 0:ui.data)||[]),To(!1)}),Ws=(qe,In,ui)=>Ci(void 0,null,function*(){var Pi;Ne(!0);const Fe=yield(0,ye.ZP)(`/api/chats/${qe}.json`,{method:"get",params:{challenge_id:Number(In)||""}});if(Fe!=null&&Fe.data){ui&&(Fe.data[Fe.data.length-1].open=!0),Wr(Yn({},Fe)||{}),Tr(!0),wn(!1);const Qn=(Pi=Vt==null?void 0:Vt.find(Ei=>Ei.id===qe))==null?void 0:Pi.to_user_id;window.location.host==="gpt.educoder.net"?jt.get("homeworkId")?Nt.history.replace(`/chatgpt?id=0&position=0&homeworkId=${jt.get("homeworkId")}`):Nt.history.replace("/chatgpt?id=0&position=0"):jt.get("homeworkId")?Nt.history.replace(`/chatgpt?id=${Qn||yi}&position=${In}&homeworkId=${jt.get("homeworkId")}`):Nt.history.replace(`/chatgpt?id=${Qn||yi}&position=${In}`),ui&&(be(Math.random()),vs(Qn,In))}Ne(!1)}),Fa=qe=>{var In;No(qe),(In=qe==null?void 0:qe.trim())==null||In.length},Sa=qe=>{Kr.current=Kr.current+1,bt(qe),Zn(0),No(""),wn(!1),Ws(qe,0),fs(qe)},Pr=()=>Ci(void 0,null,function*(){var qe;if(Vr.trim().length===0){ke.ZP.error("\u4E0D\u80FD\u8F93\u5165\u7EAF\u7A7A\u683C");return}if(!Vr){ke.ZP.warning("\u8BF7\u8F93\u5165\u4F60\u8981\u95EE\u7684\u95EE\u9898");return}wn(!0);const In=et()().format("YYYY-MM-DDTHH:mm:ss.SSSZ"),ui=Yn({},gr);(qe=ui==null?void 0:ui.data)==null||qe.push({id:0,updated_at:In,question:Vr,answer:Xt.createElement("div",{className:ge.animation},"\u8001\u5E08\u6B63\u5728\u56DE\u7B54\u4E2D\uFF0C\u8BF7\u7A0D\u540E")}),Wr(ui),be(Ot+1),No(""),Kr.current=Kr.current+1;const Pi=Kr.current,Fe=yield(0,ye.ZP)("/api/chats/get_answer",{method:"post",body:{chat_id:It,to_user_id:yi,question:Vr,challenge_id:pn||"",time:In}});Pi===Kr.current&&(Fe==null?void 0:Fe.status)===0&&Ws(It,pn,!0)}),Lr=()=>{Ws(It,pn),vs(yi,pn),Os(!1)},ln=(qe,In,ui="")=>Ci(void 0,null,function*(){Ne(!0);let Pi={};jt.get("homeworkId")?Pi={id:qe,satisfied:In,content:ui,homework_common_id:jt.get("homeworkId")}:Pi={id:qe,satisfied:In,content:ui};const Fe=yield(0,ye.ZP)("/api/chats/praise.json",{method:"post",body:Pi});(Fe==null?void 0:Fe.status)===0&&Ws(It,pn)}),nn=qe=>{qe.shiftKey&&qe.keyCode===13||qe.keyCode===13&&(qe.preventDefault(),Pr())},Ae=qe=>Ci(void 0,null,function*(){Oe.default.confirm({icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u8BE5\u95EE\u7B54\u5185\u5BB9\u8FDB\u884C\u5220\u9664\uFF1F",onOk:()=>Ci(void 0,null,function*(){(yield(0,ye.ZP)("/api/chats/delete_one.json",{method:"delete",body:{id:qe}})).status===0&&(ke.ZP.success("\u5220\u9664\u6210\u529F"),Ws(It,pn))})})}),Tn=()=>Ci(void 0,null,function*(){Ne(!0),Kr.current=Kr.current+1,(yield(0,ye.ZP)("/api/chats/stop_one.json",{method:"delete",body:{challenge_id:pn,id:It}})).status===0&&Ws(It,pn),Ne(!1)}),Jn=[`\u8BF7${gr==null?void 0:gr.user_name}\u8001\u5E08\u5C1D\u8BD5\u518D\u56DE\u7B54\u4E00\u6B21`,"\u53EF\u80FD\u542F\u7528\u4E86\u673A\u5668\u4EBA\uFF0C\u8BF7\u8001\u5E08\u4EB2\u81EA\u56DE\u7B54"],He=qe=>{Ye(gr,qe)},we=()=>{};return Xt.createElement("div",{className:ge.wrap},Xt.createElement("div",{className:ge.head},Xt.createElement("b",null,"\u5B9E\u8BAD >"),"\u6559\u5B66\u8F85\u5BFC\uFF08beta\u7248\u672C\uFF09"),Xt.createElement("div",{className:ge.content},Xt.createElement(Cn.Z,{spinning:po},Xt.createElement("div",{className:ge.left,onClick:()=>{Fo(!1)}},Xt.createElement("div",{className:ge.title},Xt.createElement("span",null,"\u95EE\u7B54\u5217\u8868"),Xt.createElement("div",{className:fn()(ge.add,Xe&&ge.disabledElement),onClick:()=>Ci(void 0,null,function*(){if(Xe)return;To(!0);const qe=yield(0,ye.ZP)("/api/chats.json",{method:"post",body:{to_user_id:yi,new_chat:!0}});if(qe.status===0){const In=qe==null?void 0:qe.id;if(In===It){ke.ZP.warning("\u5F53\u524D\u5DF2\u7ECF\u5728\u65B0\u5BF9\u8BDD\u7A97\u53E3"),To(!1);return}yield vs(-1,0),bt(In),Zn(0),yield Ws(In,0)}To(!1)})})),Xt.createElement("div",{className:ge.leftBar},Vt.map(qe=>Xt.createElement("div",{key:qe.id,onClick:()=>Sa(qe.id),className:`${ge.li} ${qe.id===It?ge.active:""}`},qe!=null&&qe.avatar?Xt.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/${qe==null?void 0:qe.avatar}`}):Xt.createElement("img",{src:nt}),Xt.createElement("aside",null,Xt.createElement("p",null,Xt.createElement("b",{title:qe.user_name},qe.user_name),Xt.createElement("span",null,qe.time)),Xt.createElement("div",null,qe.last_message))))))),Xt.createElement("div",{className:ge.right},_r&&Xt.createElement("div",{className:ge.title,onClick:()=>{Fo(!1)}},Xt.createElement("section",{className:ge.center},Xt.createElement("span",null,"\u4E0E",gr==null?void 0:gr.user_name,"\u8001\u5E08\u6C9F\u901A\u4E2D\u2026"),Xt.createElement("div",{className:ge.tabs},Xt.createElement("i",{className:"iconfont icon-lianjie3"}),Xt.createElement("span",null,"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A",gr!=null&&gr.challenge_name?`${(ci=(Te=gr==null?void 0:gr.data[0])==null?void 0:Te.shixun)==null?void 0:ci.name} \u5B9E\u8BAD---\u7B2C${gr==null?void 0:gr.challenge_position}\u5173`:"\u5168\u90E8"),Xt.createElement("span",{onClick:()=>{Xe||(ii.current=pn,Os(!0))},className:fn()(ge.cut,Xe&&ge.disabledElement)},"\u5207\u6362")),Xt.createElement(pe,{disabled:Xe,recoverDisabled:!(gr!=null&&gr.can_recycle),onFileType:He,onRecover:()=>Ci(void 0,null,function*(){Ne(!0),(yield(0,ye.ZP)("/api/chats/recycle.json",{method:"post",body:{challenge_id:pn,id:It}})).status===0&&(ke.ZP.success("\u6062\u590D\u5BF9\u8BDD\u6210\u529F"),vs(yi,pn),Ws(It,pn)),Ne(!1)}),onEmpty:()=>{Oe.default.confirm({icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u5F53\u524D\u5BF9\u8BDD\u7A97\u53E3\u4E2D\u7684\u5BF9\u8BDD\u5185\u5BB9\u5168\u90E8\u6E05\u7A7A\uFF1F",onOk:()=>Ci(void 0,null,function*(){(yield(0,ye.ZP)("/api/chats/clean.json",{method:"delete",body:{challenge_id:pn,id:It}})).status===0&&(ke.ZP.success("\u6E05\u7A7A\u5BF9\u8BDD\u6210\u529F"),vs(yi,pn),Ws(It,pn))})})}}))),Xt.createElement("div",{onClick:()=>{Fo(!1)},className:ge.rightBar,ref:Co},Xt.createElement(Cn.Z,{spinning:gn},!((ki=gr==null?void 0:gr.data)!=null&&ki.length)&&Xt.createElement("div",{className:ge.empty}),(Dn=gr==null?void 0:gr.data)==null?void 0:Dn.map((qe,In)=>{var ui,Pi,Fe;return Xt.createElement(zt.Fragment,{key:In},!!qe.question&&Xt.createElement("div",{className:ge.li},Xt.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/${gr==null?void 0:gr.my_avatar}`,style:{borderRadius:"50%",width:56,height:56}}),Xt.createElement("aside",null,Xt.createElement("p",null,Xt.createElement("b",null,gr.my_user_name),Xt.createElement("span",null,et()(qe.updated_at).format("YYYY-MM-DD HH:mm"))),Xt.createElement(at.Z,{value:qe.question}),Xt.createElement("div",{className:ge.action},Xt.createElement(ft.CopyToClipboard,{text:qe.question,onCopy:()=>ke.ZP.success("\u5185\u5BB9\u5DF2\u590D\u5236\u5230\u7C98\u8D34\u677F\u4E2D")},Xt.createElement("div",{className:ge.tagBtn},Xt.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236")),!Xe&&Xt.createElement("div",{onClick:()=>Ae(qe.id),className:ge.tagBtn},Xt.createElement("i",{className:"iconfont icon-shanchu8"}),"\u5220\u9664")))),!!qe.answer&&Xt.createElement("div",{style:In===0?{borderTop:0}:{},className:`${ge.li} ${ge.active}`},gr!=null&&gr.avatar?Xt.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/${gr==null?void 0:gr.avatar}`,style:{borderRadius:"50%",width:56,height:56}}):Xt.createElement("img",{src:nt,style:{borderRadius:"50%",width:56,height:56}}),Xt.createElement("aside",null,Xt.createElement("p",null,Xt.createElement("div",{style:{display:"flex"}},Xt.createElement("b",{style:{marginRight:"20px"}},gr.user_name),(ui=qe.shixun)!=null&&ui.name?Xt.createElement("span",{style:{display:"flex",alignItems:"center"}},"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A",(Pi=qe.shixun)==null?void 0:Pi.name," \u5B9E\u8BAD---\u7B2C",(Fe=qe.challenge)==null?void 0:Fe.position,"\u5173"):Xt.createElement("span",{style:{display:"flex",alignItems:"center"}},"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A\u5168\u90E8")),Xt.createElement("span",null,et()(qe.updated_at).format("YYYY-MM-DD HH:mm"))),qe.id===0?qe.answer:Xt.createElement(Ue,{onTextChange:we,open:!!(qe!=null&&qe.open),text:qe.answer}),qe.id===0&&Xt.createElement("div",{className:ge.action},Xt.createElement("div",{onClick:Tn,className:ge.tagBtn},Xt.createElement("i",{className:"iconfont icon-tingzhishengcheng"}),"\u505C\u6B62\u751F\u6210")),(qe==null?void 0:qe.id)!==0&&Xt.createElement("div",{className:ge.action},!!qe.question&&Xt.createElement(Xt.Fragment,null,Xt.createElement("div",{onClick:()=>{Vr=qe.question,Pr()},className:ge.tagBtn},Xt.createElement("i",{className:"iconfont icon-zhongxinshengcheng"}),"\u91CD\u65B0\u751F\u6210"),Xt.createElement(ft.CopyToClipboard,{text:qe.answer,onCopy:()=>ke.ZP.success("\u5185\u5BB9\u5DF2\u590D\u5236\u5230\u7C98\u8D34\u677F\u4E2D")},Xt.createElement("div",{className:ge.tagBtn},Xt.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236")),!Xe&&Xt.createElement("div",{onClick:()=>Ae(qe.id),className:ge.tagBtn},Xt.createElement("i",{className:"iconfont icon-shanchu8"}),"\u5220\u9664")),Xt.createElement("span",{style:{marginLeft:"auto"},onClick:()=>{ln(qe.id,qe.satisfied===1?-1:1)},className:`mr30 ${qe.satisfied===1?ge.actActive:""}`},Xt.createElement("i",{className:"iconfont icon-yijiejue"}),"\u5DF2\u89E3\u51B3"),Xt.createElement(Be.Z,{autoAdjustOverflow:!1,destroyTooltipOnHide:!0,open:Hn[In],getPopupContainer:Qn=>Qn,placement:sn.current,content:Xt.createElement("div",{className:ge.box,onMouseLeave:Qn=>{clearTimeout(Wn.current),Hn[In]=!1,Jt(Yn({},Hn))},onMouseOver:()=>{clearTimeout(Wn.current)}},Xt.createElement("p",null,"\u62B1\u6B49\u8BA9\u4F60\u5931\u671B\u4E86\uFF0C\u8BF7\u7EE7\u7EED\u5C1D\u8BD5\uFF1A"),Jn.map((Qn,Ei)=>{const Ar=Qn===qe.content;return Xt.createElement("div",{onClick:()=>{ln(qe.id,Ar?-1:0,Ar?"":Qn)},className:Ar?ge.hot:"",key:Qn},Qn)}))},Xt.createElement("span",{onMouseOver:Qn=>{clearTimeout(Wn.current),window.innerHeight-Qn.target.getBoundingClientRect().top<350?sn.current="topRight":sn.current="bottomRight",Hn={},Hn[In]=!0,Jt(Yn({},Hn))},onMouseOut:Qn=>{Wn.current=setTimeout(()=>{clearTimeout(Wn.current),Hn[In]=!1,Jt(Yn({},Hn))},800)},className:`${ge.unsolved} ${qe.satisfied===0?ge.actActive:""}`},Xt.createElement("i",{className:"iconfont icon-weijiejuezhengchang"}),"\u672A\u89E3\u51B3"))))))}))),_r&&Xt.createElement("div",{className:ge.answers},!Ms&&Xt.createElement("div",{className:ge.open_md,onClick:()=>{Fo(!0)}},"\u8BF7\u8F93\u5165\u4F60\u7684\u95EE\u9898"),Xt.createElement("div",{className:Ms?"md_container":"md_container hide",style:{marginTop:20}},Xt.createElement(ht.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Vr,height:240,width:1e3,onChange:Fa,className:ge.md_editor}),Xt.createElement("div",{className:ge.tip_container,style:{display:"flex"},onClick:()=>{Fo(!1)}},Xt.createElement("div",{className:ge.btn_send,onClick:Pr},"\u53D1\u9001")))))),Xt.createElement(Oe.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,onCancel:()=>{Zn(ii.current),Os(!1)},onOk:Lr,open:us,wrapClassName:me.Z.CustomCss,title:"\u66F4\u6362\u5173\u8054",width:"666px"},Xt.createElement("div",null,Xt.createElement(vn.ZP.Group,{value:pn,onChange:qe=>Zn(qe.target.value)},Xt.createElement(Ie.Z,{direction:"vertical"},wi==null?void 0:wi.map(qe=>{var In;return Xt.createElement(vn.ZP,{key:qe.id,value:qe.id},qe.id===0?qe.subject:`${(In=qe.shixun)==null?void 0:In.name} \u5B9E\u8BAD---\u7B2C${qe==null?void 0:qe.challenge_position}\u5173`)}))))))}},24768:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{AL:function(){return Mt},Iy:function(){return se},Qv:function(){return Ut},ez:function(){return vt},jb:function(){return oe}});var zt=Kt(32834),ke=Kt.n(zt),Oe=Kt(11690),Cn=Kt.n(Oe);let Be=1;function vn(ve,fe){const Ye=ve.match(/^(\s+)(?:```)/);if(Ye===null)return fe;const De=Ye[1];return fe.split(`
`).map(hn=>{const Ue=hn.match(/^\s+/);if(Ue===null)return hn;const[Pn]=Ue;return Pn.length>=De.length?hn.slice(De.length):hn}).join(`
`)}let Ie=[],ge=["<ul>"];const ye=new(ke()).Renderer,Nt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function se(){Ie.length=0,ge=["<ul>"]}const oe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function me(ve,fe,Ye,De){if(fe>=ve.length||ve[fe].level<=Ye)return fe;var hn=ve[fe];De.push("<li><a href='#"+Be+hn.anchor+"'>"+hn.text+"</a>"),fe++;var Ue=[];return fe=me(ve,fe,hn.level,Ue),Ue.length>0&&(De.push("<ul>"),Ue.forEach(function(Pn){De.push(Pn)}),De.push("</ul>")),De.push("</li>"),fe=me(ve,fe,Ye,De),fe}function Ut(){return me(Ie,0,0,ge),ge.push("</ul>"),ge.join("")}const et={heading(ve){const fe=Nt.exec(ve);if(Be+=1,fe)return{type:"heading",raw:fe[0],depth:fe[1].length,text:fe[2]}},fences(ve){const fe=this.rules.block.fences.exec(ve);if(fe){const Ye=fe[0];let De=vn(Ye,fe[3]||"");const hn=fe[2]?fe[2].trim():fe[2];if(["latex","katex","math"].indexOf(hn)>=0){const Ue=at(),Pn=De;De=Ue,ft[Ue]={type:"block",expression:Pn}}return{type:"code",raw:Ye,lang:hn,text:De}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const at=()=>`__special_katext_id_${ht++}__`;let ft={};function vt(){return ft}function Mt(){ht=0,ft={}}function Rt(ve){return ve=ve.replace(nt,(fe,Ye)=>{const De=at();return ft[De]={type:"inline",expression:Ye},De}),ve}const Gt=ye.listitem;ye.listitem=function(ve){return Gt(Rt(ve))};const $t=ye.paragraph;ye.paragraph=function(ve){return $t(Rt(ve))};const ae=ye.tablecell;ye.tablecell=function(ve,fe){return ae(Rt(ve),fe)},ye.code=function(ve,fe,Ye){const De=(fe||"").match(/\S*/)[0];return De?["latex","katex","math"].indexOf(De)>=0?`<p class='editormd-tex'>${ve}</p>`:`<pre class="prettyprint linenums"><code class="language-${fe}">${Ye?ve:(0,Oe.escape)(ve,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ye?ve:(0,Oe.escape)(ve,!0))+"</code></pre>"},ye.heading=function(ve,fe,Ye){let De=this.options.headerPrefix+Ye.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ie.push({anchor:De,level:fe,text:ve}),"<h"+fe+' id="'+Be+De+'">'+ve+"</h"+fe+">"},ke().setOptions({silent:!0,gfm:!0,pedantic:!1}),ke().use({tokenizer:et,renderer:ye}),Ti.ZP=ke()},77578:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return zt}});const zt=ke=>ke?typeof ke=="function"?ke():ke:null},56762:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ke}});var zt=Kt(59301);function ke(){const[,Oe]=zt.useReducer(Cn=>Cn+1,0);return Oe}},93891:function(Fi,Ti,Kt){"use strict";var zt=Kt(59301),ke=Kt(36355),Oe=Kt(64165);const Cn=Be=>{const{componentName:vn}=Be,{getPrefixCls:Ie}=(0,zt.useContext)(ke.E_),ge=Ie("empty");switch(vn){case"Table":case"List":return zt.createElement(Oe.Z,{image:Oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return zt.createElement(Oe.Z,{image:Oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${ge}-small`});default:return zt.createElement(Oe.Z,null)}};Ti.Z=Cn},91857:function(Fi,Ti,Kt){"use strict";var zt=Kt(59301),ke=Kt(38819),Oe=Kt(92310),Cn=Kt.n(Oe),Be=Kt(31561),vn=Kt(70425),Ie=Kt(18929),ge=Kt(2738),ye=Kt(79676),Nt=Kt(53487),se=Kt(92343),oe=Kt(36355),me=Kt(20834),Ut=Kt(40875),et=Kt(88088),nt=Kt(47211);const ht=null,at=Rt=>{const{menu:Gt,arrow:$t,prefixCls:ae,children:ve,trigger:fe,disabled:Ye,dropdownRender:De,getPopupContainer:hn,overlayClassName:Ue,rootClassName:Pn,open:qn,onOpenChange:un,visible:fn,onVisibleChange:mn,mouseEnterDelay:pe=.15,mouseLeaveDelay:Xt=.1,autoAdjustOverflow:Ve=!0,placement:Vn="",overlay:si,transitionName:An}=Rt,{getPopupContainer:Nn,getPrefixCls:Yn,direction:Ci}=zt.useContext(oe.E_),Mi=zt.useMemo(()=>{const bt=Yn();return An!==void 0?An:Vn.includes("top")?`${bt}-slide-down`:`${bt}-slide-up`},[Yn,Vn,An]),Ri=zt.useMemo(()=>Vn?Vn.includes("Center")?Vn.slice(0,Vn.indexOf("Center")):Vn:Ci==="rtl"?"bottomRight":"bottomLeft",[Vn,Ci]),Te=Yn("dropdown",ae),[ci,ki]=(0,nt.Z)(Te),[,Dn]=(0,et.Z)(),yi=zt.Children.only(ve),En=(0,se.Tm)(yi,{className:Cn()(`${Te}-trigger`,{[`${Te}-rtl`]:Ci==="rtl"},yi.props.className),disabled:Ye}),gn=Ye?[]:fe;let Ne;gn&&gn.includes("contextMenu")&&(Ne=!0);const[Xe,wn]=(0,Ie.Z)(!1,{value:qn!=null?qn:fn}),sn=(0,vn.useEvent)(bt=>{un==null||un(bt),mn==null||mn(bt),wn(bt)}),Wn=Cn()(Ue,Pn,ki,{[`${Te}-rtl`]:Ci==="rtl"}),Hn=(0,ye.Z)({arrowPointAtCenter:typeof $t=="object"&&$t.pointAtCenter,autoAdjustOverflow:Ve,offset:Dn.marginXXS,arrowWidth:$t?Dn.sizePopupArrow:0,borderRadius:Dn.borderRadius}),Jt=zt.useCallback(()=>{wn(!1)},[]),It=()=>{let bt;return Gt!=null&&Gt.items?bt=zt.createElement(me.default,Object.assign({},Gt)):typeof si=="function"?bt=si():bt=si,De&&(bt=De(bt)),bt=zt.Children.only(typeof bt=="string"?zt.createElement("span",null,bt):bt),zt.createElement(Ut.J,{prefixCls:`${Te}-menu`,expandIcon:zt.createElement("span",{className:`${Te}-menu-submenu-arrow`},zt.createElement(ke.Z,{className:`${Te}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Jt,validator:Vt=>{let{mode:le}=Vt}},bt)};return ci(zt.createElement(Be.Z,Object.assign({alignPoint:Ne},(0,ge.Z)(Rt,["rootClassName"]),{mouseEnterDelay:pe,mouseLeaveDelay:Xt,visible:Xe,builtinPlacements:Hn,arrow:!!$t,overlayClassName:Wn,prefixCls:Te,getPopupContainer:hn||Nn,transitionName:Mi,trigger:gn,overlay:It,placement:Ri,onVisibleChange:sn}),En))};function ft(Rt){return Object.assign(Object.assign({},Rt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const vt=(0,Nt.Z)(at,"dropdown",Rt=>Rt,ft),Mt=Rt=>zt.createElement(vt,Object.assign({},Rt),zt.createElement("span",null));at._InternalPanelDoNotUseOrYouWillBeFired=Mt,Ti.Z=at},38854:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return et}});var zt=Kt(91857),ke=Kt(92310),Oe=Kt.n(ke),Cn=Kt(59301),Be=Kt(18785),vn=Kt(3113),Ie=Kt(36355),ge=Kt(81327),ye=Kt(33234),Nt=Kt(47211),se=function(nt,ht){var at={};for(var ft in nt)Object.prototype.hasOwnProperty.call(nt,ft)&&ht.indexOf(ft)<0&&(at[ft]=nt[ft]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ft=Object.getOwnPropertySymbols(nt);vt<ft.length;vt++)ht.indexOf(ft[vt])<0&&Object.prototype.propertyIsEnumerable.call(nt,ft[vt])&&(at[ft[vt]]=nt[ft[vt]]);return at};const oe=nt=>{const{getPopupContainer:ht,getPrefixCls:at,direction:ft}=Cn.useContext(Ie.E_),{prefixCls:vt,type:Mt="default",danger:Rt,disabled:Gt,loading:$t,onClick:ae,htmlType:ve,children:fe,className:Ye,menu:De,arrow:hn,autoFocus:Ue,overlay:Pn,trigger:qn,align:un,open:fn,onOpenChange:mn,placement:pe,getPopupContainer:Xt,href:Ve,icon:Vn=Cn.createElement(Be.Z,null),title:si,buttonsRender:An=It=>It,mouseEnterDelay:Nn,mouseLeaveDelay:Yn,overlayClassName:Ci,overlayStyle:Mi,destroyPopupOnHide:Ri,dropdownRender:Te}=nt,ci=se(nt,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ki=at("dropdown",vt),Dn=`${ki}-button`,[yi,En]=(0,Nt.Z)(ki),gn={menu:De,arrow:hn,autoFocus:Ue,align:un,disabled:Gt,trigger:Gt?[]:qn,onOpenChange:mn,getPopupContainer:Xt||ht,mouseEnterDelay:Nn,mouseLeaveDelay:Yn,overlayClassName:Ci,overlayStyle:Mi,destroyPopupOnHide:Ri,dropdownRender:Te},{compactSize:Ne,compactItemClassnames:Xe}=(0,ye.ri)(ki,ft),wn=Oe()(Dn,Xe,Ye,En);"overlay"in nt&&(gn.overlay=Pn),"open"in nt&&(gn.open=fn),"placement"in nt?gn.placement=pe:gn.placement=ft==="rtl"?"bottomLeft":"bottomRight";const sn=Cn.createElement(vn.ZP,{type:Mt,danger:Rt,disabled:Gt,loading:$t,onClick:ae,htmlType:ve,href:Ve,title:si},fe),Wn=Cn.createElement(vn.ZP,{type:Mt,danger:Rt,icon:Vn}),[Hn,Jt]=An([sn,Wn]);return yi(Cn.createElement(ge.Z.Compact,Object.assign({className:wn,size:Ne,block:!0},ci),Hn,Cn.createElement(zt.Z,Object.assign({},gn),Jt)))};oe.__ANT_BUTTON=!0;var me=oe;const Ut=zt.Z;Ut.Button=me;var et=Ut},47211:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return se}});var zt=Kt(17313),ke=Kt(13826),Oe=Kt(92899),Cn=Kt(29878),Be=Kt(19447),vn=Kt(83116),Ie=Kt(37613),ye=oe=>{const{componentCls:me,menuCls:Ut,colorError:et,colorTextLightSolid:nt}=oe,ht=`${Ut}-item`;return{[`${me}, ${me}-menu-submenu`]:{[`${Ut} ${ht}`]:{[`&${ht}-danger:not(${ht}-disabled)`]:{color:et,"&:hover":{color:nt,backgroundColor:et}}}}}};const Nt=oe=>{const{componentCls:me,menuCls:Ut,zIndexPopup:et,dropdownArrowDistance:nt,sizePopupArrow:ht,antCls:at,iconCls:ft,motionDurationMid:vt,dropdownPaddingVertical:Mt,fontSize:Rt,dropdownEdgeChildPadding:Gt,colorTextDisabled:$t,fontSizeIcon:ae,controlPaddingHorizontal:ve,colorBgElevated:fe}=oe;return[{[me]:Object.assign(Object.assign({},(0,zt.Wf)(oe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-nt+ht/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${at}-btn`]:{[`& > ${ft}-down, & > ${at}-btn-icon > ${ft}-down`]:{fontSize:ae}},[`${me}-wrap`]:{position:"relative",[`${at}-btn > ${ft}-down`]:{fontSize:ae},[`${ft}-down::before`]:{transition:`transform ${vt}`}},[`${me}-wrap-open`]:{[`${ft}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${at}-slide-down-enter${at}-slide-down-enter-active${me}-placement-bottomLeft,
&${at}-slide-down-appear${at}-slide-down-appear-active${me}-placement-bottomLeft,
&${at}-slide-down-enter${at}-slide-down-enter-active${me}-placement-bottom,
&${at}-slide-down-appear${at}-slide-down-appear-active${me}-placement-bottom,
&${at}-slide-down-enter${at}-slide-down-enter-active${me}-placement-bottomRight,
&${at}-slide-down-appear${at}-slide-down-appear-active${me}-placement-bottomRight`]:{animationName:ke.fJ},[`&${at}-slide-up-enter${at}-slide-up-enter-active${me}-placement-topLeft,
&${at}-slide-up-appear${at}-slide-up-appear-active${me}-placement-topLeft,
&${at}-slide-up-enter${at}-slide-up-enter-active${me}-placement-top,
&${at}-slide-up-appear${at}-slide-up-appear-active${me}-placement-top,
&${at}-slide-up-enter${at}-slide-up-enter-active${me}-placement-topRight,
&${at}-slide-up-appear${at}-slide-up-appear-active${me}-placement-topRight`]:{animationName:ke.Qt},[`&${at}-slide-down-leave${at}-slide-down-leave-active${me}-placement-bottomLeft,
&${at}-slide-down-leave${at}-slide-down-leave-active${me}-placement-bottom,
&${at}-slide-down-leave${at}-slide-down-leave-active${me}-placement-bottomRight`]:{animationName:ke.Uw},[`&${at}-slide-up-leave${at}-slide-up-leave-active${me}-placement-topLeft,
&${at}-slide-up-leave${at}-slide-up-leave-active${me}-placement-top,
&${at}-slide-up-leave${at}-slide-up-leave-active${me}-placement-topRight`]:{animationName:ke.ly}})},(0,Be.ZP)(oe,{colorBg:fe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${me} ${Ut}`]:{position:"relative",margin:0},[`${Ut}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${me}, ${me}-menu-submenu`]:{[Ut]:Object.assign(Object.assign({padding:Gt,listStyleType:"none",backgroundColor:fe,backgroundClip:"padding-box",borderRadius:oe.borderRadiusLG,outline:"none",boxShadow:oe.boxShadowSecondary},(0,zt.Qy)(oe)),{[`${Ut}-item-group-title`]:{padding:`${Mt}px ${ve}px`,color:oe.colorTextDescription,transition:`all ${vt}`},[`${Ut}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ut}-item-icon`]:{minWidth:Rt,marginInlineEnd:oe.marginXS,fontSize:oe.fontSizeSM},[`${Ut}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${vt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ut}-item, ${Ut}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Mt}px ${ve}px`,color:oe.colorText,fontWeight:"normal",fontSize:Rt,lineHeight:oe.lineHeight,cursor:"pointer",transition:`all ${vt}`,borderRadius:oe.borderRadiusSM,"&:hover, &-active":{backgroundColor:oe.controlItemBgHover}},(0,zt.Qy)(oe)),{"&-selected":{color:oe.colorPrimary,backgroundColor:oe.controlItemBgActive,"&:hover, &-active":{backgroundColor:oe.controlItemBgActiveHover}},"&-disabled":{color:$t,cursor:"not-allowed","&:hover":{color:$t,backgroundColor:fe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${oe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:oe.colorSplit},[`${me}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:oe.paddingXS,[`${me}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:oe.colorTextDescription,fontSize:ae,fontStyle:"normal"}}}),[`${Ut}-item-group-list`]:{margin:`0 ${oe.marginXS}px`,padding:0,listStyle:"none"},[`${Ut}-submenu-title`]:{paddingInlineEnd:ve+oe.fontSizeSM},[`${Ut}-submenu-vertical`]:{position:"relative"},[`${Ut}-submenu${Ut}-submenu-disabled ${me}-menu-submenu-title`]:{[`&, ${me}-menu-submenu-arrow-icon`]:{color:$t,backgroundColor:fe,cursor:"not-allowed"}},[`${Ut}-submenu-selected ${me}-menu-submenu-title`]:{color:oe.colorPrimary}})}},[(0,ke.oN)(oe,"slide-up"),(0,ke.oN)(oe,"slide-down"),(0,Oe.Fm)(oe,"move-up"),(0,Oe.Fm)(oe,"move-down"),(0,Cn._y)(oe,"zoom-big")]]};var se=(0,vn.Z)("Dropdown",(oe,me)=>{let{rootPrefixCls:Ut}=me;const{marginXXS:et,sizePopupArrow:nt,controlHeight:ht,fontSize:at,lineHeight:ft,paddingXXS:vt,componentCls:Mt,borderRadiusLG:Rt}=oe,Gt=(ht-at*ft)/2,{dropdownArrowOffset:$t}=(0,Be.fS)({contentRadius:Rt}),ae=(0,Ie.TS)(oe,{menuCls:`${Mt}-menu`,rootPrefixCls:Ut,dropdownArrowDistance:nt/2+et,dropdownArrowOffset:$t,dropdownPaddingVertical:Gt,dropdownEdgeChildPadding:vt});return[Nt(ae),ye(ae)]},oe=>({zIndexPopup:oe.zIndexPopupBase+50}))},64165:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return vt}});var zt=Kt(92310),ke=Kt.n(zt),Oe=Kt(59301),Cn=Kt(36355),Be=Kt(9763),vn=Kt(64993),Ie=Kt(88088),ye=()=>{const[,Mt]=(0,Ie.Z)(),Gt=new vn.C(Mt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Oe.createElement("svg",{style:Gt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Oe.createElement("g",{fill:"none",fillRule:"evenodd"},Oe.createElement("g",{transform:"translate(24 31.67)"},Oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Oe.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),Oe.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Oe.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),Oe.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),Oe.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),Oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},se=()=>{const[,Mt]=(0,Ie.Z)(),{colorFill:Rt,colorFillTertiary:Gt,colorFillQuaternary:$t,colorBgContainer:ae}=Mt,{borderColor:ve,shadowColor:fe,contentColor:Ye}=(0,Oe.useMemo)(()=>({borderColor:new vn.C(Rt).onBackground(ae).toHexShortString(),shadowColor:new vn.C(Gt).onBackground(ae).toHexShortString(),contentColor:new vn.C($t).onBackground(ae).toHexShortString()}),[Rt,Gt,$t,ae]);return Oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Oe.createElement("ellipse",{fill:fe,cx:"32",cy:"33",rx:"32",ry:"7"}),Oe.createElement("g",{fillRule:"nonzero",stroke:ve},Oe.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),Oe.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ye}))))},oe=Kt(83116),me=Kt(37613);const Ut=Mt=>{const{componentCls:Rt,margin:Gt,marginXS:$t,marginXL:ae,fontSize:ve,lineHeight:fe}=Mt;return{[Rt]:{marginInline:$t,fontSize:ve,lineHeight:fe,textAlign:"center",[`${Rt}-image`]:{height:Mt.emptyImgHeight,marginBottom:$t,opacity:Mt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Rt}-description`]:{color:Mt.colorText},[`${Rt}-footer`]:{marginTop:Gt},"&-normal":{marginBlock:ae,color:Mt.colorTextDisabled,[`${Rt}-description`]:{color:Mt.colorTextDisabled},[`${Rt}-image`]:{height:Mt.emptyImgHeightMD}},"&-small":{marginBlock:$t,color:Mt.colorTextDisabled,[`${Rt}-image`]:{height:Mt.emptyImgHeightSM}}}}};var et=(0,oe.Z)("Empty",Mt=>{const{componentCls:Rt,controlHeightLG:Gt}=Mt,$t=(0,me.TS)(Mt,{emptyImgCls:`${Rt}-img`,emptyImgHeight:Gt*2.5,emptyImgHeightMD:Gt,emptyImgHeightSM:Gt*.875});return[Ut($t)]}),nt=function(Mt,Rt){var Gt={};for(var $t in Mt)Object.prototype.hasOwnProperty.call(Mt,$t)&&Rt.indexOf($t)<0&&(Gt[$t]=Mt[$t]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,$t=Object.getOwnPropertySymbols(Mt);ae<$t.length;ae++)Rt.indexOf($t[ae])<0&&Object.prototype.propertyIsEnumerable.call(Mt,$t[ae])&&(Gt[$t[ae]]=Mt[$t[ae]]);return Gt};const ht=Oe.createElement(ye,null),at=Oe.createElement(se,null),ft=Mt=>{var{className:Rt,rootClassName:Gt,prefixCls:$t,image:ae=ht,description:ve,children:fe,imageStyle:Ye,style:De}=Mt,hn=nt(Mt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ue,direction:Pn,empty:qn}=Oe.useContext(Cn.E_),un=Ue("empty",$t),[fn,mn]=et(un),[pe]=(0,Be.Z)("Empty"),Xt=typeof ve!="undefined"?ve:pe==null?void 0:pe.description,Ve=typeof Xt=="string"?Xt:"empty";let Vn=null;return typeof ae=="string"?Vn=Oe.createElement("img",{alt:Ve,src:ae}):Vn=ae,fn(Oe.createElement("div",Object.assign({className:ke()(mn,un,qn==null?void 0:qn.className,{[`${un}-normal`]:ae===at,[`${un}-rtl`]:Pn==="rtl"},Rt,Gt),style:Object.assign(Object.assign({},qn==null?void 0:qn.style),De)},hn),Oe.createElement("div",{className:`${un}-image`,style:Ye},Vn),Xt&&Oe.createElement("div",{className:`${un}-description`},Xt),fe&&Oe.createElement("div",{className:`${un}-footer`},fe)))};ft.PRESENTED_IMAGE_DEFAULT=ht,ft.PRESENTED_IMAGE_SIMPLE=at;var vt=ft},78241:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{default:function(){return nn}});var zt=Kt(19127),ke=Kt(92310),Oe=Kt.n(ke),Cn=Kt(77900),Be=Kt(59301),vn=Kt(62892),Ie=Kt(32441);function ge(Ae){const[Tn,Jn]=Be.useState(Ae);return Be.useEffect(()=>{const He=setTimeout(()=>{Jn(Ae)},Ae.length?0:10);return()=>{clearTimeout(He)}},[Ae]),Tn}var ye=Kt(17313),Nt=Kt(29878),se=Kt(8378),oe=Kt(37613),me=Kt(83116),et=Ae=>{const{componentCls:Tn}=Ae,Jn=`${Tn}-show-help`,He=`${Tn}-show-help-item`;return{[Jn]:{transition:`opacity ${Ae.motionDurationSlow} ${Ae.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[He]:{overflow:"hidden",transition:`height ${Ae.motionDurationSlow} ${Ae.motionEaseInOut},
opacity ${Ae.motionDurationSlow} ${Ae.motionEaseInOut},
transform ${Ae.motionDurationSlow} ${Ae.motionEaseInOut} !important`,[`&${He}-appear, &${He}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${He}-leave-active`]:{transform:"translateY(-5px)"}}}}};const nt=Ae=>({legend:{display:"block",width:"100%",marginBottom:Ae.marginLG,padding:0,color:Ae.colorTextDescription,fontSize:Ae.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`},label:{fontSize:Ae.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ae.controlOutlineWidth}px ${Ae.controlOutline}`},output:{display:"block",paddingTop:15,color:Ae.colorText,fontSize:Ae.fontSize,lineHeight:Ae.lineHeight}}),ht=(Ae,Tn)=>{const{formItemCls:Jn}=Ae;return{[Jn]:{[`${Jn}-label > label`]:{height:Tn},[`${Jn}-control-input`]:{minHeight:Tn}}}},at=Ae=>{const{componentCls:Tn}=Ae;return{[Ae.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(Ae)),nt(Ae)),{[`${Tn}-text`]:{display:"inline-block",paddingInlineEnd:Ae.paddingSM},"&-small":Object.assign({},ht(Ae,Ae.controlHeightSM)),"&-large":Object.assign({},ht(Ae,Ae.controlHeightLG))})}},ft=Ae=>{const{formItemCls:Tn,iconCls:Jn,componentCls:He,rootPrefixCls:we,labelRequiredMarkColor:qe,labelColor:In,labelFontSize:ui,labelHeight:Pi,labelColonMarginInlineStart:Fe,labelColonMarginInlineEnd:Qn,itemMarginBottom:Ei}=Ae;return{[Tn]:Object.assign(Object.assign({},(0,ye.Wf)(Ae)),{marginBottom:Ei,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${we}-row`]:{display:"none"},"&-has-warning":{[`${Tn}-split`]:{color:Ae.colorError}},"&-has-error":{[`${Tn}-split`]:{color:Ae.colorWarning}},[`${Tn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ae.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Pi,color:In,fontSize:ui,[`> ${Jn}`]:{fontSize:Ae.fontSize,verticalAlign:"top"},[`&${Tn}-required:not(${Tn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ae.marginXXS,color:qe,fontSize:Ae.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${He}-hide-required-mark &`]:{display:"none"}},[`${Tn}-optional`]:{display:"inline-block",marginInlineStart:Ae.marginXXS,color:Ae.colorTextDescription,[`${He}-hide-required-mark &`]:{display:"none"}},[`${Tn}-tooltip`]:{color:Ae.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ae.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Fe,marginInlineEnd:Qn},[`&${Tn}-no-colon::after`]:{content:'"\\a0"'}}},[`${Tn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${we}-col-'"]):not([class*="' ${we}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ae.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Tn]:{"&-explain, &-extra":{clear:"both",color:Ae.colorTextDescription,fontSize:Ae.fontSize,lineHeight:Ae.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ae.controlHeightSM,transition:`color ${Ae.motionDurationMid} ${Ae.motionEaseOut}`},"&-explain":{"&-error":{color:Ae.colorError},"&-warning":{color:Ae.colorWarning}}},[`&-with-help ${Tn}-explain`]:{height:"auto",opacity:1},[`${Tn}-feedback-icon`]:{fontSize:Ae.fontSize,textAlign:"center",visibility:"visible",animationName:Nt.kr,animationDuration:Ae.motionDurationMid,animationTimingFunction:Ae.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ae.colorSuccess},"&-error":{color:Ae.colorError},"&-warning":{color:Ae.colorWarning},"&-validating":{color:Ae.colorPrimary}}})}},vt=Ae=>{const{componentCls:Tn,formItemCls:Jn}=Ae;return{[`${Tn}-horizontal`]:{[`${Jn}-label`]:{flexGrow:0},[`${Jn}-control`]:{flex:"1 1 0",minWidth:0},[`${Jn}-label[class$='-24'], ${Jn}-label[class*='-24 ']`]:{[`& + ${Jn}-control`]:{minWidth:"unset"}}}}},Mt=Ae=>{const{componentCls:Tn,formItemCls:Jn}=Ae;return{[`${Tn}-inline`]:{display:"flex",flexWrap:"wrap",[Jn]:{flex:"none",marginInlineEnd:Ae.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Jn}-label,
> ${Jn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Jn}-label`]:{flex:"none"},[`${Tn}-text`]:{display:"inline-block"},[`${Jn}-has-feedback`]:{display:"inline-block"}}}}},Rt=Ae=>({padding:Ae.verticalLabelPadding,margin:Ae.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Gt=Ae=>{const{componentCls:Tn,formItemCls:Jn,rootPrefixCls:He}=Ae;return{[`${Jn} ${Jn}-label`]:Rt(Ae),[Tn]:{[Jn]:{flexWrap:"wrap",[`${Jn}-label, ${Jn}-control`]:{[`&:not([class*=" ${He}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},$t=Ae=>{const{componentCls:Tn,formItemCls:Jn,rootPrefixCls:He}=Ae;return{[`${Tn}-vertical`]:{[Jn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Tn}-item-control`]:{width:"100%"}}},[`${Tn}-vertical ${Jn}-label,
.${He}-col-24${Jn}-label,
.${He}-col-xl-24${Jn}-label`]:Rt(Ae),[`@media (max-width: ${Ae.screenXSMax}px)`]:[Gt(Ae),{[Tn]:{[`.${He}-col-xs-24${Jn}-label`]:Rt(Ae)}}],[`@media (max-width: ${Ae.screenSMMax}px)`]:{[Tn]:{[`.${He}-col-sm-24${Jn}-label`]:Rt(Ae)}},[`@media (max-width: ${Ae.screenMDMax}px)`]:{[Tn]:{[`.${He}-col-md-24${Jn}-label`]:Rt(Ae)}},[`@media (max-width: ${Ae.screenLGMax}px)`]:{[Tn]:{[`.${He}-col-lg-24${Jn}-label`]:Rt(Ae)}}}},ae=(Ae,Tn)=>(0,oe.TS)(Ae,{formItemCls:`${Ae.componentCls}-item`,rootPrefixCls:Tn});var ve=(0,me.Z)("Form",(Ae,Tn)=>{let{rootPrefixCls:Jn}=Tn;const He=ae(Ae,Jn);return[at(He),ft(He),et(He),vt(He),Mt(He),$t(He),(0,se.Z)(He),Nt.kr]},Ae=>({labelRequiredMarkColor:Ae.colorError,labelColor:Ae.colorTextHeading,labelFontSize:Ae.fontSize,labelHeight:Ae.controlHeight,labelColonMarginInlineStart:Ae.marginXXS/2,labelColonMarginInlineEnd:Ae.marginXS,itemMarginBottom:Ae.marginLG,verticalLabelPadding:`0 0 ${Ae.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const fe=[];function Ye(Ae,Tn,Jn){let He=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ae=="string"?Ae:`${Tn}-${He}`,error:Ae,errorStatus:Jn}}var hn=Ae=>{let{help:Tn,helpStatus:Jn,errors:He=fe,warnings:we=fe,className:qe,fieldId:In,onVisibleChanged:ui}=Ae;const{prefixCls:Pi}=Be.useContext(Ie.Rk),Fe=`${Pi}-item-explain`,[,Qn]=ve(Pi),Ei=(0,Be.useMemo)(()=>(0,vn.Z)(Pi),[Pi]),Ar=ge(He),Sn=ge(we),$n=Be.useMemo(()=>Tn!=null?[Ye(Tn,"help",Jn)]:[].concat((0,zt.Z)(Ar.map((dr,Dr)=>Ye(dr,"error","error",Dr))),(0,zt.Z)(Sn.map((dr,Dr)=>Ye(dr,"warning","warning",Dr)))),[Tn,Jn,Ar,Sn]),xr={};return In&&(xr.id=`${In}_help`),Be.createElement(Cn.default,{motionDeadline:Ei.motionDeadline,motionName:`${Pi}-show-help`,visible:!!$n.length,onVisibleChanged:ui},dr=>{const{className:Dr,style:tr}=dr;return Be.createElement("div",Object.assign({},xr,{className:Oe()(Fe,Dr,qe,Qn),style:tr,role:"alert"}),Be.createElement(Cn.CSSMotionList,Object.assign({keys:$n},(0,vn.Z)(Pi),{motionName:`${Pi}-show-help-item`,component:!1}),vr=>{const{key:ur,error:kr,errorStatus:Ao,className:Oo,style:Kn}=vr;return Be.createElement("div",{key:ur,className:Oe()(Oo,{[`${Fe}-${Ao}`]:Ao}),style:Kn},kr)}))})},Ue=Kt(95013),Pn=Kt(36355),qn=Kt(1684),un=Kt(52946),fn=Kt(19716),mn=Kt(16722);const pe=["parentNode"],Xt="form_item";function Ve(Ae){return Ae===void 0||Ae===!1?[]:Array.isArray(Ae)?Ae:[Ae]}function Vn(Ae,Tn){if(!Ae.length)return;const Jn=Ae.join("_");return Tn?`${Tn}_${Jn}`:pe.includes(Jn)?`${Xt}_${Jn}`:Jn}function si(Ae,Tn,Jn,He,we,qe){let In=He;return qe!==void 0?In=qe:Jn.validating?In="validating":Ae.length?In="error":Tn.length?In="warning":(Jn.touched||we&&Jn.validated)&&(In="success"),In}function An(Ae){return Ve(Ae).join("_")}function Nn(Ae){const[Tn]=(0,Ue.useForm)(),Jn=Be.useRef({}),He=Be.useMemo(()=>Ae!=null?Ae:Object.assign(Object.assign({},Tn),{__INTERNAL__:{itemRef:we=>qe=>{const In=An(we);qe?Jn.current[In]=qe:delete Jn.current[In]}},scrollToField:function(we){let qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const In=Ve(we),ui=Vn(In,He.__INTERNAL__.name),Pi=ui?document.getElementById(ui):null;Pi&&(0,mn.Z)(Pi,Object.assign({scrollMode:"if-needed",block:"nearest"},qe))},getFieldInstance:we=>{const qe=An(we);return Jn.current[qe]}}),[Ae,Tn]);return[He]}var Yn=Kt(28726),Ci=function(Ae,Tn){var Jn={};for(var He in Ae)Object.prototype.hasOwnProperty.call(Ae,He)&&Tn.indexOf(He)<0&&(Jn[He]=Ae[He]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,He=Object.getOwnPropertySymbols(Ae);we<He.length;we++)Tn.indexOf(He[we])<0&&Object.prototype.propertyIsEnumerable.call(Ae,He[we])&&(Jn[He[we]]=Ae[He[we]]);return Jn};const Mi=(Ae,Tn)=>{const Jn=Be.useContext(qn.Z),{getPrefixCls:He,direction:we,form:qe}=Be.useContext(Pn.E_),{prefixCls:In,className:ui,rootClassName:Pi,size:Fe,disabled:Qn=Jn,form:Ei,colon:Ar,labelAlign:Sn,labelWrap:$n,labelCol:xr,wrapperCol:dr,hideRequiredMark:Dr,layout:tr="horizontal",scrollToFirstError:vr,requiredMark:ur,onFinishFailed:kr,name:Ao,style:Oo,feedbackIcons:Kn}=Ae,Vo=Ci(Ae,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),rs=(0,fn.Z)(Fe),Po=Be.useContext(Yn.Z),zn=(0,Be.useMemo)(()=>ur!==void 0?ur:qe&&qe.requiredMark!==void 0?qe.requiredMark:!Dr,[Dr,ur,qe]),Hi=Ar!=null?Ar:qe==null?void 0:qe.colon,pr=He("form",In),[jr,Ir]=ve(pr),co=Oe()(pr,`${pr}-${tr}`,{[`${pr}-hide-required-mark`]:zn===!1,[`${pr}-rtl`]:we==="rtl",[`${pr}-${rs}`]:rs},Ir,qe==null?void 0:qe.className,ui,Pi),[Io]=Nn(Ei),{__INTERNAL__:oo}=Io;oo.name=Ao;const eo=(0,Be.useMemo)(()=>({name:Ao,labelAlign:Sn,labelCol:xr,labelWrap:$n,wrapperCol:dr,vertical:tr==="vertical",colon:Hi,requiredMark:zn,itemRef:oo.itemRef,form:Io,feedbackIcons:Kn}),[Ao,Sn,xr,dr,tr,Hi,zn,Io,Kn]);Be.useImperativeHandle(Tn,()=>Io);const Br=(vo,ei)=>{if(vo){let Qo={block:"nearest"};typeof vo=="object"&&(Qo=vo),Io.scrollToField(ei,Qo)}},ai=vo=>{if(kr==null||kr(vo),vo.errorFields.length){const ei=vo.errorFields[0].name;if(vr!==void 0){Br(vr,ei);return}qe&&qe.scrollToFirstError!==void 0&&Br(qe.scrollToFirstError,ei)}};return jr(Be.createElement(qn.n,{disabled:Qn},Be.createElement(un.q,{size:rs},Be.createElement(Ie.RV,Object.assign({},{validateMessages:Po}),Be.createElement(Ie.q3.Provider,{value:eo},Be.createElement(Ue.default,Object.assign({id:Ao},Vo,{name:Ao,onFinishFailed:ai,form:Io,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Oo),className:co})))))))};var Te=Be.forwardRef(Mi),ci=Kt(41799),ki=Kt(8654),Dn=Kt(92343),yi=Kt(11592);function En(Ae){if(typeof Ae=="function")return Ae;const Tn=(0,yi.Z)(Ae);return Tn.length<=1?Tn[0]:Tn}const gn=()=>{const{status:Ae,errors:Tn=[],warnings:Jn=[]}=(0,Be.useContext)(Ie.aM);return{status:Ae,errors:Tn,warnings:Jn}};gn.Context=Ie.aM;var Ne=gn,Xe=Kt(16089);function wn(Ae){const[Tn,Jn]=Be.useState(Ae),He=(0,Be.useRef)(null),we=(0,Be.useRef)([]),qe=(0,Be.useRef)(!1);Be.useEffect(()=>(qe.current=!1,()=>{qe.current=!0,Xe.Z.cancel(He.current),He.current=null}),[]);function In(ui){qe.current||(He.current===null&&(we.current=[],He.current=(0,Xe.Z)(()=>{He.current=null,Jn(Pi=>{let Fe=Pi;return we.current.forEach(Qn=>{Fe=Qn(Fe)}),Fe})})),we.current.push(ui))}return[Tn,In]}function sn(){const{itemRef:Ae}=Be.useContext(Ie.q3),Tn=Be.useRef({});function Jn(He,we){const qe=we&&typeof we=="object"&&we.ref,In=He.join("_");return(Tn.current.name!==In||Tn.current.originRef!==qe)&&(Tn.current.name=In,Tn.current.originRef=qe,Tn.current.ref=(0,ki.sQ)(Ae(He),qe)),Tn.current.ref}return Jn}var Wn=Kt(29194),Hn=Kt(34280),Jt=Kt(2738),It=Kt(27382),bt=Kt(37028);const Vt=Ae=>{const{formItemCls:Tn}=Ae;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Tn}-control`]:{display:"flex"}}}};var le=(0,me.b)(["Form","item-item"],(Ae,Tn)=>{let{rootPrefixCls:Jn}=Tn;const He=ae(Ae,Jn);return[Vt(He)]}),be=Ae=>{const{prefixCls:Tn,status:Jn,wrapperCol:He,children:we,errors:qe,warnings:In,_internalItemRender:ui,extra:Pi,help:Fe,fieldId:Qn,marginBottom:Ei,onErrorVisibleChanged:Ar}=Ae,Sn=`${Tn}-item`,$n=Be.useContext(Ie.q3),xr=He||$n.wrapperCol||{},dr=Oe()(`${Sn}-control`,xr.className),Dr=Be.useMemo(()=>Object.assign({},$n),[$n]);delete Dr.labelCol,delete Dr.wrapperCol;const tr=Be.createElement("div",{className:`${Sn}-control-input`},Be.createElement("div",{className:`${Sn}-control-input-content`},we)),vr=Be.useMemo(()=>({prefixCls:Tn,status:Jn}),[Tn,Jn]),ur=Ei!==null||qe.length||In.length?Be.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Be.createElement(Ie.Rk.Provider,{value:vr},Be.createElement(hn,{fieldId:Qn,errors:qe,warnings:In,help:Fe,helpStatus:Jn,className:`${Sn}-explain-connected`,onVisibleChanged:Ar})),!!Ei&&Be.createElement("div",{style:{width:0,height:Ei}})):null,kr={};Qn&&(kr.id=`${Qn}_extra`);const Ao=Pi?Be.createElement("div",Object.assign({},kr,{className:`${Sn}-extra`}),Pi):null,Oo=ui&&ui.mark==="pro_table_render"&&ui.render?ui.render(Ae,{input:tr,errorList:ur,extra:Ao}):Be.createElement(Be.Fragment,null,tr,ur,Ao);return Be.createElement(Ie.q3.Provider,{value:Dr},Be.createElement(bt.Z,Object.assign({},xr,{className:dr}),Oo),Be.createElement(le,{prefixCls:Tn}))},pn=Kt(61485),Zn=Kt(31724),ii=Kt(9763),wi=Kt(6848),Nr=function(Ae,Tn){var Jn={};for(var He in Ae)Object.prototype.hasOwnProperty.call(Ae,He)&&Tn.indexOf(He)<0&&(Jn[He]=Ae[He]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,He=Object.getOwnPropertySymbols(Ae);we<He.length;we++)Tn.indexOf(He[we])<0&&Object.prototype.propertyIsEnumerable.call(Ae,He[we])&&(Jn[He[we]]=Ae[He[we]]);return Jn};function _r(Ae){return Ae?typeof Ae=="object"&&!Be.isValidElement(Ae)?Ae:{title:Ae}:null}var po=Ae=>{let{prefixCls:Tn,label:Jn,htmlFor:He,labelCol:we,labelAlign:qe,colon:In,required:ui,requiredMark:Pi,tooltip:Fe}=Ae;var Qn;const[Ei]=(0,ii.Z)("Form"),{vertical:Ar,labelAlign:Sn,labelCol:$n,labelWrap:xr,colon:dr}=Be.useContext(Ie.q3);if(!Jn)return null;const Dr=we||$n||{},tr=qe||Sn,vr=`${Tn}-item-label`,ur=Oe()(vr,tr==="left"&&`${vr}-left`,Dr.className,{[`${vr}-wrap`]:!!xr});let kr=Jn;const Ao=In===!0||dr!==!1&&In!==!1;Ao&&!Ar&&typeof Jn=="string"&&Jn.trim()!==""&&(kr=Jn.replace(/[:|]\s*$/,""));const Kn=_r(Fe);if(Kn){const{icon:zn=Be.createElement(pn.Z,null)}=Kn,Hi=Nr(Kn,["icon"]),pr=Be.createElement(wi.Z,Object.assign({},Hi),Be.cloneElement(zn,{className:`${Tn}-item-tooltip`,title:""}));kr=Be.createElement(Be.Fragment,null,kr,pr)}const Vo=Pi==="optional",rs=typeof Pi=="function";rs?kr=Pi(kr,{required:!!ui}):Vo&&!ui&&(kr=Be.createElement(Be.Fragment,null,kr,Be.createElement("span",{className:`${Tn}-item-optional`,title:""},(Ei==null?void 0:Ei.optional)||((Qn=Zn.Z.Form)===null||Qn===void 0?void 0:Qn.optional))));const Po=Oe()({[`${Tn}-item-required`]:ui,[`${Tn}-item-required-mark-optional`]:Vo||rs,[`${Tn}-item-no-colon`]:!Ao});return Be.createElement(bt.Z,Object.assign({},Dr,{className:ur}),Be.createElement("label",{htmlFor:He,className:Po,title:typeof Jn=="string"?Jn:""},kr))},To=Kt(29679),Co=Kt(19248),Kr=Kt(96512),gr=Kt(58617);const Wr={success:To.Z,warning:Kr.Z,error:Co.Z,validating:gr.Z};function Vr(Ae){let{children:Tn,errors:Jn,warnings:He,hasFeedback:we,validateStatus:qe,prefixCls:In,meta:ui,noStyle:Pi}=Ae;const Fe=`${In}-item`,{feedbackIcons:Qn}=Be.useContext(Ie.q3),Ei=si(Jn,He,ui,null,!!we,qe),{isFormItemInput:Ar,status:Sn}=Be.useContext(Ie.aM),$n=Be.useMemo(()=>{var xr;let dr;if(we){const vr=we!==!0&&we.icons||Qn,ur=Ei&&((xr=vr==null?void 0:vr({status:Ei,errors:Jn,warnings:He}))===null||xr===void 0?void 0:xr[Ei]),kr=Ei&&Wr[Ei];dr=ur!==!1&&kr?Be.createElement("span",{className:Oe()(`${Fe}-feedback-icon`,`${Fe}-feedback-icon-${Ei}`)},ur||Be.createElement(kr,null)):null}let Dr=!0,tr=Ei||"";return Pi&&(Dr=Ar,tr=(Ei!=null?Ei:Sn)||""),{status:tr,errors:Jn,warnings:He,hasFeedback:!!we,feedbackIcon:dr,isFormItemInput:Dr}},[Ei,we,Pi,Ar,Sn]);return Be.createElement(Ie.aM.Provider,{value:$n},Tn)}var No=function(Ae,Tn){var Jn={};for(var He in Ae)Object.prototype.hasOwnProperty.call(Ae,He)&&Tn.indexOf(He)<0&&(Jn[He]=Ae[He]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,He=Object.getOwnPropertySymbols(Ae);we<He.length;we++)Tn.indexOf(He[we])<0&&Object.prototype.propertyIsEnumerable.call(Ae,He[we])&&(Jn[He[we]]=Ae[He[we]]);return Jn};function us(Ae){const{prefixCls:Tn,className:Jn,rootClassName:He,style:we,help:qe,errors:In,warnings:ui,validateStatus:Pi,meta:Fe,hasFeedback:Qn,hidden:Ei,children:Ar,fieldId:Sn,required:$n,isRequired:xr,onSubItemMetaChange:dr}=Ae,Dr=No(Ae,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),tr=`${Tn}-item`,{requiredMark:vr}=Be.useContext(Ie.q3),ur=Be.useRef(null),kr=ge(In),Ao=ge(ui),Oo=qe!=null,Kn=!!(Oo||In.length||ui.length),Vo=!!ur.current&&(0,Wn.Z)(ur.current),[rs,Po]=Be.useState(null);(0,Hn.Z)(()=>{if(Kn&&ur.current){const Ir=getComputedStyle(ur.current);Po(parseInt(Ir.marginBottom,10))}},[Kn,Vo]);const zn=Ir=>{Ir||Po(null)},pr=function(){let Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const co=Ir?kr:Fe.errors,Io=Ir?Ao:Fe.warnings;return si(co,Io,Fe,"",!!Qn,Pi)}(),jr=Oe()(tr,Jn,He,{[`${tr}-with-help`]:Oo||kr.length||Ao.length,[`${tr}-has-feedback`]:pr&&Qn,[`${tr}-has-success`]:pr==="success",[`${tr}-has-warning`]:pr==="warning",[`${tr}-has-error`]:pr==="error",[`${tr}-is-validating`]:pr==="validating",[`${tr}-hidden`]:Ei});return Be.createElement("div",{className:jr,style:we,ref:ur},Be.createElement(It.Z,Object.assign({className:`${tr}-row`},(0,Jt.Z)(Dr,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Be.createElement(po,Object.assign({htmlFor:Sn},Ae,{requiredMark:vr,required:$n!=null?$n:xr,prefixCls:Tn})),Be.createElement(be,Object.assign({},Ae,Fe,{errors:kr,warnings:Ao,prefixCls:Tn,status:pr,help:qe,marginBottom:rs,onErrorVisibleChanged:zn}),Be.createElement(Ie.qI.Provider,{value:dr},Be.createElement(Vr,{prefixCls:Tn,meta:Fe,errors:Fe.errors,warnings:Fe.warnings,hasFeedback:Qn,validateStatus:pr},Ar)))),!!rs&&Be.createElement("div",{className:`${tr}-margin-offset`,style:{marginBottom:-rs}}))}const Os="__SPLIT__",Ms=null,Fo=Be.memo(Ae=>{let{children:Tn}=Ae;return Tn},(Ae,Tn)=>Ae.value===Tn.value&&Ae.update===Tn.update&&Ae.childProps.length===Tn.childProps.length&&Ae.childProps.every((Jn,He)=>Jn===Tn.childProps[He]));function jt(Ae){return Ae!=null}function la(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function fs(Ae){const{name:Tn,noStyle:Jn,className:He,dependencies:we,prefixCls:qe,shouldUpdate:In,rules:ui,children:Pi,required:Fe,label:Qn,messageVariables:Ei,trigger:Ar="onChange",validateTrigger:Sn,hidden:$n,help:xr}=Ae,{getPrefixCls:dr}=Be.useContext(Pn.E_),{name:Dr}=Be.useContext(Ie.q3),tr=En(Pi),vr=typeof tr=="function",ur=Be.useContext(Ie.qI),{validateTrigger:kr}=Be.useContext(Ue.FieldContext),Ao=Sn!==void 0?Sn:kr,Oo=jt(Tn),Kn=dr("form",qe),[Vo,rs]=ve(Kn),Po=Be.useContext(Ue.ListContext),zn=Be.useRef(),[Hi,pr]=wn({}),[jr,Ir]=(0,ci.Z)(()=>la()),co=ei=>{const Qo=Po==null?void 0:Po.getKey(ei.name);if(Ir(ei.destroy?la():ei,!0),Jn&&xr!==!1&&ur){let Vs=ei.name;if(ei.destroy)Vs=zn.current||Vs;else if(Qo!==void 0){const[Xo,Js]=Qo;Vs=[Xo].concat((0,zt.Z)(Js)),zn.current=Vs}ur(ei,Vs)}},Io=(ei,Qo)=>{pr(Vs=>{const Xo=Object.assign({},Vs),ks=[].concat((0,zt.Z)(ei.name.slice(0,-1)),(0,zt.Z)(Qo)).join(Os);return ei.destroy?delete Xo[ks]:Xo[ks]=ei,Xo})},[oo,eo]=Be.useMemo(()=>{const ei=(0,zt.Z)(jr.errors),Qo=(0,zt.Z)(jr.warnings);return Object.values(Hi).forEach(Vs=>{ei.push.apply(ei,(0,zt.Z)(Vs.errors||[])),Qo.push.apply(Qo,(0,zt.Z)(Vs.warnings||[]))}),[ei,Qo]},[Hi,jr.errors,jr.warnings]),Br=sn();function ai(ei,Qo,Vs){return Jn&&!$n?Be.createElement(Vr,{prefixCls:Kn,hasFeedback:Ae.hasFeedback,validateStatus:Ae.validateStatus,meta:jr,errors:oo,warnings:eo,noStyle:!0},ei):Be.createElement(us,Object.assign({key:"row"},Ae,{className:Oe()(He,rs),prefixCls:Kn,fieldId:Qo,isRequired:Vs,errors:oo,warnings:eo,meta:jr,onSubItemMetaChange:Io}),ei)}if(!Oo&&!vr&&!we)return Vo(ai(tr));let vo={};return typeof Qn=="string"?vo.label=Qn:Tn&&(vo.label=String(Tn)),Ei&&(vo=Object.assign(Object.assign({},vo),Ei)),Vo(Be.createElement(Ue.Field,Object.assign({},Ae,{messageVariables:vo,trigger:Ar,validateTrigger:Ao,onMetaChange:co}),(ei,Qo,Vs)=>{const Xo=Ve(Tn).length&&Qo?Qo.name:[],Js=Vn(Xo,Dr),ks=Fe!==void 0?Fe:!!(ui&&ui.some(Go=>{if(Go&&typeof Go=="object"&&Go.required&&!Go.warningOnly)return!0;if(typeof Go=="function"){const Ro=Go(Vs);return Ro&&Ro.required&&!Ro.warningOnly}return!1})),no=Object.assign({},ei);let ro=null;if(Array.isArray(tr)&&Oo)ro=tr;else if(!(vr&&(!(In||we)||Oo))){if(!(we&&!vr&&!Oo))if((0,Dn.l$)(tr)){const Go=Object.assign(Object.assign({},tr.props),no);if(Go.id||(Go.id=Js),xr||oo.length>0||eo.length>0||Ae.extra){const re=[];(xr||oo.length>0)&&re.push(`${Js}_help`),Ae.extra&&re.push(`${Js}_extra`),Go["aria-describedby"]=re.join(" ")}oo.length>0&&(Go["aria-invalid"]="true"),ks&&(Go["aria-required"]="true"),(0,ki.Yr)(tr)&&(Go.ref=Br(Xo,tr)),new Set([].concat((0,zt.Z)(Ve(Ar)),(0,zt.Z)(Ve(Ao)))).forEach(re=>{Go[re]=function(){for(var zo,Hs,Qa,Ra,hl,Do=arguments.length,yo=new Array(Do),os=0;os<Do;os++)yo[os]=arguments[os];(Qa=no[re])===null||Qa===void 0||(zo=Qa).call.apply(zo,[no].concat(yo)),(hl=(Ra=tr.props)[re])===null||hl===void 0||(Hs=hl).call.apply(Hs,[Ra].concat(yo))}});const Ji=[Go["aria-required"],Go["aria-invalid"],Go["aria-describedby"]];ro=Be.createElement(Fo,{value:no[Ae.valuePropName||"value"],update:tr,childProps:Ji},(0,Dn.Tm)(tr,Go))}else vr&&(In||we)&&!Oo?ro=tr(Vs):ro=tr}return ai(ro,Js,ks)}))}const vs=fs;vs.useStatus=Ne;var Ws=vs,Fa=function(Ae,Tn){var Jn={};for(var He in Ae)Object.prototype.hasOwnProperty.call(Ae,He)&&Tn.indexOf(He)<0&&(Jn[He]=Ae[He]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,He=Object.getOwnPropertySymbols(Ae);we<He.length;we++)Tn.indexOf(He[we])<0&&Object.prototype.propertyIsEnumerable.call(Ae,He[we])&&(Jn[He[we]]=Ae[He[we]]);return Jn},Pr=Ae=>{var{prefixCls:Tn,children:Jn}=Ae,He=Fa(Ae,["prefixCls","children"]);const{getPrefixCls:we}=Be.useContext(Pn.E_),qe=we("form",Tn),In=Be.useMemo(()=>({prefixCls:qe,status:"error"}),[qe]);return Be.createElement(Ue.List,Object.assign({},He),(ui,Pi,Fe)=>Be.createElement(Ie.Rk.Provider,{value:In},Jn(ui.map(Qn=>Object.assign(Object.assign({},Qn),{fieldKey:Qn.key})),Pi,{errors:Fe.errors,warnings:Fe.warnings})))};function Lr(){const{form:Ae}=(0,Be.useContext)(Ie.q3);return Ae}const ln=Te;ln.Item=Ws,ln.List=Pr,ln.ErrorList=hn,ln.useForm=Nn,ln.useFormInstance=Lr,ln.useWatch=Ue.useWatch,ln.Provider=Ie.RV,ln.create=()=>{};var nn=ln},9432:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ft},n:function(){return ht}});var zt=Kt(19248),ke=Kt(92310),Oe=Kt.n(ke),Cn=Kt(93681),Be=Kt(8654),vn=Kt(59301),Ie=Kt(19080),ge=Kt(36355),ye=Kt(1684),Nt=Kt(19716),se=Kt(32441),oe=Kt(33234),me=Kt(59412),Ut=Kt(9937);function et(vt){return!!(vt.prefix||vt.suffix||vt.allowClear)}var nt=function(vt,Mt){var Rt={};for(var Gt in vt)Object.prototype.hasOwnProperty.call(vt,Gt)&&Mt.indexOf(Gt)<0&&(Rt[Gt]=vt[Gt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Gt=Object.getOwnPropertySymbols(vt);$t<Gt.length;$t++)Mt.indexOf(Gt[$t])<0&&Object.prototype.propertyIsEnumerable.call(vt,Gt[$t])&&(Rt[Gt[$t]]=vt[Gt[$t]]);return Rt};function ht(vt,Mt){if(!vt)return;vt.focus(Mt);const{cursor:Rt}=Mt||{};if(Rt){const Gt=vt.value.length;switch(Rt){case"start":vt.setSelectionRange(0,0);break;case"end":vt.setSelectionRange(Gt,Gt);break;default:vt.setSelectionRange(0,Gt);break}}}var ft=(0,vn.forwardRef)((vt,Mt)=>{var Rt;const{prefixCls:Gt,bordered:$t=!0,status:ae,size:ve,disabled:fe,onBlur:Ye,onFocus:De,suffix:hn,allowClear:Ue,addonAfter:Pn,addonBefore:qn,className:un,style:fn,styles:mn,rootClassName:pe,onChange:Xt,classNames:Ve}=vt,Vn=nt(vt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:si,direction:An,input:Nn}=vn.useContext(ge.E_),Yn=si("input",Gt),Ci=(0,vn.useRef)(null),[Mi,Ri]=(0,Ut.ZP)(Yn),{compactSize:Te,compactItemClassnames:ci}=(0,oe.ri)(Yn,An),ki=(0,Nt.Z)(le=>{var Ot;return(Ot=ve!=null?ve:Te)!==null&&Ot!==void 0?Ot:le}),Dn=vn.useContext(ye.Z),yi=fe!=null?fe:Dn,{status:En,hasFeedback:gn,feedbackIcon:Ne}=(0,vn.useContext)(se.aM),Xe=(0,Ie.F)(En,ae),wn=et(vt)||!!gn,sn=(0,vn.useRef)(wn);(0,vn.useEffect)(()=>{var le;wn&&sn.current,sn.current=wn},[wn]);const Wn=(0,me.Z)(Ci,!0),Hn=le=>{Wn(),Ye==null||Ye(le)},Jt=le=>{Wn(),De==null||De(le)},It=le=>{Wn(),Xt==null||Xt(le)},bt=(gn||hn)&&vn.createElement(vn.Fragment,null,hn,gn&&Ne);let Vt;return typeof Ue=="object"&&(Ue!=null&&Ue.clearIcon)?Vt=Ue:Ue&&(Vt={clearIcon:vn.createElement(zt.Z,null)}),Mi(vn.createElement(Cn.default,Object.assign({ref:(0,Be.sQ)(Mt,Ci),prefixCls:Yn,autoComplete:Nn==null?void 0:Nn.autoComplete},Vn,{disabled:yi,onBlur:Hn,onFocus:Jt,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),fn),styles:Object.assign(Object.assign({},Nn==null?void 0:Nn.styles),mn),suffix:bt,allowClear:Vt,className:Oe()(un,pe,ci,Nn==null?void 0:Nn.className),onChange:It,addonAfter:Pn&&vn.createElement(oe.BR,null,vn.createElement(se.Ux,{override:!0,status:!0},Pn)),addonBefore:qn&&vn.createElement(oe.BR,null,vn.createElement(se.Ux,{override:!0,status:!0},qn)),classNames:Object.assign(Object.assign(Object.assign({},Ve),Nn==null?void 0:Nn.classNames),{input:Oe()({[`${Yn}-sm`]:ki==="small",[`${Yn}-lg`]:ki==="large",[`${Yn}-rtl`]:An==="rtl",[`${Yn}-borderless`]:!$t},!wn&&(0,Ie.Z)(Yn,Xe),Ve==null?void 0:Ve.input,(Rt=Nn==null?void 0:Nn.classNames)===null||Rt===void 0?void 0:Rt.input,Ri)}),classes:{affixWrapper:Oe()({[`${Yn}-affix-wrapper-sm`]:ki==="small",[`${Yn}-affix-wrapper-lg`]:ki==="large",[`${Yn}-affix-wrapper-rtl`]:An==="rtl",[`${Yn}-affix-wrapper-borderless`]:!$t},(0,Ie.Z)(`${Yn}-affix-wrapper`,Xe,gn),Ri),wrapper:Oe()({[`${Yn}-group-rtl`]:An==="rtl"},Ri),group:Oe()({[`${Yn}-group-wrapper-sm`]:ki==="small",[`${Yn}-group-wrapper-lg`]:ki==="large",[`${Yn}-group-wrapper-rtl`]:An==="rtl",[`${Yn}-group-wrapper-disabled`]:yi},(0,Ie.Z)(`${Yn}-group-wrapper`,Xe,gn),Ri)}})))})},1643:function(Fi,Ti,Kt){"use strict";var zt=Kt(19248),ke=Kt(92310),Oe=Kt.n(ke),Cn=Kt(9296),Be=Kt(59301),vn=Kt(19080),Ie=Kt(36355),ge=Kt(1684),ye=Kt(19716),Nt=Kt(32441),se=Kt(9432),oe=Kt(9937),me=function(et,nt){var ht={};for(var at in et)Object.prototype.hasOwnProperty.call(et,at)&&nt.indexOf(at)<0&&(ht[at]=et[at]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,at=Object.getOwnPropertySymbols(et);ft<at.length;ft++)nt.indexOf(at[ft])<0&&Object.prototype.propertyIsEnumerable.call(et,at[ft])&&(ht[at[ft]]=et[at[ft]]);return ht};const Ut=(0,Be.forwardRef)((et,nt)=>{const{prefixCls:ht,bordered:at=!0,size:ft,disabled:vt,status:Mt,allowClear:Rt,showCount:Gt,classNames:$t,rootClassName:ae,className:ve}=et,fe=me(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ye,direction:De}=Be.useContext(Ie.E_),hn=(0,ye.Z)(ft),Ue=Be.useContext(ge.Z),Pn=vt!=null?vt:Ue,{status:qn,hasFeedback:un,feedbackIcon:fn}=Be.useContext(Nt.aM),mn=(0,vn.F)(qn,Mt),pe=Be.useRef(null);Be.useImperativeHandle(nt,()=>{var An;return{resizableTextArea:(An=pe.current)===null||An===void 0?void 0:An.resizableTextArea,focus:Nn=>{var Yn,Ci;(0,se.n)((Ci=(Yn=pe.current)===null||Yn===void 0?void 0:Yn.resizableTextArea)===null||Ci===void 0?void 0:Ci.textArea,Nn)},blur:()=>{var Nn;return(Nn=pe.current)===null||Nn===void 0?void 0:Nn.blur()}}});const Xt=Ye("input",ht);let Ve;typeof Rt=="object"&&(Rt!=null&&Rt.clearIcon)?Ve=Rt:Rt&&(Ve={clearIcon:Be.createElement(zt.Z,null)});const[Vn,si]=(0,oe.ZP)(Xt);return Vn(Be.createElement(Cn.default,Object.assign({},fe,{disabled:Pn,allowClear:Ve,className:Oe()(ve,ae),classes:{affixWrapper:Oe()(`${Xt}-textarea-affix-wrapper`,{[`${Xt}-affix-wrapper-rtl`]:De==="rtl",[`${Xt}-affix-wrapper-borderless`]:!at,[`${Xt}-affix-wrapper-sm`]:hn==="small",[`${Xt}-affix-wrapper-lg`]:hn==="large",[`${Xt}-textarea-show-count`]:Gt},(0,vn.Z)(`${Xt}-affix-wrapper`,mn),si)},classNames:Object.assign(Object.assign({},$t),{textarea:Oe()({[`${Xt}-borderless`]:!at,[`${Xt}-sm`]:hn==="small",[`${Xt}-lg`]:hn==="large"},(0,vn.Z)(Xt,mn),si,$t==null?void 0:$t.textarea)}),prefixCls:Xt,suffix:un&&Be.createElement("span",{className:`${Xt}-textarea-suffix`},fn),showCount:Gt,ref:pe})))});Ti.Z=Ut},59412:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ke}});var zt=Kt(59301);function ke(Oe,Cn){const Be=(0,zt.useRef)([]),vn=()=>{Be.current.push(setTimeout(()=>{var Ie,ge,ye,Nt;!((Ie=Oe.current)===null||Ie===void 0)&&Ie.input&&((ge=Oe.current)===null||ge===void 0?void 0:ge.input.getAttribute("type"))==="password"&&(!((ye=Oe.current)===null||ye===void 0)&&ye.input.hasAttribute("value"))&&((Nt=Oe.current)===null||Nt===void 0||Nt.input.removeAttribute("value"))}))};return(0,zt.useEffect)(()=>(Cn&&vn(),()=>Be.current.forEach(Ie=>{Ie&&clearTimeout(Ie)})),[]),vn}},92832:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{default:function(){return hn}});var zt=Kt(92310),ke=Kt.n(zt),Oe=Kt(59301),Cn=Kt(36355),Be=Kt(32441),vn=Kt(9937),ge=Ue=>{const{getPrefixCls:Pn,direction:qn}=(0,Oe.useContext)(Cn.E_),{prefixCls:un,className:fn}=Ue,mn=Pn("input-group",un),pe=Pn("input"),[Xt,Ve]=(0,vn.ZP)(pe),Vn=ke()(mn,{[`${mn}-lg`]:Ue.size==="large",[`${mn}-sm`]:Ue.size==="small",[`${mn}-compact`]:Ue.compact,[`${mn}-rtl`]:qn==="rtl"},Ve,fn),si=(0,Oe.useContext)(Be.aM),An=(0,Oe.useMemo)(()=>Object.assign(Object.assign({},si),{isFormItemInput:!1}),[si]);return Xt(Oe.createElement("span",{className:Vn,style:Ue.style,onMouseEnter:Ue.onMouseEnter,onMouseLeave:Ue.onMouseLeave,onFocus:Ue.onFocus,onBlur:Ue.onBlur},Oe.createElement(Be.aM.Provider,{value:An},Ue.children)))},ye=Kt(9432),Nt=Kt(73331),se=Kt(15277),oe=Kt(2738),me=Kt(8654),Ut=Kt(59412),et=function(Ue,Pn){var qn={};for(var un in Ue)Object.prototype.hasOwnProperty.call(Ue,un)&&Pn.indexOf(un)<0&&(qn[un]=Ue[un]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,un=Object.getOwnPropertySymbols(Ue);fn<un.length;fn++)Pn.indexOf(un[fn])<0&&Object.prototype.propertyIsEnumerable.call(Ue,un[fn])&&(qn[un[fn]]=Ue[un[fn]]);return qn};const nt=Ue=>Ue?Oe.createElement(se.Z,null):Oe.createElement(Nt.Z,null),ht={click:"onClick",hover:"onMouseOver"};var ft=Oe.forwardRef((Ue,Pn)=>{const{visibilityToggle:qn=!0}=Ue,un=typeof qn=="object"&&qn.visible!==void 0,[fn,mn]=(0,Oe.useState)(()=>un?qn.visible:!1),pe=(0,Oe.useRef)(null);Oe.useEffect(()=>{un&&mn(qn.visible)},[un,qn]);const Xt=(0,Ut.Z)(pe),Ve=()=>{const{disabled:yi}=Ue;yi||(fn&&Xt(),mn(En=>{var gn;const Ne=!En;return typeof qn=="object"&&((gn=qn.onVisibleChange)===null||gn===void 0||gn.call(qn,Ne)),Ne}))},Vn=yi=>{const{action:En="click",iconRender:gn=nt}=Ue,Ne=ht[En]||"",Xe=gn(fn),wn={[Ne]:Ve,className:`${yi}-icon`,key:"passwordIcon",onMouseDown:sn=>{sn.preventDefault()},onMouseUp:sn=>{sn.preventDefault()}};return Oe.cloneElement(Oe.isValidElement(Xe)?Xe:Oe.createElement("span",null,Xe),wn)},{className:si,prefixCls:An,inputPrefixCls:Nn,size:Yn}=Ue,Ci=et(Ue,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Mi}=Oe.useContext(Cn.E_),Ri=Mi("input",Nn),Te=Mi("input-password",An),ci=qn&&Vn(Te),ki=ke()(Te,si,{[`${Te}-${Yn}`]:!!Yn}),Dn=Object.assign(Object.assign({},(0,oe.Z)(Ci,["suffix","iconRender","visibilityToggle"])),{type:fn?"text":"password",className:ki,prefixCls:Ri,suffix:ci});return Yn&&(Dn.size=Yn),Oe.createElement(ye.Z,Object.assign({ref:(0,me.sQ)(Pn,pe)},Dn))}),vt=Kt(47472),Mt=Kt(92343),Rt=Kt(3113),Gt=Kt(19716),$t=Kt(33234),ae=function(Ue,Pn){var qn={};for(var un in Ue)Object.prototype.hasOwnProperty.call(Ue,un)&&Pn.indexOf(un)<0&&(qn[un]=Ue[un]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,un=Object.getOwnPropertySymbols(Ue);fn<un.length;fn++)Pn.indexOf(un[fn])<0&&Object.prototype.propertyIsEnumerable.call(Ue,un[fn])&&(qn[un[fn]]=Ue[un[fn]]);return qn},fe=Oe.forwardRef((Ue,Pn)=>{const{prefixCls:qn,inputPrefixCls:un,className:fn,size:mn,suffix:pe,enterButton:Xt=!1,addonAfter:Ve,loading:Vn,disabled:si,onSearch:An,onChange:Nn,onCompositionStart:Yn,onCompositionEnd:Ci}=Ue,Mi=ae(Ue,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ri,direction:Te}=Oe.useContext(Cn.E_),ci=Oe.useRef(!1),ki=Ri("input-search",qn),Dn=Ri("input",un),{compactSize:yi}=(0,$t.ri)(ki,Te),En=(0,Gt.Z)(be=>{var pn;return(pn=mn!=null?mn:yi)!==null&&pn!==void 0?pn:be}),gn=Oe.useRef(null),Ne=be=>{be&&be.target&&be.type==="click"&&An&&An(be.target.value,be,{source:"clear"}),Nn&&Nn(be)},Xe=be=>{var pn;document.activeElement===((pn=gn.current)===null||pn===void 0?void 0:pn.input)&&be.preventDefault()},wn=be=>{var pn,Zn;An&&An((Zn=(pn=gn.current)===null||pn===void 0?void 0:pn.input)===null||Zn===void 0?void 0:Zn.value,be,{source:"input"})},sn=be=>{ci.current||Vn||wn(be)},Wn=typeof Xt=="boolean"?Oe.createElement(vt.Z,null):null,Hn=`${ki}-button`;let Jt;const It=Xt||{},bt=It.type&&It.type.__ANT_BUTTON===!0;bt||It.type==="button"?Jt=(0,Mt.Tm)(It,Object.assign({onMouseDown:Xe,onClick:be=>{var pn,Zn;(Zn=(pn=It==null?void 0:It.props)===null||pn===void 0?void 0:pn.onClick)===null||Zn===void 0||Zn.call(pn,be),wn(be)},key:"enterButton"},bt?{className:Hn,size:En}:{})):Jt=Oe.createElement(Rt.ZP,{className:Hn,type:Xt?"primary":void 0,size:En,disabled:si,key:"enterButton",onMouseDown:Xe,onClick:wn,loading:Vn,icon:Wn},Xt),Ve&&(Jt=[Jt,(0,Mt.Tm)(Ve,{key:"addonAfter"})]);const Vt=ke()(ki,{[`${ki}-rtl`]:Te==="rtl",[`${ki}-${En}`]:!!En,[`${ki}-with-button`]:!!Xt},fn),le=be=>{ci.current=!0,Yn==null||Yn(be)},Ot=be=>{ci.current=!1,Ci==null||Ci(be)};return Oe.createElement(ye.Z,Object.assign({ref:(0,me.sQ)(gn,Pn),onPressEnter:sn},Mi,{size:En,onCompositionStart:le,onCompositionEnd:Ot,prefixCls:Dn,addonAfter:Jt,suffix:pe,onChange:Ne,className:Vt,disabled:si}))}),Ye=Kt(1643);const De=ye.Z;De.Group=ge,De.Search=fe,De.TextArea=Ye.Z,De.Password=ft;var hn=De},45818:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{D:function(){return vt},Z:function(){return Gt}});var zt=Kt(96663),ke=Kt(59301),Oe={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"},Cn=Oe,Be=Kt(7657),vn=function(ae,ve){return ke.createElement(Be.Z,(0,zt.Z)({},ae,{ref:ve,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie,ye=Kt(33853),Nt=Kt(38819),se=Kt(92310),oe=Kt.n(se),me=Kt(2738),et=$t=>!isNaN(parseFloat($t))&&isFinite($t),nt=Kt(36355),ht=Kt(84966),at=function($t,ae){var ve={};for(var fe in $t)Object.prototype.hasOwnProperty.call($t,fe)&&ae.indexOf(fe)<0&&(ve[fe]=$t[fe]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,fe=Object.getOwnPropertySymbols($t);Ye<fe.length;Ye++)ae.indexOf(fe[Ye])<0&&Object.prototype.propertyIsEnumerable.call($t,fe[Ye])&&(ve[fe[Ye]]=$t[fe[Ye]]);return ve};const ft={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},vt=ke.createContext({}),Mt=(()=>{let $t=0;return function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $t+=1,`${ae}${$t}`}})();var Gt=ke.forwardRef(($t,ae)=>{const{prefixCls:ve,className:fe,trigger:Ye,children:De,defaultCollapsed:hn=!1,theme:Ue="dark",style:Pn={},collapsible:qn=!1,reverseArrow:un=!1,width:fn=200,collapsedWidth:mn=80,zeroWidthTriggerStyle:pe,breakpoint:Xt,onCollapse:Ve,onBreakpoint:Vn}=$t,si=at($t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:An}=(0,ke.useContext)(ht.Gs),[Nn,Yn]=(0,ke.useState)("collapsed"in $t?$t.collapsed:hn),[Ci,Mi]=(0,ke.useState)(!1);(0,ke.useEffect)(()=>{"collapsed"in $t&&Yn($t.collapsed)},[$t.collapsed]);const Ri=(En,gn)=>{"collapsed"in $t||Yn(En),Ve==null||Ve(En,gn)},Te=(0,ke.useRef)();Te.current=En=>{Mi(En.matches),Vn==null||Vn(En.matches),Nn!==En.matches&&Ri(En.matches,"responsive")},(0,ke.useEffect)(()=>{function En(Ne){return Te.current(Ne)}let gn;if(typeof window!="undefined"){const{matchMedia:Ne}=window;if(Ne&&Xt&&Xt in ft){gn=Ne(`(max-width: ${ft[Xt]})`);try{gn.addEventListener("change",En)}catch(Xe){gn.addListener(En)}En(gn)}}return()=>{try{gn==null||gn.removeEventListener("change",En)}catch(Ne){gn==null||gn.removeListener(En)}}},[Xt]),(0,ke.useEffect)(()=>{const En=Mt("ant-sider-");return An.addSider(En),()=>An.removeSider(En)},[]);const ci=()=>{Ri(!Nn,"clickTrigger")},{getPrefixCls:ki}=(0,ke.useContext)(nt.E_),Dn=()=>{const En=ki("layout-sider",ve),gn=(0,me.Z)(si,["collapsed"]),Ne=Nn?mn:fn,Xe=et(Ne)?`${Ne}px`:String(Ne),wn=parseFloat(String(mn||0))===0?ke.createElement("span",{onClick:ci,className:oe()(`${En}-zero-width-trigger`,`${En}-zero-width-trigger-${un?"right":"left"}`),style:pe},Ye||ke.createElement(ge,null)):null,Hn={expanded:un?ke.createElement(Nt.Z,null):ke.createElement(ye.Z,null),collapsed:un?ke.createElement(ye.Z,null):ke.createElement(Nt.Z,null)}[Nn?"collapsed":"expanded"],Jt=Ye!==null?wn||ke.createElement("div",{className:`${En}-trigger`,onClick:ci,style:{width:Xe}},Ye||Hn):null,It=Object.assign(Object.assign({},Pn),{flex:`0 0 ${Xe}`,maxWidth:Xe,minWidth:Xe,width:Xe}),bt=oe()(En,`${En}-${Ue}`,{[`${En}-collapsed`]:!!Nn,[`${En}-has-trigger`]:qn&&Ye!==null&&!wn,[`${En}-below`]:!!Ci,[`${En}-zero-width`]:parseFloat(Xe)===0},fe);return ke.createElement("aside",Object.assign({className:bt},gn,{style:It,ref:ae}),ke.createElement("div",{className:`${En}-children`},De),qn||Ci&&wn?Jt:null)},yi=ke.useMemo(()=>({siderCollapsed:Nn}),[Nn]);return ke.createElement(vt.Provider,{value:yi},Dn())})},84966:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{VY:function(){return vt},$_:function(){return ft},h4:function(){return at},Gs:function(){return me},ZP:function(){return Mt}});var zt=Kt(19127),ke=Kt(92310),Oe=Kt.n(ke),Cn=Kt(2738),Be=Kt(59301),vn=Kt(36355),Ie=Kt(83116),ye=Rt=>{const{componentCls:Gt,bodyBg:$t,lightSiderBg:ae,lightTriggerBg:ve,lightTriggerColor:fe}=Rt;return{[`${Gt}-sider-light`]:{background:ae,[`${Gt}-sider-trigger`]:{color:fe,background:ve},[`${Gt}-sider-zero-width-trigger`]:{color:fe,background:ve,border:`1px solid ${$t}`,borderInlineStart:0}}}};const Nt=Rt=>{const{antCls:Gt,componentCls:$t,colorText:ae,triggerColor:ve,footerBg:fe,triggerBg:Ye,headerHeight:De,headerPadding:hn,headerColor:Ue,footerPadding:Pn,triggerHeight:qn,zeroTriggerHeight:un,zeroTriggerWidth:fn,motionDurationMid:mn,motionDurationSlow:pe,fontSize:Xt,borderRadius:Ve,bodyBg:Vn,headerBg:si,siderBg:An}=Rt;return{[$t]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Vn,"&, *":{boxSizing:"border-box"},[`&${$t}-has-sider`]:{flexDirection:"row",[`> ${$t}, > ${$t}-content`]:{width:0}},[`${$t}-header, &${$t}-footer`]:{flex:"0 0 auto"},[`${$t}-sider`]:{position:"relative",minWidth:0,background:An,transition:`all ${mn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Gt}-menu${Gt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:qn},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:qn,color:ve,lineHeight:`${qn}px`,textAlign:"center",background:Ye,cursor:"pointer",transition:`all ${mn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-fn,zIndex:1,width:fn,height:un,color:ve,fontSize:Rt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:An,borderStartStartRadius:0,borderStartEndRadius:Ve,borderEndEndRadius:Ve,borderEndStartRadius:0,cursor:"pointer",transition:`background ${pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-fn,borderStartStartRadius:Ve,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ve}}}}},ye(Rt)),{"&-rtl":{direction:"rtl"}}),[`${$t}-header`]:{height:De,padding:hn,color:Ue,lineHeight:`${De}px`,background:si,[`${Gt}-menu`]:{lineHeight:"inherit"}},[`${$t}-footer`]:{padding:Pn,color:ae,fontSize:Xt,background:fe},[`${$t}-content`]:{flex:"auto",minHeight:0}}};var se=(0,Ie.Z)("Layout",Rt=>[Nt(Rt)],Rt=>{const{colorBgLayout:Gt,controlHeight:$t,controlHeightLG:ae,colorText:ve,controlHeightSM:fe,marginXXS:Ye,colorTextLightSolid:De,colorBgContainer:hn}=Rt,Ue=ae*1.25;return{colorBgHeader:"#001529",colorBgBody:Gt,colorBgTrigger:"#002140",bodyBg:Gt,headerBg:"#001529",headerHeight:$t*2,headerPadding:`0 ${Ue}px`,headerColor:ve,footerPadding:`${fe}px ${Ue}px`,footerBg:Gt,siderBg:"#001529",triggerHeight:ae+Ye*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:ae,zeroTriggerHeight:ae,lightSiderBg:hn,lightTriggerBg:hn,lightTriggerColor:ve}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),oe=function(Rt,Gt){var $t={};for(var ae in Rt)Object.prototype.hasOwnProperty.call(Rt,ae)&&Gt.indexOf(ae)<0&&($t[ae]=Rt[ae]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,ae=Object.getOwnPropertySymbols(Rt);ve<ae.length;ve++)Gt.indexOf(ae[ve])<0&&Object.prototype.propertyIsEnumerable.call(Rt,ae[ve])&&($t[ae[ve]]=Rt[ae[ve]]);return $t};const me=Be.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ut(Rt){let{suffixCls:Gt,tagName:$t,displayName:ae}=Rt;return ve=>Be.forwardRef((Ye,De)=>Be.createElement(ve,Object.assign({ref:De,suffixCls:Gt,tagName:$t},Ye)))}const et=Be.forwardRef((Rt,Gt)=>{const{prefixCls:$t,suffixCls:ae,className:ve,tagName:fe}=Rt,Ye=oe(Rt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=Be.useContext(vn.E_),hn=De("layout",$t),[Ue,Pn]=se(hn),qn=ae?`${hn}-${ae}`:hn;return Ue(Be.createElement(fe,Object.assign({className:Oe()($t||qn,ve,Pn),ref:Gt},Ye)))}),nt=Be.forwardRef((Rt,Gt)=>{const{direction:$t}=Be.useContext(vn.E_),[ae,ve]=Be.useState([]),{prefixCls:fe,className:Ye,rootClassName:De,children:hn,hasSider:Ue,tagName:Pn,style:qn}=Rt,un=oe(Rt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),fn=(0,Cn.Z)(un,["suffixCls"]),{getPrefixCls:mn,layout:pe}=Be.useContext(vn.E_),Xt=mn("layout",fe),[Ve,Vn]=se(Xt),si=Oe()(Xt,{[`${Xt}-has-sider`]:typeof Ue=="boolean"?Ue:ae.length>0,[`${Xt}-rtl`]:$t==="rtl"},pe==null?void 0:pe.className,Ye,De,Vn),An=Be.useMemo(()=>({siderHook:{addSider:Nn=>{ve(Yn=>[].concat((0,zt.Z)(Yn),[Nn]))},removeSider:Nn=>{ve(Yn=>Yn.filter(Ci=>Ci!==Nn))}}}),[]);return Ve(Be.createElement(me.Provider,{value:An},Be.createElement(Pn,Object.assign({ref:Gt,className:si,style:Object.assign(Object.assign({},pe==null?void 0:pe.style),qn)},fn),hn)))}),ht=Ut({tagName:"div",displayName:"Layout"})(nt),at=Ut({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ft=Ut({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),vt=Ut({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var Mt=ht},40875:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{J:function(){return vn}});var zt=Kt(59301),ke=Kt(33234),Oe=Kt(70425),Cn=function(Ie,ge){var ye={};for(var Nt in Ie)Object.prototype.hasOwnProperty.call(Ie,Nt)&&ge.indexOf(Nt)<0&&(ye[Nt]=Ie[Nt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Nt=Object.getOwnPropertySymbols(Ie);se<Nt.length;se++)ge.indexOf(Nt[se])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Nt[se])&&(ye[Nt[se]]=Ie[Nt[se]]);return ye};const Be=zt.createContext(null),vn=zt.forwardRef((Ie,ge)=>{const{children:ye}=Ie,Nt=Cn(Ie,["children"]),se=zt.useContext(Be),oe=zt.useMemo(()=>Object.assign(Object.assign({},se),Nt),[se,Nt.prefixCls,Nt.mode,Nt.selectable]);return zt.createElement(Be.Provider,{value:oe},zt.createElement(ke.BR,null,(0,Oe.supportNodeRef)(ye)?zt.cloneElement(ye,{ref:ge}):ye))});Ti.Z=Be},20834:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{default:function(){return yi}});var zt=Kt(15285),ke=Kt(59301),Oe=Kt(45818),Cn=Kt(92310),Be=Kt.n(Cn),vn=Kt(36355),Ie=function(En,gn){var Ne={};for(var Xe in En)Object.prototype.hasOwnProperty.call(En,Xe)&&gn.indexOf(Xe)<0&&(Ne[Xe]=En[Xe]);if(En!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,Xe=Object.getOwnPropertySymbols(En);wn<Xe.length;wn++)gn.indexOf(Xe[wn])<0&&Object.prototype.propertyIsEnumerable.call(En,Xe[wn])&&(Ne[Xe[wn]]=En[Xe[wn]]);return Ne},ye=En=>{const{prefixCls:gn,className:Ne,dashed:Xe}=En,wn=Ie(En,["prefixCls","className","dashed"]),{getPrefixCls:sn}=ke.useContext(vn.E_),Wn=sn("menu",gn),Hn=Be()({[`${Wn}-item-divider-dashed`]:!!Xe},Ne);return ke.createElement(zt.iz,Object.assign({className:Hn},wn))},Nt=Kt(11592),se=Kt(2738),oe=Kt(6848),me=Kt(92343),et=(0,ke.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ht=En=>{var gn;const{className:Ne,children:Xe,icon:wn,title:sn,danger:Wn}=En,{prefixCls:Hn,firstLevel:Jt,direction:It,disableMenuItemTitleTooltip:bt,inlineCollapsed:Vt}=ke.useContext(et),le=wi=>{const Nr=ke.createElement("span",{className:`${Hn}-title-content`},Xe);return(!wn||(0,me.l$)(Xe)&&Xe.type==="span")&&Xe&&wi&&Jt&&typeof Xe=="string"?ke.createElement("div",{className:`${Hn}-inline-collapsed-noicon`},Xe.charAt(0)):Nr},{siderCollapsed:Ot}=ke.useContext(Oe.D);let be=sn;typeof sn=="undefined"?be=Jt?Xe:"":sn===!1&&(be="");const pn={title:be};!Ot&&!Vt&&(pn.title=null,pn.open=!1);const Zn=(0,Nt.Z)(Xe).length;let ii=ke.createElement(zt.ck,Object.assign({},(0,se.Z)(En,["title","icon","danger"]),{className:Be()({[`${Hn}-item-danger`]:Wn,[`${Hn}-item-only-child`]:(wn?Zn+1:Zn)===1},Ne),title:typeof sn=="string"?sn:void 0}),(0,me.Tm)(wn,{className:Be()((0,me.l$)(wn)?(gn=wn.props)===null||gn===void 0?void 0:gn.className:"",`${Hn}-item-icon`)}),le(Vt));return bt||(ii=ke.createElement(oe.Z,Object.assign({},pn,{placement:It==="rtl"?"left":"right",overlayClassName:`${Hn}-inline-collapsed-tooltip`}),ii)),ii},ft=En=>{var gn;const{popupClassName:Ne,icon:Xe,title:wn,theme:sn}=En,Wn=ke.useContext(et),{prefixCls:Hn,inlineCollapsed:Jt,theme:It}=Wn,bt=(0,zt.Xl)();let Vt;if(!Xe)Vt=Jt&&!bt.length&&wn&&typeof wn=="string"?ke.createElement("div",{className:`${Hn}-inline-collapsed-noicon`},wn.charAt(0)):ke.createElement("span",{className:`${Hn}-title-content`},wn);else{const Ot=(0,me.l$)(wn)&&wn.type==="span";Vt=ke.createElement(ke.Fragment,null,(0,me.Tm)(Xe,{className:Be()((0,me.l$)(Xe)?(gn=Xe.props)===null||gn===void 0?void 0:gn.className:"",`${Hn}-item-icon`)}),Ot?wn:ke.createElement("span",{className:`${Hn}-title-content`},wn))}const le=ke.useMemo(()=>Object.assign(Object.assign({},Wn),{firstLevel:!1}),[Wn]);return ke.createElement(et.Provider,{value:le},ke.createElement(zt.Wd,Object.assign({},(0,se.Z)(En,["icon"]),{title:Vt,popupClassName:Be()(Hn,Ne,`${Hn}-${sn||It}`)})))},vt=Kt(18785),Mt=Kt(70425),Rt=Kt(62892),Gt=Kt(40875),$t=function(En,gn){var Ne={};for(var Xe in En)Object.prototype.hasOwnProperty.call(En,Xe)&&gn.indexOf(Xe)<0&&(Ne[Xe]=En[Xe]);if(En!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,Xe=Object.getOwnPropertySymbols(En);wn<Xe.length;wn++)gn.indexOf(Xe[wn])<0&&Object.prototype.propertyIsEnumerable.call(En,Xe[wn])&&(Ne[Xe[wn]]=En[Xe[wn]]);return Ne};function ae(En){return(En||[]).map((gn,Ne)=>{if(gn&&typeof gn=="object"){const Xe=gn,{label:wn,children:sn,key:Wn,type:Hn}=Xe,Jt=$t(Xe,["label","children","key","type"]),It=Wn!=null?Wn:`tmp-${Ne}`;return sn||Hn==="group"?Hn==="group"?ke.createElement(zt.BW,Object.assign({key:It},Jt,{title:wn}),ae(sn)):ke.createElement(ft,Object.assign({key:It},Jt,{title:wn}),ae(sn)):Hn==="divider"?ke.createElement(ye,Object.assign({key:It},Jt)):ke.createElement(ht,Object.assign({key:It},Jt),wn)}return null}).filter(gn=>gn)}function ve(En){return ke.useMemo(()=>En&&ae(En),[En])}var fe=Kt(64993),Ye=Kt(17313),De=Kt(8378),hn=Kt(13826),Ue=Kt(29878),Pn=Kt(83116),qn=Kt(37613),fn=En=>{const{componentCls:gn,motionDurationSlow:Ne,horizontalLineHeight:Xe,colorSplit:wn,lineWidth:sn,lineType:Wn,itemPaddingInline:Hn}=En;return{[`${gn}-horizontal`]:{lineHeight:Xe,border:0,borderBottom:`${sn}px ${Wn} ${wn}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${gn}-item, ${gn}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Hn},[`> ${gn}-item:hover,
> ${gn}-item-active,
> ${gn}-submenu ${gn}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${gn}-item, ${gn}-submenu-title`]:{transition:[`border-color ${Ne}`,`background ${Ne}`].join(",")},[`${gn}-submenu-arrow`]:{display:"none"}}}},pe=En=>{let{componentCls:gn,menuArrowOffset:Ne}=En;return{[`${gn}-rtl`]:{direction:"rtl"},[`${gn}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${gn}-rtl${gn}-vertical,
${gn}-submenu-rtl ${gn}-vertical`]:{[`${gn}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ne})`},"&::after":{transform:`rotate(45deg) translateY(${Ne})`}}}}};const Xt=En=>Object.assign({},(0,Ye.oN)(En));var Vn=(En,gn)=>{const{componentCls:Ne,itemColor:Xe,itemSelectedColor:wn,groupTitleColor:sn,itemBg:Wn,subMenuItemBg:Hn,itemSelectedBg:Jt,activeBarHeight:It,activeBarWidth:bt,activeBarBorderWidth:Vt,motionDurationSlow:le,motionEaseInOut:Ot,motionEaseOut:be,itemPaddingInline:pn,motionDurationMid:Zn,itemHoverColor:ii,lineType:wi,colorSplit:Nr,itemDisabledColor:_r,dangerItemColor:Tr,dangerItemHoverColor:po,dangerItemSelectedColor:To,dangerItemActiveBg:Co,dangerItemSelectedBg:Kr,itemHoverBg:gr,itemActiveBg:Wr,menuSubMenuBg:Vr,horizontalItemSelectedColor:No,horizontalItemSelectedBg:us,horizontalItemBorderRadius:Os,horizontalItemHoverBg:Ms,popupBg:Fo}=En;return{[`${Ne}-${gn}, ${Ne}-${gn} > ${Ne}`]:{color:Xe,background:Wn,[`&${Ne}-root:focus-visible`]:Object.assign({},Xt(En)),[`${Ne}-item-group-title`]:{color:sn},[`${Ne}-submenu-selected`]:{[`> ${Ne}-submenu-title`]:{color:wn}},[`${Ne}-item-disabled, ${Ne}-submenu-disabled`]:{color:`${_r} !important`},[`${Ne}-item:not(${Ne}-item-selected):not(${Ne}-submenu-selected)`]:{[`&:hover, > ${Ne}-submenu-title:hover`]:{color:ii}},[`&:not(${Ne}-horizontal)`]:{[`${Ne}-item:not(${Ne}-item-selected)`]:{"&:hover":{backgroundColor:gr},"&:active":{backgroundColor:Wr}},[`${Ne}-submenu-title`]:{"&:hover":{backgroundColor:gr},"&:active":{backgroundColor:Wr}}},[`${Ne}-item-danger`]:{color:Tr,[`&${Ne}-item:hover`]:{[`&:not(${Ne}-item-selected):not(${Ne}-submenu-selected)`]:{color:po}},[`&${Ne}-item:active`]:{background:Co}},[`${Ne}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ne}-item-selected`]:{color:wn,[`&${Ne}-item-danger`]:{color:To},"a, a:hover":{color:"inherit"}},[`& ${Ne}-item-selected`]:{backgroundColor:Jt,[`&${Ne}-item-danger`]:{backgroundColor:Kr}},[`${Ne}-item, ${Ne}-submenu-title`]:{[`&:not(${Ne}-item-disabled):focus-visible`]:Object.assign({},Xt(En))},[`&${Ne}-submenu > ${Ne}`]:{backgroundColor:Vr},[`&${Ne}-popup > ${Ne}`]:{backgroundColor:Fo},[`&${Ne}-horizontal`]:Object.assign(Object.assign({},gn==="dark"?{borderBottom:0}:{}),{[`> ${Ne}-item, > ${Ne}-submenu`]:{top:Vt,marginTop:-Vt,marginBottom:0,borderRadius:Os,"&::after":{position:"absolute",insetInline:pn,bottom:0,borderBottom:`${It}px solid transparent`,transition:`border-color ${le} ${Ot}`,content:'""'},"&:hover, &-active, &-open":{background:Ms,"&::after":{borderBottomWidth:It,borderBottomColor:No}},"&-selected":{color:No,backgroundColor:us,"&:hover":{backgroundColor:us},"&::after":{borderBottomWidth:It,borderBottomColor:No}}}}),[`&${Ne}-root`]:{[`&${Ne}-inline, &${Ne}-vertical`]:{borderInlineEnd:`${Vt}px ${wi} ${Nr}`}},[`&${Ne}-inline`]:{[`${Ne}-sub${Ne}-inline`]:{background:Hn},[`${Ne}-item, ${Ne}-submenu-title`]:Vt&&bt?{width:`calc(100% + ${Vt}px)`}:{},[`${Ne}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${bt}px solid ${wn}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Zn} ${be}`,`opacity ${Zn} ${be}`].join(","),content:'""'},[`&${Ne}-item-danger`]:{"&::after":{borderInlineEndColor:To}}},[`${Ne}-selected, ${Ne}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Zn} ${Ot}`,`opacity ${Zn} ${Ot}`].join(",")}}}}}};const si=En=>{const{componentCls:gn,itemHeight:Ne,itemMarginInline:Xe,padding:wn,menuArrowSize:sn,marginXS:Wn,itemMarginBlock:Hn}=En,Jt=wn+sn+Wn;return{[`${gn}-item`]:{position:"relative",overflow:"hidden"},[`${gn}-item, ${gn}-submenu-title`]:{height:Ne,lineHeight:`${Ne}px`,paddingInline:wn,overflow:"hidden",textOverflow:"ellipsis",marginInline:Xe,marginBlock:Hn,width:`calc(100% - ${Xe*2}px)`},[`> ${gn}-item,
> ${gn}-submenu > ${gn}-submenu-title`]:{height:Ne,lineHeight:`${Ne}px`},[`${gn}-item-group-list ${gn}-submenu-title,
${gn}-submenu-title`]:{paddingInlineEnd:Jt}}};var Nn=En=>{const{componentCls:gn,iconCls:Ne,itemHeight:Xe,colorTextLightSolid:wn,dropdownWidth:sn,controlHeightLG:Wn,motionDurationMid:Hn,motionEaseOut:Jt,paddingXL:It,itemMarginInline:bt,fontSizeLG:Vt,motionDurationSlow:le,paddingXS:Ot,boxShadowSecondary:be,collapsedWidth:pn,collapsedIconSize:Zn}=En,ii={height:Xe,lineHeight:`${Xe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[gn]:{"&-inline, &-vertical":Object.assign({[`&${gn}-root`]:{boxShadow:"none"}},si(En))},[`${gn}-submenu-popup`]:{[`${gn}-vertical`]:Object.assign(Object.assign({},si(En)),{boxShadow:be})}},{[`${gn}-submenu-popup ${gn}-vertical${gn}-sub`]:{minWidth:sn,maxHeight:`calc(100vh - ${Wn*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${gn}-inline`]:{width:"100%",[`&${gn}-root`]:{[`${gn}-item, ${gn}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${le}`,`background ${le}`,`padding ${Hn} ${Jt}`].join(","),[`> ${gn}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${gn}-sub${gn}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${gn}-submenu > ${gn}-submenu-title`]:ii,[`& ${gn}-item-group-title`]:{paddingInlineStart:It}},[`${gn}-item`]:ii}},{[`${gn}-inline-collapsed`]:{width:pn,[`&${gn}-root`]:{[`${gn}-item, ${gn}-submenu ${gn}-submenu-title`]:{[`> ${gn}-inline-collapsed-noicon`]:{fontSize:Vt,textAlign:"center"}}},[`> ${gn}-item,
> ${gn}-item-group > ${gn}-item-group-list > ${gn}-item,
> ${gn}-item-group > ${gn}-item-group-list > ${gn}-submenu > ${gn}-submenu-title,
> ${gn}-submenu > ${gn}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Vt/2}px - ${bt}px)`,textOverflow:"clip",[`
${gn}-submenu-arrow,
${gn}-submenu-expand-icon
`]:{opacity:0},[`${gn}-item-icon, ${Ne}`]:{margin:0,fontSize:Zn,lineHeight:`${Xe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${gn}-item-icon, ${Ne}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${gn}-item-icon, ${Ne}`]:{display:"none"},"a, a:hover":{color:wn}},[`${gn}-item-group-title`]:Object.assign(Object.assign({},Ye.vS),{paddingInline:Ot})}}]};const Yn=En=>{const{componentCls:gn,motionDurationSlow:Ne,motionDurationMid:Xe,motionEaseInOut:wn,motionEaseOut:sn,iconCls:Wn,iconSize:Hn,iconMarginInlineEnd:Jt}=En;return{[`${gn}-item, ${gn}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ne}`,`background ${Ne}`,`padding ${Ne} ${wn}`].join(","),[`${gn}-item-icon, ${Wn}`]:{minWidth:Hn,fontSize:Hn,transition:[`font-size ${Xe} ${sn}`,`margin ${Ne} ${wn}`,`color ${Ne}`].join(","),"+ span":{marginInlineStart:Jt,opacity:1,transition:[`opacity ${Ne} ${wn}`,`margin ${Ne}`,`color ${Ne}`].join(",")}},[`${gn}-item-icon`]:Object.assign({},(0,Ye.Ro)()),[`&${gn}-item-only-child`]:{[`> ${Wn}, > ${gn}-item-icon`]:{marginInlineEnd:0}}},[`${gn}-item-disabled, ${gn}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${gn}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ci=En=>{const{componentCls:gn,motionDurationSlow:Ne,motionEaseInOut:Xe,borderRadius:wn,menuArrowSize:sn,menuArrowOffset:Wn}=En;return{[`${gn}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:En.margin,width:sn,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ne} ${Xe}, opacity ${Ne}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:sn*.6,height:sn*.15,backgroundColor:"currentcolor",borderRadius:wn,transition:[`background ${Ne} ${Xe}`,`transform ${Ne} ${Xe}`,`top ${Ne} ${Xe}`,`color ${Ne} ${Xe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Wn})`},"&::after":{transform:`rotate(-45deg) translateY(${Wn})`}}}}},Mi=En=>{const{antCls:gn,componentCls:Ne,fontSize:Xe,motionDurationSlow:wn,motionDurationMid:sn,motionEaseInOut:Wn,paddingXS:Hn,padding:Jt,colorSplit:It,lineWidth:bt,zIndexPopup:Vt,borderRadiusLG:le,subMenuItemBorderRadius:Ot,menuArrowSize:be,menuArrowOffset:pn,lineType:Zn,menuPanelMaskInset:ii,groupTitleLineHeight:wi,groupTitleFontSize:Nr}=En;return[{"":{[`${Ne}`]:Object.assign(Object.assign({},(0,Ye.dF)()),{"&-hidden":{display:"none"}})},[`${Ne}-submenu-hidden`]:{display:"none"}},{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(En)),(0,Ye.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Xe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${wn} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ne}-item`]:{flex:"none"}},[`${Ne}-item, ${Ne}-submenu, ${Ne}-submenu-title`]:{borderRadius:En.itemBorderRadius},[`${Ne}-item-group-title`]:{padding:`${Hn}px ${Jt}px`,fontSize:Nr,lineHeight:wi,transition:`all ${wn}`},[`&-horizontal ${Ne}-submenu`]:{transition:[`border-color ${wn} ${Wn}`,`background ${wn} ${Wn}`].join(",")},[`${Ne}-submenu, ${Ne}-submenu-inline`]:{transition:[`border-color ${wn} ${Wn}`,`background ${wn} ${Wn}`,`padding ${sn} ${Wn}`].join(",")},[`${Ne}-submenu ${Ne}-sub`]:{cursor:"initial",transition:[`background ${wn} ${Wn}`,`padding ${wn} ${Wn}`].join(",")},[`${Ne}-title-content`]:{transition:`color ${wn}`},[`${Ne}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ne}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:It,borderStyle:Zn,borderWidth:0,borderTopWidth:bt,marginBlock:bt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Yn(En)),{[`${Ne}-item-group`]:{[`${Ne}-item-group-list`]:{margin:0,padding:0,[`${Ne}-item, ${Ne}-submenu-title`]:{paddingInline:`${Xe*2}px ${Jt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Vt,borderRadius:le,boxShadow:"none",transformOrigin:"0 0",[`&${Ne}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ii}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ii},"\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:En.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:En.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:En.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:En.paddingXS},[`> ${Ne}`]:Object.assign(Object.assign(Object.assign({borderRadius:le},Yn(En)),Ci(En)),{[`${Ne}-item, ${Ne}-submenu > ${Ne}-submenu-title`]:{borderRadius:Ot},[`${Ne}-submenu-title::after`]:{transition:`transform ${wn} ${Wn}`}})}}),Ci(En)),{[`&-inline-collapsed ${Ne}-submenu-arrow,
&-inline ${Ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${pn})`},"&::after":{transform:`rotate(45deg) translateX(-${pn})`}},[`${Ne}-submenu-open${Ne}-submenu-inline > ${Ne}-submenu-title > ${Ne}-submenu-arrow`]:{transform:`translateY(-${be*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${pn})`},"&::before":{transform:`rotate(45deg) translateX(${pn})`}}})},{[`${gn}-layout-header`]:{[Ne]:{lineHeight:"inherit"}}}]};var Ri=(En,gn)=>(0,Pn.Z)("Menu",Xe=>{if(gn===!1)return[];const{colorBgElevated:wn,colorPrimary:sn,colorTextLightSolid:Wn,controlHeightLG:Hn,fontSize:Jt,darkItemColor:It,darkDangerItemColor:bt,darkItemBg:Vt,darkSubMenuItemBg:le,darkItemSelectedColor:Ot,darkItemSelectedBg:be,darkDangerItemSelectedBg:pn,darkItemHoverBg:Zn,darkGroupTitleColor:ii,darkItemHoverColor:wi,darkItemDisabledColor:Nr,darkDangerItemHoverColor:_r,darkDangerItemSelectedColor:Tr,darkDangerItemActiveBg:po}=Xe,To=Jt/7*5,Co=(0,qn.TS)(Xe,{menuArrowSize:To,menuHorizontalHeight:Hn*1.15,menuArrowOffset:`${To*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:wn}),Kr=(0,qn.TS)(Co,{itemColor:It,itemHoverColor:wi,groupTitleColor:ii,itemSelectedColor:Ot,itemBg:Vt,popupBg:Vt,subMenuItemBg:le,itemActiveBg:"transparent",itemSelectedBg:be,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Zn,itemDisabledColor:Nr,dangerItemColor:bt,dangerItemHoverColor:_r,dangerItemSelectedColor:Tr,dangerItemActiveBg:po,dangerItemSelectedBg:pn,menuSubMenuBg:le,horizontalItemSelectedColor:Wn,horizontalItemSelectedBg:sn});return[Mi(Co),fn(Co),Nn(Co),Vn(Co,"light"),Vn(Kr,"dark"),pe(Co),(0,De.Z)(Co),(0,hn.oN)(Co,"slide-up"),(0,hn.oN)(Co,"slide-down"),(0,Ue._y)(Co,"zoom-big")]},Xe=>{const{colorPrimary:wn,colorError:sn,colorTextDisabled:Wn,colorErrorBg:Hn,colorText:Jt,colorTextDescription:It,colorBgContainer:bt,colorFillAlter:Vt,colorFillContent:le,lineWidth:Ot,lineWidthBold:be,controlItemBgActive:pn,colorBgTextHover:Zn,controlHeightLG:ii,lineHeight:wi,colorBgElevated:Nr,marginXXS:_r,padding:Tr,fontSize:po,controlHeightSM:To,fontSizeLG:Co,colorTextLightSolid:Kr,colorErrorHover:gr}=Xe,Wr=new fe.C(Kr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Xe.zIndexPopupBase+50,radiusItem:Xe.borderRadiusLG,itemBorderRadius:Xe.borderRadiusLG,radiusSubMenuItem:Xe.borderRadiusSM,subMenuItemBorderRadius:Xe.borderRadiusSM,colorItemText:Jt,itemColor:Jt,colorItemTextHover:Jt,itemHoverColor:Jt,colorItemTextHoverHorizontal:wn,horizontalItemHoverColor:wn,colorGroupTitle:It,groupTitleColor:It,colorItemTextSelected:wn,itemSelectedColor:wn,colorItemTextSelectedHorizontal:wn,horizontalItemSelectedColor:wn,colorItemBg:bt,itemBg:bt,colorItemBgHover:Zn,itemHoverBg:Zn,colorItemBgActive:le,itemActiveBg:pn,colorSubItemBg:Vt,subMenuItemBg:Vt,colorItemBgSelected:pn,itemSelectedBg:pn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:be,activeBarHeight:be,colorActiveBarBorderSize:Ot,activeBarBorderWidth:Ot,colorItemTextDisabled:Wn,itemDisabledColor:Wn,colorDangerItemText:sn,dangerItemColor:sn,colorDangerItemTextHover:sn,dangerItemHoverColor:sn,colorDangerItemTextSelected:sn,dangerItemSelectedColor:sn,colorDangerItemBgActive:Hn,dangerItemActiveBg:Hn,colorDangerItemBgSelected:Hn,dangerItemSelectedBg:Hn,itemMarginInline:Xe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ii,groupTitleLineHeight:wi,collapsedWidth:ii*2,popupBg:Nr,itemMarginBlock:_r,itemPaddingInline:Tr,horizontalLineHeight:`${ii*1.15}px`,iconSize:po,iconMarginInlineEnd:To-po,collapsedIconSize:Co,groupTitleFontSize:po,darkItemDisabledColor:new fe.C(Kr).setAlpha(.25).toRgbString(),darkItemColor:Wr,darkDangerItemColor:sn,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kr,darkItemSelectedBg:wn,darkDangerItemSelectedBg:sn,darkItemHoverBg:"transparent",darkGroupTitleColor:Wr,darkItemHoverColor:Kr,darkDangerItemHoverColor:gr,darkDangerItemSelectedColor:Kr,darkDangerItemActiveBg:sn}},{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"]]})(En),Te=function(En,gn){var Ne={};for(var Xe in En)Object.prototype.hasOwnProperty.call(En,Xe)&&gn.indexOf(Xe)<0&&(Ne[Xe]=En[Xe]);if(En!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,Xe=Object.getOwnPropertySymbols(En);wn<Xe.length;wn++)gn.indexOf(Xe[wn])<0&&Object.prototype.propertyIsEnumerable.call(En,Xe[wn])&&(Ne[Xe[wn]]=En[Xe[wn]]);return Ne},ki=(0,ke.forwardRef)((En,gn)=>{var Ne,Xe;const wn=ke.useContext(Gt.Z),sn=wn||{},{getPrefixCls:Wn,getPopupContainer:Hn,direction:Jt,menu:It}=ke.useContext(vn.E_),bt=Wn(),{prefixCls:Vt,className:le,style:Ot,theme:be="light",expandIcon:pn,_internalDisableMenuItemTitleTooltip:Zn,inlineCollapsed:ii,siderCollapsed:wi,items:Nr,children:_r,rootClassName:Tr,mode:po,selectable:To,onClick:Co,overflowedIndicatorPopupClassName:Kr}=En,gr=Te(En,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Wr=(0,se.Z)(gr,["collapsedWidth"]),Vr=ve(Nr)||_r;(Ne=sn.validator)===null||Ne===void 0||Ne.call(sn,{mode:po});const No=(0,Mt.useEvent)(function(){var Sa;Co==null||Co.apply(void 0,arguments),(Sa=sn.onClick)===null||Sa===void 0||Sa.call(sn)}),us=sn.mode||po,Os=To!=null?To:sn.selectable,Ms=ke.useMemo(()=>wi!==void 0?wi:ii,[ii,wi]),Fo={horizontal:{motionName:`${bt}-slide-up`},inline:(0,Rt.Z)(bt),other:{motionName:`${bt}-zoom-big`}},jt=Wn("menu",Vt||sn.prefixCls),[la,fs]=Ri(jt,!wn),vs=Be()(`${jt}-${be}`,It==null?void 0:It.className,le);let Ws;if(typeof pn=="function")Ws=pn;else if(pn===null||pn===!1)Ws=null;else if(sn.expandIcon===null||sn.expandIcon===!1)Ws=null;else{const Sa=pn!=null?pn:sn.expandIcon;Ws=(0,me.Tm)(Sa,{className:Be()(`${jt}-submenu-expand-icon`,(0,me.l$)(Sa)?(Xe=Sa.props)===null||Xe===void 0?void 0:Xe.className:"")})}const Fa=ke.useMemo(()=>({prefixCls:jt,inlineCollapsed:Ms||!1,direction:Jt,firstLevel:!0,theme:be,mode:us,disableMenuItemTitleTooltip:Zn}),[jt,Ms,Jt,Zn,be]);return la(ke.createElement(Gt.Z.Provider,{value:null},ke.createElement(et.Provider,{value:Fa},ke.createElement(zt.ZP,Object.assign({getPopupContainer:Hn,overflowedIndicator:ke.createElement(vt.Z,null),overflowedIndicatorPopupClassName:Be()(jt,`${jt}-${be}`,Kr),mode:us,selectable:Os,onClick:No},Wr,{inlineCollapsed:Ms,style:Object.assign(Object.assign({},It==null?void 0:It.style),Ot),className:vs,prefixCls:jt,direction:Jt,defaultMotions:Fo,expandIcon:Ws,ref:gn,rootClassName:Be()(Tr,fs)}),Vr))))});const Dn=(0,ke.forwardRef)((En,gn)=>{const Ne=(0,ke.useRef)(null),Xe=ke.useContext(Oe.D);return(0,ke.useImperativeHandle)(gn,()=>({menu:Ne.current,focus:wn=>{var sn;(sn=Ne.current)===null||sn===void 0||sn.focus(wn)}})),ke.createElement(ki,Object.assign({ref:Ne},En,Xe))});Dn.Item=ht,Dn.SubMenu=ft,Dn.Divider=ye,Dn.ItemGroup=zt.BW;var yi=Dn},39722:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{t5:function(){return Nt}});var zt=Kt(92310),ke=Kt.n(zt),Oe=Kt(55477),Cn=Kt(59301),Be=Kt(36355),vn=Kt(77578),Ie=Kt(17356),ge=function(oe,me){var Ut={};for(var et in oe)Object.prototype.hasOwnProperty.call(oe,et)&&me.indexOf(et)<0&&(Ut[et]=oe[et]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(oe);nt<et.length;nt++)me.indexOf(et[nt])<0&&Object.prototype.propertyIsEnumerable.call(oe,et[nt])&&(Ut[et[nt]]=oe[et[nt]]);return Ut};const ye=(oe,me,Ut)=>{if(!(!me&&!Ut))return Cn.createElement(Cn.Fragment,null,me&&Cn.createElement("div",{className:`${oe}-title`},(0,vn.Z)(me)),Cn.createElement("div",{className:`${oe}-inner-content`},(0,vn.Z)(Ut)))},Nt=oe=>{const{hashId:me,prefixCls:Ut,className:et,style:nt,placement:ht="top",title:at,content:ft,children:vt}=oe;return Cn.createElement("div",{className:ke()(me,Ut,`${Ut}-pure`,`${Ut}-placement-${ht}`,et),style:nt},Cn.createElement("div",{className:`${Ut}-arrow`}),Cn.createElement(Oe.G,Object.assign({},oe,{className:me,prefixCls:Ut}),vt||ye(Ut,at,ft)))},se=oe=>{const{prefixCls:me}=oe,Ut=ge(oe,["prefixCls"]),{getPrefixCls:et}=Cn.useContext(Be.E_),nt=et("popover",me),[ht,at]=(0,Ie.Z)(nt);return ht(Cn.createElement(Nt,Object.assign({},Ut,{prefixCls:nt,hashId:at})))};Ti.ZP=se},60324:function(Fi,Ti,Kt){"use strict";var zt=Kt(92310),ke=Kt.n(zt),Oe=Kt(59301),Cn=Kt(77578),Be=Kt(62892),vn=Kt(36355),Ie=Kt(6848),ge=Kt(39722),ye=Kt(17356),Nt=function(me,Ut){var et={};for(var nt in me)Object.prototype.hasOwnProperty.call(me,nt)&&Ut.indexOf(nt)<0&&(et[nt]=me[nt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,nt=Object.getOwnPropertySymbols(me);ht<nt.length;ht++)Ut.indexOf(nt[ht])<0&&Object.prototype.propertyIsEnumerable.call(me,nt[ht])&&(et[nt[ht]]=me[nt[ht]]);return et};const se=me=>{let{title:Ut,content:et,prefixCls:nt}=me;return Oe.createElement(Oe.Fragment,null,Ut&&Oe.createElement("div",{className:`${nt}-title`},(0,Cn.Z)(Ut)),Oe.createElement("div",{className:`${nt}-inner-content`},(0,Cn.Z)(et)))},oe=Oe.forwardRef((me,Ut)=>{const{prefixCls:et,title:nt,content:ht,overlayClassName:at,placement:ft="top",trigger:vt="hover",mouseEnterDelay:Mt=.1,mouseLeaveDelay:Rt=.1,overlayStyle:Gt={}}=me,$t=Nt(me,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ae}=Oe.useContext(vn.E_),ve=ae("popover",et),[fe,Ye]=(0,ye.Z)(ve),De=ae(),hn=ke()(at,Ye);return fe(Oe.createElement(Ie.Z,Object.assign({placement:ft,trigger:vt,mouseEnterDelay:Mt,mouseLeaveDelay:Rt,overlayStyle:Gt},$t,{prefixCls:ve,overlayClassName:hn,ref:Ut,overlay:nt||ht?Oe.createElement(se,{prefixCls:ve,title:nt,content:ht}):null,transitionName:(0,Be.m)(De,"zoom-big",$t.transitionName),"data-popover-inject":!0})))});oe._InternalPanelDoNotUseOrYouWillBeFired=ge.ZP,Ti.Z=oe},17356:function(Fi,Ti,Kt){"use strict";var zt=Kt(17313),ke=Kt(29878),Oe=Kt(19447),Cn=Kt(33166),Be=Kt(83116),vn=Kt(37613);const Ie=Nt=>{const{componentCls:se,popoverColor:oe,minWidth:me,fontWeightStrong:Ut,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:ht,borderRadiusLG:at,zIndexPopup:ft,marginXS:vt,colorBgElevated:Mt,popoverBg:Rt}=Nt;return[{[se]:Object.assign(Object.assign({},(0,zt.Wf)(Nt)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ft,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Mt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${se}-content`]:{position:"relative"},[`${se}-inner`]:{backgroundColor:Rt,backgroundClip:"padding-box",borderRadius:at,boxShadow:nt,padding:et},[`${se}-title`]:{minWidth:me,marginBottom:vt,color:ht,fontWeight:Ut},[`${se}-inner-content`]:{color:oe}})},(0,Oe.ZP)(Nt,{colorBg:"var(--antd-arrow-background-color)"}),{[`${se}-pure`]:{position:"relative",maxWidth:"none",margin:Nt.sizePopupArrow,display:"inline-block",[`${se}-content`]:{display:"inline-block"}}}]},ge=Nt=>{const{componentCls:se}=Nt;return{[se]:Cn.i.map(oe=>{const me=Nt[`${oe}6`];return{[`&${se}-${oe}`]:{"--antd-arrow-background-color":me,[`${se}-inner`]:{backgroundColor:me},[`${se}-arrow`]:{background:"transparent"}}}})}},ye=Nt=>{const{componentCls:se,lineWidth:oe,lineType:me,colorSplit:Ut,paddingSM:et,controlHeight:nt,fontSize:ht,lineHeight:at,padding:ft}=Nt,vt=nt-Math.round(ht*at),Mt=vt/2,Rt=vt/2-oe,Gt=ft;return{[se]:{[`${se}-inner`]:{padding:0},[`${se}-title`]:{margin:0,padding:`${Mt}px ${Gt}px ${Rt}px`,borderBottom:`${oe}px ${me} ${Ut}`},[`${se}-inner-content`]:{padding:`${et}px ${Gt}px`}}}};Ti.Z=(0,Be.Z)("Popover",Nt=>{const{colorBgElevated:se,colorText:oe,wireframe:me}=Nt,Ut=(0,vn.TS)(Nt,{popoverPadding:12,popoverBg:se,popoverColor:oe});return[Ie(Ut),ge(Ut),me&&ye(Ut),(0,ke._y)(Ut,"zoom-big")]},Nt=>({width:177,minWidth:177,zIndexPopup:Nt.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return Xt}});var zt=Kt(96663),ke=Kt(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Cn=Oe,Be=Kt(7657),vn=function(Vn,si){return ke.createElement(Be.Z,(0,zt.Z)({},Vn,{ref:si,icon:Cn}))},Ie=ke.forwardRef(vn),ge=Ie,ye=Kt(92310),Nt=Kt.n(ye),se=Kt(90493),oe=Kt(72071),me=Kt(6620),Ut=Kt(18929),et=Kt(10228),nt=Kt(26112);function ht(Ve,Vn){var si=Ve.disabled,An=Ve.prefixCls,Nn=Ve.character,Yn=Ve.characterRender,Ci=Ve.index,Mi=Ve.count,Ri=Ve.value,Te=Ve.allowHalf,ci=Ve.focused,ki=Ve.onHover,Dn=Ve.onClick,yi=function(Hn){ki(Hn,Ci)},En=function(Hn){Dn(Hn,Ci)},gn=function(Hn){Hn.keyCode===et.Z.ENTER&&Dn(Hn,Ci)},Ne=Ci+1,Xe=new Set([An]);Ri===0&&Ci===0&&ci?Xe.add("".concat(An,"-focused")):Te&&Ri+.5>=Ne&&Ri<Ne?(Xe.add("".concat(An,"-half")),Xe.add("".concat(An,"-active")),ci&&Xe.add("".concat(An,"-focused"))):(Ne<=Ri?Xe.add("".concat(An,"-full")):Xe.add("".concat(An,"-zero")),Ne===Ri&&ci&&Xe.add("".concat(An,"-focused")));var wn=typeof Nn=="function"?Nn(Ve):Nn,sn=ke.createElement("li",{className:Nt()(Array.from(Xe)),ref:Vn},ke.createElement("div",{onClick:si?null:En,onKeyDown:si?null:gn,onMouseMove:si?null:yi,role:"radio","aria-checked":Ri>Ci?"true":"false","aria-posinset":Ci+1,"aria-setsize":Mi,tabIndex:si?-1:0},ke.createElement("div",{className:"".concat(An,"-first")},wn),ke.createElement("div",{className:"".concat(An,"-second")},wn)));return Yn&&(sn=Yn(sn,Ve)),sn}var at=ke.forwardRef(ht);function ft(){var Ve=ke.useRef({});function Vn(An){return Ve.current[An]}function si(An){return function(Nn){Ve.current[An]=Nn}}return[Vn,si]}function vt(Ve){var Vn=Ve.pageXOffset,si="scrollLeft";if(typeof Vn!="number"){var An=Ve.document;Vn=An.documentElement[si],typeof Vn!="number"&&(Vn=An.body[si])}return Vn}function Mt(Ve){var Vn,si,An=Ve.ownerDocument,Nn=An.body,Yn=An&&An.documentElement,Ci=Ve.getBoundingClientRect();return Vn=Ci.left,si=Ci.top,Vn-=Yn.clientLeft||Nn.clientLeft||0,si-=Yn.clientTop||Nn.clientTop||0,{left:Vn,top:si}}function Rt(Ve){var Vn=Mt(Ve),si=Ve.ownerDocument,An=si.defaultView||si.parentWindow;return Vn.left+=vt(An),Vn.left}var Gt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function $t(Ve,Vn){var si,An=Ve.prefixCls,Nn=An===void 0?"rc-rate":An,Yn=Ve.className,Ci=Ve.defaultValue,Mi=Ve.value,Ri=Ve.count,Te=Ri===void 0?5:Ri,ci=Ve.allowHalf,ki=ci===void 0?!1:ci,Dn=Ve.allowClear,yi=Dn===void 0?!0:Dn,En=Ve.character,gn=En===void 0?"\u2605":En,Ne=Ve.characterRender,Xe=Ve.disabled,wn=Ve.direction,sn=wn===void 0?"ltr":wn,Wn=Ve.tabIndex,Hn=Wn===void 0?0:Wn,Jt=Ve.autoFocus,It=Ve.onHoverChange,bt=Ve.onChange,Vt=Ve.onFocus,le=Ve.onBlur,Ot=Ve.onKeyDown,be=Ve.onMouseLeave,pn=(0,me.Z)(Ve,Gt),Zn=ft(),ii=(0,oe.Z)(Zn,2),wi=ii[0],Nr=ii[1],_r=ke.useRef(null),Tr=function(){if(!Xe){var we;(we=_r.current)===null||we===void 0||we.focus()}};ke.useImperativeHandle(Vn,function(){return{focus:Tr,blur:function(){if(!Xe){var we;(we=_r.current)===null||we===void 0||we.blur()}}}});var po=(0,Ut.Z)(Ci||0,{value:Mi}),To=(0,oe.Z)(po,2),Co=To[0],Kr=To[1],gr=(0,Ut.Z)(null),Wr=(0,oe.Z)(gr,2),Vr=Wr[0],No=Wr[1],us=function(we,qe){var In=sn==="rtl",ui=we+1;if(ki){var Pi=wi(we),Fe=Rt(Pi),Qn=Pi.clientWidth;(In&&qe-Fe>Qn/2||!In&&qe-Fe<Qn/2)&&(ui-=.5)}return ui},Os=function(we){Kr(we),bt==null||bt(we)},Ms=ke.useState(!1),Fo=(0,oe.Z)(Ms,2),jt=Fo[0],la=Fo[1],fs=function(){la(!0),Vt==null||Vt()},vs=function(){la(!1),le==null||le()},Ws=ke.useState(null),Fa=(0,oe.Z)(Ws,2),Sa=Fa[0],Pr=Fa[1],Lr=function(we,qe){var In=us(qe,we.pageX);In!==Vr&&(Pr(In),No(null)),It==null||It(In)},ln=function(we){Xe||(Pr(null),No(null),It==null||It(void 0)),we&&(be==null||be(we))},nn=function(we,qe){var In=us(qe,we.pageX),ui=!1;yi&&(ui=In===Co),ln(),Os(ui?0:In),No(ui?In:null)},Ae=function(we){var qe=we.keyCode,In=sn==="rtl",ui=Co;qe===et.Z.RIGHT&&ui<Te&&!In?(ki?ui+=.5:ui+=1,Os(ui),we.preventDefault()):qe===et.Z.LEFT&&ui>0&&!In||qe===et.Z.RIGHT&&ui>0&&In?(ki?ui-=.5:ui-=1,Os(ui),we.preventDefault()):qe===et.Z.LEFT&&ui<Te&&In&&(ki?ui+=.5:ui+=1,Os(ui),we.preventDefault()),Ot==null||Ot(we)};ke.useEffect(function(){Jt&&!Xe&&Tr()},[]);var Tn=new Array(Te).fill(0).map(function(He,we){return ke.createElement(at,{ref:Nr(we),index:we,count:Te,disabled:Xe,prefixCls:"".concat(Nn,"-star"),allowHalf:ki,value:Sa===null?Co:Sa,onClick:nn,onHover:Lr,key:He||we,character:gn,characterRender:Ne,focused:jt})}),Jn=Nt()(Nn,Yn,(si={},(0,se.Z)(si,"".concat(Nn,"-disabled"),Xe),(0,se.Z)(si,"".concat(Nn,"-rtl"),sn==="rtl"),si));return ke.createElement("ul",(0,zt.Z)({className:Jn,onMouseLeave:ln,tabIndex:Xe?-1:Hn,onFocus:Xe?null:fs,onBlur:Xe?null:vs,onKeyDown:Xe?null:Ae,ref:_r,role:"radiogroup"},(0,nt.Z)(pn,{aria:!0,data:!0,attr:!0})),Tn)}var ae=ke.forwardRef($t),ve=ae,fe=Kt(36355),Ye=Kt(6848),De=Kt(17313),hn=Kt(83116),Ue=Kt(37613);const Pn=Ve=>{const{componentCls:Vn}=Ve;return{[`${Vn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ve.marginXS},"> div":{transition:`all ${Ve.motionDurationMid}, outline 0s`,"&:hover":{transform:Ve.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ve.lineWidth}px dashed ${Ve.starColor}`,transform:Ve.starHoverScale}},"&-first, &-second":{color:Ve.starBg,transition:`all ${Ve.motionDurationMid}`,userSelect:"none",[Ve.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Vn}-star-first, &-half ${Vn}-star-second`]:{opacity:1},[`&-half ${Vn}-star-first, &-full ${Vn}-star-second`]:{color:"inherit"}}}},qn=Ve=>({[`&-rtl${Ve.componentCls}`]:{direction:"rtl"}}),un=Ve=>{const{componentCls:Vn}=Ve;return{[Vn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(Ve)),{display:"inline-block",margin:0,padding:0,color:Ve.starColor,fontSize:Ve.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Vn} ${Vn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Pn(Ve)),{[`+ ${Vn}-text`]:{display:"inline-block",marginInlineStart:Ve.marginXS,fontSize:Ve.fontSize}}),qn(Ve))}};var fn=(0,hn.Z)("Rate",Ve=>{const Vn=(0,Ue.TS)(Ve,{});return[un(Vn)]},Ve=>({starColor:Ve.yellow6,starSize:Ve.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ve.colorFillContent})),mn=function(Ve,Vn){var si={};for(var An in Ve)Object.prototype.hasOwnProperty.call(Ve,An)&&Vn.indexOf(An)<0&&(si[An]=Ve[An]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,An=Object.getOwnPropertySymbols(Ve);Nn<An.length;Nn++)Vn.indexOf(An[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Ve,An[Nn])&&(si[An[Nn]]=Ve[An[Nn]]);return si},Xt=ke.forwardRef((Ve,Vn)=>{const{prefixCls:si,className:An,rootClassName:Nn,style:Yn,tooltips:Ci,character:Mi=ke.createElement(ge,null)}=Ve,Ri=mn(Ve,["prefixCls","className","rootClassName","style","tooltips","character"]),Te=(Xe,wn)=>{let{index:sn}=wn;return Ci?ke.createElement(Ye.Z,{title:Ci[sn]},Xe):Xe},{getPrefixCls:ci,direction:ki,rate:Dn}=ke.useContext(fe.E_),yi=ci("rate",si),[En,gn]=fn(yi),Ne=Object.assign(Object.assign({},Dn==null?void 0:Dn.style),Yn);return En(ke.createElement(ve,Object.assign({ref:Vn,character:Mi,characterRender:Te},Ri,{className:Nt()(An,Nn,gn,Dn==null?void 0:Dn.className),style:Ne,prefixCls:yi,direction:ki})))})},57809:function(Fi,Ti,Kt){"use strict";var zt=Kt(92310),ke=Kt.n(zt),Oe=Kt(77861),Cn=Kt(2738),Be=Kt(59301),vn=Kt(53487),Ie=Kt(62892),ge=Kt(19080),ye=Kt(36355),Nt=Kt(1684),se=Kt(93891),oe=Kt(19716),me=Kt(32441),Ut=Kt(33234),et=Kt(14154),nt=Kt(58582),ht=Kt(84443),at=Kt(66339),ft=function($t,ae){var ve={};for(var fe in $t)Object.prototype.hasOwnProperty.call($t,fe)&&ae.indexOf(fe)<0&&(ve[fe]=$t[fe]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,fe=Object.getOwnPropertySymbols($t);Ye<fe.length;Ye++)ae.indexOf(fe[Ye])<0&&Object.prototype.propertyIsEnumerable.call($t,fe[Ye])&&(ve[fe[Ye]]=$t[fe[Ye]]);return ve};const vt="SECRET_COMBOBOX_MODE_DO_NOT_USE",Mt=($t,ae)=>{var ve,{prefixCls:fe,bordered:Ye=!0,className:De,rootClassName:hn,getPopupContainer:Ue,popupClassName:Pn,dropdownClassName:qn,listHeight:un=256,placement:fn,listItemHeight:mn=24,size:pe,disabled:Xt,notFoundContent:Ve,status:Vn,builtinPlacements:si,dropdownMatchSelectWidth:An,popupMatchSelectWidth:Nn,direction:Yn,style:Ci,allowClear:Mi}=$t,Ri=ft($t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Te,getPrefixCls:ci,renderEmpty:ki,direction:Dn,virtual:yi,popupMatchSelectWidth:En,popupOverflow:gn,select:Ne}=Be.useContext(ye.E_),Xe=ci("select",fe),wn=ci(),sn=Yn!=null?Yn:Dn,{compactSize:Wn,compactItemClassnames:Hn}=(0,Ut.ri)(Xe,sn),[Jt,It]=(0,et.Z)(Xe),bt=Be.useMemo(()=>{const{mode:Fo}=Ri;if(Fo!=="combobox")return Fo===vt?"combobox":Fo},[Ri.mode]),Vt=bt==="multiple"||bt==="tags",le=(0,ht.Z)(Ri.suffixIcon,Ri.showArrow),Ot=(ve=Nn!=null?Nn:An)!==null&&ve!==void 0?ve:En,{status:be,hasFeedback:pn,isFormItemInput:Zn,feedbackIcon:ii}=Be.useContext(me.aM),wi=(0,ge.F)(be,Vn);let Nr;Ve!==void 0?Nr=Ve:bt==="combobox"?Nr=null:Nr=(ki==null?void 0:ki("Select"))||Be.createElement(se.Z,{componentName:"Select"});const{suffixIcon:_r,itemIcon:Tr,removeIcon:po,clearIcon:To}=(0,at.Z)(Object.assign(Object.assign({},Ri),{multiple:Vt,hasFeedback:pn,feedbackIcon:ii,showSuffixIcon:le,prefixCls:Xe,showArrow:Ri.showArrow,componentName:"Select"})),Co=Mi===!0?{clearIcon:To}:Mi,Kr=(0,Cn.Z)(Ri,["suffixIcon","itemIcon"]),gr=ke()(Pn||qn,{[`${Xe}-dropdown-${sn}`]:sn==="rtl"},hn,It),Wr=(0,oe.Z)(Fo=>{var jt;return(jt=pe!=null?pe:Wn)!==null&&jt!==void 0?jt:Fo}),Vr=Be.useContext(Nt.Z),No=Xt!=null?Xt:Vr,us=ke()({[`${Xe}-lg`]:Wr==="large",[`${Xe}-sm`]:Wr==="small",[`${Xe}-rtl`]:sn==="rtl",[`${Xe}-borderless`]:!Ye,[`${Xe}-in-form-item`]:Zn},(0,ge.Z)(Xe,wi,pn),Hn,Ne==null?void 0:Ne.className,De,hn,It),Os=Be.useMemo(()=>fn!==void 0?fn:sn==="rtl"?"bottomRight":"bottomLeft",[fn,sn]),Ms=(0,nt.Z)(si,gn);return Jt(Be.createElement(Oe.ZP,Object.assign({ref:ae,virtual:yi,showSearch:Ne==null?void 0:Ne.showSearch},Kr,{style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),Ci),dropdownMatchSelectWidth:Ot,builtinPlacements:Ms,transitionName:(0,Ie.m)(wn,"slide-up",Ri.transitionName),listHeight:un,listItemHeight:mn,mode:bt,prefixCls:Xe,placement:Os,direction:sn,suffixIcon:_r,menuItemSelectedIcon:Tr,removeIcon:po,allowClear:Co,notFoundContent:Nr,className:us,getPopupContainer:Ue||Te,dropdownClassName:gr,disabled:No})))},Rt=Be.forwardRef(Mt),Gt=(0,vn.Z)(Rt);Rt.SECRET_COMBOBOX_MODE_DO_NOT_USE=vt,Rt.Option=Oe.Wx,Rt.OptGroup=Oe.Xo,Rt._InternalPanelDoNotUseOrYouWillBeFired=Gt,Ti.default=Rt},14154:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return Rt}});var zt=Kt(17313),ke=Kt(74207),Oe=Kt(37613),Cn=Kt(83116),Be=Kt(13826),vn=Kt(92899);const Ie=Gt=>{const{optionHeight:$t,optionFontSize:ae,optionLineHeight:ve,optionPadding:fe}=Gt;return{position:"relative",display:"block",minHeight:$t,padding:fe,color:Gt.colorText,fontWeight:"normal",fontSize:ae,lineHeight:ve,boxSizing:"border-box"}};var ye=Gt=>{const{antCls:$t,componentCls:ae}=Gt,ve=`${ae}-item`,fe=`&${$t}-slide-up-enter${$t}-slide-up-enter-active`,Ye=`&${$t}-slide-up-appear${$t}-slide-up-appear-active`,De=`&${$t}-slide-up-leave${$t}-slide-up-leave-active`,hn=`${ae}-dropdown-placement-`;return[{[`${ae}-dropdown`]:Object.assign(Object.assign({},(0,zt.Wf)(Gt)),{position:"absolute",top:-9999,zIndex:Gt.zIndexPopup,boxSizing:"border-box",padding:Gt.paddingXXS,overflow:"hidden",fontSize:Gt.fontSize,fontVariant:"initial",backgroundColor:Gt.colorBgElevated,borderRadius:Gt.borderRadiusLG,outline:"none",boxShadow:Gt.boxShadowSecondary,[`
${fe}${hn}bottomLeft,
${Ye}${hn}bottomLeft
`]:{animationName:Be.fJ},[`
${fe}${hn}topLeft,
${Ye}${hn}topLeft,
${fe}${hn}topRight,
${Ye}${hn}topRight
`]:{animationName:Be.Qt},[`${De}${hn}bottomLeft`]:{animationName:Be.Uw},[`
${De}${hn}topLeft,
${De}${hn}topRight
`]:{animationName:Be.ly},"&-hidden":{display:"none"},[`${ve}`]:Object.assign(Object.assign({},Ie(Gt)),{cursor:"pointer",transition:`background ${Gt.motionDurationSlow} ease`,borderRadius:Gt.borderRadiusSM,"&-group":{color:Gt.colorTextDescription,fontSize:Gt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},zt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ve}-option-disabled)`]:{backgroundColor:Gt.optionActiveBg},[`&-selected:not(${ve}-option-disabled)`]:{color:Gt.optionSelectedColor,fontWeight:Gt.optionSelectedFontWeight,backgroundColor:Gt.optionSelectedBg,[`${ve}-option-state`]:{color:Gt.colorPrimary}},"&-disabled":{[`&${ve}-option-selected`]:{backgroundColor:Gt.colorBgContainerDisabled},color:Gt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Gt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Be.oN)(Gt,"slide-up"),(0,Be.oN)(Gt,"slide-down"),(0,vn.Fm)(Gt,"move-up"),(0,vn.Fm)(Gt,"move-down")]};const Nt=2,se=Gt=>{let{controlHeightSM:$t,controlHeight:ae,lineWidth:ve}=Gt;const fe=(ae-$t)/2-ve,Ye=Math.ceil(fe/2);return[fe,Ye]};function oe(Gt,$t){const{componentCls:ae,iconCls:ve}=Gt,fe=`${ae}-selection-overflow`,Ye=Gt.multipleSelectItemHeight,[De]=se(Gt),hn=$t?`${ae}-${$t}`:"";return{[`${ae}-multiple${hn}`]:{fontSize:Gt.fontSize,[fe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ae}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${De-Nt}px ${Nt*2}px`,borderRadius:Gt.borderRadius,[`${ae}-show-search&`]:{cursor:"text"},[`${ae}-disabled&`]:{background:Gt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Nt}px 0`,lineHeight:`${Ye}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${ae}-show-arrow ${ae}-selector,
&${ae}-allow-clear ${ae}-selector
`]:{paddingInlineEnd:Gt.fontSizeIcon+Gt.controlPaddingHorizontal},[`${ae}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ye,marginTop:Nt,marginBottom:Nt,lineHeight:`${Ye-Gt.lineWidth*2}px`,background:Gt.multipleItemBg,border:`${Gt.lineWidth}px ${Gt.lineType} ${Gt.multipleItemBorderColor}`,borderRadius:Gt.borderRadiusSM,cursor:"default",transition:`font-size ${Gt.motionDurationSlow}, line-height ${Gt.motionDurationSlow}, height ${Gt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Nt*2,paddingInlineStart:Gt.paddingXS,paddingInlineEnd:Gt.paddingXS/2,[`${ae}-disabled&`]:{color:Gt.multipleItemColorDisabled,borderColor:Gt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Gt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,zt.Ro)()),{display:"inline-flex",alignItems:"center",color:Gt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ve}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Gt.colorIconHover}})},[`${fe}-item + ${fe}-item`]:{[`${ae}-selection-search`]:{marginInlineStart:0}},[`${ae}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Gt.inputPaddingHorizontalBase-De,"\n &-input,\n &-mirror\n ":{height:Ye,fontFamily:Gt.fontFamily,lineHeight:`${Ye}px`,transition:`all ${Gt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ae}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Gt.inputPaddingHorizontalBase,insetInlineEnd:Gt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Gt.motionDurationSlow}`}}}}var Ut=Gt=>{const{componentCls:$t}=Gt,ae=(0,Oe.TS)(Gt,{controlHeight:Gt.controlHeightSM,multipleSelectItemHeight:Gt.controlHeightXS,borderRadius:Gt.borderRadiusSM,borderRadiusSM:Gt.borderRadiusXS}),ve=(0,Oe.TS)(Gt,{fontSize:Gt.fontSizeLG,controlHeight:Gt.controlHeightLG,multipleSelectItemHeight:Gt.multipleItemHeightLG,borderRadius:Gt.borderRadiusLG,borderRadiusSM:Gt.borderRadius}),[,fe]=se(Gt);return[oe(Gt),oe(ae,"sm"),{[`${$t}-multiple${$t}-sm`]:{[`${$t}-selection-placeholder`]:{insetInline:Gt.controlPaddingHorizontalSM-Gt.lineWidth},[`${$t}-selection-search`]:{marginInlineStart:fe}}},oe(ve,"lg")]};function et(Gt,$t){const{componentCls:ae,inputPaddingHorizontalBase:ve,borderRadius:fe}=Gt,Ye=Gt.controlHeight-Gt.lineWidth*2,De=Math.ceil(Gt.fontSize*1.25),hn=$t?`${ae}-${$t}`:"";return{[`${ae}-single${hn}`]:{fontSize:Gt.fontSize,[`${ae}-selector`]:Object.assign(Object.assign({},(0,zt.Wf)(Gt)),{display:"flex",borderRadius:fe,[`${ae}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ve,insetInlineEnd:ve,bottom:0,"&-input":{width:"100%"}},[`
${ae}-selection-item,
${ae}-selection-placeholder
`]:{padding:0,lineHeight:`${Ye}px`,transition:`all ${Gt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ye}px`}},[`${ae}-selection-item`]:{position:"relative",userSelect:"none"},[`${ae}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ae}-selection-item:after`,`${ae}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${ae}-show-arrow ${ae}-selection-item,
&${ae}-show-arrow ${ae}-selection-placeholder
`]:{paddingInlineEnd:De},[`&${ae}-open ${ae}-selection-item`]:{color:Gt.colorTextPlaceholder},[`&:not(${ae}-customize-input)`]:{[`${ae}-selector`]:{width:"100%",height:Gt.controlHeight,padding:`0 ${ve}px`,[`${ae}-selection-search-input`]:{height:Ye},"&:after":{lineHeight:`${Ye}px`}}},[`&${ae}-customize-input`]:{[`${ae}-selector`]:{"&:after":{display:"none"},[`${ae}-selection-search`]:{position:"static",width:"100%"},[`${ae}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ve}px`,"&:after":{display:"none"}}}}}}}function nt(Gt){const{componentCls:$t}=Gt,ae=Gt.controlPaddingHorizontalSM-Gt.lineWidth;return[et(Gt),et((0,Oe.TS)(Gt,{controlHeight:Gt.controlHeightSM,borderRadius:Gt.borderRadiusSM}),"sm"),{[`${$t}-single${$t}-sm`]:{[`&:not(${$t}-customize-input)`]:{[`${$t}-selection-search`]:{insetInlineStart:ae,insetInlineEnd:ae},[`${$t}-selector`]:{padding:`0 ${ae}px`},[`&${$t}-show-arrow ${$t}-selection-search`]:{insetInlineEnd:ae+Gt.fontSize*1.5},[`
&${$t}-show-arrow ${$t}-selection-item,
&${$t}-show-arrow ${$t}-selection-placeholder
`]:{paddingInlineEnd:Gt.fontSize*1.5}}}},et((0,Oe.TS)(Gt,{controlHeight:Gt.singleItemHeightLG,fontSize:Gt.fontSizeLG,borderRadius:Gt.borderRadiusLG}),"lg")]}const ht=Gt=>{const{componentCls:$t,selectorBg:ae}=Gt;return{position:"relative",backgroundColor:ae,border:`${Gt.lineWidth}px ${Gt.lineType} ${Gt.colorBorder}`,transition:`all ${Gt.motionDurationMid} ${Gt.motionEaseInOut}`,input:{cursor:"pointer"},[`${$t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${$t}-disabled&`]:{color:Gt.colorTextDisabled,background:Gt.colorBgContainerDisabled,cursor:"not-allowed",[`${$t}-multiple&`]:{background:Gt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},at=function(Gt,$t){let ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ve,borderHoverColor:fe,outlineColor:Ye,antCls:De}=$t,hn=ae?{[`${ve}-selector`]:{borderColor:fe}}:{};return{[Gt]:{[`&:not(${ve}-disabled):not(${ve}-customize-input):not(${De}-pagination-size-changer)`]:Object.assign(Object.assign({},hn),{[`${ve}-focused& ${ve}-selector`]:{borderColor:fe,boxShadow:`0 0 0 ${$t.controlOutlineWidth}px ${Ye}`,outline:0},[`&:hover ${ve}-selector`]:{borderColor:fe}})}}},ft=Gt=>{const{componentCls:$t}=Gt;return{[`${$t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},vt=Gt=>{const{componentCls:$t,inputPaddingHorizontalBase:ae,iconCls:ve}=Gt;return{[$t]:Object.assign(Object.assign({},(0,zt.Wf)(Gt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${$t}-customize-input) ${$t}-selector`]:Object.assign(Object.assign({},ht(Gt)),ft(Gt)),[`${$t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},zt.vS),[`${$t}-selection-placeholder`]:Object.assign(Object.assign({},zt.vS),{flex:1,color:Gt.colorTextPlaceholder,pointerEvents:"none"}),[`${$t}-arrow`]:Object.assign(Object.assign({},(0,zt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ae,height:Gt.fontSizeIcon,marginTop:-Gt.fontSizeIcon/2,color:Gt.colorTextQuaternary,fontSize:Gt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ve]:{verticalAlign:"top",transition:`transform ${Gt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${$t}-suffix)`]:{pointerEvents:"auto"}},[`${$t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${$t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ae,zIndex:1,display:"inline-block",width:Gt.fontSizeIcon,height:Gt.fontSizeIcon,marginTop:-Gt.fontSizeIcon/2,color:Gt.colorTextQuaternary,fontSize:Gt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Gt.clearBg,cursor:"pointer",opacity:0,transition:`color ${Gt.motionDurationMid} ease, opacity ${Gt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Gt.colorTextTertiary}},"&:hover":{[`${$t}-clear`]:{opacity:1}}}),[`${$t}-has-feedback`]:{[`${$t}-clear`]:{insetInlineEnd:ae+Gt.fontSize+Gt.paddingXS}}}},Mt=Gt=>{const{componentCls:$t}=Gt;return[{[$t]:{[`&-borderless ${$t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${$t}-in-form-item`]:{width:"100%"}}},vt(Gt),nt(Gt),Ut(Gt),ye(Gt),{[`${$t}-rtl`]:{direction:"rtl"}},at($t,(0,Oe.TS)(Gt,{borderHoverColor:Gt.colorPrimaryHover,outlineColor:Gt.controlOutline})),at(`${$t}-status-error`,(0,Oe.TS)(Gt,{borderHoverColor:Gt.colorErrorHover,outlineColor:Gt.colorErrorOutline}),!0),at(`${$t}-status-warning`,(0,Oe.TS)(Gt,{borderHoverColor:Gt.colorWarningHover,outlineColor:Gt.colorWarningOutline}),!0),(0,ke.c)(Gt,{borderElCls:`${$t}-selector`,focusElCls:`${$t}-focused`})]};var Rt=(0,Cn.Z)("Select",(Gt,$t)=>{let{rootPrefixCls:ae}=$t;const ve=(0,Oe.TS)(Gt,{rootPrefixCls:ae,inputPaddingHorizontalBase:Gt.paddingSM-1,multipleSelectItemHeight:Gt.multipleItemHeight});return[Mt(ve)]},Gt=>{const{fontSize:$t,lineHeight:ae,controlHeight:ve,controlPaddingHorizontal:fe,zIndexPopupBase:Ye,colorText:De,fontWeightStrong:hn,controlItemBgActive:Ue,controlItemBgHover:Pn,colorBgContainer:qn,colorFillSecondary:un,controlHeightLG:fn,controlHeightSM:mn,colorBgContainerDisabled:pe,colorTextDisabled:Xt}=Gt;return{zIndexPopup:Ye+50,optionSelectedColor:De,optionSelectedFontWeight:hn,optionSelectedBg:Ue,optionActiveBg:Pn,optionPadding:`${(ve-$t*ae)/2}px ${fe}px`,optionFontSize:$t,optionLineHeight:ae,optionHeight:ve,selectorBg:qn,clearBg:qn,singleItemHeightLG:fn,multipleItemBg:un,multipleItemBorderColor:"transparent",multipleItemHeight:mn,multipleItemHeightLG:ve,multipleSelectorBgDisabled:pe,multipleItemColorDisabled:Xt,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ke}});const zt=Oe=>{const Be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Be),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Be),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Be),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Be),{points:["br","tr"],offset:[0,-4]})}};function ke(Oe,Cn){return Oe||zt(Cn)}},84443:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return zt}});function zt(ke,Oe){return Oe!==void 0?Oe:ke!==null}},66339:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});var zt=Kt(40001),ke=Kt(19248),Oe=Kt(99267),Cn=Kt(84105),Be=Kt(58617),vn=Kt(47472),Ie=Kt(59301);function ge(ye){let{suffixIcon:Nt,clearIcon:se,menuItemSelectedIcon:oe,removeIcon:me,loading:Ut,multiple:et,hasFeedback:nt,prefixCls:ht,showSuffixIcon:at,feedbackIcon:ft,showArrow:vt,componentName:Mt}=ye;const Rt=se!=null?se:Ie.createElement(ke.Z,null),Gt=fe=>Nt===null&&!nt&&!vt?null:Ie.createElement(Ie.Fragment,null,at!==!1&&fe,nt&&ft);let $t=null;if(Nt!==void 0)$t=Gt(Nt);else if(Ut)$t=Gt(Ie.createElement(Be.Z,{spin:!0}));else{const fe=`${ht}-suffix`;$t=Ye=>{let{open:De,showSearch:hn}=Ye;return Gt(De&&hn?Ie.createElement(vn.Z,{className:fe}):Ie.createElement(Cn.Z,{className:fe}))}}let ae=null;oe!==void 0?ae=oe:et?ae=Ie.createElement(zt.Z,null):ae=null;let ve=null;return me!==void 0?ve=me:ve=Ie.createElement(Oe.Z,null),{clearIcon:Rt,suffixIcon:$t,itemIcon:ae,removeIcon:ve}}},61621:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return gn}});var zt=Kt(92310),ke=Kt.n(zt),Oe=Kt(59301),Cn=Kt(36355),Be=Kt(2738),Ie=Ne=>{const{prefixCls:Xe,className:wn,style:sn,size:Wn,shape:Hn}=Ne,Jt=ke()({[`${Xe}-lg`]:Wn==="large",[`${Xe}-sm`]:Wn==="small"}),It=ke()({[`${Xe}-circle`]:Hn==="circle",[`${Xe}-square`]:Hn==="square",[`${Xe}-round`]:Hn==="round"}),bt=Oe.useMemo(()=>typeof Wn=="number"?{width:Wn,height:Wn,lineHeight:`${Wn}px`}:{},[Wn]);return Oe.createElement("span",{className:ke()(Xe,Jt,It,wn),style:Object.assign(Object.assign({},bt),sn)})},ge=Kt(93083),ye=Kt(83116),Nt=Kt(37613);const se=new ge.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),oe=Ne=>({height:Ne,lineHeight:`${Ne}px`}),me=Ne=>Object.assign({width:Ne},oe(Ne)),Ut=Ne=>({background:Ne.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:Ne.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=Ne=>Object.assign({width:Ne*5,minWidth:Ne*5},oe(Ne)),nt=Ne=>{const{skeletonAvatarCls:Xe,gradientFromColor:wn,controlHeight:sn,controlHeightLG:Wn,controlHeightSM:Hn}=Ne;return{[`${Xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wn},me(sn)),[`${Xe}${Xe}-circle`]:{borderRadius:"50%"},[`${Xe}${Xe}-lg`]:Object.assign({},me(Wn)),[`${Xe}${Xe}-sm`]:Object.assign({},me(Hn))}},ht=Ne=>{const{controlHeight:Xe,borderRadiusSM:wn,skeletonInputCls:sn,controlHeightLG:Wn,controlHeightSM:Hn,gradientFromColor:Jt}=Ne;return{[`${sn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Jt,borderRadius:wn},et(Xe)),[`${sn}-lg`]:Object.assign({},et(Wn)),[`${sn}-sm`]:Object.assign({},et(Hn))}},at=Ne=>Object.assign({width:Ne},oe(Ne)),ft=Ne=>{const{skeletonImageCls:Xe,imageSizeBase:wn,gradientFromColor:sn,borderRadiusSM:Wn}=Ne;return{[`${Xe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:sn,borderRadius:Wn},at(wn*2)),{[`${Xe}-path`]:{fill:"#bfbfbf"},[`${Xe}-svg`]:Object.assign(Object.assign({},at(wn)),{maxWidth:wn*4,maxHeight:wn*4}),[`${Xe}-svg${Xe}-svg-circle`]:{borderRadius:"50%"}}),[`${Xe}${Xe}-circle`]:{borderRadius:"50%"}}},vt=(Ne,Xe,wn)=>{const{skeletonButtonCls:sn}=Ne;return{[`${wn}${sn}-circle`]:{width:Xe,minWidth:Xe,borderRadius:"50%"},[`${wn}${sn}-round`]:{borderRadius:Xe}}},Mt=Ne=>Object.assign({width:Ne*2,minWidth:Ne*2},oe(Ne)),Rt=Ne=>{const{borderRadiusSM:Xe,skeletonButtonCls:wn,controlHeight:sn,controlHeightLG:Wn,controlHeightSM:Hn,gradientFromColor:Jt}=Ne;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${wn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Jt,borderRadius:Xe,width:sn*2,minWidth:sn*2},Mt(sn))},vt(Ne,sn,wn)),{[`${wn}-lg`]:Object.assign({},Mt(Wn))}),vt(Ne,Wn,`${wn}-lg`)),{[`${wn}-sm`]:Object.assign({},Mt(Hn))}),vt(Ne,Hn,`${wn}-sm`))},Gt=Ne=>{const{componentCls:Xe,skeletonAvatarCls:wn,skeletonTitleCls:sn,skeletonParagraphCls:Wn,skeletonButtonCls:Hn,skeletonInputCls:Jt,skeletonImageCls:It,controlHeight:bt,controlHeightLG:Vt,controlHeightSM:le,gradientFromColor:Ot,padding:be,marginSM:pn,borderRadius:Zn,titleHeight:ii,blockRadius:wi,paragraphLiHeight:Nr,controlHeightXS:_r,paragraphMarginTop:Tr}=Ne;return{[`${Xe}`]:{display:"table",width:"100%",[`${Xe}-header`]:{display:"table-cell",paddingInlineEnd:be,verticalAlign:"top",[`${wn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ot},me(bt)),[`${wn}-circle`]:{borderRadius:"50%"},[`${wn}-lg`]:Object.assign({},me(Vt)),[`${wn}-sm`]:Object.assign({},me(le))},[`${Xe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${sn}`]:{width:"100%",height:ii,background:Ot,borderRadius:wi,[`+ ${Wn}`]:{marginBlockStart:le}},[`${Wn}`]:{padding:0,"> li":{width:"100%",height:Nr,listStyle:"none",background:Ot,borderRadius:wi,"+ li":{marginBlockStart:_r}}},[`${Wn}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Xe}-content`]:{[`${sn}, ${Wn} > li`]:{borderRadius:Zn}}},[`${Xe}-with-avatar ${Xe}-content`]:{[`${sn}`]:{marginBlockStart:pn,[`+ ${Wn}`]:{marginBlockStart:Tr}}},[`${Xe}${Xe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Rt(Ne)),nt(Ne)),ht(Ne)),ft(Ne)),[`${Xe}${Xe}-block`]:{width:"100%",[`${Hn}`]:{width:"100%"},[`${Jt}`]:{width:"100%"}},[`${Xe}${Xe}-active`]:{[`
${sn},
${Wn} > li,
${wn},
${Hn},
${Jt},
${It}
`]:Object.assign({},Ut(Ne))}}};var $t=(0,ye.Z)("Skeleton",Ne=>{const{componentCls:Xe}=Ne,wn=(0,Nt.TS)(Ne,{skeletonAvatarCls:`${Xe}-avatar`,skeletonTitleCls:`${Xe}-title`,skeletonParagraphCls:`${Xe}-paragraph`,skeletonButtonCls:`${Xe}-button`,skeletonInputCls:`${Xe}-input`,skeletonImageCls:`${Xe}-image`,imageSizeBase:Ne.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ne.gradientFromColor} 25%, ${Ne.gradientToColor} 37%, ${Ne.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Gt(wn)]},Ne=>{const{colorFillContent:Xe,colorFill:wn}=Ne,sn=Xe,Wn=wn;return{color:sn,colorGradientEnd:Wn,gradientFromColor:sn,gradientToColor:Wn,titleHeight:Ne.controlHeight/2,blockRadius:Ne.borderRadiusSM,paragraphMarginTop:Ne.marginLG+Ne.marginXXS,paragraphLiHeight:Ne.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ve=Ne=>{const{prefixCls:Xe,className:wn,rootClassName:sn,active:Wn,shape:Hn="circle",size:Jt="default"}=Ne,{getPrefixCls:It}=Oe.useContext(Cn.E_),bt=It("skeleton",Xe),[Vt,le]=$t(bt),Ot=(0,Be.Z)(Ne,["prefixCls","className"]),be=ke()(bt,`${bt}-element`,{[`${bt}-active`]:Wn},wn,sn,le);return Vt(Oe.createElement("div",{className:be},Oe.createElement(Ie,Object.assign({prefixCls:`${bt}-avatar`,shape:Hn,size:Jt},Ot))))},Ye=Ne=>{const{prefixCls:Xe,className:wn,rootClassName:sn,active:Wn,block:Hn=!1,size:Jt="default"}=Ne,{getPrefixCls:It}=Oe.useContext(Cn.E_),bt=It("skeleton",Xe),[Vt,le]=$t(bt),Ot=(0,Be.Z)(Ne,["prefixCls"]),be=ke()(bt,`${bt}-element`,{[`${bt}-active`]:Wn,[`${bt}-block`]:Hn},wn,sn,le);return Vt(Oe.createElement("div",{className:be},Oe.createElement(Ie,Object.assign({prefixCls:`${bt}-button`,size:Jt},Ot))))};const De="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Ue=Ne=>{const{prefixCls:Xe,className:wn,rootClassName:sn,style:Wn,active:Hn}=Ne,{getPrefixCls:Jt}=Oe.useContext(Cn.E_),It=Jt("skeleton",Xe),[bt,Vt]=$t(It),le=ke()(It,`${It}-element`,{[`${It}-active`]:Hn},wn,sn,Vt);return bt(Oe.createElement("div",{className:le},Oe.createElement("div",{className:ke()(`${It}-image`,wn),style:Wn},Oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${It}-image-svg`},Oe.createElement("path",{d:De,className:`${It}-image-path`})))))},qn=Ne=>{const{prefixCls:Xe,className:wn,rootClassName:sn,active:Wn,block:Hn,size:Jt="default"}=Ne,{getPrefixCls:It}=Oe.useContext(Cn.E_),bt=It("skeleton",Xe),[Vt,le]=$t(bt),Ot=(0,Be.Z)(Ne,["prefixCls"]),be=ke()(bt,`${bt}-element`,{[`${bt}-active`]:Wn,[`${bt}-block`]:Hn},wn,sn,le);return Vt(Oe.createElement("div",{className:be},Oe.createElement(Ie,Object.assign({prefixCls:`${bt}-input`,size:Jt},Ot))))},un=Kt(96663),fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},mn=fn,pe=Kt(7657),Xt=function(Xe,wn){return Oe.createElement(pe.Z,(0,un.Z)({},Xe,{ref:wn,icon:mn}))},Ve=Oe.forwardRef(Xt),Vn=Ve,An=Ne=>{const{prefixCls:Xe,className:wn,rootClassName:sn,style:Wn,active:Hn,children:Jt}=Ne,{getPrefixCls:It}=Oe.useContext(Cn.E_),bt=It("skeleton",Xe),[Vt,le]=$t(bt),Ot=ke()(bt,`${bt}-element`,{[`${bt}-active`]:Hn},le,wn,sn),be=Jt!=null?Jt:Oe.createElement(Vn,null);return Vt(Oe.createElement("div",{className:Ot},Oe.createElement("div",{className:ke()(`${bt}-image`,wn),style:Wn},be)))},Nn=Kt(19127),Ci=Ne=>{const Xe=It=>{const{width:bt,rows:Vt=2}=Ne;if(Array.isArray(bt))return bt[It];if(Vt-1===It)return bt},{prefixCls:wn,className:sn,style:Wn,rows:Hn}=Ne,Jt=(0,Nn.Z)(Array(Hn)).map((It,bt)=>Oe.createElement("li",{key:bt,style:{width:Xe(bt)}}));return Oe.createElement("ul",{className:ke()(wn,sn),style:Wn},Jt)},Ri=Ne=>{let{prefixCls:Xe,className:wn,width:sn,style:Wn}=Ne;return Oe.createElement("h3",{className:ke()(Xe,wn),style:Object.assign({width:sn},Wn)})};function Te(Ne){return Ne&&typeof Ne=="object"?Ne:{}}function ci(Ne,Xe){return Ne&&!Xe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ki(Ne,Xe){return!Ne&&Xe?{width:"38%"}:Ne&&Xe?{width:"50%"}:{}}function Dn(Ne,Xe){const wn={};return(!Ne||!Xe)&&(wn.width="61%"),!Ne&&Xe?wn.rows=3:wn.rows=2,wn}const yi=Ne=>{const{prefixCls:Xe,loading:wn,className:sn,rootClassName:Wn,style:Hn,children:Jt,avatar:It=!1,title:bt=!0,paragraph:Vt=!0,active:le,round:Ot}=Ne,{getPrefixCls:be,direction:pn,skeleton:Zn}=Oe.useContext(Cn.E_),ii=be("skeleton",Xe),[wi,Nr]=$t(ii);if(wn||!("loading"in Ne)){const _r=!!It,Tr=!!bt,po=!!Vt;let To;if(_r){const gr=Object.assign(Object.assign({prefixCls:`${ii}-avatar`},ci(Tr,po)),Te(It));To=Oe.createElement("div",{className:`${ii}-header`},Oe.createElement(Ie,Object.assign({},gr)))}let Co;if(Tr||po){let gr;if(Tr){const Vr=Object.assign(Object.assign({prefixCls:`${ii}-title`},ki(_r,po)),Te(bt));gr=Oe.createElement(Ri,Object.assign({},Vr))}let Wr;if(po){const Vr=Object.assign(Object.assign({prefixCls:`${ii}-paragraph`},Dn(_r,Tr)),Te(Vt));Wr=Oe.createElement(Ci,Object.assign({},Vr))}Co=Oe.createElement("div",{className:`${ii}-content`},gr,Wr)}const Kr=ke()(ii,{[`${ii}-with-avatar`]:_r,[`${ii}-active`]:le,[`${ii}-rtl`]:pn==="rtl",[`${ii}-round`]:Ot},Zn==null?void 0:Zn.className,sn,Wn,Nr);return wi(Oe.createElement("div",{className:Kr,style:Object.assign(Object.assign({},Zn==null?void 0:Zn.style),Hn)},To,Co))}return typeof Jt!="undefined"?Jt:null};yi.Button=Ye,yi.Avatar=ve,yi.Input=qn,yi.Image=Ue,yi.Node=An;var En=yi,gn=En},81327:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ht}});var zt=Kt(59301),ke=Kt(92310),Oe=Kt.n(ke),Cn=Kt(11592),Be=Kt(36355),vn=Kt(33234);const Ie=zt.createContext({latestIndex:0}),ge=Ie.Provider;var Nt=at=>{let{className:ft,index:vt,children:Mt,split:Rt,style:Gt}=at;const{latestIndex:$t}=zt.useContext(Ie);return Mt==null?null:zt.createElement(zt.Fragment,null,zt.createElement("div",{className:ft,style:Gt},Mt),vt<$t&&Rt&&zt.createElement("span",{className:`${ft}-split`},Rt))},se=Kt(2856);function oe(at){return["small","middle","large"].includes(at)}function me(at){return at?typeof at=="number"&&!Number.isNaN(at):!1}var Ut=function(at,ft){var vt={};for(var Mt in at)Object.prototype.hasOwnProperty.call(at,Mt)&&ft.indexOf(Mt)<0&&(vt[Mt]=at[Mt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Mt=Object.getOwnPropertySymbols(at);Rt<Mt.length;Rt++)ft.indexOf(Mt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(at,Mt[Rt])&&(vt[Mt[Rt]]=at[Mt[Rt]]);return vt};const nt=zt.forwardRef((at,ft)=>{var vt,Mt;const{getPrefixCls:Rt,space:Gt,direction:$t}=zt.useContext(Be.E_),{size:ae=(Gt==null?void 0:Gt.size)||"small",align:ve,className:fe,rootClassName:Ye,children:De,direction:hn="horizontal",prefixCls:Ue,split:Pn,style:qn,wrap:un=!1,classNames:fn,styles:mn}=at,pe=Ut(at,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Xt,Ve]=Array.isArray(ae)?ae:[ae,ae],Vn=oe(Ve),si=oe(Xt),An=me(Ve),Nn=me(Xt),Yn=(0,Cn.Z)(De,{keepEmpty:!0}),Ci=ve===void 0&&hn==="horizontal"?"center":ve,Mi=Rt("space",Ue),[Ri,Te]=(0,se.Z)(Mi),ci=Oe()(Mi,Gt==null?void 0:Gt.className,Te,`${Mi}-${hn}`,{[`${Mi}-rtl`]:$t==="rtl",[`${Mi}-align-${Ci}`]:Ci,[`${Mi}-gap-row-${Ve}`]:Vn,[`${Mi}-gap-col-${Xt}`]:si},fe,Ye),ki=Oe()(`${Mi}-item`,(vt=fn==null?void 0:fn.item)!==null&&vt!==void 0?vt:(Mt=Gt==null?void 0:Gt.classNames)===null||Mt===void 0?void 0:Mt.item);let Dn=0;const yi=Yn.map((Ne,Xe)=>{var wn,sn;Ne!=null&&(Dn=Xe);const Wn=Ne&&Ne.key||`${ki}-${Xe}`;return zt.createElement(Nt,{className:ki,key:Wn,index:Xe,split:Pn,style:(wn=mn==null?void 0:mn.item)!==null&&wn!==void 0?wn:(sn=Gt==null?void 0:Gt.styles)===null||sn===void 0?void 0:sn.item},Ne)}),En=zt.useMemo(()=>({latestIndex:Dn}),[Dn]);if(Yn.length===0)return null;const gn={};return un&&(gn.flexWrap="wrap"),!si&&Nn&&(gn.columnGap=Xt),!Vn&&An&&(gn.rowGap=Ve),Ri(zt.createElement("div",Object.assign({ref:ft,className:ci,style:Object.assign(Object.assign(Object.assign({},gn),Gt==null?void 0:Gt.style),qn)},pe),zt.createElement(ge,{value:En},yi)))});nt.Compact=vn.ZP;var ht=nt},31797:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{default:function(){return $t}});var zt=Kt(59301),ke=Kt(56762),Oe=Kt(92343),Cn=Kt(92310),Be=Kt.n(Cn),vn=Kt(36355),Ie=Kt(61621),ye=ae=>{const{value:ve,formatter:fe,precision:Ye,decimalSeparator:De,groupSeparator:hn="",prefixCls:Ue}=ae;let Pn;if(typeof fe=="function")Pn=fe(ve);else{const qn=String(ve),un=qn.match(/^(-?)(\d*)(\.(\d+))?$/);if(!un||qn==="-")Pn=qn;else{const fn=un[1];let mn=un[2]||"0",pe=un[4]||"";mn=mn.replace(/\B(?=(\d{3})+(?!\d))/g,hn),typeof Ye=="number"&&(pe=pe.padEnd(Ye,"0").slice(0,Ye>0?Ye:0)),pe&&(pe=`${De}${pe}`),Pn=[zt.createElement("span",{key:"int",className:`${Ue}-content-value-int`},fn,mn),pe&&zt.createElement("span",{key:"decimal",className:`${Ue}-content-value-decimal`},pe)]}}return zt.createElement("span",{className:`${Ue}-content-value`},Pn)},Nt=Kt(17313),se=Kt(83116),oe=Kt(37613);const me=ae=>{const{componentCls:ve,marginXXS:fe,padding:Ye,colorTextDescription:De,titleFontSize:hn,colorTextHeading:Ue,contentFontSize:Pn,fontFamily:qn}=ae;return{[`${ve}`]:Object.assign(Object.assign({},(0,Nt.Wf)(ae)),{[`${ve}-title`]:{marginBottom:fe,color:De,fontSize:hn},[`${ve}-skeleton`]:{paddingTop:Ye},[`${ve}-content`]:{color:Ue,fontSize:Pn,fontFamily:qn,[`${ve}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ve}-content-prefix, ${ve}-content-suffix`]:{display:"inline-block"},[`${ve}-content-prefix`]:{marginInlineEnd:fe},[`${ve}-content-suffix`]:{marginInlineStart:fe}}})}};var Ut=(0,se.Z)("Statistic",ae=>{const ve=(0,oe.TS)(ae,{});return[me(ve)]},ae=>{const{fontSizeHeading3:ve,fontSize:fe}=ae;return{titleFontSize:fe,contentFontSize:ve}}),nt=ae=>{const{prefixCls:ve,className:fe,rootClassName:Ye,style:De,valueStyle:hn,value:Ue=0,title:Pn,valueRender:qn,prefix:un,suffix:fn,loading:mn=!1,onMouseEnter:pe,onMouseLeave:Xt,decimalSeparator:Ve=".",groupSeparator:Vn=","}=ae,{getPrefixCls:si,direction:An,statistic:Nn}=zt.useContext(vn.E_),Yn=si("statistic",ve),[Ci,Mi]=Ut(Yn),Ri=zt.createElement(ye,Object.assign({decimalSeparator:Ve,groupSeparator:Vn,prefixCls:Yn},ae,{value:Ue})),Te=Be()(Yn,{[`${Yn}-rtl`]:An==="rtl"},Nn==null?void 0:Nn.className,fe,Ye,Mi);return Ci(zt.createElement("div",{className:Te,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),De),onMouseEnter:pe,onMouseLeave:Xt},Pn&&zt.createElement("div",{className:`${Yn}-title`},Pn),zt.createElement(Ie.Z,{paragraph:!1,loading:mn,className:`${Yn}-skeleton`},zt.createElement("div",{style:hn,className:`${Yn}-content`},un&&zt.createElement("span",{className:`${Yn}-content-prefix`},un),qn?qn(Ri):Ri,fn&&zt.createElement("span",{className:`${Yn}-content-suffix`},fn)))))};const ht=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function at(ae,ve){let fe=ae;const Ye=/\[[^\]]*]/g,De=(ve.match(Ye)||[]).map(qn=>qn.slice(1,-1)),hn=ve.replace(Ye,"[]"),Ue=ht.reduce((qn,un)=>{let[fn,mn]=un;if(qn.includes(fn)){const pe=Math.floor(fe/mn);return fe-=pe*mn,qn.replace(new RegExp(`${fn}+`,"g"),Xt=>{const Ve=Xt.length;return pe.toString().padStart(Ve,"0")})}return qn},hn);let Pn=0;return Ue.replace(Ye,()=>{const qn=De[Pn];return Pn+=1,qn})}function ft(ae,ve){const{format:fe=""}=ve,Ye=new Date(ae).getTime(),De=Date.now(),hn=Math.max(Ye-De,0);return at(hn,fe)}const vt=1e3/30;function Mt(ae){return new Date(ae).getTime()}const Rt=ae=>{const{value:ve,format:fe="HH:mm:ss",onChange:Ye,onFinish:De}=ae,hn=(0,ke.Z)(),Ue=zt.useRef(null),Pn=()=>{De==null||De(),Ue.current&&(clearInterval(Ue.current),Ue.current=null)},qn=()=>{const mn=Mt(ve);mn>=Date.now()&&(Ue.current=setInterval(()=>{hn(),Ye==null||Ye(mn-Date.now()),mn<Date.now()&&Pn()},vt))};zt.useEffect(()=>(qn(),()=>{Ue.current&&(clearInterval(Ue.current),Ue.current=null)}),[ve]);const un=(mn,pe)=>ft(mn,Object.assign(Object.assign({},pe),{format:fe})),fn=mn=>(0,Oe.Tm)(mn,{title:void 0});return zt.createElement(nt,Object.assign({},ae,{valueRender:fn,formatter:un}))};var Gt=zt.memo(Rt);nt.Countdown=Gt;var $t=nt},78673:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return hn}});var zt=Kt(58617),ke=Kt(92310),Oe=Kt.n(ke),Cn=Kt(96663),Be=Kt(90493),vn=Kt(72071),Ie=Kt(6620),ge=Kt(59301),ye=Kt(18929),Nt=Kt(10228),se=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],oe=ge.forwardRef(function(Ue,Pn){var qn,un=Ue.prefixCls,fn=un===void 0?"rc-switch":un,mn=Ue.className,pe=Ue.checked,Xt=Ue.defaultChecked,Ve=Ue.disabled,Vn=Ue.loadingIcon,si=Ue.checkedChildren,An=Ue.unCheckedChildren,Nn=Ue.onClick,Yn=Ue.onChange,Ci=Ue.onKeyDown,Mi=(0,Ie.Z)(Ue,se),Ri=(0,ye.Z)(!1,{value:pe,defaultValue:Xt}),Te=(0,vn.Z)(Ri,2),ci=Te[0],ki=Te[1];function Dn(Ne,Xe){var wn=ci;return Ve||(wn=Ne,ki(wn),Yn==null||Yn(wn,Xe)),wn}function yi(Ne){Ne.which===Nt.Z.LEFT?Dn(!1,Ne):Ne.which===Nt.Z.RIGHT&&Dn(!0,Ne),Ci==null||Ci(Ne)}function En(Ne){var Xe=Dn(!ci,Ne);Nn==null||Nn(Xe,Ne)}var gn=Oe()(fn,mn,(qn={},(0,Be.Z)(qn,"".concat(fn,"-checked"),ci),(0,Be.Z)(qn,"".concat(fn,"-disabled"),Ve),qn));return ge.createElement("button",(0,Cn.Z)({},Mi,{type:"button",role:"switch","aria-checked":ci,disabled:Ve,className:gn,ref:Pn,onKeyDown:yi,onClick:En}),Vn,ge.createElement("span",{className:"".concat(fn,"-inner")},ge.createElement("span",{className:"".concat(fn,"-inner-checked")},si),ge.createElement("span",{className:"".concat(fn,"-inner-unchecked")},An)))});oe.displayName="Switch";var me=oe,Ut=Kt(14088),et=Kt(36355),nt=Kt(1684),ht=Kt(19716),at=Kt(64993),ft=Kt(17313),vt=Kt(83116),Mt=Kt(37613);const Rt=Ue=>{const{componentCls:Pn,trackHeightSM:qn,trackPadding:un,trackMinWidthSM:fn,innerMinMarginSM:mn,innerMaxMarginSM:pe,handleSizeSM:Xt}=Ue,Ve=`${Pn}-inner`;return{[Pn]:{[`&${Pn}-small`]:{minWidth:fn,height:qn,lineHeight:`${qn}px`,[`${Pn}-inner`]:{paddingInlineStart:pe,paddingInlineEnd:mn,[`${Ve}-checked`]:{marginInlineStart:`calc(-100% + ${Xt+un*2}px - ${pe*2}px)`,marginInlineEnd:`calc(100% - ${Xt+un*2}px + ${pe*2}px)`},[`${Ve}-unchecked`]:{marginTop:-qn,marginInlineStart:0,marginInlineEnd:0}},[`${Pn}-handle`]:{width:Xt,height:Xt},[`${Pn}-loading-icon`]:{top:(Xt-Ue.switchLoadingIconSize)/2,fontSize:Ue.switchLoadingIconSize},[`&${Pn}-checked`]:{[`${Pn}-inner`]:{paddingInlineStart:mn,paddingInlineEnd:pe,[`${Ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ve}-unchecked`]:{marginInlineStart:`calc(100% - ${Xt+un*2}px + ${pe*2}px)`,marginInlineEnd:`calc(-100% + ${Xt+un*2}px - ${pe*2}px)`}},[`${Pn}-handle`]:{insetInlineStart:`calc(100% - ${Xt+un}px)`}},[`&:not(${Pn}-disabled):active`]:{[`&:not(${Pn}-checked) ${Ve}`]:{[`${Ve}-unchecked`]:{marginInlineStart:Ue.marginXXS/2,marginInlineEnd:-Ue.marginXXS/2}},[`&${Pn}-checked ${Ve}`]:{[`${Ve}-checked`]:{marginInlineStart:-Ue.marginXXS/2,marginInlineEnd:Ue.marginXXS/2}}}}}}},Gt=Ue=>{const{componentCls:Pn,handleSize:qn}=Ue;return{[Pn]:{[`${Pn}-loading-icon${Ue.iconCls}`]:{position:"relative",top:(qn-Ue.fontSize)/2,color:Ue.switchLoadingIconColor,verticalAlign:"top"},[`&${Pn}-checked ${Pn}-loading-icon`]:{color:Ue.switchColor}}}},$t=Ue=>{const{componentCls:Pn,motion:qn,trackPadding:un,handleBg:fn,handleShadow:mn,handleSize:pe}=Ue,Xt=`${Pn}-handle`;return{[Pn]:{[Xt]:{position:"absolute",top:un,insetInlineStart:un,width:pe,height:pe,transition:`all ${Ue.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:fn,borderRadius:pe/2,boxShadow:mn,transition:`all ${Ue.switchDuration} ease-in-out`,content:'""'}},[`&${Pn}-checked ${Xt}`]:{insetInlineStart:`calc(100% - ${pe+un}px)`},[`&:not(${Pn}-disabled):active`]:qn?{[`${Xt}::before`]:{insetInlineEnd:Ue.switchHandleActiveInset,insetInlineStart:0},[`&${Pn}-checked ${Xt}::before`]:{insetInlineEnd:0,insetInlineStart:Ue.switchHandleActiveInset}}:{}}}},ae=Ue=>{const{componentCls:Pn,trackHeight:qn,trackPadding:un,innerMinMargin:fn,innerMaxMargin:mn,handleSize:pe}=Ue,Xt=`${Pn}-inner`;return{[Pn]:{[Xt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:mn,paddingInlineEnd:fn,transition:`padding-inline-start ${Ue.switchDuration} ease-in-out, padding-inline-end ${Ue.switchDuration} ease-in-out`,[`${Xt}-checked, ${Xt}-unchecked`]:{display:"block",color:Ue.colorTextLightSolid,fontSize:Ue.fontSizeSM,transition:`margin-inline-start ${Ue.switchDuration} ease-in-out, margin-inline-end ${Ue.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Xt}-checked`]:{marginInlineStart:`calc(-100% + ${pe+un*2}px - ${mn*2}px)`,marginInlineEnd:`calc(100% - ${pe+un*2}px + ${mn*2}px)`},[`${Xt}-unchecked`]:{marginTop:-qn,marginInlineStart:0,marginInlineEnd:0}},[`&${Pn}-checked ${Xt}`]:{paddingInlineStart:fn,paddingInlineEnd:mn,[`${Xt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xt}-unchecked`]:{marginInlineStart:`calc(100% - ${pe+un*2}px + ${mn*2}px)`,marginInlineEnd:`calc(-100% + ${pe+un*2}px - ${mn*2}px)`}},[`&:not(${Pn}-disabled):active`]:{[`&:not(${Pn}-checked) ${Xt}`]:{[`${Xt}-unchecked`]:{marginInlineStart:un*2,marginInlineEnd:-un*2}},[`&${Pn}-checked ${Xt}`]:{[`${Xt}-checked`]:{marginInlineStart:-un*2,marginInlineEnd:un*2}}}}}},ve=Ue=>{const{componentCls:Pn,trackHeight:qn,trackMinWidth:un}=Ue;return{[Pn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Ue)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:un,height:qn,lineHeight:`${qn}px`,verticalAlign:"middle",background:Ue.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ue.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pn}-disabled)`]:{background:Ue.colorTextTertiary}}),(0,ft.Qy)(Ue)),{[`&${Pn}-checked`]:{background:Ue.switchColor,[`&:hover:not(${Pn}-disabled)`]:{background:Ue.colorPrimaryHover}},[`&${Pn}-loading, &${Pn}-disabled`]:{cursor:"not-allowed",opacity:Ue.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pn}-rtl`]:{direction:"rtl"}})}};var fe=(0,vt.Z)("Switch",Ue=>{const Pn=(0,Mt.TS)(Ue,{switchDuration:Ue.motionDurationMid,switchColor:Ue.colorPrimary,switchDisabledOpacity:Ue.opacityLoading,switchLoadingIconSize:Ue.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ue.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ve(Pn),ae(Pn),$t(Pn),Gt(Pn),Rt(Pn)]},Ue=>{const{fontSize:Pn,lineHeight:qn,controlHeight:un,colorWhite:fn}=Ue,mn=Pn*qn,pe=un/2,Xt=2,Ve=mn-Xt*2,Vn=pe-Xt*2;return{trackHeight:mn,trackHeightSM:pe,trackMinWidth:Ve*2+Xt*4,trackMinWidthSM:Vn*2+Xt*2,trackPadding:Xt,handleBg:fn,handleSize:Ve,handleSizeSM:Vn,handleShadow:`0 2px 4px 0 ${new at.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ve/2,innerMaxMargin:Ve+Xt+Xt*2,innerMinMarginSM:Vn/2,innerMaxMarginSM:Vn+Xt+Xt*2}}),Ye=function(Ue,Pn){var qn={};for(var un in Ue)Object.prototype.hasOwnProperty.call(Ue,un)&&Pn.indexOf(un)<0&&(qn[un]=Ue[un]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,un=Object.getOwnPropertySymbols(Ue);fn<un.length;fn++)Pn.indexOf(un[fn])<0&&Object.prototype.propertyIsEnumerable.call(Ue,un[fn])&&(qn[un[fn]]=Ue[un[fn]]);return qn};const De=ge.forwardRef((Ue,Pn)=>{const{prefixCls:qn,size:un,disabled:fn,loading:mn,className:pe,rootClassName:Xt,style:Ve}=Ue,Vn=Ye(Ue,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:si,direction:An,switch:Nn}=ge.useContext(et.E_),Yn=ge.useContext(nt.Z),Ci=(fn!=null?fn:Yn)||mn,Mi=si("switch",qn),Ri=ge.createElement("div",{className:`${Mi}-handle`},mn&&ge.createElement(zt.Z,{className:`${Mi}-loading-icon`})),[Te,ci]=fe(Mi),ki=(0,ht.Z)(un),Dn=Oe()(Nn==null?void 0:Nn.className,{[`${Mi}-small`]:ki==="small",[`${Mi}-loading`]:mn,[`${Mi}-rtl`]:An==="rtl"},pe,Xt,ci),yi=Object.assign(Object.assign({},Nn==null?void 0:Nn.style),Ve);return Te(ge.createElement(Ut.Z,{component:"Switch"},ge.createElement(me,Object.assign({},Vn,{prefixCls:Mi,className:Dn,style:yi,disabled:Ci,ref:Pn,loadingIcon:Ri}))))});De.__ANT_SWITCH=!0;var hn=De},99498:function(Fi,Ti,Kt){(function(zt){zt(Kt(89780))})(function(zt){zt.defineOption("placeholder","",function(ge,ye,Nt){var se=Nt&&Nt!=zt.Init;if(ye&&!se)ge.on("blur",Be),ge.on("change",vn),ge.on("swapDoc",vn),zt.on(ge.getInputField(),"compositionupdate",ge.state.placeholderCompose=function(){Cn(ge)}),vn(ge);else if(!ye&&se){ge.off("blur",Be),ge.off("change",vn),ge.off("swapDoc",vn),zt.off(ge.getInputField(),"compositionupdate",ge.state.placeholderCompose),ke(ge);var oe=ge.getWrapperElement();oe.className=oe.className.replace(" CodeMirror-empty","")}ye&&!ge.hasFocus()&&Be(ge)});function ke(ge){ge.state.placeholder&&(ge.state.placeholder.parentNode.removeChild(ge.state.placeholder),ge.state.placeholder=null)}function Oe(ge){ke(ge);var ye=ge.state.placeholder=document.createElement("pre");ye.style.cssText="height: 0; overflow: visible",ye.style.direction=ge.getOption("direction"),ye.className="CodeMirror-placeholder CodeMirror-line-like";var Nt=ge.getOption("placeholder");typeof Nt=="string"&&(Nt=document.createTextNode(Nt)),ye.appendChild(Nt),ge.display.lineSpace.insertBefore(ye,ge.display.lineSpace.firstChild)}function Cn(ge){setTimeout(function(){var ye=!1,Nt=ge.getInputField();Nt.nodeName=="TEXTAREA"?ye=!Nt.value:ge.lineCount()==1&&(ye=!/[^\u200b]/.test(Nt.querySelector(".CodeMirror-line").textContent)),ye?Oe(ge):ke(ge)},20)}function Be(ge){Ie(ge)&&Oe(ge)}function vn(ge){var ye=ge.getWrapperElement(),Nt=Ie(ge);ye.className=ye.className.replace(" CodeMirror-empty","")+(Nt?" CodeMirror-empty":""),Nt?Oe(ge):ke(ge)}function Ie(ge){return ge.lineCount()===1&&ge.getLine(0)===""}})},25717:function(Fi,Ti,Kt){(function(zt){zt(Kt(89780))})(function(zt){var ke={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Oe=zt.Pos;zt.defineOption("autoCloseBrackets",!1,function(et,nt,ht){ht&&ht!=zt.Init&&(et.removeKeyMap(Be),et.state.closeBrackets=null),nt&&(vn(Cn(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(Be))});function Cn(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:ke[nt]}var Be={Backspace:ye,Enter:Nt};function vn(et){for(var nt=0;nt<et.length;nt++){var ht=et.charAt(nt),at="'"+ht+"'";Be[at]||(Be[at]=Ie(ht))}}vn(ke.pairs+"`");function Ie(et){return function(nt){return oe(nt,et)}}function ge(et){var nt=et.state.closeBrackets;if(!nt||nt.override)return nt;var ht=et.getModeAt(et.getCursor());return ht.closeBrackets||nt}function ye(et){var nt=ge(et);if(!nt||et.getOption("disableInput"))return zt.Pass;for(var ht=Cn(nt,"pairs"),at=et.listSelections(),ft=0;ft<at.length;ft++){if(!at[ft].empty())return zt.Pass;var vt=me(et,at[ft].head);if(!vt||ht.indexOf(vt)%2!=0)return zt.Pass}for(var ft=at.length-1;ft>=0;ft--){var Mt=at[ft].head;et.replaceRange("",Oe(Mt.line,Mt.ch-1),Oe(Mt.line,Mt.ch+1),"+delete")}}function Nt(et){var nt=ge(et),ht=nt&&Cn(nt,"explode");if(!ht||et.getOption("disableInput"))return zt.Pass;for(var at=et.listSelections(),ft=0;ft<at.length;ft++){if(!at[ft].empty())return zt.Pass;var vt=me(et,at[ft].head);if(!vt||ht.indexOf(vt)%2!=0)return zt.Pass}et.operation(function(){var Mt=et.lineSeparator()||`
`;et.replaceSelection(Mt+Mt,null),et.execCommand("goCharLeft"),at=et.listSelections();for(var Rt=0;Rt<at.length;Rt++){var Gt=at[Rt].head.line;et.indentLine(Gt,null,!0),et.indentLine(Gt+1,null,!0)}})}function se(et){var nt=zt.cmpPos(et.anchor,et.head)>0;return{anchor:new Oe(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new Oe(et.head.line,et.head.ch+(nt?1:-1))}}function oe(et,nt){var ht=ge(et);if(!ht||et.getOption("disableInput"))return zt.Pass;var at=Cn(ht,"pairs"),ft=at.indexOf(nt);if(ft==-1)return zt.Pass;for(var vt=Cn(ht,"closeBefore"),Mt=Cn(ht,"triples"),Rt=at.charAt(ft+1)==nt,Gt=et.listSelections(),$t=ft%2==0,ae,ve=0;ve<Gt.length;ve++){var fe=Gt[ve],Ye=fe.head,De,hn=et.getRange(Ye,Oe(Ye.line,Ye.ch+1));if($t&&!fe.empty())De="surround";else if((Rt||!$t)&&hn==nt)Rt&&Ut(et,Ye)?De="both":Mt.indexOf(nt)>=0&&et.getRange(Ye,Oe(Ye.line,Ye.ch+3))==nt+nt+nt?De="skipThree":De="skip";else if(Rt&&Ye.ch>1&&Mt.indexOf(nt)>=0&&et.getRange(Oe(Ye.line,Ye.ch-2),Ye)==nt+nt){if(Ye.ch>2&&/\bstring/.test(et.getTokenTypeAt(Oe(Ye.line,Ye.ch-2))))return zt.Pass;De="addFour"}else if(Rt){var Ue=Ye.ch==0?" ":et.getRange(Oe(Ye.line,Ye.ch-1),Ye);if(!zt.isWordChar(hn)&&Ue!=nt&&!zt.isWordChar(Ue))De="both";else return zt.Pass}else if($t&&(hn.length===0||/\s/.test(hn)||vt.indexOf(hn)>-1))De="both";else return zt.Pass;if(!ae)ae=De;else if(ae!=De)return zt.Pass}var Pn=ft%2?at.charAt(ft-1):nt,qn=ft%2?nt:at.charAt(ft+1);et.operation(function(){if(ae=="skip")et.execCommand("goCharRight");else if(ae=="skipThree")for(var un=0;un<3;un++)et.execCommand("goCharRight");else if(ae=="surround"){for(var fn=et.getSelections(),un=0;un<fn.length;un++)fn[un]=Pn+fn[un]+qn;et.replaceSelections(fn,"around"),fn=et.listSelections().slice();for(var un=0;un<fn.length;un++)fn[un]=se(fn[un]);et.setSelections(fn)}else ae=="both"?(et.replaceSelection(Pn+qn,null),et.triggerElectric(Pn+qn),et.execCommand("goCharLeft")):ae=="addFour"&&(et.replaceSelection(Pn+Pn+Pn+Pn,"before"),et.execCommand("goCharRight"))})}function me(et,nt){var ht=et.getRange(Oe(nt.line,nt.ch-1),Oe(nt.line,nt.ch+1));return ht.length==2?ht:null}function Ut(et,nt){var ht=et.getTokenAt(Oe(nt.line,nt.ch+1));return/\bstring/.test(ht.type)&&ht.start==nt.ch&&(nt.ch==0||!/\bstring/.test(et.getTokenTypeAt(nt)))}})},6313:function(Fi,Ti,Kt){(function(zt){zt(Kt(89780),Kt(32855))})(function(zt){zt.defineOption("autoCloseTags",!1,function(ye,Nt,se){if(se!=zt.Init&&se&&ye.removeKeyMap("autoCloseTags"),!!Nt){var oe={name:"autoCloseTags"};(typeof Nt!="object"||Nt.whenClosing!==!1)&&(oe["'/'"]=function(me){return vn(me)}),(typeof Nt!="object"||Nt.whenOpening!==!1)&&(oe["'>'"]=function(me){return Cn(me)}),ye.addKeyMap(oe)}});var ke=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Oe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Cn(ye){if(ye.getOption("disableInput"))return zt.Pass;for(var Nt=ye.listSelections(),se=[],oe=ye.getOption("autoCloseTags"),me=0;me<Nt.length;me++){if(!Nt[me].empty())return zt.Pass;var Ut=Nt[me].head,et=ye.getTokenAt(Ut),nt=zt.innerMode(ye.getMode(),et.state),ht=nt.state,at=nt.mode.xmlCurrentTag&&nt.mode.xmlCurrentTag(ht),ft=at&&at.name;if(!ft)return zt.Pass;var vt=nt.mode.configuration=="html",Mt=typeof oe=="object"&&oe.dontCloseTags||vt&&ke,Rt=typeof oe=="object"&&oe.indentTags||vt&&Oe;et.end>Ut.ch&&(ft=ft.slice(0,ft.length-et.end+Ut.ch));var Gt=ft.toLowerCase();if(!ft||et.type=="string"&&(et.end!=Ut.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&at.close||et.string.indexOf("/")==Ut.ch-et.start-1||Mt&&Ie(Mt,Gt)>-1||ge(ye,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ht)||[],ft,Ut,!0))return zt.Pass;var $t=typeof oe=="object"&&oe.emptyTags;if($t&&Ie($t,ft)>-1){se[me]={text:"/>",newPos:zt.Pos(Ut.line,Ut.ch+2)};continue}var ae=Rt&&Ie(Rt,Gt)>-1;se[me]={indent:ae,text:">"+(ae?`
`:"")+"</"+ft+">",newPos:ae?zt.Pos(Ut.line+1,0):zt.Pos(Ut.line,Ut.ch+1)}}for(var ve=typeof oe=="object"&&oe.dontIndentOnAutoClose,me=Nt.length-1;me>=0;me--){var fe=se[me];ye.replaceRange(fe.text,Nt[me].head,Nt[me].anchor,"+insert");var Ye=ye.listSelections().slice(0);Ye[me]={head:fe.newPos,anchor:fe.newPos},ye.setSelections(Ye),!ve&&fe.indent&&(ye.indentLine(fe.newPos.line,null,!0),ye.indentLine(fe.newPos.line+1,null,!0))}}function Be(ye,Nt){for(var se=ye.listSelections(),oe=[],me=Nt?"/":"</",Ut=ye.getOption("autoCloseTags"),et=typeof Ut=="object"&&Ut.dontIndentOnSlash,nt=0;nt<se.length;nt++){if(!se[nt].empty())return zt.Pass;var ht=se[nt].head,at=ye.getTokenAt(ht),ft=zt.innerMode(ye.getMode(),at.state),vt=ft.state;if(Nt&&(at.type=="string"||at.string.charAt(0)!="<"||at.start!=ht.ch-1))return zt.Pass;var Mt,Rt=ft.mode.name!="xml"&&ye.getMode().name=="htmlmixed";if(Rt&&ft.mode.name=="javascript")Mt=me+"script";else if(Rt&&ft.mode.name=="css")Mt=me+"style";else{var Gt=ft.mode.xmlCurrentContext&&ft.mode.xmlCurrentContext(vt);if(!Gt||Gt.length&&ge(ye,Gt,Gt[Gt.length-1],ht))return zt.Pass;Mt=me+Gt[Gt.length-1]}ye.getLine(ht.line).charAt(at.end)!=">"&&(Mt+=">"),oe[nt]=Mt}if(ye.replaceSelections(oe),se=ye.listSelections(),!et)for(var nt=0;nt<se.length;nt++)(nt==se.length-1||se[nt].head.line<se[nt+1].head.line)&&ye.indentLine(se[nt].head.line)}function vn(ye){return ye.getOption("disableInput")?zt.Pass:Be(ye,!0)}zt.commands.closeTag=function(ye){return Be(ye)};function Ie(ye,Nt){if(ye.indexOf)return ye.indexOf(Nt);for(var se=0,oe=ye.length;se<oe;++se)if(ye[se]==Nt)return se;return-1}function ge(ye,Nt,se,oe,me){if(!zt.scanForClosingTag)return!1;var Ut=Math.min(ye.lastLine()+1,oe.line+500),et=zt.scanForClosingTag(ye,oe,null,Ut);if(!et||et.tag!=se)return!1;for(var nt=me?1:0,ht=Nt.length-1;ht>=0&&Nt[ht]==se;ht--)++nt;oe=et.to;for(var ht=1;ht<nt;ht++){var at=zt.scanForClosingTag(ye,oe,null,Ut);if(!at||at.tag!=se)return!1;oe=at.to}return!0}})},32855:function(Fi,Ti,Kt){(function(zt){zt(Kt(89780))})(function(zt){"use strict";var ke=zt.Pos;function Oe(ht,at){return ht.line-at.line||ht.ch-at.ch}var Cn="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Be=Cn+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",vn=new RegExp("<(/?)(["+Cn+"]["+Be+"]*)","g");function Ie(ht,at,ft,vt){this.line=at,this.ch=ft,this.cm=ht,this.text=ht.getLine(at),this.min=vt?Math.max(vt.from,ht.firstLine()):ht.firstLine(),this.max=vt?Math.min(vt.to-1,ht.lastLine()):ht.lastLine()}function ge(ht,at){var ft=ht.cm.getTokenTypeAt(ke(ht.line,at));return ft&&/\btag\b/.test(ft)}function ye(ht){if(!(ht.line>=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function Nt(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function se(ht){for(;;){var at=ht.text.indexOf(">",ht.ch);if(at==-1){if(ye(ht))continue;return}if(!ge(ht,at+1)){ht.ch=at+1;continue}var ft=ht.text.lastIndexOf("/",at),vt=ft>-1&&!/\S/.test(ht.text.slice(ft+1,at));return ht.ch=at+1,vt?"selfClose":"regular"}}function oe(ht){for(;;){var at=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(at==-1){if(Nt(ht))continue;return}if(!ge(ht,at+1)){ht.ch=at;continue}vn.lastIndex=at,ht.ch=at;var ft=vn.exec(ht.text);if(ft&&ft.index==at)return ft}}function me(ht){for(;;){vn.lastIndex=ht.ch;var at=vn.exec(ht.text);if(!at){if(ye(ht))continue;return}if(!ge(ht,at.index+1)){ht.ch=at.index+1;continue}return ht.ch=at.index+at[0].length,at}}function Ut(ht){for(;;){var at=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(at==-1){if(Nt(ht))continue;return}if(!ge(ht,at+1)){ht.ch=at;continue}var ft=ht.text.lastIndexOf("/",at),vt=ft>-1&&!/\S/.test(ht.text.slice(ft+1,at));return ht.ch=at+1,vt?"selfClose":"regular"}}function et(ht,at){for(var ft=[];;){var vt=me(ht),Mt,Rt=ht.line,Gt=ht.ch-(vt?vt[0].length:0);if(!vt||!(Mt=se(ht)))return;if(Mt!="selfClose")if(vt[1]){for(var $t=ft.length-1;$t>=0;--$t)if(ft[$t]==vt[2]){ft.length=$t;break}if($t<0&&(!at||at==vt[2]))return{tag:vt[2],from:ke(Rt,Gt),to:ke(ht.line,ht.ch)}}else ft.push(vt[2])}}function nt(ht,at){for(var ft=[];;){var vt=Ut(ht);if(!vt)return;if(vt=="selfClose"){oe(ht);continue}var Mt=ht.line,Rt=ht.ch,Gt=oe(ht);if(!Gt)return;if(Gt[1])ft.push(Gt[2]);else{for(var $t=ft.length-1;$t>=0;--$t)if(ft[$t]==Gt[2]){ft.length=$t;break}if($t<0&&(!at||at==Gt[2]))return{tag:Gt[2],from:ke(ht.line,ht.ch),to:ke(Mt,Rt)}}}}zt.registerHelper("fold","xml",function(ht,at){for(var ft=new Ie(ht,at.line,0);;){var vt=me(ft);if(!vt||ft.line!=at.line)return;var Mt=se(ft);if(!Mt)return;if(!vt[1]&&Mt!="selfClose"){var Rt=ke(ft.line,ft.ch),Gt=et(ft,vt[2]);return Gt&&Oe(Gt.from,Rt)>0?{from:Rt,to:Gt.from}:null}}}),zt.findMatchingTag=function(ht,at,ft){var vt=new Ie(ht,at.line,at.ch,ft);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Mt=se(vt),Rt=Mt&&ke(vt.line,vt.ch),Gt=Mt&&oe(vt);if(!(!Mt||!Gt||Oe(vt,at)>0)){var $t={from:ke(vt.line,vt.ch),to:Rt,tag:Gt[2]};return Mt=="selfClose"?{open:$t,close:null,at:"open"}:Gt[1]?{open:nt(vt,Gt[2]),close:$t,at:"close"}:(vt=new Ie(ht,Rt.line,Rt.ch,ft),{open:$t,close:et(vt,Gt[2]),at:"open"})}}},zt.findEnclosingTag=function(ht,at,ft,vt){for(var Mt=new Ie(ht,at.line,at.ch,ft);;){var Rt=nt(Mt,vt);if(!Rt)break;var Gt=new Ie(ht,at.line,at.ch,ft),$t=et(Gt,Rt.tag);if($t)return{open:Rt,close:$t}}},zt.scanForClosingTag=function(ht,at,ft,vt){var Mt=new Ie(ht,at.line,at.ch,vt?{from:0,to:vt}:null);return et(Mt,ft)}})},89780:function(Fi){(function(Ti,Kt){Fi.exports=Kt()})(this,function(){"use strict";var Ti=navigator.userAgent,Kt=navigator.platform,zt=/gecko\/\d/i.test(Ti),ke=/MSIE \d/.test(Ti),Oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ti),Cn=/Edge\/(\d+)/.exec(Ti),Be=ke||Oe||Cn,vn=Be&&(ke?document.documentMode||6:+(Cn||Oe)[1]),Ie=!Cn&&/WebKit\//.test(Ti),ge=Ie&&/Qt\/\d+\.\d+/.test(Ti),ye=!Cn&&/Chrome\//.test(Ti),Nt=/Opera\//.test(Ti),se=/Apple Computer/.test(navigator.vendor),oe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ti),me=/PhantomJS/.test(Ti),Ut=!Cn&&/AppleWebKit/.test(Ti)&&/Mobile\/\w+/.test(Ti),et=/Android/.test(Ti),nt=Ut||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ti),ht=Ut||/Mac/.test(Kt),at=/\bCrOS\b/.test(Ti),ft=/win/i.test(Kt),vt=Nt&&Ti.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(Nt=!1,Ie=!0);var Mt=ht&&(ge||Nt&&(vt==null||vt<12.11)),Rt=zt||Be&&vn>=9;function Gt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var $t=function(it,ot){var ct=it.className,At=Gt(ot).exec(ct);if(At){var mt=ct.slice(At.index+At[0].length);it.className=ct.slice(0,At.index)+(mt?At[1]+mt:"")}};function ae(it){for(var ot=it.childNodes.length;ot>0;--ot)it.removeChild(it.firstChild);return it}function ve(it,ot){return ae(it).appendChild(ot)}function fe(it,ot,ct,At){var mt=document.createElement(it);if(ct&&(mt.className=ct),At&&(mt.style.cssText=At),typeof ot=="string")mt.appendChild(document.createTextNode(ot));else if(ot)for(var Dt=0;Dt<ot.length;++Dt)mt.appendChild(ot[Dt]);return mt}function Ye(it,ot,ct,At){var mt=fe(it,ot,ct,At);return mt.setAttribute("role","presentation"),mt}var De;document.createRange?De=function(it,ot,ct,At){var mt=document.createRange();return mt.setEnd(At||it,ct),mt.setStart(it,ot),mt}:De=function(it,ot,ct){var At=document.body.createTextRange();try{At.moveToElementText(it.parentNode)}catch(mt){return At}return At.collapse(!0),At.moveEnd("character",ct),At.moveStart("character",ot),At};function hn(it,ot){if(ot.nodeType==3&&(ot=ot.parentNode),it.contains)return it.contains(ot);do if(ot.nodeType==11&&(ot=ot.host),ot==it)return!0;while(ot=ot.parentNode)}function Ue(){var it;try{it=document.activeElement}catch(ot){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function Pn(it,ot){var ct=it.className;Gt(ot).test(ct)||(it.className+=(ct?" ":"")+ot)}function qn(it,ot){for(var ct=it.split(" "),At=0;At<ct.length;At++)ct[At]&&!Gt(ct[At]).test(ot)&&(ot+=" "+ct[At]);return ot}var un=function(it){it.select()};Ut?un=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Be&&(un=function(it){try{it.select()}catch(ot){}});function fn(it){var ot=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,ot)}}function mn(it,ot,ct){ot||(ot={});for(var At in it)it.hasOwnProperty(At)&&(ct!==!1||!ot.hasOwnProperty(At))&&(ot[At]=it[At]);return ot}function pe(it,ot,ct,At,mt){ot==null&&(ot=it.search(/[^\s\u00a0]/),ot==-1&&(ot=it.length));for(var Dt=At||0,qt=mt||0;;){var he=it.indexOf(" ",Dt);if(he<0||he>=ot)return qt+(ot-Dt);qt+=he-Dt,qt+=ct-qt%ct,Dt=he+1}}var Xt=function(){this.id=null,this.f=null,this.time=0,this.handler=fn(this.onTimeout,this)};Xt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Xt.prototype.set=function(it,ot){this.f=ot;var ct=+new Date+it;(!this.id||ct<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ct)};function Ve(it,ot){for(var ct=0;ct<it.length;++ct)if(it[ct]==ot)return ct;return-1}var Vn=50,si={toString:function(){return"CodeMirror.Pass"}},An={scroll:!1},Nn={origin:"*mouse"},Yn={origin:"+move"};function Ci(it,ot,ct){for(var At=0,mt=0;;){var Dt=it.indexOf(" ",At);Dt==-1&&(Dt=it.length);var qt=Dt-At;if(Dt==it.length||mt+qt>=ot)return At+Math.min(qt,ot-mt);if(mt+=Dt-At,mt+=ct-mt%ct,At=Dt+1,mt>=ot)return At}}var Mi=[""];function Ri(it){for(;Mi.length<=it;)Mi.push(Te(Mi)+" ");return Mi[it]}function Te(it){return it[it.length-1]}function ci(it,ot){for(var ct=[],At=0;At<it.length;At++)ct[At]=ot(it[At],At);return ct}function ki(it,ot,ct){for(var At=0,mt=ct(ot);At<it.length&&ct(it[At])<=mt;)At++;it.splice(At,0,ot)}function Dn(){}function yi(it,ot){var ct;return Object.create?ct=Object.create(it):(Dn.prototype=it,ct=new Dn),ot&&mn(ot,ct),ct}var En=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function gn(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||En.test(it))}function Ne(it,ot){return ot?ot.source.indexOf("\\w")>-1&&gn(it)?!0:ot.test(it):gn(it)}function Xe(it){for(var ot in it)if(it.hasOwnProperty(ot)&&it[ot])return!1;return!0}var wn=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function sn(it){return it.charCodeAt(0)>=768&&wn.test(it)}function Wn(it,ot,ct){for(;(ct<0?ot>0:ot<it.length)&&sn(it.charAt(ot));)ot+=ct;return ot}function Hn(it,ot,ct){for(var At=ot>ct?-1:1;;){if(ot==ct)return ot;var mt=(ot+ct)/2,Dt=At<0?Math.ceil(mt):Math.floor(mt);if(Dt==ot)return it(Dt)?ot:ct;it(Dt)?ct=Dt:ot=Dt+At}}function Jt(it,ot,ct,At){if(!it)return At(ot,ct,"ltr",0);for(var mt=!1,Dt=0;Dt<it.length;++Dt){var qt=it[Dt];(qt.from<ct&&qt.to>ot||ot==ct&&qt.to==ot)&&(At(Math.max(qt.from,ot),Math.min(qt.to,ct),qt.level==1?"rtl":"ltr",Dt),mt=!0)}mt||At(ot,ct,"ltr")}var It=null;function bt(it,ot,ct){var At;It=null;for(var mt=0;mt<it.length;++mt){var Dt=it[mt];if(Dt.from<ot&&Dt.to>ot)return mt;Dt.to==ot&&(Dt.from!=Dt.to&&ct=="before"?At=mt:It=mt),Dt.from==ot&&(Dt.from!=Dt.to&&ct!="before"?At=mt:It=mt)}return At!=null?At:It}var Vt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ot="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(Me){return Me<=247?it.charAt(Me):1424<=Me&&Me<=1524?"R":1536<=Me&&Me<=1785?ot.charAt(Me-1536):1774<=Me&&Me<=2220?"r":8192<=Me&&Me<=8203?"w":Me==8204?"b":"L"}var At=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,mt=/[stwN]/,Dt=/[LRr]/,qt=/[Lb1n]/,he=/[1n]/;function ue(Me,xn,_e){this.level=Me,this.from=xn,this.to=_e}return function(Me,xn){var _e=xn=="ltr"?"L":"R";if(Me.length==0||xn=="ltr"&&!At.test(Me))return!1;for(var ri=Me.length,ti=[],qi=0;qi<ri;++qi)ti.push(ct(Me.charCodeAt(qi)));for(var lr=0,Cr=_e;lr<ri;++lr){var Ur=ti[lr];Ur=="m"?ti[lr]=Cr:Cr=Ur}for(var mo=0,Xr=_e;mo<ri;++mo){var Eo=ti[mo];Eo=="1"&&Xr=="r"?ti[mo]="n":Dt.test(Eo)&&(Xr=Eo,Eo=="r"&&(ti[mo]="R"))}for(var is=1,Zr=ti[0];is<ri-1;++is){var xs=ti[is];xs=="+"&&Zr=="1"&&ti[is+1]=="1"?ti[is]="1":xs==","&&Zr==ti[is+1]&&(Zr=="1"||Zr=="n")&&(ti[is]=Zr),Zr=xs}for(var Ga=0;Ga<ri;++Ga){var Ja=ti[Ga];if(Ja==",")ti[Ga]="N";else if(Ja=="%"){var va=void 0;for(va=Ga+1;va<ri&&ti[va]=="%";++va);for(var Aa=Ga&&ti[Ga-1]=="!"||va<ri&&ti[va]=="1"?"1":"N",$s=Ga;$s<va;++$s)ti[$s]=Aa;Ga=va-1}}for(var ua=0,ka=_e;ua<ri;++ua){var Bl=ti[ua];ka=="L"&&Bl=="1"?ti[ua]="L":Dt.test(Bl)&&(ka=Bl)}for(var $r=0;$r<ri;++$r)if(mt.test(ti[$r])){var Qs=void 0;for(Qs=$r+1;Qs<ri&&mt.test(ti[Qs]);++Qs);for(var $a=($r?ti[$r-1]:_e)=="L",_a=(Qs<ri?ti[Qs]:_e)=="L",nu=$a==_a?$a?"L":"R":_e,Es=$r;Es<Qs;++Es)ti[Es]=nu;$r=Qs-1}for(var As=[],mu,vl=0;vl<ri;)if(qt.test(ti[vl])){var xc=vl;for(++vl;vl<ri&&qt.test(ti[vl]);++vl);As.push(new ue(0,xc,vl))}else{var Du=vl,su=As.length,Fu=xn=="rtl"?1:0;for(++vl;vl<ri&&ti[vl]!="L";++vl);for(var Ka=Du;Ka<vl;)if(he.test(ti[Ka])){Du<Ka&&(As.splice(su,0,new ue(1,Du,Ka)),su+=Fu);var $l=Ka;for(++Ka;Ka<vl&&he.test(ti[Ka]);++Ka);As.splice(su,0,new ue(2,$l,Ka)),su+=Fu,Du=Ka}else++Ka;Du<vl&&As.splice(su,0,new ue(1,Du,vl))}return xn=="ltr"&&(As[0].level==1&&(mu=Me.match(/^\s+/))&&(As[0].from=mu[0].length,As.unshift(new ue(0,0,mu[0].length))),Te(As).level==1&&(mu=Me.match(/\s+$/))&&(Te(As).to-=mu[0].length,As.push(new ue(0,ri-mu[0].length,ri)))),xn=="rtl"?As.reverse():As}}();function le(it,ot){var ct=it.order;return ct==null&&(ct=it.order=Vt(it.text,ot)),ct}var Ot=[],be=function(it,ot,ct){if(it.addEventListener)it.addEventListener(ot,ct,!1);else if(it.attachEvent)it.attachEvent("on"+ot,ct);else{var At=it._handlers||(it._handlers={});At[ot]=(At[ot]||Ot).concat(ct)}};function pn(it,ot){return it._handlers&&it._handlers[ot]||Ot}function Zn(it,ot,ct){if(it.removeEventListener)it.removeEventListener(ot,ct,!1);else if(it.detachEvent)it.detachEvent("on"+ot,ct);else{var At=it._handlers,mt=At&&At[ot];if(mt){var Dt=Ve(mt,ct);Dt>-1&&(At[ot]=mt.slice(0,Dt).concat(mt.slice(Dt+1)))}}}function ii(it,ot){var ct=pn(it,ot);if(ct.length)for(var At=Array.prototype.slice.call(arguments,2),mt=0;mt<ct.length;++mt)ct[mt].apply(null,At)}function wi(it,ot,ct){return typeof ot=="string"&&(ot={type:ot,preventDefault:function(){this.defaultPrevented=!0}}),ii(it,ct||ot.type,it,ot),Co(ot)||ot.codemirrorIgnore}function Nr(it){var ot=it._handlers&&it._handlers.cursorActivity;if(ot)for(var ct=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),At=0;At<ot.length;++At)Ve(ct,ot[At])==-1&&ct.push(ot[At])}function _r(it,ot){return pn(it,ot).length>0}function Tr(it){it.prototype.on=function(ot,ct){be(this,ot,ct)},it.prototype.off=function(ot,ct){Zn(this,ot,ct)}}function po(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function To(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Co(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Kr(it){po(it),To(it)}function gr(it){return it.target||it.srcElement}function Wr(it){var ot=it.which;return ot==null&&(it.button&1?ot=1:it.button&2?ot=3:it.button&4&&(ot=2)),ht&&it.ctrlKey&&ot==1&&(ot=3),ot}var Vr=function(){if(Be&&vn<9)return!1;var it=fe("div");return"draggable"in it||"dragDrop"in it}(),No;function us(it){if(No==null){var ot=fe("span","\u200B");ve(it,fe("span",[ot,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(No=ot.offsetWidth<=1&&ot.offsetHeight>2&&!(Be&&vn<8))}var ct=No?fe("span","\u200B"):fe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var Os;function Ms(it){if(Os!=null)return Os;var ot=ve(it,document.createTextNode("A\u062EA")),ct=De(ot,0,1).getBoundingClientRect(),At=De(ot,1,2).getBoundingClientRect();return ae(it),!ct||ct.left==ct.right?!1:Os=At.right-ct.right<3}var Fo=`
b`.split(/\n/).length!=3?function(it){for(var ot=0,ct=[],At=it.length;ot<=At;){var mt=it.indexOf(`
`,ot);mt==-1&&(mt=it.length);var Dt=it.slice(ot,it.charAt(mt-1)=="\r"?mt-1:mt),qt=Dt.indexOf("\r");qt!=-1?(ct.push(Dt.slice(0,qt)),ot+=qt+1):(ct.push(Dt),ot=mt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},jt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(ot){return!1}}:function(it){var ot;try{ot=it.ownerDocument.selection.createRange()}catch(ct){}return!ot||ot.parentElement()!=it?!1:ot.compareEndPoints("StartToEnd",ot)!=0},la=function(){var it=fe("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),fs=null;function vs(it){if(fs!=null)return fs;var ot=ve(it,fe("span","x")),ct=ot.getBoundingClientRect(),At=De(ot,0,1).getBoundingClientRect();return fs=Math.abs(ct.left-At.left)>1}var Ws={},Fa={};function Sa(it,ot){arguments.length>2&&(ot.dependencies=Array.prototype.slice.call(arguments,2)),Ws[it]=ot}function Pr(it,ot){Fa[it]=ot}function Lr(it){if(typeof it=="string"&&Fa.hasOwnProperty(it))it=Fa[it];else if(it&&typeof it.name=="string"&&Fa.hasOwnProperty(it.name)){var ot=Fa[it.name];typeof ot=="string"&&(ot={name:ot}),it=yi(ot,it),it.name=ot.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Lr("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Lr("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function ln(it,ot){ot=Lr(ot);var ct=Ws[ot.name];if(!ct)return ln(it,"text/plain");var At=ct(it,ot);if(nn.hasOwnProperty(ot.name)){var mt=nn[ot.name];for(var Dt in mt)mt.hasOwnProperty(Dt)&&(At.hasOwnProperty(Dt)&&(At["_"+Dt]=At[Dt]),At[Dt]=mt[Dt])}if(At.name=ot.name,ot.helperType&&(At.helperType=ot.helperType),ot.modeProps)for(var qt in ot.modeProps)At[qt]=ot.modeProps[qt];return At}var nn={};function Ae(it,ot){var ct=nn.hasOwnProperty(it)?nn[it]:nn[it]={};mn(ot,ct)}function Tn(it,ot){if(ot===!0)return ot;if(it.copyState)return it.copyState(ot);var ct={};for(var At in ot){var mt=ot[At];mt instanceof Array&&(mt=mt.concat([])),ct[At]=mt}return ct}function Jn(it,ot){for(var ct;it.innerMode&&(ct=it.innerMode(ot),!(!ct||ct.mode==it));)ot=ct.state,it=ct.mode;return ct||{mode:it,state:ot}}function He(it,ot,ct){return it.startState?it.startState(ot,ct):!0}var we=function(it,ot,ct){this.pos=this.start=0,this.string=it,this.tabSize=ot||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};we.prototype.eol=function(){return this.pos>=this.string.length},we.prototype.sol=function(){return this.pos==this.lineStart},we.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},we.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},we.prototype.eat=function(it){var ot=this.string.charAt(this.pos),ct;if(typeof it=="string"?ct=ot==it:ct=ot&&(it.test?it.test(ot):it(ot)),ct)return++this.pos,ot},we.prototype.eatWhile=function(it){for(var ot=this.pos;this.eat(it););return this.pos>ot},we.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},we.prototype.skipToEnd=function(){this.pos=this.string.length},we.prototype.skipTo=function(it){var ot=this.string.indexOf(it,this.pos);if(ot>-1)return this.pos=ot,!0},we.prototype.backUp=function(it){this.pos-=it},we.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=pe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?pe(this.string,this.lineStart,this.tabSize):0)},we.prototype.indentation=function(){return pe(this.string,null,this.tabSize)-(this.lineStart?pe(this.string,this.lineStart,this.tabSize):0)},we.prototype.match=function(it,ot,ct){if(typeof it=="string"){var At=function(qt){return ct?qt.toLowerCase():qt},mt=this.string.substr(this.pos,it.length);if(At(mt)==At(it))return ot!==!1&&(this.pos+=it.length),!0}else{var Dt=this.string.slice(this.pos).match(it);return Dt&&Dt.index>0?null:(Dt&&ot!==!1&&(this.pos+=Dt[0].length),Dt)}},we.prototype.current=function(){return this.string.slice(this.start,this.pos)},we.prototype.hideFirstChars=function(it,ot){this.lineStart+=it;try{return ot()}finally{this.lineStart-=it}},we.prototype.lookAhead=function(it){var ot=this.lineOracle;return ot&&ot.lookAhead(it)},we.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function qe(it,ot){if(ot-=it.first,ot<0||ot>=it.size)throw new Error("There is no line "+(ot+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var At=0;;++At){var mt=ct.children[At],Dt=mt.chunkSize();if(ot<Dt){ct=mt;break}ot-=Dt}return ct.lines[ot]}function In(it,ot,ct){var At=[],mt=ot.line;return it.iter(ot.line,ct.line+1,function(Dt){var qt=Dt.text;mt==ct.line&&(qt=qt.slice(0,ct.ch)),mt==ot.line&&(qt=qt.slice(ot.ch)),At.push(qt),++mt}),At}function ui(it,ot,ct){var At=[];return it.iter(ot,ct,function(mt){At.push(mt.text)}),At}function Pi(it,ot){var ct=ot-it.height;if(ct)for(var At=it;At;At=At.parent)At.height+=ct}function Fe(it){if(it.parent==null)return null;for(var ot=it.parent,ct=Ve(ot.lines,it),At=ot.parent;At;ot=At,At=At.parent)for(var mt=0;At.children[mt]!=ot;++mt)ct+=At.children[mt].chunkSize();return ct+ot.first}function Qn(it,ot){var ct=it.first;t:do{for(var At=0;At<it.children.length;++At){var mt=it.children[At],Dt=mt.height;if(ot<Dt){it=mt;continue t}ot-=Dt,ct+=mt.chunkSize()}return ct}while(!it.lines);for(var qt=0;qt<it.lines.length;++qt){var he=it.lines[qt],ue=he.height;if(ot<ue)break;ot-=ue}return ct+qt}function Ei(it,ot){return ot>=it.first&&ot<it.first+it.size}function Ar(it,ot){return String(it.lineNumberFormatter(ot+it.firstLineNumber))}function Sn(it,ot,ct){if(ct===void 0&&(ct=null),!(this instanceof Sn))return new Sn(it,ot,ct);this.line=it,this.ch=ot,this.sticky=ct}function $n(it,ot){return it.line-ot.line||it.ch-ot.ch}function xr(it,ot){return it.sticky==ot.sticky&&$n(it,ot)==0}function dr(it){return Sn(it.line,it.ch)}function Dr(it,ot){return $n(it,ot)<0?ot:it}function tr(it,ot){return $n(it,ot)<0?it:ot}function vr(it,ot){return Math.max(it.first,Math.min(ot,it.first+it.size-1))}function ur(it,ot){if(ot.line<it.first)return Sn(it.first,0);var ct=it.first+it.size-1;return ot.line>ct?Sn(ct,qe(it,ct).text.length):kr(ot,qe(it,ot.line).text.length)}function kr(it,ot){var ct=it.ch;return ct==null||ct>ot?Sn(it.line,ot):ct<0?Sn(it.line,0):it}function Ao(it,ot){for(var ct=[],At=0;At<ot.length;At++)ct[At]=ur(it,ot[At]);return ct}var Oo=function(it,ot){this.state=it,this.lookAhead=ot},Kn=function(it,ot,ct,At){this.state=ot,this.doc=it,this.line=ct,this.maxLookAhead=At||0,this.baseTokens=null,this.baseTokenPos=1};Kn.prototype.lookAhead=function(it){var ot=this.doc.getLine(this.line+it);return ot!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),ot},Kn.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var ot=this.baseTokens[this.baseTokenPos+1];return{type:ot&&ot.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Kn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Kn.fromSaved=function(it,ot,ct){return ot instanceof Oo?new Kn(it,Tn(it.mode,ot.state),ct,ot.lookAhead):new Kn(it,Tn(it.mode,ot),ct)},Kn.prototype.save=function(it){var ot=it!==!1?Tn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Oo(ot,this.maxLookAhead):ot};function Vo(it,ot,ct,At){var mt=[it.state.modeGen],Dt={};Io(it,ot.text,it.doc.mode,ct,function(Me,xn){return mt.push(Me,xn)},Dt,At);for(var qt=ct.state,he=function(Me){ct.baseTokens=mt;var xn=it.state.overlays[Me],_e=1,ri=0;ct.state=!0,Io(it,ot.text,xn.mode,ct,function(ti,qi){for(var lr=_e;ri<ti;){var Cr=mt[_e];Cr>ti&&mt.splice(_e,1,ti,mt[_e+1],Cr),_e+=2,ri=Math.min(ti,Cr)}if(qi)if(xn.opaque)mt.splice(lr,_e-lr,ti,"overlay "+qi),_e=lr+2;else for(;lr<_e;lr+=2){var Ur=mt[lr+1];mt[lr+1]=(Ur?Ur+" ":"")+"overlay "+qi}},Dt),ct.state=qt,ct.baseTokens=null,ct.baseTokenPos=1},ue=0;ue<it.state.overlays.length;++ue)he(ue);return{styles:mt,classes:Dt.bgClass||Dt.textClass?Dt:null}}function rs(it,ot,ct){if(!ot.styles||ot.styles[0]!=it.state.modeGen){var At=Po(it,Fe(ot)),mt=ot.text.length>it.options.maxHighlightLength&&Tn(it.doc.mode,At.state),Dt=Vo(it,ot,At);mt&&(At.state=mt),ot.stateAfter=At.save(!mt),ot.styles=Dt.styles,Dt.classes?ot.styleClasses=Dt.classes:ot.styleClasses&&(ot.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return ot.styles}function Po(it,ot,ct){var At=it.doc,mt=it.display;if(!At.mode.startState)return new Kn(At,!0,ot);var Dt=oo(it,ot,ct),qt=Dt>At.first&&qe(At,Dt-1).stateAfter,he=qt?Kn.fromSaved(At,qt,Dt):new Kn(At,He(At.mode),Dt);return At.iter(Dt,ot,function(ue){zn(it,ue.text,he);var Me=he.line;ue.stateAfter=Me==ot-1||Me%5==0||Me>=mt.viewFrom&&Me<mt.viewTo?he.save():null,he.nextLine()}),ct&&(At.modeFrontier=he.line),he}function zn(it,ot,ct,At){var mt=it.doc.mode,Dt=new we(ot,it.options.tabSize,ct);for(Dt.start=Dt.pos=At||0,ot==""&&Hi(mt,ct.state);!Dt.eol();)pr(mt,Dt,ct.state),Dt.start=Dt.pos}function Hi(it,ot){if(it.blankLine)return it.blankLine(ot);if(it.innerMode){var ct=Jn(it,ot);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function pr(it,ot,ct,At){for(var mt=0;mt<10;mt++){At&&(At[0]=Jn(it,ct).mode);var Dt=it.token(ot,ct);if(ot.pos>ot.start)return Dt}throw new Error("Mode "+it.name+" failed to advance stream.")}var jr=function(it,ot,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=ot||null,this.state=ct};function Ir(it,ot,ct,At){var mt=it.doc,Dt=mt.mode,qt;ot=ur(mt,ot);var he=qe(mt,ot.line),ue=Po(it,ot.line,ct),Me=new we(he.text,it.options.tabSize,ue),xn;for(At&&(xn=[]);(At||Me.pos<ot.ch)&&!Me.eol();)Me.start=Me.pos,qt=pr(Dt,Me,ue.state),At&&xn.push(new jr(Me,qt,Tn(mt.mode,ue.state)));return At?xn:new jr(Me,qt,ue.state)}function co(it,ot){if(it)for(;;){var ct=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ct)break;it=it.slice(0,ct.index)+it.slice(ct.index+ct[0].length);var At=ct[1]?"bgClass":"textClass";ot[At]==null?ot[At]=ct[2]:new RegExp("(?:^|\\s)"+ct[2]+"(?:$|\\s)").test(ot[At])||(ot[At]+=" "+ct[2])}return it}function Io(it,ot,ct,At,mt,Dt,qt){var he=ct.flattenSpans;he==null&&(he=it.options.flattenSpans);var ue=0,Me=null,xn=new we(ot,it.options.tabSize,At),_e,ri=it.options.addModeClass&&[null];for(ot==""&&co(Hi(ct,At.state),Dt);!xn.eol();){if(xn.pos>it.options.maxHighlightLength?(he=!1,qt&&zn(it,ot,At,xn.pos),xn.pos=ot.length,_e=null):_e=co(pr(ct,xn,At.state,ri),Dt),ri){var ti=ri[0].name;ti&&(_e="m-"+(_e?ti+" "+_e:ti))}if(!he||Me!=_e){for(;ue<xn.start;)ue=Math.min(xn.start,ue+5e3),mt(ue,Me);Me=_e}xn.start=xn.pos}for(;ue<xn.pos;){var qi=Math.min(xn.pos,ue+5e3);mt(qi,Me),ue=qi}}function oo(it,ot,ct){for(var At,mt,Dt=it.doc,qt=ct?-1:ot-(it.doc.mode.innerMode?1e3:100),he=ot;he>qt;--he){if(he<=Dt.first)return Dt.first;var ue=qe(Dt,he-1),Me=ue.stateAfter;if(Me&&(!ct||he+(Me instanceof Oo?Me.lookAhead:0)<=Dt.modeFrontier))return he;var xn=pe(ue.text,null,it.options.tabSize);(mt==null||At>xn)&&(mt=he-1,At=xn)}return mt}function eo(it,ot){if(it.modeFrontier=Math.min(it.modeFrontier,ot),!(it.highlightFrontier<ot-10)){for(var ct=it.first,At=ot-1;At>ct;At--){var mt=qe(it,At).stateAfter;if(mt&&(!(mt instanceof Oo)||At+mt.lookAhead<ot)){ct=At+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var Br=!1,ai=!1;function vo(){Br=!0}function ei(){ai=!0}function Qo(it,ot,ct){this.marker=it,this.from=ot,this.to=ct}function Vs(it,ot){if(it)for(var ct=0;ct<it.length;++ct){var At=it[ct];if(At.marker==ot)return At}}function Xo(it,ot){for(var ct,At=0;At<it.length;++At)it[At]!=ot&&(ct||(ct=[])).push(it[At]);return ct}function Js(it,ot){it.markedSpans=it.markedSpans?it.markedSpans.concat([ot]):[ot],ot.marker.attachLine(it)}function ks(it,ot,ct){var At;if(it)for(var mt=0;mt<it.length;++mt){var Dt=it[mt],qt=Dt.marker,he=Dt.from==null||(qt.inclusiveLeft?Dt.from<=ot:Dt.from<ot);if(he||Dt.from==ot&&qt.type=="bookmark"&&(!ct||!Dt.marker.insertLeft)){var ue=Dt.to==null||(qt.inclusiveRight?Dt.to>=ot:Dt.to>ot);(At||(At=[])).push(new Qo(qt,Dt.from,ue?null:Dt.to))}}return At}function no(it,ot,ct){var At;if(it)for(var mt=0;mt<it.length;++mt){var Dt=it[mt],qt=Dt.marker,he=Dt.to==null||(qt.inclusiveRight?Dt.to>=ot:Dt.to>ot);if(he||Dt.from==ot&&qt.type=="bookmark"&&(!ct||Dt.marker.insertLeft)){var ue=Dt.from==null||(qt.inclusiveLeft?Dt.from<=ot:Dt.from<ot);(At||(At=[])).push(new Qo(qt,ue?null:Dt.from-ot,Dt.to==null?null:Dt.to-ot))}}return At}function ro(it,ot){if(ot.full)return null;var ct=Ei(it,ot.from.line)&&qe(it,ot.from.line).markedSpans,At=Ei(it,ot.to.line)&&qe(it,ot.to.line).markedSpans;if(!ct&&!At)return null;var mt=ot.from.ch,Dt=ot.to.ch,qt=$n(ot.from,ot.to)==0,he=ks(ct,mt,qt),ue=no(At,Dt,qt),Me=ot.text.length==1,xn=Te(ot.text).length+(Me?mt:0);if(he)for(var _e=0;_e<he.length;++_e){var ri=he[_e];if(ri.to==null){var ti=Vs(ue,ri.marker);ti?Me&&(ri.to=ti.to==null?null:ti.to+xn):ri.to=mt}}if(ue)for(var qi=0;qi<ue.length;++qi){var lr=ue[qi];if(lr.to!=null&&(lr.to+=xn),lr.from==null){var Cr=Vs(he,lr.marker);Cr||(lr.from=xn,Me&&(he||(he=[])).push(lr))}else lr.from+=xn,Me&&(he||(he=[])).push(lr)}he&&(he=Go(he)),ue&&ue!=he&&(ue=Go(ue));var Ur=[he];if(!Me){var mo=ot.text.length-2,Xr;if(mo>0&&he)for(var Eo=0;Eo<he.length;++Eo)he[Eo].to==null&&(Xr||(Xr=[])).push(new Qo(he[Eo].marker,null,null));for(var is=0;is<mo;++is)Ur.push(Xr);Ur.push(ue)}return Ur}function Go(it){for(var ot=0;ot<it.length;++ot){var ct=it[ot];ct.from!=null&&ct.from==ct.to&&ct.marker.clearWhenEmpty!==!1&&it.splice(ot--,1)}return it.length?it:null}function Ro(it,ot,ct){var At=null;if(it.iter(ot.line,ct.line+1,function(ti){if(ti.markedSpans)for(var qi=0;qi<ti.markedSpans.length;++qi){var lr=ti.markedSpans[qi].marker;lr.readOnly&&(!At||Ve(At,lr)==-1)&&(At||(At=[])).push(lr)}}),!At)return null;for(var mt=[{from:ot,to:ct}],Dt=0;Dt<At.length;++Dt)for(var qt=At[Dt],he=qt.find(0),ue=0;ue<mt.length;++ue){var Me=mt[ue];if(!($n(Me.to,he.from)<0||$n(Me.from,he.to)>0)){var xn=[ue,1],_e=$n(Me.from,he.from),ri=$n(Me.to,he.to);(_e<0||!qt.inclusiveLeft&&!_e)&&xn.push({from:Me.from,to:he.from}),(ri>0||!qt.inclusiveRight&&!ri)&&xn.push({from:he.to,to:Me.to}),mt.splice.apply(mt,xn),ue+=xn.length-3}}return mt}function Ji(it){var ot=it.markedSpans;if(ot){for(var ct=0;ct<ot.length;++ct)ot[ct].marker.detachLine(it);it.markedSpans=null}}function re(it,ot){if(ot){for(var ct=0;ct<ot.length;++ct)ot[ct].marker.attachLine(it);it.markedSpans=ot}}function zo(it){return it.inclusiveLeft?-1:0}function Hs(it){return it.inclusiveRight?1:0}function Qa(it,ot){var ct=it.lines.length-ot.lines.length;if(ct!=0)return ct;var At=it.find(),mt=ot.find(),Dt=$n(At.from,mt.from)||zo(it)-zo(ot);if(Dt)return-Dt;var qt=$n(At.to,mt.to)||Hs(it)-Hs(ot);return qt||ot.id-it.id}function Ra(it,ot){var ct=ai&&it.markedSpans,At;if(ct)for(var mt=void 0,Dt=0;Dt<ct.length;++Dt)mt=ct[Dt],mt.marker.collapsed&&(ot?mt.from:mt.to)==null&&(!At||Qa(At,mt.marker)<0)&&(At=mt.marker);return At}function hl(it){return Ra(it,!0)}function Do(it){return Ra(it,!1)}function yo(it,ot){var ct=ai&&it.markedSpans,At;if(ct)for(var mt=0;mt<ct.length;++mt){var Dt=ct[mt];Dt.marker.collapsed&&(Dt.from==null||Dt.from<ot)&&(Dt.to==null||Dt.to>ot)&&(!At||Qa(At,Dt.marker)<0)&&(At=Dt.marker)}return At}function os(it,ot,ct,At,mt){var Dt=qe(it,ot),qt=ai&&Dt.markedSpans;if(qt)for(var he=0;he<qt.length;++he){var ue=qt[he];if(ue.marker.collapsed){var Me=ue.marker.find(0),xn=$n(Me.from,ct)||zo(ue.marker)-zo(mt),_e=$n(Me.to,At)||Hs(ue.marker)-Hs(mt);if(!(xn>=0&&_e<=0||xn<=0&&_e>=0)&&(xn<=0&&(ue.marker.inclusiveRight&&mt.inclusiveLeft?$n(Me.to,ct)>=0:$n(Me.to,ct)>0)||xn>=0&&(ue.marker.inclusiveRight&&mt.inclusiveLeft?$n(Me.from,At)<=0:$n(Me.from,At)<0)))return!0}}}function wo(it){for(var ot;ot=hl(it);)it=ot.find(-1,!0).line;return it}function Ps(it){for(var ot;ot=Do(it);)it=ot.find(1,!0).line;return it}function Pl(it){for(var ot,ct;ot=Do(it);)it=ot.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Hr(it,ot){var ct=qe(it,ot),At=wo(ct);return ct==At?ot:Fe(At)}function zr(it,ot){if(ot>it.lastLine())return ot;var ct=qe(it,ot),At;if(!Ni(it,ct))return ot;for(;At=Do(ct);)ct=At.find(1,!0).line;return Fe(ct)+1}function Ni(it,ot){var ct=ai&&ot.markedSpans;if(ct){for(var At=void 0,mt=0;mt<ct.length;++mt)if(At=ct[mt],!!At.marker.collapsed){if(At.from==null)return!0;if(!At.marker.widgetNode&&At.from==0&&At.marker.inclusiveLeft&&to(it,ot,At))return!0}}}function to(it,ot,ct){if(ct.to==null){var At=ct.marker.find(1,!0);return to(it,At.line,Vs(At.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==ot.text.length)return!0;for(var mt=void 0,Dt=0;Dt<ot.markedSpans.length;++Dt)if(mt=ot.markedSpans[Dt],mt.marker.collapsed&&!mt.marker.widgetNode&&mt.from==ct.to&&(mt.to==null||mt.to!=ct.from)&&(mt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&to(it,ot,mt))return!0}function hs(it){it=wo(it);for(var ot=0,ct=it.parent,At=0;At<ct.lines.length;++At){var mt=ct.lines[At];if(mt==it)break;ot+=mt.height}for(var Dt=ct.parent;Dt;ct=Dt,Dt=ct.parent)for(var qt=0;qt<Dt.children.length;++qt){var he=Dt.children[qt];if(he==ct)break;ot+=he.height}return ot}function zs(it){if(it.height==0)return 0;for(var ot=it.text.length,ct,At=it;ct=hl(At);){var mt=ct.find(0,!0);At=mt.from.line,ot+=mt.from.ch-mt.to.ch}for(At=it;ct=Do(At);){var Dt=ct.find(0,!0);ot-=At.text.length-Dt.from.ch,At=Dt.to.line,ot+=At.text.length-Dt.to.ch}return ot}function Gs(it){var ot=it.display,ct=it.doc;ot.maxLine=qe(ct,ct.first),ot.maxLineLength=zs(ot.maxLine),ot.maxLineChanged=!0,ct.iter(function(At){var mt=zs(At);mt>ot.maxLineLength&&(ot.maxLineLength=mt,ot.maxLine=At)})}var so=function(it,ot,ct){this.text=it,re(this,ot),this.height=ct?ct(this):1};so.prototype.lineNo=function(){return Fe(this)},Tr(so);function Ls(it,ot,ct,At){it.text=ot,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Ji(it),re(it,ct);var mt=At?At(it):1;mt!=it.height&&Pi(it,mt)}function Xa(it){it.parent=null,Ji(it)}var Ul={},Ta={};function qo(it,ot){if(!it||/^\s*$/.test(it))return null;var ct=ot.addModeClass?Ta:Ul;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function Mn(it,ot){var ct=Ye("span",null,null,Ie?"padding-right: .1px":null),At={pre:Ye("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};ot.measure={};for(var mt=0;mt<=(ot.rest?ot.rest.length:0);mt++){var Dt=mt?ot.rest[mt-1]:ot.line,qt=void 0;At.pos=0,At.addToken=tc,Ms(it.display.measure)&&(qt=le(Dt,it.doc.direction))&&(At.addToken=aA(At.addToken,qt)),At.map=[];var he=ot!=it.display.externalMeasured&&Fe(Dt);ec(Dt,At,rs(it,Dt,he)),Dt.styleClasses&&(Dt.styleClasses.bgClass&&(At.bgClass=qn(Dt.styleClasses.bgClass,At.bgClass||"")),Dt.styleClasses.textClass&&(At.textClass=qn(Dt.styleClasses.textClass,At.textClass||""))),At.map.length==0&&At.map.push(0,0,At.content.appendChild(us(it.display.measure))),mt==0?(ot.measure.map=At.map,ot.measure.cache={}):((ot.measure.maps||(ot.measure.maps=[])).push(At.map),(ot.measure.caches||(ot.measure.caches=[])).push({}))}if(Ie){var ue=At.content.lastChild;(/\bcm-tab\b/.test(ue.className)||ue.querySelector&&ue.querySelector(".cm-tab"))&&(At.content.className="cm-tab-wrap-hack")}return ii(it,"renderLine",it,ot.line,At.pre),At.pre.className&&(At.textClass=qn(At.pre.className,At.textClass||"")),At}function ca(it){var ot=fe("span","\u2022","cm-invalidchar");return ot.title="\\u"+it.charCodeAt(0).toString(16),ot.setAttribute("aria-label",ot.title),ot}function tc(it,ot,ct,At,mt,Dt,qt){if(ot){var he=it.splitSpaces?Vl(ot,it.trailingSpace):ot,ue=it.cm.state.specialChars,Me=!1,xn;if(!ue.test(ot))it.col+=ot.length,xn=document.createTextNode(he),it.map.push(it.pos,it.pos+ot.length,xn),Be&&vn<9&&(Me=!0),it.pos+=ot.length;else{xn=document.createDocumentFragment();for(var _e=0;;){ue.lastIndex=_e;var ri=ue.exec(ot),ti=ri?ri.index-_e:ot.length-_e;if(ti){var qi=document.createTextNode(he.slice(_e,_e+ti));Be&&vn<9?xn.appendChild(fe("span",[qi])):xn.appendChild(qi),it.map.push(it.pos,it.pos+ti,qi),it.col+=ti,it.pos+=ti}if(!ri)break;_e+=ti+1;var lr=void 0;if(ri[0]==" "){var Cr=it.cm.options.tabSize,Ur=Cr-it.col%Cr;lr=xn.appendChild(fe("span",Ri(Ur),"cm-tab")),lr.setAttribute("role","presentation"),lr.setAttribute("cm-text"," "),it.col+=Ur}else ri[0]=="\r"||ri[0]==`
`?(lr=xn.appendChild(fe("span",ri[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),lr.setAttribute("cm-text",ri[0]),it.col+=1):(lr=it.cm.options.specialCharPlaceholder(ri[0]),lr.setAttribute("cm-text",ri[0]),Be&&vn<9?xn.appendChild(fe("span",[lr])):xn.appendChild(lr),it.col+=1);it.map.push(it.pos,it.pos+1,lr),it.pos++}}if(it.trailingSpace=he.charCodeAt(ot.length-1)==32,ct||At||mt||Me||Dt||qt){var mo=ct||"";At&&(mo+=At),mt&&(mo+=mt);var Xr=fe("span",[xn],mo,Dt);if(qt)for(var Eo in qt)qt.hasOwnProperty(Eo)&&Eo!="style"&&Eo!="class"&&Xr.setAttribute(Eo,qt[Eo]);return it.content.appendChild(Xr)}it.content.appendChild(xn)}}function Vl(it,ot){if(it.length>1&&!/ /.test(it))return it;for(var ct=ot,At="",mt=0;mt<it.length;mt++){var Dt=it.charAt(mt);Dt==" "&&ct&&(mt==it.length-1||it.charCodeAt(mt+1)==32)&&(Dt="\xA0"),At+=Dt,ct=Dt==" "}return At}function aA(it,ot){return function(ct,At,mt,Dt,qt,he,ue){mt=mt?mt+" cm-force-border":"cm-force-border";for(var Me=ct.pos,xn=Me+At.length;;){for(var _e=void 0,ri=0;ri<ot.length&&(_e=ot[ri],!(_e.to>Me&&_e.from<=Me));ri++);if(_e.to>=xn)return it(ct,At,mt,Dt,qt,he,ue);it(ct,At.slice(0,_e.to-Me),mt,Dt,null,he,ue),Dt=null,At=At.slice(_e.to-Me),Me=_e.to}}}function Oa(it,ot,ct,At){var mt=!At&&ct.widgetNode;mt&&it.map.push(it.pos,it.pos+ot,mt),!At&&it.cm.display.input.needsContentAttribute&&(mt||(mt=it.content.appendChild(document.createElement("span"))),mt.setAttribute("cm-marker",ct.id)),mt&&(it.cm.display.input.setUneditable(mt),it.content.appendChild(mt)),it.pos+=ot,it.trailingSpace=!1}function ec(it,ot,ct){var At=it.markedSpans,mt=it.text,Dt=0;if(!At){for(var qt=1;qt<ct.length;qt+=2)ot.addToken(ot,mt.slice(Dt,Dt=ct[qt]),qo(ct[qt+1],ot.cm.options));return}for(var he=mt.length,ue=0,Me=1,xn="",_e,ri,ti=0,qi,lr,Cr,Ur,mo;;){if(ti==ue){qi=lr=Cr=ri="",mo=null,Ur=null,ti=1/0;for(var Xr=[],Eo=void 0,is=0;is<At.length;++is){var Zr=At[is],xs=Zr.marker;if(xs.type=="bookmark"&&Zr.from==ue&&xs.widgetNode)Xr.push(xs);else if(Zr.from<=ue&&(Zr.to==null||Zr.to>ue||xs.collapsed&&Zr.to==ue&&Zr.from==ue)){if(Zr.to!=null&&Zr.to!=ue&&ti>Zr.to&&(ti=Zr.to,lr=""),xs.className&&(qi+=" "+xs.className),xs.css&&(ri=(ri?ri+";":"")+xs.css),xs.startStyle&&Zr.from==ue&&(Cr+=" "+xs.startStyle),xs.endStyle&&Zr.to==ti&&(Eo||(Eo=[])).push(xs.endStyle,Zr.to),xs.title&&((mo||(mo={})).title=xs.title),xs.attributes)for(var Ga in xs.attributes)(mo||(mo={}))[Ga]=xs.attributes[Ga];xs.collapsed&&(!Ur||Qa(Ur.marker,xs)<0)&&(Ur=Zr)}else Zr.from>ue&&ti>Zr.from&&(ti=Zr.from)}if(Eo)for(var Ja=0;Ja<Eo.length;Ja+=2)Eo[Ja+1]==ti&&(lr+=" "+Eo[Ja]);if(!Ur||Ur.from==ue)for(var va=0;va<Xr.length;++va)Oa(ot,0,Xr[va]);if(Ur&&(Ur.from||0)==ue){if(Oa(ot,(Ur.to==null?he+1:Ur.to)-ue,Ur.marker,Ur.from==null),Ur.to==null)return;Ur.to==ue&&(Ur=!1)}}if(ue>=he)break;for(var Aa=Math.min(he,ti);;){if(xn){var $s=ue+xn.length;if(!Ur){var ua=$s>Aa?xn.slice(0,Aa-ue):xn;ot.addToken(ot,ua,_e?_e+qi:qi,Cr,ue+ua.length==ti?lr:"",ri,mo)}if($s>=Aa){xn=xn.slice(Aa-ue),ue=Aa;break}ue=$s,Cr=""}xn=mt.slice(Dt,Dt=ct[Me++]),_e=qo(ct[Me++],ot.cm.options)}}}function Al(it,ot,ct){this.line=ot,this.rest=Pl(ot),this.size=this.rest?Fe(Te(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=Ni(it,ot)}function ps(it,ot,ct){for(var At=[],mt,Dt=ot;Dt<ct;Dt=mt){var qt=new Al(it.doc,qe(it.doc,Dt),Dt);mt=Dt+qt.size,At.push(qt)}return At}var Ys=null;function lA(it){Ys?Ys.ops.push(it):it.ownsGroup=Ys={ops:[it],delayedCallbacks:[]}}function jo(it){var ot=it.delayedCallbacks,ct=0;do{for(;ct<ot.length;ct++)ot[ct].call(null);for(var At=0;At<it.ops.length;At++){var mt=it.ops[At];if(mt.cursorActivityHandlers)for(;mt.cursorActivityCalled<mt.cursorActivityHandlers.length;)mt.cursorActivityHandlers[mt.cursorActivityCalled++].call(null,mt.cm)}}while(ct<ot.length)}function Fs(it,ot){var ct=it.ownsGroup;if(ct)try{jo(ct)}finally{Ys=null,ot(ct)}}var Zo=null;function mr(it,ot){var ct=pn(it,ot);if(ct.length){var At=Array.prototype.slice.call(arguments,2),mt;Ys?mt=Ys.delayedCallbacks:Zo?mt=Zo:(mt=Zo=[],setTimeout(cl,0));for(var Dt=function(he){mt.push(function(){return ct[he].apply(null,At)})},qt=0;qt<ct.length;++qt)Dt(qt)}}function cl(){var it=Zo;Zo=null;for(var ot=0;ot<it.length;++ot)it[ot]()}function dl(it,ot,ct,At){for(var mt=0;mt<ot.changes.length;mt++){var Dt=ot.changes[mt];Dt=="text"?nr(it,ot):Dt=="gutter"?Za(it,ot,ct,At):Dt=="class"?Pa(it,ot):Dt=="widget"&&bl(it,ot,At)}ot.changes=null}function lu(it){return it.node==it.text&&(it.node=fe("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Be&&vn<8&&(it.node.style.zIndex=2)),it.node}function ch(it,ot){var ct=ot.bgClass?ot.bgClass+" "+(ot.line.bgClass||""):ot.line.bgClass;if(ct&&(ct+=" CodeMirror-linebackground"),ot.background)ct?ot.background.className=ct:(ot.background.parentNode.removeChild(ot.background),ot.background=null);else if(ct){var At=lu(ot);ot.background=At.insertBefore(fe("div",null,ct),At.firstChild),it.display.input.setUneditable(ot.background)}}function bh(it,ot){var ct=it.display.externalMeasured;return ct&&ct.line==ot.line?(it.display.externalMeasured=null,ot.measure=ct.measure,ct.built):Mn(it,ot)}function nr(it,ot){var ct=ot.text.className,At=bh(it,ot);ot.text==ot.node&&(ot.node=At.pre),ot.text.parentNode.replaceChild(At.pre,ot.text),ot.text=At.pre,At.bgClass!=ot.bgClass||At.textClass!=ot.textClass?(ot.bgClass=At.bgClass,ot.textClass=At.textClass,Pa(it,ot)):ct&&(ot.text.className=ct)}function Pa(it,ot){ch(it,ot),ot.line.wrapClass?lu(ot).className=ot.line.wrapClass:ot.node!=ot.text&&(ot.node.className="");var ct=ot.textClass?ot.textClass+" "+(ot.line.textClass||""):ot.line.textClass;ot.text.className=ct||""}function Za(it,ot,ct,At){if(ot.gutter&&(ot.node.removeChild(ot.gutter),ot.gutter=null),ot.gutterBackground&&(ot.node.removeChild(ot.gutterBackground),ot.gutterBackground=null),ot.line.gutterClass){var mt=lu(ot);ot.gutterBackground=fe("div",null,"CodeMirror-gutter-background "+ot.line.gutterClass,"left: "+(it.options.fixedGutter?At.fixedPos:-At.gutterTotalWidth)+"px; width: "+At.gutterTotalWidth+"px"),it.display.input.setUneditable(ot.gutterBackground),mt.insertBefore(ot.gutterBackground,ot.text)}var Dt=ot.line.gutterMarkers;if(it.options.lineNumbers||Dt){var qt=lu(ot),he=ot.gutter=fe("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?At.fixedPos:-At.gutterTotalWidth)+"px");if(it.display.input.setUneditable(he),qt.insertBefore(he,ot.text),ot.line.gutterClass&&(he.className+=" "+ot.line.gutterClass),it.options.lineNumbers&&(!Dt||!Dt["CodeMirror-linenumbers"])&&(ot.lineNumber=he.appendChild(fe("div",Ar(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+At.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Dt)for(var ue=0;ue<it.display.gutterSpecs.length;++ue){var Me=it.display.gutterSpecs[ue].className,xn=Dt.hasOwnProperty(Me)&&Dt[Me];xn&&he.appendChild(fe("div",[xn],"CodeMirror-gutter-elt","left: "+At.gutterLeft[Me]+"px; width: "+At.gutterWidth[Me]+"px"))}}}function bl(it,ot,ct){ot.alignable&&(ot.alignable=null);for(var At=Gt("CodeMirror-linewidget"),mt=ot.node.firstChild,Dt=void 0;mt;mt=Dt)Dt=mt.nextSibling,At.test(mt.className)&&ot.node.removeChild(mt);Ql(it,ot,ct)}function zu(it,ot,ct,At){var mt=bh(it,ot);return ot.text=ot.node=mt.pre,mt.bgClass&&(ot.bgClass=mt.bgClass),mt.textClass&&(ot.textClass=mt.textClass),Pa(it,ot),Za(it,ot,ct,At),Ql(it,ot,At),ot.node}function Ql(it,ot,ct){if(bo(it,ot.line,ot,ct,!0),ot.rest)for(var At=0;At<ot.rest.length;At++)bo(it,ot.rest[At],ot,ct,!1)}function bo(it,ot,ct,At,mt){if(ot.widgets)for(var Dt=lu(ct),qt=0,he=ot.widgets;qt<he.length;++qt){var ue=he[qt],Me=fe("div",[ue.node],"CodeMirror-linewidget"+(ue.className?" "+ue.className:""));ue.handleMouseEvents||Me.setAttribute("cm-ignore-events","true"),fa(ue,Me,ct,At),it.display.input.setUneditable(Me),mt&&ue.above?Dt.insertBefore(Me,ct.gutter||ct.text):Dt.appendChild(Me),mr(ue,"redraw")}}function fa(it,ot,ct,At){if(it.noHScroll){(ct.alignable||(ct.alignable=[])).push(ot);var mt=At.wrapperWidth;ot.style.left=At.fixedPos+"px",it.coverGutter||(mt-=At.gutterTotalWidth,ot.style.paddingLeft=At.gutterTotalWidth+"px"),ot.style.width=mt+"px"}it.coverGutter&&(ot.style.zIndex=5,ot.style.position="relative",it.noHScroll||(ot.style.marginLeft=-At.gutterTotalWidth+"px"))}function Ea(it){if(it.height!=null)return it.height;var ot=it.doc.cm;if(!ot)return 0;if(!hn(document.body,it.node)){var ct="position: relative;";it.coverGutter&&(ct+="margin-left: -"+ot.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ct+="width: "+ot.display.wrapper.clientWidth+"px;"),ve(ot.display.measure,fe("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function Yl(it,ot){for(var ct=gr(ot);ct!=it.wrapper;ct=ct.parentNode)if(!ct||ct.nodeType==1&&ct.getAttribute("cm-ignore-events")=="true"||ct.parentNode==it.sizer&&ct!=it.mover)return!0}function Rl(it){return it.lineSpace.offsetTop}function vu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function tu(it){if(it.cachedPaddingH)return it.cachedPaddingH;var ot=ve(it.measure,fe("pre","x","CodeMirror-line-like")),ct=window.getComputedStyle?window.getComputedStyle(ot):ot.currentStyle,At={left:parseInt(ct.paddingLeft),right:parseInt(ct.paddingRight)};return!isNaN(At.left)&&!isNaN(At.right)&&(it.cachedPaddingH=At),At}function Hl(it){return Vn-it.display.nativeBarWidth}function Ll(it){return it.display.scroller.clientWidth-Hl(it)-it.display.barWidth}function uo(it){return it.display.scroller.clientHeight-Hl(it)-it.display.barHeight}function id(it,ot,ct){var At=it.options.lineWrapping,mt=At&&Ll(it);if(!ot.measure.heights||At&&ot.measure.width!=mt){var Dt=ot.measure.heights=[];if(At){ot.measure.width=mt;for(var qt=ot.text.firstChild.getClientRects(),he=0;he<qt.length-1;he++){var ue=qt[he],Me=qt[he+1];Math.abs(ue.bottom-Me.bottom)>2&&Dt.push((ue.bottom+Me.top)/2-ct.top)}}Dt.push(ct.bottom-ct.top)}}function Xl(it,ot,ct){if(it.line==ot)return{map:it.measure.map,cache:it.measure.cache};for(var At=0;At<it.rest.length;At++)if(it.rest[At]==ot)return{map:it.measure.maps[At],cache:it.measure.caches[At]};for(var mt=0;mt<it.rest.length;mt++)if(Fe(it.rest[mt])>ct)return{map:it.measure.maps[mt],cache:it.measure.caches[mt],before:!0}}function Nc(it,ot){ot=wo(ot);var ct=Fe(ot),At=it.display.externalMeasured=new Al(it.doc,ot,ct);At.lineN=ct;var mt=At.built=Mn(it,At);return At.text=mt.pre,ve(it.display.lineMeasure,mt.pre),At}function dh(it,ot,ct,At){return Gu(it,xa(it,ot),ct,At)}function uA(it,ot){if(ot>=it.display.viewFrom&&ot<it.display.viewTo)return it.display.view[_u(it,ot)];var ct=it.display.externalMeasured;if(ct&&ot>=ct.lineN&&ot<ct.lineN+ct.size)return ct}function xa(it,ot){var ct=Fe(ot),At=uA(it,ct);At&&!At.text?At=null:At&&At.changes&&(dl(it,At,ct,gf(it)),it.curOp.forceUpdate=!0),At||(At=Nc(it,ot));var mt=Xl(At,ot,ct);return{line:ot,view:At,rect:null,map:mt.map,cache:mt.cache,before:mt.before,hasHeights:!1}}function Gu(it,ot,ct,At,mt){ot.before&&(ct=-1);var Dt=ct+(At||""),qt;return ot.cache.hasOwnProperty(Dt)?qt=ot.cache[Dt]:(ot.rect||(ot.rect=ot.view.text.getBoundingClientRect()),ot.hasHeights||(id(it,ot.view,ot.rect),ot.hasHeights=!0),qt=ns(it,ot,ct,At),qt.bogus||(ot.cache[Dt]=qt)),{left:qt.left,right:qt.right,top:mt?qt.rtop:qt.top,bottom:mt?qt.rbottom:qt.bottom}}var rd={left:0,right:0,top:0,bottom:0};function jA(it,ot,ct){for(var At,mt,Dt,qt,he,ue,Me=0;Me<it.length;Me+=3)if(he=it[Me],ue=it[Me+1],ot<he?(mt=0,Dt=1,qt="left"):ot<ue?(mt=ot-he,Dt=mt+1):(Me==it.length-3||ot==ue&&it[Me+3]>ot)&&(Dt=ue-he,mt=Dt-1,ot>=ue&&(qt="right")),mt!=null){if(At=it[Me+2],he==ue&&ct==(At.insertLeft?"left":"right")&&(qt=ct),ct=="left"&&mt==0)for(;Me&&it[Me-2]==it[Me-3]&&it[Me-1].insertLeft;)At=it[(Me-=3)+2],qt="left";if(ct=="right"&&mt==ue-he)for(;Me<it.length-3&&it[Me+3]==it[Me+4]&&!it[Me+5].insertLeft;)At=it[(Me+=3)+2],qt="right";break}return{node:At,start:mt,end:Dt,collapse:qt,coverStart:he,coverEnd:ue}}function nc(it,ot){var ct=rd;if(ot=="left")for(var At=0;At<it.length&&(ct=it[At]).left==ct.right;At++);else for(var mt=it.length-1;mt>=0&&(ct=it[mt]).left==ct.right;mt--);return ct}function ns(it,ot,ct,At){var mt=jA(ot.map,ct,At),Dt=mt.node,qt=mt.start,he=mt.end,ue=mt.collapse,Me;if(Dt.nodeType==3){for(var xn=0;xn<4;xn++){for(;qt&&sn(ot.line.text.charAt(mt.coverStart+qt));)--qt;for(;mt.coverStart+he<mt.coverEnd&&sn(ot.line.text.charAt(mt.coverStart+he));)++he;if(Be&&vn<9&&qt==0&&he==mt.coverEnd-mt.coverStart?Me=Dt.parentNode.getBoundingClientRect():Me=nc(De(Dt,qt,he).getClientRects(),At),Me.left||Me.right||qt==0)break;he=qt,qt=qt-1,ue="right"}Be&&vn<11&&(Me=Xs(it.display.measure,Me))}else{qt>0&&(ue=At="right");var _e;it.options.lineWrapping&&(_e=Dt.getClientRects()).length>1?Me=_e[At=="right"?_e.length-1:0]:Me=Dt.getBoundingClientRect()}if(Be&&vn<9&&!qt&&(!Me||!Me.left&&!Me.right)){var ri=Dt.parentNode.getClientRects()[0];ri?Me={left:ri.left,right:ri.left+Lh(it.display),top:ri.top,bottom:ri.bottom}:Me=rd}for(var ti=Me.top-ot.rect.top,qi=Me.bottom-ot.rect.top,lr=(ti+qi)/2,Cr=ot.view.measure.heights,Ur=0;Ur<Cr.length-1&&!(lr<Cr[Ur]);Ur++);var mo=Ur?Cr[Ur-1]:0,Xr=Cr[Ur],Eo={left:(ue=="right"?Me.right:Me.left)-ot.rect.left,right:(ue=="left"?Me.left:Me.right)-ot.rect.left,top:mo,bottom:Xr};return!Me.left&&!Me.right&&(Eo.bogus=!0),it.options.singleCursorHeightPerLine||(Eo.rtop=ti,Eo.rbottom=qi),Eo}function Xs(it,ot){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!vs(it))return ot;var ct=screen.logicalXDPI/screen.deviceXDPI,At=screen.logicalYDPI/screen.deviceYDPI;return{left:ot.left*ct,right:ot.right*ct,top:ot.top*At,bottom:ot.bottom*At}}function eu(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var ot=0;ot<it.rest.length;ot++)it.measure.caches[ot]={}}function qa(it){it.display.externalMeasure=null,ae(it.display.lineMeasure);for(var ot=0;ot<it.display.view.length;ot++)eu(it.display.view[ot])}function Ma(it){qa(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function ga(){return ye&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Zs(){return ye&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ba(it){var ot=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(ot+=Ea(it.widgets[ct]));return ot}function ol(it,ot,ct,At,mt){if(!mt){var Dt=Ba(ot);ct.top+=Dt,ct.bottom+=Dt}if(At=="line")return ct;At||(At="local");var qt=hs(ot);if(At=="local"?qt+=Rl(it.display):qt-=it.display.viewOffset,At=="page"||At=="window"){var he=it.display.lineSpace.getBoundingClientRect();qt+=he.top+(At=="window"?0:Zs());var ue=he.left+(At=="window"?0:ga());ct.left+=ue,ct.right+=ue}return ct.top+=qt,ct.bottom+=qt,ct}function Gh(it,ot,ct){if(ct=="div")return ot;var At=ot.left,mt=ot.top;if(ct=="page")At-=ga(),mt-=Zs();else if(ct=="local"||!ct){var Dt=it.display.sizer.getBoundingClientRect();At+=Dt.left,mt+=Dt.top}var qt=it.display.lineSpace.getBoundingClientRect();return{left:At-qt.left,top:mt-qt.top}}function yu(it,ot,ct,At,mt){return At||(At=qe(it.doc,ot.line)),ol(it,At,dh(it,At,ot.ch,mt),ct)}function ba(it,ot,ct,At,mt,Dt){At=At||qe(it.doc,ot.line),mt||(mt=xa(it,At));function qt(qi,lr){var Cr=Gu(it,mt,qi,lr?"right":"left",Dt);return lr?Cr.left=Cr.right:Cr.right=Cr.left,ol(it,At,Cr,ct)}var he=le(At,it.doc.direction),ue=ot.ch,Me=ot.sticky;if(ue>=At.text.length?(ue=At.text.length,Me="before"):ue<=0&&(ue=0,Me="after"),!he)return qt(Me=="before"?ue-1:ue,Me=="before");function xn(qi,lr,Cr){var Ur=he[lr],mo=Ur.level==1;return qt(Cr?qi-1:qi,mo!=Cr)}var _e=bt(he,ue,Me),ri=It,ti=xn(ue,_e,Me=="before");return ri!=null&&(ti.other=xn(ue,ri,Me!="before")),ti}function od(it,ot){var ct=0;ot=ur(it.doc,ot),it.options.lineWrapping||(ct=Lh(it.display)*ot.ch);var At=qe(it.doc,ot.line),mt=hs(At)+Rl(it.display);return{left:ct,right:ct,top:mt,bottom:mt+At.height}}function ic(it,ot,ct,At,mt){var Dt=Sn(it,ot,ct);return Dt.xRel=mt,At&&(Dt.outside=At),Dt}function _h(it,ot,ct){var At=it.doc;if(ct+=it.display.viewOffset,ct<0)return ic(At.first,0,null,-1,-1);var mt=Qn(At,ct),Dt=At.first+At.size-1;if(mt>Dt)return ic(At.first+At.size-1,qe(At,Dt).text.length,null,1,1);ot<0&&(ot=0);for(var qt=qe(At,mt);;){var he=Li(it,qt,mt,ot,ct),ue=yo(qt,he.ch+(he.xRel>0||he.outside>0?1:0));if(!ue)return he;var Me=ue.find(1);if(Me.line==mt)return Me;qt=qe(At,mt=Me.line)}}function fo(it,ot,ct,At){At-=Ba(ot);var mt=ot.text.length,Dt=Hn(function(qt){return Gu(it,ct,qt-1).bottom<=At},mt,0);return mt=Hn(function(qt){return Gu(it,ct,qt).top>At},Dt,mt),{begin:Dt,end:mt}}function Kf(it,ot,ct,At){ct||(ct=xa(it,ot));var mt=ol(it,ot,Gu(it,ct,At),"line").top;return fo(it,ot,ct,mt)}function Je(it,ot,ct,At){return it.bottom<=ct?!1:it.top>ct?!0:(At?it.left:it.right)>ot}function Li(it,ot,ct,At,mt){mt-=hs(ot);var Dt=xa(it,ot),qt=Ba(ot),he=0,ue=ot.text.length,Me=!0,xn=le(ot,it.doc.direction);if(xn){var _e=(it.options.lineWrapping?hA:ff)(it,ot,ct,Dt,xn,At,mt);Me=_e.level!=1,he=Me?_e.from:_e.to-1,ue=Me?_e.to:_e.from-1}var ri=null,ti=null,qi=Hn(function(is){var Zr=Gu(it,Dt,is);return Zr.top+=qt,Zr.bottom+=qt,Je(Zr,At,mt,!1)?(Zr.top<=mt&&Zr.left<=At&&(ri=is,ti=Zr),!0):!1},he,ue),lr,Cr,Ur=!1;if(ti){var mo=At-ti.left<ti.right-At,Xr=mo==Me;qi=ri+(Xr?0:1),Cr=Xr?"after":"before",lr=mo?ti.left:ti.right}else{!Me&&(qi==ue||qi==he)&&qi++,Cr=qi==0?"after":qi==ot.text.length?"before":Gu(it,Dt,qi-(Me?1:0)).bottom+qt<=mt==Me?"after":"before";var Eo=ba(it,Sn(ct,qi,Cr),"line",ot,Dt);lr=Eo.left,Ur=mt<Eo.top?-1:mt>=Eo.bottom?1:0}return qi=Wn(ot.text,qi,1),ic(ct,qi,Cr,Ur,At-lr)}function ff(it,ot,ct,At,mt,Dt,qt){var he=Hn(function(_e){var ri=mt[_e],ti=ri.level!=1;return Je(ba(it,Sn(ct,ti?ri.to:ri.from,ti?"before":"after"),"line",ot,At),Dt,qt,!0)},0,mt.length-1),ue=mt[he];if(he>0){var Me=ue.level!=1,xn=ba(it,Sn(ct,Me?ue.from:ue.to,Me?"after":"before"),"line",ot,At);Je(xn,Dt,qt,!0)&&xn.top>qt&&(ue=mt[he-1])}return ue}function hA(it,ot,ct,At,mt,Dt,qt){var he=fo(it,ot,At,qt),ue=he.begin,Me=he.end;/\s/.test(ot.text.charAt(Me-1))&&Me--;for(var xn=null,_e=null,ri=0;ri<mt.length;ri++){var ti=mt[ri];if(!(ti.from>=Me||ti.to<=ue)){var qi=ti.level!=1,lr=Gu(it,At,qi?Math.min(Me,ti.to)-1:Math.max(ue,ti.from)).right,Cr=lr<Dt?Dt-lr+1e9:lr-Dt;(!xn||_e>Cr)&&(xn=ti,_e=Cr)}}return xn||(xn=mt[mt.length-1]),xn.from<ue&&(xn={from:ue,to:xn.to,level:xn.level}),xn.to>Me&&(xn={from:xn.from,to:Me,level:xn.level}),xn}var uu;function hu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(uu==null){uu=fe("pre",null,"CodeMirror-line-like");for(var ot=0;ot<49;++ot)uu.appendChild(document.createTextNode("x")),uu.appendChild(fe("br"));uu.appendChild(document.createTextNode("x"))}ve(it.measure,uu);var ct=uu.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),ae(it.measure),ct||1}function Lh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var ot=fe("span","xxxxxxxxxx"),ct=fe("pre",[ot],"CodeMirror-line-like");ve(it.measure,ct);var At=ot.getBoundingClientRect(),mt=(At.right-At.left)/10;return mt>2&&(it.cachedCharWidth=mt),mt||10}function gf(it){for(var ot=it.display,ct={},At={},mt=ot.gutters.clientLeft,Dt=ot.gutters.firstChild,qt=0;Dt;Dt=Dt.nextSibling,++qt){var he=it.display.gutterSpecs[qt].className;ct[he]=Dt.offsetLeft+Dt.clientLeft+mt,At[he]=Dt.clientWidth}return{fixedPos:Ic(ot),gutterTotalWidth:ot.gutters.offsetWidth,gutterLeft:ct,gutterWidth:At,wrapperWidth:ot.wrapper.clientWidth}}function Ic(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function pa(it){var ot=hu(it.display),ct=it.options.lineWrapping,At=ct&&Math.max(5,it.display.scroller.clientWidth/Lh(it.display)-3);return function(mt){if(Ni(it.doc,mt))return 0;var Dt=0;if(mt.widgets)for(var qt=0;qt<mt.widgets.length;qt++)mt.widgets[qt].height&&(Dt+=mt.widgets[qt].height);return ct?Dt+(Math.ceil(mt.text.length/At)||1)*ot:Dt+ot}}function Wo(it){var ot=it.doc,ct=pa(it);ot.iter(function(At){var mt=ct(At);mt!=At.height&&Pi(At,mt)})}function fu(it,ot,ct,At){var mt=it.display;if(!ct&&gr(ot).getAttribute("cm-not-content")=="true")return null;var Dt,qt,he=mt.lineSpace.getBoundingClientRect();try{Dt=ot.clientX-he.left,qt=ot.clientY-he.top}catch(_e){return null}var ue=_h(it,Dt,qt),Me;if(At&&ue.xRel>0&&(Me=qe(it.doc,ue.line).text).length==ue.ch){var xn=pe(Me,Me.length,it.options.tabSize)-Me.length;ue=Sn(ue.line,Math.max(0,Math.round((Dt-tu(it.display).left)/Lh(it.display))-xn))}return ue}function _u(it,ot){if(ot>=it.display.viewTo||(ot-=it.display.viewFrom,ot<0))return null;for(var ct=it.display.view,At=0;At<ct.length;At++)if(ot-=ct[At].size,ot<0)return At}function sl(it,ot,ct,At){ot==null&&(ot=it.doc.first),ct==null&&(ct=it.doc.first+it.doc.size),At||(At=0);var mt=it.display;if(At&&ct<mt.viewTo&&(mt.updateLineNumbers==null||mt.updateLineNumbers>ot)&&(mt.updateLineNumbers=ot),it.curOp.viewChanged=!0,ot>=mt.viewTo)ai&&Hr(it.doc,ot)<mt.viewTo&&kl(it);else if(ct<=mt.viewFrom)ai&&zr(it.doc,ct+At)>mt.viewFrom?kl(it):(mt.viewFrom+=At,mt.viewTo+=At);else if(ot<=mt.viewFrom&&ct>=mt.viewTo)kl(it);else if(ot<=mt.viewFrom){var Dt=Iu(it,ct,ct+At,1);Dt?(mt.view=mt.view.slice(Dt.index),mt.viewFrom=Dt.lineN,mt.viewTo+=At):kl(it)}else if(ct>=mt.viewTo){var qt=Iu(it,ot,ot,-1);qt?(mt.view=mt.view.slice(0,qt.index),mt.viewTo=qt.lineN):kl(it)}else{var he=Iu(it,ot,ot,-1),ue=Iu(it,ct,ct+At,1);he&&ue?(mt.view=mt.view.slice(0,he.index).concat(ps(it,he.lineN,ue.lineN)).concat(mt.view.slice(ue.index)),mt.viewTo+=At):kl(it)}var Me=mt.externalMeasured;Me&&(ct<Me.lineN?Me.lineN+=At:ot<Me.lineN+Me.size&&(mt.externalMeasured=null))}function Ts(it,ot,ct){it.curOp.viewChanged=!0;var At=it.display,mt=it.display.externalMeasured;if(mt&&ot>=mt.lineN&&ot<mt.lineN+mt.size&&(At.externalMeasured=null),!(ot<At.viewFrom||ot>=At.viewTo)){var Dt=At.view[_u(it,ot)];if(Dt.node!=null){var qt=Dt.changes||(Dt.changes=[]);Ve(qt,ct)==-1&&qt.push(ct)}}}function kl(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Iu(it,ot,ct,At){var mt=_u(it,ot),Dt,qt=it.display.view;if(!ai||ct==it.doc.first+it.doc.size)return{index:mt,lineN:ct};for(var he=it.display.viewFrom,ue=0;ue<mt;ue++)he+=qt[ue].size;if(he!=ot){if(At>0){if(mt==qt.length-1)return null;Dt=he+qt[mt].size-ot,mt++}else Dt=he-ot;ot+=Dt,ct+=Dt}for(;Hr(it.doc,ct)!=ct;){if(mt==(At<0?0:qt.length-1))return null;ct+=At*qt[mt-(At<0?1:0)].size,mt+=At}return{index:mt,lineN:ct}}function Da(it,ot,ct){var At=it.display,mt=At.view;mt.length==0||ot>=At.viewTo||ct<=At.viewFrom?(At.view=ps(it,ot,ct),At.viewFrom=ot):(At.viewFrom>ot?At.view=ps(it,ot,At.viewFrom).concat(At.view):At.viewFrom<ot&&(At.view=At.view.slice(_u(it,ot))),At.viewFrom=ot,At.viewTo<ct?At.view=At.view.concat(ps(it,At.viewTo,ct)):At.viewTo>ct&&(At.view=At.view.slice(0,_u(it,ct)))),At.viewTo=ct}function fh(it){for(var ot=it.display.view,ct=0,At=0;At<ot.length;At++){var mt=ot[At];!mt.hidden&&(!mt.node||mt.changes)&&++ct}return ct}function zl(it){it.display.input.showSelection(it.display.input.prepareSelection())}function rc(it,ot){ot===void 0&&(ot=!0);for(var ct=it.doc,At={},mt=At.cursors=document.createDocumentFragment(),Dt=At.selection=document.createDocumentFragment(),qt=0;qt<ct.sel.ranges.length;qt++)if(!(!ot&&qt==ct.sel.primIndex)){var he=ct.sel.ranges[qt];if(!(he.from().line>=it.display.viewTo||he.to().line<it.display.viewFrom)){var ue=he.empty();(ue||it.options.showCursorWhenSelecting)&&ia(it,he.head,mt),ue||qs(it,he,Dt)}}return At}function ia(it,ot,ct){var At=ba(it,ot,"div",null,null,!it.options.singleCursorHeightPerLine),mt=ct.appendChild(fe("div","\xA0","CodeMirror-cursor"));if(mt.style.left=At.left+"px",mt.style.top=At.top+"px",mt.style.height=Math.max(0,At.bottom-At.top)*it.options.cursorHeight+"px",At.other){var Dt=ct.appendChild(fe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Dt.style.display="",Dt.style.left=At.other.left+"px",Dt.style.top=At.other.top+"px",Dt.style.height=(At.other.bottom-At.other.top)*.85+"px"}}function gu(it,ot){return it.top-ot.top||it.left-ot.left}function qs(it,ot,ct){var At=it.display,mt=it.doc,Dt=document.createDocumentFragment(),qt=tu(it.display),he=qt.left,ue=Math.max(At.sizerWidth,Ll(it)-At.sizer.offsetLeft)-qt.right,Me=mt.direction=="ltr";function xn(Xr,Eo,is,Zr){Eo<0&&(Eo=0),Eo=Math.round(Eo),Zr=Math.round(Zr),Dt.appendChild(fe("div",null,"CodeMirror-selected","position: absolute; left: "+Xr+`px;
top: `+Eo+"px; width: "+(is==null?ue-Xr:is)+`px;
height: `+(Zr-Eo)+"px"))}function _e(Xr,Eo,is){var Zr=qe(mt,Xr),xs=Zr.text.length,Ga,Ja;function va(ua,ka){return yu(it,Sn(Xr,ua),"div",Zr,ka)}function Aa(ua,ka,Bl){var $r=Kf(it,Zr,null,ua),Qs=ka=="ltr"==(Bl=="after")?"left":"right",$a=Bl=="after"?$r.begin:$r.end-(/\s/.test(Zr.text.charAt($r.end-1))?2:1);return va($a,Qs)[Qs]}var $s=le(Zr,mt.direction);return Jt($s,Eo||0,is==null?xs:is,function(ua,ka,Bl,$r){var Qs=Bl=="ltr",$a=va(ua,Qs?"left":"right"),_a=va(ka-1,Qs?"right":"left"),nu=Eo==null&&ua==0,Es=is==null&&ka==xs,As=$r==0,mu=!$s||$r==$s.length-1;if(_a.top-$a.top<=3){var vl=(Me?nu:Es)&&As,xc=(Me?Es:nu)&&mu,Du=vl?he:(Qs?$a:_a).left,su=xc?ue:(Qs?_a:$a).right;xn(Du,$a.top,su-Du,$a.bottom)}else{var Fu,Ka,$l,yA;Qs?(Fu=Me&&nu&&As?he:$a.left,Ka=Me?ue:Aa(ua,Bl,"before"),$l=Me?he:Aa(ka,Bl,"after"),yA=Me&&Es&&mu?ue:_a.right):(Fu=Me?Aa(ua,Bl,"before"):he,Ka=!Me&&nu&&As?ue:$a.right,$l=!Me&&Es&&mu?he:_a.left,yA=Me?Aa(ka,Bl,"after"):ue),xn(Fu,$a.top,Ka-Fu,$a.bottom),$a.bottom<_a.top&&xn(he,$a.bottom,null,_a.top),xn($l,_a.top,yA-$l,_a.bottom)}(!Ga||gu($a,Ga)<0)&&(Ga=$a),gu(_a,Ga)<0&&(Ga=_a),(!Ja||gu($a,Ja)<0)&&(Ja=$a),gu(_a,Ja)<0&&(Ja=_a)}),{start:Ga,end:Ja}}var ri=ot.from(),ti=ot.to();if(ri.line==ti.line)_e(ri.line,ri.ch,ti.ch);else{var qi=qe(mt,ri.line),lr=qe(mt,ti.line),Cr=wo(qi)==wo(lr),Ur=_e(ri.line,ri.ch,Cr?qi.text.length+1:null).end,mo=_e(ti.line,Cr?0:null,ti.ch).start;Cr&&(Ur.top<mo.top-2?(xn(Ur.right,Ur.top,null,Ur.bottom),xn(he,mo.top,mo.left,mo.bottom)):xn(Ur.right,Ur.top,mo.left-Ur.right,Ur.bottom)),Ur.bottom<mo.top&&xn(he,Ur.bottom,null,mo.top)}ct.appendChild(Dt)}function Na(it){if(it.state.focused){var ot=it.display;clearInterval(ot.blinker);var ct=!0;ot.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?ot.blinker=setInterval(function(){it.hasFocus()||wt(it),ot.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(ot.cursorDiv.style.visibility="hidden")}}function tl(it){it.state.focused||(it.display.input.focus(),gt(it))}function yt(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,wt(it))},100)}function gt(it,ot){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(ii(it,"focus",it,ot),it.state.focused=!0,Pn(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Ie&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Na(it))}function wt(it,ot){it.state.delayingBlurEvent||(it.state.focused&&(ii(it,"blur",it,ot),it.state.focused=!1,$t(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Ct(it){for(var ot=it.display,ct=ot.lineDiv.offsetTop,At=0;At<ot.view.length;At++){var mt=ot.view[At],Dt=it.options.lineWrapping,qt=void 0,he=0;if(!mt.hidden){if(Be&&vn<8){var ue=mt.node.offsetTop+mt.node.offsetHeight;qt=ue-ct,ct=ue}else{var Me=mt.node.getBoundingClientRect();qt=Me.bottom-Me.top,!Dt&&mt.text.firstChild&&(he=mt.text.firstChild.getBoundingClientRect().right-Me.left-1)}var xn=mt.line.height-qt;if((xn>.005||xn<-.005)&&(Pi(mt.line,qt),Qt(mt.line),mt.rest))for(var _e=0;_e<mt.rest.length;_e++)Qt(mt.rest[_e]);if(he>it.display.sizerWidth){var ri=Math.ceil(he/Lh(it.display));ri>it.display.maxLineLength&&(it.display.maxLineLength=ri,it.display.maxLine=mt.line,it.display.maxLineChanged=!0)}}}}function Qt(it){if(it.widgets)for(var ot=0;ot<it.widgets.length;++ot){var ct=it.widgets[ot],At=ct.node.parentNode;At&&(ct.height=At.offsetHeight)}}function kt(it,ot,ct){var At=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;At=Math.floor(At-Rl(it));var mt=ct&&ct.bottom!=null?ct.bottom:At+it.wrapper.clientHeight,Dt=Qn(ot,At),qt=Qn(ot,mt);if(ct&&ct.ensure){var he=ct.ensure.from.line,ue=ct.ensure.to.line;he<Dt?(Dt=he,qt=Qn(ot,hs(qe(ot,he))+it.wrapper.clientHeight)):Math.min(ue,ot.lastLine())>=qt&&(Dt=Qn(ot,hs(qe(ot,ue))-it.wrapper.clientHeight),qt=ue)}return{from:Dt,to:Math.max(qt,Dt+1)}}function Yt(it,ot){if(!wi(it,"scrollCursorIntoView")){var ct=it.display,At=ct.sizer.getBoundingClientRect(),mt=null;if(ot.top+At.top<0?mt=!0:ot.bottom+At.top>(window.innerHeight||document.documentElement.clientHeight)&&(mt=!1),mt!=null&&!me){var Dt=fe("div","\u200B",null,`position: absolute;
top: `+(ot.top-ct.viewOffset-Rl(it.display))+`px;
height: `+(ot.bottom-ot.top+Hl(it)+ct.barHeight)+`px;
left: `+ot.left+"px; width: "+Math.max(2,ot.right-ot.left)+"px;");it.display.lineSpace.appendChild(Dt),Dt.scrollIntoView(mt),it.display.lineSpace.removeChild(Dt)}}}function Zt(it,ot,ct,At){At==null&&(At=0);var mt;!it.options.lineWrapping&&ot==ct&&(ot=ot.ch?Sn(ot.line,ot.sticky=="before"?ot.ch-1:ot.ch,"after"):ot,ct=ot.sticky=="before"?Sn(ot.line,ot.ch+1,"before"):ot);for(var Dt=0;Dt<5;Dt++){var qt=!1,he=ba(it,ot),ue=!ct||ct==ot?he:ba(it,ct);mt={left:Math.min(he.left,ue.left),top:Math.min(he.top,ue.top)-At,right:Math.max(he.left,ue.left),bottom:Math.max(he.bottom,ue.bottom)+At};var Me=Ce(it,mt),xn=it.doc.scrollTop,_e=it.doc.scrollLeft;if(Me.scrollTop!=null&&(jn(it,Me.scrollTop),Math.abs(it.doc.scrollTop-xn)>1&&(qt=!0)),Me.scrollLeft!=null&&(On(it,Me.scrollLeft),Math.abs(it.doc.scrollLeft-_e)>1&&(qt=!0)),!qt)break}return mt}function ne(it,ot){var ct=Ce(it,ot);ct.scrollTop!=null&&jn(it,ct.scrollTop),ct.scrollLeft!=null&&On(it,ct.scrollLeft)}function Ce(it,ot){var ct=it.display,At=hu(it.display);ot.top<0&&(ot.top=0);var mt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Dt=uo(it),qt={};ot.bottom-ot.top>Dt&&(ot.bottom=ot.top+Dt);var he=it.doc.height+vu(ct),ue=ot.top<At,Me=ot.bottom>he-At;if(ot.top<mt)qt.scrollTop=ue?0:ot.top;else if(ot.bottom>mt+Dt){var xn=Math.min(ot.top,(Me?he:ot.bottom)-Dt);xn!=mt&&(qt.scrollTop=xn)}var _e=it.options.fixedGutter?0:ct.gutters.offsetWidth,ri=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-_e,ti=Ll(it)-ct.gutters.offsetWidth,qi=ot.right-ot.left>ti;return qi&&(ot.right=ot.left+ti),ot.left<10?qt.scrollLeft=0:ot.left<ri?qt.scrollLeft=Math.max(0,ot.left+_e-(qi?0:10)):ot.right>ti+ri-3&&(qt.scrollLeft=ot.right+(qi?0:10)-ti),qt}function Re(it,ot){ot!=null&&(kn(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+ot)}function Qe(it){kn(it);var ot=it.getCursor();it.curOp.scrollToPos={from:ot,to:ot,margin:it.options.cursorScrollMargin}}function en(it,ot,ct){(ot!=null||ct!=null)&&kn(it),ot!=null&&(it.curOp.scrollLeft=ot),ct!=null&&(it.curOp.scrollTop=ct)}function ce(it,ot){kn(it),it.curOp.scrollToPos=ot}function kn(it){var ot=it.curOp.scrollToPos;if(ot){it.curOp.scrollToPos=null;var ct=od(it,ot.from),At=od(it,ot.to);Bn(it,ct,At,ot.margin)}}function Bn(it,ot,ct,At){var mt=Ce(it,{left:Math.min(ot.left,ct.left),top:Math.min(ot.top,ct.top)-At,right:Math.max(ot.right,ct.right),bottom:Math.max(ot.bottom,ct.bottom)+At});en(it,mt.scrollLeft,mt.scrollTop)}function jn(it,ot){Math.abs(it.doc.scrollTop-ot)<2||(zt||Gr(it,{top:ot}),an(it,ot,!0),zt&&Gr(it),Un(it,100))}function an(it,ot,ct){ot=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,ot)),!(it.display.scroller.scrollTop==ot&&!ct)&&(it.doc.scrollTop=ot,it.display.scrollbars.setScrollTop(ot),it.display.scroller.scrollTop!=ot&&(it.display.scroller.scrollTop=ot))}function On(it,ot,ct,At){ot=Math.max(0,Math.min(ot,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?ot==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-ot)<2)&&!At)&&(it.doc.scrollLeft=ot,wr(it),it.display.scroller.scrollLeft!=ot&&(it.display.scroller.scrollLeft=ot),it.display.scrollbars.setScrollLeft(ot))}function mi(it){var ot=it.display,ct=ot.gutters.offsetWidth,At=Math.round(it.doc.height+vu(it.display));return{clientHeight:ot.scroller.clientHeight,viewHeight:ot.wrapper.clientHeight,scrollWidth:ot.scroller.scrollWidth,clientWidth:ot.scroller.clientWidth,viewWidth:ot.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:At,scrollHeight:At+Hl(it)+ot.barHeight,nativeBarWidth:ot.nativeBarWidth,gutterWidth:ct}}var Ui=function(it,ot,ct){this.cm=ct;var At=this.vert=fe("div",[fe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),mt=this.horiz=fe("div",[fe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");At.tabIndex=mt.tabIndex=-1,it(At),it(mt),be(At,"scroll",function(){At.clientHeight&&ot(At.scrollTop,"vertical")}),be(mt,"scroll",function(){mt.clientWidth&&ot(mt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Be&&vn<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ui.prototype.update=function(it){var ot=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,At=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=ot?At+"px":"0";var mt=it.viewHeight-(ot?At:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+mt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ot){this.horiz.style.display="block",this.horiz.style.right=ct?At+"px":"0",this.horiz.style.left=it.barLeft+"px";var Dt=it.viewWidth-it.barLeft-(ct?At:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Dt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(At==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?At:0,bottom:ot?At:0}},Ui.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ui.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ui.prototype.zeroWidthHack=function(){var it=ht&&!oe?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Xt,this.disableVert=new Xt},Ui.prototype.enableZeroWidthBar=function(it,ot,ct){it.style.pointerEvents="auto";function At(){var mt=it.getBoundingClientRect(),Dt=ct=="vert"?document.elementFromPoint(mt.right-1,(mt.top+mt.bottom)/2):document.elementFromPoint((mt.right+mt.left)/2,mt.bottom-1);Dt!=it?it.style.pointerEvents="none":ot.set(1e3,At)}ot.set(1e3,At)},Ui.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var ir=function(){};ir.prototype.update=function(){return{bottom:0,right:0}},ir.prototype.setScrollLeft=function(){},ir.prototype.setScrollTop=function(){},ir.prototype.clear=function(){};function Er(it,ot){ot||(ot=mi(it));var ct=it.display.barWidth,At=it.display.barHeight;_i(it,ot);for(var mt=0;mt<4&&ct!=it.display.barWidth||At!=it.display.barHeight;mt++)ct!=it.display.barWidth&&it.options.lineWrapping&&Ct(it),_i(it,mi(it)),ct=it.display.barWidth,At=it.display.barHeight}function _i(it,ot){var ct=it.display,At=ct.scrollbars.update(ot);ct.sizer.style.paddingRight=(ct.barWidth=At.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=At.bottom)+"px",ct.heightForcer.style.borderBottom=At.bottom+"px solid transparent",At.right&&At.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=At.bottom+"px",ct.scrollbarFiller.style.width=At.right+"px"):ct.scrollbarFiller.style.display="",At.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=At.bottom+"px",ct.gutterFiller.style.width=ot.gutterWidth+"px"):ct.gutterFiller.style.display=""}var li={native:Ui,null:ir};function Xi(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&$t(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new li[it.options.scrollbarStyle](function(ot){it.display.wrapper.insertBefore(ot,it.display.scrollbarFiller),be(ot,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),ot.setAttribute("cm-not-content","true")},function(ot,ct){ct=="horizontal"?On(it,ot):jn(it,ot)},it),it.display.scrollbars.addClass&&Pn(it.display.wrapper,it.display.scrollbars.addClass)}var yr=0;function yn(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++yr},lA(it.curOp)}function bn(it){var ot=it.curOp;ot&&Fs(ot,function(ct){for(var At=0;At<ct.ops.length;At++)ct.ops[At].cm.curOp=null;bi(ct)})}function bi(it){for(var ot=it.ops,ct=0;ct<ot.length;ct++)hi(ot[ct]);for(var At=0;At<ot.length;At++)cr(ot[At]);for(var mt=0;mt<ot.length;mt++)sr(ot[mt]);for(var Dt=0;Dt<ot.length;Dt++)Vi(ot[Dt]);for(var qt=0;qt<ot.length;qt++)zi(ot[qt])}function hi(it){var ot=it.cm,ct=ot.display;Oi(ot),it.updateMaxLine&&Gs(ot),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ct.viewFrom||it.scrollToPos.to.line>=ct.viewTo)||ct.maxLineChanged&&ot.options.lineWrapping,it.update=it.mustUpdate&&new pi(ot,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function cr(it){it.updatedDisplay=it.mustUpdate&&or(it.cm,it.update)}function sr(it){var ot=it.cm,ct=ot.display;it.updatedDisplay&&Ct(ot),it.barMeasure=mi(ot),ct.maxLineChanged&&!ot.options.lineWrapping&&(it.adjustWidthTo=dh(ot,ct.maxLine,ct.maxLine.text.length).left+3,ot.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+Hl(ot)+ot.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Ll(ot))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function Vi(it){var ot=it.cm;it.adjustWidthTo!=null&&(ot.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<ot.doc.scrollLeft&&On(ot,Math.min(ot.display.scroller.scrollLeft,it.maxScrollLeft),!0),ot.display.maxLineChanged=!1);var ct=it.focus&&it.focus==Ue();it.preparedSelection&&ot.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=ot.doc.height)&&Er(ot,it.barMeasure),it.updatedDisplay&&Ss(ot,it.barMeasure),it.selectionChanged&&Na(ot),ot.state.focused&&it.updateInput&&ot.display.input.reset(it.typing),ct&&tl(it.cm)}function zi(it){var ot=it.cm,ct=ot.display,At=ot.doc;if(it.updatedDisplay&&Mr(ot,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&an(ot,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&On(ot,it.scrollLeft,!0,!0),it.scrollToPos){var mt=Zt(ot,ur(At,it.scrollToPos.from),ur(At,it.scrollToPos.to),it.scrollToPos.margin);Yt(ot,mt)}var Dt=it.maybeHiddenMarkers,qt=it.maybeUnhiddenMarkers;if(Dt)for(var he=0;he<Dt.length;++he)Dt[he].lines.length||ii(Dt[he],"hide");if(qt)for(var ue=0;ue<qt.length;++ue)qt[ue].lines.length&&ii(qt[ue],"unhide");ct.wrapper.offsetHeight&&(At.scrollTop=ot.display.scroller.scrollTop),it.changeObjs&&ii(ot,"changes",ot,it.changeObjs),it.update&&it.update.finish()}function Gi(it,ot){if(it.curOp)return ot();yn(it);try{return ot()}finally{bn(it)}}function rr(it,ot){return function(){if(it.curOp)return ot.apply(it,arguments);yn(it);try{return ot.apply(it,arguments)}finally{bn(it)}}}function ao(it){return function(){if(this.curOp)return it.apply(this,arguments);yn(this);try{return it.apply(this,arguments)}finally{bn(this)}}}function tn(it){return function(){var ot=this.cm;if(!ot||ot.curOp)return it.apply(this,arguments);yn(ot);try{return it.apply(this,arguments)}finally{bn(ot)}}}function Un(it,ot){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(ot,fn(Gn,it))}function Gn(it){var ot=it.doc;if(!(ot.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,At=Po(it,ot.highlightFrontier),mt=[];ot.iter(At.line,Math.min(ot.first+ot.size,it.display.viewTo+500),function(Dt){if(At.line>=it.display.viewFrom){var qt=Dt.styles,he=Dt.text.length>it.options.maxHighlightLength?Tn(ot.mode,At.state):null,ue=Vo(it,Dt,At,!0);he&&(At.state=he),Dt.styles=ue.styles;var Me=Dt.styleClasses,xn=ue.classes;xn?Dt.styleClasses=xn:Me&&(Dt.styleClasses=null);for(var _e=!qt||qt.length!=Dt.styles.length||Me!=xn&&(!Me||!xn||Me.bgClass!=xn.bgClass||Me.textClass!=xn.textClass),ri=0;!_e&&ri<qt.length;++ri)_e=qt[ri]!=Dt.styles[ri];_e&&mt.push(At.line),Dt.stateAfter=At.save(),At.nextLine()}else Dt.text.length<=it.options.maxHighlightLength&&zn(it,Dt.text,At),Dt.stateAfter=At.line%5==0?At.save():null,At.nextLine();if(+new Date>ct)return Un(it,it.options.workDelay),!0}),ot.highlightFrontier=At.line,ot.modeFrontier=Math.max(ot.modeFrontier,At.line),mt.length&&Gi(it,function(){for(var Dt=0;Dt<mt.length;Dt++)Ts(it,mt[Dt],"text")})}}var pi=function(it,ot,ct){var At=it.display;this.viewport=ot,this.visible=kt(At,it.doc,ot),this.editorIsHidden=!At.wrapper.offsetWidth,this.wrapperHeight=At.wrapper.clientHeight,this.wrapperWidth=At.wrapper.clientWidth,this.oldDisplayWidth=Ll(it),this.force=ct,this.dims=gf(it),this.events=[]};pi.prototype.signal=function(it,ot){_r(it,ot)&&this.events.push(arguments)},pi.prototype.finish=function(){for(var it=0;it<this.events.length;it++)ii.apply(null,this.events[it])};function Oi(it){var ot=it.display;!ot.scrollbarsClipped&&ot.scroller.offsetWidth&&(ot.nativeBarWidth=ot.scroller.offsetWidth-ot.scroller.clientWidth,ot.heightForcer.style.height=Hl(it)+"px",ot.sizer.style.marginBottom=-ot.nativeBarWidth+"px",ot.sizer.style.borderRightWidth=Hl(it)+"px",ot.scrollbarsClipped=!0)}function $i(it){if(it.hasFocus())return null;var ot=Ue();if(!ot||!hn(it.display.lineDiv,ot))return null;var ct={activeElt:ot};if(window.getSelection){var At=window.getSelection();At.anchorNode&&At.extend&&hn(it.display.lineDiv,At.anchorNode)&&(ct.anchorNode=At.anchorNode,ct.anchorOffset=At.anchorOffset,ct.focusNode=At.focusNode,ct.focusOffset=At.focusOffset)}return ct}function Wi(it){if(!(!it||!it.activeElt||it.activeElt==Ue())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&hn(document.body,it.anchorNode)&&hn(document.body,it.focusNode))){var ot=window.getSelection(),ct=document.createRange();ct.setEnd(it.anchorNode,it.anchorOffset),ct.collapse(!1),ot.removeAllRanges(),ot.addRange(ct),ot.extend(it.focusNode,it.focusOffset)}}function or(it,ot){var ct=it.display,At=it.doc;if(ot.editorIsHidden)return kl(it),!1;if(!ot.force&&ot.visible.from>=ct.viewFrom&&ot.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&fh(it)==0)return!1;_n(it)&&(kl(it),ot.dims=gf(it));var mt=At.first+At.size,Dt=Math.max(ot.visible.from-it.options.viewportMargin,At.first),qt=Math.min(mt,ot.visible.to+it.options.viewportMargin);ct.viewFrom<Dt&&Dt-ct.viewFrom<20&&(Dt=Math.max(At.first,ct.viewFrom)),ct.viewTo>qt&&ct.viewTo-qt<20&&(qt=Math.min(mt,ct.viewTo)),ai&&(Dt=Hr(it.doc,Dt),qt=zr(it.doc,qt));var he=Dt!=ct.viewFrom||qt!=ct.viewTo||ct.lastWrapHeight!=ot.wrapperHeight||ct.lastWrapWidth!=ot.wrapperWidth;Da(it,Dt,qt),ct.viewOffset=hs(qe(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var ue=fh(it);if(!he&&ue==0&&!ot.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var Me=$i(it);return ue>4&&(ct.lineDiv.style.display="none"),Uo(it,ct.updateLineNumbers,ot.dims),ue>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,Wi(Me),ae(ct.cursorDiv),ae(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,he&&(ct.lastWrapHeight=ot.wrapperHeight,ct.lastWrapWidth=ot.wrapperWidth,Un(it,400)),ct.updateLineNumbers=null,!0}function Mr(it,ot){for(var ct=ot.viewport,At=!0;;At=!1){if(!At||!it.options.lineWrapping||ot.oldDisplayWidth==Ll(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+vu(it.display)-uo(it),ct.top)}),ot.visible=kt(it.display,it.doc,ct),ot.visible.from>=it.display.viewFrom&&ot.visible.to<=it.display.viewTo)break}else At&&(ot.visible=kt(it.display,it.doc,ct));if(!or(it,ot))break;Ct(it);var mt=mi(it);zl(it),Er(it,mt),Ss(it,mt),ot.force=!1}ot.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(ot.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Gr(it,ot){var ct=new pi(it,ot);if(or(it,ct)){Ct(it),Mr(it,ct);var At=mi(it);zl(it),Er(it,At),Ss(it,At),ct.finish()}}function Uo(it,ot,ct){var At=it.display,mt=it.options.lineNumbers,Dt=At.lineDiv,qt=Dt.firstChild;function he(qi){var lr=qi.nextSibling;return Ie&&ht&&it.display.currentWheelTarget==qi?qi.style.display="none":qi.parentNode.removeChild(qi),lr}for(var ue=At.view,Me=At.viewFrom,xn=0;xn<ue.length;xn++){var _e=ue[xn];if(!_e.hidden)if(!_e.node||_e.node.parentNode!=Dt){var ri=zu(it,_e,Me,ct);Dt.insertBefore(ri,qt)}else{for(;qt!=_e.node;)qt=he(qt);var ti=mt&&ot!=null&&ot<=Me&&_e.lineNumber;_e.changes&&(Ve(_e.changes,"gutter")>-1&&(ti=!1),dl(it,_e,Me,ct)),ti&&(ae(_e.lineNumber),_e.lineNumber.appendChild(document.createTextNode(Ar(it.options,Me)))),qt=_e.node.nextSibling}Me+=_e.size}for(;qt;)qt=he(qt)}function Lo(it){var ot=it.gutters.offsetWidth;it.sizer.style.marginLeft=ot+"px"}function Ss(it,ot){it.display.sizer.style.minHeight=ot.docHeight+"px",it.display.heightForcer.style.top=ot.docHeight+"px",it.display.gutters.style.height=ot.docHeight+it.display.barHeight+Hl(it)+"px"}function wr(it){var ot=it.display,ct=ot.view;if(!(!ot.alignWidgets&&(!ot.gutters.firstChild||!it.options.fixedGutter))){for(var At=Ic(ot)-ot.scroller.scrollLeft+it.doc.scrollLeft,mt=ot.gutters.offsetWidth,Dt=At+"px",qt=0;qt<ct.length;qt++)if(!ct[qt].hidden){it.options.fixedGutter&&(ct[qt].gutter&&(ct[qt].gutter.style.left=Dt),ct[qt].gutterBackground&&(ct[qt].gutterBackground.style.left=Dt));var he=ct[qt].alignable;if(he)for(var ue=0;ue<he.length;ue++)he[ue].style.left=Dt}it.options.fixedGutter&&(ot.gutters.style.left=At+mt+"px")}}function _n(it){if(!it.options.lineNumbers)return!1;var ot=it.doc,ct=Ar(it.options,ot.first+ot.size-1),At=it.display;if(ct.length!=At.lineNumChars){var mt=At.measure.appendChild(fe("div",[fe("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Dt=mt.firstChild.offsetWidth,qt=mt.offsetWidth-Dt;return At.lineGutter.style.width="",At.lineNumInnerWidth=Math.max(Dt,At.lineGutter.offsetWidth-qt)+1,At.lineNumWidth=At.lineNumInnerWidth+qt,At.lineNumChars=At.lineNumInnerWidth?ct.length:-1,At.lineGutter.style.width=At.lineNumWidth+"px",Lo(it.display),!0}return!1}function ls(it,ot){for(var ct=[],At=!1,mt=0;mt<it.length;mt++){var Dt=it[mt],qt=null;if(typeof Dt!="string"&&(qt=Dt.style,Dt=Dt.className),Dt=="CodeMirror-linenumbers")if(ot)At=!0;else continue;ct.push({className:Dt,style:qt})}return ot&&!At&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function Jo(it){var ot=it.gutters,ct=it.gutterSpecs;ae(ot),it.lineGutter=null;for(var At=0;At<ct.length;++At){var mt=ct[At],Dt=mt.className,qt=mt.style,he=ot.appendChild(fe("div",null,"CodeMirror-gutter "+Dt));qt&&(he.style.cssText=qt),Dt=="CodeMirror-linenumbers"&&(it.lineGutter=he,he.style.width=(it.lineNumWidth||1)+"px")}ot.style.display=ct.length?"":"none",Lo(it)}function Rr(it){Jo(it.display),sl(it),wr(it)}function So(it,ot,ct,At){var mt=this;this.input=ct,mt.scrollbarFiller=fe("div",null,"CodeMirror-scrollbar-filler"),mt.scrollbarFiller.setAttribute("cm-not-content","true"),mt.gutterFiller=fe("div",null,"CodeMirror-gutter-filler"),mt.gutterFiller.setAttribute("cm-not-content","true"),mt.lineDiv=Ye("div",null,"CodeMirror-code"),mt.selectionDiv=fe("div",null,null,"position: relative; z-index: 1"),mt.cursorDiv=fe("div",null,"CodeMirror-cursors"),mt.measure=fe("div",null,"CodeMirror-measure"),mt.lineMeasure=fe("div",null,"CodeMirror-measure"),mt.lineSpace=Ye("div",[mt.measure,mt.lineMeasure,mt.selectionDiv,mt.cursorDiv,mt.lineDiv],null,"position: relative; outline: none");var Dt=Ye("div",[mt.lineSpace],"CodeMirror-lines");mt.mover=fe("div",[Dt],null,"position: relative"),mt.sizer=fe("div",[mt.mover],"CodeMirror-sizer"),mt.sizerWidth=null,mt.heightForcer=fe("div",null,null,"position: absolute; height: "+Vn+"px; width: 1px;"),mt.gutters=fe("div",null,"CodeMirror-gutters"),mt.lineGutter=null,mt.scroller=fe("div",[mt.sizer,mt.heightForcer,mt.gutters],"CodeMirror-scroll"),mt.scroller.setAttribute("tabIndex","-1"),mt.wrapper=fe("div",[mt.scrollbarFiller,mt.gutterFiller,mt.scroller],"CodeMirror"),Be&&vn<8&&(mt.gutters.style.zIndex=-1,mt.scroller.style.paddingRight=0),!Ie&&!(zt&&nt)&&(mt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(mt.wrapper):it(mt.wrapper)),mt.viewFrom=mt.viewTo=ot.first,mt.reportedViewFrom=mt.reportedViewTo=ot.first,mt.view=[],mt.renderedView=null,mt.externalMeasured=null,mt.viewOffset=0,mt.lastWrapHeight=mt.lastWrapWidth=0,mt.updateLineNumbers=null,mt.nativeBarWidth=mt.barHeight=mt.barWidth=0,mt.scrollbarsClipped=!1,mt.lineNumWidth=mt.lineNumInnerWidth=mt.lineNumChars=null,mt.alignWidgets=!1,mt.cachedCharWidth=mt.cachedTextHeight=mt.cachedPaddingH=null,mt.maxLine=null,mt.maxLineLength=0,mt.maxLineChanged=!1,mt.wheelDX=mt.wheelDY=mt.wheelStartX=mt.wheelStartY=null,mt.shift=!1,mt.selForContextMenu=null,mt.activeTouch=null,mt.gutterSpecs=ls(At.gutters,At.lineNumbers),Jo(mt),ct.init(mt)}var xo=0,Yr=null;Be?Yr=-.53:zt?Yr=15:ye?Yr=-.7:se&&(Yr=-1/3);function ts(it){var ot=it.wheelDeltaX,ct=it.wheelDeltaY;return ot==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(ot=it.detail),ct==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ct=it.detail:ct==null&&(ct=it.wheelDelta),{x:ot,y:ct}}function ms(it){var ot=ts(it);return ot.x*=Yr,ot.y*=Yr,ot}function cs(it,ot){var ct=ts(ot),At=ct.x,mt=ct.y,Dt=it.display,qt=Dt.scroller,he=qt.scrollWidth>qt.clientWidth,ue=qt.scrollHeight>qt.clientHeight;if(At&&he||mt&&ue){if(mt&&ht&&Ie){t:for(var Me=ot.target,xn=Dt.view;Me!=qt;Me=Me.parentNode)for(var _e=0;_e<xn.length;_e++)if(xn[_e].node==Me){it.display.currentWheelTarget=Me;break t}}if(At&&!zt&&!Nt&&Yr!=null){mt&&ue&&jn(it,Math.max(0,qt.scrollTop+mt*Yr)),On(it,Math.max(0,qt.scrollLeft+At*Yr)),(!mt||mt&&ue)&&po(ot),Dt.wheelStartX=null;return}if(mt&&Yr!=null){var ri=mt*Yr,ti=it.doc.scrollTop,qi=ti+Dt.wrapper.clientHeight;ri<0?ti=Math.max(0,ti+ri-50):qi=Math.min(it.doc.height,qi+ri+50),Gr(it,{top:ti,bottom:qi})}xo<20&&(Dt.wheelStartX==null?(Dt.wheelStartX=qt.scrollLeft,Dt.wheelStartY=qt.scrollTop,Dt.wheelDX=At,Dt.wheelDY=mt,setTimeout(function(){if(Dt.wheelStartX!=null){var lr=qt.scrollLeft-Dt.wheelStartX,Cr=qt.scrollTop-Dt.wheelStartY,Ur=Cr&&Dt.wheelDY&&Cr/Dt.wheelDY||lr&&Dt.wheelDX&&lr/Dt.wheelDX;Dt.wheelStartX=Dt.wheelStartY=null,Ur&&(Yr=(Yr*xo+Ur)/(xo+1),++xo)}},200)):(Dt.wheelDX+=At,Dt.wheelDY+=mt))}}var Ds=function(it,ot){this.ranges=it,this.primIndex=ot};Ds.prototype.primary=function(){return this.ranges[this.primIndex]},Ds.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var ot=0;ot<this.ranges.length;ot++){var ct=this.ranges[ot],At=it.ranges[ot];if(!xr(ct.anchor,At.anchor)||!xr(ct.head,At.head))return!1}return!0},Ds.prototype.deepCopy=function(){for(var it=[],ot=0;ot<this.ranges.length;ot++)it[ot]=new $o(dr(this.ranges[ot].anchor),dr(this.ranges[ot].head));return new Ds(it,this.primIndex)},Ds.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},Ds.prototype.contains=function(it,ot){ot||(ot=it);for(var ct=0;ct<this.ranges.length;ct++){var At=this.ranges[ct];if($n(ot,At.from())>=0&&$n(it,At.to())<=0)return ct}return-1};var $o=function(it,ot){this.anchor=it,this.head=ot};$o.prototype.from=function(){return tr(this.anchor,this.head)},$o.prototype.to=function(){return Dr(this.anchor,this.head)},$o.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ra(it,ot,ct){var At=it&&it.options.selectionsMayTouch,mt=ot[ct];ot.sort(function(ri,ti){return $n(ri.from(),ti.from())}),ct=Ve(ot,mt);for(var Dt=1;Dt<ot.length;Dt++){var qt=ot[Dt],he=ot[Dt-1],ue=$n(he.to(),qt.from());if(At&&!qt.empty()?ue>0:ue>=0){var Me=tr(he.from(),qt.from()),xn=Dr(he.to(),qt.to()),_e=he.empty()?qt.from()==qt.head:he.from()==he.head;Dt<=ct&&--ct,ot.splice(--Dt,2,new $o(_e?xn:Me,_e?Me:xn))}}return new Ds(ot,ct)}function Bs(it,ot){return new Ds([new $o(it,ot||it)],0)}function ta(it){return it.text?Sn(it.from.line+it.text.length-1,Te(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function ko(it,ot){if($n(it,ot.from)<0)return it;if($n(it,ot.to)<=0)return ta(ot);var ct=it.line+ot.text.length-(ot.to.line-ot.from.line)-1,At=it.ch;return it.line==ot.to.line&&(At+=ta(ot).ch-ot.to.ch),Sn(ct,At)}function Au(it,ot){for(var ct=[],At=0;At<it.sel.ranges.length;At++){var mt=it.sel.ranges[At];ct.push(new $o(ko(mt.anchor,ot),ko(mt.head,ot)))}return ra(it.cm,ct,it.sel.primIndex)}function Ca(it,ot,ct){return it.line==ot.line?Sn(ct.line,it.ch-ot.ch+ct.ch):Sn(ct.line+(it.line-ot.line),it.ch)}function gh(it,ot,ct){for(var At=[],mt=Sn(it.first,0),Dt=mt,qt=0;qt<ot.length;qt++){var he=ot[qt],ue=Ca(he.from,mt,Dt),Me=Ca(ta(he),mt,Dt);if(mt=he.to,Dt=Me,ct=="around"){var xn=it.sel.ranges[qt],_e=$n(xn.head,xn.anchor)<0;At[qt]=new $o(_e?Me:ue,_e?ue:Me)}else At[qt]=new $o(ue,ue)}return new Ds(At,it.sel.primIndex)}function Ho(it){it.doc.mode=ln(it.options,it.doc.modeOption),gl(it)}function gl(it){it.doc.iter(function(ot){ot.stateAfter&&(ot.stateAfter=null),ot.styles&&(ot.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,Un(it,100),it.state.modeGen++,it.curOp&&sl(it)}function AA(it,ot){return ot.from.ch==0&&ot.to.ch==0&&Te(ot.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Ha(it,ot,ct,At){function mt(mo){return ct?ct[mo]:null}function Dt(mo,Xr,Eo){Ls(mo,Xr,Eo,At),mr(mo,"change",mo,ot)}function qt(mo,Xr){for(var Eo=[],is=mo;is<Xr;++is)Eo.push(new so(Me[is],mt(is),At));return Eo}var he=ot.from,ue=ot.to,Me=ot.text,xn=qe(it,he.line),_e=qe(it,ue.line),ri=Te(Me),ti=mt(Me.length-1),qi=ue.line-he.line;if(ot.full)it.insert(0,qt(0,Me.length)),it.remove(Me.length,it.size-Me.length);else if(AA(it,ot)){var lr=qt(0,Me.length-1);Dt(_e,_e.text,ti),qi&&it.remove(he.line,qi),lr.length&&it.insert(he.line,lr)}else if(xn==_e)if(Me.length==1)Dt(xn,xn.text.slice(0,he.ch)+ri+xn.text.slice(ue.ch),ti);else{var Cr=qt(1,Me.length-1);Cr.push(new so(ri+xn.text.slice(ue.ch),ti,At)),Dt(xn,xn.text.slice(0,he.ch)+Me[0],mt(0)),it.insert(he.line+1,Cr)}else if(Me.length==1)Dt(xn,xn.text.slice(0,he.ch)+Me[0]+_e.text.slice(ue.ch),mt(0)),it.remove(he.line+1,qi);else{Dt(xn,xn.text.slice(0,he.ch)+Me[0],mt(0)),Dt(_e,ri+_e.text.slice(ue.ch),ti);var Ur=qt(1,Me.length-1);qi>1&&it.remove(he.line+1,qi-1),it.insert(he.line+1,Ur)}mr(it,"change",it,ot)}function ku(it,ot,ct){function At(mt,Dt,qt){if(mt.linked)for(var he=0;he<mt.linked.length;++he){var ue=mt.linked[he];if(ue.doc!=Dt){var Me=qt&&ue.sharedHist;ct&&!Me||(ot(ue.doc,Me),At(ue.doc,mt,Me))}}}At(it,null,!0)}function oa(it,ot){if(ot.cm)throw new Error("This document is already in use.");it.doc=ot,ot.cm=it,Wo(it),Ho(it),ph(it),it.options.lineWrapping||Gs(it),it.options.mode=ot.modeOption,sl(it)}function ph(it){(it.doc.direction=="rtl"?Pn:$t)(it.display.lineDiv,"CodeMirror-rtl")}function oc(it){Gi(it,function(){ph(it),sl(it)})}function wl(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function _s(it,ot){var ct={from:dr(ot.from),to:ta(ot),text:In(it,ot.from,ot.to)};return wu(it,ct,ot.from.line,ot.to.line+1),ku(it,function(At){return wu(At,ct,ot.from.line,ot.to.line+1)},!0),ct}function Ia(it){for(;it.length;){var ot=Te(it);if(ot.ranges)it.pop();else break}}function cA(it,ot){if(ot)return Ia(it.done),Te(it.done);if(it.done.length&&!Te(it.done).ranges)return Te(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Te(it.done)}function ou(it,ot,ct,At){var mt=it.history;mt.undone.length=0;var Dt=+new Date,qt,he;if((mt.lastOp==At||mt.lastOrigin==ot.origin&&ot.origin&&(ot.origin.charAt(0)=="+"&&mt.lastModTime>Dt-(it.cm?it.cm.options.historyEventDelay:500)||ot.origin.charAt(0)=="*"))&&(qt=cA(mt,mt.lastOp==At)))he=Te(qt.changes),$n(ot.from,ot.to)==0&&$n(ot.from,he.to)==0?he.to=ta(ot):qt.changes.push(_s(it,ot));else{var ue=Te(mt.done);for((!ue||!ue.ranges)&&Cs(it.sel,mt.done),qt={changes:[_s(it,ot)],generation:mt.generation},mt.done.push(qt);mt.done.length>mt.undoDepth;)mt.done.shift(),mt.done[0].ranges||mt.done.shift()}mt.done.push(ct),mt.generation=++mt.maxGeneration,mt.lastModTime=mt.lastSelTime=Dt,mt.lastOp=mt.lastSelOp=At,mt.lastOrigin=mt.lastSelOrigin=ot.origin,he||ii(it,"historyAdded")}function dA(it,ot,ct,At){var mt=ot.charAt(0);return mt=="*"||mt=="+"&&ct.ranges.length==At.ranges.length&&ct.somethingSelected()==At.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Fh(it,ot,ct,At){var mt=it.history,Dt=At&&At.origin;ct==mt.lastSelOp||Dt&&mt.lastSelOrigin==Dt&&(mt.lastModTime==mt.lastSelTime&&mt.lastOrigin==Dt||dA(it,Dt,Te(mt.done),ot))?mt.done[mt.done.length-1]=ot:Cs(ot,mt.done),mt.lastSelTime=+new Date,mt.lastSelOrigin=Dt,mt.lastSelOp=ct,At&&At.clearRedo!==!1&&Ia(mt.undone)}function Cs(it,ot){var ct=Te(ot);ct&&ct.ranges&&ct.equals(it)||ot.push(it)}function wu(it,ot,ct,At){var mt=ot["spans_"+it.id],Dt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,At),function(qt){qt.markedSpans&&((mt||(mt=ot["spans_"+it.id]={}))[Dt]=qt.markedSpans),++Dt})}function Fl(it){if(!it)return null;for(var ot,ct=0;ct<it.length;++ct)it[ct].marker.explicitlyCleared?ot||(ot=it.slice(0,ct)):ot&&ot.push(it[ct]);return ot?ot.length?ot:null:it}function Gl(it,ot){var ct=ot["spans_"+it.id];if(!ct)return null;for(var At=[],mt=0;mt<ot.text.length;++mt)At.push(Fl(ct[mt]));return At}function ho(it,ot){var ct=Gl(it,ot),At=ro(it,ot);if(!ct)return At;if(!At)return ct;for(var mt=0;mt<ct.length;++mt){var Dt=ct[mt],qt=At[mt];if(Dt&&qt)t:for(var he=0;he<qt.length;++he){for(var ue=qt[he],Me=0;Me<Dt.length;++Me)if(Dt[Me].marker==ue.marker)continue t;Dt.push(ue)}else qt&&(ct[mt]=qt)}return ct}function pl(it,ot,ct){for(var At=[],mt=0;mt<it.length;++mt){var Dt=it[mt];if(Dt.ranges){At.push(ct?Ds.prototype.deepCopy.call(Dt):Dt);continue}var qt=Dt.changes,he=[];At.push({changes:he});for(var ue=0;ue<qt.length;++ue){var Me=qt[ue],xn=void 0;if(he.push({from:Me.from,to:Me.to,text:Me.text}),ot)for(var _e in Me)(xn=_e.match(/^spans_(\d+)$/))&&Ve(ot,Number(xn[1]))>-1&&(Te(he)[_e]=Me[_e],delete Me[_e])}}return At}function Ku(it,ot,ct,At){if(At){var mt=it.anchor;if(ct){var Dt=$n(ot,mt)<0;Dt!=$n(ct,mt)<0?(mt=ot,ot=ct):Dt!=$n(ot,ct)<0&&(ot=ct)}return new $o(mt,ot)}else return new $o(ct||ot,ot)}function PA(it,ot,ct,At,mt){mt==null&&(mt=it.cm&&(it.cm.display.shift||it.extend)),fl(it,new Ds([Ku(it.sel.primary(),ot,ct,mt)],0),At)}function pu(it,ot,ct){for(var At=[],mt=it.cm&&(it.cm.display.shift||it.extend),Dt=0;Dt<it.sel.ranges.length;Dt++)At[Dt]=Ku(it.sel.ranges[Dt],ot[Dt],null,mt);var qt=ra(it.cm,At,it.sel.primIndex);fl(it,qt,ct)}function Su(it,ot,ct,At){var mt=it.sel.ranges.slice(0);mt[ot]=ct,fl(it,ra(it.cm,mt,it.sel.primIndex),At)}function xu(it,ot,ct,At){fl(it,Bs(ot,ct),At)}function Wu(it,ot,ct){var At={ranges:ot.ranges,update:function(mt){this.ranges=[];for(var Dt=0;Dt<mt.length;Dt++)this.ranges[Dt]=new $o(ur(it,mt[Dt].anchor),ur(it,mt[Dt].head))},origin:ct&&ct.origin};return ii(it,"beforeSelectionChange",it,At),it.cm&&ii(it.cm,"beforeSelectionChange",it.cm,At),At.ranges!=ot.ranges?ra(it.cm,At.ranges,At.ranges.length-1):ot}function Vu(it,ot,ct){var At=it.history.done,mt=Te(At);mt&&mt.ranges?(At[At.length-1]=ot,Yu(it,ot,ct)):fl(it,ot,ct)}function fl(it,ot,ct){Yu(it,ot,ct),Fh(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function Yu(it,ot,ct){(_r(it,"beforeSelectionChange")||it.cm&&_r(it.cm,"beforeSelectionChange"))&&(ot=Wu(it,ot,ct));var At=ct&&ct.bias||($n(ot.primary().head,it.sel.primary().head)<0?-1:1);sc(it,fA(it,ot,At,!0)),!(ct&&ct.scroll===!1)&&it.cm&&Qe(it.cm)}function sc(it,ot){ot.equals(it.sel)||(it.sel=ot,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,Nr(it.cm)),mr(it,"cursorActivity",it))}function Xu(it){sc(it,fA(it,it.sel,null,!1))}function fA(it,ot,ct,At){for(var mt,Dt=0;Dt<ot.ranges.length;Dt++){var qt=ot.ranges[Dt],he=ot.ranges.length==it.sel.ranges.length&&it.sel.ranges[Dt],ue=UA(it,qt.anchor,he&&he.anchor,ct,At),Me=UA(it,qt.head,he&&he.head,ct,At);(mt||ue!=qt.anchor||Me!=qt.head)&&(mt||(mt=ot.ranges.slice(0,Dt)),mt[Dt]=new $o(ue,Me))}return mt?ra(it.cm,mt,ot.primIndex):ot}function Zu(it,ot,ct,At,mt){var Dt=qe(it,ot.line);if(Dt.markedSpans)for(var qt=0;qt<Dt.markedSpans.length;++qt){var he=Dt.markedSpans[qt],ue=he.marker,Me="selectLeft"in ue?!ue.selectLeft:ue.inclusiveLeft,xn="selectRight"in ue?!ue.selectRight:ue.inclusiveRight;if((he.from==null||(Me?he.from<=ot.ch:he.from<ot.ch))&&(he.to==null||(xn?he.to>=ot.ch:he.to>ot.ch))){if(mt&&(ii(ue,"beforeCursorEnter"),ue.explicitlyCleared))if(Dt.markedSpans){--qt;continue}else break;if(!ue.atomic)continue;if(ct){var _e=ue.find(At<0?1:-1),ri=void 0;if((At<0?xn:Me)&&(_e=sd(it,_e,-At,_e&&_e.line==ot.line?Dt:null)),_e&&_e.line==ot.line&&(ri=$n(_e,ct))&&(At<0?ri<0:ri>0))return Zu(it,_e,ot,At,mt)}var ti=ue.find(At<0?-1:1);return(At<0?Me:xn)&&(ti=sd(it,ti,At,ti.line==ot.line?Dt:null)),ti?Zu(it,ti,ot,At,mt):null}}return ot}function UA(it,ot,ct,At,mt){var Dt=At||1,qt=Zu(it,ot,ct,Dt,mt)||!mt&&Zu(it,ot,ct,Dt,!0)||Zu(it,ot,ct,-Dt,mt)||!mt&&Zu(it,ot,ct,-Dt,!0);return qt||(it.cantEdit=!0,Sn(it.first,0))}function sd(it,ot,ct,At){return ct<0&&ot.ch==0?ot.line>it.first?ur(it,Sn(ot.line-1)):null:ct>0&&ot.ch==(At||qe(it,ot.line)).text.length?ot.line<it.first+it.size-1?Sn(ot.line+1,0):null:new Sn(ot.line,ot.ch+ct)}function El(it){it.setSelection(Sn(it.firstLine(),0),Sn(it.lastLine()),An)}function ac(it,ot,ct){var At={canceled:!1,from:ot.from,to:ot.to,text:ot.text,origin:ot.origin,cancel:function(){return At.canceled=!0}};return ct&&(At.update=function(mt,Dt,qt,he){mt&&(At.from=ur(it,mt)),Dt&&(At.to=ur(it,Dt)),qt&&(At.text=qt),he!==void 0&&(At.origin=he)}),ii(it,"beforeChange",it,At),it.cm&&ii(it.cm,"beforeChange",it.cm,At),At.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:At.from,to:At.to,text:At.text,origin:At.origin}}function Kh(it,ot,ct){if(it.cm){if(!it.cm.curOp)return rr(it.cm,Kh)(it,ot,ct);if(it.cm.state.suppressEdits)return}if(!((_r(it,"beforeChange")||it.cm&&_r(it.cm,"beforeChange"))&&(ot=ac(it,ot,!0),!ot))){var At=Br&&!ct&&Ro(it,ot.from,ot.to);if(At)for(var mt=At.length-1;mt>=0;--mt)QA(it,{from:At[mt].from,to:At[mt].to,text:mt?[""]:ot.text,origin:ot.origin});else QA(it,ot)}}function QA(it,ot){if(!(ot.text.length==1&&ot.text[0]==""&&$n(ot.from,ot.to)==0)){var ct=Au(it,ot);ou(it,ot,ct,it.cm?it.cm.curOp.id:NaN),kc(it,ot,ct,ro(it,ot));var At=[];ku(it,function(mt,Dt){!Dt&&Ve(At,mt.history)==-1&&(Zl(mt.history,ot),At.push(mt.history)),kc(mt,ot,null,ro(mt,ot))})}}function ad(it,ot,ct){var At=it.cm&&it.cm.state.suppressEdits;if(!(At&&!ct)){for(var mt=it.history,Dt,qt=it.sel,he=ot=="undo"?mt.done:mt.undone,ue=ot=="undo"?mt.undone:mt.done,Me=0;Me<he.length&&(Dt=he[Me],!(ct?Dt.ranges&&!Dt.equals(it.sel):!Dt.ranges));Me++);if(Me!=he.length){for(mt.lastOrigin=mt.lastSelOrigin=null;;)if(Dt=he.pop(),Dt.ranges){if(Cs(Dt,ue),ct&&!Dt.equals(it.sel)){fl(it,Dt,{clearRedo:!1});return}qt=Dt}else if(At){he.push(Dt);return}else break;var xn=[];Cs(qt,ue),ue.push({changes:xn,generation:mt.generation}),mt.generation=Dt.generation||++mt.maxGeneration;for(var _e=_r(it,"beforeChange")||it.cm&&_r(it.cm,"beforeChange"),ri=function(lr){var Cr=Dt.changes[lr];if(Cr.origin=ot,_e&&!ac(it,Cr,!1))return he.length=0,{};xn.push(_s(it,Cr));var Ur=lr?Au(it,Cr):Te(he);kc(it,Cr,Ur,ho(it,Cr)),!lr&&it.cm&&it.cm.scrollIntoView({from:Cr.from,to:ta(Cr)});var mo=[];ku(it,function(Xr,Eo){!Eo&&Ve(mo,Xr.history)==-1&&(Zl(Xr.history,Cr),mo.push(Xr.history)),kc(Xr,Cr,null,ho(Xr,Cr))})},ti=Dt.changes.length-1;ti>=0;--ti){var qi=ri(ti);if(qi)return qi.v}}}}function ld(it,ot){if(ot!=0&&(it.first+=ot,it.sel=new Ds(ci(it.sel.ranges,function(mt){return new $o(Sn(mt.anchor.line+ot,mt.anchor.ch),Sn(mt.head.line+ot,mt.head.ch))}),it.sel.primIndex),it.cm)){sl(it.cm,it.first,it.first-ot,ot);for(var ct=it.cm.display,At=ct.viewFrom;At<ct.viewTo;At++)Ts(it.cm,At,"gutter")}}function kc(it,ot,ct,At){if(it.cm&&!it.cm.curOp)return rr(it.cm,kc)(it,ot,ct,At);if(ot.to.line<it.first){ld(it,ot.text.length-1-(ot.to.line-ot.from.line));return}if(!(ot.from.line>it.lastLine())){if(ot.from.line<it.first){var mt=ot.text.length-1-(it.first-ot.from.line);ld(it,mt),ot={from:Sn(it.first,0),to:Sn(ot.to.line+mt,ot.to.ch),text:[Te(ot.text)],origin:ot.origin}}var Dt=it.lastLine();ot.to.line>Dt&&(ot={from:ot.from,to:Sn(Dt,qe(it,Dt).text.length),text:[ot.text[0]],origin:ot.origin}),ot.removed=In(it,ot.from,ot.to),ct||(ct=Au(it,ot)),it.cm?qd(it.cm,ot,At):Ha(it,ot,At),Yu(it,ct,An),it.cantEdit&&UA(it,Sn(it.firstLine(),0))&&(it.cantEdit=!1)}}function qd(it,ot,ct){var At=it.doc,mt=it.display,Dt=ot.from,qt=ot.to,he=!1,ue=Dt.line;it.options.lineWrapping||(ue=Fe(wo(qe(At,Dt.line))),At.iter(ue,qt.line+1,function(ti){if(ti==mt.maxLine)return he=!0,!0})),At.sel.contains(ot.from,ot.to)>-1&&Nr(it),Ha(At,ot,ct,pa(it)),it.options.lineWrapping||(At.iter(ue,Dt.line+ot.text.length,function(ti){var qi=zs(ti);qi>mt.maxLineLength&&(mt.maxLine=ti,mt.maxLineLength=qi,mt.maxLineChanged=!0,he=!1)}),he&&(it.curOp.updateMaxLine=!0)),eo(At,Dt.line),Un(it,400);var Me=ot.text.length-(qt.line-Dt.line)-1;ot.full?sl(it):Dt.line==qt.line&&ot.text.length==1&&!AA(it.doc,ot)?Ts(it,Dt.line,"text"):sl(it,Dt.line,qt.line+1,Me);var xn=_r(it,"changes"),_e=_r(it,"change");if(_e||xn){var ri={from:Dt,to:qt,text:ot.text,removed:ot.removed,origin:ot.origin};_e&&mr(it,"change",it,ri),xn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(ri)}it.display.selForContextMenu=null}function lc(it,ot,ct,At,mt){var Dt;At||(At=ct),$n(At,ct)<0&&(Dt=[At,ct],ct=Dt[0],At=Dt[1]),typeof ot=="string"&&(ot=it.splitLines(ot)),Kh(it,{from:ct,to:At,text:ot,origin:mt})}function Bu(it,ot,ct,At){ct<it.line?it.line+=At:ot<it.line&&(it.line=ot,it.ch=0)}function tf(it,ot,ct,At){for(var mt=0;mt<it.length;++mt){var Dt=it[mt],qt=!0;if(Dt.ranges){Dt.copied||(Dt=it[mt]=Dt.deepCopy(),Dt.copied=!0);for(var he=0;he<Dt.ranges.length;he++)Bu(Dt.ranges[he].anchor,ot,ct,At),Bu(Dt.ranges[he].head,ot,ct,At);continue}for(var ue=0;ue<Dt.changes.length;++ue){var Me=Dt.changes[ue];if(ct<Me.from.line)Me.from=Sn(Me.from.line+At,Me.from.ch),Me.to=Sn(Me.to.line+At,Me.to.ch);else if(ot<=Me.to.line){qt=!1;break}}qt||(it.splice(0,mt+1),mt=0)}}function Zl(it,ot){var ct=ot.from.line,At=ot.to.line,mt=ot.text.length-(At-ct)-1;tf(it.done,ct,At,mt),tf(it.undone,ct,At,mt)}function RA(it,ot,ct,At){var mt=ot,Dt=ot;return typeof ot=="number"?Dt=qe(it,vr(it,ot)):mt=Fe(ot),mt==null?null:(At(Dt,mt)&&it.cm&&Ts(it.cm,mt,ct),Dt)}function uc(it){this.lines=it,this.parent=null;for(var ot=0,ct=0;ct<it.length;++ct)it[ct].parent=this,ot+=it[ct].height;this.height=ot}uc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,ot){for(var ct=it,At=it+ot;ct<At;++ct){var mt=this.lines[ct];this.height-=mt.height,Xa(mt),mr(mt,"delete")}this.lines.splice(it,ot)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,ot,ct){this.height+=ct,this.lines=this.lines.slice(0,it).concat(ot).concat(this.lines.slice(it));for(var At=0;At<ot.length;++At)ot[At].parent=this},iterN:function(it,ot,ct){for(var At=it+ot;it<At;++it)if(ct(this.lines[it]))return!0}};function el(it){this.children=it;for(var ot=0,ct=0,At=0;At<it.length;++At){var mt=it[At];ot+=mt.chunkSize(),ct+=mt.height,mt.parent=this}this.size=ot,this.height=ct,this.parent=null}el.prototype={chunkSize:function(){return this.size},removeInner:function(it,ot){this.size-=ot;for(var ct=0;ct<this.children.length;++ct){var At=this.children[ct],mt=At.chunkSize();if(it<mt){var Dt=Math.min(ot,mt-it),qt=At.height;if(At.removeInner(it,Dt),this.height-=qt-At.height,mt==Dt&&(this.children.splice(ct--,1),At.parent=null),(ot-=Dt)==0)break;it=0}else it-=mt}if(this.size-ot<25&&(this.children.length>1||!(this.children[0]instanceof uc))){var he=[];this.collapse(he),this.children=[new uc(he)],this.children[0].parent=this}},collapse:function(it){for(var ot=0;ot<this.children.length;++ot)this.children[ot].collapse(it)},insertInner:function(it,ot,ct){this.size+=ot.length,this.height+=ct;for(var At=0;At<this.children.length;++At){var mt=this.children[At],Dt=mt.chunkSize();if(it<=Dt){if(mt.insertInner(it,ot,ct),mt.lines&&mt.lines.length>50){for(var qt=mt.lines.length%25+25,he=qt;he<mt.lines.length;){var ue=new uc(mt.lines.slice(he,he+=25));mt.height-=ue.height,this.children.splice(++At,0,ue),ue.parent=this}mt.lines=mt.lines.slice(0,qt),this.maybeSpill()}break}it-=Dt}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var ot=it.children.splice(it.children.length-5,5),ct=new el(ot);if(it.parent){it.size-=ct.size,it.height-=ct.height;var mt=Ve(it.parent.children,it);it.parent.children.splice(mt+1,0,ct)}else{var At=new el(it.children);At.parent=it,it.children=[At,ct],it=At}ct.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,ot,ct){for(var At=0;At<this.children.length;++At){var mt=this.children[At],Dt=mt.chunkSize();if(it<Dt){var qt=Math.min(ot,Dt-it);if(mt.iterN(it,qt,ct))return!0;if((ot-=qt)==0)break;it=0}else it-=Dt}}};var Wh=function(it,ot,ct){if(ct)for(var At in ct)ct.hasOwnProperty(At)&&(this[At]=ct[At]);this.doc=it,this.node=ot};Wh.prototype.clear=function(){var it=this.doc.cm,ot=this.line.widgets,ct=this.line,At=Fe(ct);if(!(At==null||!ot)){for(var mt=0;mt<ot.length;++mt)ot[mt]==this&&ot.splice(mt--,1);ot.length||(ct.widgets=null);var Dt=Ea(this);Pi(ct,Math.max(0,ct.height-Dt)),it&&(Gi(it,function(){ud(it,ct,-Dt),Ts(it,At,"widget")}),mr(it,"lineWidgetCleared",it,this,At))}},Wh.prototype.changed=function(){var it=this,ot=this.height,ct=this.doc.cm,At=this.line;this.height=null;var mt=Ea(this)-ot;mt&&(Ni(this.doc,At)||Pi(At,At.height+mt),ct&&Gi(ct,function(){ct.curOp.forceUpdate=!0,ud(ct,At,mt),mr(ct,"lineWidgetChanged",ct,it,Fe(At))}))},Tr(Wh);function ud(it,ot,ct){hs(ot)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Re(it,ct)}function Eh(it,ot,ct,At){var mt=new Wh(it,ct,At),Dt=it.cm;return Dt&&mt.noHScroll&&(Dt.display.alignWidgets=!0),RA(it,ot,"widget",function(qt){var he=qt.widgets||(qt.widgets=[]);if(mt.insertAt==null?he.push(mt):he.splice(Math.min(he.length-1,Math.max(0,mt.insertAt)),0,mt),mt.line=qt,Dt&&!Ni(it,qt)){var ue=hs(qt)<it.scrollTop;Pi(qt,qt.height+Ea(mt)),ue&&Re(Dt,mt.height),Dt.curOp.forceUpdate=!0}return!0}),Dt&&mr(Dt,"lineWidgetAdded",Dt,mt,typeof ot=="number"?ot:Fe(ot)),mt}var hc=0,on=function(it,ot){this.lines=[],this.type=ot,this.doc=it,this.id=++hc};on.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,ot=it&&!it.curOp;if(ot&&yn(it),_r(this,"clear")){var ct=this.find();ct&&mr(this,"clear",ct.from,ct.to)}for(var At=null,mt=null,Dt=0;Dt<this.lines.length;++Dt){var qt=this.lines[Dt],he=Vs(qt.markedSpans,this);it&&!this.collapsed?Ts(it,Fe(qt),"text"):it&&(he.to!=null&&(mt=Fe(qt)),he.from!=null&&(At=Fe(qt))),qt.markedSpans=Xo(qt.markedSpans,he),he.from==null&&this.collapsed&&!Ni(this.doc,qt)&&it&&Pi(qt,hu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var ue=0;ue<this.lines.length;++ue){var Me=wo(this.lines[ue]),xn=zs(Me);xn>it.display.maxLineLength&&(it.display.maxLine=Me,it.display.maxLineLength=xn,it.display.maxLineChanged=!0)}At!=null&&it&&this.collapsed&&sl(it,At,mt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&Xu(it.doc)),it&&mr(it,"markerCleared",it,this,At,mt),ot&&bn(it),this.parent&&this.parent.clear()}},on.prototype.find=function(it,ot){it==null&&this.type=="bookmark"&&(it=1);for(var ct,At,mt=0;mt<this.lines.length;++mt){var Dt=this.lines[mt],qt=Vs(Dt.markedSpans,this);if(qt.from!=null&&(ct=Sn(ot?Dt:Fe(Dt),qt.from),it==-1))return ct;if(qt.to!=null&&(At=Sn(ot?Dt:Fe(Dt),qt.to),it==1))return At}return ct&&{from:ct,to:At}},on.prototype.changed=function(){var it=this,ot=this.find(-1,!0),ct=this,At=this.doc.cm;!ot||!At||Gi(At,function(){var mt=ot.line,Dt=Fe(ot.line),qt=uA(At,Dt);if(qt&&(eu(qt),At.curOp.selectionChanged=At.curOp.forceUpdate=!0),At.curOp.updateMaxLine=!0,!Ni(ct.doc,mt)&&ct.height!=null){var he=ct.height;ct.height=null;var ue=Ea(ct)-he;ue&&Pi(mt,mt.height+ue)}mr(At,"markerChanged",At,it)})},on.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var ot=this.doc.cm.curOp;(!ot.maybeHiddenMarkers||Ve(ot.maybeHiddenMarkers,this)==-1)&&(ot.maybeUnhiddenMarkers||(ot.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},on.prototype.detachLine=function(it){if(this.lines.splice(Ve(this.lines,it),1),!this.lines.length&&this.doc.cm){var ot=this.doc.cm.curOp;(ot.maybeHiddenMarkers||(ot.maybeHiddenMarkers=[])).push(this)}},Tr(on);function gA(it,ot,ct,At,mt){if(At&&At.shared)return pf(it,ot,ct,At,mt);if(it.cm&&!it.cm.curOp)return rr(it.cm,gA)(it,ot,ct,At,mt);var Dt=new on(it,mt),qt=$n(ot,ct);if(At&&mn(At,Dt,!1),qt>0||qt==0&&Dt.clearWhenEmpty!==!1)return Dt;if(Dt.replacedWith&&(Dt.collapsed=!0,Dt.widgetNode=Ye("span",[Dt.replacedWith],"CodeMirror-widget"),At.handleMouseEvents||Dt.widgetNode.setAttribute("cm-ignore-events","true"),At.insertLeft&&(Dt.widgetNode.insertLeft=!0)),Dt.collapsed){if(os(it,ot.line,ot,ct,Dt)||ot.line!=ct.line&&os(it,ct.line,ot,ct,Dt))throw new Error("Inserting collapsed marker partially overlapping an existing one");ei()}Dt.addToHistory&&ou(it,{from:ot,to:ct,origin:"markText"},it.sel,NaN);var he=ot.line,ue=it.cm,Me;if(it.iter(he,ct.line+1,function(_e){ue&&Dt.collapsed&&!ue.options.lineWrapping&&wo(_e)==ue.display.maxLine&&(Me=!0),Dt.collapsed&&he!=ot.line&&Pi(_e,0),Js(_e,new Qo(Dt,he==ot.line?ot.ch:null,he==ct.line?ct.ch:null)),++he}),Dt.collapsed&&it.iter(ot.line,ct.line+1,function(_e){Ni(it,_e)&&Pi(_e,0)}),Dt.clearOnEnter&&be(Dt,"beforeCursorEnter",function(){return Dt.clear()}),Dt.readOnly&&(vo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Dt.collapsed&&(Dt.id=++hc,Dt.atomic=!0),ue){if(Me&&(ue.curOp.updateMaxLine=!0),Dt.collapsed)sl(ue,ot.line,ct.line+1);else if(Dt.className||Dt.startStyle||Dt.endStyle||Dt.css||Dt.attributes||Dt.title)for(var xn=ot.line;xn<=ct.line;xn++)Ts(ue,xn,"text");Dt.atomic&&Xu(ue.doc),mr(ue,"markerAdded",ue,Dt)}return Dt}var Mh=function(it,ot){this.markers=it,this.primary=ot;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};Mh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();mr(this,"clear")}},Mh.prototype.find=function(it,ot){return this.primary.find(it,ot)},Tr(Mh);function pf(it,ot,ct,At,mt){At=mn(At),At.shared=!1;var Dt=[gA(it,ot,ct,At,mt)],qt=Dt[0],he=At.widgetNode;return ku(it,function(ue){he&&(At.widgetNode=he.cloneNode(!0)),Dt.push(gA(ue,ur(ue,ot),ur(ue,ct),At,mt));for(var Me=0;Me<ue.linked.length;++Me)if(ue.linked[Me].isParent)return;qt=Te(Dt)}),new Mh(Dt,qt)}function hd(it){return it.findMarks(Sn(it.first,0),it.clipPos(Sn(it.lastLine())),function(ot){return ot.parent})}function Ld(it,ot){for(var ct=0;ct<ot.length;ct++){var At=ot[ct],mt=At.find(),Dt=it.clipPos(mt.from),qt=it.clipPos(mt.to);if($n(Dt,qt)){var he=gA(it,Dt,qt,At.primary,At.primary.type);At.markers.push(he),he.parent=At}}}function Tc(it){for(var ot=function(At){var mt=it[At],Dt=[mt.primary.doc];ku(mt.primary.doc,function(ue){return Dt.push(ue)});for(var qt=0;qt<mt.markers.length;qt++){var he=mt.markers[qt];Ve(Dt,he.doc)==-1&&(he.parent=null,mt.markers.splice(qt--,1))}},ct=0;ct<it.length;ct++)ot(ct)}var mf=0,_l=function(it,ot,ct,At,mt){if(!(this instanceof _l))return new _l(it,ot,ct,At,mt);ct==null&&(ct=0),el.call(this,[new uc([new so("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var Dt=Sn(ct,0);this.sel=Bs(Dt),this.history=new wl(null),this.id=++mf,this.modeOption=ot,this.lineSep=At,this.direction=mt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Ha(this,{from:Dt,to:Dt,text:it}),fl(this,Bs(Dt),An)};_l.prototype=yi(el.prototype,{constructor:_l,iter:function(it,ot,ct){ct?this.iterN(it-this.first,ot-it,ct):this.iterN(this.first,this.first+this.size,it)},insert:function(it,ot){for(var ct=0,At=0;At<ot.length;++At)ct+=ot[At].height;this.insertInner(it-this.first,ot,ct)},remove:function(it,ot){this.removeInner(it-this.first,ot)},getValue:function(it){var ot=ui(this,this.first,this.first+this.size);return it===!1?ot:ot.join(it||this.lineSeparator())},setValue:tn(function(it){var ot=Sn(this.first,0),ct=this.first+this.size-1;Kh(this,{from:ot,to:Sn(ct,qe(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&en(this.cm,0,0),fl(this,Bs(ot),An)}),replaceRange:function(it,ot,ct,At){ot=ur(this,ot),ct=ct?ur(this,ct):ot,lc(this,it,ot,ct,At)},getRange:function(it,ot,ct){var At=In(this,ur(this,it),ur(this,ot));return ct===!1?At:At.join(ct||this.lineSeparator())},getLine:function(it){var ot=this.getLineHandle(it);return ot&&ot.text},getLineHandle:function(it){if(Ei(this,it))return qe(this,it)},getLineNumber:function(it){return Fe(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=qe(this,it)),wo(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return ur(this,it)},getCursor:function(it){var ot=this.sel.primary(),ct;return it==null||it=="head"?ct=ot.head:it=="anchor"?ct=ot.anchor:it=="end"||it=="to"||it===!1?ct=ot.to():ct=ot.from(),ct},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:tn(function(it,ot,ct){xu(this,ur(this,typeof it=="number"?Sn(it,ot||0):it),null,ct)}),setSelection:tn(function(it,ot,ct){xu(this,ur(this,it),ur(this,ot||it),ct)}),extendSelection:tn(function(it,ot,ct){PA(this,ur(this,it),ot&&ur(this,ot),ct)}),extendSelections:tn(function(it,ot){pu(this,Ao(this,it),ot)}),extendSelectionsBy:tn(function(it,ot){var ct=ci(this.sel.ranges,it);pu(this,Ao(this,ct),ot)}),setSelections:tn(function(it,ot,ct){if(it.length){for(var At=[],mt=0;mt<it.length;mt++)At[mt]=new $o(ur(this,it[mt].anchor),ur(this,it[mt].head));ot==null&&(ot=Math.min(it.length-1,this.sel.primIndex)),fl(this,ra(this.cm,At,ot),ct)}}),addSelection:tn(function(it,ot,ct){var At=this.sel.ranges.slice(0);At.push(new $o(ur(this,it),ur(this,ot||it))),fl(this,ra(this.cm,At,At.length-1),ct)}),getSelection:function(it){for(var ot=this.sel.ranges,ct,At=0;At<ot.length;At++){var mt=In(this,ot[At].from(),ot[At].to());ct=ct?ct.concat(mt):mt}return it===!1?ct:ct.join(it||this.lineSeparator())},getSelections:function(it){for(var ot=[],ct=this.sel.ranges,At=0;At<ct.length;At++){var mt=In(this,ct[At].from(),ct[At].to());it!==!1&&(mt=mt.join(it||this.lineSeparator())),ot[At]=mt}return ot},replaceSelection:function(it,ot,ct){for(var At=[],mt=0;mt<this.sel.ranges.length;mt++)At[mt]=it;this.replaceSelections(At,ot,ct||"+input")},replaceSelections:tn(function(it,ot,ct){for(var At=[],mt=this.sel,Dt=0;Dt<mt.ranges.length;Dt++){var qt=mt.ranges[Dt];At[Dt]={from:qt.from(),to:qt.to(),text:this.splitLines(it[Dt]),origin:ct}}for(var he=ot&&ot!="end"&&gh(this,At,ot),ue=At.length-1;ue>=0;ue--)Kh(this,At[ue]);he?Vu(this,he):this.cm&&Qe(this.cm)}),undo:tn(function(){ad(this,"undo")}),redo:tn(function(){ad(this,"redo")}),undoSelection:tn(function(){ad(this,"undo",!0)}),redoSelection:tn(function(){ad(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,ot=0,ct=0,At=0;At<it.done.length;At++)it.done[At].ranges||++ot;for(var mt=0;mt<it.undone.length;mt++)it.undone[mt].ranges||++ct;return{undo:ot,redo:ct}},clearHistory:function(){var it=this;this.history=new wl(this.history.maxGeneration),ku(this,function(ot){return ot.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:pl(this.history.done),undone:pl(this.history.undone)}},setHistory:function(it){var ot=this.history=new wl(this.history.maxGeneration);ot.done=pl(it.done.slice(0),null,!0),ot.undone=pl(it.undone.slice(0),null,!0)},setGutterMarker:tn(function(it,ot,ct){return RA(this,it,"gutter",function(At){var mt=At.gutterMarkers||(At.gutterMarkers={});return mt[ot]=ct,!ct&&Xe(mt)&&(At.gutterMarkers=null),!0})}),clearGutter:tn(function(it){var ot=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&RA(ot,ct,"gutter",function(){return ct.gutterMarkers[it]=null,Xe(ct.gutterMarkers)&&(ct.gutterMarkers=null),!0})})}),lineInfo:function(it){var ot;if(typeof it=="number"){if(!Ei(this,it)||(ot=it,it=qe(this,it),!it))return null}else if(ot=Fe(it),ot==null)return null;return{line:ot,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:tn(function(it,ot,ct){return RA(this,it,ot=="gutter"?"gutter":"class",function(At){var mt=ot=="text"?"textClass":ot=="background"?"bgClass":ot=="gutter"?"gutterClass":"wrapClass";if(!At[mt])At[mt]=ct;else{if(Gt(ct).test(At[mt]))return!1;At[mt]+=" "+ct}return!0})}),removeLineClass:tn(function(it,ot,ct){return RA(this,it,ot=="gutter"?"gutter":"class",function(At){var mt=ot=="text"?"textClass":ot=="background"?"bgClass":ot=="gutter"?"gutterClass":"wrapClass",Dt=At[mt];if(Dt)if(ct==null)At[mt]=null;else{var qt=Dt.match(Gt(ct));if(!qt)return!1;var he=qt.index+qt[0].length;At[mt]=Dt.slice(0,qt.index)+(!qt.index||he==Dt.length?"":" ")+Dt.slice(he)||null}else return!1;return!0})}),addLineWidget:tn(function(it,ot,ct){return Eh(this,it,ot,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,ot,ct){return gA(this,ur(this,it),ur(this,ot),ct,ct&&ct.type||"range")},setBookmark:function(it,ot){var ct={replacedWith:ot&&(ot.nodeType==null?ot.widget:ot),insertLeft:ot&&ot.insertLeft,clearWhenEmpty:!1,shared:ot&&ot.shared,handleMouseEvents:ot&&ot.handleMouseEvents};return it=ur(this,it),gA(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=ur(this,it);var ot=[],ct=qe(this,it.line).markedSpans;if(ct)for(var At=0;At<ct.length;++At){var mt=ct[At];(mt.from==null||mt.from<=it.ch)&&(mt.to==null||mt.to>=it.ch)&&ot.push(mt.marker.parent||mt.marker)}return ot},findMarks:function(it,ot,ct){it=ur(this,it),ot=ur(this,ot);var At=[],mt=it.line;return this.iter(it.line,ot.line+1,function(Dt){var qt=Dt.markedSpans;if(qt)for(var he=0;he<qt.length;he++){var ue=qt[he];!(ue.to!=null&&mt==it.line&&it.ch>=ue.to||ue.from==null&&mt!=it.line||ue.from!=null&&mt==ot.line&&ue.from>=ot.ch)&&(!ct||ct(ue.marker))&&At.push(ue.marker.parent||ue.marker)}++mt}),At},getAllMarks:function(){var it=[];return this.iter(function(ot){var ct=ot.markedSpans;if(ct)for(var At=0;At<ct.length;++At)ct[At].from!=null&&it.push(ct[At].marker)}),it},posFromIndex:function(it){var ot,ct=this.first,At=this.lineSeparator().length;return this.iter(function(mt){var Dt=mt.text.length+At;if(Dt>it)return ot=it,!0;it-=Dt,++ct}),ur(this,Sn(ct,ot))},indexFromPos:function(it){it=ur(this,it);var ot=it.ch;if(it.line<this.first||it.ch<0)return 0;var ct=this.lineSeparator().length;return this.iter(this.first,it.line,function(At){ot+=At.text.length+ct}),ot},copy:function(it){var ot=new _l(ui(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ot.scrollTop=this.scrollTop,ot.scrollLeft=this.scrollLeft,ot.sel=this.sel,ot.extend=!1,it&&(ot.history.undoDepth=this.history.undoDepth,ot.setHistory(this.getHistory())),ot},linkedDoc:function(it){it||(it={});var ot=this.first,ct=this.first+this.size;it.from!=null&&it.from>ot&&(ot=it.from),it.to!=null&&it.to<ct&&(ct=it.to);var At=new _l(ui(this,ot,ct),it.mode||this.modeOption,ot,this.lineSep,this.direction);return it.sharedHist&&(At.history=this.history),(this.linked||(this.linked=[])).push({doc:At,sharedHist:it.sharedHist}),At.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Ld(At,hd(this)),At},unlinkDoc:function(it){if(it instanceof ss&&(it=it.doc),this.linked)for(var ot=0;ot<this.linked.length;++ot){var ct=this.linked[ot];if(ct.doc==it){this.linked.splice(ot,1),it.unlinkDoc(this),Tc(hd(this));break}}if(it.history==this.history){var At=[it.id];ku(it,function(mt){return At.push(mt.id)},!0),it.history=new wl(null),it.history.done=pl(this.history.done,At),it.history.undone=pl(this.history.undone,At)}},iterLinkedDocs:function(it){ku(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):Fo(it)},lineSeparator:function(){return this.lineSep||`
`},setDirection:tn(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(ot){return ot.order=null}),this.cm&&oc(this.cm))})}),_l.prototype.eachLine=_l.prototype.iter;var Oc=0;function Fd(it){var ot=this;if(Ad(ot),!(wi(ot,it)||Yl(ot.display,it))){po(it),Be&&(Oc=+new Date);var ct=fu(ot,it,!0),At=it.dataTransfer.files;if(!(!ct||ot.isReadOnly()))if(At&&At.length&&window.FileReader&&window.File)for(var mt=At.length,Dt=Array(mt),qt=0,he=function(){++qt==mt&&rr(ot,function(){ct=ur(ot.doc,ct);var ti={from:ct,to:ct,text:ot.doc.splitLines(Dt.filter(function(qi){return qi!=null}).join(ot.doc.lineSeparator())),origin:"paste"};Kh(ot.doc,ti),Vu(ot.doc,Bs(ur(ot.doc,ct),ur(ot.doc,ta(ti))))})()},ue=function(ti,qi){if(ot.options.allowDropFileTypes&&Ve(ot.options.allowDropFileTypes,ti.type)==-1){he();return}var lr=new FileReader;lr.onerror=function(){return he()},lr.onload=function(){var Cr=lr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Cr)){he();return}Dt[qi]=Cr,he()},lr.readAsText(ti)},Me=0;Me<At.length;Me++)ue(At[Me],Me);else{if(ot.state.draggingText&&ot.doc.sel.contains(ct)>-1){ot.state.draggingText(it),setTimeout(function(){return ot.display.input.focus()},20);return}try{var xn=it.dataTransfer.getData("Text");if(xn){var _e;if(ot.state.draggingText&&!ot.state.draggingText.copy&&(_e=ot.listSelections()),Yu(ot.doc,Bs(ct,ct)),_e)for(var ri=0;ri<_e.length;++ri)lc(ot.doc,"",_e[ri].anchor,_e[ri].head,"drag");ot.replaceSelection(xn,"around","paste"),ot.display.input.focus()}}catch(ti){}}}}function Ed(it,ot){if(Be&&(!it.state.draggingText||+new Date-Oc<100)){Kr(ot);return}if(!(wi(it,ot)||Yl(it.display,ot))&&(ot.dataTransfer.setData("Text",it.getSelection()),ot.dataTransfer.effectAllowed="copyMove",ot.dataTransfer.setDragImage&&!se)){var ct=fe("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Nt&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),ot.dataTransfer.setDragImage(ct,0,0),Nt&&ct.parentNode.removeChild(ct)}}function HA(it,ot){var ct=fu(it,ot);if(ct){var At=document.createDocumentFragment();ia(it,ct,At),it.display.dragCursor||(it.display.dragCursor=fe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),ve(it.display.dragCursor,At)}}function Ad(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function cd(it){if(document.getElementsByClassName){for(var ot=document.getElementsByClassName("CodeMirror"),ct=[],At=0;At<ot.length;At++){var mt=ot[At].CodeMirror;mt&&ct.push(mt)}ct.length&&ct[0].operation(function(){for(var Dt=0;Dt<ct.length;Dt++)it(ct[Dt])})}}var Tu=!1;function nl(){Tu||(Dc(),Tu=!0)}function Dc(){var it;be(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,cd(Md)},100))}),be(window,"blur",function(){return cd(wt)})}function Md(it){var ot=it.display;ot.cachedCharWidth=ot.cachedTextHeight=ot.cachedPaddingH=null,ot.scrollbarsClipped=!1,it.setSize()}for(var bs={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},dd=0;dd<10;dd++)bs[dd+48]=bs[dd+96]=String(dd);for(var Nd=65;Nd<=90;Nd++)bs[Nd]=String.fromCharCode(Nd);for(var Nh=1;Nh<=12;Nh++)bs[Nh+111]=bs[Nh+63235]="F"+Nh;var Cu={};Cu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Cu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Cu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Cu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Cu.default=ht?Cu.macDefault:Cu.pcDefault;function Id(it){var ot=it.split(/-(?!$)/);it=ot[ot.length-1];for(var ct,At,mt,Dt,qt=0;qt<ot.length-1;qt++){var he=ot[qt];if(/^(cmd|meta|m)$/i.test(he))Dt=!0;else if(/^a(lt)?$/i.test(he))ct=!0;else if(/^(c|ctrl|control)$/i.test(he))At=!0;else if(/^s(hift)?$/i.test(he))mt=!0;else throw new Error("Unrecognized modifier name: "+he)}return ct&&(it="Alt-"+it),At&&(it="Ctrl-"+it),Dt&&(it="Cmd-"+it),mt&&(it="Shift-"+it),it}function jc(it){var ot={};for(var ct in it)if(it.hasOwnProperty(ct)){var At=it[ct];if(/^(name|fallthrough|(de|at)tach)$/.test(ct))continue;if(At=="..."){delete it[ct];continue}for(var mt=ci(ct.split(" "),Id),Dt=0;Dt<mt.length;Dt++){var qt=void 0,he=void 0;Dt==mt.length-1?(he=mt.join(" "),qt=At):(he=mt.slice(0,Dt+1).join(" "),qt="...");var ue=ot[he];if(!ue)ot[he]=qt;else if(ue!=qt)throw new Error("Inconsistent bindings for "+he)}delete it[ct]}for(var Me in ot)it[Me]=ot[Me];return it}function Pu(it,ot,ct,At){ot=Sl(ot);var mt=ot.call?ot.call(it,At):ot[it];if(mt===!1)return"nothing";if(mt==="...")return"multi";if(mt!=null&&ct(mt))return"handled";if(ot.fallthrough){if(Object.prototype.toString.call(ot.fallthrough)!="[object Array]")return Pu(it,ot.fallthrough,ct,At);for(var Dt=0;Dt<ot.fallthrough.length;Dt++){var qt=Pu(it,ot.fallthrough[Dt],ct,At);if(qt)return qt}}}function Uc(it){var ot=typeof it=="string"?it:bs[it.keyCode];return ot=="Ctrl"||ot=="Alt"||ot=="Shift"||ot=="Mod"}function fd(it,ot,ct){var At=it;return ot.altKey&&At!="Alt"&&(it="Alt-"+it),(Mt?ot.metaKey:ot.ctrlKey)&&At!="Ctrl"&&(it="Ctrl-"+it),(Mt?ot.ctrlKey:ot.metaKey)&&At!="Mod"&&(it="Cmd-"+it),!ct&&ot.shiftKey&&At!="Shift"&&(it="Shift-"+it),it}function ef(it,ot){if(Nt&&it.keyCode==34&&it.char)return!1;var ct=bs[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),fd(ct,it,ot))}function Sl(it){return typeof it=="string"?Cu[it]:it}function Tl(it,ot){for(var ct=it.doc.sel.ranges,At=[],mt=0;mt<ct.length;mt++){for(var Dt=ot(ct[mt]);At.length&&$n(Dt.from,Te(At).to)<=0;){var qt=At.pop();if($n(qt.from,Dt.from)<0){Dt.from=qt.from;break}}At.push(Dt)}Gi(it,function(){for(var he=At.length-1;he>=0;he--)lc(it.doc,"",At[he].from,At[he].to,"+delete");Qe(it)})}function zA(it,ot,ct){var At=Wn(it.text,ot+ct,ct);return At<0||At>it.text.length?null:At}function Ml(it,ot,ct){var At=zA(it,ot.ch,ct);return At==null?null:new Sn(ot.line,At,ct<0?"after":"before")}function pA(it,ot,ct,At,mt){if(it){ot.doc.direction=="rtl"&&(mt=-mt);var Dt=le(ct,ot.doc.direction);if(Dt){var qt=mt<0?Te(Dt):Dt[0],he=mt<0==(qt.level==1),ue=he?"after":"before",Me;if(qt.level>0||ot.doc.direction=="rtl"){var xn=xa(ot,ct);Me=mt<0?ct.text.length-1:0;var _e=Gu(ot,xn,Me).top;Me=Hn(function(ri){return Gu(ot,xn,ri).top==_e},mt<0==(qt.level==1)?qt.from:qt.to-1,Me),ue=="before"&&(Me=zA(ct,Me,1))}else Me=mt<0?qt.to:qt.from;return new Sn(At,Me,ue)}}return new Sn(At,mt<0?ct.text.length:0,mt<0?"before":"after")}function GA(it,ot,ct,At){var mt=le(ot,it.doc.direction);if(!mt)return Ml(ot,ct,At);ct.ch>=ot.text.length?(ct.ch=ot.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var Dt=bt(mt,ct.ch,ct.sticky),qt=mt[Dt];if(it.doc.direction=="ltr"&&qt.level%2==0&&(At>0?qt.to>ct.ch:qt.from<ct.ch))return Ml(ot,ct,At);var he=function(Ur,mo){return zA(ot,Ur instanceof Sn?Ur.ch:Ur,mo)},ue,Me=function(Ur){return it.options.lineWrapping?(ue=ue||xa(it,ot),Kf(it,ot,ue,Ur)):{begin:0,end:ot.text.length}},xn=Me(ct.sticky=="before"?he(ct,-1):ct.ch);if(it.doc.direction=="rtl"||qt.level==1){var _e=qt.level==1==At<0,ri=he(ct,_e?1:-1);if(ri!=null&&(_e?ri<=qt.to&&ri<=xn.end:ri>=qt.from&&ri>=xn.begin)){var ti=_e?"before":"after";return new Sn(ct.line,ri,ti)}}var qi=function(Ur,mo,Xr){for(var Eo=function(Ga,Ja){return Ja?new Sn(ct.line,he(Ga,1),"before"):new Sn(ct.line,Ga,"after")};Ur>=0&&Ur<mt.length;Ur+=mo){var is=mt[Ur],Zr=mo>0==(is.level!=1),xs=Zr?Xr.begin:he(Xr.end,-1);if(is.from<=xs&&xs<is.to||(xs=Zr?is.from:he(is.to,-1),Xr.begin<=xs&&xs<Xr.end))return Eo(xs,Zr)}},lr=qi(Dt+At,At,xn);if(lr)return lr;var Cr=At>0?xn.end:he(xn.begin,-1);return Cr!=null&&!(At>0&&Cr==ot.text.length)&&(lr=qi(At>0?0:mt.length-1,At,Me(Cr)),lr)?lr:null}var Vh={selectAll:El,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),An)},killLine:function(it){return Tl(it,function(ot){if(ot.empty()){var ct=qe(it.doc,ot.head.line).text.length;return ot.head.ch==ct&&ot.head.line<it.lastLine()?{from:ot.head,to:Sn(ot.head.line+1,0)}:{from:ot.head,to:Sn(ot.head.line,ct)}}else return{from:ot.from(),to:ot.to()}})},deleteLine:function(it){return Tl(it,function(ot){return{from:Sn(ot.from().line,0),to:ur(it.doc,Sn(ot.to().line+1,0))}})},delLineLeft:function(it){return Tl(it,function(ot){return{from:Sn(ot.from().line,0),to:ot.from()}})},delWrappedLineLeft:function(it){return Tl(it,function(ot){var ct=it.charCoords(ot.head,"div").top+5,At=it.coordsChar({left:0,top:ct},"div");return{from:At,to:ot.from()}})},delWrappedLineRight:function(it){return Tl(it,function(ot){var ct=it.charCoords(ot.head,"div").top+5,At=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div");return{from:ot.from(),to:At}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(Sn(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(Sn(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(ot){return Ac(it,ot.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(ot){return kd(it,ot.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(ot){return cc(it,ot.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(ot){var ct=it.cursorCoords(ot.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div")},Yn)},goLineLeft:function(it){return it.extendSelectionsBy(function(ot){var ct=it.cursorCoords(ot.head,"div").top+5;return it.coordsChar({left:0,top:ct},"div")},Yn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(ot){var ct=it.cursorCoords(ot.head,"div").top+5,At=it.coordsChar({left:0,top:ct},"div");return At.ch<it.getLine(At.line).search(/\S/)?kd(it,ot.head):At},Yn)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var ot=[],ct=it.listSelections(),At=it.options.tabSize,mt=0;mt<ct.length;mt++){var Dt=ct[mt].from(),qt=pe(it.getLine(Dt.line),Dt.ch,At);ot.push(Ri(At-qt%At))}it.replaceSelections(ot)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return Gi(it,function(){for(var ot=it.listSelections(),ct=[],At=0;At<ot.length;At++)if(ot[At].empty()){var mt=ot[At].head,Dt=qe(it.doc,mt.line).text;if(Dt){if(mt.ch==Dt.length&&(mt=new Sn(mt.line,mt.ch-1)),mt.ch>0)mt=new Sn(mt.line,mt.ch+1),it.replaceRange(Dt.charAt(mt.ch-1)+Dt.charAt(mt.ch-2),Sn(mt.line,mt.ch-2),mt,"+transpose");else if(mt.line>it.doc.first){var qt=qe(it.doc,mt.line-1).text;qt&&(mt=new Sn(mt.line,1),it.replaceRange(Dt.charAt(0)+it.doc.lineSeparator()+qt.charAt(qt.length-1),Sn(mt.line-1,qt.length-1),mt,"+transpose"))}}ct.push(new $o(mt,mt))}it.setSelections(ct)})},newlineAndIndent:function(it){return Gi(it,function(){for(var ot=it.listSelections(),ct=ot.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),ot[ct].anchor,ot[ct].head,"+input");ot=it.listSelections();for(var At=0;At<ot.length;At++)it.indentLine(ot[At].from().line,null,!0);Qe(it)})},openLine:function(it){return it.replaceSelection(`
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function Ac(it,ot){var ct=qe(it.doc,ot),At=wo(ct);return At!=ct&&(ot=Fe(At)),pA(!0,it,At,ot,1)}function cc(it,ot){var ct=qe(it.doc,ot),At=Ps(ct);return At!=ct&&(ot=Fe(At)),pA(!0,it,ct,ot,-1)}function kd(it,ot){var ct=Ac(it,ot.line),At=qe(it.doc,ct.line),mt=le(At,it.doc.direction);if(!mt||mt[0].level==0){var Dt=Math.max(ct.ch,At.text.search(/\S/)),qt=ot.line==ct.line&&ot.ch<=Dt&&ot.ch;return Sn(ct.line,qt?0:Dt,ct.sticky)}return ct}function dc(it,ot,ct){if(typeof ot=="string"&&(ot=Vh[ot],!ot))return!1;it.display.input.ensurePolled();var At=it.display.shift,mt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ct&&(it.display.shift=!1),mt=ot(it)!=si}finally{it.display.shift=At,it.state.suppressEdits=!1}return mt}function mA(it,ot,ct){for(var At=0;At<it.state.keyMaps.length;At++){var mt=Pu(ot,it.state.keyMaps[At],ct,it);if(mt)return mt}return it.options.extraKeys&&Pu(ot,it.options.extraKeys,ct,it)||Pu(ot,it.options.keyMap,ct,it)}var bu=new Xt;function fc(it,ot,ct,At){var mt=it.state.keySeq;if(mt){if(Uc(ot))return"handled";if(/\'$/.test(ot)?it.state.keySeq=null:bu.set(50,function(){it.state.keySeq==mt&&(it.state.keySeq=null,it.display.input.reset())}),vA(it,mt+" "+ot,ct,At))return!0}return vA(it,ot,ct,At)}function vA(it,ot,ct,At){var mt=mA(it,ot,At);return mt=="multi"&&(it.state.keySeq=ot),mt=="handled"&&mr(it,"keyHandled",it,ot,ct),(mt=="handled"||mt=="multi")&&(po(ct),Na(it)),!!mt}function mh(it,ot){var ct=ef(ot,!0);return ct?ot.shiftKey&&!it.state.keySeq?fc(it,"Shift-"+ct,ot,function(At){return dc(it,At,!0)})||fc(it,ct,ot,function(At){if(typeof At=="string"?/^go[A-Z]/.test(At):At.motion)return dc(it,At)}):fc(it,ct,ot,function(At){return dc(it,At)}):!1}function gc(it,ot,ct){return fc(it,"'"+ct+"'",ot,function(At){return dc(it,At,!0)})}var Ih=null;function gd(it){var ot=this;if(!(it.target&&it.target!=ot.display.input.getField())&&(ot.curOp.focus=Ue(),!wi(ot,it))){Be&&vn<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;ot.display.shift=ct==16||it.shiftKey;var At=mh(ot,it);Nt&&(Ih=At?ct:null,!At&&ct==88&&!la&&(ht?it.metaKey:it.ctrlKey)&&ot.replaceSelection("",null,"cut")),zt&&!ht&&!At&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(ot.display.lineDiv.className)&&Qc(ot)}}function Qc(it){var ot=it.display.lineDiv;Pn(ot,"CodeMirror-crosshair");function ct(At){(At.keyCode==18||!At.altKey)&&($t(ot,"CodeMirror-crosshair"),Zn(document,"keyup",ct),Zn(document,"mouseover",ct))}be(document,"keyup",ct),be(document,"mouseover",ct)}function nf(it){it.keyCode==16&&(this.doc.sel.shift=!1),wi(this,it)}function vh(it){var ot=this;if(!(it.target&&it.target!=ot.display.input.getField())&&!(Yl(ot.display,it)||wi(ot,it)||it.ctrlKey&&!it.altKey||ht&&it.metaKey)){var ct=it.keyCode,At=it.charCode;if(Nt&&ct==Ih){Ih=null,po(it);return}if(!(Nt&&(!it.which||it.which<10)&&mh(ot,it))){var mt=String.fromCharCode(At==null?ct:At);mt!="\b"&&(gc(ot,it,mt)||ot.display.input.onKeyPress(it))}}}var Td=400,pc=function(it,ot,ct){this.time=it,this.pos=ot,this.button=ct};pc.prototype.compare=function(it,ot,ct){return this.time+Td>it&&$n(ot,this.pos)==0&&ct==this.button};var kh,bA;function Rc(it,ot){var ct=+new Date;return bA&&bA.compare(ct,it,ot)?(kh=bA=null,"triple"):kh&&kh.compare(ct,it,ot)?(bA=new pc(ct,it,ot),kh=null,"double"):(kh=new pc(ct,it,ot),bA=null,"single")}function Ju(it){var ot=this,ct=ot.display;if(!(wi(ot,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,Yl(ct,it)){Ie||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!Rn(ot,it)){var At=fu(ot,it),mt=Wr(it),Dt=At?Rc(At,mt):"single";window.focus(),mt==1&&ot.state.selectingText&&ot.state.selectingText(it),!(At&&Od(ot,mt,At,Dt,it))&&(mt==1?At?mc(ot,At,Dt,it):gr(it)==ct.scroller&&po(it):mt==2?(At&&PA(ot.doc,At),setTimeout(function(){return ct.input.focus()},20)):mt==3&&(Rt?ot.display.input.onContextMenu(it):yt(ot)))}}}function Od(it,ot,ct,At,mt){var Dt="Click";return At=="double"?Dt="Double"+Dt:At=="triple"&&(Dt="Triple"+Dt),Dt=(ot==1?"Left":ot==2?"Middle":"Right")+Dt,fc(it,fd(Dt,mt),mt,function(qt){if(typeof qt=="string"&&(qt=Vh[qt]),!qt)return!1;var he=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),he=qt(it,ct)!=si}finally{it.state.suppressEdits=!1}return he})}function _A(it,ot,ct){var At=it.getOption("configureMouse"),mt=At?At(it,ot,ct):{};if(mt.unit==null){var Dt=at?ct.shiftKey&&ct.metaKey:ct.altKey;mt.unit=Dt?"rectangle":ot=="single"?"char":ot=="double"?"word":"line"}return(mt.extend==null||it.doc.extend)&&(mt.extend=it.doc.extend||ct.shiftKey),mt.addNew==null&&(mt.addNew=ht?ct.metaKey:ct.ctrlKey),mt.moveOnDrag==null&&(mt.moveOnDrag=!(ht?ct.altKey:ct.ctrlKey)),mt}function mc(it,ot,ct,At){Be?setTimeout(fn(tl,it),0):it.curOp.focus=Ue();var mt=_A(it,ct,At),Dt=it.doc.sel,qt;it.options.dragDrop&&Vr&&!it.isReadOnly()&&ct=="single"&&(qt=Dt.contains(ot))>-1&&($n((qt=Dt.ranges[qt]).from(),ot)<0||ot.xRel>0)&&($n(qt.to(),ot)>0||ot.xRel<0)?pd(it,At,ot,mt):Dd(it,At,ot,mt)}function pd(it,ot,ct,At){var mt=it.display,Dt=!1,qt=rr(it,function(Me){Ie&&(mt.scroller.draggable=!1),it.state.draggingText=!1,Zn(mt.wrapper.ownerDocument,"mouseup",qt),Zn(mt.wrapper.ownerDocument,"mousemove",he),Zn(mt.scroller,"dragstart",ue),Zn(mt.scroller,"drop",qt),Dt||(po(Me),At.addNew||PA(it.doc,ct,null,null,At.extend),Ie&&!se||Be&&vn==9?setTimeout(function(){mt.wrapper.ownerDocument.body.focus({preventScroll:!0}),mt.input.focus()},20):mt.input.focus())}),he=function(Me){Dt=Dt||Math.abs(ot.clientX-Me.clientX)+Math.abs(ot.clientY-Me.clientY)>=10},ue=function(){return Dt=!0};Ie&&(mt.scroller.draggable=!0),it.state.draggingText=qt,qt.copy=!At.moveOnDrag,mt.scroller.dragDrop&&mt.scroller.dragDrop(),be(mt.wrapper.ownerDocument,"mouseup",qt),be(mt.wrapper.ownerDocument,"mousemove",he),be(mt.scroller,"dragstart",ue),be(mt.scroller,"drop",qt),yt(it),setTimeout(function(){return mt.input.focus()},20)}function Yh(it,ot,ct){if(ct=="char")return new $o(ot,ot);if(ct=="word")return it.findWordAt(ot);if(ct=="line")return new $o(Sn(ot.line,0),ur(it.doc,Sn(ot.line+1,0)));var At=ct(it,ot);return new $o(At.from,At.to)}function Dd(it,ot,ct,At){var mt=it.display,Dt=it.doc;po(ot);var qt,he,ue=Dt.sel,Me=ue.ranges;if(At.addNew&&!At.extend?(he=Dt.sel.contains(ct),he>-1?qt=Me[he]:qt=new $o(ct,ct)):(qt=Dt.sel.primary(),he=Dt.sel.primIndex),At.unit=="rectangle")At.addNew||(qt=new $o(ct,ct)),ct=fu(it,ot,!0,!0),he=-1;else{var xn=Yh(it,ct,At.unit);At.extend?qt=Ku(qt,xn.anchor,xn.head,At.extend):qt=xn}At.addNew?he==-1?(he=Me.length,fl(Dt,ra(it,Me.concat([qt]),he),{scroll:!1,origin:"*mouse"})):Me.length>1&&Me[he].empty()&&At.unit=="char"&&!At.extend?(fl(Dt,ra(it,Me.slice(0,he).concat(Me.slice(he+1)),0),{scroll:!1,origin:"*mouse"}),ue=Dt.sel):Su(Dt,he,qt,Nn):(he=0,fl(Dt,new Ds([qt],0),Nn),ue=Dt.sel);var _e=ct;function ri(Xr){if($n(_e,Xr)!=0)if(_e=Xr,At.unit=="rectangle"){for(var Eo=[],is=it.options.tabSize,Zr=pe(qe(Dt,ct.line).text,ct.ch,is),xs=pe(qe(Dt,Xr.line).text,Xr.ch,is),Ga=Math.min(Zr,xs),Ja=Math.max(Zr,xs),va=Math.min(ct.line,Xr.line),Aa=Math.min(it.lastLine(),Math.max(ct.line,Xr.line));va<=Aa;va++){var $s=qe(Dt,va).text,ua=Ci($s,Ga,is);Ga==Ja?Eo.push(new $o(Sn(va,ua),Sn(va,ua))):$s.length>ua&&Eo.push(new $o(Sn(va,ua),Sn(va,Ci($s,Ja,is))))}Eo.length||Eo.push(new $o(ct,ct)),fl(Dt,ra(it,ue.ranges.slice(0,he).concat(Eo),he),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Xr)}else{var ka=qt,Bl=Yh(it,Xr,At.unit),$r=ka.anchor,Qs;$n(Bl.anchor,$r)>0?(Qs=Bl.head,$r=tr(ka.from(),Bl.anchor)):(Qs=Bl.anchor,$r=Dr(ka.to(),Bl.head));var $a=ue.ranges.slice(0);$a[he]=_t(it,new $o(ur(Dt,$r),Qs)),fl(Dt,ra(it,$a,he),Nn)}}var ti=mt.wrapper.getBoundingClientRect(),qi=0;function lr(Xr){var Eo=++qi,is=fu(it,Xr,!0,At.unit=="rectangle");if(is)if($n(is,_e)!=0){it.curOp.focus=Ue(),ri(is);var Zr=kt(mt,Dt);(is.line>=Zr.to||is.line<Zr.from)&&setTimeout(rr(it,function(){qi==Eo&&lr(Xr)}),150)}else{var xs=Xr.clientY<ti.top?-20:Xr.clientY>ti.bottom?20:0;xs&&setTimeout(rr(it,function(){qi==Eo&&(mt.scroller.scrollTop+=xs,lr(Xr))}),50)}}function Cr(Xr){it.state.selectingText=!1,qi=1/0,Xr&&(po(Xr),mt.input.focus()),Zn(mt.wrapper.ownerDocument,"mousemove",Ur),Zn(mt.wrapper.ownerDocument,"mouseup",mo),Dt.history.lastSelOrigin=null}var Ur=rr(it,function(Xr){Xr.buttons===0||!Wr(Xr)?Cr(Xr):lr(Xr)}),mo=rr(it,Cr);it.state.selectingText=mo,be(mt.wrapper.ownerDocument,"mousemove",Ur),be(mt.wrapper.ownerDocument,"mouseup",mo)}function _t(it,ot){var ct=ot.anchor,At=ot.head,mt=qe(it.doc,ct.line);if($n(ct,At)==0&&ct.sticky==At.sticky)return ot;var Dt=le(mt);if(!Dt)return ot;var qt=bt(Dt,ct.ch,ct.sticky),he=Dt[qt];if(he.from!=ct.ch&&he.to!=ct.ch)return ot;var ue=qt+(he.from==ct.ch==(he.level!=1)?0:1);if(ue==0||ue==Dt.length)return ot;var Me;if(At.line!=ct.line)Me=(At.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var xn=bt(Dt,At.ch,At.sticky),_e=xn-qt||(At.ch-ct.ch)*(he.level==1?-1:1);xn==ue-1||xn==ue?Me=_e<0:Me=_e>0}var ri=Dt[ue+(Me?-1:0)],ti=Me==(ri.level==1),qi=ti?ri.from:ri.to,lr=ti?"after":"before";return ct.ch==qi&&ct.sticky==lr?ot:new $o(new Sn(ct.line,qi,lr),At)}function Ge(it,ot,ct,At){var mt,Dt;if(ot.touches)mt=ot.touches[0].clientX,Dt=ot.touches[0].clientY;else try{mt=ot.clientX,Dt=ot.clientY}catch(ri){return!1}if(mt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;At&&po(ot);var qt=it.display,he=qt.lineDiv.getBoundingClientRect();if(Dt>he.bottom||!_r(it,ct))return Co(ot);Dt-=he.top-qt.viewOffset;for(var ue=0;ue<it.display.gutterSpecs.length;++ue){var Me=qt.gutters.childNodes[ue];if(Me&&Me.getBoundingClientRect().right>=mt){var xn=Qn(it.doc,Dt),_e=it.display.gutterSpecs[ue];return ii(it,ct,it,xn,_e.className,ot),Co(ot)}}}function Rn(it,ot){return Ge(it,ot,"gutterClick",!0)}function gi(it,ot){Yl(it.display,ot)||ji(it,ot)||wi(it,ot,"contextmenu")||Rt||it.display.input.onContextMenu(ot)}function ji(it,ot){return _r(it,"gutterContextMenu")?Ge(it,ot,"gutterContextMenu",!1):!1}function fr(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ma(it)}var Or={toString:function(){return"CodeMirror.Init"}},_o={},gs={};function ea(it){var ot=it.optionHandlers;function ct(At,mt,Dt,qt){it.defaults[At]=mt,Dt&&(ot[At]=qt?function(he,ue,Me){Me!=Or&&Dt(he,ue,Me)}:Dt)}it.defineOption=ct,it.Init=Or,ct("value","",function(At,mt){return At.setValue(mt)},!0),ct("mode",null,function(At,mt){At.doc.modeOption=mt,Ho(At)},!0),ct("indentUnit",2,Ho,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(At){gl(At),Ma(At),sl(At)},!0),ct("lineSeparator",null,function(At,mt){if(At.doc.lineSep=mt,!!mt){var Dt=[],qt=At.doc.first;At.doc.iter(function(ue){for(var Me=0;;){var xn=ue.text.indexOf(mt,Me);if(xn==-1)break;Me=xn+mt.length,Dt.push(Sn(qt,xn))}qt++});for(var he=Dt.length-1;he>=0;he--)lc(At.doc,mt,Dt[he],Sn(Dt[he].line,Dt[he].ch+mt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(At,mt,Dt){At.state.specialChars=new RegExp(mt.source+(mt.test(" ")?"":"| "),"g"),Dt!=Or&&At.refresh()}),ct("specialCharPlaceholder",ca,function(At){return At.refresh()},!0),ct("electricChars",!0),ct("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(At,mt){return At.getInputField().spellcheck=mt},!0),ct("autocorrect",!1,function(At,mt){return At.getInputField().autocorrect=mt},!0),ct("autocapitalize",!1,function(At,mt){return At.getInputField().autocapitalize=mt},!0),ct("rtlMoveVisually",!ft),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(At){fr(At),Rr(At)},!0),ct("keyMap","default",function(At,mt,Dt){var qt=Sl(mt),he=Dt!=Or&&Sl(Dt);he&&he.detach&&he.detach(At,qt),qt.attach&&qt.attach(At,he||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,La,!0),ct("gutters",[],function(At,mt){At.display.gutterSpecs=ls(mt,At.options.lineNumbers),Rr(At)},!0),ct("fixedGutter",!0,function(At,mt){At.display.gutters.style.left=mt?Ic(At.display)+"px":"0",At.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(At){return Er(At)},!0),ct("scrollbarStyle","native",function(At){Xi(At),Er(At),At.display.scrollbars.setScrollTop(At.doc.scrollTop),At.display.scrollbars.setScrollLeft(At.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(At,mt){At.display.gutterSpecs=ls(At.options.gutters,mt),Rr(At)},!0),ct("firstLineNumber",1,Rr,!0),ct("lineNumberFormatter",function(At){return At},Rr,!0),ct("showCursorWhenSelecting",!1,zl,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(At,mt){mt=="nocursor"&&(wt(At),At.display.input.blur()),At.display.input.readOnlyChanged(mt)}),ct("screenReaderLabel",null,function(At,mt){mt=mt===""?null:mt,At.display.input.screenReaderLabelChanged(mt)}),ct("disableInput",!1,function(At,mt){mt||At.display.input.reset()},!0),ct("dragDrop",!0,Ks),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,zl,!0),ct("singleCursorHeightPerLine",!0,zl,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,gl,!0),ct("addModeClass",!1,gl,!0),ct("pollInterval",100),ct("undoDepth",200,function(At,mt){return At.doc.history.undoDepth=mt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(At){return At.refresh()},!0),ct("maxHighlightLength",1e4,gl,!0),ct("moveInputWithCursor",!0,function(At,mt){mt||At.display.input.resetPosition()}),ct("tabindex",null,function(At,mt){return At.display.input.getField().tabIndex=mt||""}),ct("autofocus",null),ct("direction","ltr",function(At,mt){return At.doc.setDirection(mt)},!0),ct("phrases",null)}function Ks(it,ot,ct){var At=ct&&ct!=Or;if(!ot!=!At){var mt=it.display.dragFunctions,Dt=ot?be:Zn;Dt(it.display.scroller,"dragstart",mt.start),Dt(it.display.scroller,"dragenter",mt.enter),Dt(it.display.scroller,"dragover",mt.over),Dt(it.display.scroller,"dragleave",mt.leave),Dt(it.display.scroller,"drop",mt.drop)}}function La(it){it.options.lineWrapping?(Pn(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):($t(it.display.wrapper,"CodeMirror-wrap"),Gs(it)),Wo(it),sl(it),Ma(it),setTimeout(function(){return Er(it)},100)}function ss(it,ot){var ct=this;if(!(this instanceof ss))return new ss(it,ot);this.options=ot=ot?mn(ot):{},mn(_o,ot,!1);var At=ot.value;typeof At=="string"?At=new _l(At,ot.mode,null,ot.lineSeparator,ot.direction):ot.mode&&(At.modeOption=ot.mode),this.doc=At;var mt=new ss.inputStyles[ot.inputStyle](this),Dt=this.display=new So(it,At,mt,ot);Dt.wrapper.CodeMirror=this,fr(this),ot.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Xt,keySeq:null,specialChars:null},ot.autofocus&&!nt&&Dt.input.focus(),Be&&vn<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),ml(this),nl(),yn(this),this.curOp.forceUpdate=!0,oa(this,At),ot.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&gt(ct)},20):wt(this);for(var qt in gs)gs.hasOwnProperty(qt)&&gs[qt](this,ot[qt],Or);_n(this),ot.finishInit&&ot.finishInit(this);for(var he=0;he<xl.length;++he)xl[he](this);bn(this),Ie&&ot.lineWrapping&&getComputedStyle(Dt.lineDiv).textRendering=="optimizelegibility"&&(Dt.lineDiv.style.textRendering="auto")}ss.defaults=_o,ss.optionHandlers=gs;function ml(it){var ot=it.display;be(ot.scroller,"mousedown",rr(it,Ju)),Be&&vn<11?be(ot.scroller,"dblclick",rr(it,function(ue){if(!wi(it,ue)){var Me=fu(it,ue);if(!(!Me||Rn(it,ue)||Yl(it.display,ue))){po(ue);var xn=it.findWordAt(Me);PA(it.doc,xn.anchor,xn.head)}}})):be(ot.scroller,"dblclick",function(ue){return wi(it,ue)||po(ue)}),be(ot.scroller,"contextmenu",function(ue){return gi(it,ue)}),be(ot.input.getField(),"contextmenu",function(ue){ot.scroller.contains(ue.target)||gi(it,ue)});var ct,At={end:0};function mt(){ot.activeTouch&&(ct=setTimeout(function(){return ot.activeTouch=null},1e3),At=ot.activeTouch,At.end=+new Date)}function Dt(ue){if(ue.touches.length!=1)return!1;var Me=ue.touches[0];return Me.radiusX<=1&&Me.radiusY<=1}function qt(ue,Me){if(Me.left==null)return!0;var xn=Me.left-ue.left,_e=Me.top-ue.top;return xn*xn+_e*_e>20*20}be(ot.scroller,"touchstart",function(ue){if(!wi(it,ue)&&!Dt(ue)&&!Rn(it,ue)){ot.input.ensurePolled(),clearTimeout(ct);var Me=+new Date;ot.activeTouch={start:Me,moved:!1,prev:Me-At.end<=300?At:null},ue.touches.length==1&&(ot.activeTouch.left=ue.touches[0].pageX,ot.activeTouch.top=ue.touches[0].pageY)}}),be(ot.scroller,"touchmove",function(){ot.activeTouch&&(ot.activeTouch.moved=!0)}),be(ot.scroller,"touchend",function(ue){var Me=ot.activeTouch;if(Me&&!Yl(ot,ue)&&Me.left!=null&&!Me.moved&&new Date-Me.start<300){var xn=it.coordsChar(ot.activeTouch,"page"),_e;!Me.prev||qt(Me,Me.prev)?_e=new $o(xn,xn):!Me.prev.prev||qt(Me,Me.prev.prev)?_e=it.findWordAt(xn):_e=new $o(Sn(xn.line,0),ur(it.doc,Sn(xn.line+1,0))),it.setSelection(_e.anchor,_e.head),it.focus(),po(ue)}mt()}),be(ot.scroller,"touchcancel",mt),be(ot.scroller,"scroll",function(){ot.scroller.clientHeight&&(jn(it,ot.scroller.scrollTop),On(it,ot.scroller.scrollLeft,!0),ii(it,"scroll",it))}),be(ot.scroller,"mousewheel",function(ue){return cs(it,ue)}),be(ot.scroller,"DOMMouseScroll",function(ue){return cs(it,ue)}),be(ot.wrapper,"scroll",function(){return ot.wrapper.scrollTop=ot.wrapper.scrollLeft=0}),ot.dragFunctions={enter:function(ue){wi(it,ue)||Kr(ue)},over:function(ue){wi(it,ue)||(HA(it,ue),Kr(ue))},start:function(ue){return Ed(it,ue)},drop:rr(it,Fd),leave:function(ue){wi(it,ue)||Ad(it)}};var he=ot.input.getField();be(he,"keyup",function(ue){return nf.call(it,ue)}),be(he,"keydown",rr(it,gd)),be(he,"keypress",rr(it,vh)),be(he,"focus",function(ue){return gt(it,ue)}),be(he,"blur",function(ue){return wt(it,ue)})}var xl=[];ss.defineInitHook=function(it){return xl.push(it)};function ma(it,ot,ct,At){var mt=it.doc,Dt;ct==null&&(ct="add"),ct=="smart"&&(mt.mode.indent?Dt=Po(it,ot).state:ct="prev");var qt=it.options.tabSize,he=qe(mt,ot),ue=pe(he.text,null,qt);he.stateAfter&&(he.stateAfter=null);var Me=he.text.match(/^\s*/)[0],xn;if(!At&&!/\S/.test(he.text))xn=0,ct="not";else if(ct=="smart"&&(xn=mt.mode.indent(Dt,he.text.slice(Me.length),he.text),xn==si||xn>150)){if(!At)return;ct="prev"}ct=="prev"?ot>mt.first?xn=pe(qe(mt,ot-1).text,null,qt):xn=0:ct=="add"?xn=ue+it.options.indentUnit:ct=="subtract"?xn=ue-it.options.indentUnit:typeof ct=="number"&&(xn=ue+ct),xn=Math.max(0,xn);var _e="",ri=0;if(it.options.indentWithTabs)for(var ti=Math.floor(xn/qt);ti;--ti)ri+=qt,_e+=" ";if(ri<xn&&(_e+=Ri(xn-ri)),_e!=Me)return lc(mt,_e,Sn(ot,0),Sn(ot,Me.length),"+input"),he.stateAfter=null,!0;for(var qi=0;qi<mt.sel.ranges.length;qi++){var lr=mt.sel.ranges[qi];if(lr.head.line==ot&&lr.head.ch<Me.length){var Cr=Sn(ot,Me.length);Su(mt,qi,new $o(Cr,Cr));break}}}var ja=null;function Lu(it){ja=it}function Ou(it,ot,ct,At,mt){var Dt=it.doc;it.display.shift=!1,At||(At=Dt.sel);var qt=+new Date-200,he=mt=="paste"||it.state.pasteIncoming>qt,ue=Fo(ot),Me=null;if(he&&At.ranges.length>1)if(ja&&ja.text.join(`
`)==ot){if(At.ranges.length%ja.text.length==0){Me=[];for(var xn=0;xn<ja.text.length;xn++)Me.push(Dt.splitLines(ja.text[xn]))}}else ue.length==At.ranges.length&&it.options.pasteLinesPerSelection&&(Me=ci(ue,function(Ur){return[Ur]}));for(var _e=it.curOp.updateInput,ri=At.ranges.length-1;ri>=0;ri--){var ti=At.ranges[ri],qi=ti.from(),lr=ti.to();ti.empty()&&(ct&&ct>0?qi=Sn(qi.line,qi.ch-ct):it.state.overwrite&&!he?lr=Sn(lr.line,Math.min(qe(Dt,lr.line).text.length,lr.ch+Te(ue).length)):he&&ja&&ja.lineWise&&ja.text.join(`
`)==ue.join(`
`)&&(qi=lr=Sn(qi.line,0)));var Cr={from:qi,to:lr,text:Me?Me[ri%Me.length]:ue,origin:mt||(he?"paste":it.state.cutIncoming>qt?"cut":"+input")};Kh(it.doc,Cr),mr(it,"inputRead",it,Cr)}ot&&!he&&vc(it,ot),Qe(it),it.curOp.updateInput<2&&(it.curOp.updateInput=_e),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function yh(it,ot){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!ot.isReadOnly()&&!ot.options.disableInput&&Gi(ot,function(){return Ou(ot,ct,0,null,"paste")}),!0}function vc(it,ot){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,At=ct.ranges.length-1;At>=0;At--){var mt=ct.ranges[At];if(!(mt.head.ch>100||At&&ct.ranges[At-1].head.line==mt.head.line)){var Dt=it.getModeAt(mt.head),qt=!1;if(Dt.electricChars){for(var he=0;he<Dt.electricChars.length;he++)if(ot.indexOf(Dt.electricChars.charAt(he))>-1){qt=ma(it,mt.head.line,"smart");break}}else Dt.electricInput&&Dt.electricInput.test(qe(it.doc,mt.head.line).text.slice(0,mt.head.ch))&&(qt=ma(it,mt.head.line,"smart"));qt&&mr(it,"electricInput",it,mt.head.line)}}}function Hc(it){for(var ot=[],ct=[],At=0;At<it.doc.sel.ranges.length;At++){var mt=it.doc.sel.ranges[At].head.line,Dt={anchor:Sn(mt,0),head:Sn(mt+1,0)};ct.push(Dt),ot.push(it.getRange(Dt.anchor,Dt.head))}return{text:ot,ranges:ct}}function zc(it,ot,ct,At){it.setAttribute("autocorrect",ct?"":"off"),it.setAttribute("autocapitalize",At?"":"off"),it.setAttribute("spellcheck",!!ot)}function Gc(){var it=fe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ot=fe("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ie?it.style.width="1000px":it.setAttribute("wrap","off"),Ut&&(it.style.border="1px solid black"),zc(it),ot}function Xh(it){var ot=it.optionHandlers,ct=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(At,mt){var Dt=this.options,qt=Dt[At];Dt[At]==mt&&At!="mode"||(Dt[At]=mt,ot.hasOwnProperty(At)&&rr(this,ot[At])(this,mt,qt),ii(this,"optionChange",this,At))},getOption:function(At){return this.options[At]},getDoc:function(){return this.doc},addKeyMap:function(At,mt){this.state.keyMaps[mt?"push":"unshift"](Sl(At))},removeKeyMap:function(At){for(var mt=this.state.keyMaps,Dt=0;Dt<mt.length;++Dt)if(mt[Dt]==At||mt[Dt].name==At)return mt.splice(Dt,1),!0},addOverlay:ao(function(At,mt){var Dt=At.token?At:it.getMode(this.options,At);if(Dt.startState)throw new Error("Overlays may not be stateful.");ki(this.state.overlays,{mode:Dt,modeSpec:At,opaque:mt&&mt.opaque,priority:mt&&mt.priority||0},function(qt){return qt.priority}),this.state.modeGen++,sl(this)}),removeOverlay:ao(function(At){for(var mt=this.state.overlays,Dt=0;Dt<mt.length;++Dt){var qt=mt[Dt].modeSpec;if(qt==At||typeof At=="string"&&qt.name==At){mt.splice(Dt,1),this.state.modeGen++,sl(this);return}}}),indentLine:ao(function(At,mt,Dt){typeof mt!="string"&&typeof mt!="number"&&(mt==null?mt=this.options.smartIndent?"smart":"prev":mt=mt?"add":"subtract"),Ei(this.doc,At)&&ma(this,At,mt,Dt)}),indentSelection:ao(function(At){for(var mt=this.doc.sel.ranges,Dt=-1,qt=0;qt<mt.length;qt++){var he=mt[qt];if(he.empty())he.head.line>Dt&&(ma(this,he.head.line,At,!0),Dt=he.head.line,qt==this.doc.sel.primIndex&&Qe(this));else{var ue=he.from(),Me=he.to(),xn=Math.max(Dt,ue.line);Dt=Math.min(this.lastLine(),Me.line-(Me.ch?0:1))+1;for(var _e=xn;_e<Dt;++_e)ma(this,_e,At);var ri=this.doc.sel.ranges;ue.ch==0&&mt.length==ri.length&&ri[qt].from().ch>0&&Su(this.doc,qt,new $o(ue,ri[qt].to()),An)}}}),getTokenAt:function(At,mt){return Ir(this,At,mt)},getLineTokens:function(At,mt){return Ir(this,Sn(At),mt,!0)},getTokenTypeAt:function(At){At=ur(this.doc,At);var mt=rs(this,qe(this.doc,At.line)),Dt=0,qt=(mt.length-1)/2,he=At.ch,ue;if(he==0)ue=mt[2];else for(;;){var Me=Dt+qt>>1;if((Me?mt[Me*2-1]:0)>=he)qt=Me;else if(mt[Me*2+1]<he)Dt=Me+1;else{ue=mt[Me*2+2];break}}var xn=ue?ue.indexOf("overlay "):-1;return xn<0?ue:xn==0?null:ue.slice(0,xn-1)},getModeAt:function(At){var mt=this.doc.mode;return mt.innerMode?it.innerMode(mt,this.getTokenAt(At).state).mode:mt},getHelper:function(At,mt){return this.getHelpers(At,mt)[0]},getHelpers:function(At,mt){var Dt=[];if(!ct.hasOwnProperty(mt))return Dt;var qt=ct[mt],he=this.getModeAt(At);if(typeof he[mt]=="string")qt[he[mt]]&&Dt.push(qt[he[mt]]);else if(he[mt])for(var ue=0;ue<he[mt].length;ue++){var Me=qt[he[mt][ue]];Me&&Dt.push(Me)}else he.helperType&&qt[he.helperType]?Dt.push(qt[he.helperType]):qt[he.name]&&Dt.push(qt[he.name]);for(var xn=0;xn<qt._global.length;xn++){var _e=qt._global[xn];_e.pred(he,this)&&Ve(Dt,_e.val)==-1&&Dt.push(_e.val)}return Dt},getStateAfter:function(At,mt){var Dt=this.doc;return At=vr(Dt,At==null?Dt.first+Dt.size-1:At),Po(this,At+1,mt).state},cursorCoords:function(At,mt){var Dt,qt=this.doc.sel.primary();return At==null?Dt=qt.head:typeof At=="object"?Dt=ur(this.doc,At):Dt=At?qt.from():qt.to(),ba(this,Dt,mt||"page")},charCoords:function(At,mt){return yu(this,ur(this.doc,At),mt||"page")},coordsChar:function(At,mt){return At=Gh(this,At,mt||"page"),_h(this,At.left,At.top)},lineAtHeight:function(At,mt){return At=Gh(this,{top:At,left:0},mt||"page").top,Qn(this.doc,At+this.display.viewOffset)},heightAtLine:function(At,mt,Dt){var qt=!1,he;if(typeof At=="number"){var ue=this.doc.first+this.doc.size-1;At<this.doc.first?At=this.doc.first:At>ue&&(At=ue,qt=!0),he=qe(this.doc,At)}else he=At;return ol(this,he,{top:0,left:0},mt||"page",Dt||qt).top+(qt?this.doc.height-hs(he):0)},defaultTextHeight:function(){return hu(this.display)},defaultCharWidth:function(){return Lh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(At,mt,Dt,qt,he){var ue=this.display;At=ba(this,ur(this.doc,At));var Me=At.bottom,xn=At.left;if(mt.style.position="absolute",mt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(mt),ue.sizer.appendChild(mt),qt=="over")Me=At.top;else if(qt=="above"||qt=="near"){var _e=Math.max(ue.wrapper.clientHeight,this.doc.height),ri=Math.max(ue.sizer.clientWidth,ue.lineSpace.clientWidth);(qt=="above"||At.bottom+mt.offsetHeight>_e)&&At.top>mt.offsetHeight?Me=At.top-mt.offsetHeight:At.bottom+mt.offsetHeight<=_e&&(Me=At.bottom),xn+mt.offsetWidth>ri&&(xn=ri-mt.offsetWidth)}mt.style.top=Me+"px",mt.style.left=mt.style.right="",he=="right"?(xn=ue.sizer.clientWidth-mt.offsetWidth,mt.style.right="0px"):(he=="left"?xn=0:he=="middle"&&(xn=(ue.sizer.clientWidth-mt.offsetWidth)/2),mt.style.left=xn+"px"),Dt&&ne(this,{left:xn,top:Me,right:xn+mt.offsetWidth,bottom:Me+mt.offsetHeight})},triggerOnKeyDown:ao(gd),triggerOnKeyPress:ao(vh),triggerOnKeyUp:nf,triggerOnMouseDown:ao(Ju),execCommand:function(At){if(Vh.hasOwnProperty(At))return Vh[At].call(null,this)},triggerElectric:ao(function(At){vc(this,At)}),findPosH:function(At,mt,Dt,qt){var he=1;mt<0&&(he=-1,mt=-mt);for(var ue=ur(this.doc,At),Me=0;Me<mt&&(ue=KA(this.doc,ue,he,Dt,qt),!ue.hitSide);++Me);return ue},moveH:ao(function(At,mt){var Dt=this;this.extendSelectionsBy(function(qt){return Dt.display.shift||Dt.doc.extend||qt.empty()?KA(Dt.doc,qt.head,At,mt,Dt.options.rtlMoveVisually):At<0?qt.from():qt.to()},Yn)}),deleteH:ao(function(At,mt){var Dt=this.doc.sel,qt=this.doc;Dt.somethingSelected()?qt.replaceSelection("",null,"+delete"):Tl(this,function(he){var ue=KA(qt,he.head,At,mt,!1);return At<0?{from:ue,to:he.head}:{from:he.head,to:ue}})}),findPosV:function(At,mt,Dt,qt){var he=1,ue=qt;mt<0&&(he=-1,mt=-mt);for(var Me=ur(this.doc,At),xn=0;xn<mt;++xn){var _e=ba(this,Me,"div");if(ue==null?ue=_e.left:_e.left=ue,Me=Zh(this,_e,he,Dt),Me.hitSide)break}return Me},moveV:ao(function(At,mt){var Dt=this,qt=this.doc,he=[],ue=!this.display.shift&&!qt.extend&&qt.sel.somethingSelected();if(qt.extendSelectionsBy(function(xn){if(ue)return At<0?xn.from():xn.to();var _e=ba(Dt,xn.head,"div");xn.goalColumn!=null&&(_e.left=xn.goalColumn),he.push(_e.left);var ri=Zh(Dt,_e,At,mt);return mt=="page"&&xn==qt.sel.primary()&&Re(Dt,yu(Dt,ri,"div").top-_e.top),ri},Yn),he.length)for(var Me=0;Me<qt.sel.ranges.length;Me++)qt.sel.ranges[Me].goalColumn=he[Me]}),findWordAt:function(At){var mt=this.doc,Dt=qe(mt,At.line).text,qt=At.ch,he=At.ch;if(Dt){var ue=this.getHelper(At,"wordChars");(At.sticky=="before"||he==Dt.length)&&qt?--qt:++he;for(var Me=Dt.charAt(qt),xn=Ne(Me,ue)?function(_e){return Ne(_e,ue)}:/\s/.test(Me)?function(_e){return/\s/.test(_e)}:function(_e){return!/\s/.test(_e)&&!Ne(_e)};qt>0&&xn(Dt.charAt(qt-1));)--qt;for(;he<Dt.length&&xn(Dt.charAt(he));)++he}return new $o(Sn(At.line,qt),Sn(At.line,he))},toggleOverwrite:function(At){At!=null&&At==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pn(this.display.cursorDiv,"CodeMirror-overwrite"):$t(this.display.cursorDiv,"CodeMirror-overwrite"),ii(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ue()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ao(function(At,mt){en(this,At,mt)}),getScrollInfo:function(){var At=this.display.scroller;return{left:At.scrollLeft,top:At.scrollTop,height:At.scrollHeight-Hl(this)-this.display.barHeight,width:At.scrollWidth-Hl(this)-this.display.barWidth,clientHeight:uo(this),clientWidth:Ll(this)}},scrollIntoView:ao(function(At,mt){At==null?(At={from:this.doc.sel.primary().head,to:null},mt==null&&(mt=this.options.cursorScrollMargin)):typeof At=="number"?At={from:Sn(At,0),to:null}:At.from==null&&(At={from:At,to:null}),At.to||(At.to=At.from),At.margin=mt||0,At.from.line!=null?ce(this,At):Bn(this,At.from,At.to,At.margin)}),setSize:ao(function(At,mt){var Dt=this,qt=function(ue){return typeof ue=="number"||/^\d+$/.test(String(ue))?ue+"px":ue};At!=null&&(this.display.wrapper.style.width=qt(At)),mt!=null&&(this.display.wrapper.style.height=qt(mt)),this.options.lineWrapping&&qa(this);var he=this.display.viewFrom;this.doc.iter(he,this.display.viewTo,function(ue){if(ue.widgets){for(var Me=0;Me<ue.widgets.length;Me++)if(ue.widgets[Me].noHScroll){Ts(Dt,he,"widget");break}}++he}),this.curOp.forceUpdate=!0,ii(this,"refresh",this)}),operation:function(At){return Gi(this,At)},startOperation:function(){return yn(this)},endOperation:function(){return bn(this)},refresh:ao(function(){var At=this.display.cachedTextHeight;sl(this),this.curOp.forceUpdate=!0,Ma(this),en(this,this.doc.scrollLeft,this.doc.scrollTop),Lo(this.display),(At==null||Math.abs(At-hu(this.display))>.5||this.options.lineWrapping)&&Wo(this),ii(this,"refresh",this)}),swapDoc:ao(function(At){var mt=this.doc;return mt.cm=null,this.state.selectingText&&this.state.selectingText(),oa(this,At),Ma(this),this.display.input.reset(),en(this,At.scrollLeft,At.scrollTop),this.curOp.forceScroll=!0,mr(this,"swapDoc",this,mt),mt}),phrase:function(At){var mt=this.options.phrases;return mt&&Object.prototype.hasOwnProperty.call(mt,At)?mt[At]:At},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Tr(it),it.registerHelper=function(At,mt,Dt){ct.hasOwnProperty(At)||(ct[At]=it[At]={_global:[]}),ct[At][mt]=Dt},it.registerGlobalHelper=function(At,mt,Dt,qt){it.registerHelper(At,mt,qt),ct[At]._global.push({pred:Dt,val:qt})}}function KA(it,ot,ct,At,mt){var Dt=ot,qt=ct,he=qe(it,ot.line),ue=mt&&it.direction=="rtl"?-ct:ct;function Me(){var mo=ot.line+ue;return mo<it.first||mo>=it.first+it.size?!1:(ot=new Sn(mo,ot.ch,ot.sticky),he=qe(it,mo))}function xn(mo){var Xr;if(At=="codepoint"){var Eo=he.text.charCodeAt(ot.ch+(At>0?0:-1));isNaN(Eo)?Xr=null:Xr=new Sn(ot.line,Math.max(0,Math.min(he.text.length,ot.ch+ct*(Eo>=55296&&Eo<56320?2:1))),-ct)}else mt?Xr=GA(it.cm,he,ot,ct):Xr=Ml(he,ot,ct);if(Xr==null)if(!mo&&Me())ot=pA(mt,it.cm,he,ot.line,ue);else return!1;else ot=Xr;return!0}if(At=="char"||At=="codepoint")xn();else if(At=="column")xn(!0);else if(At=="word"||At=="group")for(var _e=null,ri=At=="group",ti=it.cm&&it.cm.getHelper(ot,"wordChars"),qi=!0;!(ct<0&&!xn(!qi));qi=!1){var lr=he.text.charAt(ot.ch)||`
`,Cr=Ne(lr,ti)?"w":ri&&lr==`
`?"n":!ri||/\s/.test(lr)?null:"p";if(ri&&!qi&&!Cr&&(Cr="s"),_e&&_e!=Cr){ct<0&&(ct=1,xn(),ot.sticky="after");break}if(Cr&&(_e=Cr),ct>0&&!xn(!qi))break}var Ur=UA(it,ot,Dt,qt,!0);return xr(Dt,Ur)&&(Ur.hitSide=!0),Ur}function Zh(it,ot,ct,At){var mt=it.doc,Dt=ot.left,qt;if(At=="page"){var he=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ue=Math.max(he-.5*hu(it.display),3);qt=(ct>0?ot.bottom:ot.top)+ct*ue}else At=="line"&&(qt=ct>0?ot.bottom+3:ot.top-3);for(var Me;Me=_h(it,Dt,qt),!!Me.outside;){if(ct<0?qt<=0:qt>=mt.height){Me.hitSide=!0;break}qt+=ct*5}return Me}var Us=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Xt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Us.prototype.init=function(it){var ot=this,ct=this,At=ct.cm,mt=ct.div=it.lineDiv;zc(mt,At.options.spellcheck,At.options.autocorrect,At.options.autocapitalize);function Dt(he){for(var ue=he.target;ue;ue=ue.parentNode){if(ue==mt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ue.className))break}return!1}be(mt,"paste",function(he){!Dt(he)||wi(At,he)||yh(he,At)||vn<=11&&setTimeout(rr(At,function(){return ot.updateFromDOM()}),20)}),be(mt,"compositionstart",function(he){ot.composing={data:he.data,done:!1}}),be(mt,"compositionupdate",function(he){ot.composing||(ot.composing={data:he.data,done:!1})}),be(mt,"compositionend",function(he){ot.composing&&(he.data!=ot.composing.data&&ot.readFromDOMSoon(),ot.composing.done=!0)}),be(mt,"touchstart",function(){return ct.forceCompositionEnd()}),be(mt,"input",function(){ot.composing||ot.readFromDOMSoon()});function qt(he){if(!(!Dt(he)||wi(At,he))){if(At.somethingSelected())Lu({lineWise:!1,text:At.getSelections()}),he.type=="cut"&&At.replaceSelection("",null,"cut");else if(At.options.lineWiseCopyCut){var ue=Hc(At);Lu({lineWise:!0,text:ue.text}),he.type=="cut"&&At.operation(function(){At.setSelections(ue.ranges,0,An),At.replaceSelection("",null,"cut")})}else return;if(he.clipboardData){he.clipboardData.clearData();var Me=ja.text.join(`
`);if(he.clipboardData.setData("Text",Me),he.clipboardData.getData("Text")==Me){he.preventDefault();return}}var xn=Gc(),_e=xn.firstChild;At.display.lineSpace.insertBefore(xn,At.display.lineSpace.firstChild),_e.value=ja.text.join(`
`);var ri=document.activeElement;un(_e),setTimeout(function(){At.display.lineSpace.removeChild(xn),ri.focus(),ri==mt&&ct.showPrimarySelection()},50)}}be(mt,"copy",qt),be(mt,"cut",qt)},Us.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Us.prototype.prepareSelection=function(){var it=rc(this.cm,!1);return it.focus=document.activeElement==this.div,it},Us.prototype.showSelection=function(it,ot){!it||!this.cm.display.view.length||((it.focus||ot)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Us.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Us.prototype.showPrimarySelection=function(){var it=this.getSelection(),ot=this.cm,ct=ot.doc.sel.primary(),At=ct.from(),mt=ct.to();if(ot.display.viewTo==ot.display.viewFrom||At.line>=ot.display.viewTo||mt.line<ot.display.viewFrom){it.removeAllRanges();return}var Dt=Jl(ot,it.anchorNode,it.anchorOffset),qt=Jl(ot,it.focusNode,it.focusOffset);if(!(Dt&&!Dt.bad&&qt&&!qt.bad&&$n(tr(Dt,qt),At)==0&&$n(Dr(Dt,qt),mt)==0)){var he=ot.display.view,ue=At.line>=ot.display.viewFrom&&Th(ot,At)||{node:he[0].measure.map[2],offset:0},Me=mt.line<ot.display.viewTo&&Th(ot,mt);if(!Me){var xn=he[he.length-1].measure,_e=xn.maps?xn.maps[xn.maps.length-1]:xn.map;Me={node:_e[_e.length-1],offset:_e[_e.length-2]-_e[_e.length-3]}}if(!ue||!Me){it.removeAllRanges();return}var ri=it.rangeCount&&it.getRangeAt(0),ti;try{ti=De(ue.node,ue.offset,Me.offset,Me.node)}catch(qi){}ti&&(!zt&&ot.state.focused?(it.collapse(ue.node,ue.offset),ti.collapsed||(it.removeAllRanges(),it.addRange(ti))):(it.removeAllRanges(),it.addRange(ti)),ri&&it.anchorNode==null?it.addRange(ri):zt&&this.startGracePeriod()),this.rememberSelection()}},Us.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},Us.prototype.showMultipleSelections=function(it){ve(this.cm.display.cursorDiv,it.cursors),ve(this.cm.display.selectionDiv,it.selection)},Us.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},Us.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var ot=it.getRangeAt(0).commonAncestorContainer;return hn(this.div,ot)},Us.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Us.prototype.blur=function(){this.div.blur()},Us.prototype.getField=function(){return this.div},Us.prototype.supportsTouch=function(){return!0},Us.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():Gi(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function ot(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,ot))}this.polling.set(this.cm.options.pollInterval,ot)},Us.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},Us.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),ot=this.cm;if(et&&ye&&this.cm.display.gutterSpecs.length&&yc(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ct=Jl(ot,it.anchorNode,it.anchorOffset),At=Jl(ot,it.focusNode,it.focusOffset);ct&&At&&Gi(ot,function(){fl(ot.doc,Bs(ct,At),An),(ct.bad||At.bad)&&(ot.curOp.selectionChanged=!0)})}}},Us.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,ot=it.display,ct=it.doc.sel.primary(),At=ct.from(),mt=ct.to();if(At.ch==0&&At.line>it.firstLine()&&(At=Sn(At.line-1,qe(it.doc,At.line-1).length)),mt.ch==qe(it.doc,mt.line).text.length&&mt.line<it.lastLine()&&(mt=Sn(mt.line+1,0)),At.line<ot.viewFrom||mt.line>ot.viewTo-1)return!1;var Dt,qt,he;At.line==ot.viewFrom||(Dt=_u(it,At.line))==0?(qt=Fe(ot.view[0].line),he=ot.view[0].node):(qt=Fe(ot.view[Dt].line),he=ot.view[Dt-1].node.nextSibling);var ue=_u(it,mt.line),Me,xn;if(ue==ot.view.length-1?(Me=ot.viewTo-1,xn=ot.lineDiv.lastChild):(Me=Fe(ot.view[ue+1].line)-1,xn=ot.view[ue+1].node.previousSibling),!he)return!1;for(var _e=it.doc.splitLines($u(it,he,xn,qt,Me)),ri=In(it.doc,Sn(qt,0),Sn(Me,qe(it.doc,Me).text.length));_e.length>1&&ri.length>1;)if(Te(_e)==Te(ri))_e.pop(),ri.pop(),Me--;else if(_e[0]==ri[0])_e.shift(),ri.shift(),qt++;else break;for(var ti=0,qi=0,lr=_e[0],Cr=ri[0],Ur=Math.min(lr.length,Cr.length);ti<Ur&&lr.charCodeAt(ti)==Cr.charCodeAt(ti);)++ti;for(var mo=Te(_e),Xr=Te(ri),Eo=Math.min(mo.length-(_e.length==1?ti:0),Xr.length-(ri.length==1?ti:0));qi<Eo&&mo.charCodeAt(mo.length-qi-1)==Xr.charCodeAt(Xr.length-qi-1);)++qi;if(_e.length==1&&ri.length==1&&qt==At.line)for(;ti&&ti>At.ch&&mo.charCodeAt(mo.length-qi-1)==Xr.charCodeAt(Xr.length-qi-1);)ti--,qi++;_e[_e.length-1]=mo.slice(0,mo.length-qi).replace(/^\u200b+/,""),_e[0]=_e[0].slice(ti).replace(/\u200b+$/,"");var is=Sn(qt,ti),Zr=Sn(Me,ri.length?Te(ri).length-qi:0);if(_e.length>1||_e[0]||$n(is,Zr))return lc(it.doc,_e,is,Zr,"+input"),!0},Us.prototype.ensurePolled=function(){this.forceCompositionEnd()},Us.prototype.reset=function(){this.forceCompositionEnd()},Us.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Us.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},Us.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Gi(this.cm,function(){return sl(it.cm)})},Us.prototype.setUneditable=function(it){it.contentEditable="false"},Us.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||rr(this.cm,Ou)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Us.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Us.prototype.onContextMenu=function(){},Us.prototype.resetPosition=function(){},Us.prototype.needsContentAttribute=!0;function Th(it,ot){var ct=uA(it,ot.line);if(!ct||ct.hidden)return null;var At=qe(it.doc,ot.line),mt=Xl(ct,At,ot.line),Dt=le(At,it.doc.direction),qt="left";if(Dt){var he=bt(Dt,ot.ch);qt=he%2?"right":"left"}var ue=jA(mt.map,ot.ch,qt);return ue.offset=ue.collapse=="right"?ue.end:ue.start,ue}function yc(it){for(var ot=it;ot;ot=ot.parentNode)if(/CodeMirror-gutter-wrapper/.test(ot.className))return!0;return!1}function il(it,ot){return ot&&(it.bad=!0),it}function $u(it,ot,ct,At,mt){var Dt="",qt=!1,he=it.doc.lineSeparator(),ue=!1;function Me(ti){return function(qi){return qi.id==ti}}function xn(){qt&&(Dt+=he,ue&&(Dt+=he),qt=ue=!1)}function _e(ti){ti&&(xn(),Dt+=ti)}function ri(ti){if(ti.nodeType==1){var qi=ti.getAttribute("cm-text");if(qi){_e(qi);return}var lr=ti.getAttribute("cm-marker"),Cr;if(lr){var Ur=it.findMarks(Sn(At,0),Sn(mt+1,0),Me(+lr));Ur.length&&(Cr=Ur[0].find(0))&&_e(In(it.doc,Cr.from,Cr.to).join(he));return}if(ti.getAttribute("contenteditable")=="false")return;var mo=/^(pre|div|p|li|table|br)$/i.test(ti.nodeName);if(!/^br$/i.test(ti.nodeName)&&ti.textContent.length==0)return;mo&&xn();for(var Xr=0;Xr<ti.childNodes.length;Xr++)ri(ti.childNodes[Xr]);/^(pre|p)$/i.test(ti.nodeName)&&(ue=!0),mo&&(qt=!0)}else ti.nodeType==3&&_e(ti.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ri(ot),ot!=ct;)ot=ot.nextSibling,ue=!1;return Dt}function Jl(it,ot,ct){var At;if(ot==it.display.lineDiv){if(At=it.display.lineDiv.childNodes[ct],!At)return il(it.clipPos(Sn(it.display.viewTo-1)),!0);ot=null,ct=0}else for(At=ot;;At=At.parentNode){if(!At||At==it.display.lineDiv)return null;if(At.parentNode&&At.parentNode==it.display.lineDiv)break}for(var mt=0;mt<it.display.view.length;mt++){var Dt=it.display.view[mt];if(Dt.node==At)return LA(Dt,ot,ct)}}function LA(it,ot,ct){var At=it.text.firstChild,mt=!1;if(!ot||!hn(At,ot))return il(Sn(Fe(it.line),0),!0);if(ot==At&&(mt=!0,ot=At.childNodes[ct],ct=0,!ot)){var Dt=it.rest?Te(it.rest):it.line;return il(Sn(Fe(Dt),Dt.text.length),mt)}var qt=ot.nodeType==3?ot:null,he=ot;for(!qt&&ot.childNodes.length==1&&ot.firstChild.nodeType==3&&(qt=ot.firstChild,ct&&(ct=qt.nodeValue.length));he.parentNode!=At;)he=he.parentNode;var ue=it.measure,Me=ue.maps;function xn(Cr,Ur,mo){for(var Xr=-1;Xr<(Me?Me.length:0);Xr++)for(var Eo=Xr<0?ue.map:Me[Xr],is=0;is<Eo.length;is+=3){var Zr=Eo[is+2];if(Zr==Cr||Zr==Ur){var xs=Fe(Xr<0?it.line:it.rest[Xr]),Ga=Eo[is]+mo;return(mo<0||Zr!=Cr)&&(Ga=Eo[is+(mo?1:0)]),Sn(xs,Ga)}}}var _e=xn(qt,he,ct);if(_e)return il(_e,mt);for(var ri=he.nextSibling,ti=qt?qt.nodeValue.length-ct:0;ri;ri=ri.nextSibling){if(_e=xn(ri,ri.firstChild,0),_e)return il(Sn(_e.line,_e.ch-ti),mt);ti+=ri.textContent.length}for(var qi=he.previousSibling,lr=ct;qi;qi=qi.previousSibling){if(_e=xn(qi,qi.firstChild,-1),_e)return il(Sn(_e.line,_e.ch+lr),mt);lr+=qi.textContent.length}}var za=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Xt,this.hasSelection=!1,this.composing=null};za.prototype.init=function(it){var ot=this,ct=this,At=this.cm;this.createField(it);var mt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Ut&&(mt.style.width="0px"),be(mt,"input",function(){Be&&vn>=9&&ot.hasSelection&&(ot.hasSelection=null),ct.poll()}),be(mt,"paste",function(qt){wi(At,qt)||yh(qt,At)||(At.state.pasteIncoming=+new Date,ct.fastPoll())});function Dt(qt){if(!wi(At,qt)){if(At.somethingSelected())Lu({lineWise:!1,text:At.getSelections()});else if(At.options.lineWiseCopyCut){var he=Hc(At);Lu({lineWise:!0,text:he.text}),qt.type=="cut"?At.setSelections(he.ranges,null,An):(ct.prevInput="",mt.value=he.text.join(`
`),un(mt))}else return;qt.type=="cut"&&(At.state.cutIncoming=+new Date)}}be(mt,"cut",Dt),be(mt,"copy",Dt),be(it.scroller,"paste",function(qt){if(!(Yl(it,qt)||wi(At,qt))){if(!mt.dispatchEvent){At.state.pasteIncoming=+new Date,ct.focus();return}var he=new Event("paste");he.clipboardData=qt.clipboardData,mt.dispatchEvent(he)}}),be(it.lineSpace,"selectstart",function(qt){Yl(it,qt)||po(qt)}),be(mt,"compositionstart",function(){var qt=At.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:qt,range:At.markText(qt,At.getCursor("to"),{className:"CodeMirror-composing"})}}),be(mt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},za.prototype.createField=function(it){this.wrapper=Gc(),this.textarea=this.wrapper.firstChild},za.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var it=this.cm,ot=it.display,ct=it.doc,At=rc(it);if(it.options.moveInputWithCursor){var mt=ba(it,ct.sel.primary().head,"div"),Dt=ot.wrapper.getBoundingClientRect(),qt=ot.lineDiv.getBoundingClientRect();At.teTop=Math.max(0,Math.min(ot.wrapper.clientHeight-10,mt.top+qt.top-Dt.top)),At.teLeft=Math.max(0,Math.min(ot.wrapper.clientWidth-10,mt.left+qt.left-Dt.left))}return At},za.prototype.showSelection=function(it){var ot=this.cm,ct=ot.display;ve(ct.cursorDiv,it.cursors),ve(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},za.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var ot=this.cm;if(ot.somethingSelected()){this.prevInput="";var ct=ot.getSelection();this.textarea.value=ct,ot.state.focused&&un(this.textarea),Be&&vn>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Be&&vn>=9&&(this.hasSelection=null))}},za.prototype.getField=function(){return this.textarea},za.prototype.supportsTouch=function(){return!1},za.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||Ue()!=this.textarea))try{this.textarea.focus()}catch(it){}},za.prototype.blur=function(){this.textarea.blur()},za.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},za.prototype.receivedFocus=function(){this.slowPoll()},za.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},za.prototype.fastPoll=function(){var it=!1,ot=this;ot.pollingFast=!0;function ct(){var At=ot.poll();!At&&!it?(it=!0,ot.polling.set(60,ct)):(ot.pollingFast=!1,ot.slowPoll())}ot.polling.set(20,ct)},za.prototype.poll=function(){var it=this,ot=this.cm,ct=this.textarea,At=this.prevInput;if(this.contextMenuPending||!ot.state.focused||jt(ct)&&!At&&!this.composing||ot.isReadOnly()||ot.options.disableInput||ot.state.keySeq)return!1;var mt=ct.value;if(mt==At&&!ot.somethingSelected())return!1;if(Be&&vn>=9&&this.hasSelection===mt||ht&&/[\uf700-\uf7ff]/.test(mt))return ot.display.input.reset(),!1;if(ot.doc.sel==ot.display.selForContextMenu){var Dt=mt.charCodeAt(0);if(Dt==8203&&!At&&(At="\u200B"),Dt==8666)return this.reset(),this.cm.execCommand("undo")}for(var qt=0,he=Math.min(At.length,mt.length);qt<he&&At.charCodeAt(qt)==mt.charCodeAt(qt);)++qt;return Gi(ot,function(){Ou(ot,mt.slice(qt),At.length-qt,null,it.composing?"*compose":null),mt.length>1e3||mt.indexOf(`
`)>-1?ct.value=it.prevInput="":it.prevInput=mt,it.composing&&(it.composing.range.clear(),it.composing.range=ot.markText(it.composing.start,ot.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},za.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},za.prototype.onKeyPress=function(){Be&&vn>=9&&(this.hasSelection=null),this.fastPoll()},za.prototype.onContextMenu=function(it){var ot=this,ct=ot.cm,At=ct.display,mt=ot.textarea;ot.contextMenuPending&&ot.contextMenuPending();var Dt=fu(ct,it),qt=At.scroller.scrollTop;if(!Dt||Nt)return;var he=ct.options.resetSelectionOnContextMenu;he&&ct.doc.sel.contains(Dt)==-1&&rr(ct,fl)(ct.doc,Bs(Dt),An);var ue=mt.style.cssText,Me=ot.wrapper.style.cssText,xn=ot.wrapper.offsetParent.getBoundingClientRect();ot.wrapper.style.cssText="position: static",mt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(it.clientY-xn.top-5)+"px; left: "+(it.clientX-xn.left-5)+`px;
z-index: 1000; background: `+(Be?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var _e;Ie&&(_e=window.scrollY),At.input.focus(),Ie&&window.scrollTo(null,_e),At.input.reset(),ct.somethingSelected()||(mt.value=ot.prevInput=" "),ot.contextMenuPending=ti,At.selForContextMenu=ct.doc.sel,clearTimeout(At.detectingSelectAll);function ri(){if(mt.selectionStart!=null){var lr=ct.somethingSelected(),Cr="\u200B"+(lr?mt.value:"");mt.value="\u21DA",mt.value=Cr,ot.prevInput=lr?"":"\u200B",mt.selectionStart=1,mt.selectionEnd=Cr.length,At.selForContextMenu=ct.doc.sel}}function ti(){if(ot.contextMenuPending==ti&&(ot.contextMenuPending=!1,ot.wrapper.style.cssText=Me,mt.style.cssText=ue,Be&&vn<9&&At.scrollbars.setScrollTop(At.scroller.scrollTop=qt),mt.selectionStart!=null)){(!Be||Be&&vn<9)&&ri();var lr=0,Cr=function(){At.selForContextMenu==ct.doc.sel&&mt.selectionStart==0&&mt.selectionEnd>0&&ot.prevInput=="\u200B"?rr(ct,El)(ct):lr++<10?At.detectingSelectAll=setTimeout(Cr,500):(At.selForContextMenu=null,At.input.reset())};At.detectingSelectAll=setTimeout(Cr,200)}}if(Be&&vn>=9&&ri(),Rt){Kr(it);var qi=function(){Zn(window,"mouseup",qi),setTimeout(ti,20)};be(window,"mouseup",qi)}else setTimeout(ti,50)},za.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},za.prototype.setUneditable=function(){},za.prototype.needsContentAttribute=!1;function wc(it,ot){if(ot=ot?mn(ot):{},ot.value=it.value,!ot.tabindex&&it.tabIndex&&(ot.tabindex=it.tabIndex),!ot.placeholder&&it.placeholder&&(ot.placeholder=it.placeholder),ot.autofocus==null){var ct=Ue();ot.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function At(){it.value=he.getValue()}var mt;if(it.form&&(be(it.form,"submit",At),!ot.leaveSubmitMethodAlone)){var Dt=it.form;mt=Dt.submit;try{var qt=Dt.submit=function(){At(),Dt.submit=mt,Dt.submit(),Dt.submit=qt}}catch(ue){}}ot.finishInit=function(ue){ue.save=At,ue.getTextArea=function(){return it},ue.toTextArea=function(){ue.toTextArea=isNaN,At(),it.parentNode.removeChild(ue.getWrapperElement()),it.style.display="",it.form&&(Zn(it.form,"submit",At),!ot.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=mt))}},it.style.display="none";var he=ss(function(ue){return it.parentNode.insertBefore(ue,it.nextSibling)},ot);return he}function Ol(it){it.off=Zn,it.on=be,it.wheelEventPixels=ms,it.Doc=_l,it.splitLines=Fo,it.countColumn=pe,it.findColumn=Ci,it.isWordChar=gn,it.Pass=si,it.signal=ii,it.Line=so,it.changeEnd=ta,it.scrollbarModel=li,it.Pos=Sn,it.cmpPos=$n,it.modes=Ws,it.mimeModes=Fa,it.resolveMode=Lr,it.getMode=ln,it.modeExtensions=nn,it.extendMode=Ae,it.copyState=Tn,it.startState=He,it.innerMode=Jn,it.commands=Vh,it.keyMap=Cu,it.keyName=ef,it.isModifierKey=Uc,it.lookupKey=Pu,it.normalizeKeyMap=jc,it.StringStream=we,it.SharedTextMarker=Mh,it.TextMarker=on,it.LineWidget=Wh,it.e_preventDefault=po,it.e_stopPropagation=To,it.e_stop=Kr,it.addClass=Pn,it.contains=hn,it.rmClass=$t,it.keyNames=bs}ea(ss),Xh(ss);var wh="iter insert remove copy getEditor constructor".split(" ");for(var Sc in _l.prototype)_l.prototype.hasOwnProperty(Sc)&&Ve(wh,Sc)<0&&(ss.prototype[Sc]=function(it){return function(){return it.apply(this.doc,arguments)}}(_l.prototype[Sc]));return Tr(_l),ss.inputStyles={textarea:za,contenteditable:Us},ss.defineMode=function(it){!ss.defaults.mode&&it!="null"&&(ss.defaults.mode=it),Sa.apply(this,arguments)},ss.defineMIME=Pr,ss.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),ss.defineMIME("text/plain","null"),ss.defineExtension=function(it,ot){ss.prototype[it]=ot},ss.defineDocExtension=function(it,ot){_l.prototype[it]=ot},ss.fromTextArea=wc,Ol(ss),ss.version="5.58.2",ss})},25419:function(Fi,Ti,Kt){(function(zt){zt(Kt(89780),Kt(15525),Kt(98101))})(function(zt){"use strict";zt.defineMode("markdown",function(ke,Oe){var Cn=zt.getMode(ke,"text/html"),Be=Cn.name=="null";function vn(pe){if(zt.findModeByName){var Xt=zt.findModeByName(pe);Xt&&(pe=Xt.mime||Xt.mimes[0])}var Ve=zt.getMode(ke,pe);return Ve.name=="null"?null:Ve}Oe.highlightFormatting===void 0&&(Oe.highlightFormatting=!1),Oe.maxBlockquoteDepth===void 0&&(Oe.maxBlockquoteDepth=0),Oe.taskLists===void 0&&(Oe.taskLists=!1),Oe.strikethrough===void 0&&(Oe.strikethrough=!1),Oe.emoji===void 0&&(Oe.emoji=!1),Oe.fencedCodeBlockHighlighting===void 0&&(Oe.fencedCodeBlockHighlighting=!0),Oe.fencedCodeBlockDefaultMode===void 0&&(Oe.fencedCodeBlockDefaultMode="text/plain"),Oe.xml===void 0&&(Oe.xml=!0),Oe.tokenTypeOverrides===void 0&&(Oe.tokenTypeOverrides={});var Ie={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var ge in Ie)Ie.hasOwnProperty(ge)&&Oe.tokenTypeOverrides[ge]&&(Ie[ge]=Oe.tokenTypeOverrides[ge]);var ye=/^([*\-_])(?:\s*\1){2,}\s*$/,Nt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,se=/^\[(x| )\](?=\s)/i,oe=Oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,me=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ut=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ht=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,at=" ";function ft(pe,Xt,Ve){return Xt.f=Xt.inline=Ve,Ve(pe,Xt)}function vt(pe,Xt,Ve){return Xt.f=Xt.block=Ve,Ve(pe,Xt)}function Mt(pe){return!pe||!/\S/.test(pe.string)}function Rt(pe){if(pe.linkTitle=!1,pe.linkHref=!1,pe.linkText=!1,pe.em=!1,pe.strong=!1,pe.strikethrough=!1,pe.quote=0,pe.indentedCode=!1,pe.f==$t){var Xt=Be;if(!Xt){var Ve=zt.innerMode(Cn,pe.htmlState);Xt=Ve.mode.name=="xml"&&Ve.state.tagStart===null&&!Ve.state.context&&Ve.state.tokenize.isInText}Xt&&(pe.f=Ye,pe.block=Gt,pe.htmlState=null)}return pe.trailingSpace=0,pe.trailingSpaceNewLine=!1,pe.prevLine=pe.thisLine,pe.thisLine={stream:null},null}function Gt(pe,Xt){var Ve=pe.column()===Xt.indentation,Vn=Mt(Xt.prevLine.stream),si=Xt.indentedCode,An=Xt.prevLine.hr,Nn=Xt.list!==!1,Yn=(Xt.listStack[Xt.listStack.length-1]||0)+3;Xt.indentedCode=!1;var Ci=Xt.indentation;if(Xt.indentationDiff===null&&(Xt.indentationDiff=Xt.indentation,Nn)){for(Xt.list=null;Ci<Xt.listStack[Xt.listStack.length-1];)Xt.listStack.pop(),Xt.listStack.length?Xt.indentation=Xt.listStack[Xt.listStack.length-1]:Xt.list=!1;Xt.list!==!1&&(Xt.indentationDiff=Ci-Xt.listStack[Xt.listStack.length-1])}var Mi=!Vn&&!An&&!Xt.prevLine.header&&(!Nn||!si)&&!Xt.prevLine.fencedCodeEnd,Ri=(Xt.list===!1||An||Vn)&&Xt.indentation<=Yn&&pe.match(ye),Te=null;if(Xt.indentationDiff>=4&&(si||Xt.prevLine.fencedCodeEnd||Xt.prevLine.header||Vn))return pe.skipToEnd(),Xt.indentedCode=!0,Ie.code;if(pe.eatSpace())return null;if(Ve&&Xt.indentation<=Yn&&(Te=pe.match(oe))&&Te[1].length<=6)return Xt.quote=0,Xt.header=Te[1].length,Xt.thisLine.header=!0,Oe.highlightFormatting&&(Xt.formatting="header"),Xt.f=Xt.inline,ve(Xt);if(Xt.indentation<=Yn&&pe.eat(">"))return Xt.quote=Ve?1:Xt.quote+1,Oe.highlightFormatting&&(Xt.formatting="quote"),pe.eatSpace(),ve(Xt);if(!Ri&&!Xt.setext&&Ve&&Xt.indentation<=Yn&&(Te=pe.match(Nt))){var ci=Te[1]?"ol":"ul";return Xt.indentation=Ci+pe.current().length,Xt.list=!0,Xt.quote=0,Xt.listStack.push(Xt.indentation),Xt.em=!1,Xt.strong=!1,Xt.code=!1,Xt.strikethrough=!1,Oe.taskLists&&pe.match(se,!1)&&(Xt.taskList=!0),Xt.f=Xt.inline,Oe.highlightFormatting&&(Xt.formatting=["list","list-"+ci]),ve(Xt)}else{if(Ve&&Xt.indentation<=Yn&&(Te=pe.match(et,!0)))return Xt.quote=0,Xt.fencedEndRE=new RegExp(Te[1]+"+ *$"),Xt.localMode=Oe.fencedCodeBlockHighlighting&&vn(Te[2]||Oe.fencedCodeBlockDefaultMode),Xt.localMode&&(Xt.localState=zt.startState(Xt.localMode)),Xt.f=Xt.block=ae,Oe.highlightFormatting&&(Xt.formatting="code-block"),Xt.code=-1,ve(Xt);if(Xt.setext||(!Mi||!Nn)&&!Xt.quote&&Xt.list===!1&&!Xt.code&&!Ri&&!nt.test(pe.string)&&(Te=pe.lookAhead(1))&&(Te=Te.match(me)))return Xt.setext?(Xt.header=Xt.setext,Xt.setext=0,pe.skipToEnd(),Oe.highlightFormatting&&(Xt.formatting="header")):(Xt.header=Te[0].charAt(0)=="="?1:2,Xt.setext=Xt.header),Xt.thisLine.header=!0,Xt.f=Xt.inline,ve(Xt);if(Ri)return pe.skipToEnd(),Xt.hr=!0,Xt.thisLine.hr=!0,Ie.hr;if(pe.peek()==="[")return ft(pe,Xt,qn)}return ft(pe,Xt,Xt.inline)}function $t(pe,Xt){var Ve=Cn.token(pe,Xt.htmlState);if(!Be){var Vn=zt.innerMode(Cn,Xt.htmlState);(Vn.mode.name=="xml"&&Vn.state.tagStart===null&&!Vn.state.context&&Vn.state.tokenize.isInText||Xt.md_inside&&pe.current().indexOf(">")>-1)&&(Xt.f=Ye,Xt.block=Gt,Xt.htmlState=null)}return Ve}function ae(pe,Xt){var Ve=Xt.listStack[Xt.listStack.length-1]||0,Vn=Xt.indentation<Ve,si=Ve+3;if(Xt.fencedEndRE&&Xt.indentation<=si&&(Vn||pe.match(Xt.fencedEndRE))){Oe.highlightFormatting&&(Xt.formatting="code-block");var An;return Vn||(An=ve(Xt)),Xt.localMode=Xt.localState=null,Xt.block=Gt,Xt.f=Ye,Xt.fencedEndRE=null,Xt.code=0,Xt.thisLine.fencedCodeEnd=!0,Vn?vt(pe,Xt,Xt.block):An}else return Xt.localMode?Xt.localMode.token(pe,Xt.localState):(pe.skipToEnd(),Ie.code)}function ve(pe){var Xt=[];if(pe.formatting){Xt.push(Ie.formatting),typeof pe.formatting=="string"&&(pe.formatting=[pe.formatting]);for(var Ve=0;Ve<pe.formatting.length;Ve++)Xt.push(Ie.formatting+"-"+pe.formatting[Ve]),pe.formatting[Ve]==="header"&&Xt.push(Ie.formatting+"-"+pe.formatting[Ve]+"-"+pe.header),pe.formatting[Ve]==="quote"&&(!Oe.maxBlockquoteDepth||Oe.maxBlockquoteDepth>=pe.quote?Xt.push(Ie.formatting+"-"+pe.formatting[Ve]+"-"+pe.quote):Xt.push("error"))}if(pe.taskOpen)return Xt.push("meta"),Xt.length?Xt.join(" "):null;if(pe.taskClosed)return Xt.push("property"),Xt.length?Xt.join(" "):null;if(pe.linkHref?Xt.push(Ie.linkHref,"url"):(pe.strong&&Xt.push(Ie.strong),pe.em&&Xt.push(Ie.em),pe.strikethrough&&Xt.push(Ie.strikethrough),pe.emoji&&Xt.push(Ie.emoji),pe.linkText&&Xt.push(Ie.linkText),pe.code&&Xt.push(Ie.code),pe.image&&Xt.push(Ie.image),pe.imageAltText&&Xt.push(Ie.imageAltText,"link"),pe.imageMarker&&Xt.push(Ie.imageMarker)),pe.header&&Xt.push(Ie.header,Ie.header+"-"+pe.header),pe.quote&&(Xt.push(Ie.quote),!Oe.maxBlockquoteDepth||Oe.maxBlockquoteDepth>=pe.quote?Xt.push(Ie.quote+"-"+pe.quote):Xt.push(Ie.quote+"-"+Oe.maxBlockquoteDepth)),pe.list!==!1){var Vn=(pe.listStack.length-1)%3;Vn?Vn===1?Xt.push(Ie.list2):Xt.push(Ie.list3):Xt.push(Ie.list1)}return pe.trailingSpaceNewLine?Xt.push("trailing-space-new-line"):pe.trailingSpace&&Xt.push("trailing-space-"+(pe.trailingSpace%2?"a":"b")),Xt.length?Xt.join(" "):null}function fe(pe,Xt){if(pe.match(Ut,!0))return ve(Xt)}function Ye(pe,Xt){var Ve=Xt.text(pe,Xt);if(typeof Ve!="undefined")return Ve;if(Xt.list)return Xt.list=null,ve(Xt);if(Xt.taskList){var Vn=pe.match(se,!0)[1]===" ";return Vn?Xt.taskOpen=!0:Xt.taskClosed=!0,Oe.highlightFormatting&&(Xt.formatting="task"),Xt.taskList=!1,ve(Xt)}if(Xt.taskOpen=!1,Xt.taskClosed=!1,Xt.header&&pe.match(/^#+$/,!0))return Oe.highlightFormatting&&(Xt.formatting="header"),ve(Xt);var si=pe.next();if(Xt.linkTitle){Xt.linkTitle=!1;var An=si;si==="("&&(An=")"),An=(An+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Nn="^\\s*(?:[^"+An+"\\\\]+|\\\\\\\\|\\\\.)"+An;if(pe.match(new RegExp(Nn),!0))return Ie.linkHref}if(si==="`"){var Yn=Xt.formatting;Oe.highlightFormatting&&(Xt.formatting="code"),pe.eatWhile("`");var Ci=pe.current().length;if(Xt.code==0&&(!Xt.quote||Ci==1))return Xt.code=Ci,ve(Xt);if(Ci==Xt.code){var Mi=ve(Xt);return Xt.code=0,Mi}else return Xt.formatting=Yn,ve(Xt)}else if(Xt.code)return ve(Xt);if(si==="\\"&&(pe.next(),Oe.highlightFormatting)){var Ri=ve(Xt),Te=Ie.formatting+"-escape";return Ri?Ri+" "+Te:Te}if(si==="!"&&pe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Xt.imageMarker=!0,Xt.image=!0,Oe.highlightFormatting&&(Xt.formatting="image"),ve(Xt);if(si==="["&&Xt.imageMarker&&pe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Xt.imageMarker=!1,Xt.imageAltText=!0,Oe.highlightFormatting&&(Xt.formatting="image"),ve(Xt);if(si==="]"&&Xt.imageAltText){Oe.highlightFormatting&&(Xt.formatting="image");var Ri=ve(Xt);return Xt.imageAltText=!1,Xt.image=!1,Xt.inline=Xt.f=hn,Ri}if(si==="["&&!Xt.image)return Xt.linkText&&pe.match(/^.*?\]/)||(Xt.linkText=!0,Oe.highlightFormatting&&(Xt.formatting="link")),ve(Xt);if(si==="]"&&Xt.linkText){Oe.highlightFormatting&&(Xt.formatting="link");var Ri=ve(Xt);return Xt.linkText=!1,Xt.inline=Xt.f=pe.match(/\(.*?\)| ?\[.*?\]/,!1)?hn:Ye,Ri}if(si==="<"&&pe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Xt.f=Xt.inline=De,Oe.highlightFormatting&&(Xt.formatting="link");var Ri=ve(Xt);return Ri?Ri+=" ":Ri="",Ri+Ie.linkInline}if(si==="<"&&pe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Xt.f=Xt.inline=De,Oe.highlightFormatting&&(Xt.formatting="link");var Ri=ve(Xt);return Ri?Ri+=" ":Ri="",Ri+Ie.linkEmail}if(Oe.xml&&si==="<"&&pe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ci=pe.string.indexOf(">",pe.pos);if(ci!=-1){var ki=pe.string.substring(pe.start,ci);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ki)&&(Xt.md_inside=!0)}return pe.backUp(1),Xt.htmlState=zt.startState(Cn),vt(pe,Xt,$t)}if(Oe.xml&&si==="<"&&pe.match(/^\/\w*?>/))return Xt.md_inside=!1,"tag";if(si==="*"||si==="_"){for(var Dn=1,yi=pe.pos==1?" ":pe.string.charAt(pe.pos-2);Dn<3&&pe.eat(si);)Dn++;var En=pe.peek()||" ",gn=!/\s/.test(En)&&(!ht.test(En)||/\s/.test(yi)||ht.test(yi)),Ne=!/\s/.test(yi)&&(!ht.test(yi)||/\s/.test(En)||ht.test(En)),Xe=null,wn=null;if(Dn%2&&(!Xt.em&&gn&&(si==="*"||!Ne||ht.test(yi))?Xe=!0:Xt.em==si&&Ne&&(si==="*"||!gn||ht.test(En))&&(Xe=!1)),Dn>1&&(!Xt.strong&&gn&&(si==="*"||!Ne||ht.test(yi))?wn=!0:Xt.strong==si&&Ne&&(si==="*"||!gn||ht.test(En))&&(wn=!1)),wn!=null||Xe!=null){Oe.highlightFormatting&&(Xt.formatting=Xe==null?"strong":wn==null?"em":"strong em"),Xe===!0&&(Xt.em=si),wn===!0&&(Xt.strong=si);var Mi=ve(Xt);return Xe===!1&&(Xt.em=!1),wn===!1&&(Xt.strong=!1),Mi}}else if(si===" "&&(pe.eat("*")||pe.eat("_"))){if(pe.peek()===" ")return ve(Xt);pe.backUp(1)}if(Oe.strikethrough){if(si==="~"&&pe.eatWhile(si)){if(Xt.strikethrough){Oe.highlightFormatting&&(Xt.formatting="strikethrough");var Mi=ve(Xt);return Xt.strikethrough=!1,Mi}else if(pe.match(/^[^\s]/,!1))return Xt.strikethrough=!0,Oe.highlightFormatting&&(Xt.formatting="strikethrough"),ve(Xt)}else if(si===" "&&pe.match(/^~~/,!0)){if(pe.peek()===" ")return ve(Xt);pe.backUp(2)}}if(Oe.emoji&&si===":"&&pe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Xt.emoji=!0,Oe.highlightFormatting&&(Xt.formatting="emoji");var sn=ve(Xt);return Xt.emoji=!1,sn}return si===" "&&(pe.match(/^ +$/,!1)?Xt.trailingSpace++:Xt.trailingSpace&&(Xt.trailingSpaceNewLine=!0)),ve(Xt)}function De(pe,Xt){var Ve=pe.next();if(Ve===">"){Xt.f=Xt.inline=Ye,Oe.highlightFormatting&&(Xt.formatting="link");var Vn=ve(Xt);return Vn?Vn+=" ":Vn="",Vn+Ie.linkInline}return pe.match(/^[^>]+/,!0),Ie.linkInline}function hn(pe,Xt){if(pe.eatSpace())return null;var Ve=pe.next();return Ve==="("||Ve==="["?(Xt.f=Xt.inline=Pn(Ve==="("?")":"]"),Oe.highlightFormatting&&(Xt.formatting="link-string"),Xt.linkHref=!0,ve(Xt)):"error"}var Ue={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Pn(pe){return function(Xt,Ve){var Vn=Xt.next();if(Vn===pe){Ve.f=Ve.inline=Ye,Oe.highlightFormatting&&(Ve.formatting="link-string");var si=ve(Ve);return Ve.linkHref=!1,si}return Xt.match(Ue[pe]),Ve.linkHref=!0,ve(Ve)}}function qn(pe,Xt){return pe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Xt.f=un,pe.next(),Oe.highlightFormatting&&(Xt.formatting="link"),Xt.linkText=!0,ve(Xt)):ft(pe,Xt,Ye)}function un(pe,Xt){if(pe.match(/^\]:/,!0)){Xt.f=Xt.inline=fn,Oe.highlightFormatting&&(Xt.formatting="link");var Ve=ve(Xt);return Xt.linkText=!1,Ve}return pe.match(/^([^\]\\]|\\.)+/,!0),Ie.linkText}function fn(pe,Xt){return pe.eatSpace()?null:(pe.match(/^[^\s]+/,!0),pe.peek()===void 0?Xt.linkTitle=!0:pe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Xt.f=Xt.inline=Ye,Ie.linkHref+" url")}var mn={startState:function(){return{f:Gt,prevLine:{stream:null},thisLine:{stream:null},block:Gt,htmlState:null,indentation:0,inline:Ye,text:fe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(pe){return{f:pe.f,prevLine:pe.prevLine,thisLine:pe.thisLine,block:pe.block,htmlState:pe.htmlState&&zt.copyState(Cn,pe.htmlState),indentation:pe.indentation,localMode:pe.localMode,localState:pe.localMode?zt.copyState(pe.localMode,pe.localState):null,inline:pe.inline,text:pe.text,formatting:!1,linkText:pe.linkText,linkTitle:pe.linkTitle,linkHref:pe.linkHref,code:pe.code,em:pe.em,strong:pe.strong,strikethrough:pe.strikethrough,emoji:pe.emoji,header:pe.header,setext:pe.setext,hr:pe.hr,taskList:pe.taskList,list:pe.list,listStack:pe.listStack.slice(0),quote:pe.quote,indentedCode:pe.indentedCode,trailingSpace:pe.trailingSpace,trailingSpaceNewLine:pe.trailingSpaceNewLine,md_inside:pe.md_inside,fencedEndRE:pe.fencedEndRE}},token:function(pe,Xt){if(Xt.formatting=!1,pe!=Xt.thisLine.stream){if(Xt.header=0,Xt.hr=!1,pe.match(/^\s*$/,!0))return Rt(Xt),null;if(Xt.prevLine=Xt.thisLine,Xt.thisLine={stream:pe},Xt.taskList=!1,Xt.trailingSpace=0,Xt.trailingSpaceNewLine=!1,!Xt.localState&&(Xt.f=Xt.block,Xt.f!=$t)){var Ve=pe.match(/^\s*/,!0)[0].replace(/\t/g,at).length;if(Xt.indentation=Ve,Xt.indentationDiff=null,Ve>0)return null}}return Xt.f(pe,Xt)},innerMode:function(pe){return pe.block==$t?{state:pe.htmlState,mode:Cn}:pe.localState?{state:pe.localState,mode:pe.localMode}:{state:pe,mode:mn}},indent:function(pe,Xt,Ve){return pe.block==$t&&Cn.indent?Cn.indent(pe.htmlState,Xt,Ve):pe.localState&&pe.localMode.indent?pe.localMode.indent(pe.localState,Xt,Ve):zt.Pass},blankLine:Rt,getType:ve,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return mn},"xml"),zt.defineMIME("text/markdown","markdown"),zt.defineMIME("text/x-markdown","markdown")})},98101:function(Fi,Ti,Kt){(function(zt){zt(Kt(89780))})(function(zt){"use strict";zt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ke=0;ke<zt.modeInfo.length;ke++){var Oe=zt.modeInfo[ke];Oe.mimes&&(Oe.mime=Oe.mimes[0])}zt.findModeByMIME=function(Cn){Cn=Cn.toLowerCase();for(var Be=0;Be<zt.modeInfo.length;Be++){var vn=zt.modeInfo[Be];if(vn.mime==Cn)return vn;if(vn.mimes){for(var Ie=0;Ie<vn.mimes.length;Ie++)if(vn.mimes[Ie]==Cn)return vn}}if(/\+xml$/.test(Cn))return zt.findModeByMIME("application/xml");if(/\+json$/.test(Cn))return zt.findModeByMIME("application/json")},zt.findModeByExtension=function(Cn){Cn=Cn.toLowerCase();for(var Be=0;Be<zt.modeInfo.length;Be++){var vn=zt.modeInfo[Be];if(vn.ext){for(var Ie=0;Ie<vn.ext.length;Ie++)if(vn.ext[Ie]==Cn)return vn}}},zt.findModeByFileName=function(Cn){for(var Be=0;Be<zt.modeInfo.length;Be++){var vn=zt.modeInfo[Be];if(vn.file&&vn.file.test(Cn))return vn}var Ie=Cn.lastIndexOf("."),ge=Ie>-1&&Cn.substring(Ie+1,Cn.length);if(ge)return zt.findModeByExtension(ge)},zt.findModeByName=function(Cn){Cn=Cn.toLowerCase();for(var Be=0;Be<zt.modeInfo.length;Be++){var vn=zt.modeInfo[Be];if(vn.name.toLowerCase()==Cn)return vn;if(vn.alias){for(var Ie=0;Ie<vn.alias.length;Ie++)if(vn.alias[Ie].toLowerCase()==Cn)return vn}}}})},67549:function(Fi,Ti,Kt){(function(zt){zt(Kt(89780))})(function(zt){"use strict";zt.defineMode("stex",function(ke,Oe){"use strict";function Cn(Ut,et){Ut.cmdState.push(et)}function Be(Ut){return Ut.cmdState.length>0?Ut.cmdState[Ut.cmdState.length-1]:null}function vn(Ut){var et=Ut.cmdState.pop();et&&et.closeBracket()}function Ie(Ut){for(var et=Ut.cmdState,nt=et.length-1;nt>=0;nt--){var ht=et[nt];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function ge(Ut,et,nt){return function(){this.name=Ut,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ye={};ye.importmodule=ge("importmodule","tag",["string","builtin"]),ye.documentclass=ge("documentclass","tag",["","atom"]),ye.usepackage=ge("usepackage","tag",["atom"]),ye.begin=ge("begin","tag",["atom"]),ye.end=ge("end","tag",["atom"]),ye.label=ge("label","tag",["atom"]),ye.ref=ge("ref","tag",["atom"]),ye.eqref=ge("eqref","tag",["atom"]),ye.cite=ge("cite","tag",["atom"]),ye.bibitem=ge("bibitem","tag",["atom"]),ye.Bibitem=ge("Bibitem","tag",["atom"]),ye.RBibitem=ge("RBibitem","tag",["atom"]),ye.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Nt(Ut,et){Ut.f=et}function se(Ut,et){var nt;if(Ut.match(/^\\[a-zA-Z@]+/)){var ht=Ut.current().slice(1);return nt=ye.hasOwnProperty(ht)?ye[ht]:ye.DEFAULT,nt=new nt,Cn(et,nt),Nt(et,me),nt.style}if(Ut.match(/^\\[$&%#{}_]/)||Ut.match(/^\\[,;!\/\\]/))return"tag";if(Ut.match("\\["))return Nt(et,function(ft,vt){return oe(ft,vt,"\\]")}),"keyword";if(Ut.match("\\("))return Nt(et,function(ft,vt){return oe(ft,vt,"\\)")}),"keyword";if(Ut.match("$$"))return Nt(et,function(ft,vt){return oe(ft,vt,"$$")}),"keyword";if(Ut.match("$"))return Nt(et,function(ft,vt){return oe(ft,vt,"$")}),"keyword";var at=Ut.next();if(at=="%")return Ut.skipToEnd(),"comment";if(at=="}"||at=="]"){if(nt=Be(et),nt)nt.closeBracket(at),Nt(et,me);else return"error";return"bracket"}else return at=="{"||at=="["?(nt=ye.DEFAULT,nt=new nt,Cn(et,nt),"bracket"):/\d/.test(at)?(Ut.eatWhile(/[\w.%]/),"atom"):(Ut.eatWhile(/[\w\-_]/),nt=Ie(et),nt.name=="begin"&&(nt.argument=Ut.current()),nt.styleIdentifier())}function oe(Ut,et,nt){if(Ut.eatSpace())return null;if(nt&&Ut.match(nt))return Nt(et,se),"keyword";if(Ut.match(/^\\[a-zA-Z@]+/))return"tag";if(Ut.match(/^[a-zA-Z]+/))return"variable-2";if(Ut.match(/^\\[$&%#{}_]/)||Ut.match(/^\\[,;!\/]/)||Ut.match(/^[\^_&]/))return"tag";if(Ut.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ut.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Ut.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Ut.skipToEnd(),"comment"):"error"}function me(Ut,et){var nt=Ut.peek(),ht;return nt=="{"||nt=="["?(ht=Be(et),ht.openBracket(nt),Ut.eat(nt),Nt(et,se),"bracket"):/[ \t\r]/.test(nt)?(Ut.eat(nt),null):(Nt(et,se),vn(et),se(Ut,et))}return{startState:function(){var Ut=Oe.inMathMode?function(et,nt){return oe(et,nt)}:se;return{cmdState:[],f:Ut}},copyState:function(Ut){return{cmdState:Ut.cmdState.slice(),f:Ut.f}},token:function(Ut,et){return et.f(Ut,et)},blankLine:function(Ut){Ut.f=se,Ut.cmdState.length=0},lineComment:"%"}}),zt.defineMIME("text/x-stex","stex"),zt.defineMIME("text/x-latex","stex")})},15525:function(Fi,Ti,Kt){(function(zt){zt(Kt(89780))})(function(zt){"use strict";var ke={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};zt.defineMode("xml",function(Cn,Be){var vn=Cn.indentUnit,Ie={},ge=Be.htmlMode?ke:Oe;for(var ye in ge)Ie[ye]=ge[ye];for(var ye in Be)Ie[ye]=Be[ye];var Nt,se;function oe(De,hn){function Ue(un){return hn.tokenize=un,un(De,hn)}var Pn=De.next();if(Pn=="<")return De.eat("!")?De.eat("[")?De.match("CDATA[")?Ue(et("atom","]]>")):null:De.match("--")?Ue(et("comment","-->")):De.match("DOCTYPE",!0,!0)?(De.eatWhile(/[\w\._\-]/),Ue(nt(1))):null:De.eat("?")?(De.eatWhile(/[\w\._\-]/),hn.tokenize=et("meta","?>"),"meta"):(Nt=De.eat("/")?"closeTag":"openTag",hn.tokenize=me,"tag bracket");if(Pn=="&"){var qn;return De.eat("#")?De.eat("x")?qn=De.eatWhile(/[a-fA-F\d]/)&&De.eat(";"):qn=De.eatWhile(/[\d]/)&&De.eat(";"):qn=De.eatWhile(/[\w\.\-:]/)&&De.eat(";"),qn?"atom":"error"}else return De.eatWhile(/[^&<]/),null}oe.isInText=!0;function me(De,hn){var Ue=De.next();if(Ue==">"||Ue=="/"&&De.eat(">"))return hn.tokenize=oe,Nt=Ue==">"?"endTag":"selfcloseTag","tag bracket";if(Ue=="=")return Nt="equals",null;if(Ue=="<"){hn.tokenize=oe,hn.state=vt,hn.tagName=hn.tagStart=null;var Pn=hn.tokenize(De,hn);return Pn?Pn+" tag error":"tag error"}else return/[\'\"]/.test(Ue)?(hn.tokenize=Ut(Ue),hn.stringStartCol=De.column(),hn.tokenize(De,hn)):(De.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ut(De){var hn=function(Ue,Pn){for(;!Ue.eol();)if(Ue.next()==De){Pn.tokenize=me;break}return"string"};return hn.isInAttribute=!0,hn}function et(De,hn){return function(Ue,Pn){for(;!Ue.eol();){if(Ue.match(hn)){Pn.tokenize=oe;break}Ue.next()}return De}}function nt(De){return function(hn,Ue){for(var Pn;(Pn=hn.next())!=null;){if(Pn=="<")return Ue.tokenize=nt(De+1),Ue.tokenize(hn,Ue);if(Pn==">")if(De==1){Ue.tokenize=oe;break}else return Ue.tokenize=nt(De-1),Ue.tokenize(hn,Ue)}return"meta"}}function ht(De,hn,Ue){this.prev=De.context,this.tagName=hn,this.indent=De.indented,this.startOfLine=Ue,(Ie.doNotIndent.hasOwnProperty(hn)||De.context&&De.context.noIndent)&&(this.noIndent=!0)}function at(De){De.context&&(De.context=De.context.prev)}function ft(De,hn){for(var Ue;;){if(!De.context||(Ue=De.context.tagName,!Ie.contextGrabbers.hasOwnProperty(Ue)||!Ie.contextGrabbers[Ue].hasOwnProperty(hn)))return;at(De)}}function vt(De,hn,Ue){return De=="openTag"?(Ue.tagStart=hn.column(),Mt):De=="closeTag"?Rt:vt}function Mt(De,hn,Ue){return De=="word"?(Ue.tagName=hn.current(),se="tag",ae):Ie.allowMissingTagName&&De=="endTag"?(se="tag bracket",ae(De,hn,Ue)):(se="error",Mt)}function Rt(De,hn,Ue){if(De=="word"){var Pn=hn.current();return Ue.context&&Ue.context.tagName!=Pn&&Ie.implicitlyClosed.hasOwnProperty(Ue.context.tagName)&&at(Ue),Ue.context&&Ue.context.tagName==Pn||Ie.matchClosing===!1?(se="tag",Gt):(se="tag error",$t)}else return Ie.allowMissingTagName&&De=="endTag"?(se="tag bracket",Gt(De,hn,Ue)):(se="error",$t)}function Gt(De,hn,Ue){return De!="endTag"?(se="error",Gt):(at(Ue),vt)}function $t(De,hn,Ue){return se="error",Gt(De,hn,Ue)}function ae(De,hn,Ue){if(De=="word")return se="attribute",ve;if(De=="endTag"||De=="selfcloseTag"){var Pn=Ue.tagName,qn=Ue.tagStart;return Ue.tagName=Ue.tagStart=null,De=="selfcloseTag"||Ie.autoSelfClosers.hasOwnProperty(Pn)?ft(Ue,Pn):(ft(Ue,Pn),Ue.context=new ht(Ue,Pn,qn==Ue.indented)),vt}return se="error",ae}function ve(De,hn,Ue){return De=="equals"?fe:(Ie.allowMissing||(se="error"),ae(De,hn,Ue))}function fe(De,hn,Ue){return De=="string"?Ye:De=="word"&&Ie.allowUnquoted?(se="string",ae):(se="error",ae(De,hn,Ue))}function Ye(De,hn,Ue){return De=="string"?Ye:ae(De,hn,Ue)}return{startState:function(De){var hn={tokenize:oe,state:vt,indented:De||0,tagName:null,tagStart:null,context:null};return De!=null&&(hn.baseIndent=De),hn},token:function(De,hn){if(!hn.tagName&&De.sol()&&(hn.indented=De.indentation()),De.eatSpace())return null;Nt=null;var Ue=hn.tokenize(De,hn);return(Ue||Nt)&&Ue!="comment"&&(se=null,hn.state=hn.state(Nt||Ue,De,hn),se&&(Ue=se=="error"?Ue+" error":se)),Ue},indent:function(De,hn,Ue){var Pn=De.context;if(De.tokenize.isInAttribute)return De.tagStart==De.indented?De.stringStartCol+1:De.indented+vn;if(Pn&&Pn.noIndent)return zt.Pass;if(De.tokenize!=me&&De.tokenize!=oe)return Ue?Ue.match(/^(\s*)/)[0].length:0;if(De.tagName)return Ie.multilineTagIndentPastTag!==!1?De.tagStart+De.tagName.length+2:De.tagStart+vn*(Ie.multilineTagIndentFactor||1);if(Ie.alignCDATA&&/<!\[CDATA\[/.test(hn))return 0;var qn=hn&&/^<(\/)?([\w_:\.-]*)/.exec(hn);if(qn&&qn[1])for(;Pn;)if(Pn.tagName==qn[2]){Pn=Pn.prev;break}else if(Ie.implicitlyClosed.hasOwnProperty(Pn.tagName))Pn=Pn.prev;else break;else if(qn)for(;Pn;){var un=Ie.contextGrabbers[Pn.tagName];if(un&&un.hasOwnProperty(qn[2]))Pn=Pn.prev;else break}for(;Pn&&Pn.prev&&!Pn.startOfLine;)Pn=Pn.prev;return Pn?Pn.indent+vn:De.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ie.htmlMode?"html":"xml",helperType:Ie.htmlMode?"html":"xml",skipAttribute:function(De){De.state==fe&&(De.state=ae)},xmlCurrentTag:function(De){return De.tagName?{name:De.tagName,close:De.type=="closeTag"}:null},xmlCurrentContext:function(De){for(var hn=[],Ue=De.context;Ue;Ue=Ue.prev)Ue.tagName&&hn.push(Ue.tagName);return hn.reverse()}}}),zt.defineMIME("text/xml","xml"),zt.defineMIME("application/xml","xml"),zt.mimeModes.hasOwnProperty("text/html")||zt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{$u:function(){return ye},BD:function(){return Dn},E9:function(){return ge},FF:function(){return No},FJ:function(){return vt},Hn:function(){return ft},KX:function(){return Rt},NB:function(){return Jt},S0:function(){return Te},UL:function(){return Nt},Vk:function(){return at},Vm:function(){return bt},YI:function(){return ci},ZA:function(){return Oe},Zt:function(){return se},al:function(){return Xe},bn:function(){return Ne},bx:function(){return yi},g2:function(){return ki},h1:function(){return fe},hD:function(){return Tr},l4:function(){return vn},rU:function(){return It},s_:function(){return En},uz:function(){return Hn},z6:function(){return oe}}),Fi=Kt.hmd(Fi),function(){var jt;function la(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function fs(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:la(a)}}function vs(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Ws=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Fa;if(typeof Object.setPrototypeOf=="function")Fa=Object.setPrototypeOf;else{var Sa;t:{var Pr={a:!0},Lr={};try{Lr.__proto__=Pr,Sa=Lr.a;break t}catch(a){}Sa=!1}Fa=Sa?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var ln=Fa;function nn(a,y){if(a.prototype=Ws(y.prototype),a.prototype.constructor=a,ln)ln(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Ae=typeof Kt.g!="undefined"&&Kt.g!=null?Kt.g:self,Tn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},Jn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function He(a,y){if(y){var x=Ae;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&Jn(x,a,{writable:!0,value:y})}}He("Object.assign",function(a){return a||Tn}),He("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var we=typeof globalThis=="object"&&globalThis||typeof Kt.g=="object"&&Kt.g.global===Kt.g&&Kt.g||typeof self=="object"&&self.self===self&&self||{};we.requestAnimationFrame===void 0&&(we.setImmediate===void 0?we.requestAnimationFrame=function(a){we.setTimeout(a,0)}:we.requestAnimationFrame=we.setImmediate);function qe(){}function In(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&we.clearTimeout(x),x=ui(function(){x=-1,a.apply(b,E)},y)}}function ui(a,y){return we.setTimeout(a,y)}function Pi(a){return we.document.createElement(a)}function Fe(a){throw Error(a)}function Qn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Fe(a)}function Ei(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),Fe(x+" is not in the range "+y+": "+a)}function Ar(a){we.console&&we.console.log(a)}function Sn(a){return typeof a=="object"&&a!==null}function $n(a){return Array.isArray(a)||we.NodeList&&a instanceof we.NodeList||we.HTMLCollection&&a instanceof we.HTMLCollection}function xr(a){return Array.prototype.slice.call(a)}function dr(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Fe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Dr(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Fe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function tr(){var a=Po.pop();return a===void 0?[]:a}function vr(a){a.length=0,Po.push(a)}function ur(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(Sn(a)&&a.constructor)return ur(a.constructor);return typeof a}function kr(a){var y=a;return Sn(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Ao(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Oo(a,y,x){Object.defineProperty(kt.prototype,a,{get:y,set:x})}function Kn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Vo=we.navigator!==void 0&&0<we.navigator.userAgent.indexOf("Trident/7"),rs=we.navigator!==void 0&&we.navigator.platform!==void 0&&we.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Po=[];Object.freeze([]),qe.className="Util",qe.Dx="32ab5ff3b26f42dc0ed90f21472913b5",qe.adym="gojs.net",qe.vfo="28e645fdb266",qe.className="Util";function zn(a,y,x){Qo(this),this.j=a,this.xa=y,this.o=x}zn.prototype.toString=function(){return"EnumValue."+this.xa};function Hi(a,y){return y==null||y===""?null:a[y]}Ae.Object.defineProperties(zn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),zn.className="EnumValue";function pr(){this.ew=[]}pr.prototype.toString=function(){return this.ew.join("")},pr.prototype.add=function(a){a!==""&&this.ew.push(a)},pr.className="StringBuilder";function jr(){}jr.className="PropertyCollection";var Ir={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){we.console&&we.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(tt,rt){return function(){throw Error("Property "+tt.Zl[rt.Tj]+" of "+tt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function co(){}co.prototype.reset=function(){},co.prototype.next=function(){return!1},co.prototype.Ad=function(){return!1},co.prototype.first=function(){return null},co.prototype.any=function(){return!1},co.prototype.all=function(){return!0},co.prototype.each=function(){return this},co.prototype.map=function(){return this},co.prototype.filter=function(){return this},co.prototype.de=function(){},co.prototype.toString=function(){return"EmptyIterator"},Ae.Object.defineProperties(co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),co.prototype.first=co.prototype.first,co.prototype.hasNext=co.prototype.Ad,co.prototype.next=co.prototype.next,co.prototype.reset=co.prototype.reset;var Io=null;co.className="EmptyIterator",Io=new co;function oo(a){this.key=-1,this.value=a}oo.prototype.reset=function(){this.key=-1},oo.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},oo.prototype.Ad=function(){return this.next()},oo.prototype.first=function(){return this.key=0,this.value},oo.prototype.any=function(a){return this.key=-1,a(this.value)},oo.prototype.all=function(a){return this.key=-1,a(this.value)},oo.prototype.each=function(a){return this.key=-1,a(this.value),this},oo.prototype.map=function(a){return new oo(a(this.value))},oo.prototype.filter=function(a){return a(this.value)?new oo(this.value):Io},oo.prototype.de=function(){this.value=null},oo.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Ae.Object.defineProperties(oo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),oo.prototype.first=oo.prototype.first,oo.prototype.hasNext=oo.prototype.Ad,oo.prototype.next=oo.prototype.next,oo.prototype.reset=oo.prototype.reset,oo.className="SingletonIterator";function eo(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}eo.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},eo.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},eo.prototype.Ad=function(){return this.next()},eo.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},eo.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},eo.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},eo.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},eo.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&x.push(a(tt))}return a=new ai,a.s=x,a.xb(),a.iterator},eo.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&a(tt)&&x.push(tt)}return a=new ai,a.s=x,a.xb(),a.iterator},eo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},eo.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Ae.Object.defineProperties(eo.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),eo.prototype.first=eo.prototype.first,eo.prototype.hasNext=eo.prototype.Ad,eo.prototype.next=eo.prototype.next,eo.prototype.reset=eo.prototype.reset,eo.className="ListIterator";function Br(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Br.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Br.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Br.prototype.Ad=function(){return this.next()},Br.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Br.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Br.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Br.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Br.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new ai,a.s=x,a.xb(),a.iterator},Br.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new ai,a.s=x,a.xb(),a.iterator},Br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Br.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Ae.Object.defineProperties(Br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Br.prototype.first=Br.prototype.first,Br.prototype.hasNext=Br.prototype.Ad,Br.prototype.next=Br.prototype.next,Br.prototype.reset=Br.prototype.reset,Br.className="ListIteratorBackwards";function ai(a){Qo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Fe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}jt=ai.prototype,jt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return this._isFrozen=!1,this},jt.toString=function(){return"List()#"+Xo(this)},jt.add=function(a){return a===null?this:(this._isFrozen&&Qn(this,a),this.s.push(a),this.xb(),this)},jt.push=function(a){this.add(a)},jt.addAll=function(a){if(a===null)return this;this._isFrozen&&Qn(this);var y=this.s;if($n(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},jt.clear=function(){this._isFrozen&&Qn(this),this.s.length=0,this.xb()},jt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},jt.has=function(a){return this.contains(a)},jt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},jt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Ei(a,"0 <= i < length",ai,"elt:i"),y[a]},jt.get=function(a){return this.M(a)},jt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Ei(a,"0 <= i < length",ai,"setElt:i"),this._isFrozen&&Qn(this,a),x[a]=y},jt.set=function(a,y){this.cd(a,y)},jt.first=function(){var a=this.s;return a.length===0?null:a[0]},jt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},jt.pop=function(){this._isFrozen&&Qn(this);var a=this.s;return 0<a.length?a.pop():null},ai.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},ai.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},ai.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},ai.prototype.map=function(a){for(var y=new ai,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},ai.prototype.filter=function(a){for(var y=new ai,x=[],b=this.s,E=b.length,z=0;z<E;z++){var tt=b[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},jt=ai.prototype,jt.Gb=function(a,y){0>a&&Ei(a,">= 0",ai,"insertAt:i"),this._isFrozen&&Qn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},jt.remove=function(a){if(a===null)return!1;this._isFrozen&&Qn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},jt.delete=function(a){return this.remove(a)},jt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Ei(a,"0 <= i < length",ai,"removeAt:i"),this._isFrozen&&Qn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},jt.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&Qn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},ai.prototype.copy=function(){var a=new ai,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},jt=ai.prototype,jt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},jt.Iv=function(){for(var a=new ei,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},jt.sort=function(a){return this._isFrozen&&Qn(this),this.s.sort(a),this.xb(),this},jt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Qn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Ei(y,"0 <= from < length",ai,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},jt.reverse=function(){return this._isFrozen&&Qn(this),this.s.reverse(),this.xb(),this},Ae.Object.defineProperties(ai.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Io;var a=this.Sa;return a!==null?(a.reset(),a):new eo(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Io;var a=this.Hg;return a!==null?(a.reset(),a):new Br(this)}}}),ai.prototype.reverse=ai.prototype.reverse,ai.prototype.sortRange=ai.prototype.zi,ai.prototype.sort=ai.prototype.sort,ai.prototype.toSet=ai.prototype.Iv,ai.prototype.toArray=ai.prototype.Fa,ai.prototype.removeRange=ai.prototype.removeRange,ai.prototype.removeAt=ai.prototype.mb,ai.prototype.delete=ai.prototype.delete,ai.prototype.remove=ai.prototype.remove,ai.prototype.insertAt=ai.prototype.Gb,ai.prototype.pop=ai.prototype.pop,ai.prototype.last=ai.prototype.jc,ai.prototype.first=ai.prototype.first,ai.prototype.set=ai.prototype.set,ai.prototype.setElt=ai.prototype.cd,ai.prototype.get=ai.prototype.get,ai.prototype.elt=ai.prototype.M,ai.prototype.indexOf=ai.prototype.indexOf,ai.prototype.has=ai.prototype.has,ai.prototype.contains=ai.prototype.contains,ai.prototype.clear=ai.prototype.clear,ai.prototype.addAll=ai.prototype.addAll,ai.prototype.push=ai.prototype.push,ai.prototype.add=ai.prototype.add,ai.prototype.thaw=ai.prototype.ka,ai.prototype.freeze=ai.prototype.freeze,ai.className="List";function vo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}vo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},vo.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},vo.prototype.Ad=function(){return this.next()},vo.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},vo.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},vo.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},vo.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},vo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new ai;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},vo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new ai;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},vo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},vo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Ae.Object.defineProperties(vo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),vo.prototype.first=vo.prototype.first,vo.prototype.hasNext=vo.prototype.Ad,vo.prototype.next=vo.prototype.next,vo.prototype.reset=vo.prototype.reset,vo.className="SetIterator";function ei(a){Qo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Fe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}jt=ei.prototype,jt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return this._isFrozen=!1,this},jt.toString=function(){return"Set()#"+Xo(this)},jt.add=function(a){if(a===null)return this;this._isFrozen&&Qn(this,a);var y=a;return Sn(a)&&(y=Vs(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Go(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},jt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Qn(this),$n(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},jt.contains=function(a){if(a===null)return!1;var y=a;return Sn(a)&&(y=Xo(a),y===void 0)?!1:this.Tb[y]!==void 0},jt.has=function(a){return this.contains(a)},jt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},jt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},jt.first=function(){var a=this.ea;return a===null?null:a.value},ei.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ei.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ei.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},ei.prototype.map=function(a){for(var y=new ei,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},ei.prototype.filter=function(a){for(var y=new ei,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},jt=ei.prototype,jt.remove=function(a){if(a===null)return!1;this._isFrozen&&Qn(this,a);var y=a;if(Sn(a)&&(y=Xo(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},jt.delete=function(a){return this.remove(a)},jt.hp=function(a){if(a===null)return this;if(this._isFrozen&&Qn(this),$n(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},jt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Qn(this);var y=new ei;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},jt.clear=function(){this._isFrozen&&Qn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},ei.prototype.copy=function(){var a=new ei,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},ei.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},ei.prototype.Hv=function(){var a=new ai,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Qo(a){a.__gohashid=Js++}function Vs(a){var y=a.__gohashid;return y===void 0&&(y=Js++,a.__gohashid=y),y}function Xo(a){return a.__gohashid}Ae.Object.defineProperties(ei.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Io;var a=this.Sa;return a!==null?(a.reset(),a):new vo(this)}}}),ei.prototype.toList=ei.prototype.Hv,ei.prototype.toArray=ei.prototype.Fa,ei.prototype.clear=ei.prototype.clear,ei.prototype.retainAll=ei.prototype.pA,ei.prototype.removeAll=ei.prototype.hp,ei.prototype.delete=ei.prototype.delete,ei.prototype.remove=ei.prototype.remove,ei.prototype.first=ei.prototype.first,ei.prototype.containsAny=ei.prototype.Ty,ei.prototype.containsAll=ei.prototype.Sy,ei.prototype.has=ei.prototype.has,ei.prototype.contains=ei.prototype.contains,ei.prototype.addAll=ei.prototype.addAll,ei.prototype.add=ei.prototype.add,ei.prototype.thaw=ei.prototype.ka,ei.prototype.freeze=ei.prototype.freeze;var Js=1;ei.className="Set",ei.uniqueHash=Qo,ei.hashIdUnique=Vs,ei.hashId=Xo;function ks(a){this.ma=a,this.qa=a.Ja,this.sa=null}ks.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},ks.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},ks.prototype.Ad=function(){return this.next()},ks.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},ks.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},ks.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},ks.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},ks.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new ai;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},ks.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new ai;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},ks.prototype.de=function(){this.value=this.key=null,this.qa=-1},ks.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Ae.Object.defineProperties(ks.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ks.prototype.first=ks.prototype.first,ks.prototype.hasNext=ks.prototype.Ad,ks.prototype.next=ks.prototype.next,ks.prototype.reset=ks.prototype.reset,ks.className="MapKeySetIterator";function no(a){ei.call(this),Qo(this),this._isFrozen=!0,this.ma=a}nn(no,ei),jt=no.prototype,jt.freeze=function(){return this},jt.ka=function(){return this},jt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},jt.add=function(){Fe("This Set is read-only: "+this.toString())},jt.contains=function(a){return this.ma.contains(a)},jt.has=function(a){return this.contains(a)},jt.remove=function(){Fe("This Set is read-only: "+this.toString())},jt.delete=function(a){return this.remove(a)},jt.clear=function(){Fe("This Set is read-only: "+this.toString())},jt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},no.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},no.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},no.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},no.prototype.map=function(a){for(var y=new ei,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},no.prototype.filter=function(a){for(var y=new ei,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},no.prototype.copy=function(){return new no(this.ma)},no.prototype.Iv=function(){var a=new ei,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},no.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},no.prototype.Hv=function(){var a=new ai,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ae.Object.defineProperties(no.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Io:new ks(this.ma)}}}),no.prototype.toList=no.prototype.Hv,no.prototype.toArray=no.prototype.Fa,no.prototype.toSet=no.prototype.Iv,no.prototype.first=no.prototype.first,no.prototype.clear=no.prototype.clear,no.prototype.delete=no.prototype.delete,no.prototype.remove=no.prototype.remove,no.prototype.has=no.prototype.has,no.prototype.contains=no.prototype.contains,no.prototype.add=no.prototype.add,no.prototype.thaw=no.prototype.ka,no.prototype.freeze=no.prototype.freeze,no.className="MapKeySet";function ro(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}ro.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},ro.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},ro.prototype.Ad=function(){return this.next()},ro.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},ro.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ro.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ro.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},ro.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ai;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ro.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ai;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},ro.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ro.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Ae.Object.defineProperties(ro.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ro.prototype.first=ro.prototype.first,ro.prototype.hasNext=ro.prototype.Ad,ro.prototype.next=ro.prototype.next,ro.prototype.reset=ro.prototype.reset,ro.className="MapValueSetIterator";function Go(a,y){this.key=a,this.value=y,this.ll=this.va=null}Go.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Go.className="KeyValuePair";function Ro(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ro.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Ro.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},Ro.prototype.Ad=function(){return this.next()},Ro.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},Ro.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ro.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ro.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},Ro.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ai;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Ro.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ai;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Ro.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Ro.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Ae.Object.defineProperties(Ro.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ro.prototype.first=Ro.prototype.first,Ro.prototype.hasNext=Ro.prototype.Ad,Ro.prototype.next=Ro.prototype.next,Ro.prototype.reset=Ro.prototype.reset,Ro.className="MapIterator";function Ji(a){Qo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Fe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}jt=Ji.prototype,jt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return this._isFrozen=!1,this},jt.toString=function(){return"Map()#"+Xo(this)},jt.add=function(a,y){this._isFrozen&&Qn(this,a);var x=a;Sn(a)&&(x=Vs(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Go(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},jt.set=function(a,y){return this.add(a,y)},jt.addAll=function(a){if(a===null)return this;if($n(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof Ji)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},jt.first=function(){return this.ea},Ji.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ji.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ji.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ji.prototype.map=function(a){for(var y=new Ji,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Ji.prototype.filter=function(a){for(var y=new Ji,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},jt=Ji.prototype,jt.contains=function(a){var y=a;return Sn(a)&&(y=Xo(a),y===void 0)?!1:this.Tb[y]!==void 0},jt.has=function(a){return this.contains(a)},jt.I=function(a){var y=a;return Sn(a)&&(y=Xo(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},jt.get=function(a){return this.I(a)},jt.remove=function(a){if(a===null)return!1;this._isFrozen&&Qn(this,a);var y=a;if(Sn(a)&&(y=Xo(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},jt.delete=function(a){return this.remove(a)},jt.clear=function(){this._isFrozen&&Qn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},Ji.prototype.copy=function(){var a=new Ji,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Ji.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Go(E.key,E.value),x++}return y},Ji.prototype.Lf=function(){return new no(this)},Ae.Object.defineProperties(Ji.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Io;var a=this.Sa;return a!==null?(a.reset(),a):new Ro(this)}},iteratorKeys:{get:function(){return 0>=this.count?Io:new ks(this)}},iteratorValues:{get:function(){if(0>=this.count)return Io;var a=this.jf;return a!==null?(a.reset(),a):new ro(this)}}}),Ji.prototype.toKeySet=Ji.prototype.Lf,Ji.prototype.toArray=Ji.prototype.Fa,Ji.prototype.clear=Ji.prototype.clear,Ji.prototype.delete=Ji.prototype.delete,Ji.prototype.remove=Ji.prototype.remove,Ji.prototype.get=Ji.prototype.get,Ji.prototype.getValue=Ji.prototype.I,Ji.prototype.has=Ji.prototype.has,Ji.prototype.contains=Ji.prototype.contains,Ji.prototype.first=Ji.prototype.first,Ji.prototype.addAll=Ji.prototype.addAll,Ji.prototype.set=Ji.prototype.set,Ji.prototype.add=Ji.prototype.add,Ji.prototype.thaw=Ji.prototype.ka,Ji.prototype.freeze=Ji.prototype.freeze,Ji.className="Map";function re(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Fe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var zo,Hs,Qa,Ra,hl;re.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},re.prototype.h=function(a,y){return this.x=a,this.y=y,this},re.prototype.sg=function(a,y){return this.x=a,this.y=y,this},re.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},re.prototype.copy=function(){var a=new re;return a.x=this.x,a.y=this.y,a},jt=re.prototype,jt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},jt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return Object.isFrozen(this)&&Fe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Do(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new re(x,E)}return new re}function yo(a){return a.x.toString()+" "+a.y.toString()}jt.toString=function(){return"Point("+this.x+","+this.y+")"},jt.D=function(a){return a instanceof re?this.x===a.x&&this.y===a.y:!1},jt.hi=function(a,y){return this.x===a&&this.y===y},jt.Xa=function(a){return Je.B(this.x,a.x)&&Je.B(this.y,a.y)},jt.add=function(a){return this.x+=a.x,this.y+=a.y,this},jt.re=function(a){return this.x-=a.x,this.y-=a.y,this},jt.offset=function(a,y){return this.x+=a,this.y+=y,this},re.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},jt=re.prototype,jt.scale=function(a,y){return this.x*=a,this.y*=y,this},jt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},jt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},jt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},jt.ab=function(a){return os(a.x-this.x,a.y-this.y)},jt.direction=function(a,y){return os(a-this.x,y-this.y)};function os(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}jt.Ry=function(a,y){return Je.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},jt.fA=function(a,y,x,b){return Je.qh(a,y,x,b,this.x,this.y,this),this},jt.gA=function(a,y){return Je.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},jt.uA=function(a,y,x,b){return Je.No(this.x,this.y,a,y,x,b,this),this},jt.vA=function(a,y){return Je.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},jt.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},jt.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},jt.transform=function(a){return a.Ga(this),this};function wo(a,y){return y.Cd(a),a}function Ps(a,y,x,b,E,z){var tt=E-x,rt=z-b,st=tt*tt+rt*rt;x-=a,b-=y;var lt=-x*tt-b*rt;return 0>=lt||lt>=st?(tt=E-a,rt=z-y,Math.min(x*x+b*b,tt*tt+rt*rt)):(a=tt*b-rt*x,a*a/st)}function Pl(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Hr(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}jt.w=function(){return isFinite(this.x)&&isFinite(this.y)},re.alloc=function(){var a=zr.pop();return a===void 0?new re:a},re.allocAt=function(a,y){var x=zr.pop();return x===void 0?new re(a,y):(x.x=a,x.y=y,x)},re.free=function(a){zr.push(a)},re.prototype.isReal=re.prototype.w,re.prototype.setSpot=re.prototype.yi,re.prototype.setRectSpot=re.prototype.xi,re.prototype.snapToGridPoint=re.prototype.vA,re.prototype.snapToGrid=re.prototype.uA,re.prototype.projectOntoLineSegmentPoint=re.prototype.gA,re.prototype.projectOntoLineSegment=re.prototype.fA,re.intersectingLineSegments=function(a,y,x,b,E,z,tt,rt){return Je.Rl(a,y,x,b,E,z,tt,rt)},re.prototype.compareWithLineSegmentPoint=re.prototype.Ry,re.compareWithLineSegment=function(a,y,x,b,E,z){return Je.Fl(a,y,x,b,E,z)},re.prototype.direction=re.prototype.direction,re.prototype.directionPoint=re.prototype.ab,re.prototype.normalize=re.prototype.normalize,re.prototype.distanceSquared=re.prototype.zd,re.prototype.distanceSquaredPoint=re.prototype.Bf,re.prototype.scale=re.prototype.scale,re.prototype.rotate=re.prototype.rotate,re.prototype.offset=re.prototype.offset,re.prototype.subtract=re.prototype.re,re.prototype.add=re.prototype.add,re.prototype.equalsApprox=re.prototype.Xa,re.prototype.equalTo=re.prototype.hi,re.prototype.equals=re.prototype.D,re.prototype.set=re.prototype.set,re.prototype.setTo=re.prototype.sg;var zr=[];re.className="Point",re.parse=Do,re.stringify=yo,re.distanceLineSegmentSquared=Ps,re.distanceSquared=Pl,re.direction=Hr,re.Origin=zo=new re(0,0).ja(),re.InfiniteTopLeft=Hs=new re(-1/0,-1/0).ja(),re.InfiniteBottomRight=Qa=new re(1/0,1/0).ja(),re.SixPoint=Ra=new re(6,6).ja(),re.NoPoint=hl=new re(NaN,NaN).ja(),re.parse=Do,re.stringify=yo,re.distanceLineSegmentSquared=Ps,re.distanceSquared=Pl,re.direction=Hr;function Ni(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):Fe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var to,hs,zs,Gs,so,Ls,Xa;Ni.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Ni.prototype.h=function(a,y){return this.width=a,this.height=y,this},Ni.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Ni.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Ni.prototype.copy=function(){var a=new Ni;return a.width=this.width,a.height=this.height,a},jt=Ni.prototype,jt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},jt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return Object.isFrozen(this)&&Fe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ul(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Ni(x,E)}return new Ni}function Ta(a){return a.width.toString()+" "+a.height.toString()}jt.toString=function(){return"Size("+this.width+","+this.height+")"},jt.D=function(a){return a instanceof Ni?this.width===a.width&&this.height===a.height:!1},jt.hi=function(a,y){return this.width===a&&this.height===y},jt.Xa=function(a){return Je.B(this.width,a.width)&&Je.B(this.height,a.height)},jt.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},jt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Ni.alloc=function(){var a=qo.pop();return a===void 0?new Ni:a},Ni.free=function(a){qo.push(a)},Ni.prototype.isReal=Ni.prototype.w,Ni.prototype.inflate=Ni.prototype.Bc,Ni.prototype.equalsApprox=Ni.prototype.Xa,Ni.prototype.equalTo=Ni.prototype.hi,Ni.prototype.equals=Ni.prototype.D,Ni.prototype.set=Ni.prototype.set,Ni.prototype.setTo=Ni.prototype.sg;var qo=[];Ni.className="Size",Ni.parse=Ul,Ni.stringify=Ta,Ni.ZeroSize=to=new Ni(0,0).ja(),Ni.OneSize=hs=new Ni(1,1).ja(),Ni.SixSize=zs=new Ni(6,6).ja(),Ni.EightSize=Gs=new Ni(8,8).ja(),Ni.TenSize=so=new Ni(10,10).ja(),Ni.InfiniteSize=Ls=new Ni(1/0,1/0).ja(),Ni.NoSize=Xa=new Ni(NaN,NaN).ja(),Ni.parse=Ul,Ni.stringify=Ta;function Mn(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof re?(x=a.x,a=a.y,y instanceof re?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof Ni?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Fe("Incorrect second argument supplied to Rect constructor "+y)):Fe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}jt=Mn.prototype,jt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},jt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ca(a,y,x){a.width=y,a.height=x}jt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},jt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},jt.dd=function(a){return this.x=a.x,this.y=a.y,this},jt.tA=function(a){return this.width=a.width,this.height=a.height,this},Mn.prototype.copy=function(){var a=new Mn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},jt=Mn.prototype,jt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},jt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return Object.isFrozen(this)&&Fe("cannot thaw constant: "+this),this._isFrozen=!1,this};function tc(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new Mn(x,E,z,tt)}return new Mn}function Vl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}jt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},jt.D=function(a){return a instanceof Mn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},jt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},jt.Xa=function(a){return Je.B(this.x,a.x)&&Je.B(this.y,a.y)&&Je.B(this.width,a.width)&&Je.B(this.height,a.height)};function aA(a,y){return Je.$(a.x,y.x)&&Je.$(a.y,y.y)&&Je.$(a.width,y.width)&&Je.$(a.height,y.height)}jt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},jt.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},jt.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},jt.offset=function(a,y){return this.x+=a,this.y+=y,this},jt.Bc=function(a,y){return Oa(this,y,a,y,a)},jt.Co=function(a){return Oa(this,a.top,a.right,a.bottom,a.left)},jt.Fv=function(a){return Oa(this,-a.top,-a.right,-a.bottom,-a.left)},jt.Hz=function(a,y,x,b){return Oa(this,a,y,x,b)};function Oa(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}jt.Ex=function(a){return ec(this,a.x,a.y,a.width,a.height)},jt.Uu=function(a,y,x,b){return ec(this,a,y,x,b)};function ec(a,y,x,b,E){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}jt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},jt.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function Al(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}jt.Ye=function(a){return ps(this,a.x,a.y,0,0)},jt.ed=function(a){return ps(this,a.x,a.y,a.width,a.height)},jt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),ps(this,a,y,x,b)};function ps(a,y,x,b,E){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}jt.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Ys(a,y,x,b,E,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=E&&E+tt<=a+x&&y<=z&&z+rt<=y+b}function lA(a,y,x,b,E,z,tt,rt){return a>tt+E||E>x+a?!1:!(y>rt+z||z>b+y)}jt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},jt.Mz=function(){return this.width===0&&this.height===0},Mn.alloc=function(){var a=Zo.pop();return a===void 0?new Mn:a},Mn.allocAt=function(a,y,x,b){var E=Zo.pop();return E===void 0?new Mn(a,y,x,b):E.h(a,y,x,b)},Mn.free=function(a){Zo.push(a)},Ae.Object.defineProperties(Mn.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new re(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Ni(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new re(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),Mn.prototype.isEmpty=Mn.prototype.Mz,Mn.prototype.isReal=Mn.prototype.w,Mn.intersectsLineSegment=function(a,y,x,b,E,z,tt,rt){return Je.Fx(a,y,x,b,E,z,tt,rt)},Mn.prototype.setSpot=Mn.prototype.yi,Mn.prototype.union=Mn.prototype.Kv,Mn.prototype.unionRect=Mn.prototype.ed,Mn.prototype.unionPoint=Mn.prototype.Ye,Mn.prototype.intersects=Mn.prototype.Vu,Mn.prototype.intersectsRect=Mn.prototype.Yc,Mn.prototype.intersect=Mn.prototype.Uu,Mn.prototype.intersectRect=Mn.prototype.Ex,Mn.prototype.grow=Mn.prototype.Hz,Mn.prototype.subtractMargin=Mn.prototype.Fv,Mn.prototype.addMargin=Mn.prototype.Co,Mn.prototype.inflate=Mn.prototype.Bc,Mn.prototype.offset=Mn.prototype.offset,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.containsRect=Mn.prototype.Re,Mn.prototype.containsPoint=Mn.prototype.ca,Mn.prototype.equalsApprox=Mn.prototype.Xa,Mn.prototype.equalTo=Mn.prototype.hi,Mn.prototype.equals=Mn.prototype.D,Mn.prototype.setSize=Mn.prototype.tA,Mn.prototype.setPoint=Mn.prototype.dd,Mn.prototype.set=Mn.prototype.set,Mn.prototype.setTo=Mn.prototype.sg;var jo=null,Fs=null,Zo=[];Mn.className="Rect",Mn.parse=tc,Mn.stringify=Vl,Mn.contains=Ys,Mn.intersects=lA,Mn.ZeroRect=jo=new Mn(0,0,0,0).ja(),Mn.NoRect=Fs=new Mn(NaN,NaN,NaN,NaN).ja(),Mn.parse=tc,Mn.stringify=Vl,Mn.contains=Ys,Mn.intersects=lA;function mr(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):Fe("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}mr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},mr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},mr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},mr.prototype.copy=function(){var a=new mr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},jt=mr.prototype,jt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},jt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return Object.isFrozen(this)&&Fe("cannot thaw constant: "+this),this._isFrozen=!1,this};function cl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new mr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new mr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new mr(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new mr(x,E):new mr(x,E,z,tt)}return new mr}function dl(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}jt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},jt.D=function(a){return a instanceof mr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},jt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},jt.Xa=function(a){return Je.B(this.top,a.top)&&Je.B(this.right,a.right)&&Je.B(this.bottom,a.bottom)&&Je.B(this.left,a.left)},jt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},mr.alloc=function(){var a=bh.pop();return a===void 0?new mr:a},mr.free=function(a){bh.push(a)},mr.prototype.isReal=mr.prototype.w,mr.prototype.equalsApprox=mr.prototype.Xa,mr.prototype.equalTo=mr.prototype.hi,mr.prototype.equals=mr.prototype.D,mr.prototype.set=mr.prototype.set,mr.prototype.setTo=mr.prototype.sg;var lu=null,ch=null,bh=[];mr.className="Margin",mr.parse=cl,mr.stringify=dl,mr.ZeroMargin=lu=new mr(0,0,0,0).ja(),mr.TwoMargin=ch=new mr(2,2,2,2).ja(),mr.parse=cl,mr.stringify=dl;function nr(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Pa,Za,bl,zu,Ql,bo,fa,Ea,Yl,Rl,vu,tu,Hl,Ll,uo,id,Xl,Nc,dh,uA,xa,Gu,rd,jA,nc,ns,Xs,eu,qa,Ma,ga,Zs,Ba,ol,Gh,yu;nr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},nr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},nr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},nr.prototype.copy=function(){var a=new nr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},jt=nr.prototype,jt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},jt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return Object.isFrozen(this)&&Fe("cannot thaw constant: "+this),this._isFrozen=!1,this};function ba(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function od(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Pa;if(a==="TopLeft")return Za;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return bl;if(a==="TopRight")return zu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ql;if(a==="Center")return bo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return fa;if(a==="BottomLeft")return Ea;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Yl;if(a==="BottomRight")return Rl;if(a==="TopSide")return vu;if(a==="LeftSide")return tu;if(a==="RightSide")return Hl;if(a==="BottomSide")return Ll;if(a==="TopBottomSides")return uo;if(a==="LeftRightSides")return id;if(a==="TopLeftSides")return Xl;if(a==="TopRightSides")return Nc;if(a==="BottomLeftSides")return dh;if(a==="BottomRightSides")return uA;if(a==="NotTopSide")return xa;if(a==="NotLeftSide")return Gu;if(a==="NotRightSide")return rd;if(a==="NotBottomSide")return jA;if(a==="AllSides")return nc;if(a==="Default")return ns;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(tt=parseFloat(b)),new nr(x,E,z,tt)}return new nr}function ic(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}jt.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Pa)?"None":this.D(Za)?"TopLeft":this.D(bl)?"Top":this.D(zu)?"TopRight":this.D(Ql)?"Left":this.D(bo)?"Center":this.D(fa)?"Right":this.D(Ea)?"BottomLeft":this.D(Yl)?"Bottom":this.D(Rl)?"BottomRight":this.D(vu)?"TopSide":this.D(tu)?"LeftSide":this.D(Hl)?"RightSide":this.D(Ll)?"BottomSide":this.D(uo)?"TopBottomSides":this.D(id)?"LeftRightSides":this.D(Xl)?"TopLeftSides":this.D(Nc)?"TopRightSides":this.D(dh)?"BottomLeftSides":this.D(uA)?"BottomRightSides":this.D(xa)?"NotTopSide":this.D(Gu)?"NotLeftSide":this.D(rd)?"NotRightSide":this.D(jA)?"NotBottomSide":this.D(nc)?"AllSides":this.D(ns)?"Default":"None"},jt.D=function(a){return a instanceof nr?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},jt.gv=function(){return new nr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},jt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Xs))a=tu;else if(a.D(eu))a=Hl;else if(a.D(qa))a=vu;else if(a.D(Ma))a=Ll;else return!1;return a=a.offsetY,(this.offsetY&a)===a},jt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},jt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},jt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},jt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},jt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},nr.alloc=function(){var a=_h.pop();return a===void 0?new nr:a},nr.free=function(a){_h.push(a)},nr.prototype.isDefault=nr.prototype.Xb,nr.prototype.isNone=nr.prototype.ys,nr.prototype.isSide=nr.prototype.$c,nr.prototype.isNoSpot=nr.prototype.Mc,nr.prototype.isSpot=nr.prototype.sb,nr.prototype.includesSide=nr.prototype.Hf,nr.prototype.opposite=nr.prototype.gv,nr.prototype.equals=nr.prototype.D,nr.prototype.set=nr.prototype.set,nr.prototype.setTo=nr.prototype.sg;var _h=[];nr.className="Spot",nr.parse=od,nr.stringify=ic,nr.None=Pa=ba(new nr(0,0,0,0),0).ja(),nr.Default=ns=ba(new nr(0,0,-1,0),-1).ja(),nr.TopLeft=Za=new nr(0,0,0,0).ja(),nr.TopCenter=bl=new nr(.5,0,0,0).ja(),nr.TopRight=zu=new nr(1,0,0,0).ja(),nr.LeftCenter=Ql=new nr(0,.5,0,0).ja(),nr.Center=bo=new nr(.5,.5,0,0).ja(),nr.RightCenter=fa=new nr(1,.5,0,0).ja(),nr.BottomLeft=Ea=new nr(0,1,0,0).ja(),nr.BottomCenter=Yl=new nr(.5,1,0,0).ja(),nr.BottomRight=Rl=new nr(1,1,0,0).ja(),nr.MiddleTop=ga=bl,nr.MiddleLeft=Zs=Ql,nr.MiddleRight=Ba=fa,nr.MiddleBottom=ol=Yl,nr.Top=qa=bl,nr.Left=Xs=Ql,nr.Right=eu=fa,nr.Bottom=Ma=Yl,nr.TopSide=vu=ba(new nr(0,0,1,1),1).ja(),nr.LeftSide=tu=ba(new nr(0,0,1,2),1).ja(),nr.RightSide=Hl=ba(new nr(0,0,1,4),1).ja(),nr.BottomSide=Ll=ba(new nr(0,0,1,8),1).ja(),nr.TopBottomSides=uo=ba(new nr(0,0,1,9),1).ja(),nr.LeftRightSides=id=ba(new nr(0,0,1,6),1).ja(),nr.TopLeftSides=Xl=ba(new nr(0,0,1,3),1).ja(),nr.TopRightSides=Nc=ba(new nr(0,0,1,5),1).ja(),nr.BottomLeftSides=dh=ba(new nr(0,0,1,10),1).ja(),nr.BottomRightSides=uA=ba(new nr(0,0,1,12),1).ja(),nr.NotTopSide=xa=ba(new nr(0,0,1,14),1).ja(),nr.NotLeftSide=Gu=ba(new nr(0,0,1,13),1).ja(),nr.NotRightSide=rd=ba(new nr(0,0,1,11),1).ja(),nr.NotBottomSide=jA=ba(new nr(0,0,1,7),1).ja(),nr.AllSides=nc=ba(new nr(0,0,1,15),1).ja(),Gh=new nr(.156,.156).ja(),yu=new nr(.844,.844).ja(),nr.parse=od,nr.stringify=ic;function fo(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}fo.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},fo.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},fo.prototype.copy=function(){var a=new fo;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},fo.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},fo.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},fo.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},fo.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},fo.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},fo.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,tt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},fo.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},fo.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,tt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=tt,this.translate(-y,-x),this},jt=fo.prototype,jt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},jt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},jt.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},jt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},jt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},jt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,st=this.m22,lt=this.dx,ut=this.dy,dt=y*z+x*rt+lt,St=y*tt+x*st+ut,Et=b*z+x*rt+lt,Tt=b*tt+x*st+ut;return x=y*z+E*rt+lt,y=y*tt+E*st+ut,z=b*z+E*rt+lt,b=b*tt+E*st+ut,E=Math.min(dt,Et),dt=Math.max(dt,Et),Et=Math.min(St,Tt),St=Math.max(St,Tt),E=Math.min(E,x),dt=Math.max(dt,x),Et=Math.min(Et,y),St=Math.max(St,y),E=Math.min(E,z),dt=Math.max(dt,z),Et=Math.min(Et,b),St=Math.max(St,b),a.h(E,Et,dt-E,St-Et),a},fo.alloc=function(){var a=Kf.pop();return a===void 0?new fo:a},fo.free=function(a){Kf.push(a)},fo.prototype.transformRect=fo.prototype.pp,fo.prototype.transformPoint=fo.prototype.Ga,fo.prototype.scale=fo.prototype.scale,fo.prototype.translate=fo.prototype.translate,fo.prototype.rotate=fo.prototype.rotate,fo.prototype.invert=fo.prototype.Vj,fo.prototype.multiplyInverted=fo.prototype.bv,fo.prototype.multiply=fo.prototype.multiply,fo.prototype.reset=fo.prototype.reset,fo.prototype.isIdentity=fo.prototype.ws,fo.prototype.equals=fo.prototype.D,fo.prototype.setTransform=fo.prototype.setTransform,fo.prototype.set=fo.prototype.set;var Kf=[];fo.className="Transform",fo.xF="54a702f3e53909c447824c6706603faf4c";var Je={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Je.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Je.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,tt){if(0>=E&&(E=1e-6),a<x)var rt=a,st=x;else rt=x,st=a;if(y<b)var lt=y,ut=b;else lt=b,ut=y;if(a===x)return lt<=tt&&tt<=ut&&a-E<=z&&z<=a+E;if(y===b)return rt<=z&&z<=st&&y-E<=tt&&tt<=y+E;if(st+=E,rt-=E,rt<=z&&z<=st&&(ut+=E,lt-=E,lt<=tt&&tt<=ut))if(st-rt>ut-lt)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=tt&&tt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(tt=(x-a)/(b-y)*(tt-y)+a,tt-E<=z&&z<=tt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,tt,rt,st,lt,ut,dt){if(Je.Yb(a,y,tt,rt,dt,x,b)&&Je.Yb(a,y,tt,rt,dt,E,z))return Je.Yb(a,y,tt,rt,dt,lt,ut);var St=(a+x)/2,Et=(y+b)/2,Tt=(x+E)/2,Ht=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(St+Tt)/2,x=(Et+Ht)/2,Tt=(Tt+E)/2,Ht=(Ht+z)/2;var de=(b+Tt)/2,ie=(x+Ht)/2;return Je.cs(a,y,St,Et,b,x,de,ie,st,lt,ut,dt)||Je.cs(de,ie,Tt,Ht,E,z,tt,rt,st,lt,ut,dt)},ax:function(a,y,x,b,E,z,tt,rt,st){var lt=(x+E)/2,ut=(b+z)/2;return st.h((((a+x)/2+lt)/2+(lt+(E+tt)/2)/2)/2,(((y+b)/2+ut)/2+(ut+(z+rt)/2)/2)/2),st},My:function(a,y,x,b,E,z,tt,rt){var st=(x+E)/2,lt=(b+z)/2;return Hr(((a+x)/2+st)/2,((y+b)/2+lt)/2,(st+(E+tt)/2)/2,(lt+(z+rt)/2)/2)},Dl:function(a,y,x,b,E,z,tt,rt,st,lt){if(Je.Yb(a,y,tt,rt,st,x,b)&&Je.Yb(a,y,tt,rt,st,E,z))ps(lt,a,y,0,0),ps(lt,tt,rt,0,0);else{var ut=(a+x)/2,dt=(y+b)/2,St=(x+E)/2,Et=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+St)/2,x=(dt+Et)/2,St=(St+E)/2,Et=(Et+z)/2;var Tt=(b+St)/2,Ht=(x+Et)/2;Je.Dl(a,y,ut,dt,b,x,Tt,Ht,st,lt),Je.Dl(Tt,Ht,St,Et,E,z,tt,rt,st,lt)}return lt},Qe:function(a,y,x,b,E,z,tt,rt,st,lt){if(Je.Yb(a,y,tt,rt,st,x,b)&&Je.Yb(a,y,tt,rt,st,E,z))lt.length===0&&(lt.push(a),lt.push(y)),lt.push(tt),lt.push(rt);else{var ut=(a+x)/2,dt=(y+b)/2,St=(x+E)/2,Et=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+St)/2,x=(dt+Et)/2,St=(St+E)/2,Et=(Et+z)/2;var Tt=(b+St)/2,Ht=(x+Et)/2;Je.Qe(a,y,ut,dt,b,x,Tt,Ht,st,lt),Je.Qe(Tt,Ht,St,Et,E,z,tt,rt,st,lt)}return lt},jv:function(a,y,x,b,E,z,tt,rt,st,lt){if(Je.Yb(a,y,E,z,lt,x,b))return Je.Yb(a,y,E,z,lt,rt,st);var ut=(a+x)/2,dt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var St=(ut+x)/2,Et=(dt+b)/2;return Je.jv(a,y,ut,dt,St,Et,tt,rt,st,lt)||Je.jv(St,Et,x,b,E,z,tt,rt,st,lt)},OA:function(a,y,x,b,E,z,tt){return tt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),tt},iv:function(a,y,x,b,E,z,tt,rt){if(Je.Yb(a,y,E,z,tt,x,b))ps(rt,a,y,0,0),ps(rt,E,z,0,0);else{var st=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(st+x)/2,dt=(lt+b)/2;Je.iv(a,y,st,lt,ut,dt,tt,rt),Je.iv(ut,dt,x,b,E,z,tt,rt)}return rt},ep:function(a,y,x,b,E,z,tt,rt){if(Je.Yb(a,y,E,z,tt,x,b))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(E),rt.push(z);else{var st=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(st+x)/2,dt=(lt+b)/2;Je.ep(a,y,st,lt,ut,dt,tt,rt),Je.ep(ut,dt,x,b,E,z,tt,rt)}return rt},Eo:function(a,y,x,b,E,z,tt,rt,st,lt,ut,dt,St,Et){if(Je.Yb(a,y,tt,rt,St,x,b)&&Je.Yb(a,y,tt,rt,St,E,z))return!Je.Rl(a,y,tt,rt,st,lt,ut,dt)||(St=(a-tt)*(lt-dt)-(y-rt)*(st-ut),St===0)?!1:(Et.h(((a*rt-y*tt)*(st-ut)-(a-tt)*(st*dt-lt*ut))/St,((a*rt-y*tt)*(lt-dt)-(y-rt)*(st*dt-lt*ut))/St),!0);var Tt=(a+x)/2,Ht=(y+b)/2,de=(x+E)/2,ie=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(Tt+de)/2,x=(Ht+ie)/2,de=(de+E)/2,ie=(ie+z)/2;var Se=(b+de)/2,Le=(x+ie)/2,Ee=1/0,We=!1,dn=0,Di=0;return Je.Eo(a,y,Tt,Ht,b,x,Se,Le,st,lt,ut,dt,St,Et)&&(a=(Et.x-st)*(Et.x-st)+(Et.y-lt)*(Et.y-lt),a<Ee&&(Ee=a,We=!0,dn=Et.x,Di=Et.y)),Je.Eo(Se,Le,de,ie,E,z,tt,rt,st,lt,ut,dt,St,Et)&&(Et.x-st)*(Et.x-st)+(Et.y-lt)*(Et.y-lt)<Ee&&(We=!0,dn=Et.x,Di=Et.y),We&&(Et.x=dn,Et.y=Di),We},Fo:function(a,y,x,b,E,z,tt,rt,st,lt,ut,dt,St){var Et=0;if(Je.Yb(a,y,tt,rt,St,x,b)&&Je.Yb(a,y,tt,rt,St,E,z)){if(St=(a-tt)*(lt-dt)-(y-rt)*(st-ut),St===0)return Et;var Tt=((a*rt-y*tt)*(st-ut)-(a-tt)*(st*dt-lt*ut))/St,Ht=((a*rt-y*tt)*(lt-dt)-(y-rt)*(st*dt-lt*ut))/St;if(Tt>=ut)return Et;if((st>ut?st-ut:ut-st)<(lt>dt?lt-dt:dt-lt)){if(y<rt?(st=y,a=rt):(st=rt,a=y),Ht<st||Ht>a)return Et}else if(a<tt?(st=a,a=tt):st=tt,Tt<st||Tt>a)return Et;0<St?Et++:0>St&&Et--}else{Tt=(a+x)/2,Ht=(y+b)/2;var de=(x+E)/2,ie=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(Tt+de)/2,x=(Ht+ie)/2,de=(de+E)/2,ie=(ie+z)/2;var Se=(b+de)/2,Le=(x+ie)/2;Et+=Je.Fo(a,y,Tt,Ht,b,x,Se,Le,st,lt,ut,dt,St),Et+=Je.Fo(Se,Le,de,ie,E,z,tt,rt,st,lt,ut,dt,St)}return Et},qh:function(a,y,x,b,E,z,tt){return Je.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):Je.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(tt.h(b,y),!1):E>a?(tt.h(a,y),!1):(tt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(tt.h(a,y),!1):1.000005<E?(tt.h(x,b),!1):(tt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,tt,rt,st){return Je.B(a,x)&&Je.B(y,b)?(st.h(a,y),!1):Je.$(E,tt)?Je.$(a,x)?(Je.qh(a,y,x,b,E,z,st),!1):Je.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,st):(rt=(rt-z)/(tt-E),Je.$(a,x)?(x=rt*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(st.h(a,E),!1):x>y?(st.h(a,y),!1):(st.h(a,x),!0)):(tt=(b-y)/(x-a),Je.$(rt,tt)?(Je.qh(a,y,x,b,E,z,st),!1):(E=(tt*a-rt*E+z-y)/(tt-rt),Je.$(tt,0)?(a<x?(b=a,a=x):b=x,E<b?(st.h(b,y),!1):E>a?(st.h(a,y),!1):(st.h(E,y),!0)):Je.qh(a,y,x,b,E,tt*(E-a)+y,st))))},MA:function(a,y,x,b,E){return Je.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,tt,rt,st,lt){function ut(de,ie){var Se=(de-a)*(de-a)+(ie-y)*(ie-y);Se<dt&&(dt=Se,st.h(de,ie))}var dt=1/0;ut(st.x,st.y);var St=0,Et=0,Tt=0,Ht=0;if(E<tt?(St=E,Et=tt):(St=tt,Et=E),z<rt?(Tt=E,Ht=tt):(Tt=tt,Ht=E),St=(Et-St)/2+lt,lt=(Ht-Tt)/2+lt,E=(E+tt)/2,z=(z+rt)/2,St===0||lt===0)return st;if(.5>(x>a?x-a:a-x)){if(St=1-(x-E)*(x-E)/(St*St),0>St)return st;St=Math.sqrt(St),b=-lt*St+z,ut(x,lt*St+z),ut(x,b)}else{if(x=(b-y)/(x-a),b=1/(St*St)+x*x/(lt*lt),rt=2*x*(y-x*a)/(lt*lt)-2*x*z/(lt*lt)-2*E/(St*St),St=rt*rt-4*b*(2*x*a*z/(lt*lt)-2*y*z/(lt*lt)+z*z/(lt*lt)+E*E/(St*St)-1+(y-x*a)*(y-x*a)/(lt*lt)),0>St)return st;St=Math.sqrt(St),lt=(-rt+St)/(2*b),ut(lt,x*lt-x*a+y),St=(-rt-St)/(2*b),ut(St,x*St-x*a+y)}return st},Ff:function(a,y,x,b,E,z,tt,rt,st){var lt=1e21,ut=a,dt=y;if(Je.Ve(a,y,a,b,E,z,tt,rt,st)){var St=(st.x-E)*(st.x-E)+(st.y-z)*(st.y-z);St<lt&&(lt=St,ut=st.x,dt=st.y)}return Je.Ve(x,y,x,b,E,z,tt,rt,st)&&(St=(st.x-E)*(st.x-E)+(st.y-z)*(st.y-z),St<lt&&(lt=St,ut=st.x,dt=st.y)),Je.Ve(a,y,x,y,E,z,tt,rt,st)&&(y=(st.x-E)*(st.x-E)+(st.y-z)*(st.y-z),y<lt&&(lt=y,ut=st.x,dt=st.y)),Je.Ve(a,b,x,b,E,z,tt,rt,st)&&(a=(st.x-E)*(st.x-E)+(st.y-z)*(st.y-z),a<lt&&(lt=a,ut=st.x,dt=st.y)),st.h(ut,dt),1e21>lt},us:function(a,y,x){return Je.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,tt,rt){var st=a+x,lt=y+b;return E===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=E&&E<=st&&tt<=lt&&z>=y):z===rt?(E<tt?(rt=E,E=tt):rt=tt,y<=z&&z<=lt&&rt<=st&&E>=a):!!(Ys(a,y,x,b,E,z)||Ys(a,y,x,b,tt,rt)||Je.Rl(a,y,st,y,E,z,tt,rt)||Je.Rl(st,y,st,lt,E,z,tt,rt)||Je.Rl(st,lt,a,lt,E,z,tt,rt)||Je.Rl(a,lt,a,y,E,z,tt,rt))},Rl:function(a,y,x,b,E,z,tt,rt){return a===x&&y===b&&E===tt&&z===rt?a===E&&y===z:0>=Je.Fl(a,y,x,b,E,z)*Je.Fl(a,y,x,b,tt,rt)&&0>=Je.Fl(E,z,tt,rt,a,y)*Je.Fl(E,z,tt,rt,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var tt=Math.PI;z||(b*=tt/180,E*=tt/180);var rt=b>E?-1:1;z=[];var st=tt/2,lt=b;if(b=Math.min(2*tt,Math.abs(E-b)),1e-5>b)return st=lt+rt*Math.min(b,st),rt=a+x*Math.cos(lt),lt=y+x*Math.sin(lt),a+=x*Math.cos(st),y+=x*Math.sin(st),x=(rt+a)/2,st=(lt+y)/2,z.push([rt,lt,x,st,x,st,a,y]),z;for(;1e-5<b;)E=lt+rt*Math.min(b,st),z.push(Je.Vy(x,lt,E,a,y)),b-=Math.abs(E-lt),lt=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,tt=a*Math.cos(z),rt=a*Math.sin(z),st=-rt,lt=tt*tt+st*st,ut=lt+tt*tt+st*rt;return lt=4/3*(Math.sqrt(2*lt*ut)-ut)/(tt*rt-st*tt),rt=tt-lt*st,tt=st+lt*tt,st=-tt,lt=z+y,z=Math.cos(lt),lt=Math.sin(lt),[b+a*Math.cos(y),E+a*Math.sin(y),b+rt*z-tt*lt,E+rt*lt+tt*z,b+rt*z-st*lt,E+rt*lt+st*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,tt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var rt=x;return x+E-a<E/2&&(rt=x+E),a=b,b+z-y<z/2&&(a=b+z),tt.h(rt,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var tt=1,rt=0;else tt=0,rt=1;var st=tt===0?a:y,lt=tt===0?x:b;return(tt===0?E:z)&&(lt=-lt),tt=rt,x=tt===0?x:b,(tt===0?E:z)&&(x=-x),Je.az(st,tt===0?a:y,lt,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var tt=y*b,rt=-z+tt,st=-z+Math.sqrt(a*a+tt*tt);y=rt;for(var lt=0;9999999999>lt&&(y=.5*(rt+st),!(y===rt||y===st));++lt){var ut=a/(y+E),dt=tt/(y+z);if(ut=ut*ut+dt*dt-1,0<ut)rt=y;else if(0>ut)st=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new jr,um:new jr,Mf:new jr,Nf:0,vm:100};Je.za=Je.AA;function Li(a){Qo(this),this.l=2,a===void 0&&(a=Li.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Li.o?this.ee=new ai:(Li.V===null&&(Li.V=new ai().freeze()),this.ee=Li.V),this.aq=this.ee.Ja,this.Ip=new Mn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Za,this.gg=Rl,this.Rk=this.Sk=NaN,this.Uf=ri}Li.prototype.copy=function(){var a=new Li;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Li.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Li.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Li.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Li.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Li.prototype.ka=function(){if(Object.isFrozen(this)&&Fe("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Li.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Li.prototype.Xa=function(a){if(!(a instanceof Li))return!1;if(this.type!==a.type)return this.type===Li.j&&a.type===Li.o?ff(this,a):a.type===Li.j&&this.type===Li.o?ff(a,this):!1;if(this.type===Li.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Je.B(this.startX,a.startX)&&Je.B(this.startY,a.startY)&&Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY)};function ff(a,y){return a.type!==Li.j||y.type!==Li.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Je.B(a.startX,y.startX)&&Je.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Ts&&Je.B(a.endX,y.endX)&&Je.B(a.endY,y.endY))))}Li.ia=function(a){return a.toString()},Li.prototype.qb=function(a){a.classType===Li&&(this.type=a)},Li.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Li.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Li.u:var y=new Mn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Li.F:if(y=new Mn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Li.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Li.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Li.parse=function(a,y){function x(){return Ht>=Ee-1?!0:lt[Ht+1].match(We)!==null}function b(){return Ht++,lt[Ht]}function E(Jr){var Qr=parseFloat(b()),es=parseFloat(b());de===de.toLowerCase()&&(Qr=Le.x+Qr,es=Le.y+es),Jr.h(Qr,es)}function z(){return E(Le),Le}function tt(){return E(Se),Se}function rt(){var Jr=ie.toLowerCase();return Jr!=="c"&&Jr!=="s"&&Jr!=="q"&&Jr!=="t"?Le:new re(2*Le.x-Se.x,2*Le.y-Se.y)}y===void 0&&(y=!1);var st=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(st,"$1 $2"),a=a.replace(st,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var lt=a.split(" ");for(a=0;a<lt.length;a++){var ut=lt[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){st=tr();for(var dt="",St=!1,Et=0;Et<ut.length;Et++){var Tt=ut[Et];Tt!=="."||St?Tt==="."?(st.push(dt),dt="."):dt+=Tt:(St=!0,dt+=Tt)}for(st.push(dt),lt.splice(a,1),ut=0;ut<st.length;ut++)lt.splice(a+ut,0,st[ut]);a+=st.length-1,vr(st)}}var Ht=-1,de="",ie="";st=new re(0,0);var Se=new re(0,0),Le=new re(0,0),Ee=lt.length;a=Ty(null),St=dt=ut=!1,Et=!0,Tt=null;for(var We=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ht>=Ee-1);)if(ie=de,de=b(),de!=="")switch(de.toUpperCase()){case"X":Et=!0,dt=ut=!1;break;case"M":for(Tt=z(),a.mc===null||Et===!0?(Dp(a,Tt.x,Tt.y,ut,!dt,St),Et=!1):a.moveTo(Tt.x,Tt.y),st.assign(Le);!x();)Tt=z(),a.lineTo(Tt.x,Tt.y);break;case"L":for(;!x();)Tt=z(),a.lineTo(Tt.x,Tt.y);break;case"H":for(;!x();)Le=new re((de===de.toLowerCase()?Le.x:0)+parseFloat(b()),Le.y),a.lineTo(Le.x,Le.y);break;case"V":for(;!x();)Le=new re(Le.x,(de===de.toLowerCase()?Le.y:0)+parseFloat(b())),a.lineTo(Le.x,Le.y);break;case"C":for(;!x();){Tt=new re,E(Tt);var dn=tt(),Di=z();Lf(a,Tt.x,Tt.y,dn.x,dn.y,Di.x,Di.y)}break;case"S":for(;!x();)Tt=rt(),dn=tt(),Di=z(),Lf(a,Tt.x,Tt.y,dn.x,dn.y,Di.x,Di.y);break;case"Q":for(;!x();)Tt=tt(),dn=z(),im(a,Tt.x,Tt.y,dn.x,dn.y);break;case"T":for(;!x();)Se=Tt=rt(),dn=z(),im(a,Tt.x,Tt.y,dn.x,dn.y);break;case"B":for(;!x();){Tt=parseFloat(b()),dn=parseFloat(b()),Di=parseFloat(b());var er=parseFloat(b()),Ki=parseFloat(b()),xi=Ki,ni=!1;x()||(xi=parseFloat(b()),x()||(ni=parseFloat(b())!==0)),de===de.toLowerCase()&&(Di+=Le.x,er+=Le.y),a.arcTo(Tt,dn,Di,er,Ki,xi,ni)}break;case"A":for(;!x();)Tt=Math.abs(parseFloat(b())),dn=Math.abs(parseFloat(b())),Di=parseFloat(b()),Ki=er=!1,ni=xi=0,xi=b(),xi.length===1?(er=!!parseFloat(xi),Ki=!!parseFloat(b()),xi=parseFloat(b())):xi.length===2?(er=!!parseFloat(xi[0]),Ki=!!parseFloat(xi[1]),xi=parseFloat(b())):(er=!!parseFloat(xi[0]),Ki=!!parseFloat(xi[1]),xi=parseFloat(xi.slice(2))),ni=parseFloat(b()),de===de.toLowerCase()&&(xi=Le.x+xi,ni=Le.y+ni),Le.h(xi,ni),xw(a,Tt,dn,Di,er,Ki,xi,ni);break;case"Z":Sw(a),Le.assign(st);break;case"F":for(Tt="",dn=1;lt[Ht+dn];)if(lt[Ht+dn]==="0")St=!0,dn++;else if(lt[Ht+dn].match(/[Uu]/)!==null)dn++;else if(lt[Ht+dn].match(We)===null)dn++;else{Tt=lt[Ht+dn];break}Tt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Tt="",dn=1;lt[Ht+dn];)if(lt[Ht+dn].match(/[Ff]/)!==null)dn++;else if(lt[Ht+dn].match(We)===null)dn++;else{Tt=lt[Ht+dn];break}Tt.match(/[Mm]/)?dt=!0:a.mc.isShadowed=!1}if(st=a.os,rm=a,y)for(y=st.figures.iterator;y.next();)y.value.isFilled=!0;return st},Li.Ha=function(a,y){for(var x=a.length,b=re.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}re.free(b)},Li.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Li.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Li.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Li.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var tt=b[z];tt._isInvalidBounds=!1,tt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),hA(this,a,!1),ps(a,0,0,0,0),a.freeze()},Li.prototype.ix=function(){var a=new Mn;return hA(this,a,!0),a};function hA(a,y,x){switch(a.type){case Li.j:case Li.u:case Li.F:x?y.h(a.od,a.pd,0,0):ps(y,a.od,a.pd,0,0),ps(y,a.Dc,a.Ec,0,0);break;case Li.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):ps(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,rt=tt.length,st=z.startX,lt=z.startY,ut=0;ut<rt;ut++){var dt=tt[ut];switch(dt.type){case Ts:case sl:st=dt.endX,lt=dt.endY,ps(y,st,lt,0,0);break;case kl:Je.Dl(st,lt,dt.point1X,dt.point1Y,dt.point2X,dt.point2Y,dt.endX,dt.endY,.5,y),st=dt.endX,lt=dt.endY;break;case Iu:Je.iv(st,lt,dt.point1X,dt.point1Y,dt.endX,dt.endY,.5,y),st=dt.endX,lt=dt.endY;break;case Da:case fh:var St=dt.type===Da?fu(dt,z):_u(dt,z,st,lt),Et=St.length;if(Et===0){st=dt.type===Da?dt.centerX:dt.endX,lt=dt.type===Da?dt.centerY:dt.endY,ps(y,st,lt,0,0);break}dt=null;for(var Tt=0;Tt<Et;Tt++)dt=St[Tt],Je.Dl(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],.5,y);dt!==null&&(st=dt[6],lt=dt[7]);break;default:Fe("Unknown Segment type: "+dt.type)}}}break;default:Fe("Unknown Geometry type: "+a.type)}}Li.prototype.normalize=function(){this._isFrozen&&Qn(this);var a=this.ix();return this.offset(-a.x,-a.y),new re(-a.x,-a.y)},Li.prototype.offset=function(a,y){return this._isFrozen&&Qn(this),this.transform(1,0,0,1,a,y),this},Li.prototype.scale=function(a,y){return this._isFrozen&&Qn(this),this.transform(a,0,0,y,0,0),this},Li.prototype.rotate=function(a,y,x){this._isFrozen&&Qn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=fo.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),fo.free(b),this},jt=Li.prototype,jt.transform=function(a,y,x,b,E,z){switch(this.type){case Li.j:case Li.u:case Li.F:var tt=this.od,rt=this.pd;this.od=tt*a+rt*x+E,this.pd=tt*y+rt*b+z,tt=this.Dc,rt=this.Ec,this.Dc=tt*a+rt*x+E,this.Ec=tt*y+rt*b+z;break;case Li.o:for(var st=this.figures.s,lt=st.length,ut=0;ut<lt;ut++){var dt=st[ut];tt=dt.startX,rt=dt.startY,dt.startX=tt*a+rt*x+E,dt.startY=tt*y+rt*b+z,dt=dt.segments.s;for(var St=dt.length,Et=0;Et<St;Et++){var Tt=dt[Et];switch(Tt.type){case Ts:case sl:tt=Tt.endX,rt=Tt.endY,Tt.endX=tt*a+rt*x+E,Tt.endY=tt*y+rt*b+z;break;case kl:tt=Tt.point1X,rt=Tt.point1Y,Tt.point1X=tt*a+rt*x+E,Tt.point1Y=tt*y+rt*b+z,tt=Tt.point2X,rt=Tt.point2Y,Tt.point2X=tt*a+rt*x+E,Tt.point2Y=tt*y+rt*b+z,tt=Tt.endX,rt=Tt.endY,Tt.endX=tt*a+rt*x+E,Tt.endY=tt*y+rt*b+z;break;case Iu:tt=Tt.point1X,rt=Tt.point1Y,Tt.point1X=tt*a+rt*x+E,Tt.point1Y=tt*y+rt*b+z,tt=Tt.endX,rt=Tt.endY,Tt.endX=tt*a+rt*x+E,Tt.endY=tt*y+rt*b+z;break;case Da:tt=Tt.centerX,rt=Tt.centerY,Tt.centerX=tt*a+rt*x+E,Tt.centerY=tt*y+rt*b+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Tt.startAngle+=tt),0>a&&(Tt.startAngle=180-Tt.startAngle,Tt.sweepAngle=-Tt.sweepAngle),0>b&&(Tt.startAngle=-Tt.startAngle,Tt.sweepAngle=-Tt.sweepAngle),Tt.radiusX*=Math.sqrt(a*a+x*x),Tt.radiusY!==void 0&&(Tt.radiusY*=Math.sqrt(y*y+b*b));break;case fh:if(tt=Tt.endX,rt=Tt.endY,Tt.endX=tt*a+rt*x+E,Tt.endY=tt*y+rt*b+z,Tt.radiusX===0||Tt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Tt.xAxisRotation+=tt),0>a&&(Tt.xAxisRotation=180-Tt.xAxisRotation,Tt.isClockwiseArc=!Tt.isClockwiseArc),0>b&&(Tt.xAxisRotation=-Tt.xAxisRotation,Tt.isClockwiseArc=!Tt.isClockwiseArc),Tt.radiusX*=Math.sqrt(a*a+x*x),Tt.radiusY*=Math.sqrt(y*y+b*b);break;default:Fe("Unknown Segment type: "+Tt.type)}}}}return this._isInvalidBounds=!0,this},jt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case Li.j:return Je.Yb(x,b,E,z,y,a.x,a.y);case Li.u:var tt=Mn.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=tt.ca(a),Mn.free(tt),a;case Li.F:tt=Math.min(x,E)-y;var rt=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case Li.o:return uu(this,a,y,!0,!1);default:return!1}};function uu(a,y,x,b,E){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,st,lt,ut,dt,St=a.figures.s,Et=St.length,Tt=0;Tt<Et;Tt++){var Ht=St[Tt],de=!Ht.isEvenOdd;if(Ht.isFilled){if(b&&Ht.ca(z,y,x))return!0;var ie=Ht.segments;st=Ht.startX,lt=Ht.startY;for(var Se=st,Le=lt,Ee=ie.s,We=0;We<=ie.length;We++){var dn=void 0;if(We!==ie.length){dn=Ee[We];var Di=dn.type;a=dn.endX,dt=dn.endY}else Di=Ts,a=Se,dt=Le;switch(Di){case sl:if(Se=hu(z,y,tt,y,st,lt,Se,Le),isNaN(Se))return!0;rt+=Se,Se=a,Le=dt;break;case Ts:if(st=hu(z,y,tt,y,st,lt,a,dt),isNaN(st))return!0;rt+=st;break;case kl:ut=Je.Fo(st,lt,dn.point1X,dn.point1Y,dn.point2X,dn.point2Y,a,dt,tt,y,z,y,.5),rt+=ut;break;case Iu:ut=Je.Fo(st,lt,(st+2*dn.point1X)/3,(lt+2*dn.point1Y)/3,(2*dn.point1X+a)/3,(2*dn.point1Y+dt)/3,a,dt,tt,y,z,y,.5),rt+=ut;break;case Da:case fh:Di=dn.type===Da?fu(dn,Ht):_u(dn,Ht,st,lt);var er=Di.length;if(er===0){if(st=hu(z,y,tt,y,st,lt,dn.type===Da?dn.centerX:dn.endX,dn.type===Da?dn.centerY:dn.endY),isNaN(st))return!0;rt+=st;break}dn=null;for(var Ki=0;Ki<er;Ki++){if(dn=Di[Ki],Ki===0){if(ut=hu(z,y,tt,y,st,lt,dn[0],dn[1]),isNaN(ut))return!0;rt+=ut}ut=Je.Fo(dn[0],dn[1],dn[2],dn[3],dn[4],dn[5],dn[6],dn[7],tt,y,z,y,.5),rt+=ut}dn!==null&&(a=dn[6],dt=dn[7]);break;default:Fe("Unknown Segment type: "+dn.type)}st=a,lt=dt}if(de){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(Ht.ca(z,y,E?x:x+2))return!0}return!1}function hu(a,y,x,b,E,z,tt,rt){if(Je.Yb(E,z,tt,rt,.05,a,y))return NaN;var st=(a-x)*(z-rt);if(st===0)return 0;var lt=((a*b-y*x)*(E-tt)-(a-x)*(E*rt-z*tt))/st;if(y=(a*b-y*x)*(z-rt)/st,lt>=a)return 0;if((E>tt?E-tt:tt-E)<(z>rt?z-rt:rt-z)){if(z<rt){if(y<z||y>rt)return 0}else if(y<rt||y>z)return 0}else if(E<tt){if(lt<E||lt>tt)return 0}else if(lt<tt||lt>E)return 0;return 0<st?1:-1}function Lh(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}jt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new re),this.type===Li.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var st=b[rt],lt=st.length;for(a=0;a<lt;a++){var ut=st[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,x=x[rt],rt=x[2*a],E=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*b,E+(x[2*a+3]-E)*b),y;tt+=ut}}return y},jt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Li.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,tt=0;tt<b;tt++){var rt=x[tt],st=rt.length;for(a=0;a<st;a++){var lt=rt[a];if(z+lt>=E)return E=y[tt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=lt}}return NaN},jt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Li.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var st=b[rt],lt=st.length;for(a=0;a<lt;a++){var ut=st[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],E=ut[2*a+2],a=ut[2*a+3],y[0]=x+(E-x)*b,y[1]=rt+(a-rt)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-rt)?0:1>Math.abs(E-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=E-x?0:180:180*Math.atan2(a-rt,E-x)/Math.PI,y;tt+=ut}}return y},jt.xx=function(a){if(this.type===Li.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var tt=x;b=E}else tt=E,b=x;return a<=tt?tt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-tt)}if(x===E)return y<b?tt=y:(tt=b,b=y),z<=tt?tt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-tt);tt=(b-y)*(b-y)+(E-x)*(E-x);var rt=re.alloc();return Je.qh(y,x,b,E,z,a,rt),a=rt.x,z=rt.y,re.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Li.u){tt=this.startX,rt=this.startY;var st=this.endX;if(E=this.endY,tt!==st||rt!==E){y=st-tt,x=E-rt,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,tt),st),a=Math.min(Math.max(a,rt),E),tt=Math.abs(b-tt),st=Math.abs(b-st),rt=Math.abs(a-rt),E=Math.abs(a-E);var lt=Math.min(tt,st,rt,E);if(lt===rt)return b/z;if(lt===st)return(y+a)/z;if(lt===E)return(2*y+x-b)/z;if(lt===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=re.alloc(),E=1/0,rt=tt=0,st=y.length;for(var ut=lt=0,dt=0;dt<st;dt++)for(var St=y[dt],Et=x[dt],Tt=St.length,Ht=0;Ht<Tt;Ht+=2){var de=St[Ht],ie=St[Ht+1];if(Ht!==0){Je.qh(lt,ut,de,ie,a.x,a.y,b);var Se=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Se<E&&(E=Se,tt=rt,tt+=Math.sqrt((b.x-lt)*(b.x-lt)+(b.y-ut)*(b.y-ut))),rt+=Et[(Ht-2)/2]}lt=de,ut=ie}return re.free(b),a=tt/z,0>a?0:1<a?1:a}return 0};function gf(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Li.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Li.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Li.F){var z=new pa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new Wo(Da);if(tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(a.startX+a.endX)/2,tt.centerY=(a.startY+a.endY)/2,tt.radiusX=Math.abs(a.startX-a.endX)/2,tt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(tt),a=fu(tt,z),E=a.length,E===0)b.push(tt.centerX),b.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var rt=0;rt<E;rt++){var st=a[rt];Je.Qe(tt,z,st[2],st[3],st[4],st[5],st[6],st[7],.5,b),tt=st[6],z=st[7]}}y.push(b),x.push(Ic(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),tt=E.startX,z=E.startY,rt=tt,st=z;for(var lt=E.segments.s,ut=lt.length,dt=0;dt<ut;dt++){var St=lt[dt];switch(St.type){case sl:4<=b.length&&(y.push(b),x.push(Ic(b))),b=[],b.push(St.endX),b.push(St.endY),tt=St.endX,z=St.endY,rt=tt,st=z;break;case Ts:b.push(St.endX),b.push(St.endY),tt=St.endX,z=St.endY;break;case kl:Je.Qe(tt,z,St.point1X,St.point1Y,St.point2X,St.point2Y,St.endX,St.endY,.5,b),tt=St.endX,z=St.endY;break;case Iu:Je.ep(tt,z,St.point1X,St.point1Y,St.endX,St.endY,.5,b),tt=St.endX,z=St.endY;break;case Da:var Et=fu(St,E),Tt=Et.length;if(Tt===0){b.push(St.centerX),b.push(St.centerY),tt=St.centerX,z=St.centerY;break}for(var Ht=0;Ht<Tt;Ht++){var de=Et[Ht];Je.Qe(tt,z,de[2],de[3],de[4],de[5],de[6],de[7],.5,b),tt=de[6],z=de[7]}break;case fh:if(Et=_u(St,E,tt,z),Tt=Et.length,Ht=St.endX,de=St.endY,Tt===0){b.push(Ht),b.push(de),tt=Ht,z=de;break}for(Ht=0;Ht<Tt;Ht++)de=Et[Ht],Je.Qe(tt,z,de[2],de[3],de[4],de[5],de[6],de[7],.5,b),tt=de[6],z=de[7];break;default:Fe("Segment not of valid type: "+St.type)}St.isClosed&&(b.push(rt),b.push(st))}4<=b.length&&(y.push(b),x.push(Ic(b)))}}}function Ic(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var tt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(Pl(x,b,tt,rt))),x=tt,b=rt}return y}jt.add=function(a){return this.ee.add(a),this},jt.pm=function(a,y,x,b,E,z,tt,rt){return this._isFrozen&&Qn(this),this.fg=new nr(a,y,E,z).freeze(),this.gg=new nr(x,b,tt,rt).freeze(),this},Ae.Object.defineProperties(Li.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return gf(this),this.tk}},flattenedLengths:{get:function(){return gf(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Li.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Li.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,tt=0;tt<z;tt++)a+=E[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Qn(this,a),this.na=a,a===Li.o?this.ee=new ai:(Li.V===null&&(Li.V=new ai().freeze()),this.ee=Li.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Qn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Qn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Qn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Qn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Qn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Qn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Qn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Qn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Li.prototype.setSpots=Li.prototype.pm,Li.prototype.add=Li.prototype.add,Li.prototype.getFractionForPoint=Li.prototype.xx,Li.prototype.getPointAndAngleAlongPath=Li.prototype.Qu,Li.prototype.getAngleAlongPath=Li.prototype.wx,Li.prototype.getPointAlongPath=Li.prototype.Pu,Li.prototype.containsPoint=Li.prototype.ca,Li.prototype.transform=Li.prototype.transform,Li.prototype.rotate=Li.prototype.rotate,Li.prototype.scale=Li.prototype.scale,Li.prototype.offset=Li.prototype.offset,Li.prototype.normalize=Li.prototype.normalize,Li.prototype.computeBoundsWithoutOrigin=Li.prototype.ix,Li.prototype.equalsApprox=Li.prototype.Xa,Li.className="Geometry",Li.j=new zn(Li,"Line",0),Li.u=new zn(Li,"Rectangle",1),Li.F=new zn(Li,"Ellipse",2),Li.o=new zn(Li,"Path",3),Li.V=null,Li.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Li.className="Geometry",Li.stringify=Li.ia,Li.fillPath=Li.nb,Li.parse=Li.parse,Li.Line=Li.j,Li.Rectangle=Li.u,Li.Ellipse=Li.F,Li.Path=Li.o;function pa(a,y,x,b,E){Qo(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new ai,this.sr=this.pl.Ja,this.fw=null}pa.prototype.copy=function(){var a=new pa;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},jt=pa.prototype,jt.Xa=function(a){if(!(a instanceof pa&&Je.B(this.startX,a.startX)&&Je.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},jt.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},jt.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},jt.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},jt.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},jt.add=function(a){return this.pl.add(a),this},jt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,tt=E,rt=this.segments.s,st=rt.length,lt=0;lt<st;lt++){var ut=rt[lt];switch(ut.type){case sl:z=ut.endX,tt=ut.endY,b=ut.endX,E=ut.endY;break;case Ts:if(Je.Yb(b,E,ut.endX,ut.endY,x,a,y))return!0;b=ut.endX,E=ut.endY;break;case kl:if(Je.cs(b,E,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case Iu:if(Je.jv(b,E,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case Da:case fh:var dt=ut.type===Da?fu(ut,this):_u(ut,this,b,E),St=dt.length,Et=ut.type===Da?ut.centerX:ut.endX,Tt=ut.type===Da?ut.centerY:ut.endY;if(St===0){if(Je.Yb(b,E,Et,Tt,x,a,y))return!0;b=Et,E=Tt;break}for(Et=null,Tt=0;Tt<St;Tt++)if(Et=dt[Tt],Tt===0&&Je.Yb(b,E,Et[0],Et[1],x,a,y)||Je.cs(Et[0],Et[1],Et[2],Et[3],Et[4],Et[5],Et[6],Et[7],.5,a,y,x))return!0;Et!==null&&(b=Et[6],E=Et[7]);break;default:Fe("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(b!==z||E!==tt)&&Je.Yb(b,E,z,tt,x,a,y))return!0}return!1},Ae.Object.defineProperties(pa.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Qn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Qn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Qn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Qn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Qn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Qn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),pa.prototype.add=pa.prototype.add,pa.prototype.equalsApprox=pa.prototype.Xa,pa.className="PathFigure";function Wo(a,y,x,b,E,z,tt,rt){Qo(this),a===void 0&&(a=Ts),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===fh?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Da&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Da&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Wo.prototype.copy=function(){var a=new Wo;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},jt=Wo.prototype,jt.Xa=function(a){if(!(a instanceof Wo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case sl:case Ts:return Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY);case kl:return Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY)&&Je.B(this.point1X,a.point1X)&&Je.B(this.point1Y,a.point1Y)&&Je.B(this.point2X,a.point2X)&&Je.B(this.point2Y,a.point2Y);case Iu:return Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY)&&Je.B(this.point1X,a.point1X)&&Je.B(this.point1Y,a.point1Y);case Da:return Je.B(this.startAngle,a.startAngle)&&Je.B(this.sweepAngle,a.sweepAngle)&&Je.B(this.centerX,a.centerX)&&Je.B(this.centerY,a.centerY)&&Je.B(this.radiusX,a.radiusX)&&Je.B(this.radiusY,a.radiusY);case fh:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Je.B(this.xAxisRotation,a.xAxisRotation)&&Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY)&&Je.B(this.radiusX,a.radiusX)&&Je.B(this.radiusY,a.radiusY);default:return!1}},jt.qb=function(a){a.classType===Wo&&(this.type=a)},jt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case sl:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ts:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case kl:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Iu:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Da:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case fh:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return this._isFrozen=!1,this},jt.close=function(){return this.isClosed=!0,this};function fu(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=Je.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var tt=fo.alloc();tt.reset(),x<b?tt.scale(1,b/x):tt.scale(x/b,1),Li.Ha(z,tt),fo.free(tt)}for(x=z.length,b=0;b<x;b++)tt=z[b],tt[0]+=y,tt[1]+=E,tt[2]+=y,tt[3]+=E,tt[4]+=y,tt[5]+=E,tt[6]+=y,tt[7]+=E;return a.ae=z,a.ae}function _u(a,y,x,b){function E(Ht,de,ie,Se){return(Ht*Se<de*ie?-1:1)*Math.acos((Ht*ie+de*Se)/(Math.sqrt(Ht*Ht+de*de)*Math.sqrt(ie*ie+Se*Se)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var tt=Math.PI/180*a.Ne,rt=a.isLargeArc,st=a.isClockwiseArc,lt=a.Dc,ut=a.Ec,dt=Math.cos(tt),St=Math.sin(tt),Et=dt*(x-lt)/2+St*(b-ut)/2;tt=-St*(x-lt)/2+dt*(b-ut)/2;var Tt=Et*Et/(y*y)+tt*tt/(z*z);return 1<Tt&&(y*=Math.sqrt(Tt),z*=Math.sqrt(Tt)),Tt=(rt===st?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*Et*Et)/(y*y*tt*tt+z*z*Et*Et)),isNaN(Tt)&&(Tt=0),rt=Tt*y*tt/z,Tt=Tt*-z*Et/y,isNaN(rt)&&(rt=0),isNaN(Tt)&&(Tt=0),x=(x+lt)/2+dt*rt-St*Tt,b=(b+ut)/2+St*rt+dt*Tt,ut=E(1,0,(Et-rt)/y,(tt-Tt)/z),dt=(Et-rt)/y,lt=(tt-Tt)/z,Et=(-Et-rt)/y,rt=(-tt-Tt)/z,tt=E(dt,lt,Et,rt),Et=(dt*Et+lt*rt)/(Math.sqrt(dt*dt+lt*lt)*Math.sqrt(Et*Et+rt*rt)),-1>=Et?tt=Math.PI:1<=Et&&(tt=0),!st&&0<tt&&(tt-=2*Math.PI),st&&0>tt&&(tt+=2*Math.PI),st=y>z?1:y/z,Et=y>z?z/y:1,y=Je.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=fo.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(st,Et),Li.Ha(y,z),fo.free(z),a.ae=y,a.ae}Ae.Object.defineProperties(Wo.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Qn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Qn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Qn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Qn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Qn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Qn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Qn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Qn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Qn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Ei(a,">= zero",Wo,"radiusX"),this._isFrozen&&Qn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Ei(a,">= zero",Wo,"radiusY"),this._isFrozen&&Qn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Qn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Qn(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Qn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Qn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Qn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Wo.prototype.equalsApprox=Wo.prototype.Xa;var sl=new zn(Wo,"Move",0),Ts=new zn(Wo,"Line",1),kl=new zn(Wo,"Bezier",2),Iu=new zn(Wo,"QuadraticBezier",3),Da=new zn(Wo,"Arc",4),fh=new zn(Wo,"SvgArc",4);Wo.className="PathSegment",Wo.Move=sl,Wo.Line=Ts,Wo.Bezier=kl,Wo.QuadraticBezier=Iu,Wo.Arc=Da,Wo.SvgArc=fh;function zl(){this.H=null,this.xu=new re(0,0).freeze(),this.mt=new re(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}zl.prototype.copy=function(){var a=new zl;return this.clone(a)},zl.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},zl.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},zl.prototype.So=function(a,y){var x=this.diagram;return x===null||fd(x,a,y),y},zl.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(fd(x,a,y),y.assign(x.Ps(y))),y},Ae.Object.defineProperties(zl.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),zl.prototype.getMultiTouchDocumentPoint=zl.prototype.Bz,zl.prototype.getMultiTouchViewPoint=zl.prototype.So,zl.className="InputEvent";function rc(){this.H=null,this.xa="",this.ar=this.Lr=null}rc.prototype.copy=function(){var a=new rc;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},rc.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Ae.Object.defineProperties(rc.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),rc.className="DiagramEvent";function ia(){this.Fm=qs,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ia.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ia.prototype.copy=function(){var a=new ia;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=Sn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Sn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Sn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Sn(y)&&typeof y.J=="function"?y.J():y,a},ia.prototype.qb=function(a){a.classType===ia&&(this.change=a)},ia.prototype.toString=function(){var a="";return a=this.change===gu?a+"* ":this.change===qs?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===gu?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=kr(this.object)),this.oldValue!==null&&(a+=" old: "+kr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+kr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ia.prototype.I=function(a){return a?this.oldValue:this.newValue},ia.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ia.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ia.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ia.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ia.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Ae.Object.defineProperties(ia.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===gu&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),ia.prototype.redo=ia.prototype.redo,ia.prototype.canRedo=ia.prototype.canRedo,ia.prototype.undo=ia.prototype.undo,ia.prototype.canUndo=ia.prototype.canUndo,ia.prototype.getParam=ia.prototype.Dz,ia.prototype.getValue=ia.prototype.I,ia.prototype.clear=ia.prototype.clear;var gu=new zn(ia,"Transaction",-1),qs=new zn(ia,"Property",0),Na=new zn(ia,"Insert",1),tl=new zn(ia,"Remove",2);ia.className="ChangedEvent",ia.Transaction=gu,ia.Property=qs,ia.Insert=Na,ia.Remove=tl;function yt(){this.o=new ai().freeze(),this.xa="",this.j=!1}yt.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
`+b.toString())}}return y},yt.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},yt.prototype.canUndo=function(){return this.isComplete},yt.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},yt.prototype.canRedo=function(){return this.isComplete},yt.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},yt.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ji,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===qs&&b.object){var E=y.get(b.object);E||(E=new Ji,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},Ae.Object.defineProperties(yt.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),yt.prototype.optimize=yt.prototype.ak,yt.prototype.redo=yt.prototype.redo,yt.prototype.canRedo=yt.prototype.canRedo,yt.prototype.undo=yt.prototype.undo,yt.prototype.canUndo=yt.prototype.canUndo,yt.prototype.clear=yt.prototype.clear,yt.className="Transaction";function gt(){this.Pt=new ei,this.Jd=!1,this.u=new ai().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new ai().freeze(),this.hl=new ai,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}gt.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
`+this.history.M(b).toString(a-1);return y},gt.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},gt.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},jt=gt.prototype,jt.Xw=function(a){this.Pt.add(a)},jt.Rx=function(a){this.Pt.remove(a)},jt.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},jt.eb=function(a){return a===void 0&&(a=""),wt(this,!0,a)},jt.Kf=function(){return wt(this,!1,"")};function wt(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Ar("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}jt.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},gt.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},gt.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){Ar("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},gt.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},gt.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){Ar("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},gt.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new ia;for(b.change=gu,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},gt.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new yt);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Ar("Change not within a transaction: "+x.toString()))}},gt.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Ae.Object.defineProperties(gt.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),gt.prototype.handleChanged=gt.prototype.Tu,gt.prototype.redo=gt.prototype.redo,gt.prototype.undo=gt.prototype.undo,gt.prototype.canUndo=gt.prototype.canUndo,gt.prototype.discardHistoryAfterIndex=gt.prototype.lx,gt.prototype.rollbackTransaction=gt.prototype.Kf,gt.prototype.commitTransaction=gt.prototype.eb,gt.prototype.startTransaction=gt.prototype.Ea,gt.prototype.removeModel=gt.prototype.Rx,gt.prototype.addModel=gt.prototype.Xw,gt.prototype.clear=gt.prototype.clear,gt.className="UndoManager";function Ct(){Qo(this),this.H=Mh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new zl,this.Zr=-1}Ct.prototype.toString=function(){return this.name!==""?this.name+" Tool":ur(this.constructor)},Ct.prototype.updateAdornments=function(){},Ct.prototype.canStart=function(){return this.isEnabled},Ct.prototype.doStart=function(){},Ct.prototype.doActivate=function(){this.isActive=!0},Ct.prototype.doDeactivate=function(){this.isActive=!1},Ct.prototype.doStop=function(){},Ct.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ct.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Ct.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ct.prototype.doMouseMove=function(){},Ct.prototype.doMouseUp=function(){this.stopTool()},Ct.prototype.doMouseWheel=function(){},Ct.prototype.canStartMultiTouch=function(){return!0},Ct.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,re.allocAt(NaN,NaN)),b=y.So(1,re.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}re.free(x),re.free(b)},Ct.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,re.allocAt(NaN,NaN)),b=y.So(1,re.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new re((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=E,tt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}re.free(x),re.free(b)},Ct.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ct.prototype.doKeyUp=function(){},Ct.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Ct.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Ct.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(rs?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(rs?y.meta:y.control)||y.shift||a.clearSelection()}},Ct.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Qt(a,b,x),b.handled};function Qt(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}Ct.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(b===z||b!==null&&b.rg(z)||(rt(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;b!==null&&(tt=b.mouseEnter,!(tt!==null&&(z===b||z!==null&&z.rg(b)||(tt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},Ct.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Ct.prototype.doCurrentObjectChanged=function(){},Ct.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===ne&&!y.shift||E===Zt&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===ne&&y.shift||E===Zt&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var rt="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(rt,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(rt,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:rt="pixel";break;case 1:rt="line";break;case 2:rt="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(rt,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(rt,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Ct.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Ct.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=ui(function(){x.doWaitAfter(b)},a)},Ct.prototype.cancelWaitAfter=function(){this.Zr!==-1&&we.clearTimeout(this.Zr),this.Zr=-1},Ct.prototype.doWaitAfter=function(){},Ct.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Yo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Ct.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},Ae.Object.defineProperties(Ct.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof on&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),Ct.prototype.startTransaction=Ct.prototype.Ea,Ct.className="Tool";function kt(){Ct.call(this),this.name="ToolManager",this.hb=new ai,this.ob=new ai,this.Hb=new ai,this.F=this.V=850,this.o=new Ni(2,2).ja(),this.Ha=5e3,this.ia=Zt,this.u=Re,this.Mp=this.j=null,this.zj=-1}nn(kt,Ct),kt.prototype.initializeStandardTools=function(){},kt.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Yo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},kt.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Qe&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===en){y.bubbles=!0;return}if(this.gestureBehavior===Qe)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Zt?this.mouseWheelBehavior=ne:this.mouseWheelBehavior===ne&&(this.mouseWheelBehavior=Zt)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},kt.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===en){y.bubbles=!0;return}if(this.gestureBehavior===Qe)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Yt(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Yt(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}kt.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Yo&&(y===a||y.rg(a))||this.hideToolTip()},kt.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},kt.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},kt.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Yo)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},kt.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Yo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof ts&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(we.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=ui(function(){E.hideToolTip()},a)}},kt.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},kt.prototype.hideToolTip=function(){this.zj!==-1&&(we.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Yo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ts&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},kt.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},kt.prototype.doMouseWheel=function(){this.standardMouseWheel()},kt.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},kt.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},kt.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},kt.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},kt.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},Ae.Object.defineProperties(kt.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Yo?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),kt.prototype.replaceStandardTool=kt.prototype.gb;var Zt=new zn(kt,"WheelScroll",0),ne=new zn(kt,"WheelZoom",1),Ce=new zn(kt,"WheelNone",2),Re=new zn(kt,"GestureZoom",3),Qe=new zn(kt,"GestureCancel",4),en=new zn(kt,"GestureNone",5);kt.className="ToolManager",kt.WheelScroll=Zt,kt.WheelZoom=ne,kt.WheelNone=Ce,kt.GestureZoom=Re,kt.GestureCancel=Qe,kt.GestureNone=en;function ce(){Ct.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new re(NaN,NaN),this.Fr=new re,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new ei().freeze(),this.ia=new ot,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var kn;nn(ce,Ct),ce.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},ce.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},ce.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(rs?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},ce.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Vi=null,this.isActive=!0,this.tl.set(a.position),Bn(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&_l(a),gc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Vi=this,zi=this.diagram,this.doSimulatedDragOut()))};function Bn(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Bi?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new Wi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}ce.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},ce.prototype.Pd=function(a){return a===void 0?new wh(zo):this.isGridSnapEnabled?new wh(new re(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new wh(a.copy())},ce.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),jn(this),Ih(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<kn.count){for(var y=kn,x=y.length,b=0;b<x;b++){var E=y.M(b);Ui(E),mi(E),jn(E),E.diagram.ug()}y.clear()}Ui(this),this.tl.h(NaN,NaN),zi!==null&&(zi.currentCursor=""),Vi=zi=null,mi(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Oc(a,!0)},ce.prototype.stopTransaction=function(){var a=this.diagram,y=Ct.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function jn(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,li(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function an(){var a=Vi;mi(a),Er(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}ce.prototype.doCancel=function(){mi(this),Er(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},ce.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},ce.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function On(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Er(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new Ji,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Bi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Bn(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Mf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function mi(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof Bi&&(x.value.point=new re(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Ui(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function ir(a,y,x){var b=a.diagram,E=a.startPoint,z=re.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),re.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(_l(b),b.hk())}ce.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&fc(b,a,y,this.dragOptions,x)};function Er(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Bi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Mf(b,-E.x,-E.y)}y.bd()}}function _i(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),yn(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=li(a,E,b),!a.isActive&&Vi===null)return;var rt=b!==null?b.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof qr)){var st=x.mouseDragOver;st!==null&&(st(E),tt=!0)}if(!a.isActive&&Vi===null||(a.doDragOver(y,b),!a.isActive&&Vi===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}ce.prototype.findDragOverObject=function(a){var y=this;return bs(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Yo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},ce.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function li(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<E;tt++){var rt=a.Cg[tt],st=rt.mouseDragLeave;if(st!==null&&(st(y,rt,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Vi===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Xi(E);for(E=a.Cg.length,x=0;x<E&&(tt=a.Cg[x],rt=tt.mouseDragEnter,rt===null||(rt(y,tt,z),b=!0,!y.handled));x++);return b}function Xi(a){var y=a.panel;return y!==null?y:a instanceof Sr&&!(a instanceof qr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function yr(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(lt){return b.findValidLinkablePort(lt,x)});a=re.alloc();var z=1/0,tt=null;for(E=E.iterator;E.next();){var rt=E.value;if(rt.part!==null){var st=rt.ga(bo,a);st=y.Bf(st),st<z&&(tt=rt,z=st)}}return re.free(a),tt}function yn(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,tt=null;x.fromNode===null&&(z=yr(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,st=null;x.toNode===null&&(rt=yr(a,x.i(x.pointsCount-1),!0),rt!==null&&(st=rt.part)),E.isValidLink(tt,z,st,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=st,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):or(E,tt,z,st,rt):or(E,null,null,null,null)}}}}ce.prototype.doDragOver=function(){};function bn(a,y){var x=a.diagram;a.dragsLink&&yn(a,!0),jn(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(E,z),E.handled))break;bi(a,E,z),z=Xi(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Vi!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Qi&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Vi!==null){for(a=Mn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Qi&&hi(x,b,a);Mn.free(a)}}}function bi(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof qr||(x=a.mouseDrop,x!==null&&x(y))}function hi(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Bi},!0,function(E){return E instanceof Bi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}ce.prototype.doDropOnto=function(){},ce.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(On(this,!1),gc(a,this.copiedParts),ir(this,this.copiedParts,!1),Ih(a,this.copiedParts)):this.mayMove()?(mi(this),ir(this,this.draggedParts,!0)):this.mayDragOut()?(On(this,!1),ir(this,this.copiedParts,!1)):mi(this),_i(this,a.lastInput.documentPoint))}},ce.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(mi(this),On(this,!0),gc(a,this.copiedParts),ir(this,this.copiedParts,!1),Ih(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,mi(this),this.mayMove()&&(ir(this,this.draggedParts,!0),_i(this,a.lastInput.documentPoint))),this.Ym=!0,bn(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&cr(this),a.Ya(),Ih(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},ce.prototype.simulatedMouseMove=function(a,y,x){if(Vi===null)return!1;var b=Vi.diagram;x instanceof on||(x=null);var E=zi;return x!==E&&(E!==null&&E!==b&&(E.ug(),Vi.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),zi=x,x!==null&&x!==b&&(an(),E=x.toolManager.findTool("Dragging"),E!==null&&(kn.contains(E)||kn.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},ce.prototype.simulatedMouseUp=function(a,y,x){if(Vi===null)return!1;var b=zi,E=Vi.diagram;if(x===null)return Vi.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Vi.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;zi=x,b=x.toolManager.findTool("Dragging"),b!==null&&(an(),kn.contains(b)||kn.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new re),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Vi,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function cr(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Qi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}ce.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(rs?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},ce.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},ce.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},ce.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},ce.prototype.Az=function(){return Vi},ce.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Vi;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},ce.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Tl(a),a.animationManager.Cc(),a=Vi,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},ce.prototype.doSimulatedDragLeave=function(){var a=Vi;a!==null&&a.doSimulatedDragOut(),this.doCancel()},ce.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Vi;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;sr(this,y.draggedParts.Lf(),!1,a.firstInput),ir(this,this.copiedParts,!1),_i(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},ce.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Vi;if(y!==null){var x=y.diagram;if(y.Ym=!0,mi(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),sr(this,y.draggedParts.Lf(),!0,a.lastInput),ir(this,this.copiedParts,!1);var b=new ei;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),bn(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function sr(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=Mn.alloc();E=b=1/0;for(var tt=-1/0,rt=-1/0,st=y.iterator;st.next();){var lt=st.value;if(lt.isVisible()){var ut=lt.location;lt=ut.x,ut=ut.y,isNaN(lt)||isNaN(ut)||(lt<b&&(b=lt),ut<E&&(E=ut),lt>tt&&(tt=lt),ut>rt&&(rt=ut))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,tt-b,rt-E),b=z.x+z.width/2,E=z.y+z.height/2,Mn.free(z),z=a.Fr,tt=new Ji,rt=re.alloc(),st=y.iterator;st.next();)lt=st.value,lt instanceof Bi&&lt.canCopy()&&(ut=x.I(lt),ut!==null&&(ut.points=lt.points,Mf(ut,z.x-b,z.y-E),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)lt=y.value,lt.Zc()&&lt.canCopy()&&(st=x.I(lt),st!==null&&(lt=lt.location,rt.h(z.x-(b-lt.x),z.y-(E-lt.y)),st.location=rt,st.Va(),tt.add(st,a.Pd(rt))));re.free(rt),a.copiedParts=tt,Bn(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Mf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}ce.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},ce.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new re},Ae.Object.defineProperties(ce.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),ce.prototype.getDraggingSource=ce.prototype.Az;var Vi=null,zi=null;ce.className="DraggingTool",kn=new ai,Oo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),kt.prototype.doCancel=function(){Vi!==null&&Vi.doCancel(),Ct.prototype.doCancel.call(this)};function Gi(){Ct.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Bi,y=new io;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new io,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Qi,y=new io,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=hs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Qi,y=new io,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=hs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Ji,this.Of=this.gj=this.Pf=null}nn(Gi,Ct),Gi.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Gi.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=Ni.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,Ni.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=bo,z=re.alloc(),x.location=y.ga(bo,z),re.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Gi.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=hs,y.fromSpot=Pa,y.toSpot=Pa),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Gi.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Gi.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Qi){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Gi.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Qi))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Qi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Gi.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(dt){return E.findValidLinkablePort(dt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof Qi){var st=tt.ga(bo,re.alloc()),lt=x.x-st.x,ut=x.y-st.y;re.free(st),st=lt*lt+ut*ut,st<b&&(lt=this.validPortsCache.I(tt),lt!==null?lt&&(y=tt,b=st):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,rt,tt)||!a&&this.isValidLink(rt,tt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(tt,!0),y=tt,b=st):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof Qi&&(x.layer===null||x.layer.allowLink))?y:null},Gi.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Gi.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Gi.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Gi.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Qi))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Qi))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},Gi.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},Gi.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new ei;return b.add(a),rr(this,x,y,b)};function rr(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),rr(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),rr(a,y.labeledLink,x,b))))}Gi.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==Ou){if(b===zc){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!ao(this,a,y,x,!0)}if(b===Gc){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!ao(this,a,y,x,!0)}if(b===yh)return a===y?a=!0:(b=new ei,b.add(y),a=tn(this,b,a,y,x)),!a;if(b===vc)return!ao(this,a,y,x,!1);if(b===Hc)return a===y?a=!0:(b=new ei,b.add(y),a=Un(this,b,a,y,x)),!a}return!0};function ao(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==b&&(!E||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&ao(a,tt,x,b,E)))return!0}return!1}function tn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&tn(a,y,tt,b,E)))return!0}return!1}function Un(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&Un(a,y,rt,b,E))return!0}}return!1}Ae.Object.defineProperties(Gi.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Gi.className="LinkingBaseTool";function Gn(){Gi.call(this),this.name="Linking",this.V={},this.F=null,this.K=pi,this.Xd=null}nn(Gn,Gi),Gn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},Gn.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Qi)))return null;var x=this.direction;if(x===pi||x===Oi){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===pi||x===$i)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Gn.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Qi&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Qi&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},Gn.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Gn.prototype.doStop=function(){Gi.prototype.doStop.call(this),this.startObject=null},Gn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof Qi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=rt,E=tt):(y=rt,x=tt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},Gn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Bi)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},Gn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},Gn.prototype.doNoLink=function(){},Ae.Object.defineProperties(Gn.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var pi=new zn(Gn,"Either",0),Oi=new zn(Gn,"ForwardsOnly",0),$i=new zn(Gn,"BackwardsOnly",0);Gn.className="LinkingTool",Gn.Either=pi,Gn.ForwardsOnly=Oi,Gn.BackwardsOnly=$i;function Wi(){Gi.call(this),this.name="Relinking";var a=new io;a.figure="Diamond",a.desiredSize=Gs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new io,a.figure="Diamond",a.desiredSize=Gs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Mn}nn(Wi,Gi),Wi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Bi){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Wi.prototype.makeAdornment=function(a,y){var x=new Yo;return x.type=Ln.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Wi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Wi.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Yo&&x.adornedPart instanceof Bi))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=to),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=to),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},Wi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Qp||x===Nf)&&(x=oh),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},Wi.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Wi.prototype.doStop=function(){Gi.prototype.doStop.call(this),this.handle=null},Wi.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof Qi&&(this.isForwards?(b=tt,E=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Wi.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},Wi.prototype.doNoRelink=function(){};function or(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Ae.Object.defineProperties(Wi.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Yo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Wi.className="RelinkingTool",Oo("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Oo("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Mr(){Ct.call(this),this.name="LinkReshaping";var a=new io;a.figure="Rectangle",a.desiredSize=zs,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new io,a.figure="Diamond",a.desiredSize=Gs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new re,this.Yq=new ai}nn(Mr,Ct),Mr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Uo},Mr.prototype.om=function(a,y){a.reshapingBehavior=y},Mr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Bi){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},Mr.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Yo,E.type=Ln.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=b?1:0;if(y.resegmentable&&y.computeCurve()!==xA)for(var rt=x+tt;rt<z-tt;rt++){var st=this.makeResegmentHandle(a,rt);st!==null&&(st.segmentIndex=rt,st.segmentFraction=.5,st.fromMaxLinks=999,E.add(st))}for(tt=x+1;tt<z;tt++)if(rt=this.makeHandle(a,tt),rt!==null){if(rt.segmentIndex=tt,tt!==x)if(tt===x+1&&b){st=y.i(x);var lt=y.i(x+1);Je.B(st.x,lt.x)&&Je.B(st.y,lt.y)&&(lt=y.i(x-1)),Je.B(st.x,lt.x)?(this.om(rt,Ss),rt.cursor="n-resize"):Je.B(st.y,lt.y)&&(this.om(rt,Lo),rt.cursor="w-resize")}else tt===z-1&&b?(st=y.i(z-1),lt=y.i(z),Je.B(st.x,lt.x)&&Je.B(st.y,lt.y)&&(st=y.i(z+1)),Je.B(st.x,lt.x)?(this.om(rt,Ss),rt.cursor="n-resize"):Je.B(st.y,lt.y)&&(this.om(rt,Lo),rt.cursor="w-resize")):tt!==z&&(this.om(rt,wr),rt.cursor="move");E.add(rt)}E.adornedObject=a}return E},Mr.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Mr.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Mr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Mr.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Bi){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},Mr.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Mr.prototype.stopTransaction=function(){var a=this.diagram,y=Ct.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Mr.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Mr.prototype.getResegmentingPoint=function(){return this.handle.ga(bo)},Mr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Mr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var tt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Gr(this,tt,b,E,z,!0)||Gr(this,tt,b,E,z,!1))){var rt=y.points.copy();Gr(this,tt,b,E,z,!0)?(rt.cd(x-2,new re(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new re(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new re((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new re((z.x+tt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else tt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Gr(this,b,E,z,tt,!0)||Gr(this,b,E,z,tt,!1))&&(rt=y.points.copy(),Gr(this,b,E,z,tt,!0)?(rt.cd(x-1,new re(b.x,(b.y+tt.y)/2)),rt.cd(x+2,new re(tt.x,(b.y+tt.y)/2))):(rt.cd(x-1,new re((b.x+tt.x)/2,b.y)),rt.cd(x+2,new re((b.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=re.alloc(),Je.qh(b.x,b.y,z.x,z.y,E.x,E.y,tt)&&tt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),re.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Gr(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}Mr.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Ss?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Lo&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===Ss?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===Lo&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),tt=y.i(b+1);Je.B(z.x,E.x)&&Je.B(E.y,tt.y)?(Je.B(z.x,y.i(b-2).x)&&!Je.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Je.B(tt.y,y.i(b+2).y)&&!Je.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)):Je.B(z.y,E.y)&&Je.B(E.x,tt.x)?(Je.B(z.y,y.i(b-2).y)&&!Je.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Je.B(tt.x,y.i(b+2).x)&&!Je.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):Je.B(z.x,E.x)&&Je.B(E.x,tt.x)?(Je.B(z.x,y.i(b-2).x)&&!Je.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Je.B(tt.x,y.i(b+2).x)&&!Je.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):Je.B(z.y,E.y)&&Je.B(E.y,tt.y)&&(Je.B(z.y,y.i(b-2).y)&&!Je.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Je.B(tt.y,y.i(b+2).y)&&!Je.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(bo,re.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,re.alloc()),y.L(0,b.x,b.y),re.free(z),re.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(bo,re.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,re.alloc()),y.L(y.pointsCount-1,a.x,a.y),re.free(x),re.free(a));y.zf()},Mr.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case wr:return a;case Ss:return new re(y.i(x).x,a.y);case Lo:return new re(a.x,y.i(x).y);default:case Uo:return y.i(x)}},Ae.Object.defineProperties(Mr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Yo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Mr.prototype.setReshapingBehavior=Mr.prototype.om,Mr.prototype.getReshapingBehavior=Mr.prototype.Ru;var Uo=new zn(Mr,"None",0),Lo=new zn(Mr,"Horizontal",1),Ss=new zn(Mr,"Vertical",2),wr=new zn(Mr,"All",3);Mr.className="LinkReshapingTool",Mr.None=Uo,Mr.Horizontal=Lo,Mr.Vertical=Ss,Mr.All=wr,Oo("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function _n(){Ct.call(this),this.name="Resizing",this.o=new Ni(1,1).freeze(),this.j=new Ni(9999,9999).freeze(),this.yg=new Ni(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new io;a.alignmentFocus=bo,a.figure="Rectangle",a.desiredSize=zs,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new re,this.Dw=new Ni,this.Tn=new re,this.rt=new Ni(0,0),this.qt=new Ni(1/0,1/0),this.pt=new Ni(1,1)}nn(_n,Ct),_n.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Bi)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),ng(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},_n.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Yo,y.type=Ln.Spot,y.locationSpot=bo;var x=new rh;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Za)),y.add(this.makeHandle(a,zu)),y.add(this.makeHandle(a,Rl)),y.add(this.makeHandle(a,Ea)),y.add(this.makeHandle(a,ga)),y.add(this.makeHandle(a,Ba)),y.add(this.makeHandle(a,ol)),y.add(this.makeHandle(a,Zs))}else if(cu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},_n.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},_n.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=bo),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Ln)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},_n.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},_n.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},_n.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},_n.prototype.stopTransaction=function(){var a=this.diagram,y=Ct.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},_n.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},_n.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,re.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),re.free(E)}},_n.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,re.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),re.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},_n.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof qr){var b=new ai;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new ot;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},_n.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=bo);var tt=this.adornedObject.naturalBounds,rt=tt.x,st=tt.y,lt=tt.x+tt.width,ut=tt.y+tt.height,dt=1;if(!z){dt=tt.width;var St=tt.height;0>=dt&&(dt=1),0>=St&&(St=1),dt=St/dt}return St=re.alloc(),Je.No(a.x,a.y,rt,st,E.width,E.height,St),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(St.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.y=Math.max(St.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(dt*a.width,b.height),x.height),a.width=a.height/dt):(a.width=Math.max(Math.min(a.height/dt,b.width),x.width),a.height=dt*a.width),a.x=lt-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(St.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.height=Math.max(Math.min(St.y-st,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(dt*a.width,b.height),x.height),a.width=a.height/dt):(a.width=Math.max(Math.min(a.height/dt,b.width),x.width),a.height=dt*a.width),a.x=lt-a.width)):(a.x=Math.max(St.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=lt-a.x,z||(a.height=Math.max(Math.min(dt*a.width,b.height),x.height),a.width=a.height/dt,a.y=st+.5*(ut-st-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(St.x-rt,b.width),x.width),a.y=Math.max(St.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(dt*a.width,b.height),x.height),a.width=a.height/dt):(a.width=Math.max(Math.min(a.height/dt,b.width),x.width),a.height=dt*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(St.x-rt,b.width),x.width),a.height=Math.max(Math.min(St.y-st,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(dt*a.width,b.height),x.height),a.width=a.height/dt):(a.width=Math.max(Math.min(a.height/dt,b.width),x.width),a.height=dt*a.width))):(a.width=Math.max(Math.min(St.x-rt,b.width),x.width),z||(a.height=Math.max(Math.min(dt*a.width,b.height),x.height),a.width=a.height/dt,a.y=st+.5*(ut-st-a.height))):0>=y.y?(a.y=Math.max(St.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/dt,b.width),x.width),a.height=dt*a.width,a.x=rt+.5*(lt-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(St.y-st,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/dt,b.width),x.width),a.height=dt*a.width,a.x=rt+.5*(lt-rt-a.width))),re.free(St),a},_n.prototype.computeReshape=function(){var a=ti;return this.adornedObject instanceof io&&(a=zd(this.adornedObject)),!(a===qi||this.diagram.lastInput.shift)},_n.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},_n.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},_n.prototype.computeCellSize=function(){var a=new Ni(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},Ae.Object.defineProperties(_n.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Yo))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Yo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),_n.className="ResizingTool",Oo("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function ls(){Ct.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new re,this.ue=null;var a=new io;a.figure="Ellipse",a.desiredSize=Gs,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new re(NaN,NaN),this.u=0,this.F=50}nn(ls,Ct),ls.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},ls.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Yo,y.type=Ln.Position,y.locationSpot=bo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(cu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ls.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ls.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},ls.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(bo)},ls.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},ls.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new re(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ls.prototype.stopTransaction=function(){var a=this.diagram,y=Ct.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ls.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ls.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ls.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},ls.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},ls.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Ae.Object.defineProperties(ls.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Yo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Yo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),ls.className="RotatingTool",Oo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Jo(){Ct.call(this),this.name="ClickSelecting"}nn(Jo,Ct),Jo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Jo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Jo.className="ClickSelectingTool";function Rr(){Ct.call(this),this.name="Action",this.pk=null}nn(Rr,Ct),Rr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Rr.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Rr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Rr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Rr.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Rr.prototype.doStop=function(){this.pk=null},Rr.className="ActionTool";function So(){Ct.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new re(0,0)}nn(So,Ct),So.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},So.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},So.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Sr)x.Zc()&&(cu(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Sn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=re.allocAt(a.x,a.y);this.isGridSnapEnabled&&mh(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),re.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Ae.Object.defineProperties(So.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),So.className="ClickCreatingTool";function xo(){Ct.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Sr;a.layerName="Tool",a.selectable=!1;var y=new io;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}nn(xo,Ct),xo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},xo.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},xo.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},xo.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=Ni.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Ni.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},xo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},xo.prototype.computeBoxBounds=function(){var a=this.diagram;return new Mn(a.firstInput.documentPoint,a.lastInput.documentPoint)},xo.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),rs?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new ai,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Ae.Object.defineProperties(xo.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),xo.className="DragSelectingTool";function Yr(){Ct.call(this),this.name="Panning",this.Xt=new re,this.xy=new re,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(we.document,"scroll",a.Kw,!1),a.stopTool()}}nn(Yr,Ct),Yr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},Yr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(we.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Yr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Yr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Yr.prototype.doMouseMove=function(){this.move()},Yr.prototype.doMouseUp=function(){this.move(),this.stopTool()},Yr.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},Ae.Object.defineProperties(Yr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Yr.className="PanningTool",Oo("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Oo("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Oo("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Oo("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Oo("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function ts(){this.F=this.u=this.j=this.o=null}Ae.Object.defineProperties(ts.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),ts.className="HTMLInfo";function ms(a,y,x){this.text=a,this.hx=y,this.visible=x}ms.className="ContextMenuButtonInfo";function cs(){Ct.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new re,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}nn(cs,Ct);function Ds(a){var y=new ts;y.show=function(E,z,tt){tt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},ko=y,a.tu=function(){a.stopTool()},y=Pi("div");var x=Pi("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=Pi("style");we.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",$o,!1),b.addEventListener(y,"selectstart",$o,!1),b.addEventListener(x,"contextmenu",$o,!1)),y.className="goCXforeground",x.className="goCXbackground",we.document.body&&(we.document.body.appendChild(y),we.document.body.appendChild(x)),gh=y,Ca=x,Au=!0}function $o(a){return a.preventDefault(),!1}cs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},cs.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},cs.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},cs.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof on||(a instanceof _e?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},cs.prototype.doActivate=function(){},cs.prototype.doMouseDown=function(){if(Ct.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Yo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&ra(this)},cs.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Yo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}ra(this)};function ra(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof ts||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Bs(a,!0),a.isActive||a.stopTool())}cs.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Bs(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=ko,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof _e?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Yo&&!a.currentContextMenu.visible&&a.stopTool()}}cs.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},cs.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Yo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof ts&&a.show(y,x,this);this.currentContextMenu=a},cs.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},cs.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Yo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ts&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function ta(a){var y=new ai;return y.add(new ms("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new ms("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new ms("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new ms("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new ms("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new ms("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new ms("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new ms("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new ms("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new ms("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new ms("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new ms("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new ms("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}cs.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=ta(this)),gh.innerHTML="",Ca.addEventListener("pointerdown",this.tu,!1);var y=this,x=Pi("ul");x.className="goCXul",gh.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=Pi("li"),z.className="goCXli";var tt=Pi("a");tt.className="goCXa",tt.href="#",tt.ky=E.hx,tt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),tt.textContent=E.text,z.appendChild(tt),x.appendChild(z)}}gh.style.display="block",Ca.style.display="block"},cs.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ko){gh.style.display="none",Ca.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Ca,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Ae.Object.defineProperties(cs.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Yo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Au===!1&&ko===null&&ss&&Ds(this),ko},set:function(a){a===null&&(Au=!0),ko=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ko=null,Au=!1,Ca=null,gh=null;cs.className="ContextMenuTool",Oo("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Ho(){Ct.call(this),this.name="TextEditing",this.Zh=new Is,this.ia=null,this.V=wl,this.vj=null,this.qa=Ia,this.u=1,this.F=!0,this.o=null,this.j=new ts,this.kt=null,gl(this,this.j)}nn(Ho,Ct);function gl(a,y){if(ss){var x=Pi("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(ph)):E==="Tab"?(a.acceptText(oa),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ia){var b=a.kt;a.qa===cA&&(a.qa=ou),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ia){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof Is&&z instanceof Ho)if(z.state===Fh)x.style.border="3px solid red",x.focus();else{var tt=b.ga(bo),rt=E.position,st=E.scale,lt=b.Df()*st;lt<z.minimumEditorScale&&(lt=z.minimumEditorScale);var ut=b.naturalBounds.width*lt+6,dt=b.naturalBounds.height*lt+2,St=(tt.x-rt.x)*st;tt=(tt.y-rt.y)*st,rt=b.verticalAlignment,st=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*lt,dt=rt.y*dt-rt.y*st+rt.offsetY-(.5*dt-.5*st)-st/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*lt+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(St-ut/2|0)-1+"px",x.style.top=(tt+dt|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=lt,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Ho.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||wu&&wu!==this&&(wu.acceptText(ku),wu&&wu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Is&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===wl&&!y.isSelected||this.starting===_s&&2>a.lastInput.clickCount)):!1},Ho.prototype.doStart=function(){wu=this,this.textBlock!==null&&this.doActivate()},Ho.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Is&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=cA;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Mn(this.textBlock.ga(Za),this.textBlock.ga(Rl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Ho.prototype.doCancel=function(){this.stopTool()},Ho.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ho.prototype.doMouseDown=function(){this.isActive&&this.acceptText(ku)},Ho.prototype.acceptText=function(a){switch(a){case ku:this.qa===Cs?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===cA||this.qa===Fh||this.qa===ou)&&(this.qa=dA,AA(this));break;case Ha:case ph:case oa:(ph!==a||this.textBlock.isMultiline!==!0)&&(this.qa===cA||this.qa===Fh||this.qa===ou)&&(this.qa=dA,AA(this))}};function AA(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=Cs,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Fh,a.doError(E,z))}}Ho.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Ho.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ho.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ia,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ho.prototype.doStop=function(){wu=null},Ho.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Ho.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Ae.Object.defineProperties(Ho.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Ho.prototype.measureTemporaryTextBlock=Ho.prototype.Lx;var Ha=new zn(Ho,"LostFocus",0),ku=new zn(Ho,"MouseDown",1),oa=new zn(Ho,"Tab",2),ph=new zn(Ho,"Enter",3),oc=new zn(Ho,"SingleClick",0),wl=new zn(Ho,"SingleClickSelected",1),_s=new zn(Ho,"DoubleClick",2),Ia=new zn(Ho,"StateNone",0),cA=new zn(Ho,"StateActive",1),ou=new zn(Ho,"StateEditing",2),dA=new zn(Ho,"StateValidating",3),Fh=new zn(Ho,"StateInvalid",4),Cs=new zn(Ho,"StateValidated",5),wu=null;Ho.className="TextEditingTool",Ho.LostFocus=Ha,Ho.MouseDown=ku,Ho.Tab=oa,Ho.Enter=ph,Ho.SingleClick=oc,Ho.SingleClickSelected=wl,Ho.DoubleClick=_s,Ho.StateNone=Ia,Ho.StateActive=cA,Ho.StateEditing=ou,Ho.StateValidating=dA,Ho.StateInvalid=Fh,Ho.StateValidated=Cs,Oo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Fl(a){fA||(sc(),fA=!0),this.H=Mh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Zu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new ei,this.ce=new El,this.ce.Yd=this,this.Ei=new ei,this.pu=new ei,this.Sr=new ei,this.pr=new ei,a&&Object.assign(this,a)}Fl.prototype.Xe=function(a){this.H=a},Fl.prototype.canStart=function(){return!0};function Gl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ml(a.H),a.zb=!0)}function ho(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Zu?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===sd&&y.vc.clear(),a.Qw=!!(a.Pk===UA&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ac(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==ma&&b!==null&&(delete b.start.scale,delete b.end.scale),we.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&_l(x),Fd(x),a.zb=!1,y.start(),y.bc&&(Su(a),x.Ya(),ld(y,0),Tl(x,!0),xu(a),x.R("AnimationStarting",a)))}))}}function pl(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ku(a,y,x,b){a.isTicking||pl(a)||y instanceof Bi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}jt=Fl.prototype,jt.fv=function(a){return this.ce.fv(a)},jt.Xu=function(a){return this.ce.Xu(a)};function PA(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var rt=!0;else{for(rt=tt.vc.iterator;rt.next();){var st=rt.key;if(st instanceof _e&&st.diagram!==null||st instanceof on){rt=!0;break t}}rt=!1}rt?ad(tt,!1):tt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Su(E),Tl(E.H),xu(E)),we.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),we.requestAnimationFrame(function(){x()}))}function pu(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Su(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function xu(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}jt.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),ac(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),ac(y,this.H)},jt.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},jt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),fl(this,a))},jt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Kh(this.ce,y,"position",y.position,y.position),fl(this,a))};function Wu(a,y,x){!a.zb||y.D(x)||pl(a)||(a.H.pi||(y=x.copy()),Kh(a.ce,a.H,"position",y,x))}function Vu(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function fl(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Yu(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],rt=a[2];a=a[3];var st=y[0],lt=y[1],ut=y[2];return y=y[3],rt===0||rt===100?(z=st,tt=lt):(ut===0||ut===100)&&(st=z,lt=tt),180<Math.abs(st-z)&&(st>z?z+=360:st+=360),z=E(x,z,st-z,b)%360,tt=E(x,tt,lt-tt,b),rt=E(x,rt,ut-rt,b),x=E(x,a,y-a,b),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function sc(){function a(x,b,E,z,tt,rt){x.position=new re(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}var y=new Ji;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new re(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("location",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!0):x.location=new re(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:placeholder",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new re(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:nodeCollapse",function(x,b,E,z,tt,rt){var st=x.actualBounds,lt=E.actualBounds;E=lt.x+lt.width/2-st.width/2,st=lt.y+lt.height/2-st.height/2,tt<rt?x.mm(z(tt,b.x,E-b.x,rt),z(tt,b.y,st-b.y,rt),!1):x.position=new re(z(tt,b.x,E-b.x,rt),z(tt,b.y,st-b.y,rt))}),y.add("desiredSize",function(x,b,E,z,tt,rt){x.desiredSize=new Mn(z(tt,b.width,E.width-b.width,rt),z(tt,b.height,E.height-b.height,rt))}),y.add("width",function(x,b,E,z,tt,rt){x.width=z(tt,b,E-b,rt)}),y.add("height",function(x,b,E,z,tt,rt){x.height=z(tt,b,E-b,rt)}),y.add("fill",function(x,b,E,z,tt,rt){x.fill=Yu(b,E,tt,rt,z)}),y.add("stroke",function(x,b,E,z,tt,rt){x.stroke=Yu(b,E,tt,rt,z)}),y.add("strokeWidth",function(x,b,E,z,tt,rt){x.strokeWidth=z(tt,b,E-b,rt)}),y.add("strokeDashOffset",function(x,b,E,z,tt,rt){x.strokeDashOffset=z(tt,b,E-b,rt)}),y.add("background",function(x,b,E,z,tt,rt){x.background=Yu(b,E,tt,rt,z)}),y.add("areaBackground",function(x,b,E,z,tt,rt){x.areaBackground=Yu(b,E,tt,rt,z)}),y.add("opacity",function(x,b,E,z,tt,rt){x.opacity=z(tt,b,E-b,rt)}),y.add("scale",function(x,b,E,z,tt,rt){x.scale=z(tt,b,E-b,rt)}),y.add("angle",function(x,b,E,z,tt,rt){x.angle=z(tt,b,E-b,rt)}),Xu=y}Ae.Object.defineProperties(Fl.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Ei(a,">= 1",Fl,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Fl.prototype.stopAnimation=Fl.prototype.Cc;var Xu=null,fA=!1,Zu=new zn(Fl,"Default",1),UA=new zn(Fl,"AnimateLocations",2),sd=new zn(Fl,"None",3);Fl.className="AnimationManager",Fl.defineAnimationEffect=function(a,y){fA||(sc(),fA=!0),Xu.add(a,y)},Fl.Default=Zu,Fl.AnimateLocations=UA,Fl.None=sd;function El(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=kc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=zo,this.vc=new Ji,this.Tt=new Ji,this.yl=new ei,this.Ut=new ei,this.dw=Xh,a&&Object.assign(this,a)}El.prototype.suspend=function(){this.Xk=!0},El.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ad(this,!0),Su(this.Yd),Tl(this.H),xu(this.Yd),this.H.redraw()};function ac(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}jt=El.prototype,jt.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof on?a=x:x instanceof _e&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===Zu&&this===y.defaultAnimation&&(this.Lp=qd,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=KA),Su(y),this.yl.each(function(b){b.data=null,a.add(b)}),xu(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,PA(y,this),this)},jt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},jt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof on?this.H=a:a instanceof _e&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Sr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Kh(this,a,y,x,b,E),this};function Kh(a,y,x,b,E,z){var tt=a.vc;if(y instanceof on&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(MA(b),Pg(),b=[Ai.j,Ai.u,Ai.o,Ai.F],MA(E),Pg(),E=[Ai.j,Ai.u,Ai.o,Ai.F]),tt.contains(y)){var rt=tt.I(y),st=rt.start,lt=rt.end;st[x]===void 0&&(st[x]=QA(b)),lt[x]=QA(E)}else st={},lt={},st[x]=QA(b),lt[x]=QA(E),rt=st.position,y instanceof _e&&rt instanceof re&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(lt.position),rt=new lc(st,lt,z),tt.add(y,rt);tt=st[x],tt instanceof re&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Sr?rt.Ku.location=QA(y.location):z&&(rt.Ku[x]=QA(b))}function QA(a){return a instanceof re||a instanceof Ni?a.copy():a}jt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},jt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function ad(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Su(x),ld(a,E),Tl(a.H,!0),xu(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function ld(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof _e&&z.diagram===null)){var tt=b.value,rt=E?tt.end:tt.start;tt=E?tt.start:tt.end;var st=Xu,lt;for(lt in tt)lt==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||st.get(lt)===null||st.get(lt)(z,rt[lt],tt[lt],a.Lp,y,x,a)}}}jt.stop=function(){return this.bc?(this.Ml(!0),this):this},jt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Su(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=Xu;b.next();){var tt=b.key,rt=b.value,st=E?rt.end:rt.start,lt=E?rt.start:rt.end,ut=rt.Ku,dt;for(dt in lt)if(z.get(dt)!==null){var St=dt;!rt.Hu||St!=="position:nodeCollapse"&&St!=="position:placeholder"||(St="position"),z.get(St)(tt,st[dt],ut[dt]!==void 0?ut[dt]:rt.Hu?st[dt]:lt[dt],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof Sr&&(tt.location=ut.location),rt.nv&&tt instanceof Sr&&tt.Zb(!1)}if(y.As.clear(),Oc(y,!1),y.Ya(),y.N(),Tl(y,!0),x.defaultAnimation===this){for(dt=x.pr.iterator;dt.next();)E=dt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Tl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),xu(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ac(this,null),x.Ml(this),y.$b())}},jt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof qr&&(b=y.placeholder),b!==null?(x=b.ga(Za),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new re(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof qr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Qi&&this.Cj(b,y)},jt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof qr&&(x=y.placeholder),x!==null){var b=x.ga(Za);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof qr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Qi&&this.Aj(b,y)}},jt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Ae.Object.defineProperties(El.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Ei(a,">= 1",El,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:Fe("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),El.prototype.getTemporaryState=El.prototype.Ez,El.prototype.stop=El.prototype.stop,El.prototype.add=El.prototype.add,El.prototype.addTemporaryPart=El.prototype.Iy;function kc(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function qd(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}El.className="Animation",El.EaseLinear=function(a,y,x,b){return x*a/b+y},El.EaseInOutQuad=kc,El.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},El.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},El.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},El.EaseOutExpo=qd;function lc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}lc.className="AnimationState";function Bu(a,y,x){this.xd=null,this.rf=a,this.so=x||Zl,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=RA))}Bu.prototype.copy=function(){var a=new Bu(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function tf(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Ae.Object.defineProperties(Bu.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Zl=new zn(Bu,"Default",1),RA=new zn(Bu,"Immediate",2),uc=new zn(Bu,"Bundled",3);Bu.className="AnimationTrigger",Bu.Default=Zl,Bu.Immediate=RA,Bu.Bundled=uc;function el(a){Qo(this),this.H=null,this.Pa=new ai,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}jt=el.prototype,jt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,$r(x)}a.clear(),this.Zq.length=0},jt.Xe=function(a){this.H=a},jt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var st=rt.value;st instanceof qr?E++:st instanceof Qi?b++:st instanceof Bi?z++:st instanceof Yo?tt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<b&&(rt+=b+" Nodes "),0<E&&(rt+=E+" Groups "),0<z&&(rt+=z+" Links "),0<tt&&(rt+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,rt+=`
`+x.toString(),b=x.data,b!==null&&Xo(b)&&(rt+=" #"+Xo(b)),x instanceof Qi?rt+=" "+kr(b):x instanceof Bi&&(rt+=" "+kr(x.fromNode)+" "+kr(x.toNode));return y+" "+this.Pa.count+": "+rt},jt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=re.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((b!==!0||ng(rt)!==!1)&&rt.isVisible()&&(E.assign(a),wo(E,rt.oe),rt=rt.ic(E,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return re.free(E),rt}return re.free(E),null},jt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof ai||b instanceof ei||(b=new ei),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=re.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var st=tt[rt];if((E!==!0||ng(st)!==!1)&&st.isVisible()){z.assign(a),wo(z,st.oe);var lt=st;st.ji(z,y,x,b)&&(y!==null&&(lt=y(lt)),lt===null||x!==null&&!x(lt)||b.add(lt))}}return re.free(z),b},jt.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof ai||E instanceof ei||(E=new ei),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var st=tt[rt];if((z!==!0||ng(st)!==!1)&&st.isVisible()){var lt=st;st.Cf(a,y,x,b,E)&&(y!==null&&(lt=y(lt)),lt===null||x!==null&&!x(lt)||E.add(lt))}}return E},jt.Nu=function(a,y,x,b,E,z,tt){if(this.Uh===!1)return E;for(var rt=this.Pa.s,st=rt.length;st--;){var lt=rt[st];if((tt!==!0||ng(lt)!==!1)&&z(lt)&&lt.isVisible()){var ut=lt;lt.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},jt.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof ai||E instanceof ei)&&(z=E),E=!0),z instanceof ai||z instanceof ei||(z=new ei),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=re.alloc(),st=re.alloc(),lt=this.Pa.s,ut=lt.length;ut--;){var dt=lt[ut];if((tt!==!0||ng(dt)!==!1)&&dt.isVisible()){rt.assign(a),wo(rt,dt.oe),st.h(a.x+y,a.y),wo(st,dt.oe);var St=dt;dt.og(rt,st,x,b,E,z)&&(x!==null&&(St=x(St)),St===null||b!==null&&!b(St)||z.add(St))}}return re.free(rt),re.free(st),z},jt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=tr();for(var E=tr(),z=0;z<b;z++){var tt=x[z];if(tt.vw=z,tt instanceof Bi){if(tt.fd===!1)continue}else if(tt instanceof Yo&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&Al(rt,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&E.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],vv(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)vv(E[y]);vr(a),vr(E)}}};function Wh(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}jt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=Wh(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=Mn.alloc(),st=0;st<b;st++)this.Oj(a,x[st],y,z,tt,rt,!0);if(Mn.free(rt),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function ud(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var tt=Wh(a,y),rt=a.Zq;rt.length=0;for(var st=x.scale,lt=Mn.alloc(),ut=0;ut<z;ut++){var dt=E[ut];b.contains(dt)&&a.Oj(y,dt,x,rt,st,lt,!1)}Mn.free(lt),y.globalAlpha=tt}}}jt.Oj=function(a,y,x,b,E,z,tt){if(tt&&!ng(y))a.Hs(y);else{if(b!==null&&y instanceof Bi&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,b=y.containingGroup;b!==null;)tt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(tt=!0,z.assign(b.tb)),b=b.containingGroup;var rt=y.actualBounds;if(b=!1,tt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}b=!z.Re(rt)}b&&(a.save(),a instanceof Eu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*E>x.Oq||rt.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Qs(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(Qs(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Qs(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},jt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(qs,a,this,y,x,b,E)},jt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&$r(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Eh(this,a,y),a},jt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,$r(y),a};function Eh(a,y,x){if(y=hc(a,y,x),x instanceof qr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];if(rt===x&&(y=tt,0<=b)||0>b&&rt.containingGroup===x&&(b=tt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Eh(a,-1,y)}x.svg!==null&&x.svg.remove()}function hc(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,st=NaN;rt<E&&(st=a.M(rt).zOrder,!!isNaN(st));)rt++;if(!isNaN(tt)&&tt>b)for(;;){if(z===-1||tt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(st)&&st<b)for(;;){if(rt===E||st>=b){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(st=NaN;++rt<E&&(st=a.M(rt).zOrder,isNaN(st)););}return y}Ae.Object.defineProperties(el.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&Fe("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Fe("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ei(a,"0 <= value <= 1",el,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),el.prototype.findObjectsNear=el.prototype.og,el.prototype.findObjectsIn=el.prototype.Cf,el.prototype.findObjectsAt=el.prototype.ji,el.prototype.findObjectAt=el.prototype.ic,el.className="Layer";function on(a,y){if(LA||(za(),LA=!0),Qo(this),Mh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ss){var x=this,b=function(){x.removeEventListener(we.document,"DOMContentLoaded",b,!1),x.setRTL()};we.document.body!==null?this.setRTL():x.addEventListener(we.document,"DOMContentLoaded",b,!1)}this.ol=null,Ks.add("Model",ys);var E=this;return this.Hb=function(z){var tt=E.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===qs&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,pf(this),this.model=Vv(),this.Wg=!0,Ed(this),this.layout=new ha,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new wc,a!==void 0&&(typeof a=="string"||we.Element&&a instanceof Element?Tc(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var gA,Mh;function pf(a){a.Yd=new Fl,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new ai,a.pj=new Ji,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new re(NaN,NaN).freeze(),a.du=new re(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new re(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new fo,a.zu=new re(NaN,NaN).freeze(),a.ut=new Mn(NaN,NaN,NaN,NaN).freeze(),a.rj=new mr(0,0,0,0).freeze(),a.sj=Xh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ma,a.zk=ns,a.Fg=ma,a.pq=ns,a.yt=Za,a.Bt=Za,a.Fc=!0,a.pn=!1,a.De=new ei,a.Eh=new Ji,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new mr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new zl,a.bq.diagram=a,a.Qg=new zl,a.Qg.diagram=a,a.cj=new zl,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,Dd(a),a.ai=new ei,a.Ht=!0,a.uu=Zh,a.pw=!1,a.wu=Ou,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new Ji,a.Xn=new ai,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new mr(5).freeze(),a.Hw=new ei().freeze(),a.Nt=999999999,a.nw=new ei().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new ei,a.ow=new ei,a.Xh=null,a.aw=new Ni(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new re,bounds:new Mn,Py:new Ni,bA:new Ni,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Mn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Ni(NaN,NaN).freeze(),a.Sp=new Mn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ji;var y=new Qi,x=new Is;x.bind(new al("text","",kr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Qi,x=new Is,x.stroke="brown",x.bind(new al("text","",kr)),y.add(x),a.Lg.add("Comment",y),y=new Qi,y.selectable=!1,y.avoidable=!1,x=new io,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Ni(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Ji,y=new qr,y.selectionObjectName="GROUPPANEL",y.type=Ln.Vertical,x=new Is,x.font="bold 12pt sans-serif",x.bind(new al("text","",kr)),y.add(x),x=new Ln(Ln.Auto),x.name="GROUPPANEL";var b=new io;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new rh,b.padding=new mr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Ji,y=new Bi,x=new io,x.isPanelMain=!0,y.add(x),x=new io,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Bi,x=new io,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Yo,y.type=Ln.Auto,x=new io,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new rh,x.margin=new mr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Yo,y.type=Ln.Link,x=new io,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new ys,a.toolManager=new kt,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ot,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Ld(),a.eq=null,a.fq=hl,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new re,a.zy=500,a.wp=new re,a.wq=!1}on.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),ml=null,xl="",hd(this,!1),this.Xn.clear(),Tp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function hd(a,y){a.animationManager.Cc(!0),a.Hw=new ei().freeze(),a.nw=new ei().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var st=rt.value;st!==E&&st.data===null&&z.push(st)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Tp(),a.Og.clear(),Po=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Ld(){return null}on.prototype.reset=function(){this.clear(),this.vb=!0,pf(this),Ju(this),this.Wg=!0,Ed(this),this.layout=new ha,this.Wg=!1,this.model=Vv(),this.model.undoManager=new gt,this.vb=this.rn=!1,this.N()},on.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=we.document.body);var y=Pi("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},on.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=we.document.body);var y=0;if(ss){var x=La;y=gA,x===null&&(x=La=Pi("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=gA=Pi("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||rs||(y=11)}this.Db=y,this.Gw=!0},on.prototype.qb=function(a){a.classType===on&&(this.autoScale=a)},on.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
`+x.value.toString(a-1);return y};function Tc(a,y){if(ss){if(y!=null||Fe("Diagram setup requires an argument DIV."),a.Ka!==null&&Fe("Diagram has already completed setup."),typeof y=="string"?a.Ka=we.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Fe("No DIV or DIV id supplied: "+y),a.Ka===null&&Fe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Fe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&we.ResizeObserver){var x=In(function(){a.$b()},250);a.ol=new we.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}we.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=we.go;var E=new Dh(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",we.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),kd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Dh(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,ss){E=Pi("div");var z=Pi("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=Ad,E.addEventListener("pointerdown",cd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=In(function(){a.Yh=null,a.N()},300),a.Ov=In(function(){Fd(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=Cu(a,tt,!0);rt.bubbles=!0;var st=0,lt=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(st=0<tt.deltaX?1:-1),tt.deltaY!==0&&(lt=0<tt.deltaY?1:-1),rt.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-st:-lt):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(st=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(lt=0<tt.wheelDeltaY?-1:1),rt.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-st:-lt):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),Pu(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,Cu(a,tt,!0),tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())},a.ui=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.Yt;rt[tt.pointerId]===void 0&&(rt[tt.pointerId]=tt),rt=a.oj;var st=!1;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)if(rt[1]!==null&&rt[1].pointerId===tt.pointerId)rt[1]=tt,st=!0;else if(rt[0]===null)rt[0]=tt;else if(rt[1]===null)rt[1]=tt,st=!0;else{tt.preventDefault();return}else rt[0]=tt;(rt=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var lt=st;st=jc(a,tt,!0,!1,!0,lt),Uc(a,tt,st),st.targetDiagram=Id(tt,tt.target),st.targetObject=null,lt||st.clone(a.bq),lt=a.uw,rt=rt?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(lt.x-tt.screenX)>rt||Math.abs(lt.y-tt.screenY)>rt)?a.yq++:a.yq=1,st.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Pu(st,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=jc(a,tt,!1,!1,!1,rt[1]!==null);var st=we.document.elementFromPoint(tt.clientX,tt.clientY)||null;st!==null&&st.shadowRoot!==void 0&&st.shadowRoot!==null&&(st=st.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var lt=a,ut=tt;st&&st.H&&(ut=tt,lt=st.H),rt.targetDiagram=lt,Uc(a,ut,rt),rt.targetObject=null,a.doMouseMove(),Pu(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",st=a.Yt;if(rt&&a.qu)delete st[tt.pointerId],tt.preventDefault();else if(st=a.oj,st[0]===null||st[0].pointerId!==tt.pointerId&&st[0].pointerType===tt.pointerType)st[1]!==null&&st[1].pointerId===tt.pointerId&&(st[1]=null);else{st[0]=null,st=jc(a,tt,!1,!0,!0,!1);var lt=we.document.elementFromPoint(tt.clientX,tt.clientY)||null;lt!==null&&lt.shadowRoot!==void 0&&lt.shadowRoot!==null&&(lt=lt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),lt!==null&&lt.H instanceof on&&lt.H!==a&&Uc(lt.H,tt,st),lt===null&&(lt=tt.target),Uc(a,tt,st),st.clickCount=a.yq,st.targetDiagram=Id(tt,lt),st.targetObject=null,a.doMouseUp(),Pu(st,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=b.Z["d"+Sc[1]+Sc[2]+"wI"+$u.slice(1,5)]["b"+Iw.slice(1,y)](b.Z,Jl,y,y),b.Vc(!0),mf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}on.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},on.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function mf(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(we,"resize",a.Ov,!1)}function _l(a){30<a.Sq&&(a.Yh=1)}function Oc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Ir&&Ir.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}on.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:we.devicePixelRatio||1},on.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},on.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},on.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},on.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},on.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},on.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},on.prototype.doFocus=function(){this.focus()},on.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=we.scrollX||we.pageXOffset,y=we.scrollY||we.pageYOffset;this.ta.focus(),we.scrollTo(a,y)}},on.prototype.Oy=function(){this.H.R("GainedFocus")},on.prototype.Ny=function(){this.H.R("LostFocus")};function Fd(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===ma&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Ed(a){var y=new el;y.name="Background",a.Al(y),y=new el,y.name="",a.Al(y),y=new el,y.name="Foreground",a.Al(y),y=new el,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new el,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new el,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function HA(a){var y=new Ln(Ln.Grid);y.name="GRID";var x=new io;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new io,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new io,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new io,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new io,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new io,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Sr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Ad(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):dc(this.H)}function cd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):dc(this.H)}on.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,tt=b.x-z.left,rt=b.y-z.top,st=b.width+z.left+z.right,lt=b.height+z.top+z.bottom,ut=b.right+z.right;z=b.bottom+z.bottom;var dt=E.x;b=E.y;var St=E.width,Et=E.height,Tt=E.right,Ht=E.bottom;E=this.scale;var de=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":de=de+a.scrollWidth-a.clientWidth;break;case"reverse":de=a.scrollWidth-de-a.clientWidth}var ie=de;St<st||Et<lt?(de=re.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ie&&(de.x=ie/E+tt,this.ju=ie),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(de.y=a.scrollTop/E+rt,this.lu=a.scrollTop),this.position=de,re.free(de),this.Ee=this.qr=!1):(de=re.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<dt&&(this.position=de.h(ie+tt,this.position.y)),ut>Tt&&(this.position=de.h(-(y.scrollWidth-this.Aa)+ie-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<b&&(this.position=de.h(this.position.x,a.scrollTop+rt)),z>Ht&&(this.position=de.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),re.free(de),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,Tt=E.right,z=b.bottom,Ht=E.bottom,tt=b.x,dt=E.x,rt=b.y,b=E.y,St>=st&&tt>=dt&&ut<=Tt&&(x.style.width="1px"),Et>=lt&&rt>=b&&z<=Ht&&(x.style.height="1px"))}},on.prototype.computeBounds=function(a){return a===void 0&&(a=new Mn),Ml(this),Tu(this,a)};function Tu(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var tt=b[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var rt=tt.length,st=0;st<rt;st++){var lt=tt[st];lt.isInDocumentBounds&&lt.isVisible()&&(lt=lt.actualBounds,lt.w()&&(x?(x=!1,y.assign(lt)):y.ed(lt)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}on.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if($n(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Bi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Bi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Mn(NaN,NaN,0,0):x};function nl(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=re.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Mn.allocAt(0,0,b.width,b.height);var E=re.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Mn.free(b),re.free(E),re.free(x)}x=a.yh,y&&a.Fg!==ma&&(x=a.Fg);var z=x!==ma?Dc(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var tt=a.ya/z,rt=a.zk,st=a.pq;y&&!rt.sb()&&(st.sb()||st.Xb())&&(rt=st.Xb()?bo:st),Md(a,a.documentBounds,E,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Je.B(z.x,x)&&Je.B(z.y,b)&&Je.B(z.width,E)&&Je.B(z.height,tt)||a.onViewportBoundsChanged(new Mn(x,b,E,tt),z,y,!1)}}function Dc(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),rt=z/E,st=tt/b;return y===ja?(y=Math.min(st,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Lu?(y=st>rt?(tt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}on.prototype.zoomToFit=function(){var a=this.sj;this.sj=Xh,this.scale=Dc(this,ja),a!==Xh&&(nl(this,!1),Md(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},jt=on.prototype,jt.BA=function(a,y){y===void 0&&(y=ja);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===ja||y===Lu)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Lu?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new re(a.x,a.y)}},jt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new re(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},jt.zz=function(a){if(a instanceof _e){this.eq=a;var y=re.alloc();this.fq=this.op(a.ga(Za,y)),re.free(y)}else this.eq=null,this.fq=hl};function Md(a,y,x,b,E,z){var tt=re.allocAt(a.pa.x,a.pa.y),rt=tt.x,st=tt.y;if(a.eq!==null){var lt=re.alloc();lt=a.eq.ga(Za,lt),rt=lt.x-a.fq.x/a.scale,st=lt.y-a.fq.y/a.scale,E=Pa,re.free(lt)}(z||a.scrollMode===Xh)&&(E.sb()&&(x>y.width&&(rt=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(st=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(rt=Math.min(rt+x/2,y.right+Math.max(z,E.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,E.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(st=Math.min(st+b/2,y.bottom+Math.max(x,E.bottom)-b/2),st=Math.max(st,y.top-Math.max(x,E.top)+b/2),st-=b/2):st>y.top?st=y.top:st<y.bottom-b&&(st=y.bottom-b)),tt.x=isFinite(rt)?rt:-a.yb.left,tt.y=isFinite(st)?st:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),Wu(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),Ju(a),re.free(tt)}jt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=bs(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Sr)return a}else if(a=bs(this,a,function(x){return x.part}),a instanceof Sr)return a;return null},jt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Ml(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function bs(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Ml(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}jt.lz=function(a,y,x){return y===void 0&&(y=!0),dd(this,a,function(b){return b.part},y?function(b){return b instanceof Sr&&b.canSelect()}:null,x)};function dd(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof ai||E instanceof ei||(E=new ei),Ml(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}jt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof ai||b instanceof ei||(b=new ei),Ml(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},jt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Nd(this,a,function(E){return E instanceof Sr&&(!x||E.canSelect())},y,b)},jt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof ai||E instanceof ei||(E=new ei),Ml(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,b,E)}return E},jt.Nu=function(a,y,x,b,E,z){var tt=new ei;Ml(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var st=rt.value;st.visible&&st.Nu(a,y,x,b,tt,E,z)}return tt};function Nd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof ai||E instanceof ei||(E=new ei),Ml(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,b,E)}return E}jt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),Nh(this,a,y,function(z){return z instanceof Sr&&(!b||z.canSelect())},x,E)},jt.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof ai||E instanceof ei)&&(z=E),E=!0),z instanceof ai||z instanceof ei||(z=new ei),Ml(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var rt=tt.value;rt.visible&&rt.og(a,y,x,b,E,z)}return z};function Nh(a,y,x,b,E,z){var tt=null;for(tt===void 0&&(tt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof ai||E instanceof ei)&&(z=E),E=!0),z instanceof ai||z instanceof ei||(z=new ei),Ml(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,tt,b,E,z)}return z}on.prototype.acceptEvent=function(a){return Cu(this,a,a instanceof MouseEvent)};function Cu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Uc(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),rs&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=Id(y,y.target),b.targetObject=null,b}function Id(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function jc(a,y,x,b,E,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,rs&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=b,tt.handled=!1,tt.bubbles=E,tt.isMultiTouch=z,tt}function Pu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}on.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Cu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),Pu(x,a)},on.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Cu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),Pu(x,a)},on.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Cu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Pu(x,a)},on.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Cu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Pu(x,a)},on.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new re(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?wo(new re(y,a),this.Ab):new re(y,a)};function Uc(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,tt=0,rt=0;b!==null&&(b=b.getBoundingClientRect(),tt=y.clientX-E/b.width*b.left,rt=y.clientY-z/b.height*b.top),x.viewPoint.h(tt,rt),a.Ab!==null?(y=re.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),re.free(y)):x.documentPoint.h(tt,rt)}function fd(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}on.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ef(a){a.ld||Ml(a),a.Va()}on.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},jt=on.prototype,jt.Pz=function(){return this.kg},jt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Tl(this),this.hf=!1,this.du=new re(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&ui(function(){b.ld=!1,Gl(y,"Model"),a(b)},1)},jt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;we.requestAnimationFrame(function(){y.kg&&y.bd()})}},jt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Tl(this))};function Sl(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||dc(a)||(y&&Ml(a),x&&nl(a,!1))}function Tl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];Ka(rt,!1),rt.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(st){st.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Fd(a),Sl(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(vh(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ml(a),z=!1,(!a.hf||a.xh)&&(a.hf?pd(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),pd(a,!1)),z=!0),a.Jk=!1,Ml(a),a.ou||ef(a),Sl(a,!0,!1),tt=!1,z?(x=Mn.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,zA(a)),a.R("LayoutCompleted"),Sl(a,!0,!1),Mn.free(x)):x.Ok&&x.Qw&&(a.Fg!==ma?a.scale=Dc(a,a.Fg):a.yh!==ma?a.scale=Dc(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),nl(a,!0)),z&&tt&&a.eb("Initial Layout"),Ml(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function zA(a){if(a.Fg!==ma)a.scale=Dc(a,a.Fg);else if(a.yh!==ma)a.scale=Dc(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}nl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),vh(a)}function Ml(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new ei,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof qr&&b.U&65536&&(b.U=b.U^65536)})}}jt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof qr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof qr&&x.isVisible()&&pA(this,x);for(a.reset();a.next();)x=a.value,x instanceof Bi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Yo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function pA(a,y){for(var x=tr(),b=tr(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof qr?(Fu(z)||$l(z)||eg(z))&&pA(a,z):z instanceof Bi?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(vr(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();vr(b)}jt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},jt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Fe("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){cc(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,tt=Math.round(y.y*E)/E,rt=this.Ab;for(rt.reset(),E!==1&&rt.scale(E),y.x===0&&y.y===0||rt.translate(-z,-tt),a.ti=null,Yf(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),Vh(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?Ol(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(fo.prototype.Cd=fo.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,cc(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),tt=this.Mb,rt=this.pa;var st=this.Ca,lt=Math.round(rt.x*st)/st,ut=Math.round(rt.y*st)/st;for(st!==1&&z.scale(st),rt.x===0&&rt.y===0||z.translate(-lt,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Vh(this,a),rt=0;rt<E;rt++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[rt].gc(a,this);if(y=!1,this.Yf?Ol(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(fo.prototype.Cd=fo.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Ir&&Ir.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function GA(a,y,x,b,E,z,tt,rt,st,lt){if(a.Ka!==null){a.ta===null&&Fe("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),st===void 0&&(st=!1),lt===void 0&&(lt=!1),cc(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=E;var dt=a.Wa.s,St=dt.length;try{var Et=new Mn(z.x,z.y,b.width/E,b.height/E),Tt=Et.copy();Tt.Co(x),vh(a,Tt),Ml(a),a.Fd(dt,St,a,Et),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,b.width,b.height));var Ht=a.Mb;y.scale(Ht,Ht);var de=fo.alloc();de.reset(),de.translate(x.left,x.top),de.scale(E),z.x===0&&z.y===0||de.translate(-z.x,-z.y),y.setTransform(de.m11,de.m12,de.m21,de.m22,de.dx,de.dy),y.yc(),y instanceof Eu&&Yf(y,de.m11,de.m12,de.m21,de.m22,de.dx,de.dy),fo.free(de),Vh(a,y),y.globalAlpha=a.pb;var ie=a.Qj("Grid");if(tt){var Se=new ei,Le=tt.iterator;for(Le.reset();Le.next();){var Ee=Le.value;Ee instanceof Sr&&(lt||Ee.layer!==ie)&&(Ee.Gj(),Se.add(Ee))}for(lt=0;lt<St;lt++)ud(dt[lt],y,a,Se,st);Se.each(function(dn){return dn.Gj()})}else for(Se=0;Se<St;Se++){var We=dt[Se];We===ie?lt&&We.gc(y,a,!0):We.gc(y,a,st)}a.$i=!1,a.Yf&&Ol(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(dt,St,a,a.viewportBounds),vh(a),a.ib instanceof Eu&&(a.ib.Nj.PA(),a.redraw())}}}jt.Gf=function(a){return this.Rg[a]},jt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},jt.Tx=function(){this.Rg=new jr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(rs||Vo),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Vh(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}jt.Ql=function(a){return this.on[a]},jt.sA=function(a,y){this.on[a]=y},jt.Sx=function(){this.on=new jr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},jt.set=function(a){return Object.assign(this,a),this},jt.Du=function(a){return this.nm(a)},jt.nm=function(a){return Ac(this,a),this};function Ac(a,y){var x=a instanceof Ln,b=a instanceof on,E;for(E in y){E===""&&Fe("Setting properties requires non-empty property names");var z=a,tt=E;if(x||b){var rt=E.indexOf(".");if(0<rt){var st=E.substring(0,rt);x?z=a.fb(st):(z=a[st],z==null&&(z=a.toolManager[st])),Sn(z)?tt=E.substr(rt+1):Fe("Unable to find object named: "+st+" in "+a.toString()+" when trying to set property: "+E)}}if(tt[0]!=="_"&&!Ao(z,tt))if(b&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(b&&tt==="Changed"){a.Pe(y[tt]);continue}else if(b&&Ao(a.toolManager,tt))z=a.toolManager;else if(b&&_t(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof hr&&tt==="Changed"){a.Pe(y[tt]);continue}else Fe('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[E],tt[0]==="_"&&z instanceof _e&&z.Vw(tt)}}jt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Ji,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},jt.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},on.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==KA&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=Mn.alloc(),Od(this,this.computeBounds(b)),Mn.free(b)),b=this.ta,b===null||b instanceof Nl)))){var tt=this.Mb;E=this.Aa*tt;var rt=this.ya*tt,st=this.scale*tt;z=Math.round(Math.round(y.x*st)-Math.round(a.x*st)),y=Math.round(Math.round(y.y*st)-Math.round(a.y*st)),st=this.jw,a=this.oy,st.width!==E&&(st.width=E),st.height!==rt&&(st.height=rt),a.clearRect(0,0,E,rt),st=190*tt;var lt=70*tt,ut=Math.max(z,0),dt=Math.max(y,0),St=Math.floor(E-ut),Et=Math.floor(rt-dt);a.drawImage(b.Oa,ut,dt,St,Et,0,0,St,Et),Ol(this.Yf,this)&&a.clearRect(0,0,st,lt),b=tr(),a=tr(),Et=Math.abs(z),St=Math.abs(y);var Tt=ut===0?0:E-Et;ut=re.allocAt(Tt,0),Et=re.allocAt(Et+Tt,rt),a.push(new Mn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y)));var Ht=this.Ab;if(Ht.reset(),Ht.scale(tt,tt),this.Ca!==1&&Ht.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Ht.translate(-tt.x,-tt.y),wo(ut,Ht),wo(Et,Ht),b.push(new Mn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y))),Tt=dt===0?0:rt-St,ut.h(0,Tt),Et.h(E,St+Tt),a.push(new Mn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y))),wo(ut,Ht),wo(Et,Ht),b.push(new Mn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y))),Ol(this.Yf,this)&&(E=0<z?0:-z,rt=0<y?0:-y,ut.h(E,rt),Et.h(st+E,lt+rt),a.push(new Mn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y))),wo(ut,Ht),wo(Et,Ht),b.push(new Mn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y)))),re.free(ut),re.free(Et),Sl(this,!1,!0),this.Ka===null&&Fe("No div specified"),this.ta===null&&Fe("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(cc(this),rt=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*rt,this.ya*rt),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,st=Math.round(z.x*tt)/tt,lt=Math.round(z.y*tt)/tt,y=this.Ab,y.reset(),tt!==1&&y.scale(tt),z.x===0&&z.y===0||y.translate(-st,-lt),E.save(),E.beginPath(),z=a.length,tt=0;tt<z;tt++)st=a[tt],st.width!==0&&st.height!==0&&E.rect(Math.floor(st.x),Math.floor(st.y),Math.ceil(st.width),Math.ceil(st.height));for(E.clip(),E.setTransform(rt,0,0,rt,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Vh(this,E),E.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],st=b,tt.visible&&tt.pb!==0){lt=Wh(tt,E),dt=tt.Zq,dt.length=0,ut=this.scale,St=Mn.alloc(),Et=tt.Pa.s,Ht=Et.length,Tt=st.length;for(var de=0;de<Ht;de++){var ie=Et[de],Se=Ng(ie,ie.actualBounds);t:{for(var Le=2/ut,Ee=4/ut,We=0;We<Tt;We++){var dn=st[We];if(dn.width!==0&&dn.height!==0&&Se.Vu(dn.x-Le,dn.y-Le,dn.width+Ee,dn.height+Ee)){Se=!0;break t}}Se=!1}Se&&tt.Oj(E,ie,this,dt,ut,St,!0)}Mn.free(St),E.globalAlpha=lt}E.restore(),E.Vc(!0),this.Yf&&Ol(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}vr(b),vr(a),this.ld=!1}}else this.bd();x&&(_l(this),this.bd(),Oc(this,!0))}else x?(_l(this),this.bd(),Oc(this,!0)):this.bd()}};function cc(a){a.pn!==!1&&(a.pn=!1,kd(a,a.Aa,a.ya))}function kd(a,y,x){Ju(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function dc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,tt=a.gf?a.Db:0,rt=a.Be?a.Db:0,st=E.clientWidth||x+tt,lt=E.clientHeight||b+rt,ut=a.viewportBounds;E=ut.x;var dt=ut.y,St=ut.width,Et=ut.height;if((st!==x+tt||lt!==b+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=st,a.ya=lt,z=a.pn=!0,Ju(a)),!a.hf||!a.viewportBounds.w())return!0;var Tt=a.ku,Ht=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var de=a.documentBounds,ie=0,Se=0,Le=0,Ee=0,We=ut.width,dn=ut.height,Di=a.rj;a.contentAlignment.sb()?(de.width>We&&(ie=Di.left,Se=Di.right),de.height>dn&&(Le=Di.top,Ee=Di.bottom)):(ie=Di.left,Se=Di.right,Le=Di.top,Ee=Di.bottom);var er=de.width+ie+Se,Ki=de.height+Le+Ee;Di=a.scale;var xi=er>st/Di,ni=Ki>lt/Di;if(!(z||a.gf||a.Be||xi||ni))return!0;ie=de.x-ie,st=ut.x,Se=de.right+Se,lt=ut.right+tt,Le=de.y-Le;var Jr=ut.y;de=de.bottom+Ee,ut=ut.bottom+rt;var Qr="1px";if(Ee="1px",a.scrollMode===Xh&&(xi||ni)&&(xi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(xi=1,ie+1<st&&(xi=Math.max((st-ie)*Di+a.Aa,xi)),Se>lt+1&&(xi=Math.max((Se-lt)*Di+a.Aa,xi)),We+tt+1<er&&(xi=Math.max((er-We)*Di+a.Aa,xi)),Qr=xi.toString()+"px"),ni&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(xi=1,Le+1<Jr&&(xi=Math.max((Jr-Le)*Di+a.ya,xi)),de>ut+1&&(xi=Math.max((de-ut)*Di+a.ya,xi)),dn+rt+1<Ki&&(xi=Math.max((Ki-dn)*Di+a.ya,xi)),Ee=xi.toString()+"px")),xi=Qr!=="1px",ni=Ee!=="1px",xi&&ni||!xi&&!ni||(ni&&(lt-=a.Db),xi&&(ut-=a.Db),er<We+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,ie+1<st&&(tt=Math.max((st-ie)*Di+a.Aa,tt)),Se>lt+1&&(tt=Math.max((Se-lt)*Di+a.Aa,tt)),We+1<er&&(tt=Math.max((er-We)*Di+a.Aa,tt)),Qr=tt.toString()+"px"),xi=Qr!=="1px",tt=a.ya,xi!==a.Be&&(tt=xi?a.ya-a.Db:a.ya+a.Db),Ki<dn+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,Le+1<Jr&&(rt=Math.max((Jr-Le)*Di+tt,rt)),de>ut+1&&(rt=Math.max((de-ut)*Di+tt,rt)),dn+1<Ki&&(rt=Math.max((Ki-dn)*Di+tt,rt)),Ee=rt.toString()+"px"),ni=Ee!=="1px"),a.qr&&xi===a.Be&&ni===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(xi!==a.Be&&(Qr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=xi,Ht.style.width=Qr,ni!==a.gf&&(Ee==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=re.alloc(),ni?(y.style.left=a.Db+"px",a.position=rt.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=rt.h(a.pa.x-a.Db/a.scale,a.pa.y)),re.free(rt))),z&&Ju(a),a.gf=ni,Ht.style.height=Ee,a.gu=!0,z&&(a.pn=!0),y=Tt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(We+1<er?y=(a.position.x-ie)*Di:ie+1<st?y=Tt.scrollWidth-Tt.clientWidth:Se>lt+1&&(y=a.position.x*Di)),a.tn)switch(a.bu){case"negative":y=-(Tt.scrollWidth-y-Tt.clientWidth);break;case"reverse":y=Tt.scrollWidth-y-Tt.clientWidth}return Tt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(dn+1<Ki?Tt.scrollTop=(a.position.y-Le)*Di:Le+1<Jr?Tt.scrollTop=Tt.scrollHeight-Tt.clientHeight:de>ut+1&&(Tt.scrollTop=a.position.y*Di)),st=a.Aa,lt=a.ya,Tt.style.width=st+(a.gf?a.Db:0)+"px",Tt.style.height=lt+(a.Be?a.Db:0)+"px",x!==st||b!==lt||a.animationManager.zb?(x=Mn.allocAt(E,dt,St,Et),a.onViewportBoundsChanged(x,a.viewportBounds,Di,z),Mn.free(x),!1):!0}jt=on.prototype,jt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Fe("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&Fe('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Na,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},jt.oi=function(a){this.partManager.oi(a);var y=this;Ns(a,function(x){kh(y,x)}),(a instanceof Yo||a instanceof qr&&a.placeholder!==null)&&a.v(),a.data!==null&&Ns(a,function(x){_v(y.partManager,x)}),$l(a)!==!0&&eg(a)!==!0||this.De.add(a),Hy(a,!0,this),Gy(a)?(a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.$b()},jt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ns(a,function(x){Kv(y.partManager,x,y)}),this.De.remove(a),Gy(a)?(a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.$b()},jt.remove=function(a){mA(this,a,!0)};function mA(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(tl,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}jt.Is=function(a,y){if(y===void 0&&(y=!1),$n(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new ei,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},jt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},on.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=vA(this)),this.toolManager!==null){var E=new Ji;if(a!==null)if($n(a))for(var z=0;z<a.length;z++)bu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)bu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)bu(this,E,a.value,x,b);for(a=this.nodes;a.next();)bu(this,E,a.value,x,b);for(a=this.links;a.next();)bu(this,E,a.value,x,b)}fc(this,E,y,b,x)}};function bu(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=vA(a)),x instanceof Qi){if(y.add(x,a.Pd(E,x,x.location)),x instanceof qr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)bu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var rt=tt.fromNode,st=tt.toNode;rt!==null&&y.contains(rt)&&st!==null&&y.contains(st)&&bu(a,y,tt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)bu(a,y,x.value,b,E)}else if(x instanceof Bi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)bu(a,y,x.value,b,E);else x instanceof Yo||y.add(x,a.Pd(E,x,x.location))}function fc(a,y,x,b,E){if(y!==null&&y.count!==0){var z=re.alloc(),tt=re.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||gc(a,y);for(var rt=tr(),st=tr(),lt=y.iterator,ut=re.alloc();lt.next();){var dt=lt.key,St=lt.value;if(dt.Zc()){var Et=gd(a,dt,y);Et!==null?rt.push(new it(dt,St,Et)):(!E||dt.canMove())&&(Et=St.point,z.assign(Et),a.computeMove(dt,z.add(tt),b,ut),dt.location=ut,St.shifted===void 0&&(St.shifted=new re),St.shifted.assign(ut.re(Et)))}else lt.key instanceof Bi&&st.push(lt.sa)}for(re.free(ut),E=rt.length,lt=0;lt<E;lt++)dt=rt[lt],z.assign(dt.info.point),dt.Su.shifted===void 0&&(dt.Su.shifted=new re),dt.node.location=z.add(dt.Su.shifted);for(E=re.alloc(),lt=re.alloc(),dt=st.length,St=0;St<dt;St++){var Tt=st[St];if(Et=Tt.key,Et instanceof Bi)if(Et.suspendsRouting){Et.Tg=null,ut=Et.fromNode;var Ht=Et.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Ht=Tt.value.point,Et.dragComputation===null)y.add(Et,a.Pd(b,Et,tt)),Mf(Et,tt.x-Ht.x,tt.y-Ht.y);else{Tt=re.allocAt(0,0),(ut=Et.i(0))&&ut.w()&&Tt.assign(ut);var de=ut=re.alloc().assign(Tt).add(tt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(de=re.alloc(),mh(a,Et,ut,de,b)),ut.assign(Et.dragComputation(Et,ut,de)).re(Tt),y.add(Et,a.Pd(b,Et,ut)),Mf(Et,ut.x-Ht.x,ut.y-Ht.y),re.free(Tt),re.free(ut),de!==ut&&re.free(de)}else ut!==null&&(E.assign(ut.location),de=y.I(ut),de!==null&&E.re(de.point)),Ht!==null&&(lt.assign(Ht.location),de=y.I(Ht),de!==null&&lt.re(de.point)),ut!==null&&Ht!==null?E.Xa(lt)?(ut=Tt.value.point,Ht=z,Ht.assign(E),Ht.re(ut),y.add(Et,a.Pd(b,Et,E)),Mf(Et,Ht.x,Ht.y)):(Et.suspendsRouting=!1,Et.bb()):(Tt=Tt.value.point,ut=ut!==null?E:Ht!==null?lt:tt,y.add(Et,a.Pd(b,Et,ut)),Mf(Et,ut.x-Tt.x,ut.y-Tt.y))}else(Et.fromNode===null||Et.toNode===null)&&(ut=Tt.value.point,y.add(Et,a.Pd(b,Et,tt)),Mf(Et,tt.x-ut.x,tt.y-ut.y))}re.free(z),re.free(tt),re.free(E),re.free(lt),vr(rt),vr(st),x||(Ml(a),Ih(a,y))}}on.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new re),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=re.alloc(),mh(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var tt=a.minLocation,rt=tt.x;isNaN(rt)&&(rt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var st=a.maxLocation,lt=st.x;return isNaN(lt)&&(lt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),st=st.y,isNaN(st)&&(st=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(rt,Math.min(x.x,lt)),Math.max(tt,Math.min(x.y,st))),E!==y&&re.free(E),b};function vA(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function mh(a,y,x,b,E){if(E===void 0&&(E=vA(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var tt=E.gridSnapOrigin,rt=tt.x;if(tt=tt.y,E=E.gridSnapCellSpot,z!==null){var st=z.gridCellSize;isNaN(a)&&(a=st.width),isNaN(y)&&(y=st.height),z=z.gridOrigin,isNaN(rt)&&(rt=z.x),isNaN(tt)&&(tt=z.y)}z=re.allocAt(0,0),z.yi(0,0,a,y,E),Je.No(x.x,x.y,rt+z.x,tt+z.y,a,y,b),re.free(z)}}function gc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Bi&&(y.suspendsRouting=!0)}function Ih(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Bi&&(x.suspendsRouting=!1,Mv(x)&&x.bb())}a.Mr=!1}}function gd(a,y,x){return y=y.containingGroup,y!==null&&(a=gd(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}jt=on.prototype,jt.Pd=function(a,y,x){if(x===void 0)return new wh(zo);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new wh(new re(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new wh(x.copy())};function Qc(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Fe("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Fe("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Fe("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Fe("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&Fe("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}jt.Al=function(a){Qc(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(Na,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},jt.Ww=function(a,y){Qc(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(tl,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Na,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},jt.Cy=function(a,y){Qc(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(tl,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Na,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},jt.kA=function(a){if(a.diagram!==this&&Fe("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(tl,"layers",this,a,null,x,null),this.N(),this.Ya()}}},jt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},jt.Yw=function(a){return this.pf===null&&(this.pf=new ai),this.pf.add(a),this.model.Pe(a),this},jt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},jt.Pe=function(a){return this.zg===null&&(this.zg=new ai),this.zg.add(a),this},jt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},jt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==gu&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},jt.cb=function(a,y,x,b,E,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new ia;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=b,rt.oldParam=z,rt.newValue=E,rt.newParam=tt,this.ds(rt)},jt.g=function(a,y,x,b,E){this.cb(qs,a,this,y,x,b,E)},on.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===qs){var E=a.object;if(aa(E,a.propertyName,a.I(y)),E instanceof _e){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Na){var tt=a.object,rt=a.newParam,st=a.newValue;if(tt instanceof Ln)if(typeof rt=="number"&&st instanceof _e){y?tt.pc(rt):tt.Gb(rt,st);var lt=tt.part;lt!==null&&lt.Wb()}else typeof rt=="number"&&st instanceof Va&&(st.isRow?Bc(tt,rt,y?void 0:st):wd(tt,rt,y?void 0:st));else if(tt instanceof el){var ut=a.oldParam===!0;typeof rt=="number"&&st instanceof Sr&&(y?(st.isSelected=!1,st.isHighlighted=!1,st.Wb(),tt.pc(ut?rt:-1,st,ut)):tt.oi(rt,st,ut))}else tt instanceof on?typeof rt=="number"&&st instanceof el&&(y?this.Wa.mb(rt):(st.Xe(this),this.Wa.Gb(rt,st))):Fe("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===tl){var dt=a.object,St=a.oldParam,Et=a.oldValue;if(dt instanceof Ln)typeof St=="number"&&Et instanceof _e?y?dt.Gb(St,Et):dt.pc(St):typeof St=="number"&&Et instanceof Va&&(Et.isRow?Bc(dt,St,y?Et:void 0):wd(dt,St,y?Et:void 0));else if(dt instanceof el){var Tt=a.newParam===!0;typeof St=="number"&&Et instanceof Sr&&(y?0>dt.Pa.indexOf(Et)&&dt.oi(St,Et,Tt):(Et.isSelected=!1,Et.isHighlighted=!1,Et.Wb(),dt.pc(Tt?St:-1,Et,Tt)))}else dt instanceof on?typeof St=="number"&&Et instanceof el&&(y?(Et.Xe(this),this.Wa.Gb(St,Et)):this.Wa.mb(St)):Fe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==gu&&Fe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},on.prototype.Ea=function(a){return this.undoManager.Ea(a)},on.prototype.eb=function(a){return this.undoManager.eb(a)},on.prototype.Kf=function(){return this.undoManager.Kf()},on.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},on.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},on.prototype.rp=function(){this.partManager.rp()};function nf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Ju(a),a.N(),a.Ee=!0,b.zb&&(pl(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Ju(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,st=a.zoomPoint.y,lt=a.contentAlignment;isNaN(rt)&&(lt.$c()?lt.Hf(tu)?rt=0:lt.Hf(Hl)&&(rt=z-1):rt=lt.sb()?lt.x*(z-1):z/2),isNaN(st)&&(lt.$c()?lt.Hf(vu)?st=0:lt.Hf(Ll)&&(st=tt-1):st=lt.sb()?lt.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=re.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+st/y-st/x),a.position=z,re.free(z),a.Ca=x,Ju(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),nl(a,!1),b.zb&&(pl(b)||b.ce.add(b.H,"scale",y,a.Ca))}}on.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==ma||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof kt&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Yt(E,this)),this.vb||this.invalidateViewport(a,y),vh(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function vh(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Ni.alloc(),E=1,z=1,tt=x.O.s,rt=tt.length,st=0;st<rt;st++){var lt=tt[st],ut=Math.abs(lt.interval);2>ut||(Wa(lt.figure)?z=z*ut/Je.vx(z,ut):E=E*ut/Je.vx(E,ut))}if(tt=x.gridCellSize,b.h(z*tt.width,E*tt.height),y!==void 0)E=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=Mn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Mn.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,Mn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=re.alloc(),Je.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Ni.free(b),x.part.location=y,re.free(y)}}on.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},on.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},on.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),$n(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Sr||Fe("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Sr||Fe("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},on.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},jt=on.prototype,jt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},jt.Jz=function(a){a=new ei().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Sr||Fe("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},jt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=re.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),re.free(z);return}Fe("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):Fe("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),re.free(z)},jt.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},jt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},jt.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},jt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,tt=y.m11,rt=y.m12,st=y.m21,lt=y.m22,ut=y.dx,dt=y.dy,St=x*tt+b*st+ut;y=x*rt+b*lt+dt;var Et=E*tt+b*st+ut;return a=E*rt+b*lt+dt,b=x*tt+z*st+ut,x=x*rt+z*lt+dt,tt=E*tt+z*st+ut,E=E*rt+z*lt+dt,z=Math.min(St,Et),St=Math.max(St,Et),Et=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),St=Math.max(St,b),Et=Math.min(Et,x),y=Math.max(y,x),z=Math.min(z,tt),St=Math.max(St,tt),Et=Math.min(Et,E),y=Math.max(y,E),new Mn(z,Et,St-z,y-Et)},jt.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),wo(a.copy(),this.Ab)};function Td(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function pc(a){return a=Ks.get(a),a!==null?new a:new ys}on.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===gu&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(st){return st.diagram=E}),a.mouseMoveTools.each(function(st){return st.diagram=E}),a.mouseUpTools.each(function(st){return st.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===gu){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ml(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ho(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(Td(this),this.As.clear(),pu(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;ui(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function kh(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)bA(a,y[b])}function bA(a,y){if(y instanceof Bh){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof ei&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Rc(a,y){if(y instanceof Bh){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof ei&&x.Bg.remove(a),Tp(b));break}}}}}on.prototype.Wd=function(){this.partManager.Wd()},on.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},on.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},on.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},on.prototype.Vb=function(a){return this.partManager.Vb(a)},on.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},jt=on.prototype,jt.Lc=function(a){return this.partManager.Lc(a)},jt.ii=function(a){return this.partManager.ii(a)},jt.Kc=function(a){return this.partManager.Kc(a)},jt.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:vs(fs(y)))},jt.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:vs(fs(y)))};function Ju(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Od(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),nl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}jt.Va=function(){if(this.Zi){var a=Mn.alloc();Od(this,this.computeBounds(a)),Mn.free(a)}},jt.rz=function(){for(var a=new ei,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},jt.qz=function(){return this.ai.iterator},jt.Uz=function(a){Ml(this),a&&_A(this,!0),this.ld?pd(this,!1):(this.Jk=!0,Tl(this))};function _A(a,y){for(var x=a.ai.iterator;x.next();)mc(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function mc(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)mc(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function pd(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Gl(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Yh(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Ml(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||ho(z),a.aa=x}}}function Yh(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Yh(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),pA(a,y),E.isValidLayout=!0):a.xh=!0)}}jt.yz=function(){for(var a=new ai,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function Dd(a){function y(E){var z=E.toLowerCase(),tt=new ai;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new Ji,b=new Ji;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function _t(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Ge(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Fe("Unknown DiagramEvent name: "+y)}jt.Bj=function(a,y){return a=Ge(this,a),a!==null&&a.add(y),this},jt.am=function(a,y){a=Ge(this,a),a!==null&&a.remove(y)},jt.R=function(a,y,x){var b=Ge(this,a),E=new rc;if(E.diagram=this,a=_t(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function Rn(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}jt.Yj=function(a,y){return gi(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},on.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Tu(this,a):a.assign(this.documentBounds)};function gi(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new C0(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=ji(a,x)),x===null){y=Mn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,rt=tt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&fr(a,tt,b,y)}Mn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Mn.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof Qi&&fr(a,tt,b,y);Mn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&l1(E);return E}function ji(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ji(a,y.containingGroup):null}function fr(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Rp(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(If,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=If}else if(y instanceof qr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Qi&&fr(a,E,x,b)}}function Or(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}on.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():_o(this)};function _o(a){a.vk===-1&&(a.vk=ui(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=Mn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Od(a,y),Mn.free(y),a.Fc=!0,a.bd(),_o(a))}},a.vp))}on.prototype.ug=function(){this.vk!==-1&&(we.clearTimeout(this.vk),this.vk=-1)},on.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=Mn.allocAt(0,0,b.width*E,b.height*E);var z=re.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<b.x+x.left/2&&(z.x-=tt),a.x<b.x+x.left/4&&(z.x-=4*tt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>b.x+b.width-x.right/2&&(z.x+=tt),a.x>b.x+b.width-x.right/4&&(z.x+=4*tt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<b.y+x.top/2&&(z.y-=tt),a.y<b.y+x.top/4&&(z.y-=4*tt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>b.y+b.height-x.bottom/2&&(z.y+=tt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(zo)||(y=new re(y.x+z.x/E,y.y+z.y/E)),Mn.free(b),re.free(z),y},jt=on.prototype,jt.Cs=function(){return null},jt.av=function(){return null},jt.bs=function(a,y){this.pj.add(a,y)},jt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof qr&&(y.$p=null)})};function gs(a,y,x){function b(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-lt>st?y(x,E,rt):we.requestAnimationFrame(b)}for(var E=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var rt=a,st=x.callbackTimeout||300,lt=+new Date;return we.requestAnimationFrame(function(){b()}),null}jt.Wz=function(a){return ss?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},jt.Jx=function(a){return a===void 0&&(a={}),gs(this,this.Xz,a)},jt.Xz=function(a,y,x){var b=ea(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case $u+"data":E=b.getImageData(0,0,x.width,x.height);break;case $u:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Fe('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function ea(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Fe("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Ni(1/0,1/0):new Ni(2e3,2e3));var rt=y.position||null,st=y.parts||null,lt=y.padding===void 0?1:y.padding,ut=y.background||null,dt=y.omitTemporary;dt===void 0&&(dt=!0);var St=y.document||document,Et=y.elementFinished||null,Tt=y.showTemporary;Tt===void 0&&(Tt=!dt),y=y.showGrid,y===void 0&&(y=Tt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof lt=="number"?lt=new mr(lt):lt instanceof mr||Fe("MakeImage padding must be a Margin or a number."),lt.left=Math.max(lt.left,0),lt.right=Math.max(lt.right,0),lt.top=Math.max(lt.top,0),lt.bottom=Math.max(lt.bottom,0),a.ib.Vc(!0),dt=new Dh(null,St,void 0,!0);var Ht=dt.context;if(!(E||z||st||rt))return dt.width=a.Aa+Math.ceil(lt.left+lt.right),dt.height=a.ya+Math.ceil(lt.top+lt.bottom),x==="SVG"?b===null?null:(b.resize(dt.width,dt.height,dt.width,dt.height),b.ownerDocument=St,b.hs=Et,GA(a,b.context,lt,new Ni(dt.width,dt.height),a.Ca,a.pa,st,ut,Tt,y),b.context):(a.Xm=!1,GA(a,Ht,lt,new Ni(dt.width,dt.height),a.Ca,a.pa,st,ut,Tt,y),a.Xm=!0,dt.context);var de=a.Pp,ie=a.documentBounds.copy();if(ie.Fv(a.yb),Tt)for(var Se=a.Wa.s,Le=Se.length,Ee=0;Ee<Le;Ee++){var We=Se[Ee];if(We.visible&&We.isTemporary){We=We.Pa.s;for(var dn=We.length,Di=0;Di<dn;Di++){var er=We[Di];er.isInDocumentBounds&&er.isVisible()&&(er=er.actualBounds,er.w()&&ie.ed(er))}}}if(Se=new re(ie.x,ie.y),st!==null){for(Le=new Mn(0,0,0,0),Ee=!0,We=st.iterator,We.reset();We.next();)dn=We.value,dn instanceof Sr&&(Di=dn.layer,Di!==null&&!Di.visible||Di!==null&&!Tt&&Di.isTemporary||!dn.isVisible()||(dn=dn.actualBounds,dn.w()&&(Ee?(Ee=!1,Le.assign(dn)):Le.ed(dn))));ie.width=Le.width,ie.height=Le.height,Se.x=Le.x,Se.y=Le.y}return rt!==null&&rt.w()&&(Se=rt,z||(z=de)),Le=rt=0,lt!==null&&(rt=lt.left+lt.right,Le=lt.top+lt.bottom),Ee=We=0,E!==null&&(We=E.width,Ee=E.height,isFinite(We)&&(We=Math.max(0,We-rt)),isFinite(Ee)&&(Ee=Math.max(0,Ee-Le))),E!==null&&z!==null?(z==="NaN"&&(z=de),E.w()?(E=We,ie=Ee):isNaN(Ee)?(E=We,ie=ie.height*z):(E=ie.width*z,ie=Ee)):E!==null?E.w()?(z=Math.min(We/ie.width,Ee/ie.height),E=We,ie=Ee):isNaN(Ee)?(z=We/ie.width,E=We,ie=ie.height*z):(z=Ee/ie.height,E=ie.width*z,ie=Ee):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/ie.width,(tt.height-Le)/ie.height),z>de?(z=de,E=ie.width,ie=ie.height):(E=tt.width,ie=tt.height)):(E=ie.width*z,ie=ie.height*z):(z=de,E=ie.width,ie=ie.height),lt!==null?(E+=rt,ie+=Le):lt=new mr(0),tt!==null&&(de=tt.width,tt=tt.height,isNaN(de)&&(de=2e3),isNaN(tt)&&(tt=2e3),isFinite(de)&&(E=Math.min(E,de)),isFinite(tt)&&(ie=Math.min(ie,tt))),dt.width=Math.ceil(E),dt.height=Math.ceil(ie),x==="SVG"?b===null?null:(b.resize(dt.width,dt.height,dt.width,dt.height),b.ownerDocument=St,b.hs=Et,GA(a,b.context,lt,new Ni(Math.ceil(E),Math.ceil(ie)),z,Se,st,ut,Tt,y),b.context):(a.Xm=!1,GA(a,Ht,lt,new Ni(Math.ceil(E),Math.ceil(ie)),z,Se,st,ut,Tt,y),a.Xm=!0,dt.context)}Ae.Object.defineProperties(on.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof mt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Nl(this,we.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Nl(this,we.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(we,"resize",this.Ov,!1),this.removeEventListener(we,"wheel",this.$j,!0),Mh===this&&(Mh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Tc(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ei(a,"0 <= value <= 1",on,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),nl(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),nl(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),nl(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),nl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Ei(a,">= 0",on,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Ei(a,">= 0",on,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Ei(a,">= 0",on,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||Td(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&Fe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=hd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Gl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=pc(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(we,"pointermove",this.dk,!0),this.addEventListener(we,"pointerdown",this.ui,!0),this.addEventListener(we,"pointerup",this.fk,!0),this.addEventListener(we,"pointerout",this.ek,!0),this.addEventListener(we,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(we,"wheel",this.$j,!0),this.addEventListener(we,"selectstart",this.preventDefault,!1)):(this.removeEventListener(we,"pointermove",this.dk,!0),this.removeEventListener(we,"pointerdown",this.ui,!0),this.removeEventListener(we,"pointerup",this.fk,!0),this.removeEventListener(we,"pointerout",this.ek,!0),this.removeEventListener(we,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(we,"wheel",this.$j,!0),this.removeEventListener(we,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=re.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Wu(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ju(this):(this.vb=!0,a=this.scale,Md(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}re.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=HA(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=HA(this)),a.type!==Ln.Grid&&Fe("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),vh(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Ju(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||Fe("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===Xh&&nl(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,nl(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,nf(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&nf(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==ma&&nl(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||Fe("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||Fe("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Ei(a,"> 0",on,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Ei(a,"> 0",on,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),nl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&Fe("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)f0(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Zh&&a!==Us&&a!==Th&&Fe("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Ni(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Ae.Object.defineProperties(on,{licenseKey:{get:function(){return yc.jc()},set:function(a){yc.add(a.replace(/\s/g,""))}},version:{get:function(){return il}}}),on.prototype.makeImageData=on.prototype.Jx,on.prototype.makeImage=on.prototype.Wz,on.prototype.cacheGroupExternalLinks=on.prototype.Fu,on.prototype.addRenderer=on.prototype.bs,on.prototype.makeSVG=on.prototype.av,on.prototype.makeSvg=on.prototype.Cs,on.prototype.stopAutoScroll=on.prototype.ug,on.prototype.doAutoScroll=on.prototype.gs,on.prototype.isUnoccupied=on.prototype.Yj,on.prototype.raiseDiagramEvent=on.prototype.R,on.prototype.removeDiagramListener=on.prototype.am,on.prototype.addDiagramListener=on.prototype.Bj,on.prototype.findTreeRoots=on.prototype.yz,on.prototype.layoutDiagram=on.prototype.Uz,on.prototype.findTopLevelGroups=on.prototype.qz,on.prototype.findTopLevelNodesAndLinks=on.prototype.rz,on.prototype.ensureBounds=on.prototype.Va,on.prototype.findLinksByExample=on.prototype.ls,on.prototype.findNodesByExample=on.prototype.ms,on.prototype.findLinkForData=on.prototype.Kc,on.prototype.findNodeForData=on.prototype.ii,on.prototype.findPartForData=on.prototype.Lc,on.prototype.findLinkForKey=on.prototype.findLinkForKey,on.prototype.findNodeForKey=on.prototype.Vb,on.prototype.findPartForKey=on.prototype.findPartForKey,on.prototype.rebuildParts=on.prototype.Wd,on.prototype.transformViewToDoc=on.prototype.Ps,on.prototype.transformRectDocToView=on.prototype.zA,on.prototype.transformDocToView=on.prototype.op,on.prototype.centerRect=on.prototype.es,on.prototype.scrollToRect=on.prototype.tv,on.prototype.scroll=on.prototype.scroll,on.prototype.highlightCollection=on.prototype.Jz,on.prototype.highlight=on.prototype.Iz,on.prototype.selectCollection=on.prototype.rA,on.prototype.select=on.prototype.select,on.prototype.updateAllRelationshipsFromData=on.prototype.rp,on.prototype.updateAllTargetBindings=on.prototype.updateAllTargetBindings,on.prototype.commit=on.prototype.commit,on.prototype.rollbackTransaction=on.prototype.Kf,on.prototype.commitTransaction=on.prototype.eb,on.prototype.startTransaction=on.prototype.Ea,on.prototype.raiseChanged=on.prototype.g,on.prototype.raiseChangedEvent=on.prototype.cb,on.prototype.removeChangedListener=on.prototype.ik,on.prototype.addChangedListener=on.prototype.Pe,on.prototype.removeModelChangedListener=on.prototype.mA,on.prototype.addModelChangedListener=on.prototype.Yw,on.prototype.findLayer=on.prototype.Qj,on.prototype.removeLayer=on.prototype.kA,on.prototype.addLayerAfter=on.prototype.Cy,on.prototype.addLayerBefore=on.prototype.Ww,on.prototype.addLayer=on.prototype.Al,on.prototype.moveParts=on.prototype.moveParts,on.prototype.copyParts=on.prototype.Kj,on.prototype.removeParts=on.prototype.Is,on.prototype.remove=on.prototype.remove,on.prototype.add=on.prototype.add,on.prototype.clearDelayedGeometries=on.prototype.bx,on.prototype.setProperties=on.prototype.nm,on.prototype.attach=on.prototype.Du,on.prototype.set=on.prototype.set,on.prototype.resetInputOptions=on.prototype.Sx,on.prototype.setInputOption=on.prototype.sA,on.prototype.getInputOption=on.prototype.Ql,on.prototype.resetRenderingHints=on.prototype.Tx,on.prototype.setRenderingHint=on.prototype.Xx,on.prototype.getRenderingHint=on.prototype.Gf,on.prototype.maybeUpdate=on.prototype.bd,on.prototype.requestUpdate=on.prototype.$b,on.prototype.delayInitialization=on.prototype.Xy,on.prototype.isUpdateRequested=on.prototype.Pz,on.prototype.invalidateDocumentBounds=on.prototype.Ya,on.prototype.findObjectsNear=on.prototype.og,on.prototype.findPartsNear=on.prototype.mz,on.prototype.findObjectsIn=on.prototype.Cf,on.prototype.findPartsIn=on.prototype.ux,on.prototype.findObjectsAt=on.prototype.ji,on.prototype.findPartsAt=on.prototype.lz,on.prototype.findObjectAt=on.prototype.ic,on.prototype.findPartAt=on.prototype.Ol,on.prototype.focusObject=on.prototype.zz,on.prototype.alignDocument=on.prototype.Jy,on.prototype.zoomToRect=on.prototype.BA,on.prototype.zoomToFit=on.prototype.zoomToFit,on.prototype.diagramScroll=on.prototype.kx,on.prototype.focus=on.prototype.focus;var Ks=new Ji,La=null,ss=we.document!==void 0,ml=null,xl="",ma=new zn(on,"None",0),ja=new zn(on,"Uniform",1),Lu=new zn(on,"UniformToFill",2),Ou=new zn(on,"CycleAll",10),yh=new zn(on,"CycleNotDirected",11),vc=new zn(on,"CycleNotDirectedFast",12),Hc=new zn(on,"CycleNotUndirected",13),zc=new zn(on,"CycleDestinationTree",14),Gc=new zn(on,"CycleSourceTree",15),Xh=new zn(on,"DocumentScroll",1),KA=new zn(on,"InfiniteScroll",2),Zh=new zn(on,"TreeParentCollapsed",21),Us=new zn(on,"AllParentsCollapsed",22),Th=new zn(on,"AnyParentsCollapsed",23),yc=new ai,il="2.3.10",$u="image",Jl=null,LA=!1;function za(){if(ss){var a=we.document.createElement("canvas"),y=a.getContext("2d"),x=Kn("7ca11abfd022028846");y[x]=Kn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",qe.Dx+"4ae6247590da4bb21c324ba3a84e385776",fo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Je.za],E=1;5>E;E++)y[Kn("7ca11abfd7330390")](Kn(b[E-1]),10,15*E);for(y[x]=Kn("39f046ebb36e4b"),x=1;5>x;x++)y[Kn("7ca11abfd7330390")](Kn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(fo.prototype.Cd=fo.prototype.Eu),Jl=a}}on.className="Diagram",on.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=we.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof on?y.H:null},on.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},on.useDOM=function(a){ss=a?we.document!==void 0:!1},on.isUsingDOM=function(){return ss},on.None=ma,on.Uniform=ja,on.UniformToFill=Lu,on.CycleAll=Ou,on.CycleNotDirected=yh,on.CycleNotDirectedFast=vc,on.CycleNotUndirected=Hc,on.CycleDestinationTree=zc,on.CycleSourceTree=Gc,on.DocumentScroll=Xh,on.InfiniteScroll=KA,on.TreeParentCollapsed=Zh,on.AllParentsCollapsed=Us,on.AnyParentsCollapsed=Th;function wc(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ol(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=we[Kn("76a715b2f73f148a")][Kn("72ba13b5")]||"";if(a.Rc=!0,ss){var b=on[Kn("76a115b6ed251eaf4692")];if(b)for(var E=yc.iterator;E.next()&&(b=E.value,b=Kn(b).split(Kn("39e9")),!(6>b.length));){var z=Kn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=Kn(qe[Kn("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=we[Kn("74a900bae4370f8b51")][Kn("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[Kn("73a612b6fb191d")](Kn("3aad1ab6e022098b4dc4")),z=Kn(b[2]),-1<tt&&(rt=rt[Kn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[Kn("76ad18b4f73e")],rt=x[Kn("73a612b6fb191d")](Kn("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[Kn("73a612b6fb191d")](z),0>tt&&z!==Kn("7da71ca0ad381e90")&&(tt=y[Kn("73a612b6fb191d")](Kn("76a715b2ef3e149757"))),0>tt&&(tt=y[Kn("73a612b6fb191d")](Kn("76a715b2ef3e149757"))),0>tt&&(tt=y[Kn("73a612b6fb191d")](Kn("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Kn("73a612b6fb191d")](Kn("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[Kn("73a612b6fb191d")](Kn("35"))||y[Kn("73a612b6fb191d")](Kn("35"))===-1),!a.Rc||x[Kn("73a612b6fb191d")](Kn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Kn("73a612b6fb191d")](z)),!a.Rc)||(tt=we[Kn("76a715b2f73f148a")][Kn("69ad17a1e03e")],rt=tt[Kn("73a612b6fb191d")](Kn("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[Kn("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=we.document.createElement("div");for(var st=b[0].replace(/[A-Za-z]/g,"");4>st.length;)st+="9";if(rt=st,st=st.substr(st.length-4),b="",b+=["gsh","gsf"][parseInt(st.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(st.substr(0,1),10)%4],tt[Kn("79a417a0f0181a8946")]=b,we.document[Kn("78a712aa")]){we.document[Kn("78a712aa")][Kn("7bb806b6ed32388c4a875b")](tt),st=we.getComputedStyle(tt).getPropertyValue(Kn("78a704b7e62456904c9b12701b6532a8"));var lt=we.getComputedStyle(tt).getPropertyValue(Kn("75b817b0ea2202"));if(we.document[Kn("78a712aa")][Kn("68ad1bbcf533388c4a875b")](tt),st){if(tt=we[Kn("77a902b0eb1b1e804a8a")],lt==="0."+parseInt(rt,10)%100||st.indexOf(parseInt(z[1]+z[2],16))!==-1&&st.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Kn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(b===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[Kn("76ad18b4f73e")],E=x[Kn("73a612b6fb191d")](Kn("35e7"))+2;E<ut;E++)y+=x[E];x=y[Kn("73a612b6fb191d")](Kn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Kn("73a612b6fb191d")](Kn("35")))}}}return 0<a.Rc&&a!==a.wy}wc.className="DiagramHelper";function wh(a){this.j=a===void 0?new re:a,this.o=new re}Ae.Object.defineProperties(wh.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Sc="DraggingInfo";wh.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function ot(){this.reset()}ot.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Ni(NaN,NaN).freeze(),this.gridSnapCellSpot=Za,this.gridSnapOrigin=new re(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ot.className="DraggingOptions";function ct(a,y){if(typeof a=="string"||we.Element&&a instanceof Element)var x=on.call(this,a)||this;else x=on.call(this)||this,y=a;return At(x),y&&x.nm(y),x}nn(ct,on);function At(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=bl,a.layout=new iu}ct.prototype.reset=function(){on.prototype.reset.call(this),At(this)},ct.className="Palette";function mt(a,y){if(typeof a=="string"||we.Element&&a instanceof Element)var x=on.call(this,a)||this;else x=on.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new Sr;var E=new io;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new mr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new he,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var tt=z.viewportBounds,rt=b.lastInput.documentPoint;z.position=new re(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){b.Ya(),qt(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&qt(b)},x.autoScale=ja,x.vb=!1,y&&Object.assign(x,y),x}nn(mt,on),mt.prototype.computePixelRatio=function(){return 1},mt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(cc(this),this.ql===null){var x=new Dh(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Dt(this)}finally{this.ta=a,this.ib=y}}}on.prototype.redraw.call(this)},mt.prototype.gc=function(){if(this.Ka===null&&Fe("No div specified"),this.ta===null&&Fe("No canvas specified"),!(this.ta instanceof Nl)&&(vv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){cc(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Dt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function Dt(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=Mn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),vh(y,E),Mn.free(E),Ml(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var rt=y[tt],st=a;if(rt.visible&&rt.opacity!==0){var lt=rt.diagram.grid.part;if(!x&&rt.isTemporary)b&&lt.layer===rt&&(rt=Wh(rt,E),lt.gc(E,st),E.globalAlpha=rt);else{for(var ut=Wh(rt,E),dt=st.scale,St=Mn.alloc(),Et=rt.Pa.s,Tt=Et.length,Ht=0;Ht<Tt;Ht++){var de=Et[Ht];(b||de!==lt)&&rt.Oj(E,de,st,null,dt,St,!1)}Mn.free(St),E.globalAlpha=ut}}}}}function qt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Ni.alloc();E.h(x.width,x.height),b.desiredSize=E,Ni.free(E),a=2/a.scale,b instanceof io&&(b.strokeWidth=a),y.location=new re(x.x-a/2,x.y-a/2),y.isSelected=!0}}}mt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return jo;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},mt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},mt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),qt(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},Ae.Object.defineProperties(mt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof mt&&Fe("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),qt(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),qt(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),mt.className="Overview";function he(){ce.call(this),this.j=null}nn(he,ce),he.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new re(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new re(a.x-this.j.x,a.y-this.j.y)),!0)},he.prototype.doActivate=function(){this.j=null,ce.prototype.doActivate.call(this)},he.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},he.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new re(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new re(a.x-this.j.x,a.y-this.j.y)}}},he.className="OverviewDraggingTool";function ue(){Qo(this),this.H=Mh,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=jo,this.hb=!0,this.cg=null,this.ob=200}ue.prototype.toString=function(){return"CommandHandler"},ue.prototype.Xe=function(a){this.H=a},ue.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=rs?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},ue.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ue.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof kt&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ue.prototype.canStopCommand=function(){return!0},ue.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},ue.prototype.canSelectAll=function(){return this.diagram.allowSelect},ue.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new ei,x=a.selection.iterator;x.next();)ig(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},ue.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ue.prototype.copySelection=function(){var a=this.diagram,y=new ei;for(a=a.selection.iterator;a.next();)ig(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},ue.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ue.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ue.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ue.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)ml=null,xl="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new ai,x.addAll(z),ml=x,xl=y.model.dataFormat}}y.R("ClipboardChanged",x)},ue.prototype.pasteFromClipboard=function(){var a=new ei,y=ml;if(y===null)return a;var x=this.diagram;if(xl!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,tt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=tt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},ue.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);fc(y,z,new re(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ue.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||ml===null||ml.count===0||xl!==a.model.dataFormat)},ue.prototype.undo=function(){this.diagram.undoManager.undo()},ue.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ue.prototype.redo=function(){this.diagram.undoManager.redo()},ue.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ue.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ma&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ue.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ma?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ue.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ma&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ue.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ma?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ue.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ue.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ue.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Gl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=jo):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ho(y)},ue.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ue.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(st){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Gl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Me(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var st=E.pop();0<E.length&&st instanceof Qi&&st.isTreeExpanded&&(!(st instanceof qr)||st.isSubGraphExpanded);)st=E.pop();0<E.length?(st instanceof Sr&&y.tv(st.actualBounds),st instanceof Qi&&!st.isTreeExpanded&&(st.isTreeExpanded=!0),st instanceof qr&&!st.isSubGraphExpanded&&(st.isSubGraphExpanded=!0)):(st instanceof Sr&&y.es(st.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){ui(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function Me(a,y,x){if(y.isVisible())return x;if(y instanceof Yo)Me(a,y.adornedPart,x);else if(y instanceof Bi){var b=y.fromNode;b!==null&&Me(a,b,x),y=y.toNode,y!==null&&Me(a,y,x)}else y instanceof Qi&&(b=y.labeledLink,b!==null&&Me(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Me(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Me(a,y,x));return x}ue.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Sr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ue.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Gl(y.animationManager,"Collapse Tree");var x=new ai;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Qi&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},ue.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Qi&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Qi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ue.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Gl(y.animationManager,"Expand Tree");var x=new ai;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Qi&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},ue.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Qi)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Qi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ue.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new ai,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&E.add(tt)}for(var rt=new ai,st=E.iterator;st.next();){var lt=st.value;z=!1;for(var ut=E.iterator;ut.next();)if(lt.Td(ut.value)){z=!0;break}z||rt.add(lt)}if(0<rt.count){var dt=rt.first().containingGroup;if(dt!==null)for(;dt!==null;){E=!1;for(var St=rt.iterator;St.next();)if(!St.value.Td(dt)){E=!0;break}if(E)dt=dt.containingGroup;else break}if(x instanceof qr)cu(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Et=y.copyNodeData(x);Sn(Et)&&(y.xf(Et),b=a.ii(Et))}if(b!==null){dt!==null&&this.isValidMember(dt,b)&&(b.containingGroup=dt);for(var Tt=rt.iterator;Tt.next();){var Ht=Tt.value;this.isValidMember(b,Ht)&&(Ht.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ue.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function xn(a){var y=tr();for(a=a.iterator;a.next();){var x=a.value;x instanceof Bi||y.push(x)}a=new ei,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,tt=0;tt<x;tt++)if(E.Td(y[tt])){z=!1;break}z&&a.add(E)}return vr(y),a}ue.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Bi)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},ue.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new ai;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof qr&&z.canUngroup()&&b.add(z)}var tt=new ai;if(0<b.count){y.clearSelection(!0);for(var rt=b.iterator;rt.next();){var st=rt.value;st.expandSubGraph();var lt=st.containingGroup,ut=lt!==null&&lt.data!==null?x.wa(lt.data):void 0;tt.addAll(st.memberParts);for(var dt=tt.iterator;dt.next();){var St=dt.value;if(St.isSelected=!0,!(St instanceof Bi)){var Et=St.data;Et!==null?x.mp(Et,ut):St.containingGroup=lt}}y.remove(st)}}y.R("SelectionUngrouped",b,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ue.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof qr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof qr&&y.canUngroup())return!0;return!1},ue.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=xn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},ue.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Gl(y.animationManager,"Collapse SubGraph");var x=new ai;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof qr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},ue.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof qr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof qr&&y.isSubGraphExpanded)return!0;return!1},ue.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Gl(y.animationManager,"Expand SubGraph");var x=new ai;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof qr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},ue.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof qr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof qr&&!y.isSubGraphExpanded)return!0;return!1},ue.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Is&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},ue.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof Is))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof Is&&x.editable}),a!==null))return!0;return!1},ue.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof _e?E=a.ga(bo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new re(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,Bs(x,!1,a)}},ue.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},ue.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new Ji,a===null)return b;for(var z=a.iterator;z.next();)bu(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Bi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Ae.Object.defineProperties(ue.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||Fe("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),ue.className="CommandHandler",Ld=function(){return new ue};function _e(){Qo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new re(NaN,NaN).freeze(),this.jd=Xa,this.Ab=new fo,this.wh=new fo,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=lu,this.uc=new Mn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Mn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Mn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ns,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var ri,ti,qi,lr,Cr,Ur,mo,Xr,Eo,is;_e.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=xr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},_e.prototype.Vw=function(a){var y=this.Dh;if($n(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},_e.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},_e.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},_e.prototype.copy=function(){return this.clone()},jt=_e.prototype,jt.qb=function(a){a.classType===Bi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Fe("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===_e&&(this.stretch=a)},jt.toString=function(){return ur(this.constructor)+"#"+Xo(this)},jt.th=function(){this.A!==null&&(this.A.nc=!0)};function Zr(a){a.A===null?a.A=new jd:a.A.nc&&(a.A=a.A.copy())}jt.Xc=function(){if(this.ba===null){var a=new Vf;a.Xi=Pa,a.yj=Pa,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},jt.cb=function(a,y,x,b,E,z,tt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,b,E,z,tt),x===this&&a===qs&&vl(this)&&xs(this,rt,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Ji),tt=z.undoManager.transactionLevel===0,a.startCondition===RA?tt=!0:a.startCondition===uc&&(tt=!1),tt?(z=new El,tf(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Gl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Ln&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)rt=x[E],rt instanceof Ln&&Ns(rt,function(st){st.data!==null&&st.l&16777216&&st.La(y)})};function xs(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,tt=null;if(z.sourceName!==null){if(tt=M1(z,b,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,b)}else{if(rt=b.data,rt===null)continue;var st=y.diagram;st===null||st.skipsModelSourceBindings||z.sp(a,rt,x,b)}tt===a&&(rt=b.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}jt.ks=function(a){return this.bindingId===a?this:null},jt.g=function(a,y,x){this.cb(qs,a,this,y,x)},jt.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new fo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Ga(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}jt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Ps(a.x,a.y,0,0,0,b.height)<=y||Ps(a.x,a.y,0,b.height,b.width,b.height)<=y||Ps(a.x,a.y,b.width,b.height,b.width,0)<=y||Ps(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},jt.se=function(){return!0},jt.ca=function(a){var y=re.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return re.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),tt=z/2,rt=this.naturalBounds;b=this.Df()*b.scale;var st=1/b;if(rt.width*b<E&&rt.height*b<E)return a=Ys(x.x-tt*st,x.y-tt*st,x.width+z*st,x.height+z*st,y.x,y.y),re.free(y),a}return E=!1,(this instanceof Yo||this instanceof io?Ys(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),re.free(y),E},jt.gh=function(a){var y=this.naturalBounds;return Ys(0,0,y.width,y.height,a.x,a.y)},jt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Mn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=re.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),re.free(E),Mn.free(y),b},jt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=re.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),re.free(E),b},jt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=re.allocAt(0,0),E=re.allocAt(0,x.height),z=re.allocAt(x.width,x.height),tt=re.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))rt=!0;else{x=Mn.allocAt(0,0,x.width,x.height);var st=re.allocAt(a.x,a.y);x.ca(y.Cd(st))?rt=!0:(st.h(a.x,a.bottom),x.ca(y.Cd(st))?rt=!0:(st.h(a.right,a.bottom),x.ca(y.Cd(st))?rt=!0:(st.h(a.right,a.y),x.ca(y.Cd(st))&&(rt=!0)))),re.free(st),Mn.free(x),!rt&&(Je.us(a,b,E)||Je.us(a,E,z)||Je.us(a,z,tt)||Je.us(a,tt,b))&&(rt=!0)}return re.free(b),re.free(E),re.free(z),re.free(tt),rt},jt.ga=function(a,y){if(y===void 0&&(y=new re),a instanceof nr){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},jt.mi=function(a){a===void 0&&(a=new Mn);var y=this.naturalBounds,x=this.oe,b=re.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),ps(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),ps(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),ps(a,b.x,b.y,0,0),re.free(b),a},jt.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},jt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},jt.qs=function(a,y){return y===void 0&&(y=new re),y.assign(a),this.oe.Cd(y),y},jt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},jt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,st=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,dt=tt*(z.m21*z.dy-z.m22*z.dx),St=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Je.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(tt=a*rt+y*lt+dt,a=a*st+y*ut+St,y=x*rt+b*lt+dt,x=x*st+b*ut+St,E.h(0,0),b=this.naturalBounds,x=Je.Ff(0,0,b.width,b.height,tt,a,y,x,E),E.transform(z),x)},_e.prototype.measure=function(a,y,x,b){if(Fu(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+tt:a,y=isFinite(E.width)?E.width+tt:y):(a=isFinite(E.width)?E.width+tt:a,y=isFinite(E.height)?E.height+tt:y),E=x||0,tt=b||0;var rt=this instanceof Ln;switch(nu(this,!0)){case ti:tt=E=0,rt&&(y=a=1/0);break;case ri:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case lr:isFinite(a)&&a>x&&(E=a),tt=0,rt&&(y=1/0);break;case Cr:isFinite(y)&&y>b&&(tt=y),E=0,rt&&(a=1/0)}rt=this.maxSize;var st=this.minSize;E>rt.width&&st.width<rt.width&&(E=rt.width),tt>rt.height&&st.height<rt.height&&(tt=rt.height),x=Math.max(E,st.width),b=Math.max(tt,st.height),rt.width<x&&(x=Math.min(st.width,x)),rt.height<b&&(b=Math.min(st.height,b)),a=Math.min(rt.width,a),y=Math.min(rt.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||Fe("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ka(this,!1)}},_e.prototype.Wl=function(){},_e.prototype.Dd=function(){return!1},_e.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=Mn.alloc();z.assign(this.Ib),this.Ib.ka(),$l(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Mu(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof Is&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Fe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),yA(this,!1),Mn.free(z)},jt=_e.prototype,jt.eh=function(){};function Ja(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,b+=y,E+=tt,y=nu(a,!0),x===b&&z===E&&(y=ti),y){case ti:(x>b||z>E)&&(Ka(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case ri:Ka(a,!0),a.measure(b,E,0,0);break;case lr:Ka(a,!0),a.measure(b,z,0,0);break;case Cr:Ka(a,!0),a.measure(x,E,0,0)}}}jt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Sv(x,!0),this.N(),aA(a,y)||(x.oh(),this.Pn(x)))},jt.Pn=function(a){this.portId!==null&&(Sv(a,!0),a instanceof Qi&&Vy(a,this))},jt.gc=function(a,y){if(!ka(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof Ln&&Mu(this),tt=this.Ib;if(z){var rt=this.Ib,st=this.dc,lt=this.areaBackground,ut=this.Ma;lt===null&&ut===null||a.yc(),lt!==null&&(Qs(this,a,lt,!0,!0,st,rt),lt instanceof as&&lt.type===xe?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(lt)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(Qs(this,a,ut,!0,!1,st,rt),ut instanceof as&&ut.type===xe?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ut)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&$a(this),lt=this.part,st=!1;var dt=0;lt&&y.Gf("drawShadows")&&(st=lt.isShadowed)&&(ut=lt.shadowOffset,dt=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var St;if(!(St=y.$i||!ut)){var Et=this.naturalBounds;St=this.wh;var Tt=St.m11,Ht=St.m21,de=St.dx,ie=St.m12,Se=St.m22,Le=St.dy,Ee,We=Ee=0;St=Ee*Tt+We*Ht+de;var dn=Ee*ie+We*Se+Le;Ee=Et.width+dt,We=0;var Di=Ee*Tt+We*Ht+de;Ee=Ee*ie+We*Se+Le,We=Math.min(St,Di);var er=Math.min(dn,Ee),Ki=Math.max(St+0,Di)-We,xi=Math.max(dn+0,Ee)-er;St=We,dn=er,Ee=Et.width+dt,We=Et.height+dt,Di=Ee*Tt+We*Ht+de,Ee=Ee*ie+We*Se+Le,We=Math.min(St,Di),er=Math.min(dn,Ee),Ki=Math.max(St+Ki,Di)-We,xi=Math.max(dn+xi,Ee)-er,St=We,dn=er,Ee=0,We=Et.height+dt,Di=Ee*Tt+We*Ht+de,Ee=Ee*ie+We*Se+Le,We=Math.min(St,Di),er=Math.min(dn,Ee),Ki=Math.max(St+Ki,Di)-We,xi=Math.max(dn+xi,Ee)-er,St=We,dn=er,dt=y.viewportBounds,Et=dt.x,Tt=dt.y,St=!(St>dt.width+Et||Et>Ki+St||dn>dt.height+Tt||Tt>xi+dn)}if(St){if(St=(this.l&256)!==0,a.clipInsteadOfFill&&(St=!1),this instanceof Is&&(a.font=this.font),St){if(dn=rt.se()?rt.naturalBounds:rt.actualBounds,Ki=Math.max(tt.x,dn.x),xi=Math.max(tt.y,dn.y),dt=Math.min(tt.right,dn.right)-Ki,Et=Math.min(tt.bottom,dn.bottom)-xi,Tt=this.tb,Tt!==null&&(Ki=Tt.x,xi=Tt.y,dt=Tt.width,Et=Tt.height),Ki>tt.width+tt.x||tt.x>dn.width+dn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Ki,xi,dt,Et),a.clip()}if(ut){if(!lt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}st&&(dn=lt.shadowOffset,a.Ev(dn.x*y.scale*this.scale*y.Mb,dn.y*y.scale*this.scale*y.Mb,lt.shadowBlur),eh(a),a.shadowColor=lt.shadowColor)}st&&this.shadowVisible===!0?eh(a):st&&this.shadowVisible===!1&&wA(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Aa(this,a,lt,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),st&&va(this,rt)&&this.shadowVisible===null&&wA(a),this.Ma!==null&&(a.yc(),$s(this,a,lt,tt)),st&&(this.Ma!==null||this.areaBackground!==null||va(this,rt))?(mu(this,!0),this.shadowVisible===null&&wA(a)):mu(this,!1),this.hh(a,y),st&&this.l&512&&eh(a),ut&&st&&wA(a),St&&(a.restore(),a.Vc(this instanceof Ln)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function va(a,y){return y===null?!1:(Mu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Ln.Auto||y.type===Ln.Spot)&&y.Pb()!==a)}jt.Dv=function(){};function Aa(a,y,x,b){Qs(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof as&&a.areaBackground.type===xe?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function $s(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,rt=x.width+E,st=x.height+E;Qs(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof as&&a.Ma.type===xe?(y.beginPath(),y.rect(z-E/2,tt-E/2,rt,st),y.ng(a.Ma)):y.fillRect(z-E/2,tt-E/2,rt,st)}function ua(a,y,x){for(var b=y.O.s,E=b.length,z=-1,tt=0;tt<E;tt++)if(b[tt]===a){z=tt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Ln.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function ka(a,y,x){if(!(y instanceof Eu))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&ua(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),eh(y),y.shadowColor=a.shadowColor}a instanceof Is&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof Ln;var rt=a instanceof Ln?Mu(a):!1;a.l&4096&&$a(a);var st=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&rt?(EA(y,1,0,0,1,0,0),a.svg=y.ad):z?(EA(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):EA(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var lt=tt.copy().Vj();y.rb.ha=[lt.m11,lt.m12,lt.m21,lt.m22,lt.dx,lt.dy],Aa(a,y,E,st),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),a.background!==null&&(z?(rt&&(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),$s(a,y,E,st),rt&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],$s(a,y,E,st)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,E=a.part,rt=!1,E&&x.Gf("drawShadows")&&(rt=E.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&eh(y),rt&&a.shadowVisible===!0?eh(y):rt&&a.shadowVisible===!1&&wA(y),E=a.panel,rt&&va(a,E)&&a.shadowVisible===null&&wA(y),y.Il&&(lt=x.computePixelRatio(),lt="drop-shadow("+y.shadowOffsetX/lt+"px "+y.shadowOffsetY/lt+"px "+y.shadowBlur/lt/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",lt),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",lt)),rt&&(a.Ma!==null||a.areaBackground!==null||va(a,E))?(mu(a,!0),a.shadowVisible===null&&wA(y)):mu(a,!1),E=rt,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,rt=z?a.svg:y.yd,lt=a.svg,!z&&lt!==null&&rt!==lt&&lt.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,b,st,rt),Bl(y,lt),!0):(a.svg=rt,tt!==null&&rt===null&&(Cg(y),y.nh.pop()),rt===null||(a.$o(y,b,st,rt),y.Il&&(x=x.computePixelRatio(),a.Dv(rt,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&eh(y),a.Dd()&&wA(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&rt.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&rt.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(rt):y.Nj.prepend(rt),y.ti=rt):b!==null&&ua(a,b,rt),tt!==null&&tt(a,rt)),!0)}jt.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,tt=z.width,x=z.height),z=b.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+Js++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:tt,height:x}),this instanceof Ln&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Bl(a,b)};function Bl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function $r(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=fs(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}jt.hh=function(){},jt.lv=function(){this.Uc=!0},jt.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof Ln?Mu(this):!1;if(!(this instanceof Ln&&E))if(this instanceof Bh){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Gg(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",yp(a)):y.setAttributeNS(null,"transform",yp(a))}else if(!x||this instanceof Ln)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof io){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(tt=b.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],Aa(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(tt=y.gd.getAttribute("filter"),tt!==null&&a.ad.setAttribute("filter",tt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&Oh(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Oh(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Ln))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),$s(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Oh(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&Oh(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},jt.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function Qs(a,y,x,b,E,z,tt){if(x!==null){var rt=1,st=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Wt)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var lt=a.kq();if(rt=z.width,st=z.height,E?(rt=tt.width,st=tt.height):b||(rt+=lt,st+=lt),(z=y instanceof Rd)&&x.xe&&(x.type===ze||x.yk===rt&&x.ft===st))var ut=x.xe;else{var dt=0,St=0,Et=0,Tt=0,Ht=0,de=0;if(de=Ht=0,E?(Ht=tt.x,de=tt.y):b||(Ht-=lt/2,de-=lt/2),dt=x.start.x*rt+x.start.offsetX,St=x.start.y*st+x.start.offsetY,Et=x.end.x*rt+x.end.offsetX,Tt=x.end.y*st+x.end.offsetY,dt+=Ht,Et+=Ht,St+=de,Tt+=de,x.type===ee)ut=y.createLinearGradient(dt,St,Et,Tt);else if(x.type===xe)de=isNaN(x.endRadius)?Math.max(rt,st)/2:x.endRadius,isNaN(x.startRadius)?(Ht=0,de=Math.max(rt,st)/2):Ht=x.startRadius,ut=y.createRadialGradient(dt,St,Ht,Et,Tt,de);else if(x.type===ze)try{ut=y.createPattern(x.pattern,"repeat")}catch(Se){ut=null}if(x.type!==ze&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ut.addColorStop(E.key,E.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=st),ut===null&&x.type===ze&&x.yk!==-1)){x.yk=-1;var ie=a.diagram;ie!==null&&x.yk===-1&&ui(function(){ie.redraw()},600)}}b?y.fillStyle=ut:y.strokeStyle=ut}}}jt.rg=function(a){if(a instanceof Ln)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},jt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},jt.If=function(){for(var a=this instanceof Ln?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function $a(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Du(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}Du(a,!1),su(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,su(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,su(a,!1)))}jt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=re.alloc();z.yi(y,x,b,E,bo),a.rotate(this.Kb,z.x,z.y),re.free(z)}},jt.v=function(a){if(!Fu(this)){a===void 0&&(a=!1),Ka(this,!0),yA(this,!0);var y=this.panel;y===null||a||y.v()}},jt.Uj=function(){Fu(this)||(Ka(this,!0),yA(this,!0))};function _a(a){if(!$l(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Qi&&a.Bd(),y.$b())),yA(a,!0)}}jt.Uk=function(){!(this.l&2048)&&(Du(this,!0),su(this,!0))},jt.Wu=function(){su(this,!0)},jt.N=function(){var a=this.part;a!==null&&a.N()};function nu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Ln.Table?Es(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Ln.Auto&&b.Pb()===a?As(a,ri,y):x===Ur?b!==null?b.type===Ln.Spot&&b.Pb()===a?As(a,ri,y):(x=b.defaultStretch,x===Ur?As(a,ti,y):As(a,x,y)):As(a,ti,y):As(a,x,y)}function Es(a,y,x,b){var E=a.stretch;if(E!==Ur)return As(a,E,b);var z=E=null;switch(y.stretch){case Cr:z=!0;break;case ri:z=!0}switch(x.stretch){case lr:E=!0;break;case ri:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===lr||y===ri),z===null&&(z=y===Cr||y===ri),E===!0&&z===!0?As(a,ri,b):E===!0?As(a,lr,b):z===!0?As(a,Cr,b):As(a,ti,b)}function As(a,y,x){if(x)return y;if(y===ti||(x=a.desiredSize,x.w()))return ti;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===lr)return ti;if(y===ri)return Cr}else{if(y===Cr)return ti;if(y===ri)return lr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Cr)return ti;if(y===ri)return lr}else{if(y===lr)return ti;if(y===ri)return Cr}return y}function mu(a,y){a.l=y?a.l|512:a.l&-513}function vl(a){return(a.l&1024)!==0}function xc(a,y){a.l=y?a.l|1024:a.l&-1025}function Du(a,y){a.l=y?a.l|2048:a.l&-2049}function su(a,y){a.l=y?a.l|4096:a.l&-4097}function Fu(a){return(a.l&8192)!==0}function Ka(a,y){a.l=y?a.l|8192:a.l&-8193}function $l(a){return(a.l&16384)!==0}function yA(a,y){a.l=y?a.l|16384:a.l&-16385}jt.Gj=function(){this.svg=null},jt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},jt.Av=function(){},jt.zv=function(a){return this.pa=a,_a(this),!0},jt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},jt.kq=function(){return 0};function WA(a){var y=a.part;if(y instanceof Qi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||Vy(y,a)}}function xg(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Ln?a instanceof Qi?a.Bd():a.qm(a,function(x){WA(x)}):WA(a))}jt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new al(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&xh(a)&&Fe("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new ai),this.localBindings.add(E),this},jt.set=function(a){return Object.assign(this,a),this},jt.Du=function(a){return Bg(this,a),this},jt.apply=function(a){return a(this),this},jt.nm=function(a){return Ac(this,a),this},jt.pz=function(){return this.ih()},jt.ih=function(){for(var a=this instanceof Ln?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},jt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Ji),this.animationTriggers.add(a.propertyName,a),this};function qu(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=vf.I(a);typeof z=="function"?(x=xr(arguments),b=z(x),Sn(b)||Fe('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=we.go[a]}if(b===null&&(E!=null&&E.constructor||Fe("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof on&&1<x.length){z=b;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(Tc(z,tt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?Fe("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):Bg(b,z);return b}function Bg(a,y){if(typeof y=="string")if(a instanceof Is)a.text=y;else if(a instanceof io)a.figure=y;else if(a instanceof Bh)a.source=y;else if(a instanceof Ln)y=ih.I(y),y!==null&&(a.type=y);else if(a instanceof as){var x=Hi(as,y);x!==null?a.type=x:Fe("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Li?(y=Hi(Li,y),y!==null&&(a.type=y)):a instanceof Wo&&(y=Hi(Wo,y),y!==null&&(a.type=y));else if(y instanceof _e)a instanceof Ln||Fe("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Va){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Va?Yg(b,y):Fe("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof zn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ze)a.type=y;else if(y instanceof al)a instanceof _e||a instanceof Va?a.bind(y):Fe("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Bu)a instanceof _e?a.Jv(y):Fe("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof pa)a instanceof Li&&a.type===Li.o?a.figures.add(y):Fe("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Wo)a instanceof pa?a.segments.add(y):Fe("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof ha)a instanceof on||a instanceof qr?a.layout=y:Fe("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)Bg(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof as){x=new jr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Ac(a,x)}else if(a instanceof Va){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Fe("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&Fe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new jr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Ac(a,E)}else Ac(a,y);else Fe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function FA(a,y){vf.add(a,y)}function Wf(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Ae.Object.defineProperties(_e.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new jd),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new jd),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new jd),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Zr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Zr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:oh},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new md),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===oh&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new md),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new md),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:zo},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new md),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Ur},set:function(a){var y=this.stretch;y!==a&&(Zr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Zr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ei(a,"0 <= value <= 1",_e,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ng(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ng(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),xg(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Ft(a,"GraphObject.areaBackground"),a instanceof as&&a.freeze(),Zr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ft(a,"GraphObject.background"),a instanceof as&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof Sr)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new re(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Fe("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,xg(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof io&&this.qc(),this.g("desiredSize",b,a),vl(this)&&(a=this.part,a!==null&&(xs(this,a,"width"),xs(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Ni(a,this.jd.height).freeze(),this.v(),this instanceof io&&this.qc(),this.g("desiredSize",y,a),vl(this)&&(a=this.part,a!==null&&xs(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Ni(this.jd.width,a).freeze(),this.v(),this instanceof io&&this.qc(),this.g("desiredSize",y,a),vl(this)&&(a=this.part,a!==null&&xs(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:to},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Zr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ls},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Zr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&$a(this),this.Ab}},oe:{get:function(){return this.l&4096&&$a(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Zr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:ti},set:function(a){this.reshapingBehavior!==a&&(Zr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&Fe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),_a(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Ei(a,">= 0",_e,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Ei(a,">= 1",_e,"columnSpan"),Zr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Ei(a,">= 0",_e,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Ei(a,">= 1",_e,"rowSpan"),Zr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Zr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Qi||Fe("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Pv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Zy(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Pa},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),WA(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ei(a,">= 0",_e,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),WA(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),WA(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Ei(a,">= 0",_e,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Pa},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),WA(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ei(a,">= 0",_e,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),WA(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),WA(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Ei(a,">= 0",_e,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Zr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Zr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Zr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Zr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Zr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Zr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Zr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Zr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Zr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Zr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Zr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Zr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Zr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Zr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Zr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Zr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Zr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Zr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),_e.prototype.trigger=_e.prototype.Jv,_e.prototype.findBindingPanel=_e.prototype.ih,_e.prototype.findTemplateBinder=_e.prototype.pz,_e.prototype.setProperties=_e.prototype.nm,_e.prototype.apply=_e.prototype.apply,_e.prototype.attach=_e.prototype.Du,_e.prototype.set=_e.prototype.set,_e.prototype.isEnabledObject=_e.prototype.If,_e.prototype.isVisibleObject=_e.prototype.Ed,_e.prototype.isContainedBy=_e.prototype.rg,_e.prototype.getNearestIntersectionPoint=_e.prototype.rs,_e.prototype.getLocalPoint=_e.prototype.qs,_e.prototype.getDocumentScale=_e.prototype.Df,_e.prototype.getDocumentAngle=_e.prototype.li,_e.prototype.getDocumentBounds=_e.prototype.mi,_e.prototype.getDocumentPoint=_e.prototype.ga,_e.prototype.intersectsRect=_e.prototype.Yc,_e.prototype.containedInRect=_e.prototype.fh,_e.prototype.containsRect=_e.prototype.Re,_e.prototype.containsPoint=_e.prototype.ca,_e.prototype.raiseChanged=_e.prototype.g,_e.prototype.raiseChangedEvent=_e.prototype.cb,_e.prototype.addCopyProperty=_e.prototype.Vw;var vf=null;_e.className="GraphObject",vf=new Ji,FA("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=qu(Ln,Ln.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Ln){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},qu(io,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new nr(0,0,2.76142374915397,2.761423749153969),spot2:new nr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Ln&&(x=b.fb("ButtonBorder"),x instanceof io)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Ln&&(x=b.fb("ButtonBorder"),x instanceof io&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Ln&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof io){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=tt,tt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Ln&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof io){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Ln&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof io){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Ln&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof io))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var tt=b._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=b._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),E.skipsUndoManager=z}}},y}),FA("TreeExpanderButton",function(){var a=qu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},qu(io,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Gs},new al("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new al("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Yo&&(x=x.adornedPart),x instanceof Qi){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),FA("SubGraphExpanderButton",function(){var a=qu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},qu(io,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Gs},new al("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Yo&&(x=x.adornedPart),x instanceof qr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),FA("ToolTip",function(){return qu(Yo,Ln.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new re(0,3),shadowBlur:5},qu(io,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new nr(0,0,4,6),spot2:new nr(1,1,-4,-4)}))}),FA("ContextMenu",function(){return qu(Yo,Ln.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new re(0,3),shadowBlur:5},new al("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),FA("ContextMenuButton",function(){var a=qu("Button");a.stretch=lr;var y=a.fb("ButtonBorder");return y instanceof io&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new nr(0,0,2,3),y.spot2=new nr(1,1,-2,-2)),a}),FA("PanelExpanderButton",function(a){var y=Wf(a,"COLLAPSIBLE"),x=qu("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},qu(io,{name:"ButtonIcon",strokeWidth:2},new al("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof io&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var tt=E.ih();tt===null&&(tt=E.part),tt!==null&&(E=tt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),FA("CheckBoxButton",function(a){var y=Wf(a);return a=qu("Button",{desiredSize:new Ni(14,14)},qu(io,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ri,geometryStretch:qi,visible:!1},y!==""?new al("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Ln){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),FA("CheckBox",function(a){a=Wf(a),a=qu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new mr(0,1,0,0)});var y=qu(Ln,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new mr(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),_e.None=ti=new zn(_e,"None",0),_e.Default=Ur=new zn(_e,"Default",0),_e.Vertical=Cr=new zn(_e,"Vertical",4),_e.Horizontal=lr=new zn(_e,"Horizontal",5),_e.Fill=ri=new zn(_e,"Fill",3),_e.Uniform=qi=new zn(_e,"Uniform",1),_e.UniformToFill=mo=new zn(_e,"UniformToFill",2),_e.FlipVertical=Xr=new zn(_e,"FlipVertical",1),_e.FlipHorizontal=Eo=new zn(_e,"FlipHorizontal",2),_e.FlipBoth=is=new zn(_e,"FlipBoth",3),_e.make=qu,_e.getBuilders=function(){var a=new Ji,y;for(y in vf)if(y!==y.toLowerCase()){var x=vf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},_e.defineBuilder=FA,_e.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=vf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof _e))return y&&b.set(y),b;Fe('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},_e.takeBuilderArgument=Wf;function jd(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=to,this.o=Ls,this.hg=Ur,this.ob=this.Bi=1,this.Pf=ti,this.Pc=this.Ci=this.gd=null,this.Oc="category"}jd.prototype.copy=function(){var a=new jd;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function md(){this.u=-1/0,this.o=0,this.F=zo,this.rr=oh,this.j=this.V="None"}md.prototype.copy=function(){var a=new md;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},md.className="LinkElementSettings";function Vf(){this.yj=this.Xi=ns,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Vf.prototype.copy=function(){var a=new Vf;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},Vf.className="LinkSettings";function _c(){this.ha=[1,0,0,1,0,0]}_c.prototype.copy=function(){var a=new _c;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},_c.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},_c.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},_c.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,tt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},_c.className="STransform";function VA(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}VA.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},VA.className="SGradient";function Nl(a,y,x){this.ownerDocument=a=y===void 0?we.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Eu(this,x)}Nl.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Nl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Sn(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Nl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Nl.prototype.focus=function(){this.Oa.focus()},Nl.prototype.mx=function(){this.ownerDocument=null},Ae.Object.defineProperties(Nl.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Nl.className="SVGSurface";function Eu(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new _c,this.j=Cg(this),this.Nj=Cg(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Js++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Yf(a,y,x,b,E,z,tt){a.Nj===void 0?EA(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}jt=Eu.prototype,jt.arc=function(a,y,x,b,E,z,tt,rt){var st=2*Math.PI,lt=st-1e-6,ut=x*Math.cos(b),dt=x*Math.sin(b),St=a+ut,Et=y+dt,Tt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(tt-St)||1e-6<Math.abs(rt-Et))&&this.path.push(["L",St,+Et]),0>b&&(b=b%st+st),b>lt?(this.path.push(["A",x,x,0,1,Tt,a-ut,y-dt]),this.path.push(["A",x,x,0,1,Tt,St,Et])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Tt,a+x*Math.cos(E),y+x*Math.sin(E)])},jt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},jt.Se=function(a){this.addPath(this.path,this.rb,a||0)},jt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},jt.clearRect=function(){},jt.clip=function(){this.Yl.clipPath=!0},jt.closePath=function(){this.path.push(["z"])},jt.createLinearGradient=function(a,y,x,b){var E=new VA("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},jt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+Js++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud($u,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},jt.createRadialGradient=function(a,y,x,b,E,z){var tt=new VA("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Gg(a,y,x,b,E,z,tt,rt,st){b=rt/b,E=st/E,z===0&&tt===0||a.rb.translate(z,tt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}jt.drawImage=function(a,y,x,b,E,z,tt,rt,st){var lt="";a instanceof HTMLCanvasElement&&(lt=a.toDataURL()),a instanceof HTMLImageElement&&(lt=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,tt=x,rt=b=ut,st=E=a),b=b||0,E=E||0,rt=rt||0,st=st||0,Gg(this,y,x,b,E,z||0,tt||0,rt,st),z={x:0,y:0,width:ut||b,height:a||E,href:lt},Je.$(b,rt)&&Je.$(E,st)?lt.toLowerCase().indexOf(".svg")===-1&&lt.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ut||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),Ud(this,$u,z,this.rb),this.addElement($u,z)},jt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),Qd(this,this.Yl)},jt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},jt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},Ud(this,"fill",a,this.rb),this.addElement("rect",a)},jt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},Ud(this,"fill",a,this.rb),Qd(this,a),this.svg.prepend(this.Ud("rect",a))},jt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Ud(this,"fill",y,this.rb),this.addElement("text",y,a[0])},jt.lineTo=function(a,y){this.path.push(["L",a,y])},jt.moveTo=function(a,y){this.path.push(["M",a,y])},jt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},jt.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},jt.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},jt.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},jt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||EA(this,a,y,x,b,E,z)};function yp(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}jt.scale=function(a,y){this.rb.scale(a,y)},jt.translate=function(a,y){this.rb.translate(a,y)},jt.transform=function(){},jt.yc=function(){},jt.stroke=function(){vd(this,this.Yl)},jt.jk=function(){this.clipInsteadOfFill||this.stroke()},jt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},jt.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Ud(a,y,x,b){y==="fill"?Qd(a,x):y==="stroke"&&vd(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function Qd(a,y){a.fillStyle instanceof VA?y.fill=th(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function Xf(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof VA?y.setAttributeNS(null,"fill",th(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function vd(a,y){if(a.strokeStyle instanceof VA)y.stroke=th(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function th(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+Js++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],tt=0;tt<y;tt++){var rt=E[tt],st=rt.color;rt={offset:rt.offset,"stop-color":st},/^rgba\(/.test(st)&&(st=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(st),rt["stop-color"]="rgb("+st[1]+","+st[2]+","+st[3]+")",rt["stop-opacity"]=st[4]),z.push(rt)}for(z.sort(function(lt,ut){return lt.offset>ut.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}jt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=xr(a[E]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());b.push(tt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,Ud(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var rt in a)rt!=="transform"&&y.setAttributeNS(null,rt,a[rt]);else{rt=y.getElementsByTagName("path");for(var st in a)st!=="transform"&&rt[x].setAttributeNS(null,st,a[st])}else this.addElement("path",a)};function EA(a,y,x,b,E,z,tt){var rt=new _c;rt.ha=[y,x,b,E,z,tt],y={},Ud(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function Cg(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}jt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function wA(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function eh(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}jt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},jt.fs=function(){this.Ct=!1},jt.Vc=function(){},jt.Wx=function(){},Eu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Eu.prototype.getImageData=function(){return null},Eu.prototype.measureText=function(){return null};function Oh(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Eu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Eu.className="SVGContext",on.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Nl(this,we.document));var y=new Nl(this,we.document,!0);a===void 0&&(a=new jr);var x=this;return gs(this,function(b,E){return b=ea(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},on.prototype.makeSvg=on.prototype.Cs,on.prototype.av=function(a){return this.Cs(a)},on.prototype.makeSVG=on.prototype.av;function Dh(a,y,x,b){this.ownerDocument=y=y===void 0?we.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Rd(y,x,b),y.H=a}Dh.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Dh.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Dh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Dh.prototype.focus=function(){this.Oa.focus()},Dh.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Ae.Object.defineProperties(Dh.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Dh.className="CanvasSurface";function Rd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Fe("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new fo,this.isTemporary=!!x}jt=Rd.prototype,jt.Wx=function(a){this.Z.imageSmoothingEnabled=a},jt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},jt.beginPath=function(){this.Z.beginPath()},jt.Se=function(){},jt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},jt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},jt.clip=function(){this.Z.clip()},jt.closePath=function(){this.Z.closePath()},jt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},jt.createPattern=function(a,y){return this.Z.createPattern(a,y)},jt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},jt.drawImage=function(a,y,x,b,E,z,tt,rt,st){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,tt,rt,st)},jt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},jt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},jt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},jt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},jt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},jt.lineTo=function(a,y){this.Z.lineTo(a,y)},jt.measureText=function(a){return this.Z.measureText(a)},jt.moveTo=function(a,y){this.Z.moveTo(a,y)},jt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},jt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},jt.restore=function(){this.Z.restore()},jt.save=function(){this.yc(),this.Z.save()},Rd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},jt=Rd.prototype,jt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},jt.scale=function(a,y){this.El.scale(a,y)},jt.translate=function(a,y){this.El.translate(a,y)},jt.stroke=function(){this.Z.stroke()},jt.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var tt=this.El,rt=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*b,x=tt.m12*x+tt.m22*b,tt.dx=tt.m11*E+tt.m21*z+tt.dx,tt.dy=tt.m12*E+tt.m22*z+tt.dy,tt.m11=rt,tt.m12=a,tt.m21=y,tt.m22=x}},jt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},jt.ng=function(a,y){if(a instanceof as&&a.type===xe){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},jt.jk=function(){this.Hm||this.stroke()},jt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},jt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},jt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(wp),a.lineDashOffset=0)},jt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},jt.Hs=function(){},Ae.Object.defineProperties(Rd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var wp=Object.freeze([]);Rd.className="CanvasSurfaceContext";function yf(){this.F=this.o=this.u=this.j=0}yf.className="ColorNumbers";function as(a,y){Pt||(Lt(),Pt=!0),Qo(this),this._isFrozen=!1,a===void 0?(this.na=Wt,this.xk="black"):typeof a=="string"?(this.na=Wt,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===ee?(this.Qd=bl,this.Lk=Yl):this.Lk=a===xe?this.Qd=bo:this.Qd=Pa,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}as.prototype.copy=function(){var a=new as;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},jt=as.prototype,jt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},jt.ka=function(){return Object.isFrozen(this)&&Fe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},jt.qb=function(a){a.classType===as&&(this.type=a)},jt.toString=function(){var a="Brush(";if(this.type===Wt)a+=this.color;else if(a=this.type===ee?a+"Linear ":this.type===xe?a+"Radial ":this.type===ze?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},jt.addColorStop=function(a,y){return this._isFrozen&&Qn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Ei(a,"0 <= loc <= 1",as,"addColorStop:loc"),this.we===null&&(this.we=new Ji),this.we.add(a,y),this.na===Wt&&(this.type=ee),this.xe=null,this},jt.Vz=function(a,y){if(this._isFrozen&&Qn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?je:y,this.type===Wt)MA(this.color),this.color=Kc(a,y);else if((this.type===ee||this.type===xe)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)MA(x.value),this.addColorStop(x.key,Kc(a,y));return this};function _g(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?je:x,MA(a),Kc(y,x)}jt.Wy=function(a,y){if(this._isFrozen&&Qn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?je:y,this.type===Wt)MA(this.color),this.color=Kc(-a,y);else if((this.type===ee||this.type===xe)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)MA(x.value),this.addColorStop(x.key,Kc(-a,y));return this};function Sp(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?je:x,MA(a),Kc(-y,x)}function wf(a,y,x){MA(a),a=rn.j;var b=rn.u,E=rn.o,z=rn.F;return MA(y),x===void 0&&(x=.5),"rgba("+Math.round((rn.j-a)*x+a)+", "+Math.round((rn.u-b)*x+b)+", "+Math.round((rn.o-E)*x+E)+", "+Math.round((rn.F-z)*x+z)+")"}jt.Gx=function(){if(this.type===Wt)return yd(this.color);if((this.type===ee||this.type===xe)&&this.colorStops!==null){var a=this.colorStops;if(this.type===xe)return yd(a.first().value);if(a.get(.5)!==null)return yd(a.get(.5));if(a.count===2)return a=a.Fa(),yd(wf(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);E>z&&rt<E?(x=tt,E=rt):z>=E&&rt<z&&(b=tt,z=rt)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,yd(wf(a.get(x),a.get(b),1-z/E))}return!1};function yd(a){return a?a instanceof as?a.Gx():(MA(a),128>(299*rn.j+587*rn.u+114*rn.o)/1e3):!1}function Kc(a,y){switch(y){case je:y=100*Kg(rn.j);var x=100*Kg(rn.u),b=100*Kg(rn.o);return vi.j=.4124564*y+.3575761*x+.1804375*b,vi.u=.2126729*y+.7151522*x+.072175*b,vi.o=.0193339*y+.119192*x+.9503041*b,vi.F=rn.F,y=Bt(vi.j/$e[0]),x=Bt(vi.u/$e[1]),b=Bt(vi.o/$e[2]),pt.j=116*x-16,pt.u=500*(y-x),pt.o=200*(x-b),pt.F=vi.F,pt.j=Math.min(100,Math.max(0,pt.j+100*a)),a=(pt.j+16)/116,y=a-pt.o/200,vi.j=$e[0]*xt(pt.u/500+a),vi.u=$e[1]*(pt.j>Pe*te?Math.pow(a,3):pt.j/Pe),vi.o=$e[2]*xt(y),vi.F=pt.F,a=-.969266*vi.j+1.8760108*vi.u+.041556*vi.o,y=.0556434*vi.j+-.2040259*vi.u+1.0572252*vi.o,rn.j=255*bg((3.2404542*vi.j+-1.5371385*vi.u+-.4985314*vi.o)/100),rn.u=255*bg(a/100),rn.o=255*bg(y/100),rn.F=vi.F,rn.j=Math.round(rn.j),255<rn.j?rn.j=255:0>rn.j&&(rn.j=0),rn.u=Math.round(rn.u),255<rn.u?rn.u=255:0>rn.u&&(rn.u=0),rn.o=Math.round(rn.o),255<rn.o?rn.o=255:0>rn.o&&(rn.o=0),"rgba("+rn.j+", "+rn.u+", "+rn.o+", "+rn.F+")";case Ke:return Pg(),Ai.o=Math.min(100,Math.max(0,Ai.o+100*a)),"hsla("+Ai.j+", "+Ai.u+"%, "+Ai.o+"%, "+Ai.F+")";default:Fe("Unknown color space: "+y)}}function MA(a){Pt||(Lt(),Pt=!0);var y=Fn;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,rn.j=a[0],rn.u=a[1],rn.o=a[2],rn.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,rn.j=0,rn.u=0,rn.o=0,rn.F=1)}}function Pg(){var a=rn.j/255,y=rn.u/255,x=rn.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var tt=a=0;else{switch(b){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*E-1))}Ai.j=Math.round(tt),Ai.u=Math.round(100*a),Ai.o=Math.round(100*E),Ai.F=rn.F}function Kg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function bg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Bt(a){return a>te?Math.pow(a,1/3):(Pe*a+16)/116}function xt(a){var y=a*a*a;return y>te?y:(116*a-16)/Pe}function Ft(a,y){typeof a!="string"&&(a instanceof as||Fe("Value for "+y+" must be a color string or a Brush, not "+a))}function Lt(){Fn=ss?new Dh(null,void 0,{willReadFrequently:!0}).context:null}Ae.Object.defineProperties(as.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Qn(this,a),this.na=a,this.start.Mc()&&(a===ee?this.start=bl:a===xe&&(this.start=bo)),this.end.Mc()&&(a===ee?this.end=Yl:a===xe&&(this.end=bo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Qn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Qn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Qn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Qn(this,a),0>a&&Ei(a,">= zero",as,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Qn(this,a),0>a&&Ei(a,">= zero",as,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Qn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Qn(this,a),this.cr=a,this.xe=null}}}),as.prototype.isDark=as.prototype.Gx,as.prototype.darkenBy=as.prototype.Wy,as.prototype.lightenBy=as.prototype.Vz,as.prototype.addColorStop=as.prototype.addColorStop;var te=216/24389,Pe=24389/27,$e=[95.047,100,108.883],Fn=null,rn=new yf,Ai=new yf,vi=new yf,pt=new yf,Pt=!1;as.className="Brush";var Wt;as.Solid=Wt=new zn(as,"Solid",0);var ee;as.Linear=ee=new zn(as,"Linear",1);var xe;as.Radial=xe=new zn(as,"Radial",2);var ze;as.Pattern=ze=new zn(as,"Pattern",4);var je;as.Lab=je=new zn(as,"Lab",5);var Ke;as.HSL=Ke=new zn(as,"HSL",6),as.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},as.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Pt||(Lt(),Pt=!0);var y=Fn;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},as.lighten=function(a){return _g(a)},as.lightenBy=_g,as.darken=function(a){return Sp(a)},as.darkenBy=Sp,as.mix=wf,as.isDark=yd;function Ze(){this.xa="Base"}Ze.prototype.measure=function(){},Ze.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ze.prototype.arrange=function(){},Ze.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Ze.prototype.iA=function(a){a.Uj()},Ze.prototype.gc=function(){},Ae.Object.defineProperties(Ze.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Ln}}}),Ze.prototype.remeasureObject=Ze.prototype.iA,Ze.prototype.arrangeElement=Ze.prototype.Ly,Ze.prototype.measureElement=Ze.prototype.Yz,Ze.className="PanelLayout";function cn(){this.xa="Base"}nn(cn,Ze),cn.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;a=na(a);for(var st=0;st<rt;st++){var lt=b[st];if(lt.visible||lt===a){var ut=lt.margin,dt=ut.right+ut.left;ut=ut.top+ut.bottom,lt.measure(y,x,z,tt);var St=lt.measuredBounds;dt=Math.max(St.width+dt,0),ut=Math.max(St.height+ut,0),St=lt.position.x;var Et=lt.position.y;isFinite(St)||(St=0),isFinite(Et)||(Et=0),lt instanceof io&&lt.isGeometryPositioned&&(lt=lt.strokeWidth/2,St-=lt,Et-=lt),ps(E,St,Et,dt,ut)}}},cn.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],tt=z.measuredBounds,rt=z.margin,st=z.position.x,lt=z.position.y;if(st=isNaN(st)?-a:st-a,lt=isNaN(lt)?-x:lt-x,z instanceof io&&z.isGeometryPositioned){var ut=z.strokeWidth/2;st-=ut,lt-=ut}z.visible&&z.arrange(st+rt.left,lt+rt.top,tt.width,tt.height)}};function Xn(){this.xa="Base"}nn(Xn,Ze),Xn.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;y=tr(),z=na(a);for(var st=0;st<rt;st++){var lt=b[st];if(lt.visible||lt===z){var ut=nu(lt,!1);if(ut!==ti&&ut!==lr)y.push(lt);else{lt.measure(1/0,x,0,tt),ut=lt.margin,lt=lt.measuredBounds;var dt=Math.max(lt.height+ut.top+ut.bottom,0);E.width+=Math.max(lt.width+ut.right+ut.left,0),E.height=Math.max(E.height,dt)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)st=y[a],(st.visible||st===z)&&(ut=st.margin,rt=ut.right+ut.left,ut=ut.top+ut.bottom,st.measure(1/0,x,0,tt),st=st.measuredBounds,ut=Math.max(st.height+ut,0),E.width+=Math.max(st.width+rt,0),E.height=Math.max(E.height,ut));vr(y)},Xn.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,tt=a.isOpposite,rt=tt?x.width:E.left,st=0;st<b;st++){var lt=z,ut=y[st];if(ut.visible){var dt=ut.measuredBounds,St=ut.margin,Et=St.top+St.bottom,Tt=z+E.bottom,Ht=dt.height,de=nu(ut,!1);(isNaN(ut.desiredSize.height)&&de===ri||de===Cr)&&(Ht=Math.max(x.height-Et-Tt,0)),Et=Ht+Et+Tt,Tt=ut.alignment,Tt.Xb()&&(Tt=a.defaultAlignment),Tt.sb()||(Tt=bo),tt&&(rt-=dt.width+St.left+St.right),ut.arrange(rt+Tt.offsetX+St.left,lt+Tt.offsetY+St.top+(x.height*Tt.y-Et*Tt.y),dt.width,Ht),tt||(rt+=dt.width+St.left+St.right)}}};function oi(){this.xa="Base"}nn(oi,Ze),oi.prototype.measure=function(a,y,x,b,E,z){var tt=b.length;x=tr();for(var rt=na(a),st=0;st<tt;st++){var lt=b[st];if(lt.visible||lt===rt){var ut=nu(lt,!1);if(ut!==ti&&ut!==Cr)x.push(lt);else{var dt=lt.margin;ut=dt.right+dt.left,dt=dt.top+dt.bottom,lt.measure(y,1/0,z,0),lt=lt.measuredBounds,ca(E,Math.max(E.width,Math.max(lt.width+ut,0)),E.height+Math.max(lt.height+dt,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)st=x[a],(st.visible||st===rt)&&(lt=st.margin,tt=lt.right+lt.left,lt=lt.top+lt.bottom,st.measure(y,1/0,z,0),st=st.measuredBounds,lt=Math.max(st.height+lt,0),E.width=Math.max(E.width,Math.max(st.width+tt,0)),E.height+=lt);vr(x)}},oi.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,tt=a.isOpposite,rt=tt?x.height:E.top,st=0;st<b;st++){var lt=z,ut=y[st];if(ut.visible){var dt=ut.measuredBounds,St=ut.margin,Et=St.left+St.right,Tt=z+E.right,Ht=dt.width,de=nu(ut,!1);(isNaN(ut.desiredSize.width)&&de===ri||de===lr)&&(Ht=Math.max(x.width-Et-Tt,0)),Et=Ht+Et+Tt,Tt=ut.alignment,Tt.Xb()&&(Tt=a.defaultAlignment),Tt.sb()||(Tt=bo),tt&&(rt-=dt.height+St.bottom+St.top),ut.arrange(lt+Tt.offsetX+St.left+(x.width*Tt.x-Et*Tt.x),rt+Tt.offsetY+St.top,Ht,dt.height),tt||(rt+=dt.height+St.bottom+St.top)}}};function Ii(){this.xa="Base"}nn(Ii,Ze),Ii.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,st=a.Pb(),lt=st.margin,ut=lt.right+lt.left,dt=lt.top+lt.bottom;st.measure(y,x,z,tt);var St=st.measuredBounds;z=St.width,tt=St.height;var Et=Math.max(z+ut,0),Tt=Math.max(tt+dt,0),Ht=a.isClipping,de=Mn.allocAt(-lt.left,-lt.top,Et,Tt),ie=Mn.allocAt(0,0,z,tt);fi(st,ie,!0),z=ie.width,tt=ie.height;for(var Se=!0,Le=na(a),Ee=0;Ee<rt;Ee++){var We=b[Ee];St=y;var dn=x;if(We!==st&&(We.visible||We===Le)){lt=We.margin;var Di=lt.left,er=lt.top;switch(Et=lt.right+lt.left,Tt=lt.top+lt.bottom,lt=nu(We,!1),lt){case ri:St=z,dn=tt,er=Di=Tt=Et=0;break;case lr:St=z,Di=Et=0;break;case Cr:dn=tt,er=Tt=0}We.measure(St,dn,0,0),St=We.measuredBounds,Et=Math.max(St.width+Et,0),Tt=Math.max(St.height+Tt,0),lt=We.alignment,lt.Xb()&&(lt=a.defaultAlignment),lt.sb()||(lt=bo);var Ki=We.alignmentFocus;if(Ki.Xb()&&(Ki=bo),dn=null,We instanceof Ln&&We.$e!==""&&(dn=We.fb(We.$e),dn===We&&(dn=null)),Di=ie.x-Di,er=ie.y-er,dn!==null){for(We.arrange(0,0,St.width,St.height),St=dn.actualBounds,St=re.allocAt(St.x+(Ki.x*St.width-Ki.offsetX),St.y+(Ki.y*St.height-Ki.offsetY)),dn=dn.panel;dn!==We;)dn.transform.Ga(St),dn=dn.panel;Di+=lt.x*z+lt.offsetX-St.x,er+=lt.y*tt+lt.offsetY-St.y,re.free(St)}else Di+=lt.x*z+lt.offsetX-(Ki.x*St.width+Ki.offsetX),er+=lt.y*tt+lt.offsetY-(Ki.y*St.height+Ki.offsetY);Se?(Se=!1,E.h(Di,er,Et,Tt)):ps(E,Di,er,Et,Tt)}}switch(Se?E.assign(de):Ht?E.Uu(ie.x,ie.y,ie.width,ie.height):ps(E,de.x,de.y,de.width,de.height),Mn.free(de),Mn.free(ie),lt=st.stretch,lt===Ur&&(lt=nu(st,!1)),lt){case ti:return;case ri:if(!isFinite(y)&&!isFinite(x))return;break;case lr:if(!isFinite(y))return;break;case Cr:if(!isFinite(x))return}for(St=st.measuredBounds,z=St.width,tt=St.height,Et=Math.max(z+ut,0),Tt=Math.max(tt+dt,0),lt=st.margin,ie=Mn.allocAt(-lt.left,-lt.top,Et,Tt),fi(st,ie,!0),z=ie.width,tt=ie.height,y=0;y<rt;y++)x=b[y],x===st||!x.visible&&x!==Le||(lt=x.margin,Et=lt.right+lt.left,Tt=lt.top+lt.bottom,St=x.measuredBounds,Et=Math.max(St.width+Et,0),Tt=Math.max(St.height+Tt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=bo),x=x.alignmentFocus,x.Xb()&&(x=bo),Se?(Se=!1,E.h(ut.x*z+ut.offsetX-(x.x*St.width+x.offsetX)-lt.left,ut.y*tt+ut.offsetY-(x.y*St.height+x.offsetY)-lt.top,Et,Tt)):ps(E,ut.x*z+ut.offsetX-(x.x*St.width+x.offsetX)-lt.left,ut.y*tt+ut.offsetY-(x.y*St.height+x.offsetY)-lt.top,Et,Tt));Se?E.assign(de):Ht?E.Uu(ie.x,ie.y,ie.width,ie.height):ps(E,de.x,de.y,de.width,de.height),Mn.free(ie)},Ii.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,tt=z.width,rt=z.height,st=a.padding;z=st.left,st=st.top;var lt=z-x.x,ut=st-x.y;for(E.arrange(lt,ut,tt,rt),tt=Mn.allocAt(0,0,tt,rt),fi(E,tt,!1),rt=0;rt<b;rt++){var dt=y[rt];if(dt!==E){lt=dt.measuredBounds;var St=lt.width,Et=lt.height;ut=dt.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=bo);var Tt=dt.alignmentFocus;if(Tt.Xb()&&(Tt=bo),lt=null,dt instanceof Ln&&dt.$e!==""&&(lt=dt.fb(dt.$e),lt===dt&&(lt=null)),lt!==null){var Ht=lt.actualBounds;for(Tt=re.allocAt(Ht.x+(Tt.x*Ht.width-Tt.offsetX),Ht.y+(Tt.y*Ht.height-Tt.offsetY)),lt=lt.panel;lt!==dt;)lt.transform.Ga(Tt),lt=lt.panel;lt=ut.x*tt.width+ut.offsetX-Tt.x,ut=ut.y*tt.height+ut.offsetY-Tt.y,re.free(Tt)}else lt=ut.x*tt.width+ut.offsetX-(Tt.x*St+Tt.offsetX),ut=ut.y*tt.height+ut.offsetY-(Tt.y*Et+Tt.offsetY);lt+=tt.x-x.x,ut+=tt.y-x.y,dt.visible&&dt.arrange(z+lt,st+ut,St,Et)}}Mn.free(tt)};function fi(a,y,x){var b=null;if(a instanceof Ln&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function Yi(){this.xa="Base"}nn(Yi,Ze),Yi.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,st=a.Pb(),lt=st.margin,ut=y,dt=x,St=lt.right+lt.left,Et=lt.top+lt.bottom;st.measure(y,x,z,tt),lt=st.measuredBounds;var Tt=0,Ht=null;st instanceof io&&(Ht=st,Tt=Ht.strokeWidth*Ht.scale);var de=Math.max(lt.width+St,0);lt=Math.max(lt.height+Et,0);var ie=nh(st),Se=ie.x*de+ie.offsetX;ie=ie.y*lt+ie.offsetY;var Le=Sh(st),Ee=Le.x*de+Le.offsetX;for(Le=Le.y*lt+Le.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(Se-Ee)-Tt,0)),isFinite(x)&&(dt=Math.max(Math.abs(ie-Le)-Tt,0)),Tt=Ni.alloc(),Tt.h(0,0),a=na(a),Le=0;Le<rt;Le++)ie=b[Le],ie===st||!ie.visible&&ie!==a||(lt=ie.margin,de=lt.right+lt.left,Se=lt.top+lt.bottom,ie.measure(ut,dt,0,0),lt=ie.measuredBounds,de=Math.max(lt.width+de,0),lt=Math.max(lt.height+Se,0),Tt.h(Math.max(de,Tt.width),Math.max(lt,Tt.height)));if(rt===1)E.width=de,E.height=lt,Ni.free(Tt);else{switch(ie=nh(st),Le=Sh(st),rt=b=0,Le.x!==ie.x&&Le.y!==ie.y&&(b=Tt.width/Math.abs(Le.x-ie.x),rt=Tt.height/Math.abs(Le.y-ie.y)),Ni.free(Tt),Tt=0,Ht!==null&&(Tt=Ht.strokeWidth*Ht.scale,zd(Ht)===qi&&(b=rt=Math.max(b,rt))),b+=Math.abs(ie.offsetX)+Math.abs(Le.offsetX)+Tt,rt+=Math.abs(ie.offsetY)+Math.abs(Le.offsetY)+Tt,Ht=st.stretch,Ht===Ur&&(Ht=nu(st,!1)),Ht){case ti:tt=z=0;break;case ri:isFinite(y)&&(b=y),isFinite(x)&&(rt=x);break;case lr:isFinite(y)&&(b=y),tt=0;break;case Cr:z=0,isFinite(x)&&(rt=x)}st.Uj(),st.measure(b,rt,z,tt),E.width=st.measuredBounds.width+St,E.height=st.measuredBounds.height+Et}},Yi.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=Mn.alloc();z.h(0,0,1,1);var tt=b.margin,rt=tt.left;tt=tt.top;var st=a.padding,lt=st.left;st=st.top,b.arrange(lt+rt,st+tt,E.width,E.height);var ut=nh(b),dt=Sh(b),St=ut.y*E.height+ut.offsetY,Et=dt.x*E.width+dt.offsetX;for(dt=dt.y*E.height+dt.offsetY,z.x=ut.x*E.width+ut.offsetX,z.y=St,ps(z,Et,dt,0,0),z.x+=rt+lt,z.y+=tt+st,E=0;E<x;E++)rt=y[E],rt!==b&&(lt=rt.measuredBounds,tt=rt.margin,st=Math.max(lt.width+tt.right+tt.left,0),ut=Math.max(lt.height+tt.top+tt.bottom,0),St=rt.alignment,St.Xb()&&(St=a.defaultAlignment),St.sb()||(St=bo),st=z.width*St.x+St.offsetX-st*St.x+tt.left+z.x,tt=z.height*St.y+St.offsetY-ut*St.y+tt.top+z.y,rt.visible&&(Ys(z.x,z.y,z.width,z.height,st,tt,lt.width,lt.height)?rt.arrange(st,tt,lt.width,lt.height):rt.arrange(st,tt,lt.width,lt.height,new Mn(z.x,z.y,z.width,z.height))));Mn.free(z)};function Zi(){this.xa="Base",this.name="Table"}nn(Zi,Ze),Zi.prototype.measure=function(a,y,x,b,E){for(var z=b.length,tt=tr(),rt=tr(),st=0;st<z;st++){var lt=b[st],ut=lt instanceof Ln?lt:null;if(ut!==null&&Mu(ut)&&lt.visible){rt.push(ut);for(var dt=ut.O.s,St=dt.length,Et=0;Et<St;Et++){var Tt=dt[Et];ut.type===Ln.TableRow?Tt.row=lt.row:ut.type===Ln.TableColumn&&(Tt.column=lt.column),tt.push(Tt)}}else tt.push(lt)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Ht=[],de=0;de<z;de++){var ie=tt[de];ie.visible&&(Ka(ie,!0),yA(ie,!0),Ht[ie.row]||(Ht[ie.row]=[]),Ht[ie.row][ie.column]||(Ht[ie.row][ie.column]=[]),Ht[ie.row][ie.column].push(ie))}vr(tt);var Se=tr(),Le=tr(),Ee=tr(),We={count:0},dn={count:0},Di=y,er=x,Ki=a.rowDefs,xi=a.colDefs,ni=null;z=Ki.length;for(var Jr=0;Jr<z;Jr++)ni=Ki[Jr],ni!==void 0&&(ni.actual=0);z=xi.length;for(var Qr=0;Qr<z;Qr++)ni=xi[Qr],ni!==void 0&&(ni.actual=0);for(var es=Ht.length,js=0,Dl=0;Dl<es;Dl++)Ht[Dl]&&(js=Math.max(js,Ht[Dl].length));var Wl=Math.min(a.topIndex,es-1),Qu=Math.min(a.leftIndex,js-1),jl=0;es=Ht.length;for(var Df=na(a),ll=0;ll<es;ll++)if(Ht[ll]){js=Ht[ll].length;var $c=a.Fb(ll);$c.actual=0;for(var Ru=$c.oc=0;Ru<js;Ru++)if(Ht[ll][Ru]){var jf=a.Eb(Ru);Se[Ru]===void 0&&(jf.actual=0,jf.oc=0,Se[Ru]=!0);for(var CA=Ht[ll][Ru],JA=CA.length,iA=0;iA<JA;iA++){var Qh=CA[iA];if(Qh.visible||Qh===Df){var fg=1<Qh.rowSpan||1<Qh.columnSpan;fg&&(ll<Wl||Ru<Qu||Le.push(Qh));var qc=Qh.margin,qp=qc.right+qc.left,rA=qc.top+qc.bottom,Hu=Es(Qh,$c,jf,!1),W0=Qh.desiredSize,Ap=!isNaN(W0.height),Bd=!isNaN(W0.width)&&Ap;if(fg||Hu===ti||Bd||ll<Wl||Ru<Qu||(We[Ru]!==void 0||Hu!==ri&&Hu!==lr||(We[Ru]=-1,We.count++),dn[ll]!==void 0||Hu!==ri&&Hu!==Cr||(dn[ll]=-1,dn.count++),Ee.push(Qh)),Qh.measure(1/0,1/0,0,0),!(ll<Wl||Ru<Qu)){var Rh=Qh.measuredBounds,Dg=Math.max(Rh.width+qp,0),oA=Math.max(Rh.height+rA,0);if(Qh.rowSpan===1&&(Hu===ti||Hu===lr)){ni=a.Fb(ll);var gg=ni.Wc();jl=Math.max(oA-ni.actual,0),jl+gg>er&&(jl=Math.max(er-gg,0));var sv=ni.oa===0;ni.oc=ni.oc+jl,ni.actual=ni.oa+jl,er=Math.max(er-(jl+(sv?gg:0)),0)}if(Qh.columnSpan===1&&(Hu===ti||Hu===Cr)){ni=a.Eb(Ru);var V0=ni.Wc();jl=Math.max(Dg-ni.actual,0),jl+V0>Di&&(jl=Math.max(Di-V0,0));var By=ni.oa===0;ni.oc=ni.oc+jl,ni.actual=ni.oa+jl,Di=Math.max(Di-(jl+(By?V0:0)),0)}fg&&Qh.Uj()}}}}}vr(Se);var Zd=0,lf=0;z=a.columnCount;for(var cp=0;cp<z;cp++){var pg=xi[cp];pg!==void 0&&(Zd+=isNaN(pg.Hc)?pg.oc:pg.Hc,pg.oc!==0&&(Zd+=pg.Wc()))}z=a.rowCount;for(var t0=0;t0<z;t0++){var mg=Ki[t0];mg!==void 0&&(lf+=isNaN(mg.Hc)?mg.oc:mg.Hc,mg.oc!==0&&(lf+=mg.Wc()))}Di=Math.max(y-Zd,0);var Jd=er=Math.max(x-lf,0),Uf=Di;z=Ee.length;for(var Hh=0;Hh<z;Hh++){var Cd=Ee[Hh],av=a.Fb(Cd.row),uf=a.Eb(Cd.column),e0=Cd.measuredBounds,td=Cd.margin,jg=td.right+td.left,Pd=td.top+td.bottom;We[Cd.column]=uf.oc===0&&We[Cd.column]!==void 0?Math.max(e0.width+jg,We[Cd.column]):null,dn[Cd.row]=av.oc===0&&dn[Cd.row]!==void 0?Math.max(e0.height+Pd,dn[Cd.row]):null}var dp=0,n0=0,Ec;for(Ec in dn)Ec!=="count"&&(dp+=dn[Ec]);for(Ec in We)Ec!=="count"&&(n0+=We[Ec]);for(var ru=Ni.alloc(),Y0=0;Y0<z;Y0++){var hh=Ee[Y0];if(hh.visible||hh===Df){var ul=a.Fb(hh.row),Ah=a.Eb(hh.column),hf=0;isFinite(Ah.width)?hf=Ah.width:(isFinite(Di)&&We[hh.column]!==null?n0===0?hf=Ah.actual+Di:hf=We[hh.column]/n0*Uf:We[hh.column]!==null?hf=Di:hf=Ah.actual||Di,hf=Math.max(0,hf-Ah.Wc()));var Qf=0;switch(isFinite(ul.height)?Qf=ul.height:(isFinite(er)&&dn[hh.row]!==null?dp===0?Qf=ul.actual+er:Qf=dn[hh.row]/dp*Jd:dn[hh.row]!==null?Qf=er:Qf=ul.actual||er,Qf=Math.max(0,Qf-ul.Wc())),ru.h(Math.max(Ah.minimum,Math.min(hf,Ah.maximum)),Math.max(ul.minimum,Math.min(Qf,ul.maximum))),Hu=Es(hh,ul,Ah,!1),Hu){case lr:ru.height=Math.max(ru.height,ul.actual+er);break;case Cr:ru.width=Math.max(ru.width,Ah.actual+Di)}var Ug=hh.margin,Cy=Ug.right+Ug.left,lv=Ug.top+Ug.bottom;hh.Uj(),hh.measure(ru.width,ru.height,Ah.minimum,ul.minimum);var i0=hh.measuredBounds,Qg=Math.max(i0.width+Cy,0),fp=Math.max(i0.height+lv,0);isFinite(Di)&&(Qg=Math.min(Qg,ru.width)),isFinite(er)&&(fp=Math.min(fp,ru.height));var zh=0;zh=ul.actual,ul.actual=Math.max(ul.actual,fp),ul.oc=Math.max(ul.oc,fp),jl=ul.actual-zh,er=Math.max(er-jl,0),dn[hh.row]===null&&(Jd=Math.max(Jd-jl,0)),zh=Ah.actual,Ah.actual=Math.max(Ah.actual,Qg),Ah.oc=Math.max(Ah.oc,Qg),jl=Ah.actual-zh,Di=Math.max(Di-jl,0),We[hh.column]===null&&(Uf=Math.max(Uf-jl,0))}}vr(Ee);var Af=Ni.alloc(),ed=tr(),DA=tr();if(z=Le.length,z!==0){for(var vg=0;vg<es;vg++)if(Ht[vg]){js=Ht[vg].length;var r0=a.Fb(vg);ed[vg]=r0.actual;for(var yg=0;yg<js;yg++)if(Ht[vg][yg]){var uv=a.Eb(yg);DA[yg]=uv.actual}}}for(var o0=0;o0<z;o0++){var Ya=Le[o0];if(Ya.visible||Ya===Df){var Mc=a.Fb(Ya.row),$A=a.Eb(Ya.column);switch(ru.h(Math.max($A.minimum,Math.min(y,$A.maximum)),Math.max(Mc.minimum,Math.min(x,Mc.maximum))),Hu=Es(Ya,Mc,$A,!1),Hu){case ri:DA[$A.index]!==0&&(ru.width=Math.min(ru.width,DA[$A.index])),ed[Mc.index]!==0&&(ru.height=Math.min(ru.height,ed[Mc.index]));break;case lr:DA[$A.index]!==0&&(ru.width=Math.min(ru.width,DA[$A.index]));break;case Cr:ed[Mc.index]!==0&&(ru.height=Math.min(ru.height,ed[Mc.index]))}isFinite($A.width)&&(ru.width=$A.width),isFinite(Mc.height)&&(ru.height=Mc.height),Af.h(0,0);for(var hv=$A.minimum,sA=Mc.minimum,Rf=1;Rf<Ya.rowSpan&&!(Ya.row+Rf>=a.rowCount);Rf++)ni=a.Fb(Ya.row+Rf),jl=0,jl=Hu===ri||Hu===Cr?Math.max(ni.minimum,ed[Ya.row+Rf]===0?ni.maximum:Math.min(ed[Ya.row+Rf],ni.maximum)):Math.max(ni.minimum,isNaN(ni.Hc)?ni.maximum:Math.min(ni.Hc,ni.maximum)),Af.height+=jl,sA+=ni.minimum;for(var qA=1;qA<Ya.columnSpan&&!(Ya.column+qA>=a.columnCount);qA++)ni=a.Eb(Ya.column+qA),jl=0,jl=Hu===ri||Hu===lr?Math.max(ni.minimum,DA[Ya.column+qA]===0?ni.maximum:Math.min(DA[Ya.column+qA],ni.maximum)):Math.max(ni.minimum,isNaN(ni.Hc)?ni.maximum:Math.min(ni.Hc,ni.maximum)),Af.width+=jl,hv+=ni.minimum;ru.width+=Af.width,ru.height+=Af.height;var s0=Ya.margin,wg=s0.right+s0.left,X0=s0.top+s0.bottom;Ya.measure(ru.width,ru.height,hv,sA);for(var a0=Ya.measuredBounds,bd=Math.max(a0.width+wg,0),Rg=Math.max(a0.height+X0,0),Sg=0,l0=0;l0<Ya.rowSpan&&!(Ya.row+l0>=a.rowCount);l0++)ni=a.Fb(Ya.row+l0),Sg+=ni.total||0;if(Sg<Rg){var Hf=Rg-Sg,$d=Rg-Sg;if(Ya.spanAllocation!==null)for(var zf=Ya.spanAllocation,cf=0;cf<Ya.rowSpan&&!(0>=Hf)&&!(Ya.row+cf>=a.rowCount);cf++){ni=a.Fb(Ya.row+cf);var Gf=ni.oa||0,Hg=zf(Ya,ni,$d);ni.actual=Math.min(ni.maximum,Gf+Hg),ni.oa!==Gf&&(Hf-=ni.oa-Gf)}for(;0<Hf;){var nd=ni.oa||0;if(isNaN(ni.height)&&ni.maximum>nd&&(ni.actual=Math.min(ni.maximum,nd+Hf),ni.oa!==nd&&(Hf-=ni.oa-nd)),ni.index===0)break;ni=a.Fb(ni.index-1)}}for(var gp=0,_f=0;_f<Ya.columnSpan&&!(Ya.column+_f>=a.columnCount);_f++)ni=a.Eb(Ya.column+_f),gp+=ni.total||0;if(gp<bd){var pp=bd-gp,Py=bd-gp;if(Ya.spanAllocation!==null)for(var df=Ya.spanAllocation,zg=0;zg<Ya.columnSpan&&!(0>=pp)&&!(Ya.column+zg>=a.columnCount);zg++){ni=a.Eb(Ya.column+zg);var Z0=ni.oa||0,by=df(Ya,ni,Py);ni.actual=Math.min(ni.maximum,Z0+by),ni.oa!==Z0&&(pp-=ni.oa-Z0)}for(;0<pp;){var Av=ni.oa||0;if(isNaN(ni.width)&&ni.maximum>Av&&(ni.actual=Math.min(ni.maximum,Av+pp),ni.oa!==Av&&(pp-=ni.oa-Av)),ni.index===0)break;ni=a.Eb(ni.index-1)}}}}vr(Le),Ni.free(Af),Ni.free(ru),ed!==void 0&&vr(ed),DA!==void 0&&vr(DA);var mp=0,vp=0,cv=a.desiredSize,vw=a.maxSize;Hu=nu(a,!0);var J0=lf=Zd=0,$0=0;z=a.columnCount;for(var dv=0;dv<z;dv++)xi[dv]!==void 0&&(ni=a.Eb(dv),isFinite(ni.width)?(J0+=ni.width,J0+=ni.Wc()):$f(ni)===Sf?(J0+=ni.oa,J0+=ni.Wc()):ni.oa!==0&&(Zd+=ni.oa,Zd+=ni.Wc()));isFinite(cv.width)?mp=Math.min(cv.width,vw.width):mp=Hu!==ti&&isFinite(y)?y:Zd,mp=Math.max(mp,a.minSize.width),mp=Math.max(mp-J0,0);for(var Jw=Zd===0?1:Math.max(mp/Zd,1),fv=0;fv<z;fv++)xi[fv]!==void 0&&(ni=a.Eb(fv),isFinite(ni.width)||$f(ni)===Sf||(ni.actual=ni.oa*Jw),ni.position=E.width,ni.oa!==0&&(E.width+=ni.oa,E.width+=ni.Wc()));z=a.rowCount;for(var gv=0;gv<z;gv++)Ki[gv]!==void 0&&(ni=a.Fb(gv),isFinite(ni.height)?($0+=ni.height,$0+=ni.Wc()):$f(ni)===Sf?($0+=ni.oa,$0+=ni.Wc()):ni.oa!==0&&(lf+=ni.oa,lf+=ni.Wc()));isFinite(cv.height)?vp=Math.min(cv.height,vw.height):vp=Hu!==ti&&isFinite(x)?x:lf,vp=Math.max(vp,a.minSize.height),vp=Math.max(vp-$0,0);for(var $w=lf===0?1:Math.max(vp/lf,1),pv=0;pv<z;pv++)Ki[pv]!==void 0&&(ni=a.Fb(pv),isFinite(ni.height)||$f(ni)===Sf||(ni.actual=ni.oa*$w),ni.position=E.height,ni.oa!==0&&(E.height+=ni.oa,E.height+=ni.Wc()));z=rt.length;for(var Ly=0;Ly<z;Ly++){var q0=rt[Ly],Fy=0,Ey=0;q0.type===Ln.TableRow?(Fy=E.width,ni=a.Fb(q0.row),Ey=ni.actual):(ni=a.Eb(q0.column),Fy=ni.actual,Ey=E.height),q0.measuredBounds.h(0,0,Fy,Ey),Ka(q0,!1)}vr(rt),a.inRowsCols=Ht},Zi.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var tt=a.inRowsCols;if(tt!==null){for(var rt,st,lt=tt.length,ut=0,dt=0;dt<lt;dt++)tt[dt]&&(ut=Math.max(ut,tt[dt].length));st=a.rowDefs,rt=a.colDefs;var St=dt=0,Et=Math.min(a.topIndex,lt-1);if(0<st.length){for(;Et!==lt&&(st[Et]===void 0||st[Et].oa===0);)Et++;Et=Math.max(Math.min(Et,lt-1),0),dt=-st[Et].position}var Tt=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;Tt!==ut&&(rt[Tt]===void 0||rt[Tt].oa===0);)Tt++;Tt=Math.max(Math.min(Tt,ut-1),0),St=-rt[Tt].position}for(var Ht=0,de=0;Ht!==lt&&st[Ht]===void 0;)Ht++;for(;de!==lt&&rt[de]===void 0;)de++;ut=a.part,a.Fb(Ht),a.Eb(de);for(var ie=0;ie<y.length;ie++){var Se=y[ie];if(Se instanceof Ln&&Se.visible&&Mu(Se)){if(Se.type===Ln.TableRow){rt=a.Fb(Se.row);var Le=a.Eb(de)}else rt=a.Fb(Ht),Le=a.Eb(Se.column);st=rt.position+dt+E,rt.oa!==0&&(st+=rt.Io(Math.max(Ht,Et))),rt=Le.position+St+z,Le.oa!==0&&(rt+=Le.Io(Math.max(de,Tt))),Le=Se.measuredBounds,Se.Uk(),Se.actualBounds.ka();var Ee=Se.actualBounds,We=Mn.allocAt(Ee.x,Ee.y,Ee.width,Ee.height);Ee.x=Se.type===Ln.TableRow?z:rt,Ee.y=Se.type===Ln.TableColumn?E:st,Ee.width=Le.width,Ee.height=Le.height,Se.actualBounds.freeze(),yA(Se,!1),aA(We,Ee)||ut===null||(ut.oh(),Se.Pn(ut)),Mn.free(We)}}for(ie=Ni.alloc(),Se=0;Se<lt;Se++)if(tt[Se]){for(ut=tt[Se].length,Le=a.Fb(Se),st=Le.position+dt+E,Le.oa!==0&&(st+=Le.Io(Math.max(Ht,Et))),Ee=0;Ee<ut;Ee++)if(tt[Se][Ee]){We=a.Eb(Ee),rt=We.position+St+z,We.oa!==0&&(rt+=We.Io(Math.max(de,Tt)));for(var dn=tt[Se][Ee],Di=dn.length,er=0;er<Di;er++){var Ki=dn[er],xi=Ki.measuredBounds;ie.h(0,0);for(var ni=1;ni<Ki.rowSpan&&!(Se+ni>=a.rowCount);ni++){var Jr=a.Fb(Se+ni);Jr.oa!==0&&(ie.height+=Jr.total)}for(ni=1;ni<Ki.columnSpan&&!(Ee+ni>=a.columnCount);ni++)Jr=a.Eb(Ee+ni),Jr.oa!==0&&(ie.width+=Jr.total);var Qr=We.oa+ie.width,es=Le.oa+ie.height;ni=rt,Jr=st;var js=Qr,Dl=es,Wl=rt,Qu=st,jl=Qr,Df=es;rt+Qr>x.width&&(jl=Math.max(x.width-rt,0)),st+es>x.height&&(Df=Math.max(x.height-st,0));var ll=Ki.alignment;if(ll.Xb()){ll=a.defaultAlignment,ll.sb()||(ll=bo);var $c=ll.x,Ru=ll.y,jf=ll.offsetX;ll=ll.offsetY;var CA=We.alignment,JA=Le.alignment;CA.sb()&&($c=CA.x,jf=CA.offsetX),JA.sb()&&(Ru=JA.y,ll=JA.offsetY)}else $c=ll.x,Ru=ll.y,jf=ll.offsetX,ll=ll.offsetY;(isNaN($c)||isNaN(Ru))&&(Ru=$c=.5,ll=jf=0),CA=xi.width,JA=xi.height;var iA=Ki.margin,Qh=iA.left+iA.right,fg=iA.top+iA.bottom,qc=Es(Ki,Le,We,!1);!isNaN(Ki.desiredSize.width)||qc!==ri&&qc!==lr||(CA=Math.max(Qr-Qh,0)),!isNaN(Ki.desiredSize.height)||qc!==ri&&qc!==Cr||(JA=Math.max(es-fg,0)),Qr=Ki.maxSize,es=Ki.minSize,CA=Math.min(Qr.width,CA),JA=Math.min(Qr.height,JA),CA=Math.max(es.width,CA),JA=Math.max(es.height,JA),Qr=JA+fg,ni+=js*$c-(CA+Qh)*$c+jf+iA.left,Jr+=Dl*Ru-Qr*Ru+ll+iA.top,Ki.visible&&(Ys(Wl,Qu,jl,Df,ni,Jr,xi.width,xi.height)?Ki.arrange(ni,Jr,CA,JA):Ki.arrange(ni,Jr,CA,JA,new Mn(Wl,Qu,jl,Df)))}}}for(Ni.free(ie),a=0;a<b;a++)x=y[a],z=x instanceof Ln?x:null,z!==null&&Mu(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function di(){this.xa="Base"}nn(di,Ze),di.prototype.measure=function(){},di.prototype.arrange=function(){};function Si(){this.xa="Base"}nn(Si,Ze),Si.prototype.measure=function(){},Si.prototype.arrange=function(){};function ar(){this.xa="Base"}nn(ar,Ze),ar.prototype.measure=function(a,y,x,b,E,z,tt){1<b.length&&Fe("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,tt);var rt=b.measuredBounds,st=b.margin,lt=st.right+st.left;if(st=st.top+st.bottom,isFinite(y)||isFinite(x)){var ut=b.scale,dt=rt.width;rt=rt.height;var St=Math.max(y-lt,0),Et=Math.max(x-st,0),Tt=1;a.viewboxStretch===qi?dt!==0&&rt!==0&&(Tt=Math.min(St/dt,Et/rt)):dt!==0&&rt!==0&&(Tt=Math.max(St/dt,Et/rt)),Tt===0&&(Tt=1e-4),b.Ca*=Tt,ut!==b.scale&&(Ka(b,!0),b.measure(1/0,1/0,z,tt))}rt=b.measuredBounds,E.width=isFinite(y)?y:Math.max(rt.width+lt,0),E.height=isFinite(x)?x:Math.max(rt.height+st,0)},ar.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=bo),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-E*tt.y+tt.offsetY,b.width,b.height)};function br(){this.xa="Base"}nn(br,Ze),br.prototype.measure=function(){},br.prototype.arrange=function(){},br.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,st=z.height,lt=Math.ceil(rt/E),ut=Math.ceil(st/b),dt=a.gridOrigin,St=dt.x;dt=dt.y,y.save(),y.beginPath(),y.rect(0,0,rt,st),y.clip(),y.Se();for(var Et=[],Tt=a.O.s,Ht=Tt.length,de=0;de<Ht;de++){var ie=Tt[de],Se=[];if(Et.push(Se),ie.visible){var Le=ie.interval;if(!(0>Le)){ie=Wa(ie.figure);for(var Ee=0;Ee<Ht;Ee++)if(Ee!==de){var We=Tt[Ee];We.visible&&Wa(We.figure)===ie&&(We=We.interval,We>Le&&Se.push(We))}}}}for(Tt=a.O.s,Ht=Tt.length,de=0;de<Ht;de++){var dn=Tt[de];if(dn.visible&&(Se=dn.interval||1,ie=Math.abs(Se),!(2>E*ie*x))){if(Le=dn.segmentIndex,(!isFinite(Le)||isNaN(Le))&&(Le=0),0>Le&&(Le=ie-Math.min(-Le,ie)),Le=Math.round(Le%ie),ie=dn.opacity,Ee=1,ie!==1){if(ie===0)continue;Ee=y.globalAlpha,y.globalAlpha=Ee*ie}We=Et[de];var Di=!1,er=dn.strokeDashArray;if(er!==null&&(Di=!0,y.js(er,dn.strokeDashOffset)),dn.figure==="LineV"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,Qs(a,y,dn.stroke,!1,!1,z,tt),y.beginPath(),er=dn=Math.floor((St-E)/E);er<=dn+lt;er++){var Ki=er*E+St;0<=Ki&&Ki<=rt&&Fr(er,Se,Le,We)&&(y.moveTo(Ki,0),y.lineTo(Ki,st))}y.stroke(),y.Se()}else if(dn.figure==="LineH"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,Qs(a,y,dn.stroke,!1,!1,z,tt),y.beginPath(),er=dn=Math.floor((dt-b)/b);er<=dn+ut;er++)Ki=er*b+dt,0<=Ki&&Ki<=st&&Fr(er,Se,Le,We)&&(y.moveTo(0,Ki),y.lineTo(rt,Ki));y.stroke(),y.Se()}else if(dn.figure==="BarV"&&dn.fill!==null)for(Qs(a,y,dn.fill,!0,!1,z,tt),dn=dn.width,isNaN(dn)&&(dn=E),Ki=er=Math.floor((St-E)/E);Ki<=er+lt;Ki++){var xi=Ki*E+St;0<=xi+dn&&xi<=rt&&Fr(Ki,Se,Le,We)&&y.fillRect(xi,0,dn,st)}else if(dn.figure==="BarH"&&dn.fill!==null)for(Qs(a,y,dn.fill,!0,!1,z,tt),dn=dn.height,isNaN(dn)&&(dn=b),Ki=er=Math.floor((dt-b)/b);Ki<=er+ut;Ki++)xi=Ki*b+dt,0<=xi+dn&&xi<=st&&Fr(Ki,Se,Le,We)&&y.fillRect(0,xi,rt,dn);Di&&y.fs(),ie!==1&&(y.globalAlpha=Ee)}}y.restore(),y.Vc(!1)};function Fr(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Bo(){this.xa="Base"}nn(Bo,Ze),Bo.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Yo||a instanceof Bi){var tt=null,rt=null;if(a instanceof Bi&&(tt=a),a instanceof Yo&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof Bi){var st=tt;if(z===0)ca(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var lt=a instanceof Yo?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=st.points,dt=tt.pointsCount;rt!==null?rt.Ul(!1):tt!==null&&tt.Ul(!1),rt=y.width;var St=y.height,Et=a.j;if(Et.length=0,lt!==null){lo(a,rt,St,lt);var Tt=lt.measuredBounds;x.ed(Tt),Et.push(Tt)}Tt=fo.alloc();for(var Ht=re.alloc(),de=re.alloc(),ie=0;ie<z;ie++){var Se=b[ie];if(Se!==lt)if(Se.isPanelMain&&Se instanceof io){lo(a,rt,St,Se);var Le=Se.measuredBounds;x.ed(Le),Et.push(Le)}else if(2>dt)Se.measure(1/0,1/0,0,0),Le=Se.measuredBounds,x.ed(Le),Et.push(Le);else{var Ee=Se.segmentIndex,We=Se.segmentFraction,dn=Se.alignmentFocus;dn.Mc()&&(dn=bo);var Di=Se.segmentOrientation,er=Se.segmentOffset;if(isNaN(Ee)){var Ki=st.ua;Le=tr(),Ki.Qu(We,Le);var xi=re.allocAt(Le[0],Le[1]);if(xi.add(st.i(0)),Ki.type===Li.j?xi.offset(-Ki.startX,-Ki.startY):(Ki=Ki.figures.first(),Ki!==null&&xi.offset(-Ki.startX,-Ki.startY)),Ki=Le[2],Di!==oh){var ni=st.computeAngle(Se,Di,Ki);Se.Kb=ni}ni=xi.x-y.x;var Jr=xi.y-y.y;re.free(xi),vr(Le)}else if(Ee<-dt||Ee>=dt)Le=re.alloc(),st.vg(),st.computeMidPoint(Le),Ki=st.midAngle,Di!==oh&&(ni=st.computeAngle(Se,Di,Ki),Se.Kb=ni),ni=Le.x-y.x,Jr=Le.y-y.y,re.free(Le);else{if(ni=0,0<=Ee?(Jr=ut.M(Ee),Le=Ee<dt-1?ut.M(Ee+1):Jr):(ni=dt+Ee,Jr=ut.M(ni),Le=0<ni?ut.M(ni-1):Jr),Jr.Xa(Le)){0<=Ee?(Ki=0<Ee?ut.M(Ee-1):Jr,ni=Ee<dt-2?ut.M(Ee+2):Le):(Ki=ni<dt-1?ut.M(ni+1):Jr,ni=1<ni?ut.M(ni-2):Le),xi=Ki.Bf(Jr);var Qr=Le.Bf(ni);Ki=xi>Qr+10?0<=Ee?Ki.ab(Jr):Jr.ab(Ki):Qr>xi+10?0<=Ee?Le.ab(ni):ni.ab(Le):0<=Ee?Ki.ab(ni):ni.ab(Ki)}else Ki=0<=Ee?Jr.ab(Le):Le.ab(Jr);Di!==oh&&(ni=st.computeAngle(Se,Di,Ki),Se.Kb=ni),ni=Jr.x+(Le.x-Jr.x)*We-y.x,Jr=Jr.y+(Le.y-Jr.y)*We-y.y}Se.measure(1/0,1/0,0,0),Le=Se.measuredBounds,xi=Se.naturalBounds;var es=0;Se instanceof io&&(es=Se.strokeWidth),Qr=xi.width+es;var js=xi.height+es;Tt.reset(),Tt.translate(-Le.x,-Le.y),Tt.scale(Se.scale,Se.scale),Tt.rotate(Di===oh?Se.angle:Ki,Qr/2,js/2),Di!==y0&&Di!==S0||Tt.rotate(90,Qr/2,js/2),Di!==w0&&Di!==x0||Tt.rotate(-90,Qr/2,js/2),Di===vm&&(45<Ki&&135>Ki||225<Ki&&315>Ki)&&Tt.rotate(-Ki,Qr/2,js/2),xi=new Mn(0,0,Qr,js),Ht.xi(xi,dn),Tt.Ga(Ht),dn=-Ht.x+es/2*Se.scale,Se=-Ht.y+es/2*Se.scale,de.assign(er),es=isNaN(er.x);var Dl=isNaN(er.y);if(es||Dl){Qr=Qr/2+3,js=js/2+3;var Wl=45<=Ki&&135>=Ki,Qu=225<=Ki&&315>=Ki;Di===oh&&(Wl||Qu)?(de.x=Dl?Qr:er.y,de.y=es?js:er.x,Wl?0<=Ee||isNaN(Ee)&&.5>We||!es||(de.y=-js):Qu&&((0<=Ee||isNaN(Ee)&&.5>We)&&es&&(de.y=-js),Dl&&(de.x=-Qr))):(es&&(de.x=0<=Ee||isNaN(Ee)&&.5>We?Qr:-Qr),Dl&&(de.y=-js),de.rotate(Ki))}else de.rotate(Ki);ni+=de.x,Jr+=de.y,xi.set(Le),xi.h(ni+dn,Jr+Se,Le.width,Le.height),Et.push(xi),x.ed(xi)}}if(tt!==null)for(b=tt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),ca(E,x.width||0,x.height||0),fo.free(Tt),re.free(Ht),re.free(de)}}}},Bo.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Yo||a instanceof Bi){var b=a,E=null;a instanceof Yo&&(E=a,b=E.adornedPart);var z=a instanceof Yo?null:b.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt<tt.length){var st=tt[rt];rt++,z.arrange(st.x-a.jg.x,st.y-a.jg.y,st.width,st.height)}for(st=0;st<x;st++){var lt=y[st];if(lt!==z&&rt<tt.length){var ut=tt[rt];rt++,lt.arrange(ut.x-a.jg.x,ut.y-a.jg.y,ut.width,ut.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Bi)for(z=a.labelNodes;z.next();){var dt=a;tt=z.value,rt=tt.segmentIndex,st=tt.segmentFraction;var St=tt.alignmentFocus;if(lt=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(rt)){var Et=dt.ua,Tt=tr();Et.Qu(st,Tt);var Ht=re.allocAt(Tt[0],Tt[1]);Ht.add(dt.i(0)),Et.type===Li.j||(Et=Et.figures.first()),Ht.offset(-Et.startX,-Et.startY),Et=Tt[2],lt!==oh&&(dt=dt.computeAngle(tt,lt,Et),tt.angle=dt),dt=Ht.x;var de=Ht.y;re.free(Ht),vr(Tt)}else if(rt<-x||rt>=x)Tt=re.alloc(),Et=dt,de=Tt,Et.vg(),Et.computeMidPoint(de),Et=dt.midAngle,lt!==oh&&(dt=dt.computeAngle(tt,lt,Et),tt.angle=dt),dt=Tt.x,de=Tt.y,re.free(Tt);else{if(Ht=0,0<=rt?(Tt=y.s[rt],de=rt<x-1?y.s[rt+1]:Tt):(Ht=x+rt,Tt=y.s[Ht],de=0<Ht?y.s[Ht-1]:Tt),Tt.Xa(de)){0<=rt?(Et=0<rt?y.s[rt-1]:Tt,Ht=rt<x-2?y.s[rt+2]:de):(Et=Ht<x-1?y.s[Ht+1]:Tt,Ht=1<Ht?y.s[Ht-2]:de);var ie=Et.Bf(Tt),Se=de.Bf(Ht);Et=ie>Se+10?0<=rt?Et.ab(Tt):Tt.ab(Et):Se>ie+10?0<=rt?de.ab(Ht):Ht.ab(de):0<=rt?Et.ab(Ht):Ht.ab(Et)}else Et=0<=rt?Tt.ab(de):de.ab(Tt);lt!==oh&&(dt=dt.computeAngle(tt,lt,Et),tt.angle=dt),dt=Tt.x+(de.x-Tt.x)*st,de=Tt.y+(de.y-Tt.y)*st}if(St.ys())tt.location=new re(dt,de);else{St.Mc()&&(St=bo),Tt=fo.alloc(),Tt.reset(),Tt.scale(tt.scale,tt.scale),Tt.rotate(tt.angle,0,0);var Le=tt.naturalBounds;Ht=Mn.allocAt(0,0,Le.width,Le.height),ie=re.alloc(),ie.xi(Ht,St),Tt.Ga(ie),St=-ie.x,Se=-ie.y;var Ee=Le.width,We=Le.height;Le=re.alloc(),Le.assign(ut);var dn=isNaN(ut.x),Di=isNaN(ut.y);if(dn||Di){Ee=Ee/2+3,We=We/2+3;var er=45<=Et&&135>=Et,Ki=225<=Et&&315>=Et;lt===oh&&(er||Ki)?(Le.x=Di?Ee:ut.y,Le.y=dn?We:ut.x,er?0<=rt||isNaN(rt)&&.5>st||!dn||(Le.y=-We):Ki&&((0<=rt||isNaN(rt)&&.5>st)&&dn&&(Le.y=-We),Di&&(Le.x=-Ee))):(dn&&(Le.x=0<=rt||isNaN(rt)&&.5>st?Ee:-Ee),Di&&(Le.y=-We),Le.rotate(Et))}else Le.rotate(Et);dt+=Le.x,de+=Le.y,Tt.pp(Ht),St+=Ht.x,Se+=Ht.y,rt=re.allocAt(dt+St,de+Se),tt.move(rt),re.free(rt),re.free(Le),re.free(ie),Mn.free(Ht),fo.free(Tt)}}E!==null?E.Ul(!1):b.Ul(!1),b=Dy(a),a.location.h(a.position.x+b.x,a.position.y+b.y),re.free(b)}};function lo(a,y,x,b){if(Fu(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Yo&&a.type===Ln.Link&&a.adornedObject instanceof io&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Bi&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Yo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Ka(b,!1)}}function ds(){this.xa="Base"}nn(ds,Ze),ds.prototype.measure=function(a,y,x,b,E,z,tt){var rt=a.Pb();a.graduatedBounds=[];var st=rt.margin,lt=st.right+st.left,ut=st.top+st.bottom;rt.measure(y,x,z,tt);var dt=rt.measuredBounds,St=new Mn(-st.left,-st.top,Math.max(dt.width+lt,0),Math.max(dt.height+ut,0));a.graduatedBounds.push(St),E.assign(St);for(var Et=rt.geometry,Tt=rt.strokeWidth,Ht=Et.flattenedSegments,de=Et.flattenedLengths,ie=Et.flattenedTotalLength,Se=Ht.length,Le=0,Ee=0,We=tr(),dn=0;dn<Se;dn++){var Di=Ht[dn],er=[];Ee=Le=0;for(var Ki=Di.length,xi=0;xi<Ki;xi+=2){var ni=Di[xi],Jr=Di[xi+1];if(xi!==0){var Qr=180*Math.atan2(Jr-Ee,ni-Le)/Math.PI;0>Qr&&(Qr+=360),er.push(Qr)}Le=ni,Ee=Jr}We.push(er)}if(a.graduatedIntervals===null){for(var es=[],js=a.O.s,Dl=js.length,Wl=0;Wl<Dl;Wl++){var Qu=js[Wl],jl=[];if(es.push(jl),Qu.visible){var Df=Qu.interval;if(!(0>Df)){for(var ll=0;ll<Dl;ll++)if(ll!==Wl){var $c=js[ll];if($c.visible&&Qu.constructor===$c.constructor){var Ru=$c.interval;Ru>Df&&jl.push(Ru)}}}}}a.graduatedIntervals=es}var jf=a.graduatedIntervals,CA=a.O.s,JA=CA.length,iA=0,Qh=0,fg=ie;a.graduatedMarks=[];for(var qc,qp=0;qp<JA;qp++){var rA=CA[qp];if(qc=[],rA.visible&&rA!==rt){var Hu=Math.abs(rA.interval),W0=a.graduatedTickUnit;if(!(2>W0*Hu*ie/a.graduatedRange&&rA.graduatedSkip===null)){var Ap=de[0][0],Bd=0,Rh=0;Qh=ie*rA.graduatedStart-1e-4,fg=ie*rA.graduatedEnd+1e-4;var Dg=W0*Hu,oA=a.graduatedTickBase;if(oA<a.graduatedMin){var gg=(a.graduatedMin-oA)/Dg;gg=gg%1===0?gg:Math.floor(gg+1),oA+=gg*Dg}else oA>a.graduatedMin+Dg&&(oA-=Math.floor((oA-a.graduatedMin)/Dg)*Dg);for(var sv=jf[qp],V0=oA,By=1e-6*a.graduatedMax,Zd=1;oA<=a.graduatedMax+By;Zd++){t:{for(var lf=sv.length,cp=0;cp<lf;cp++){var pg=(oA-a.graduatedTickBase)%(sv[cp]*a.graduatedTickUnit),t0=1e-6*a.graduatedTickUnit;if(pg<t0&&pg>-t0){var mg=!1;break t}}mg=!0}if(mg&&(oA>a.graduatedMax&&(oA=a.graduatedMax),rA.graduatedSkip===null||rA instanceof Is&&!rA.graduatedSkip(oA,rA)||rA instanceof io&&!rA.graduatedSkip(oA,rA))&&(iA=(oA-a.graduatedMin)*ie/a.graduatedRange,iA>ie&&(iA=ie),Qh<=iA&&iA<=fg)){for(var Jd=We[Bd][Rh],Uf=de[Bd][Rh];Bd<de.length;){for(;iA>Ap&&Rh<de[Bd].length-1;)Rh++,Jd=We[Bd][Rh],Uf=de[Bd][Rh],Ap+=Uf;if(iA<=Ap)break;Bd++,Rh=0,Jd=We[Bd][Rh],Uf=de[Bd][Rh],Ap+=Uf}var Hh=Ht[Bd],Cd=Hh[2*Rh],av=Hh[2*Rh+1],uf=(iA-(Ap-Uf))/Uf,e0=new re(Cd+(Hh[2*Rh+2]-Cd)*uf+Tt/2-Et.bounds.x,av+(Hh[2*Rh+3]-av)*uf+Tt/2-Et.bounds.y);e0.scale(rt.scale,rt.scale);t:{var td=Jd,jg=We[Bd];if(!(.5005>uf&&.4995<uf)){var Pd=td;if(.5>uf?0<Rh?Pd=jg[Rh-1]:Je.$(Hh[0],Hh[Hh.length-2])&&Je.$(Hh[1],Hh[Hh.length-1])&&(Pd=jg[jg.length-1]):.5<uf&&(Rh+1<jg.length?Pd=jg[Rh+1]:Je.$(Hh[0],Hh[Hh.length-2])&&Je.$(Hh[1],Hh[Hh.length-1])&&(Pd=jg[0])),td!==Pd){var dp=Math.abs(td-Pd);if(180<dp&&(td<Pd?td+=360:Pd+=360,dp=Math.abs(td-Pd)),5e-4>uf||.9995<uf){Jd=(td+Pd)/2%360;break t}if(10>dp){var n0=1-Math.abs(.5-uf);Jd=(td*n0+Pd*(1-n0))%360;break t}}}Jd=td}if(rA instanceof Is){var Ec="";rA.graduatedFunction!==null?(Ec=rA.graduatedFunction(oA,rA),Ec=Ec!=null?Ec.toString():""):Ec=(+oA.toFixed(2)).toString(),Ec!==""&&qc.push({$l:e0,angle:Jd,text:Ec})}else qc.push({$l:e0,angle:Jd})}oA=V0+Zd*Dg}}}a.graduatedMarks.push(qc)}vr(We);var ru=a.graduatedMarks;if(ru!==null)for(var Y0=b.length,hh=0;hh<Y0;hh++){var ul=b[hh],Ah=ru[hh];if(ul.visible&&ul!==rt&&Ah.length!==0){if(ul instanceof io){var hf=a,Qf=E,Ug=ul.alignmentFocus;Ug.Mc()&&(Ug=bl);var Cy=ul.angle;ul.Kb=0,ul.measure(1/0,1/0,0,0),ul.Kb=Cy;var lv=ul.measuredBounds,i0=lv.width,Qg=lv.height,fp=Mn.allocAt(0,0,i0,Qg),zh=re.alloc();zh.xi(fp,Ug),Mn.free(fp);for(var Af=-zh.x,ed=-zh.y,DA=new Mn,vg=Ah.length,r0=0;r0<vg;r0++)for(var yg=Ah[r0],uv=yg.$l.x,o0=yg.$l.y,Ya=yg.angle,Mc=0;4>Mc;Mc++){switch(Mc){case 0:zh.h(Af,ed);break;case 1:zh.h(Af+i0,ed);break;case 2:zh.h(Af,ed+Qg);break;case 3:zh.h(Af+i0,ed+Qg)}zh.rotate(Ya+ul.angle),zh.offset(uv,o0),r0===0&&Mc===0?DA.h(zh.x,zh.y,0,0):DA.Ye(zh),zh.offset(-uv,-o0),zh.rotate(-Ya-ul.angle)}re.free(zh),hf.graduatedBounds!==null&&hf.graduatedBounds.push(DA),ps(Qf,DA.x,DA.y,DA.width,DA.height)}else if(ul instanceof Is){var $A=a,hv=E;$A.temporaryTextBlock===null&&($A.temporaryTextBlock=new Is);var sA=$A.temporaryTextBlock;h0(sA,ul);var Rf=ul.alignmentFocus;Rf.Mc()&&(Rf=bl);for(var qA=ul.segmentOrientation,s0=ul.segmentOffset,wg=new Mn,X0=0,a0=0,bd=0,Rg=0,Sg=0,l0=Ah.length,Hf=0;Hf<l0;Hf++){var $d=Ah[Hf];X0=$d.$l.x,a0=$d.$l.y,bd=$d.angle,Sg=Rg=ul.angle,qA!==oh&&(Sg=qA===v0||qA===mm?bd+ul.angle:bd,Rg=Bi.computeAngle(qA,Sg)),sA.Kb=Rg,sA.text=$d.text||"",sA.measure(1/0,1/0,0,0);var zf=sA.measuredBounds,cf=sA.naturalBounds,Gf=cf.width,Hg=cf.height,nd=fo.alloc();nd.reset(),nd.translate(-zf.x,-zf.y),nd.scale(sA.scale,sA.scale),nd.rotate(Sg,Gf/2,Hg/2),qA!==y0&&qA!==S0||nd.rotate(90,Gf/2,Hg/2),qA!==w0&&qA!==x0||nd.rotate(-90,Gf/2,Hg/2),qA===vm&&(45<bd&&135>bd||225<bd&&315>bd)&&nd.rotate(-bd,Gf/2,Hg/2);var gp=Mn.allocAt(0,0,Gf,Hg),_f=re.alloc();_f.xi(gp,Rf),nd.Ga(_f);var pp=-_f.x,Py=-_f.y,df=re.alloc();df.assign(s0),isNaN(df.x)&&(df.x=Gf/2+3),isNaN(df.y)&&(df.y=-(Hg/2+3)),df.rotate(bd),X0+=df.x+pp,a0+=df.y+Py;var zg=new Mn(X0,a0,zf.width,zf.height),Z0=new Mn(zf.x,zf.y,zf.width,zf.height),by=new Mn(cf.x,cf.y,cf.width,cf.height);$d.Sz=Rg,$d.lineCount=sA.lineCount,$d.lines=[sA.Cb,sA.Ih,sA.df,sA.Le,sA.Qc,sA.Qb,sA.ze],$d.actualBounds=zg,$d.measuredBounds=Z0,$d.naturalBounds=by,Hf===0?wg.assign(zg):wg.ed(zg),re.free(df),re.free(_f),Mn.free(gp),fo.free(nd)}$A.graduatedBounds!==null&&$A.graduatedBounds.push(wg),ps(hv,wg.x,wg.y,wg.width,wg.height)}Ka(ul,!1)}}},ds.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,b!==null&&b.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var st=y.length,lt=0;lt<st;lt++){var ut=y[lt];rt=E[lt],ut.visible&&ut!==b&&rt.length!==0&&(rt=z[tt],tt++,ut.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},ds.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,tt=E.height;E=y instanceof Eu,y.save(),y.beginPath(),y.rect(-1,-1,z+1,tt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),tt=a.Df()*x.scale,0>=tt&&(tt=1);for(var rt=z.actualBounds,st=a.O.s,lt=a.graduatedMarks,ut=st.length,dt=0;dt<ut;dt++){var St=st[dt],Et=lt[dt],Tt=Et.length;if(St.visible&&St!==z&&Et.length!==0){if(St instanceof io){if(!(2>a.graduatedTickUnit*St.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&St.graduatedSkip===null)){var Ht=St.measuredBounds,de=St.strokeWidth*St.scale,ie=St.alignmentFocus;ie.Mc()&&(ie=bl);for(var Se=0;Se<Tt;Se++){var Le=Et[Se].$l,Ee=Et[Se].angle,We=ie,dn=St.Ab;dn.reset(),dn.translate(Le.x+rt.x,Le.y+rt.y),dn.rotate(Ee+St.angle,0,0),dn.translate(-Ht.width*We.x+We.offsetX+de/2,-Ht.height*We.y+We.offsetY+de/2),dn.scale(St.scale,St.scale),Du(St,!1),St.wh.set(St.Ab),St.Kk=St.scale,su(St,!1),St.gc(y,x),E&&(a.svg.appendChild(St.svg),St.svg=null),St.Ab.reset()}}}else if(St instanceof Is)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Is),Ht=a.temporaryTextBlock,h0(Ht,St),de=0;de<Tt;de++)ie=Et[de],ie.actualBounds&&ie.measuredBounds&&ie.naturalBounds&&(Ht.ec=ie.text||"",Ht.Kb=ie.Sz||0,Ht.Gc=ie.lineCount||0,Se=ie.lines,Se!==void 0&&(Ht.Cb=Se[0],Ht.Ih=Se[1],Ht.df=Se[2],Ht.Le=Se[3],Ht.Qc=Se[4],Ht.Qb=Se[5],Ht.ze=Se[6]),ie.naturalBounds&&(Ht.dc=ie.naturalBounds),ie.actualBounds&&(Se=ie.actualBounds,Ht.arrange(Se.x,Se.y,Se.width,Se.height)),Se=ie.actualBounds,Ht.arrange(Se.x,Se.y,Se.width,Se.height),Le=ie.measuredBounds,ie=ie.naturalBounds,Ee=Ht.Ab,Ee.reset(),Ee.translate(Se.x+rt.x,Se.y+rt.y),Ee.translate(-Le.x,-Le.y),Ht.no(Ee,ie.x,ie.y,ie.width,ie.height),Du(Ht,!1),Ht.wh.set(Ht.Ab),Ht.Kk=Ht.scale,su(Ht,!1),Ht.Ng=St.part,Ht.Me=St.panel,Ht.gc(y,x),Ht.Me=null,Ht.Ng=null,E&&(a.svg.appendChild(Ht.svg),Ht.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Ln(a,y){if(_e.call(this),this.na=null,a===void 0)this.na=Ln.Position;else if(typeof a=="string"){var x=ih.I(a);x!==null&&(this.na=x)}else a instanceof Ze?this.na=a:a&&(this.na=Ln.Position,y=a);this.na===null&&Fe("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Ln.Grid?1048576:0),this.O=new ai,this.yb=lu,this.Tm=ns,this.Uf=Ur,this.$g=null,this.$e="",this.jg=new Mn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=qi,this.jn=so,this.kn=zo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}nn(Ln,_e),Ln.prototype.cloneProtected=function(a){_e.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},Ln.prototype.Af=function(a){_e.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Ln.prototype.copy=function(){var a=_e.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof Qi&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(Na,"elements",a,null,E,null,tt)}}return a}return null},jt=Ln.prototype,jt.toString=function(){return"Panel("+this.type.name+")#"+Xo(this)},jt.Pn=function(a){_e.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},jt.hh=function(a,y){if(this.na===Ln.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Ln.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Ln.Table)if(a.yc(),a instanceof Eu){var x=a.yd;a.yd=Cg(a,"gojs-ts"),ya(this,a),a.nh.pop(),a.yd=x}else ya(this,a);(x=this.isClipping&&this.na===Ln.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x&&rt===b&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function ya(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&da(a,y,!0,x,!0),b!==null&&da(a,y,!1,b,!0),x!==null&&Ua(a,y,!0,x),b!==null&&Ua(a,y,!1,b),x!==null&&da(a,y,!0,x,!1),b!==null&&da(a,y,!1,b,!1)}function Ua(a,y,x,b){for(var E=b.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,st=0;st<E;st++){var lt=b[st];if(lt!==void 0&&lt.actual!==0)if(rt)rt=!1;else{if(x){if(lt.position>tt.height)continue}else if(lt.position>tt.width)continue;var ut=lt.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var dt=lt.separatorStroke;if(dt===null&&(dt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&dt!==null){Qs(a,y,dt,!1,!1,tt,z),dt=!1;var St=lt.separatorDashArray;St===null&&(St=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),St!==null&&(dt=!0,y.js(St,0)),y.beginPath(),St=lt.position+ut,x?St>tt.height&&(ut-=St-tt.height):St>tt.width&&(ut-=St-tt.width),lt=lt.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(lt+=ut.top,St=tt.width-ut.right,y.moveTo(ut.left,lt),y.lineTo(St,lt)):(lt+=ut.left,St=tt.height-ut.bottom,y.moveTo(lt,ut.top),y.lineTo(lt,St)),y.stroke(),y.Se(),dt&&y.fs()}}}}function da(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,rt=a.naturalBounds,st=sa(a,!0),lt=sa(a,!1),ut=0;ut<z;ut++){var dt=b[ut];if(dt!==void 0&&dt.background!==null&&dt.coversSeparators!==E&&dt.actual!==0){var St=x?tt.height:tt.width;if(!(dt.position>St)){var Et=dt.Wc(),Tt=dt.separatorStrokeWidth;isNaN(Tt)&&(Tt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ht=dt.separatorStroke;Ht===null&&(Ht=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Ht===null||dt.index===(x?st:lt))&&(Tt=0),Et-=Tt,Tt=dt.position+Tt,Et+=dt.actual,Tt+Et>St&&(Et=St-Tt),0>=Et||(St=a.yb,Qs(a,y,dt.background,!0,!1,rt,tt),x?y.fillRect(St.left,Tt+St.top,tt.width-(St.left+St.right),Et):y.fillRect(Tt+St.left,St.top,Et,tt.height-(St.top+St.bottom)))}}}}function sa(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function Wa(a){return a==="LineV"||a==="BarV"}jt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},jt.kk=function(a,y,x){if(!_e.prototype.kk.call(this,a,y,x))return!1;if(this.type===Ln.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,ya(this,a),a.yd=null;else if(this.na===Ln.Grid||this.na===Ln.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},jt.nk=function(){return!0},jt.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var rt=y[tt].actualBounds;E=tt===0?rt.x:Math.min(rt.x,E),z=tt===0?rt.y:Math.min(rt.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else _e.prototype.$o.call(this,a,y,x,b)},jt.Sj=function(a,y,x,b,E){var z=this.se(),tt=this.transform,rt=1/(tt.m11*tt.m22-tt.m12*tt.m21),st=tt.m22*rt,lt=-tt.m12*rt,ut=-tt.m21*rt,dt=tt.m11*rt,St=rt*(tt.m21*tt.dy-tt.m22*tt.dx),Et=rt*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,Je.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*st+y*ut+St,rt=a*lt+y*dt+Et,a=x*st+b*ut+St,st=x*lt+b*dt+Et,E.h(0,0),x=this.naturalBounds,z=Je.Ff(0,0,x.width,x.height,z,rt,a,st,E),E.transform(tt),z;z||(st=1,ut=lt=0,dt=1,Et=St=0),rt=a*st+y*ut+St,a=a*lt+y*dt+Et,st=x*st+b*ut+St,x=x*lt+b*dt+Et,E.h(st,x),b=(st-rt)*(st-rt)+(x-a)*(x-a),lt=!1,dt=this.O.s,Et=dt.length,ut=re.alloc(),St=null,y=1/0;var Tt=null,Ht=this.isClipping&&this.na===Ln.Spot;Ht&&(Tt=re.alloc(),St=this.Pb(),(lt=St.Sj(rt,a,st,x,Tt))&&(y=(rt-Tt.x)*(rt-Tt.x)+(a-Tt.y)*(a-Tt.y)));for(var de=0;de<Et;de++){var ie=dt[de];ie.visible&&ie!==St&&ie.Sj(rt,a,st,x,ut)&&(lt=!0,ie=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),ie<b&&(b=ie,E.set(ut)))}return Ht&&(y>b&&E.set(Tt),re.free(Tt)),re.free(ut),z&&E.transform(tt),lt},jt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();_e.prototype.Gj.call(this)},jt.v=function(a){if(!Fu(this)){_e.prototype.v.call(this,a),a=null,(this.na===Ln.Auto||this.na===Ln.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=nu(E,!1);(E instanceof rh||E instanceof Ln||E instanceof Is||z!==ti)&&E.v(!0)}}}},jt.Uj=function(){if(!Fu(this)){Ka(this,!0),yA(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},jt.Uk=function(){if(!(this.l&2048)){Du(this,!0),su(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},jt.Wu=function(){su(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},jt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,b=tt.height),x=Math.max(x,tt.width),b=Math.max(b,tt.height);var rt=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,rt.width)),isNaN(z.height)||(y=Math.min(z.height,rt.height)),a=Math.max(x,a),y=Math.max(b,y);var st=this.yb;a=Math.max(a-st.left-st.right,0),y=Math.max(y-st.top-st.bottom,0);var lt=this.O.s;lt.length!==0&&this.na.measure(this,a,y,lt,E,x,b),a=E.width+st.left+st.right,st=E.height+st.top+st.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(st=z.height),a=Math.min(rt.width,a),st=Math.min(rt.height,st),a=Math.max(tt.width,a),st=Math.max(tt.height,st),a=Math.max(x,a),st=Math.max(b,st),ca(E,a,st),ca(this.naturalBounds,a,st),this.Ge(0,0,a,st)},jt.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function na(a){return a.part!==null?a.part.locationObject:null}jt.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=nu(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,rt=tt.left+tt.right;switch(tt=tt.top+tt.bottom,y===x&&z===b&&(a=ti),a){case ti:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case ri:this.v(!0),this.measure(x+rt,b+tt,0,0);break;case lr:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Cr:this.v(!0),this.measure(y+rt,b+tt,0,0)}}this.na.arrange(this,E,this.jg)}},jt.gh=function(a){var y=this.naturalBounds,x=na(this);if(Ys(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=re.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(wo(E.set(a),z.transform),z.ca(E)))return re.free(E),!0}return re.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},jt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},jt.qm=function(a,y){if(y(this,a),a instanceof Ln){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Ns(a,y){ql(a,a,y)}function ql(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof Ln&&ql(a,z,x)}}function YA(a,y){ju(a,a,y)}function ju(a,y,x){if(x(y),y instanceof Ln){y=y.O.s;for(var b=y.length,E=0;E<b;E++)ju(a,y[E],x)}}jt.Nl=function(a){return NA(this,this,a)};function NA(a,y,x){if(x(y))return y;if(y instanceof Ln){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=NA(a,y[E],x);if(z!==null)return z}}return null}jt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Hd(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Ln){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function Il(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Ln?x=Math.max(x,Il(E)):E instanceof io&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}jt.se=function(){return!(this.type===Ln.TableRow||this.type===Ln.TableColumn)};function Mu(a){return a.type===Ln.TableRow||a.type===Ln.TableColumn}jt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),$l(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),tt=z?a:wo(re.allocAt(a.x,a.y),this.transform),rt=this.diagram,st=10,lt=5;if(rt!==null&&(st=rt.Ql("extraTouchArea"),lt=st/2),Ys(-(lt*E),-(lt*E),b.width+st*E,b.height+st*E,tt.x,tt.y)){if(!this.isAtomic){E=this.O.s;var ut=E.length;if(rt=re.alloc(),lt=(st=this.isClipping&&this.na===Ln.Spot)?this.Pb():null,st&&(lt.se()?wo(rt.set(a),lt.transform):rt.set(a),!lt.ca(rt)))return re.free(rt),z||re.free(tt),null;for(var dt=na(this);ut--;){var St=E[ut];if((St.visible||St===dt)&&(St.se()?wo(rt.set(a),St.transform):rt.set(a),!st||St!==lt)){var Et=null;if(St instanceof Ln?Et=St.ic(rt,y,x):St.pickable===!0&&St.ca(rt)&&(Et=St),Et!==null&&(y!==null&&(Et=y(Et)),Et!==null&&(x===null||x(Et))))return re.free(rt),z||re.free(tt),Et}}re.free(rt)}return this.background===null&&this.areaBackground===null?(z||re.free(tt),null):(a=Ys(0,0,b.width,b.height,tt.x,tt.y)?this:null,z||re.free(tt),a)}return z||re.free(tt),null},jt.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),tt=z?a:wo(re.allocAt(a.x,a.y),this.transform);if(E=Ys(0,0,E.width,E.height,tt.x,tt.y),Mu(this)||E){if(!this.isAtomic){for(var rt=this.O.s,st=rt.length,lt=re.alloc(),ut=na(this);st--;){var dt=rt[st];if(dt.visible||dt===ut){dt.se()?wo(lt.set(a),dt.transform):lt.set(a);var St=dt;dt=dt instanceof Ln?dt:null,(dt!==null?dt.ji(lt,y,x,b):St.ca(lt))&&St.pickable!==!1&&(y!==null&&(St=y(St)),St===null||x!==null&&!x(St)||b.add(St))}}re.free(lt)}return z||re.free(tt),E&&(this.background!==null||this.areaBackground!==null)}return z||re.free(tt),!1},jt.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=fo.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return IA(this,y,x,E),z===void 0&&fo.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=na(this),st=this.O.s,lt=st.length;lt--;){var ut=st[lt];if(ut.visible||ut===rt){var dt=ut.actualBounds,St=this.naturalBounds;dt.x>St.width||dt.y>St.height||0>dt.x+dt.width||0>dt.y+dt.height||(dt=ut,ut=ut instanceof Ln?ut:null,St=fo.alloc(),St.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,St):Ga(dt,a,b,St))&&(y!==null&&(dt=y(dt)),dt===null||x!==null&&!x(dt)||E.add(dt)),fo.free(St))}}return z===void 0&&fo.free(tt),b}return z===void 0&&fo.free(tt),!1};function IA(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var tt=E[z];if(tt.visible){var rt=tt.actualBounds,st=a.naturalBounds;rt.x>st.width||rt.y>st.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof Ln&&IA(tt,y,x,b),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||b.add(tt))}}}jt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var tt=this.naturalBounds,rt=this.se(),st=rt?a:wo(re.allocAt(a.x,a.y),this.transform),lt=rt?y:wo(re.allocAt(y.x,y.y),this.transform),ut=st.Bf(lt),dt=0<st.x&&st.x<tt.width&&0<st.y&&st.y<tt.height||Ps(st.x,st.y,0,0,0,tt.height)<=ut||Ps(st.x,st.y,0,tt.height,tt.width,tt.height)<=ut||Ps(st.x,st.y,tt.width,tt.height,tt.width,0)<=ut||Ps(st.x,st.y,tt.width,0,0,0)<=ut;if(tt=st.zd(0,0)<=ut&&st.zd(0,tt.height)<=ut&&st.zd(tt.width,0)<=ut&&st.zd(tt.width,tt.height)<=ut,rt||(re.free(st),re.free(lt)),dt){if(!this.isAtomic){st=re.alloc(),lt=re.alloc(),ut=na(this);for(var St=this.O.s,Et=St.length;Et--;){var Tt=St[Et];if(Tt.visible||Tt===ut){var Ht=Tt.actualBounds,de=this.naturalBounds;(!rt||!(Ht.x>de.width||Ht.y>de.height||0>Ht.x+Ht.width||0>Ht.y+Ht.height))&&(Tt.se()?(Ht=Tt.transform,wo(st.set(a),Ht),wo(lt.set(y),Ht)):(st.set(a),lt.set(y)),Ht=Tt,Tt=Tt instanceof Ln?Tt:null,(Tt!==null?Tt.og(st,lt,x,b,E,z):Ht.tx(st,lt,E))&&(x!==null&&(Ht=x(Ht)),Ht===null||b!==null&&!b(Ht)||z.add(Ht)))}}re.free(st),re.free(lt)}return E?dt:tt}return!1};function nh(a){var y=null;return a instanceof io&&(y=a.spot1,y===ns&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Za),y}function Sh(a){var y=null;return a instanceof io&&(y=a.spot2,y===ns&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Rl),y}jt.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},jt.M=function(a){return this.O.M(a)},jt.Gb=function(a,y){y instanceof Sr&&Fe("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Fe("Cannot make a Panel contain itself: "+this.toString()),Fe("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Fe("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Ln.Grid||y instanceof io||Fe("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Ln.Graduated||y instanceof io||y instanceof Is||Fe("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new Ji),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,tt=this.O.s,rt=tt.length,st=0;st<rt;st++)if(tt[st]===y){z=st;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else Fe("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Fu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Ln&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Jf(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Qi&&(x.Te=!0),x.Te&&x instanceof Qi&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(tl,"elements",this,y,null,b,null),x.cb(Na,"elements",this,null,y,null,a)))};function Jh(a,y){a.l=y?a.l|16777216:a.l&-16777217}jt.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},jt.mb=function(a){0<=a&&this.pc(a,!0)},jt.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Ka(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Qi&&(b instanceof Ln?b.qm(b,function(tt,rt){Pv(z,rt,y)}):Pv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(tl,"elements",this,b,null,a,null))},jt.Fb=function(a){0>a&&Ei(a,">= 0",Ln,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Va;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Na,"rowdefs",this,null,x,null,a)}return y[a]},jt.oA=function(a){if(0>a&&Ei(a,">= 0",Ln,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(tl,"rowdefs",this,x,null,a,null),this.v()}}};function Bc(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Va?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}jt.Eb=function(a){0>a&&Ei(a,">= 0",Ln,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Va;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Na,"coldefs",this,null,x,null,a)}return y[a]},jt.jA=function(a){if(0>a&&Ei(a,">= 0",Ln,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(tl,"coldefs",this,x,null,a,null),this.v()}}};function wd(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Va?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}jt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Yg(y,a),this},jt.Hy=function(a,y){return(a=this.Fb(a))&&Yg(a,new Va(y)),this},jt.By=function(a,y){return(a=this.Eb(a))&&Yg(a,new Va(y)),this},jt.nz=function(a){if(0>a||this.type!==Ln.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},jt.fz=function(a){if(0>a||this.type!==Ln.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},jt.Fz=function(a,y){if(y===void 0&&(y=new re(NaN,NaN)),this.type!==Ln.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},jt.Gz=function(a){if(this.type!==Ln.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function xh(a){return a=a.allBindings,a!==null&&a._isFrozen}function cu(a){var y=a.allBindings;if(y===null)a.data!==null&&Fe("Template cannot have .data be non-null: "+a),a.allBindings=y=new ai;else if(y._isFrozen)return;var x=new ai;Jh(a,!1),a.qm(a,function(lt,ut){ut.th();var dt=ut.localBindings;if(dt!==null)for(xc(ut,!1),dt=dt.iterator;dt.next();){var St=dt.value;St.mode===M0&&xc(ut,!0);var Et=St.sourceName;Et!==null&&(Et==="/"&&Jh(lt,!0),Et=M1(St,lt,ut),Et!==null&&(x.add(Et),Et.srcBindings===null&&(Et.srcBindings=new ai),Et.srcBindings.add(St))),y.add(St)}if(ut instanceof Ln&&ut.type===Ln.Table){if(0<ut.rowCount){for(lt=ut.rowDefs,dt=lt.length,St=0;St<dt;St++)if(Et=lt[St],Et!==void 0&&Et.be!==null)for(var Tt=Et.be.iterator;Tt.next();){var Ht=Tt.value;Ht.xd=Et,Ht.to=2,Ht.wl=Et.index,y.add(Ht)}}if(0<ut.columnCount){for(ut=ut.colDefs,lt=ut.length,dt=0;dt<lt;dt++)if(St=ut[dt],St!==void 0&&St.be!==null)for(Et=St.be.iterator;Et.next();)Tt=Et.value,Tt.xd=St,Tt.to=1,Tt.wl=St.index,y.add(Tt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){xc(E,!0);for(var z=E.srcBindings.iterator;z.next();){var tt=z.value;E.localBindings===null&&(E.localBindings=new ai),E.localBindings.add(tt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var rt=E.targetProperty,st=rt.indexOf(".");0<st&&z instanceof Ln&&(tt=rt.substring(0,st),rt=rt.substr(st+1),st=z.fb(tt),st!==null?(z=st,E.targetProperty=rt):Ar('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+E.toString())),z instanceof Va?(tt=Xo(z.panel),E.Ai=tt===void 0?-1:tt,z.panel.bindingId=E.Ai):z instanceof _e?(tt=Xo(z),E.Ai=tt===void 0?-1:tt,z.bindingId=E.Ai):Fe("Unknown type of binding target: "+z)}y.freeze(),a instanceof Sr&&a.Zc()&&a.Va()}jt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return YA(y,function(x){x instanceof Ln&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&cu(y),y},jt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof Ln))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},jt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Zf(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Ln&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var tt=0;E<x&&tt<b;){if(z=a[E],!(z instanceof Ln)||z.data!==y[tt])return!0;E++,tt++}return!1}function Hd(a){if(a.type===Ln.Spot||a.type===Ln.Auto)return Math.min(a.O.length,1);if(a.type===Ln.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof io&&b.isPanelMain))break}return x}return a.type===Ln.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Ln&&Mu(a))?1:0}jt.mv=function(){for(var a=Hd(this);this.O.length>a;)this.pc(this.O.length-1,!1);rf(this,this.itemArray)};function rf(a,y){var x=Hd(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)au(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],tt=b<a.O.length?a.O.M(b):null;if(tt instanceof Ln){if(tt.data!==z){var rt=xp(a,tt.data),st=xp(a,z),lt=st!==rt;lt||(rt=Bp(a,rt),lt=Bp(a,st)!==rt),lt?(a.pc(b,!1),au(a,z,E,!1)):tt.data=z}}else au(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,Wg(a,x,0),Fu(a)||a.v(),a.graduatedIntervals=null,a.If()||Jf(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Qi&&(y.Te=!0),y.Te&&y instanceof Qi&&(y.wc=null))}}function au(a,y,x,b){if(!(y==null||0>x)){var E=xp(a,y);if(E=Bp(a,E),E!==null){if(cu(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Jh(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Ji),a.ge.add(y,E)),z=x+Hd(a),a.Gb(z,E),b&&(E.ub=y,Wg(a,z,x),E.ub=null),E.data=y}}}function Wg(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Ln){var E=y,z=x;b.type===Ln.TableRow?b.row=E:b.type===Ln.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function xp(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=rl(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Fe("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Bp(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(Vg||(Vg=!0,Ar('No item template Panel found for category "'+y+'" on '+a),Ar(" Using default item template."),a=new Ln,y=new Is,y.bind(new al("text","",kr)),a.add(y),Wc=a),b=Wc)),b}function Jf(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Ln){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Ln&&!z.isEnabled||Jf(a,z,x)}}}function $h(a,y){y.name=a,ih.add(a,y)}Ae.Object.defineProperties(Ln.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Ln.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Ei(a,">= 0",Ln,"padding"),a=new mr(a)):(0>a.left&&Ei(a.left,">= 0",Ln,"padding:value.left"),0>a.right&&Ei(a.right,">= 0",Ln,"padding:value.right"),0>a.top&&Ei(a.top,">= 0",Ln,"padding:value.top"),0>a.bottom&&Ei(a.bottom,">= 0",Ln,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:lu},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new jh),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof as)&&(a instanceof as&&a.freeze(),this.T===null&&(this.T=new jh),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new jh),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Fe("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new jh),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof as)&&(a instanceof as&&a.freeze(),this.T===null&&(this.T=new jh),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new jh),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Fe("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new jh),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new jh),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||Fe("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&vh(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||Fe("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&vh(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new SA),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),vl(this)&&(a=this.part,a!==null&&xs(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new SA),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),vl(this)&&(a=this.part,a!==null&&xs(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new SA),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new SA),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new SA,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new SA,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new SA,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new SA,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new jh),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new jh),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:xf},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new jh),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:xf},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new jh),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&Fe("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new jh),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&Fe("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new jh),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Sr&&!(this instanceof Yo);cu(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Bi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Sr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new jd),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Zf(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&Kv(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&_v(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||rf(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Ji}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Sr||a.isPanelMain)&&Fe("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Zr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Zr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof qr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Jf(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Ae.Object.defineProperties(Ln,{Position:{get:function(){return ih.I("Position")}},Horizontal:{get:function(){return ih.I("Horizontal")}},Vertical:{get:function(){return ih.I("Vertical")}},Spot:{get:function(){return ih.I("Spot")}},Auto:{get:function(){return ih.I("Auto")}},Table:{get:function(){return ih.I("Table")}},Viewbox:{get:function(){return ih.I("Viewbox")}},TableRow:{get:function(){return ih.I("TableRow")}},TableColumn:{get:function(){return ih.I("TableColumn")}},Link:{get:function(){return ih.I("Link")}},Grid:{get:function(){return ih.I("Grid")}},Graduated:{get:function(){return ih.I("Graduated")}}}),Ln.prototype.rebuildItemElements=Ln.prototype.mv,Ln.prototype.findItemPanelForData=Ln.prototype.sx,Ln.prototype.updateTargetBindings=Ln.prototype.La,Ln.prototype.copyTemplate=Ln.prototype.Uy,Ln.prototype.graduatedValueForPoint=Ln.prototype.Gz,Ln.prototype.graduatedPointForValue=Ln.prototype.Fz,Ln.prototype.findColumnForLocalX=Ln.prototype.fz,Ln.prototype.findRowForLocalY=Ln.prototype.nz,Ln.prototype.addColumnDefinition=Ln.prototype.By,Ln.prototype.addRowDefinition=Ln.prototype.Hy,Ln.prototype.addRowColumnDefinition=Ln.prototype.Gy,Ln.prototype.removeColumnDefinition=Ln.prototype.jA,Ln.prototype.getColumnDefinition=Ln.prototype.Eb,Ln.prototype.removeRowDefinition=Ln.prototype.oA,Ln.prototype.getRowDefinition=Ln.prototype.Fb,Ln.prototype.removeAt=Ln.prototype.mb,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.insertAt=Ln.prototype.Gb,Ln.prototype.elt=Ln.prototype.M,Ln.prototype.add=Ln.prototype.add,Ln.prototype.findObject=Ln.prototype.fb,Ln.prototype.findInVisualTree=Ln.prototype.Nl,Ln.prototype.walkVisualTreeFrom=Ln.prototype.qm,Ln.prototype.findMainElement=Ln.prototype.Pb;var Vg=!1,Wc=null,ih=new Ji;Ln.className="Panel",Ln.definePanelLayout=$h,$h("Position",new cn),$h("Vertical",new oi),$h("Auto",new Yi),$h("Link",new Bo);function SA(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}SA.prototype.copy=function(){var a=new SA;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},SA.className="GradPanelSettings";function jh(){this.Pc=[],this.Oc=[],this.j=this.ob=xf,this.hb=this.Hb=0,this.Qp=lu,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}jh.prototype.copy=function(a){for(var y=new jh,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),E[z]=tt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),E[z]=tt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},jh.className="TablePanelSettings";function Va(a){Qo(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ns,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Xg,this.hg=Ur,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Va.prototype.copy=function(){var a=new Va;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=xr(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Yg(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=xr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}jt=Va.prototype,jt.qb=function(a){a.classType===Va&&(this.sizing=a)},jt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Xo(this)},jt.wi=function(a){this.Me=a},jt.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},jt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Ln.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var tt=b?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},jt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(qs,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function $f(a){if(a.sizing===Xg){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}jt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new al(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&xh(y)&&Fe("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new ai),this.be.add(E),this},Ae.Object.defineProperties(Va.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Ei(a,">= 0",Va,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Ei(a,">= 0",Va,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Ei(a,">= 0",Va,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Ei(a,">= 0",Va,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Ft(a,"RowColumnDefinition.separatorStroke"),a instanceof as&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Fe("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ft(a,"RowColumnDefinition.background"),a instanceof as&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Va.prototype.computeEffectiveSpacing=Va.prototype.Wc,Va.prototype.computeEffectiveSpacingTop=Va.prototype.Io;var Xg=new zn(Va,"Default",0),Sf=new zn(Va,"None",1),xf=new zn(Va,"ProportionalExtra",2);Va.className="RowColumnDefinition",Va.Default=Xg,Va.None=Sf,Va.ProportionalExtra=xf;function io(a,y){_e.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}nn(io,_e),io.prototype.cloneProtected=function(a){_e.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=xr(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Bf(a){a.Na===null?a.Na=new Lg:a.Na.nc&&(a.Na=a.Na.copy())}jt=io.prototype,jt.th=function(){_e.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},jt.qb=function(a){a===ti||a===qi||a===mo||a===Ur?this.geometryStretch=a:_e.prototype.qb.call(this,a)},jt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Xo(this)};function Cf(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],st=x[1],lt,ut,dt,St,Et,Tt,Ht=0,de=tr(),ie=2;ie<E;ie+=2)lt=x[ie],ut=x[ie+1],dt=lt-rt,rt=ut-st,dt===0&&(dt=.001),St=rt/dt,Et=Math.atan2(rt,dt),Tt=Math.sqrt(dt*dt+rt*rt),de.push([dt,Et,St,Tt]),Ht+=Tt,rt=lt,st=ut;rt=x[0],st=x[1],dt=b.measuredBounds.width,b instanceof io&&(dt-=b.strokeWidth),1>dt&&(dt=1),E=x=dt,lt=tt/2,ut=lt!==0,ie=0,Tt=de[ie],dt=Tt[0],Et=Tt[1],St=Tt[2],Tt=Tt[3];for(var Se=0;.1<=Ht;){if(Se===0&&(ut?(E=x,E-=lt,Ht-=lt,ut=!1):E=x,E===0&&(E=1)),E>Ht){vr(de);return}E>Tt?(Se=E-Tt,E=Tt):Se=0;var Le=Math.sqrt(E*E/(1+St*St));if(0>dt&&(Le=-Le),rt+=Le,st+=St*Le,a.translate(rt,st),a.rotate(Et),a.translate(-(tt/2),-(z/2)),Se===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-Et),a.translate(-rt,-st),Ht-=E,Tt-=E,Se!==0){if(ie++,ie===de.length){vr(de);return}Tt=de[ie],dt=Tt[0],Et=Tt[1],St=Tt[2],Tt=Tt[3],E=Se}}vr(de)}}jt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;b!==null&&Qs(this,a,b,!0,!1,tt,z);var rt=this.part,st=this.ig;if(x===null||st!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(st=rt.type===Ln.Link&&rt instanceof Yo&&rt.category==="Selection"&&rt.adornedObject instanceof io&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),st===0&&(x=null),x!==null&&st!==0&&(Qs(this,a,x,!1,!1,tt,z),a.lineWidth=st,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||b!==null&&b!=="transparent"||(rt=!1),tt=!1,st=this.strokeDashArray,st!==null&&(tt=!0,a.js(st,this.strokeDashOffset)),E.type===Li.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Li.u){var lt=E.startX;st=E.startY;var ut=E.endX,dt=E.endY;E=Math.min(lt,ut);var St=Math.min(st,dt);lt=Math.abs(ut-lt),st=Math.abs(dt-st),a.beginPath(),a.rect(E,St,lt,st),b!==null&&a.ng(b),x!==null&&(rt&&z&&wA(a),a.jk(),rt&&z&&eh(a)),a.Se()}else if(E.type===Li.F)lt=E.startX,st=E.startY,ut=E.endX,dt=E.endY,E=Math.abs(ut-lt)/2,St=Math.abs(dt-st)/2,lt=Math.min(lt,ut)+E,st=Math.min(st,dt)+St,a.beginPath(),a.moveTo(lt,st-St),a.bezierCurveTo(lt+Je.wg*E,st-St,lt+E,st-Je.wg*St,lt+E,st),a.bezierCurveTo(lt+E,st+Je.wg*St,lt+Je.wg*E,st+St,lt,st+St),a.bezierCurveTo(lt-Je.wg*E,st+St,lt-E,st+Je.wg*St,lt-E,st),a.bezierCurveTo(lt-E,st-Je.wg*St,lt-Je.wg*E,st-St,lt,st-St),a.closePath(),b!==null&&a.ng(b),x!==null&&(rt&&z&&wA(a),a.jk(),rt&&z&&eh(a)),a.Se();else if(E.type===Li.o)for(E=E.figures,st=E.length,St=0;St<st;St++){lt=E.s[St],a.beginPath(),a.moveTo(lt.startX,lt.startY),ut=lt.segments.s,dt=ut.length;for(var Et=null,Tt=0;Tt<dt;Tt++){var Ht=ut[Tt];switch(Ht.type){case sl:a.moveTo(Ht.endX,Ht.endY);break;case Ts:a.lineTo(Ht.endX,Ht.endY);break;case kl:a.bezierCurveTo(Ht.point1X,Ht.point1Y,Ht.point2X,Ht.point2Y,Ht.endX,Ht.endY);break;case Iu:a.quadraticCurveTo(Ht.point1X,Ht.point1Y,Ht.endX,Ht.endY);break;case Da:if(Ht.radiusX===Ht.radiusY){var de=Math.PI/180;a.arc(Ht.point1X,Ht.point1Y,Ht.radiusX,Ht.startAngle*de,(Ht.startAngle+Ht.sweepAngle)*de,0>Ht.sweepAngle,Et!==null?Et.endX:lt.startX,Et!==null?Et.endY:lt.startY)}else if(Et=fu(Ht,lt),de=Et.length,de===0)a.lineTo(Ht.centerX,Ht.centerY);else for(var ie=0;ie<de;ie++){var Se=Et[ie];ie===0&&a.lineTo(Se[0],Se[1]),a.bezierCurveTo(Se[2],Se[3],Se[4],Se[5],Se[6],Se[7])}break;case fh:if(ie=de=0,Et!==null&&Et.type===Da){if(Et=fu(Et,lt),Se=Et.length,Se===0){a.lineTo(Ht.endX,Ht.endY);break}Et=Et[Se-1]||null,Et!==null&&(de=Et[6],ie=Et[7])}else de=Et!==null?Et.endX:lt.startX,ie=Et!==null?Et.endY:lt.startY;if(Et=_u(Ht,lt,de,ie),de=Et.length,de===0){a.lineTo(Ht.endX,Ht.endY);break}for(ie=0;ie<de;ie++)Se=Et[ie],a.bezierCurveTo(Se[2],Se[3],Se[4],Se[5],Se[6],Se[7]);break;default:Fe("Segment not of valid type: "+Ht.type)}Ht.isClosed&&a.closePath(),Et=Ht}ut=lt.isFilled,z?lt.isShadowed?(ut===!0&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&(ut&&rt&&wA(a),a.jk(),ut&&rt&&eh(a))):(wA(a),ut&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk(),eh(a)):(ut&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk()),a.Se(St)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=tr(),z.type===Li.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Cf(a,y,b,x);else if(z.type===Li.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,b.length=0,b.push(rt.startX),b.push(rt.startY),tt=rt.startX,E=rt.startY,st=tt,St=E,lt=rt.segments.s,ut=lt.length,dt=0;dt<ut;dt++){switch(Tt=lt[dt],Tt.type){case sl:Cf(a,y,b,x),b.length=0,b.push(Tt.endX),b.push(Tt.endY),tt=Tt.endX,E=Tt.endY,st=tt,St=E;break;case Ts:b.push(Tt.endX),b.push(Tt.endY),tt=Tt.endX,E=Tt.endY;break;case kl:Je.Qe(tt,E,Tt.point1X,Tt.point1Y,Tt.point2X,Tt.point2Y,Tt.endX,Tt.endY,.5,b),tt=Tt.endX,E=Tt.endY;break;case Iu:Je.ep(tt,E,Tt.point1X,Tt.point1Y,Tt.endX,Tt.endY,.5,b),tt=Tt.endX,E=Tt.endY;break;case Da:if(Ht=fu(Tt,rt),Et=Ht.length,Et===0){b.push(Tt.centerX),b.push(Tt.centerY),tt=Tt.centerX,E=Tt.centerY;break}for(de=0;de<Et;de++)ie=Ht[de],Je.Qe(tt,E,ie[2],ie[3],ie[4],ie[5],ie[6],ie[7],.5,b),tt=ie[6],E=ie[7];break;case fh:if(Ht=_u(Tt,rt,tt,E),Et=Ht.length,Et===0){b.push(Tt.endX),b.push(Tt.endY),tt=Tt.endX,E=Tt.endY;break}for(de=0;de<Et;de++)ie=Ht[de],Je.Qe(tt,E,ie[2],ie[3],ie[4],ie[5],ie[6],ie[7],.5,b),tt=ie[6],E=ie[7];break;default:Fe("Segment not of valid type: "+Tt.type)}Tt.isClosed&&(b.push(st),b.push(St),Cf(a,y,b,x))}Cf(a,y,b,x)}else if(z.type===Li.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),Cf(a,y,b,x);else if(z.type===Li.F){if(E=new pa,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,tt=new Wo(Da),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(tt),z=fu(tt,E),rt=z.length,rt===0)b.push(tt.centerX),b.push(tt.centerY);else for(tt=E.startX,E=E.startY,st=0;st<rt;st++)St=z[st],Je.Qe(tt,E,St[2],St[3],St[4],St[5],St[6],St[7],.5,b),tt=St[6],E=St[7];Cf(a,y,b,x)}vr(b),a.restore(),a.Vc(!1)}}}},jt.kk=function(a,y,x){return!_e.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},jt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:_e.prototype.nk.call(this,a)},jt.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},jt.ga=function(a,y){if(y===void 0&&(y=new re),a instanceof nr){a.Mc()&&Fe("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},jt.mi=function(a){a===void 0&&(a=new Mn);var y=this.naturalBounds,x=this.oe;y=Mn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=re.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),ps(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),ps(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),ps(a,b.x,b.y,0,0),Mn.free(y),re.free(b),a},jt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Li.j||y||(E+=2);var z=Mn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return Mn.free(z),!1;if(b=E+1e-4,x.type===Li.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(Mn.free(z),Je.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Li.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return Mn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),Mn.free(z),a}if(x.type===Li.F){tt=x.startX,E=x.startY,rt=x.endX;var st=x.endY;if(x=Math.min(tt,rt),y=Math.min(E,st),tt=Math.abs(rt-tt)/2,E=Math.abs(st-E)/2,x=a.x-(x+tt),y=a.y-(y+E),this.fill===null){if(tt-=b,E-=b,0>=tt||0>=E||1>=x*x/(tt*tt)+y*y/(E*E))return Mn.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),Mn.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===Li.o)return Mn.free(z),this.fill===null?Lh(x,a.x,a.y,E):uu(x,a,E,1<this.strokeWidth,y);Fe("Unknown Geometry type: "+x.type)},jt.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var tt=this.geometry.bounds;else{var rt=this.figure,st=bp[rt];if(st===void 0){var lt=Je.Ze[rt];typeof lt=="string"&&(lt=Je.Ze[lt]),typeof lt=="function"?(st=lt(null,100,100),bp[rt]=st):Fe("Unsupported Figure: "+rt)}tt=st.bounds}rt=tt.width,st=tt.height,lt=tt.width;var ut=tt.height;switch(nu(this,!0)){case ti:b=x=0;break;case ri:lt=Math.max(a-z,0),ut=Math.max(y-z,0);break;case lr:lt=Math.max(a-z,0),b=0;break;case Cr:x=0,ut=Math.max(y-z,0)}isFinite(E.width)&&(lt=E.width),isFinite(E.height)&&(ut=E.height);var dt=this.maxSize,St=this.minSize;switch(x=Math.max(x-z,St.width),b=Math.max(b-z,St.height),lt=Math.min(dt.width,lt),ut=Math.min(dt.height,ut),lt=isFinite(lt)?Math.max(x,lt):Math.max(rt,x),ut=isFinite(ut)?Math.max(b,ut):Math.max(st,b),x=zd(this),x){case ti:break;case ri:rt=lt,st=ut;break;case qi:x=Math.min(lt/rt,ut/st),isFinite(x)||(x=1),rt*=x,st*=x;break;default:Fe(x+" is not a valid geometryStretch.")}this.Rd!==null?(rt===0&&(rt=.001),st===0&&(st=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,b=rt/tt.width,tt=st/tt.height,isFinite(b)||(b=1),isFinite(tt)||(tt=1),this.ua=b===1&&tt===1?x:x.copy().scale(b,tt)):this.ua!==null&&Je.$(this.ua.Sk,a-z)&&Je.$(this.ua.Rk,y-z)||(this.ua=io.makeGeometry(this,rt,st)),tt=this.ua.bounds,a===1/0||y===1/0?this.Ge(tt.x-z/2,tt.y-z/2,a===0&&rt===0?0:tt.width+z,y===0&&st===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),lt+z,ut+z),E.w()?(lt=E.width,ut=E.height,lt=Math.min(dt.width,lt),ut=Math.min(dt.height,ut),lt=Math.max(St.width,lt),ut=Math.max(St.height,ut),this.dc.h(0,0,lt,ut)):this.dc.assign(tt)};function zd(a){var y=a.geometryStretch;return a.Rd!==null?y===Ur?ri:y:y===Ur?bp[a.figure].defaultStretch:y}jt.eh=function(a,y,x,b){Ja(this,a,y,x,b)},jt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},jt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,st=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,dt=tt*(z.m21*z.dy-z.m22*z.dx),St=tt*(z.m12*z.dx-z.m11*z.dy);z=a*rt+y*lt+dt,tt=a*st+y*ut+St,rt=x*rt+b*lt+dt,st=x*st+b*ut+St,dt=this.ig/2,lt=this.ua,lt===null&&(this.measure(1/0,1/0),lt=this.ua);var Et=lt.bounds;if(ut=!1,lt.type===Li.j)if(1.5>=this.strokeWidth)ut=Je.Ve(lt.startX,lt.startY,lt.endX,lt.endY,z,tt,rt,st,E);else{if(lt.startX===lt.endX?(b=dt,ut=0):(y=(lt.endY-lt.startY)/(lt.endX-lt.startX),ut=dt/Math.sqrt(1+y*y),b=ut*y),y=tr(),a=new re,Je.Ve(lt.startX+b,lt.startY+ut,lt.endX+b,lt.endY+ut,z,tt,rt,st,a)&&y.push(a),a=new re,Je.Ve(lt.startX-b,lt.startY-ut,lt.endX-b,lt.endY-ut,z,tt,rt,st,a)&&y.push(a),a=new re,Je.Ve(lt.startX+b,lt.startY+ut,lt.startX-b,lt.startY-ut,z,tt,rt,st,a)&&y.push(a),a=new re,Je.Ve(lt.endX+b,lt.endY+ut,lt.endX-b,lt.endY-ut,z,tt,rt,st,a)&&y.push(a),rt=y.length,rt===0)return vr(y),!1;for(ut=!0,st=1/0,b=0;b<rt;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<st&&(st=x,E.x=a.x,E.y=a.y);vr(y)}else if(lt.type===Li.u)ut=Je.Ff(Et.x-dt,Et.y-dt,Et.x+Et.width+dt,Et.y+Et.height+dt,z,tt,rt,st,E);else if(lt.type===Li.F){y=Mn.allocAt(Et.x,Et.y,Et.width,Et.height).Bc(dt,dt);t:if(y.width===0)ut=Je.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,st,E);else if(y.height===0)ut=Je.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,st,E);else{if(a=y.width/2,lt=y.height/2,b=y.x+a,ut=y.y+lt,x=9999,z!==rt&&(x=(tt-st)/(z-rt)),9999>Math.abs(x)){if(st=tt-ut-x*(z-b),0>a*a*x*x+lt*lt-st*st){E.x=NaN,E.y=NaN,ut=!1;break t}dt=Math.sqrt(a*a*x*x+lt*lt-st*st),rt=(-(a*a*x*st)+a*lt*dt)/(lt*lt+a*a*x*x)+b,a=(-(a*a*x*st)-a*lt*dt)/(lt*lt+a*a*x*x)+b,lt=x*(rt-b)+st+ut,st=x*(a-b)+st+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-lt)*(tt-lt))<Math.abs((z-a)*(z-a))+Math.abs((tt-st)*(tt-st))?(E.x=rt,E.y=lt):(E.x=a,E.y=st)}else{if(rt=lt*lt,st=z-b,rt-=rt/(a*a)*st*st,0>rt){E.x=NaN,E.y=NaN,ut=!1;break t}st=Math.sqrt(rt),rt=ut+st,st=ut-st,Math.abs(rt-tt)<Math.abs(st-tt)?(E.x=z,E.y=rt):(E.x=z,E.y=st)}ut=!0}Mn.free(y)}else if(lt.type===Li.o){St=re.alloc();var Tt=rt-z,Ht=st-tt,de=Tt*Tt+Ht*Ht,ie=z,Se=tt;if(0<de&&Et.contains(ie,Se)&&(St.x=ie,St.y=Se,this.ca(St)))for(Tt!==0&&.5>Math.abs(Tt)?(Ht*=.5/Tt,Tt=.5):Ht!==0&&.5>Math.abs(Ht)&&(Tt*=.5/Ht,Ht=.5),ie-=Tt,Se-=Ht;Et.contains(ie,Se);)ie-=Tt,Se-=Ht;for(E.x=rt,E.y=st,Ht=0;Ht<lt.figures.count;Ht++){var Le=lt.figures.s[Ht],Ee=Le.isFilled?ie:z,We=Le.isFilled?Se:tt,dn=Le.segments;Et=Le.startX,Tt=Le.startY;for(var Di=Et,er=Tt,Ki=0;Ki<dn.count;Ki++){var xi=dn.s[Ki],ni=xi.type,Jr=xi.endX,Qr=xi.endY,es=!1;switch(ni){case sl:Di=Jr,er=Qr;break;case Ts:es=Pp(Et,Tt,Jr,Qr,Ee,We,rt,st,St);break;case kl:es=Je.Eo(Et,Tt,xi.point1X,xi.point1Y,xi.point2X,xi.point2Y,Jr,Qr,Ee,We,rt,st,.6,St);break;case Iu:es=Je.Eo(Et,Tt,Et+2/3*(xi.point1X-Et),Tt+2/3*(xi.point1Y-Tt),Jr+2/3*(xi.point1X-Jr),Qr+2/3*(xi.point1Y-Qr),Jr,Qr,Ee,We,rt,st,.6,St);break;case Da:case fh:ni=xi.type===Da?fu(xi,Le):_u(xi,Le,Et,Tt);var js=ni.length;if(js===0){es=Pp(Et,Tt,xi.type===Da?xi.centerX:xi.endX,xi.type===Da?xi.centerY:xi.endY,Ee,We,rt,st,St);break}for(Qr=null,Jr=0;Jr<js;Jr++){if(Qr=ni[Jr],Jr===0&&Pp(Et,Tt,Qr[0],Qr[1],Ee,We,rt,st,St)){var Dl=Cp(Ee,We,St,de,E);Dl<de&&(de=Dl,ut=!0)}Je.Eo(Qr[0],Qr[1],Qr[2],Qr[3],Qr[4],Qr[5],Qr[6],Qr[7],Ee,We,rt,st,.6,St)&&(Dl=Cp(Ee,We,St,de,E),Dl<de&&(de=Dl,ut=!0))}Jr=Qr[6],Qr=Qr[7];break;default:Fe("Unknown Segment type: "+ni)}Et=Jr,Tt=Qr,es&&(es=Cp(Ee,We,St,de,E),es<de&&(de=es,ut=!0)),xi.isClosed&&(Jr=Di,Qr=er,Pp(Et,Tt,Jr,Qr,Ee,We,rt,st,St)&&(xi=Cp(Ee,We,St,de,E),xi<de&&(de=xi,ut=!0)))}}z=x-a,tt=b-y,rt=Math.sqrt(z*z+tt*tt),rt!==0&&(z/=rt,tt/=rt),E.x-=z*dt,E.y-=tt*dt,re.free(St)}else Fe("Unknown Geometry type: "+lt.type);return ut?(this.transform.Ga(E),!0):!1};function Cp(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Pp(a,y,x,b,E,z,tt,rt,st){if(Je.$(a,x)&&Je.$(y,b)||Je.$(E,tt)&&Je.$(z,rt))return!1;var lt=!1,ut=(E-tt)*(y-b)-(z-rt)*(a-x);return ut===0?!1:(st.x=((E*rt-z*tt)*(a-x)-(E-tt)*(a*b-y*x))/ut,st.y=((E*rt-z*tt)*(y-b)-(z-rt)*(a*b-y*x))/ut,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(st.y>a||Je.$(st.y,a))&&(st.y<y||Je.$(st.y,y))&&(lt=!0)):(y=a<x?a:x,a=a<x?x:a,(st.x>y||Je.$(st.x,y))&&(st.x<a||Je.$(st.x,a))&&(lt=!0)),lt)}jt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,z=re.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),re.free(z),E},jt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=fo.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var tt=re.alloc();if(tt.h(b,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(E,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0)))return re.free(tt),!0;var rt=re.alloc(),st=re.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=E,rt.y=z,rt.transform(x),tt.x=b,tt.y=z,tt.transform(x),y=!1,Pf(this,tt,rt,st)?y=!0:(tt.x=E,tt.y=a,tt.transform(x),Pf(this,tt,rt,st)?y=!0:(rt.x=b,rt.y=a,rt.transform(x),Pf(this,tt,rt,st)?y=!0:(tt.x=b,tt.y=z,tt.transform(x),Pf(this,tt,rt,st)&&(y=!0)))),re.free(tt),fo.free(x),re.free(rt),re.free(st),y};function Pf(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}jt.tx=function(a,y,x){function b(de,ie){for(var Se=de.length,Le=0;Le<Se;Le+=2)if(ie.zd(de[Le],de[Le+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var tt=y.bounds,rt=tt.x,st=tt.y,lt=tt.x+tt.width;if(tt=tt.y+tt.height,Pl(a.x,a.y,rt,st)<=E&&Pl(a.x,a.y,lt,st)<=E&&Pl(a.x,a.y,rt,tt)<=E&&Pl(a.x,a.y,lt,tt)<=E)return!0}if(rt=y.startX,st=y.startY,lt=y.endX,tt=y.endY,y.type===Li.j){if(x=(rt-lt)*(a.x-lt)+(st-tt)*(a.y-tt),Ps(a.x,a.y,rt,st,lt,tt)<=(0<=(lt-rt)*(a.x-rt)+(tt-st)*(a.y-st)&&0<=x?E:z))return!0}else{if(y.type===Li.u)return y=!1,x&&(y=Ps(a.x,a.y,rt,st,rt,tt)<=E||Ps(a.x,a.y,rt,st,lt,st)<=E||Ps(a.x,a.y,lt,st,lt,tt)<=E||Ps(a.x,a.y,rt,tt,lt,tt)<=E),y;if(y.type===Li.F){y=a.x-(rt+lt)/2,z=a.y-(st+tt)/2;var ut=Math.abs(lt-rt)/2,dt=Math.abs(tt-st)/2;if(ut===0||dt===0)return Ps(a.x,a.y,rt,st,lt,tt)<=E;if(x){if(a=Je.$y(ut,dt,y,z),a*a<=E)return!0}else return!(Pl(y,z,-ut,0)>=E||Pl(y,z,0,-dt)>=E||Pl(y,z,0,dt)>=E||Pl(y,z,ut,0)>=E)}else if(y.type===Li.o){if(lt=y.bounds,z=lt.x,rt=lt.y,st=lt.x+lt.width,lt=lt.y+lt.height,a.x>st&&a.x<z&&a.y>lt&&a.y<rt&&Ps(a.x,a.y,z,rt,z,lt)>E&&Ps(a.x,a.y,z,rt,st,rt)>E&&Ps(a.x,a.y,st,lt,z,lt)>E&&Ps(a.x,a.y,st,lt,st,rt)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?Lh(y,a.x,a.y,z):uu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>E)return!1;for(rt=z.segments.s,st=rt.length,lt=0;lt<st;lt++)switch(dt=rt[lt],dt.type){case sl:case Ts:if(tt=dt.endX,ut=dt.endY,a.zd(tt,ut)>E)return!1;break;case kl:var St=tr();if(Je.Qe(tt,ut,dt.point1X,dt.point1Y,dt.point2X,dt.point2Y,dt.endX,dt.endY,.8,St),tt=b(St,a),vr(St),tt||(tt=dt.endX,ut=dt.endY,a.zd(tt,ut)>E))return!1;break;case Iu:if(St=tr(),Je.ep(tt,ut,dt.point1X,dt.point1Y,dt.endX,dt.endY,.8,St),tt=b(St,a),vr(St),tt||(tt=dt.endX,ut=dt.endY,a.zd(tt,ut)>E))return!1;break;case Da:case fh:St=dt.type===Da?fu(dt,z):_u(dt,z,tt,ut);var Et=St.length;if(Et===0){if(tt=dt.type===Da?dt.centerX:dt.endX,ut=dt.type===Da?dt.centerY:dt.endY,a.zd(tt,ut)>E)return!1;break}dt=null;for(var Tt=tr(),Ht=0;Ht<Et;Ht++)if(dt=St[Ht],Tt.length=0,Je.Qe(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],.8,Tt),b(Tt,a))return vr(Tt),!1;vr(Tt),dt!==null&&(tt=dt[6],ut=dt[7]);break;default:Fe("Unknown Segment type: "+dt.type)}}return!0}}}return!1},jt.qc=function(){this.ua=null},jt.kq=function(){return this.ig};function u0(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=v0,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ba):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new nr(1-Ba.x,Ba.y)))}io.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Cc[a.toArrow];else a.fromArrow!=="None"?b=Cc[a.fromArrow]:(b=Je.Ze[a.figure],typeof b=="string"&&(b=Je.Ze[b]),b===void 0&&Fe("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Je.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function Zg(a){var y=Cc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Cc[x],y===void 0){var b=null,E;for(E in Je.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Li.parse(Je.um[b],!1),Cc[b]=a,x!==b&&(Cc[x]=b),b}}return typeof y=="string"?y:y instanceof Li?a:null}Ae.Object.defineProperties(io.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),vl(this)&&(a=this.part,a!==null&&xs(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Li.parse(a);var y=a.normalize();this.geometry=a,this.position=a=re.allocAt(-y.x,-y.y),re.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Ft(a,"Shape.fill"),a instanceof as&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ft(a,"Shape.stroke"),a instanceof as&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Ei(a,"value >= 0",io,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Ei(a,'"butt", "round", or "square"',io,"strokeCap"):(Bf(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Ei(a,'"miter", "bevel", or "round"',io,"strokeJoin"):(Bf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Bf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||Fe("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Bf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Je.Ze[a];typeof x=="function"?x=a:(x=Je.Ze[a.toLowerCase()])||Fe("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=Zg(a);x===null?Fe("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new md),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),u0(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=Zg(a);x===null?Fe("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new md),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),u0(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ns},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Bf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ns},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Bf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Bf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Ur},set:function(a){var y=this.geometryStretch;y!==a&&(Bf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Gd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&vh(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Gd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Gd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Gd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),io.prototype.intersectsRect=io.prototype.Yc,io.prototype.containedInRect=io.prototype.fh,io.prototype.getNearestIntersectionPoint=io.prototype.rs,io.prototype.getDocumentBounds=io.prototype.mi,io.prototype.getDocumentPoint=io.prototype.ga;var Cc=new jr,bp=new jr;io.className="Shape",io.getFigureGenerators=function(){var a=new Ji,y;for(y in Je.Ze)y!==y.toLowerCase()&&a.add(y,Je.Ze[y]);return a.freeze(),a},io.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Je.Ze;b[a]=y,b[x]=a},io.getArrowheadGeometries=function(){var a=new Ji;for(b in Je.um)if(Cc[b]===void 0){var y=Li.parse(Je.um[b],!1);Cc[b]=y,y=b.toLowerCase(),y!==b&&(Cc[y]=b)}for(var x in Cc)if(x!==x.toLowerCase()){var b=Cc[x];b instanceof Li&&a.add(x,b)}return a.freeze(),a},io.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Li.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Fe("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Cc;b[a]=x,b[y]=a};function Lg(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Ur,this.gg=this.fg=ns}Lg.prototype.copy=function(){var a=new Lg;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Is(a,y){return _e.call(this),Mg||(Uu=ss?new Dh(null).context:null,Mg=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}nn(Is,_e),Is.prototype.cloneProtected=function(a){_e.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function qh(a){a.da===null?a.da=new qg:a.da.nc&&(a.da=a.da.copy())}jt=Is.prototype,jt.th=function(){_e.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function h0(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}jt.qb=function(a){a.classType===Is?this.wrap=a:_e.prototype.qb.call(this,a)},jt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},jt.v=function(){_e.prototype.v.call(this)},jt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,tt=Vc(this),rt=a.textAlign=this.textAlign,st=y.tn;rt==="start"?rt=st?"right":"left":rt==="end"&&(rt=st?"left":"right"),st=this.isUnderline;var lt=this.isStrikethrough;Qs(this,a,this.xc,!0,!1,x,b),(st||lt)&&Qs(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ut=this.oe,dt=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var St=y.scale;switch(8>(dt*dt+ut*ut)*St*St&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Eu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,dt=this.spacingBelow,this.flip){case Eo:a.translate(E,0),a.scale(-1,1);break;case Xr:a.translate(0,z),a.scale(1,-1);break;case is:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,St=(y+tt+dt)*ut,z>St&&(b=this.verticalAlignment,b=b.y*z-b.y*St+b.offsetY),ut===1&&this.ze!==null)dt=this.Cb,dt>E&&(dt=E),this.Oj(this.ze,a,0,b+y,E,tt,dt,x,rt,st,lt);else if(this.Qc!==null&&this.Qb!==null)for(St=0;St<ut;St++){var Et=this.Qc[St];Et>E&&(Et=E),b+=y,this.Oj(this.Qb[St],a,0,b,E,tt,Et,x,rt,st,lt),b+=tt+dt}switch(this.flip){case Eo:a.scale(-1,1),a.translate(-E,0);break;case Xr:a.scale(1,-1),a.translate(0,-z);break;case is:a.scale(-1,-1),a.translate(-E,-z)}}},jt.Oj=function(a,y,x,b,E,z,tt,rt,st,lt,ut){var dt=0;if(rt)st==="left"?dt=0:st==="right"?dt=E-tt:st==="center"&&(dt=(E-tt)/2),y.fillRect(x+dt,b+.25*z,tt,1);else{if(st==="left"?dt=0:st==="right"?dt=E:st==="center"&&(dt=E/2),E=Lp!==null?Lp(this,z):.75*z,y.fillText(a,x+dt,b+E),a=z/20|0,a===0&&(a=1),st==="right"?dt-=tt:st==="center"&&(dt-=tt/2),lt){rt=$g!==null?$g(this,z):.8*z,st=x+dt,lt=b+rt,E=x+dt+tt,rt=b+rt;var St=a;y.beginPath(),y.lineWidth=St,y.moveTo(st,lt),y.lineTo(E,rt),y.stroke(),y.Se(),y instanceof Eu&&y.ad.classList.add("gojs-td")}ut&&(ut=b+z-z/2.2|0,a%2!==0&&(ut+=.5),b=x+dt,z=ut,x=x+dt+tt,tt=ut,dt=a,y.beginPath(),y.lineWidth=dt,y.moveTo(b,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Eu&&y.ad.classList.add("gojs-td"))}},jt.kk=function(a,y,x){if(!_e.prototype.kk.call(this,a,y,x))return!1;if(Qs(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)Xf(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Xf(a,y,!0);return!0},jt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:_e.prototype.nk.call(this,a)},jt.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},jt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Uu!==null&&d0!==z&&(d0=Uu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var tt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var rt=tt=0,st=!1;!st;){var lt=z.indexOf(`
`,rt);lt===-1&&(lt=z.length,st=!0),rt=z.substr(rt,lt-rt),this.formatting===of&&(rt=rt.trim()),tt=Math.max(tt,tA(rt)),rt=lt+1}z=tt}else tt=z.indexOf(`
`,0),0<=tt&&(z=z.substr(0,tt)),z=tA(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=c0(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,st=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Mp&&(y=this.Ae,y=this.overflow===Mp?A0(y):0,lt=this.spacingAbove+this.spacingBelow,lt=Math.max(0,Vc(this)+lt),st=Math.min(this.maxLines-1,Math.max(Math.floor(st/lt+.01)-1,0)),!(st+1>=this.Qb.length))){for(this.l|=16777216,lt=this.Qb[st],y=Math.max(1,a-y);tA(lt)>y&&1<lt.length;)lt=lt.substr(0,lt.length-1);lt+=tg,y=tA(lt),this.Qb[st]=lt,this.Qb=this.Qb.slice(0,st+1),this.Qc[st]=y,this.Qc=this.Qc.slice(0,st+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===tm||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(b,tt),ca(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},jt.eh=function(a,y,x,b){Ja(this,a,y,x,b)};function Jg(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Fg(a,y,x,b){var E=a.formatting===of;E&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,Vc(a)+rt);var st=a.overflow===Mp?A0(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,rt);else if(tt=y,a.wrap===bf){a.Le=1;var lt=tA(y);if(st===0||lt<=x)a.Cb=Math.max(a.Cb,lt),Jg(a,y,a.Cb),b!==null&&b.h(lt,rt);else{for(z=qf(a,tt),tt=tt.substr(z.length),y=qf(a,tt),lt=tA(z+y);0<y.length&&lt<=x;)z+=y,tt=tt.substr(y.length),y=qf(a,tt),lt=z+y,E&&(lt=lt.trim()),lt=tA(lt);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-st);tA(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=tg;var ut=tA(z);a.Cb=ut,Jg(a,z,ut),b!==null&&b.h(ut,rt)}}else{for(st=0,tt.length===0&&(st=1,Jg(a,tt,0));0<tt.length;){for(y=qf(a,tt),tt=tt.substr(y.length);tA(y)>x;){var dt=1;for(lt=tA(y.substr(0,dt)),ut=0;lt<=x;)dt++,ut=lt,lt=tA(y.substr(0,dt));if(dt===1){var St=lt;z=Math.max(z,lt)}else St=ut,z=Math.max(z,ut);if(dt--,1>dt&&(dt=1),Jg(a,y.substr(0,dt),St),st++,y=y.substr(dt),a.Gc+st>a.maxLines)break}for(ut=qf(a,tt),lt=tA(y+ut);0<ut.length&&lt<=x;)y+=ut,tt=tt.substr(ut.length),ut=qf(a,tt),lt=y+ut,E&&(lt=lt.trim()),lt=tA(lt);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(dt=lt,z=Math.max(z,lt)):(dt=ut=tA(y),z=Math.max(z,ut)),Jg(a,y,dt),st++,a.Gc+st>a.maxLines))break}a.Le=Math.min(a.maxLines,st),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,rt*a.Le)}}function qf(a,y){if(a.wrap===em)return y.substr(0,1);for(var x=y.length,b=0,E=Ip;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===Np&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function tA(a){return Uu===null?8*a.length:Uu.measureText(a).width}function Vc(a){if(a.df!==null)return a.df;var y=a.Ae;if(Uu===null){var x=16;return a.df=x}return Sd[y]!==void 0&&5e3>sf?x=Sd[y]:(x=1.3*Uu.measureText("M").width,Sd[y]=x,sf++),a.df=x}function A0(a){if(Uu===null)return 6;if(xd[a]!==void 0&&5e3>Eg)var y=xd[a];else y=Uu.measureText(tg).width,xd[a]=y,Eg++;return y}function c0(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Vc(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,tt,rt=!1;!rt;){if(tt=x.indexOf(`
`,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==bf){a.Le=0;var st=Ni.alloc();Fg(a,z,y,st),E+=st.height,Ni.free(st),a.Gc+=a.Le}else Fg(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=E}Ae.Object.defineProperties(Is.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(qh(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:ti},set:function(a){var y=this.flip;y!==a&&(qh(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:qa},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),qh(this),this.da.Yr=a,_a(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Ni.alloc();Fg(this,this.ec,999999,a);var y=a.width;Ni.free(a),a=c0(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ca(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Fp},set:function(a){var y=this.wrap;y!==a&&(qh(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Ep},set:function(a){var y=this.overflow;y!==a&&(qh(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ft(a,"TextBlock.stroke"),a instanceof as&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Vc(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(qh(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(qh(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Gd),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Gd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Gd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Gd),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Gd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(qh(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(qh(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(qh(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(qh(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:of},set:function(a){var y=this.formatting;y!==a&&(qh(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Ei(a,"> 0",Is,"maxLines"),qh(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Lp=null,$g=null,bf=new zn(Is,"None",0),tm=new zn(Is,"WrapFit",1),Fp=new zn(Is,"WrapDesiredSize",2),em=new zn(Is,"WrapBreakAll",3),Ep=new zn(Is,"OverflowClip",0),Mp=new zn(Is,"OverflowEllipsis",1),of=new zn(Is,"FormatTrim",0),Np=new zn(Is,"FormatNone",0),Ip=/[ \u200b\u00ad]/,Sd=new jr,sf=0,xd=new jr,Eg=0,tg="...",d0="",Uu=null,Mg=!1;Is.className="TextBlock";function qg(){this.nc=!1,this.Hd=null,this.Xf=ti,this.gq=of,this.Jq=1/0,this.$q=Ep,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=qa,this.$r=Fp}qg.prototype.copy=function(){var a=new qg;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Is.getEllipsis=function(){return tg},Is.setEllipsis=function(a){tg=a,xd=new jr,Eg=0},Is.getBaseline=function(){return Lp},Is.setBaseline=function(a){Lp=a},Is.getUnderline=function(){return $g},Is.setUnderline=function(a){$g=a},Is.isValidFont=function(a){if(Mg||(Uu=ss?new Dh(null).context:null,Mg=!0),Uu===null)return!0;var y=Uu.font;if(a===y||a==="10px sans-serif")return!0;Uu.font="10px sans-serif",Uu.font=a;var x=Uu.font;if(x!=="10px sans-serif")return Uu.font=y,!0;Uu.font="19px serif";var b=Uu.font;return Uu.font=a,x=Uu.font,Uu.font=y,x!==b},Is.FormatNone=Np,Is.FormatTrim=of,Is.None=bf,Is.OverflowClip=Ep,Is.OverflowEllipsis=Mp,Is.WrapBreakAll=em,Is.WrapDesiredSize=Fp,Is.WrapFit=tm;function Gd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Gd.prototype.copy=function(){var a=new Gd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Gd.className="GradElementSettings";function Bh(a,y){_e.call(this),this.Eg=null,this.qo="",this.Xg=Fs,this.Nk=ri,this.Zg=this.Hd=null,this.Mk=bo,this.Xf=ti,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var kp;nn(Bh,_e),Bh.prototype.cloneProtected=function(a){_e.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Bh.prototype.qb=function(a){a===ti||a===qi||a===mo?this.imageStretch=a:_e.prototype.qb.call(this,a)},Bh.prototype.toString=function(){return"Picture("+this.source+")#"+Xo(this)};function Tp(a){a===void 0&&(a=""),a!==""?kp[a]&&(delete kp[a],nm--):(kp=new jr,nm=0)}function My(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null)for(var rt=tt.length,st=0;st<rt;st++)z=tt[st],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Ka(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null){E=tt.length,z=tr();for(var rt=0;rt<E;rt++)z.push(tt[rt]);if(y.hn)for(rt=0;rt<E;rt++)tt=z[rt],tt.Hd!==null&&tt.Hd(tt,x);vr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Bh.prototype.hA=function(){if(this.source!==""){Tp(this.source);var a=this.source;this.source="",this.source=a}},Bh.prototype.redraw=function(){this.N(),this.Uc=!0},Bh.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Rd)){var E=a instanceof Eu;b=this.naturalBounds;var z=0,tt=0,rt=this.qn,st=rt?+x.width:x.naturalWidth;if(rt=rt?+x.height:x.naturalHeight,st===void 0&&x.videoWidth&&(st=x.videoWidth),rt===void 0&&x.videoHeight&&(rt=x.videoHeight),st=st||b.width,rt=rt||b.height,st!==0&&rt!==0){var lt=st,ut=rt;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,st=this.Xg.width,rt=this.Xg.height);var dt=st,St=rt,Et=this.Nk,Tt=this.Mk;switch(Et){case ti:if(this.sourceRect.w())break;dt>=b.width&&(z=z+Tt.offsetX+(dt*Tt.x-b.width*Tt.x)),St>=b.height&&(tt=tt+Tt.offsetY+(St*Tt.y-b.height*Tt.y)),st=Math.min(b.width,dt),rt=Math.min(b.height,St);break;case ri:dt=b.width,St=b.height;break;case qi:case mo:Et===qi?(Et=Math.min(b.height/St,b.width/dt),dt*=Et,St*=Et):Et===mo&&(Et=Math.max(b.height/St,b.width/dt),dt*=Et,St*=Et,dt>=b.width&&(z=(z+Tt.offsetX+(dt*Tt.x-b.width*Tt.x)/dt)*st),St>=b.height&&(tt=(tt+Tt.offsetY+(St*Tt.y-b.height*Tt.y)/St)*rt),st*=1/(dt/b.width),rt*=1/(St/b.height),dt=b.width,St=b.height)}Et=this.Df()*y.scale;var Ht=dt*Et*St*Et,de=st*rt/Ht,ie=x.__goCache;Et=null;var Se=ww;if(!E){if(x.sq&&ie!==void 0&&4<Ht&&de>Se*Se)for(ie.gi===null&&(Iy(ie,4,lt,ut,x),Iy(ie,16,lt,ut,x)),E=ie.gi,lt=E.length,ut=0;ut<lt&&E[ut].ratio*E[ut].ratio<de;ut++)Et=E[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Dh(null).context;try{E.drawImage(this.Eg,0,0)}catch(Le){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Le){this.vl=!0}}if(this.vl)return}}switch(E=dt<b.width?Tt.offsetX+(b.width*Tt.x-dt*Tt.x):0,Tt=St<b.height?Tt.offsetY+(b.height*Tt.y-St*Tt.y):0,this.flip){case Eo:a.translate(Math.min(b.width,dt),0),a.scale(-1,1);break;case Xr:a.translate(0,Math.min(b.height,St)),a.scale(1,-1);break;case is:a.translate(Math.min(b.width,dt),Math.min(b.height,St)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&ie!==void 0&&Et!==null&&Et.ratio!==1){a.save(),y=Et.ratio;try{a.drawImage(Et.source,z/y,tt/y,Math.min(Et.source.width,st/y),Math.min(Et.source.height,rt/y),E,Tt,Math.min(b.width,dt),Math.min(b.height,St)),a instanceof Eu&&(this.bt=[z/y,tt/y,Math.min(Et.source.width,st/y),Math.min(Et.source.height,rt/y),E,Tt,Math.min(b.width,dt),Math.min(b.height,St)])}catch(Le){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,st,rt,E,Tt,Math.min(b.width,dt),Math.min(b.height,St)),a instanceof Eu&&(this.bt=[z,tt,st,rt,E,Tt,Math.min(b.width,dt),Math.min(b.height,St)])}catch(Le){this.en=!1}switch(this.flip){case Eo:a.scale(-1,1),a.translate(-Math.min(b.width,dt),0);break;case Xr:a.scale(1,-1),a.translate(0,-Math.min(b.height,St));break;case is:a.scale(-1,-1),a.translate(-Math.min(b.width,dt),-Math.min(b.height,St))}}}}},Bh.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=nu(this,!0),tt=this.Eg,rt=this.qn,st=0,lt=0;(rt||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(st=rt?+tt.width:tt.naturalWidth,lt=rt?+tt.height:tt.naturalHeight),isFinite(E.width)||z===ri||z===lr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=st)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:st),isFinite(E.height)||z===ri||z===Cr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=lt)),b=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:lt),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ca(this.dc,a,y),this.Ge(0,0,a,y)},Bh.prototype.eh=function(a,y,x,b){Ja(this,a,y,x,b)},Ae.Object.defineProperties(Bh.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||Fe("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Rc(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new ei),b!==null&&x&&bA(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Ka(this,!1),this.v())):x&&My(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=kp;if(ss){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<nm&&(Tp(),x=kp),b=Pi("img"),b.hn=!0,My(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,nm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new Ny),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),Bh.prototype.redraw=Bh.prototype.redraw,Bh.prototype.reloadSource=Bh.prototype.hA;var nm=0,ww=4;Bh.className="Picture",kp=new jr,Bh.clearCache=Tp;function Ny(){this.gi=null}function Iy(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Dh(null),tt=z.context,rt=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new ky(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),tt.setTransform(rt*x,0,0,rt*x,0,0),tt.yc(),tt.drawImage(E,0,0),a.gi.push(y))}Ny.className="PictureCacheArray";function ky(a,y){this.source=a,this.ratio=y}ky.className="PictureCacheInstance";function Op(){this.os=new Li,this.mc=null}Op.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Li,this.mc=null};function Dp(a,y,x,b,E,z){a.mc=new pa,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Sw(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Op.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Wo(sl);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Op.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Wo(Ts);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Lf(a,y,x,b,E,z,tt){var rt;rt===void 0&&(rt=!1);var st=new Wo(kl);st.point1X=y,st.point1Y=x,st.point2X=b,st.point2Y=E,st.endX=z,st.endY=tt,rt&&st.close(),a.mc.segments.add(st)}function im(a,y,x,b,E){var z;z===void 0&&(z=!1);var tt=new Wo(Iu);tt.point1X=y,tt.point1Y=x,tt.endX=b,tt.endY=E,z&&tt.close(),a.mc.segments.add(tt)}Op.prototype.arcTo=function(a,y,x,b,E,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new Wo(Da);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=b,rt.radiusX=E,rt.radiusY=z!==0?z:E,tt&&rt.close(),this.mc.segments.add(rt)};function xw(a,y,x,b,E,z,tt,rt){var st;st===void 0&&(st=!1),y=new Wo(fh,tt,rt,y,x,b,E,z),st&&y.close(),a.mc.segments.add(y)}function Ty(a){var y=rm;return y!==null?(rm=null,y.reset(a),y):(y=new Op,y.reset(a),y)}var rm=null;Op.className="StreamGeometryContext";function Nu(a,y){var x=a.toLowerCase(),b=Je.Ze;b[a]=y,b[x]=a}Nu("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Li(Li.u),b.endX=y,b.endY=x,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),Nu("Square",function(a,y,x){a="s"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Li(Li.u),b.endX=y,b.endY=x,b.defaultStretch=qi,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),Nu("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Je.Mf[b];if(E!==void 0)return E;var z=a*Je.wg;return E=new Li().add(new pa(a,0,!0).add(new Wo(Ts,y-a,0)).add(new Wo(kl,y,a,y-z,0,y,z)).add(new Wo(Ts,y,x-a)).add(new Wo(kl,y-a,x,y,x-z,y-z,x)).add(new Wo(Ts,a,x)).add(new Wo(kl,0,x-a,z,x,0,x-z)).add(new Wo(Ts,0,a)).add(new Wo(kl,a,0,0,z,z,0).close())),1<z&&(E.spot1=new nr(0,0,z,z),E.spot2=new nr(1,1,-z,-z)),Je.Nf<Je.vm&&(Je.Mf[b]=E,Je.Nf++),E}),Nu("Border","RoundedRectangle"),Nu("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Li(Li.F),b.endX=y,b.endY=x,b.spot1=Gh,b.spot2=yu,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),Nu("Circle",function(a,y,x){a="c"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Li(Li.F),b.endX=y,b.endY=x,b.spot1=Gh,b.spot2=yu,b.defaultStretch=qi,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),Nu("TriangleRight",function(a,y,x){return new Li().add(new pa(0,0).add(new Wo(Ts,y,.5*x)).add(new Wo(Ts,0,x).close())).pm(0,.25,.5,.75)}),Nu("TriangleDown",function(a,y,x){return new Li().add(new pa(0,0).add(new Wo(Ts,y,0)).add(new Wo(Ts,.5*y,x).close())).pm(.25,0,.75,.5)}),Nu("TriangleLeft",function(a,y,x){return new Li().add(new pa(y,x).add(new Wo(Ts,0,.5*x)).add(new Wo(Ts,y,0).close())).pm(.5,.25,1,.75)}),Nu("TriangleUp",function(a,y,x){return new Li().add(new pa(y,x).add(new Wo(Ts,0,x)).add(new Wo(Ts,.5*y,0).close())).pm(.25,.5,.75,1)}),Nu("Triangle","TriangleUp"),Nu("Diamond",function(a,y,x){return new Li().add(new pa(.5*y,0).add(new Wo(Ts,0,.5*x)).add(new Wo(Ts,.5*y,x)).add(new Wo(Ts,y,.5*x).close())).pm(.25,.25,.75,.75)}),Nu("LineH",function(a,y,x){return a=new Li(Li.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Nu("LineV",function(a,y,x){return a=new Li(Li.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Nu("None","Rectangle"),Nu("BarH","Rectangle"),Nu("BarV","Rectangle"),Nu("MinusLine","LineH"),Nu("PlusLine",function(a,y,x){return new Li().add(new pa(0,x/2,!1).add(new Wo(Ts,y,x/2)).add(new Wo(sl,y/2,0)).add(new Wo(Ts,y/2,x)))}),Nu("XLine",function(a,y,x){return new Li().add(new pa(0,x,!1).add(new Wo(Ts,y,0)).add(new Wo(sl,0,0)).add(new Wo(Ts,y,x)))}),Nu("LineRight",function(a,y,x){return new Li().add(new pa(.25*y,0,!1).add(new Wo(Ts,.75*y,.5*x)).add(new Wo(Ts,.25*y,x)))}),Nu("LineDown",function(a,y,x){return new Li().add(new pa(0,.25*x,!1).add(new Wo(Ts,.5*y,.75*x)).add(new Wo(Ts,y,.25*x)))}),Nu("LineLeft",function(a,y,x){return new Li().add(new pa(.75*y,0,!1).add(new Wo(Ts,.25*y,.5*x)).add(new Wo(Ts,.75*y,x)))}),Nu("LineUp",function(a,y,x){return new Li().add(new pa(0,.75*x,!1).add(new Wo(Ts,.5*y,.25*x)).add(new Wo(Ts,y,.75*x)))}),Je.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function mv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Xa,this.ir=null,this.jr="",this.lr=ns,this.Gq="",this.Hq=Za,this.Pq=Hs,this.Kq=Qa,this.Up=null,this.Cq=127,this.zr=Ra,this.yr="gray",this.Vg=4}mv.prototype.copy=function(){var a=new mv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Sr(a,y){a===void 0||a instanceof Ze||typeof a=="string"?Ln.call(this,a):(Ln.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new re(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Mn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}nn(Sr,Ln),Sr.prototype.cloneProtected=function(a){Ln.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},jt=Sr.prototype,jt.Af=function(a){Ln.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},jt.toString=function(){var a=ur(this.constructor)+"#"+Xo(this);return this.data!==null&&(a+="("+kr(this.data)+")"),a};function Ch(a){a.P===null?a.P=new mv:a.P.nc&&(a.P=a.P.copy())}jt.th=function(){Ln.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},jt.gk=function(a,y,x,b,E,z,tt){var rt=this.diagram;rt!==null&&(a===Na&&y==="elements"?E instanceof Ln?Ns(E,function(st){_v(rt.partManager,st),kh(rt,st)}):bA(rt,E):a===tl&&y==="elements"&&(E instanceof Ln?Ns(E,function(st){Kv(rt.partManager,st,rt)}):Rc(rt,E)),rt.cb(a,y,x,b,E,z,tt))},jt.La=function(a){if(Ln.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Ln&&Ns(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Sr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Sr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Sr.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new Ji),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Sr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Sr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=tr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);vr(y)}},Sr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof qr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Yo))break t;cu(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Ln.Link),x.adornedObject=y)}if(x!==null){x.type===Ln.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Bw(this,a),y=this.adornments;y.next();)y.value.La()}},Sr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function vv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Bw(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function om(a){if(eg(a)===!1){wv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function Oy(a){if(a.G|=2097152,eg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||Uy(a,y,x),x=a.Ib;var b=Mn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Mn.free(b),wv(a,!1)}}Sr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new fo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Sr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=bo;this.locationSpot.sb()&&(z=this.locationSpot);var tt=re.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,b,E,z);a.rotate(this.Kb,tt.x,tt.y),re.free(tt)}},Sr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Sr.prototype.moveTo=function(a,y,x){a=re.allocAt(a,y),this.move(a,x),re.free(a)},Sr.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},Sr.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},Sr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ji),y.I(a)!==null)return y.I(a);var x=Ln.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Ff(a,y,x,b){b===void 0&&(b=new re),x=x.Mc()?bo:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Sr.prototype.mi=function(a){return a===void 0&&(a=new Mn),a.assign(this.actualBounds)},Sr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Dy(a){var y=re.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof io?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Ng(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=Il(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,b-=tt/2,E-=tt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}Sr.prototype.arrange=function(){if($l(this)===!1)Oy(this);else{yA(this,!1);var a=this.Ib,y=Mn.alloc();y.assign(a);var x=ng(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;Uy(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Je.B(y.width,a.width)&&Je.B(y.height,a.height)||0<=this.vw&&this.C(16),Mn.free(y),wv(this,!1)}},jt=Sr.prototype,jt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Mn.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),Mn.free(E)}!(this.G&65536)&&a.D(y)||Hy(this,b,x),x.N(),!a.w()&&!y.w()||aA(a,y)||(this instanceof Qi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},jt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&jy(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new re(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),eg(this)===!1&&$l(this)===!1&&(om(this),Oy(this)),!0};function jy(a,y,x,b,E){y===null||a instanceof Yo||(y=y.animationManager,y.zb&&Ku(y,a,new re(b,E),x))}jt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;eg(this)||$l(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}om(this)},jt.Av=function(){this.G&=-2097153,om(this)};function Uy(a,y,x){var b=Dy(a),E=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?Qy(a,y,x,E,b):Ry(a,y,x,E,b):z?Qy(a,y,x,E,b):tt&&Ry(a,y,x,E,b),a.G|=2097152,re.free(b),a.Uk()}function Qy(a,y,x,b,E){var z=y.x,tt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Yo||Ku(x,a,new re(z,tt),y),b||y.x===z&&y.y===tt||a.g("position",new re(z,tt),y.copy()))}function Ry(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function Hy(a,y,x){Sv(a,!1),a instanceof Qi&&Or(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?ng(a)?(Al(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}jt.si=function(){return!0},jt.Zc=function(){return!0},jt.ph=function(){return!1},jt.Dd=function(){return!0};function yv(a,y,x,b){y.constructor===a.constructor||_y||(_y=!0,Ar('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Ar(" Old class: "+ur(a.constructor)+", new class: "+ur(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,rt=!0,st=!0,lt=!1;a instanceof Qi&&(rt=a.isTreeLeaf,st=a.isTreeExpanded,lt=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof Qi&&(a.U=rt?a.U|4:a.U&-5,a.U=st?a.U|1:a.U&-2,a.U=lt?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Sr.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},Sr.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},Sr.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},Sr.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},Sr.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},Sr.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},Sr.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},Sr.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},Sr.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function eg(a){return(a.G&32768)!==0}function wv(a,y){a.G=y?a.G|32768:a.G&-32769}function Sv(a,y){a.G=y?a.G|65536:a.G&-65537}function ng(a){return(a.G&131072)!==0}jt=Sr.prototype,jt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function sm(a,y){a.G=y?a.G|1048576:a.G&-1048577}jt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},jt.N=function(){var a=this.diagram;a!==null&&!$l(this)&&!eg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ng(this,this.Ib))},jt.v=function(){Ln.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Qi&&this.labeledLink!==null&&_a(this.labeledLink),a.$b(!0))},jt.Vo=function(a){a||(a=this.Ah,a!==null&&Lv(a,this))},jt.Wo=function(a){a||(a=this.Ah,a!==null&&Fv(a,this))},jt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},jt.oz=function(){return xv(this,this)};function xv(a,y){var x=y.containingGroup;return x!==null?1+xv(a,x):y instanceof Qi&&(y=y.labeledLink,y!==null)?xv(a,y):0}jt.sz=function(){return zy(this,this)};function zy(a,y){var x=y.containingGroup;return x!==null||y instanceof Qi&&(x=y.labeledLink,x!==null)?zy(a,x):y}jt.Td=function(a){return a instanceof qr?Bv(this,this,a):!1};function Bv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Bv(a,b,x)?y instanceof Qi&&(y=y.labeledLink,y!==null)?Bv(a,y,x):!1:!0}jt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof qr&&sm(y,!0),y instanceof Qi){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Qi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof qr&&sm(y,!1),y instanceof Qi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Sr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Qi&&this.isLinkLabel)},Sr.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof Qi&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function Gy(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function ig(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Yo)){if(a.add(y),y instanceof Qi){if(x&&y instanceof qr)for(var tt=y.memberParts;tt.next();)ig(a,tt.value,x,b,E,z);if(E!==!1)for(tt=y.linksConnected;tt.next();){var rt=tt.value;if(!a.contains(rt)){var st=rt.fromNode,lt=rt.toNode;st=st===null||a.contains(st),lt=lt===null||a.contains(lt),(E?st&&lt:st||lt)&&ig(a,rt,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ig(a,y.value,x,b-1,E,z)}else if(y instanceof Bi)for(y=y.labelNodes;y.next();)ig(a,y.value,x,b,E,z)}}Ae.Object.defineProperties(Sr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Io:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(tl,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Na,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Ch(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&Eh(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Yo?this.type!==Ln.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:Hs},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Ch(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Qa},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Ch(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(Ch(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Za},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Ch(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,$l(this)===!1&&(om(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),jy(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Yo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Yo?this instanceof Yo&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(cu(x),x=x.copy(),x!==null&&yv(this,x,y,a))):(z!==null&&z.jm(b,a),x=g1(x.partManager,b,a),x!==null&&(cu(x),x=x.copy(),x===null||x instanceof Bi||(b=this.location.copy(),yv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){yv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Ch(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Ch(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Ch(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Bi?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Ch(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Ch(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Ch(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Xa},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ch(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Ch(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Ch(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:ns},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ch(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&Fe("Cannot make a Group a member of itself: "+this.toString()),Fe("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Fv(y,this):this instanceof qr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof qr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof qr){for(x=new ei,ig(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Qi)for(b=b.linksConnected;b.next();)jp(b.value)}if(this instanceof Qi){for(x=this.linksConnected;x.next();)jp(x.value);x=this.labeledLink,x!==null&&jp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Eh(y,-1,a))}}else Fe("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Ch(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Qi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ch(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Ch(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Ra},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ch(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Ch(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Ch(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Sr.prototype.invalidateLayout=Sr.prototype.C,Sr.prototype.findCommonContainingGroup=Sr.prototype.px,Sr.prototype.isMemberOf=Sr.prototype.Td,Sr.prototype.findTopLevelPart=Sr.prototype.sz,Sr.prototype.findSubGraphLevel=Sr.prototype.oz,Sr.prototype.ensureBounds=Sr.prototype.Va,Sr.prototype.getDocumentBounds=Sr.prototype.mi,Sr.prototype.findObject=Sr.prototype.fb,Sr.prototype.moveTo=Sr.prototype.moveTo,Sr.prototype.invalidateAdornments=Sr.prototype.Wb,Sr.prototype.clearAdornments=Sr.prototype.Ej,Sr.prototype.removeAdornment=Sr.prototype.Jf,Sr.prototype.addAdornment=Sr.prototype.bh,Sr.prototype.findAdornment=Sr.prototype.Pj,Sr.prototype.updateTargetBindings=Sr.prototype.La;var _y=!1;Sr.className="Part",Sr.LayoutNone=0,Sr.LayoutAdded=1,Sr.LayoutRemoved=2,Sr.LayoutShown=4,Sr.LayoutHidden=8,Sr.LayoutNodeSized=16,Sr.LayoutGroupLayout=32,Sr.LayoutNodeReplaced=64,Sr.LayoutStandard=127,Sr.LayoutAll=16777215;function Yo(a,y){a===void 0||a instanceof Ze||typeof a=="string"?Sr.call(this,a):(Sr.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}nn(Yo,Sr),Yo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Yo.prototype.updateRelationshipsFromData=function(){},Yo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Bi&&y instanceof io){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof io&&(E.ua=a)}}},Yo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!$l(a))},Yo.prototype.Zc=function(){return!1},Yo.prototype.gk=function(a,y,x,b,E,z,tt){if(a===Na&&y==="elements"){if(E instanceof rh)this.$a===null&&(this.$a=E);else if(E instanceof Ln){var rt=E.Nl(function(st){return st instanceof rh});rt instanceof rh&&this.$a===null&&(this.$a=rt)}}else a===tl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Ln&&this.$a.rg(b)&&(this.$a=null));Sr.prototype.gk.call(this,a,y,x,b,E,z,tt)},Yo.prototype.updateAdornments=function(){},Yo.prototype.Lj=function(){},Ae.Object.defineProperties(Yo.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Yo.className="Adornment";function Cv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=ch,this.er=um,this.Kr=this.ij=this.Nq=this.Mq=null}Cv.prototype.copy=function(){var a=new Cv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Qi(a,y){a===void 0||a instanceof Ze||typeof a=="string"?Sr.call(this,a):(Sr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new ai,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}nn(Qi,Sr),Qi.prototype.cloneProtected=function(a){Sr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},jt=Qi.prototype,jt.Af=function(a){Sr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ef(a){a.Ba===null?a.Ba=new Cv:a.Ba.nc&&(a.Ba=a.Ba.copy())}jt.th=function(){Sr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Ky(a,y){y!==null&&(a.af===null&&(a.af=new ei),a.af.add(y))}function Wy(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}jt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Wy(this,a,y,x),a!==null&&a.Sl()},jt.gk=function(a,y,x,b,E,z,tt){a===Na&&y==="elements"?this.wc=null:a===tl&&y==="elements"&&(this.wc=null),Sr.prototype.gk.call(this,a,y,x,b,E,z,tt)},jt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(eA(x.fromPort),eA(x.toPort),x.bb())}};function Vy(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(eA(x.fromPort),eA(x.toPort),x.bb())}}function eA(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||eA(y.port)}}jt.si=function(){return!0},Qi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Qi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Qi.prototype.isVisible=function(){if(!Sr.prototype.isVisible.call(this))return!1;var a=!0,y=Zh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Zh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Us){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Th&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Qi.prototype.Zb=function(a){Sr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Qi.prototype.qx=function(){var a=new ei,y=new ei;return Yy(this,this,a,y),y.iterator};function Yy(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(E?tt.fromNode===y:tt.toNode===y)&&Yy(a,E?tt.toNode:tt.fromNode,x,b):b.add(tt)})}}Qi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new eo(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},jt=Qi.prototype,jt.Mo=function(a){a===void 0&&(a=null);var y=new eo(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},jt.Sd=function(a){a===void 0&&(a=null);var y=new eo(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},jt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new ei,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new ei,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new oo(x):Io},jt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new ei,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new oo(x):Io},jt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new ei,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new oo(x):Io},jt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new eo(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},jt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new eo(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function am(a,y,x){eA(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,y,x),tt!==null&&(tt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function lm(a,y,x){eA(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=tt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):f0(y)))}function f0(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Qi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},jt=Qi.prototype,jt.Vo=function(a){Sr.prototype.Vo.call(this,a),a||(f0(this),a=this.Yk,a!==null&&i1(a,this))},jt.Wo=function(a){Sr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},jt.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,Sr.prototype.Lj.call(this)},jt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Xy(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Xy(a){a.wc===null?a.wc=new Ji:a.wc.clear(),a.qm(a,function(y,x){Zy(y,x)}),a.wc.count===0&&a.wc.add("",a)}function Zy(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Pv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=tr()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);vr(x)}}}jt.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},jt.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},jt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)sm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)sm(y,!1),y=y.pg();return x},jt.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},jt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Qi)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},jt.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new ei;return a(this,y),y},jt.uz=function(){return Jy(this,this)};function Jy(a,y){return y=y.pg(),y===null?0:1+Jy(a,y)}jt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new eo(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},jt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new ai,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new ai,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new oo(x):Io},jt.wz=function(a){a===void 0&&(a=1/0);var y=new ei;return ig(y,this,!1,a,!0),y},Qi.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new ei;x.add(this),$y(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Zh),y.Ue=!1}};function $y(a,y,x,b,E,z,tt){if(1<b)for(var rt=x?a.Mo():a.Sd();rt.next();){var st=rt.value;st.isTreeLink&&(st=st.To(a),st===null||st===a||y.contains(st)||(y.add(st),$y(st,y,x,b-1,E,z,tt)))}else qy(a,y,x,E,z,tt)}function qy(a,y,x,b,E,z){for(var tt=E===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),st={};rt.next();){var lt=rt.value;if(lt.isTreeLink&&(lt=lt.To(a),lt!==null&&lt!==a)){var ut=y.contains(lt);if(ut||y.add(lt),tt){var dt=x?lt.Oo():lt.Po();st.uv=a,dt.all(function(St){return function(Et){return Et===St.uv||!Et.isTreeExpanded}}(st))&&b.Aj(lt,E),lt.oh(),lt.Zb(!1)}lt.isTreeExpanded&&(lt.wasTreeExpanded=lt.isTreeExpanded,ut||qy(lt,y,x,b,E,z))}st={uv:st.uv}}a.isTreeExpanded=!1}Qi.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new ei;x.add(this),t1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Zh),y.Ue=!1}};function t1(a,y,x,b,E,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,st=x?a.Mo():a.Sd(),lt={};st.next();){var ut=st.value;if(ut.isTreeLink&&(rt||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!rt){ut.Zb(!0),ut.oh();var dt=x?ut.Oo():ut.Po();lt.vv=a,dt.all(function(St){return function(Et){return Et===St.vv||!Et.isTreeExpanded}}(lt))&&E.Cj(ut,z)}(2<b||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,t1(ut,y,x,b-1,E,z,tt))}lt={vv:lt.vv}}a.isTreeExpanded=!0}Ae.Object.defineProperties(Qi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:um},set:function(a){var y=this.portSpreading;y!==a&&(Ef(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Or(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:ch},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ef(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Or(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Ef(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Ef(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Ef(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var tt=z.wa(b);tt!==void 0&&z.Qx(E,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&(i1(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),_a(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Xy(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Ef(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),Qi.prototype.expandTree=Qi.prototype.expandTree,Qi.prototype.collapseTree=Qi.prototype.collapseTree,Qi.prototype.findTreeParts=Qi.prototype.wz,Qi.prototype.findTreeChildrenNodes=Qi.prototype.Ou,Qi.prototype.findTreeChildrenLinks=Qi.prototype.Qo,Qi.prototype.findTreeLevel=Qi.prototype.uz,Qi.prototype.findTreeParentChain=Qi.prototype.vz,Qi.prototype.findTreeParentNode=Qi.prototype.pg,Qi.prototype.findTreeParentLink=Qi.prototype.kh,Qi.prototype.findCommonTreeParent=Qi.prototype.gz,Qi.prototype.findTreeRoot=Qi.prototype.xz,Qi.prototype.isInTreeOf=Qi.prototype.Nz,Qi.prototype.findPort=Qi.prototype.ns,Qi.prototype.findLinksTo=Qi.prototype.kz,Qi.prototype.findLinksBetween=Qi.prototype.jz,Qi.prototype.findNodesInto=Qi.prototype.Oo,Qi.prototype.findNodesOutOf=Qi.prototype.Po,Qi.prototype.findNodesConnected=Qi.prototype.Mu,Qi.prototype.findLinksInto=Qi.prototype.Sd,Qi.prototype.findLinksOutOf=Qi.prototype.Mo,Qi.prototype.findExternalTreeLinksConnected=Qi.prototype.qx,Qi.prototype.invalidateConnectedLinks=Qi.prototype.Bd,Qi.prototype.invalidateLinkBundle=Qi.prototype.Lz;var Cw=new zn(Qi,"SpreadingNone",10),um=new zn(Qi,"SpreadingEvenly",11),bv=new zn(Qi,"SpreadingPacked",12);Qi.className="Node",Qi.SpreadingNone=Cw,Qi.SpreadingEvenly=um,Qi.SpreadingPacked=bv;function qr(a,y){a===void 0||a instanceof Ze||typeof a=="string"?Qi.call(this,a):(Qi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new ei,this.$a=null,this.Sc=new ha,this.Sc.group=this,this.gl=new ei,this.tb=this.$p=null,y&&Object.assign(this,y)}nn(qr,Qi),qr.prototype.cloneProtected=function(a){Qi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof rh});y instanceof rh?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},jt=qr.prototype,jt.Af=function(a){Qi.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Qi)x.Bd(y);else if(x instanceof Bi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},jt.gk=function(a,y,x,b,E,z,tt){if(a===Na&&y==="elements"){if(E instanceof rh)this.$a===null?this.$a=E:this.$a!==E&&Fe("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Ln){var rt=E.Nl(function(st){return st instanceof rh});rt instanceof rh&&(this.$a===null?this.$a=rt:this.$a!==rt&&Fe("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===tl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Ln&&this.$a.rg(b)&&(this.$a=null));Qi.prototype.gk.call(this,a,y,x,b,E,z,tt)},jt.Xl=function(a,y){Qi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Ln.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Ln&&(a=a.Pb()),this.tb===null&&(this.tb=new Mn),a.mi(this.tb),a instanceof io&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},jt.eh=function(a,y,x,b){this.nf=this.$a,Qi.prototype.eh.call(this,a,y,x,b)},jt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Bi||y.Va()}),Qi.prototype.Va.call(this)},jt.si=function(){if(!Qi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Qi){if(y.isVisible()&&$l(y))return!1}else if(y instanceof Bi&&y.isVisible()&&$l(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof qr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Bi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Fv(a,y){if(a.Gn.remove(y)){y instanceof qr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Bi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}jt.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Qi.prototype.Lj.call(this)},qr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=xn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},qr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=xn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},qr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},jt=qr.prototype,jt.Bd=function(a){var y=(this.U&65536)!==0;if(Qi.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(eA(x.fromPort),eA(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(eA(x.fromPort),eA(x.toPort),x.bb()))}}},jt.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new ei,b=y.iterator;b.next();){var E=b.value;if(E instanceof Qi)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},jt.iz=function(){var a=this.Rj();a.add(this);for(var y=new ei,x=a.iterator;x.next();){var b=x.value;if(b instanceof Qi)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},jt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new ei;return a(this,y),y},jt.Rj=function(){var a=new ei;return ig(a,this,!0,0,!0),a.remove(this),a},jt.Zb=function(a){Qi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},qr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();e1(this,y,a,this),a.Ue=!1}};function e1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof qr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,e1(z,y,x,b)),z instanceof Qi)z.Bd(y),x.Aj(z,b);else if(z instanceof Bi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}qr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();n1(this,y,a,this),a.Ue=!1}};function n1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof qr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,n1(z,y,x,b)),z instanceof Qi)z.Bd(y),x.Cj(z,b);else if(z instanceof Bi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}qr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=re.alloc(),Qi.prototype.move.call(this,a,y),a=new ei,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Bi&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof Qi&&E.isLinkLabel)){var tt=E.position,rt=E.location;tt.w()?(z.x=tt.x+b,z.y=tt.y+x,E.position=z):rt.w()&&(z.x=rt.x+b,z.y=rt.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Bi&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(tt=E.position,z.x=tt.x+b,z.y=tt.y+x,z.w()?E.move(z):E.bb(),Mv(E)&&E.bb());re.free(z)}},Ae.Object.defineProperties(qr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&Fe("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Ef(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Ef(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Ef(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Ef(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),qr.prototype.expandSubGraph=qr.prototype.expandSubGraph,qr.prototype.collapseSubGraph=qr.prototype.collapseSubGraph,qr.prototype.findSubGraphParts=qr.prototype.Rj,qr.prototype.findContainingGroupChain=qr.prototype.hz,qr.prototype.findExternalNodesConnected=qr.prototype.iz,qr.prototype.findExternalLinksConnected=qr.prototype.Lu,qr.prototype.ensureBounds=qr.prototype.Va,qr.className="Group";function rh(a){_e.call(this),this.yb=lu,this.ko=new Mn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}nn(rh,_e),rh.prototype.cloneProtected=function(a){_e.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},rh.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Ys(0,0,y.width,y.height,a.x,a.y)},rh.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof qr||a instanceof Yo)||Fe("Placeholder is not inside a Group or Adornment."),a instanceof qr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ca(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=re.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),re.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof io&&(tt=z.strokeWidth);var rt=z.Df(),st=z.naturalBounds,lt=(st.width+tt)*rt;tt=(st.height+tt)*rt,a.type!==Ln.Link&&(rt=z.ga(a.category==="Selection"?Za:a.locationSpot,re.alloc()),a.location=rt,re.free(rt)),isNaN(lt)||isNaN(tt)?(a=z.ga(Za,re.alloc()),lt=Mn.allocAt(a.x,a.y,0,0),lt.Ye(z.ga(Rl,a)),lt.Ye(z.ga(zu,a)),lt.Ye(z.ga(Ea,a)),ca(y,lt.width+b||0,lt.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),re.free(a),Mn.free(lt)):(ca(y,lt+b||0,tt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},rh.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},rh.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof qr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=Mn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof qr&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),Mn.free(x),b&&y instanceof qr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},rh.prototype.computeMemberBounds=function(a){if(!(this.part instanceof qr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var rt=tt.value;if(rt.isVisible()){if(rt instanceof Bi&&(!y.computesBoundsIncludingLinks||Fu(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<b&&(b=rt.top),rt.right>E&&(E=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},Ae.Object.defineProperties(rh.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new mr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),rh.className="Placeholder";function Bi(a){Sr.call(this,Ln.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=oh,this.Om=0,this.Qm=oh,this.Rm=NaN,this.qj=kv,this.po=.5,this.wd=null,this.Nb=new ai().freeze(),this.Tg=this.Mg=null,this.ml=new Mn,this.ua=new Li,this.u=this.o=this.Sf=this.Wf=null,this.su=new re,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}nn(Bi,Sr),Bi.prototype.cloneProtected=function(a){Sr.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},jt=Bi.prototype,jt.Af=function(a){Sr.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&eA(y),a=a.toPort,a!==null&&eA(a)},jt.qb=function(a){a.classType===Bi?(a.value&2)===2?this.routing=a:a===xA||a===Nf||a===Qp?this.curve=a:a===m0||a===gm||a===pm?this.adjusting=a:a!==kv&&a!==oh&&Fe("Unknown Link enum value for a Link property: "+a):Sr.prototype.qb.call(this,a)},jt.Xc=function(){this.ba===null&&(this.ba=new Vf)},jt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),$l(a)||eg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),$l(a)||eg(a)))},jt.zv=function(){return!1},jt.Av=function(){},jt.Zc=function(){return!1},Bi.prototype.computeAngle=function(a,y,x){return Bi.computeAngle(y,x)},Bi.computeAngle=function(a,y){switch(a){default:case oh:a=0;break;case v0:a=y;break;case y0:a=y+90;break;case w0:a=y-90;break;case Tv:a=y+180;break;case mm:a=Je.bp(y),90<a&&270>a&&(a-=180);break;case S0:a=Je.bp(y+90),90<a&&270>a&&(a-=180);break;case x0:a=Je.bp(y-90),90<a&&270>a&&(a-=180);break;case vm:if(a=Je.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Je.bp(a)};function jp(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Fv(x,a),a.Ah=y,y!==null&&Lv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}jt=Bi.prototype,jt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Sr.prototype.oh.call(this)},jt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},jt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function i1(a,y){a.wd===null&&(a.wd=new ei),a.wd.add(y),a.v()}jt.Vo=function(a){if(Sr.prototype.Vo.call(this,a),Ig(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,am(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||am(x,this,b)}g0(this)}},jt.Wo=function(a){if(Sr.prototype.Wo.call(this,a),Ig(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,lm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||lm(x,this,b)}p0(this)}},jt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Bi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Bi.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?Sr.prototype.move.call(this,a,!1):(a=re.allocAt(x.x+b,x.y+E),Sr.prototype.move.call(this,a,!1),re.free(a)),Mf(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Bi.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Bi.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Bi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(hl),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===xA))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===xA){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Je.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Je.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=tt[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Bi.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===xA))return this.ua.wx(.5);if(this.computeCurve()===xA&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Je.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},jt=Bi.prototype,jt.i=function(a){return this.Nb.s[a]},jt.dd=function(a,y){this.Nb.cd(a,y)},jt.L=function(a,y,x){this.Nb.cd(a,new re(y,x))},jt.Kz=function(a,y){this.Nb.Gb(a,y)},jt.m=function(a,y,x){this.Nb.Gb(a,new re(y,x))},jt.ne=function(a){this.Nb.add(a)},jt.yf=function(a,y){this.Nb.add(new re(a,y))},jt.pv=function(a){this.Nb.mb(a)},jt.Fj=function(){this.Nb.clear()};function Mf(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new ai,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new re(tt.x+y,tt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),_a(a)),b?hm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Vu(tt.animationManager,a,E),a.g("points",z,E)}}jt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},jt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x=Math.min(rt.x,x),b=Math.min(rt.y,b)}rt=tt=1/0;for(var st=y.s,lt=st.length,ut=0;ut<lt;ut++){var dt=st[ut];tt=Math.min(dt.x,tt),rt=Math.min(dt.y,rt),dt.freeze()}if(y.freeze(),lt===z){for(z=0;z<lt;z++)if(ut=E[z],dt=st[z],ut.x-x!==dt.x-tt||ut.y-b!==dt.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Vu(x.animationManager,this,y),hm(this),this.g("points",a,y)}},jt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function hm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),fm(a,!1))}jt.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},jt.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},Bi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(np||(np=new Qi,np.desiredSize=to,np.Va()),this.defaultFromPoint&&(np.location=this.defaultFromPoint,np.Va(),y=a=np)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(ip||(ip=new Qi,ip.desiredSize=to,ip.Va()),this.defaultToPoint&&(ip.location=this.defaultToPoint,ip.Va(),E=b=ip)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var rt=Up(tt),st=Up(x),lt=y===E&&y!==null,ut=this.isOrthogonal,dt=this.curve===xA;this.Wf=lt&&!ut?dt=!0:!1;var St=this.computeAdjusting()===oh||lt;if(!ut&&!lt&&rt&&st){if(rt=!1,!St&&3<=z&&(St=this.getLinkPoint(a,y,tt,!0,!1,b,E),st=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=this.adjustPoints(0,St,z-1,st))&&(St=this.getLinkPoint(a,y,tt,!0,!1,b,E),st=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,St,z-1,st)),!rt)if(this.Fj(),dt){z=this.getLinkPoint(a,y,tt,!0,!1,b,E),St=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=St.x-z.x,st=St.y-z.y,lt=this.computeCurviness(),dt=ut=0;var Et=z.x+rt/3,Tt=z.y+st/3,Ht=Et,de=Tt;Je.B(st,0)?de=0<rt?de-lt:de+lt:(ut=-rt/st,dt=Math.sqrt(lt*lt/(ut*ut+1)),0>lt&&(dt=-dt),Ht=(0>st?-1:1)*dt+Et,de=ut*(Ht-Et)+Tt),Et=z.x+2*rt/3,Tt=z.y+2*st/3;var ie=Et,Se=Tt;Je.B(st,0)?Se=0<rt?Se-lt:Se+lt:(ie=(0>st?-1:1)*dt+Et,Se=ut*(ie-Et)+Tt),this.Fj(),this.ne(z),this.yf(Ht,de),this.yf(ie,Se),this.ne(St),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,St=E,b=this.getLinkPoint(a,y,tt,!0,!1,z,St),E=this.getLinkPoint(z,St,x,!1,!1,a,y),this.hasCurviness()?(St=E.x-b.x,x=E.y-b.y,tt=this.computeCurviness(),a=b.x+St/2,y=b.y+x/2,z=a,rt=y,Je.B(x,0)?rt=0<St?rt-tt:rt+tt:(St=-St/x,z=Math.sqrt(tt*tt/(St*St+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=St*(z-a)+y),this.ne(b),this.yf(z,rt),this.ne(E)):(this.ne(b),this.ne(E),rt=Mn.alloc(),y.mi(rt),st=rt.ca(E),St.mi(rt),lt=rt.ca(b),(st||lt)&&(tt=y.ga(cm(tt),new re),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=St.ga(cm(x),new re),this.dd(1,this.getLinkPointFromPoint(z,St,x,b,!1,x))),Mn.free(rt))}else{dt=this.isAvoiding,St&&(ut&&dt||lt)&&this.Fj();var Le=lt?this.computeCurviness():0;dt=this.getLinkPoint(a,y,tt,!0,ut,b,E),Et=Ht=Tt=0,(ut||!rt||lt)&&(de=this.computeEndSegmentLength(a,y,tt,!0),Et=this.getLinkDirection(a,y,dt,tt,!0,ut,b,E),lt&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Et-=ut?90:30,0>Le&&(Et-=180)),0>Et?Et+=360:360<=Et&&(Et-=360),lt&&(de+=Math.abs(Le)*(ut?1:2)),Et===0?Tt=de:Et===90?Ht=de:Et===180?Tt=-de:Et===270?Ht=-de:(Tt=de*Math.cos(Et*Math.PI/180),Ht=de*Math.sin(Et*Math.PI/180)),tt.Mc()&&lt&&(de=y.ga(bo,re.alloc()),ie=re.allocAt(de.x+1e3*Tt,de.y+1e3*Ht),this.getLinkPointFromPoint(a,y,de,ie,!0,dt),re.free(de),re.free(ie))),de=this.getLinkPoint(b,E,x,!1,ut,a,y);var Ee=Se=ie=0;if(ut||!st||lt){var We=this.computeEndSegmentLength(b,E,x,!1);Ee=this.getLinkDirection(b,E,de,x,!1,ut,a,y),lt&&(st||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Ee+=ut?0:30,0>Le&&(Ee+=180)),0>Ee?Ee+=360:360<=Ee&&(Ee-=360),lt&&(We+=Math.abs(Le)*(ut?1:2)),Ee===0?ie=We:Ee===90?Se=We:Ee===180?ie=-We:Ee===270?Se=-We:(ie=We*Math.cos(Ee*Math.PI/180),Se=We*Math.sin(Ee*Math.PI/180)),x.Mc()&&lt&&(x=E.ga(bo,re.alloc()),tt=re.allocAt(x.x+1e3*ie,x.y+1e3*Se),this.getLinkPointFromPoint(b,E,x,tt,!1,de),re.free(x),re.free(tt))}x=dt,(ut||!rt||lt)&&(x=new re(dt.x+Tt,dt.y+Ht)),tt=de,(ut||!st||lt)&&(tt=new re(de.x+ie,de.y+Se)),!St&&!ut&&rt&&3<z&&this.adjustPoints(0,dt,z-2,tt)?this.dd(z-1,de):!St&&!ut&&st&&3<z&&this.adjustPoints(1,x,z-1,de)?this.dd(0,dt):!St&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,dt),this.dd(z-1,de)):(this.Fj(),this.ne(dt),(ut||!rt||lt)&&this.ne(x),ut&&this.addOrthoPoints(x,Et,tt,Ee,a,b),(ut||!st||lt)&&this.ne(tt),this.ne(de))}return!0};function Ev(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Bi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new re),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var tt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*E;var rt=-a.m12*E,st=-a.m21*E,lt=a.m11*E,ut=E*(a.m21*a.dy-a.m22*a.dx),dt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*tt+b.y*st+ut,b=b.x*rt+b.y*lt+dt,tt=x.x*tt+x.y*st+ut,x=x.x*rt+x.y*lt+dt}return y.Sj(E,b,tt,x,z),a!==null&&z.transform(a),z};function Am(a,y){var x=y.Zn;return x===null&&(x=new rp,x.port=y,x.node=y.part,y.Zn=x),A1(x,a)}Bi.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,rt){if(rt===void 0&&(rt=new re),x.sb()&&!Up(x))return y.ga(x,rt),rt;if(x.$c()){var st=Am(this,y);if(st!==null){if(rt.assign(st.Zo),E&&this.routing===o1){var lt=Am(this,tt);if(lt!==null&&st.Gl<lt.Gl){st=re.alloc(),lt=re.alloc();var ut=new Mn(y.ga(Za,st),y.ga(Rl,lt)),dt=this.computeSpot(!b,tt);a=this.getLinkPoint(z,tt,dt,!b,E,a,y,lt),(x.Hf(tu)||x.Hf(Hl))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(vu)||x.Hf(Ll))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),re.free(st),re.free(lt)}}return rt}}return x=y.ga(cm(x),re.alloc()),this.pointsCount>(E?6:2)?(tt=b?this.i(1):this.i(this.pointsCount-2),E&&(tt=Ev(x,tt.copy()))):(st=this.computeSpot(!b,tt),z=re.alloc(),tt=tt.ga(cm(st),z),E&&(tt=Ev(x,tt)),re.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,rt),re.free(x),rt},Bi.prototype.getLinkDirection=function(a,y,x,b,E,z,tt,rt){t:if(b.sb())var st=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(st=Am(this,y),st!==null))switch(st.Nc){case 1:st=270;break t;case 2:st=180;break t;default:case 4:st=0;break t;case 8:st=90;break t}st=y.ga(bo,re.alloc()),this.pointsCount>(z?6:2)?(rt=E?this.i(1):this.i(this.pointsCount-2),rt=z?Ev(st,rt.copy()):x):(x=re.alloc(),rt=rt.ga(bo,x),re.free(x)),x=Math.abs(rt.x-st.x)>Math.abs(rt.y-st.y)?rt.x>=st.x?0:180:rt.y>=st.y?90:270,re.free(st),st=x}return b.Mc()&&tt.Td(a)&&(st+=180,360<=st&&(st-=360)),Up(b)||(a=y.li(),a===0)||(45<=a&&135>a?st+=90:135<=a&&225>a?st+=180:225<=a&&315>a&&(st+=270),360<=st&&(st-=360)),st},Bi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Am(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Bi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=bo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ns?Pa:y)):(a=y||this.toPort,a===null?a=bo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ns?Pa:y)),a};function Up(a){return a===Pa||a.x===.5&&a.y===.5}function cm(a){return a.x===.5&&a.y===.5?a:bo}Bi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==oh&&4<this.pointsCount?this.computeMidPoint(new re):(a=y.Zn,a=a!==null?A1(a,this):null,a!==null?a.Zo:y.ga(bo))},Bi.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},Bi.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=fo.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return IA(this,y,x,E),z===void 0&&fo.free(tt),!0;if(this.Yc(a,tt)){var rt=!1;if(!this.isAtomic)for(var st=this.O.s,lt=st.length;lt--;){var ut=st[lt];if(ut.visible||ut===this.locationObject){var dt=ut.actualBounds,St=this.naturalBounds;if(!(dt.x>St.width||dt.y>St.height||0>dt.x+dt.width||0>dt.y+dt.height)){if(dt=fo.alloc(),dt.set(tt),ut instanceof Ln)rt=ut.Cf(a,y,x,b,E,dt);else if(this.path===ut){if(ut instanceof io)if(rt=a,St=b,ut.pickable===!1)rt=!1;else if(dt.multiply(ut.transform),St)t:{var Et=rt,Tt=dt;if(ut.fh(Et,Tt))rt=!0;else{if(Tt===void 0&&(Tt=ut.transform,Et.Re(ut.actualBounds))){rt=!0;break t}rt=Et.left,St=Et.right;var Ht=Et.top;Et=Et.bottom;var de=re.alloc(),ie=re.alloc(),Se=re.alloc(),Le=fo.alloc();Le.set(Tt),Le.bv(ut.transform),Le.Vj(),ie.x=St,ie.y=Ht,ie.transform(Le),de.x=rt,de.y=Ht,de.transform(Le),Tt=!1,Pf(ut,de,ie,Se)?Tt=!0:(de.x=St,de.y=Et,de.transform(Le),Pf(ut,de,ie,Se)?Tt=!0:(ie.x=rt,ie.y=Et,ie.transform(Le),Pf(ut,de,ie,Se)?Tt=!0:(de.x=rt,de.y=Ht,de.transform(Le),Pf(ut,de,ie,Se)&&(Tt=!0)))),fo.free(Le),re.free(de),re.free(ie),re.free(Se),rt=Tt}}else rt=ut.fh(rt,dt)}else rt=Ga(ut,a,b,dt);rt&&(St=ut,y!==null&&(St=y(ut)),St&&(x===null||x(St))&&E.add(St)),fo.free(dt)}}}return z===void 0&&fo.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&fo.free(tt),!1},Bi.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?xA:this.curve},Bi.prototype.computeCorner=function(){if(this.curve===xA)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Bi.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Bi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=a1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,tt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===v0||b===mm||b===Tv?a=Math.max(a,E):b===w0||b===x0||b===y0||b===S0?a=Math.max(a,tt):(y=y.ga(bo).ab(x.ga(bo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*E)+1)),this.curve===xA&&(a*=1.333)}}return a},Bi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===oh&&x.bb()}},Bi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=s1;var y=this.Sf;if(y!==null){for(var x=tr(),b=0,E=y.links,z=0;z<E.length;z++){var tt=E[z].computeSpacing();x.push(tt),b+=tt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),vr(x)}}return a},Bi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Bi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Bi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===gm)return!1;E===pm&&(E=m0)}switch(E){case gm:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(b)){E=z.x,z=z.y;var rt=tt.x-E,st=tt.y-z,lt=Math.sqrt(rt*rt+st*st);if(!Je.$(lt,0)){if(Je.$(rt,0))var ut=0>st?-Math.PI/2:Math.PI/2;else ut=Math.atan(st/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var dt=y.y;rt=b.x-tt;var St=b.y-dt;for(st=Math.sqrt(rt*rt+St*St),Je.$(rt,0)?St=0>St?-Math.PI/2:Math.PI/2:(St=Math.atan(St/Math.abs(rt)),0>rt&&(St=Math.PI-St)),lt=st/lt,ut=St-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),rt=y.x-E,st=y.y-z,y=Math.sqrt(rt*rt+st*st),Je.$(y,0)||(Je.$(rt,0)?st=0>st?-Math.PI/2:Math.PI/2:(st=Math.atan(st/Math.abs(rt)),0>rt&&(st=Math.PI-st)),rt=st+ut,y*=lt,this.L(a,tt+y*Math.cos(rt),dt+y*Math.sin(rt)));this.dd(x,b)}}return!0;case pm:if(z=this.i(a),dt=this.i(x),!z.Xa(y)||!dt.Xa(b)){E=z.x,z=z.y,tt=dt.x,dt=dt.y,lt=(tt-E)*(tt-E)+(dt-z)*(dt-z),rt=y.x,ut=y.y,st=b.x,St=b.y;var Et=1;if(st-rt!==0){var Tt=(St-ut)/(st-rt);Et=Math.sqrt(1+1/(Tt*Tt))}else Tt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Ht=y.x,de=y.y,ie=.5;lt!==0&&(ie=((E-Ht)*(E-tt)+(z-de)*(z-dt))/lt);var Se=E+ie*(tt-E),Le=z+ie*(dt-z);y=Math.sqrt((Ht-Se)*(Ht-Se)+(de-Le)*(de-Le)),de<Tt*(Ht-Se)+Le&&(y=-y),0<Tt&&(y=-y),Ht=rt+ie*(st-rt),ie=ut+ie*(St-ut),Tt!==0?(y=Ht+y/Et,this.L(a,y,ie-(y-Ht)/Tt)):this.L(a,Ht,ie+y)}this.dd(x,b)}return!0;case m0:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),tt=this.i(a+2),rt=z.x,ut=z.y,dt=rt,lt=ut,Je.B(E.y,z.y)?Je.B(z.x,tt.x)?ut=y.y:Je.B(z.y,tt.y)&&(rt=y.x):Je.B(E.x,z.x)&&(Je.B(z.y,tt.y)?rt=y.x:Je.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,rt,ut),E=this.i(x),z=this.i(x-1),tt=this.i(x-2),rt=z.x,ut=z.y,st=rt,St=ut,Je.B(E.y,z.y)?Je.B(z.x,tt.x)?ut=b.y:Je.B(z.y,tt.y)&&(rt=b.x):Je.B(E.x,z.x)&&(Je.B(z.y,tt.y)?rt=b.x:Je.B(z.x,tt.x)&&(ut=b.y)),this.L(x-1,rt,ut),Mv(this))){this.L(a+1,dt,lt),this.L(x-1,st,St),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Bi.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var tt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var rt=E.actualBounds.copy(),st=z.actualBounds.copy();if(rt.w()&&st.w()){rt.Bc(B0,B0),st.Bc(B0,B0),rt.Ye(a),st.Ye(x);var lt=re.alloc(),ut=re.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&st.right>a.x||b===90&&x.y>a.y&&st.right>a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===180?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(lt.x=a.x<st.left?this.computeMidOrthoPosition(a.x,a.y,st.left,x.y,!1):a.x<st.right&&(b===270&&a.y<st.top||b===90&&a.y>st.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):st.right,ut.x=lt.x,ut.y=x.y):b===0&&a.x<st.left&&a.y>st.top&&a.y<st.bottom&&(lt.x=a.x,lt.y=a.y<x.y?Math.min(x.y,st.top):Math.max(x.y,st.bottom),ut.y=lt.y)):(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===180&&(st.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?lt.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,st.bottom),!0):x.y>a.y&&(b===180||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,st.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>rt.top&&lt.y<rt.bottom&&(x.x>=rt.left&&x.x<=a.x||a.x<=st.right&&a.x>=x.x?(b===90||b===270)&&(lt.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?rt.top:Math.min(rt.top,st.top)):Math.max(x.y,b===0?rt.bottom:Math.max(rt.bottom,st.bottom)),ut.x=x.x,ut.y=lt.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&st.left<a.x||b===90&&x.y>a.y&&st.left<a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===0?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(lt.x=a.x>st.right?this.computeMidOrthoPosition(a.x,a.y,st.right,x.y,!1):a.x>st.left&&(b===270&&a.y<st.top||b===90&&a.y>st.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):st.left,ut.x=lt.x,ut.y=x.y):b===180&&a.x>st.right&&a.y>st.top&&a.y<st.bottom&&(lt.x=a.x,lt.y=a.y<x.y?Math.min(x.y,st.top):Math.max(x.y,st.bottom),ut.y=lt.y)):(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===0&&(st.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?lt.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,st.bottom),!0):x.y>a.y&&(b===0||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,st.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>rt.top&&lt.y<rt.bottom&&(x.x<=rt.right&&x.x>=a.x||a.x>=st.left&&a.x<=x.x?(b===90||b===270)&&(lt.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?rt.top:Math.min(rt.top,st.top)):Math.max(x.y,b===180?rt.bottom:Math.max(rt.bottom,st.bottom)),ut.x=x.x,ut.y=lt.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&st.bottom>a.y||b===0&&x.x>a.x&&st.bottom>a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===270?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(lt.y=a.y<st.top?this.computeMidOrthoPosition(a.x,a.y,x.x,st.top,!0):a.y<st.bottom&&(b===180&&a.x<st.left||b===0&&a.x>st.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):st.bottom,ut.x=x.x,ut.y=lt.y):b===90&&a.y<st.top&&a.x>st.left&&a.x<st.right&&(lt.x=a.x<x.x?Math.min(x.x,st.left):Math.max(x.x,st.right),lt.y=a.y,ut.x=lt.x)):(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===270&&(st.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?lt.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,st.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,st.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>rt.left&&lt.x<rt.right&&(x.y>=rt.top&&x.y<=a.y||a.y<=st.bottom&&a.y>=x.y?(b===0||b===180)&&(lt.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?rt.left:Math.min(rt.left,st.left)):Math.max(x.x,b===90?rt.right:Math.max(rt.right,st.right)),ut.x=lt.x,ut.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&st.top<a.y||b===0&&x.x>a.x&&st.top<a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===90?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(lt.y=a.y>st.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,st.bottom,!0):a.y>st.top&&(b===180&&a.x<st.left||b===0&&a.x>st.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):st.top,ut.x=x.x,ut.y=lt.y):b===270&&a.y>st.bottom&&a.x>st.left&&a.x<st.right&&(lt.x=a.x<x.x?Math.min(x.x,st.left):Math.max(x.x,st.right),lt.y=a.y,ut.x=lt.x)):(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===90&&(st.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?lt.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,st.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,st.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>rt.left&&lt.x<rt.right&&(x.y<=rt.bottom&&x.y>=a.y||a.y>=st.top&&a.y<=x.y?(b===0||b===180)&&(lt.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?rt.left:Math.min(rt.left,st.left)):Math.max(x.x,b===270?rt.right:Math.max(rt.right,st.right)),ut.x=lt.x,ut.y=x.y)));var dt=x;if(this.isAvoiding){var St=this.diagram;if(St===null||E===z||this.layer.isTemporary||!Rn(St)||rt.ca(dt)&&!z.Td(E)||st.ca(a)&&!E.Td(z))y=!1;else{var Et=gi(St,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Et.Yj(Math.min(a.x,lt.x),Math.min(a.y,lt.y),Math.abs(a.x-lt.x),Math.abs(a.y-lt.y))&&Et.Yj(Math.min(lt.x,ut.x),Math.min(lt.y,ut.y),Math.abs(lt.x-ut.x),Math.abs(lt.y-ut.y))&&Et.Yj(Math.min(ut.x,dt.x),Math.min(ut.y,dt.y),Math.abs(ut.x-dt.x),Math.abs(ut.y-dt.y)))y=!1;else{E=a,z=dt;var Tt=x=null;if(St.isVirtualized){St=Et.bounds.copy(),St.Bc(-Et.Ho,-Et.Go);var Ht=re.alloc();Rp(Et,a.x,a.y)||(Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,a.x,a.y,lt.x,lt.y,Ht)?(x=a=Ht.copy(),y=Ht.ab(lt)):Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,lt.x,lt.y,ut.x,ut.y,Ht)?(x=a=Ht.copy(),y=Ht.ab(ut)):Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,ut.x,ut.y,dt.x,dt.y,Ht)&&(x=a=Ht.copy(),y=Ht.ab(dt))),Rp(Et,dt.x,dt.y)||(Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,dt.x,dt.y,ut.x,ut.y,Ht)?(Tt=dt=Ht.copy(),b=ut.ab(Ht)):Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,ut.x,ut.y,lt.x,lt.y,Ht)?(Tt=dt=Ht.copy(),b=lt.ab(Ht)):Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,lt.x,lt.y,a.x,a.y,Ht)&&(Tt=dt=Ht.copy(),b=a.ab(Ht))),re.free(Ht)}rt=rt.copy().ed(st),rt.Bc(Et.Ho*Et.Os,Et.Go*Et.Os),u1(Et,a,y,dt,b,rt,!0),st=_d(Et,dt.x,dt.y),!Et.abort&&st>=Hp&&(l1(Et),rt.Bc(Et.Ho*Et.Hx,Et.Go*Et.Ix),u1(Et,a,y,dt,b,rt,!1),st=_d(Et,dt.x,dt.y)),!Et.abort&&st<Hp&&_d(Et,dt.x,dt.y)!==If?(Nv(this,Et,dt.x,dt.y,b,!0,tt),rt=this.i(2),4>this.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=dt.y):(rt.x=dt.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?Je.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):Je.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=Et.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(Je.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):Je.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=Et.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Tt!==null&&(b===0||b===180?this.yf(z.x,Tt.y):this.yf(Tt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ut.copy())),re.free(lt),re.free(ut)}},Bi.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Mv(a){if(a.diagram===null||!a.isAvoiding||!Rn(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=gi(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Nv(a,y,x,b,E,z,tt){var rt=y.Ho,st=y.Go,lt=_d(y,x,b),ut=x,dt=b;for(E===0?ut+=rt:E===90?dt+=st:E===180?ut-=rt:dt-=st,E!==tt&&lt>kg&&_d(y,ut,dt)!==lt-1&&(_d(y,x-rt,b)===lt-1?(E=180,ut=x-rt,dt=b):_d(y,x+rt,b)===lt-1?(E=0,ut=x+rt,dt=b):_d(y,x,b-st)===lt-1?(E=270,ut=x,dt=b-st):_d(y,x,b+st)===lt-1&&(E=90,ut=x,dt=b+st));lt>kg&&_d(y,ut,dt)===lt-1;)x=ut,b=dt,E===0?ut+=rt:E===90?dt+=st:E===180?ut-=rt:dt-=st,--lt;z?lt>kg&&(E===180||E===0?x=Math.floor(x/rt)*rt+rt/2:(E===90||E===270)&&(b=Math.floor(b/st)*st+st/2)):(x=Math.floor(x/rt)*rt+rt/2,b=Math.floor(b/st)*st+st/2),lt>kg&&(z=E,tt=x,ut=b,E===0?(z=90,ut+=st):E===90?(z=180,tt-=rt):E===180?(z=270,ut-=st):E===270&&(z=0,tt+=rt),_d(y,tt,ut)===lt-1?Nv(a,y,tt,ut,z,!1,z):(tt=x,ut=b,E===0?(z=270,ut-=st):E===90?(z=0,tt+=rt):E===180?(z=90,ut+=st):E===270&&(z=180,tt-=rt),_d(y,tt,ut)===lt-1&&Nv(a,y,tt,ut,z,!1,z))),a.yf(x,b)}Bi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Ps(y,a,x.x,x.y,b.x,b.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var rt=Ps(y,a,b.x,b.y,x.x,x.y);b=x,rt<E&&(z=tt,E=rt)}return z},Bi.prototype.qc=function(){this.lk=!1,this.v()},Bi.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof io&&(E.ua=this.ua)}}},Bi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Ig(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var tt=this.computeCurve();if(tt===xA&&3<=y&&!Je.$(this.smoothness,0))if(y===3){var rt=this.i(1);b=Math.min(E.x,rt.x);var st=Math.min(E.y,rt.y);rt=this.i(2),b=Math.min(b,rt.x),st=Math.min(st,rt.y)}else{if(this.isOrthogonal)for(st=0;st<y;st++)rt=b[st],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),st=this.i(b),z.x=Math.min(st.x,z.x),z.y=Math.min(st.y,z.y);b=z.x,st=z.y}else{for(st=0;st<y;st++)rt=b[st],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);b=z.x,st=z.y}if(b-=this.su.x,st-=this.su.y,E.x-=b,E.y-=st,y!==2||Ig(this)){if(a.type=Li.o,rt=Ty(a),this.computeShortLength(!0)!==0&&(E=tp(this,E,!0,z)),Dp(rt,E.x,E.y,!1),tt===xA&&3<=y&&!Je.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-st,E=this.i(2).copy(),E.x-=b,E.y-=st,this.computeShortLength(!1)!==0&&(E=tp(this,E,!1,z)),Lf(rt,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=re.allocAt(b,st),x=re.alloc(),x.assign(this.i(1)),z=re.allocAt(b,st),E=re.allocAt(b,st),tt=this.i(0);for(var lt,ut=this.smoothness/3,dt=1;dt<this.pointsCount-1;dt++){lt=this.i(dt);var St=tt,Et=lt,Tt=this.i(Iv(this,lt,dt,!1));if((!Je.$(St.x,Et.x)||!Je.$(Et.x,Tt.x))&&(!Je.$(St.y,Et.y)||!Je.$(Et.y,Tt.y))){var Ht=ut;isNaN(Ht)&&(Ht=this.smoothness/3);var de=St.x;St=St.y;var ie=Et.x;Et=Et.y;var Se=Tt.x;Tt=Tt.y;var Le=Ht*dm(de,St,ie,Et);Ht*=dm(ie,Et,Se,Tt),Je.$(St,Et)&&Je.$(ie,Se)&&(ie>de?Tt>Et?(z.x=ie-Le,z.y=Et-Le,E.x=ie+Ht,E.y=Et+Ht):(z.x=ie-Le,z.y=Et+Le,E.x=ie+Ht,E.y=Et-Ht):Tt>Et?(z.x=ie+Le,z.y=Et-Le,E.x=ie-Ht,E.y=Et+Ht):(z.x=ie+Le,z.y=Et+Le,E.x=ie-Ht,E.y=Et-Ht)),Je.$(de,ie)&&Je.$(Et,Tt)&&(Et>St?(Se>ie?(z.x=ie-Le,z.y=Et-Le,E.x=ie+Ht):(z.x=ie+Le,z.y=Et-Le,E.x=ie-Ht),E.y=Et+Ht):(Se>ie?(z.x=ie-Le,z.y=Et+Le,E.x=ie+Ht):(z.x=ie+Le,z.y=Et+Le,E.x=ie-Ht),E.y=Et-Ht)),(Je.$(de,ie)&&Je.$(ie,Se)||Je.$(St,Et)&&Je.$(Et,Tt))&&(de=.5*(de+Se),St=.5*(St+Tt),z.x=de,z.y=St,E.x=de,E.y=St),(dt===1||dt===2&&Je.$(tt.x,this.i(0).x)&&Je.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+lt.x),x.y=.5*(tt.y+lt.y)),Lf(rt,x.x-b,x.y-st,z.x-b,z.y-st,lt.x-b,lt.y-st),y.set(z),x.set(E),tt=lt}}lt=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=tp(this,ut.copy(),!1,zo)),lt=.5*(lt+ut.x),tt=.5*(tt+ut.y),Lf(rt,E.x-b,E.y-st,lt-b,tt-st,ut.x-b,ut.y-st),re.free(y),re.free(x),re.free(z),re.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=tp(this,tt.copy(),!1,zo)),Lf(rt,z.x-b,z.y-st,E.x-b,E.y-st,tt.x-b,tt.y-st);else{for(z=re.alloc(),z.assign(this.i(0)),E=re.alloc(),E.assign(z),tt=this.computeCorner(),dt=1,lt=0;dt<y;){if(dt=Iv(this,z,dt,1<dt),ut=this.i(dt),dt>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=tp(this,ut.copy(),!1,zo)),ep(this,rt,-b,-st,z,ut,x);else if(lt===0)for(dt=1;dt<y;)E.assign(z),ut=this.i(dt++),ep(this,rt,-b,-st,z,ut,x),z.assign(ut);break}if(lt=Iv(this,ut,dt+1,dt<y-3),dt=-b,de=-st,St=ut,ie=this.i(lt),Ht=x,Je.B(z.y,St.y)&&Je.B(St.x,ie.x))if(Tt=Math.min(tt,Math.abs(St.x-E.x)/2),Tt=Le=Math.min(Tt,Math.abs(ie.y-St.y)/2),Je.B(Tt,0))ep(this,rt,dt,de,z,St,Ht),z.assign(St);else{var Ee=St.x,We=St.y;Et=Ee,Se=We,St.x>z.x?Ee=St.x-Tt:Ee=St.x+Tt,ie.y>St.y?Se=St.y+Le:Se=St.y-Le,ie=re.allocAt(Ee,We),ep(this,rt,dt,de,z,ie,Ht),re.free(ie),im(rt,St.x+dt,St.y+de,Et+dt,Se+de),z.h(Et,Se)}else Je.B(z.x,St.x)&&Je.B(St.y,ie.y)?(Tt=Math.min(tt,Math.abs(St.y-E.y)/2),Tt=Le=Math.min(Tt,Math.abs(ie.x-St.x)/2),Je.B(Le,0)?(ep(this,rt,dt,de,z,St,Ht),z.assign(St)):(Ee=St.x,We=St.y,Et=Ee,Se=We,St.y>z.y?We=St.y-Tt:We=St.y+Tt,ie.x>St.x?Et=St.x+Le:Et=St.x-Le,ie=re.allocAt(Ee,We),ep(this,rt,dt,de,z,ie,Ht),re.free(ie),im(rt,St.x+dt,St.y+de,Et+dt,Se+de),z.h(Et,Se))):(ep(this,rt,dt,de,z,St,Ht),z.assign(St));E.assign(ut),dt=lt}re.free(z)}rm=rt}else rt=this.i(1).copy(),rt.x-=b,rt.y-=st,this.computeShortLength(!0)!==0&&(E=tp(this,E,!0,z)),this.computeShortLength(!1)!==0&&(rt=tp(this,rt,!1,z)),a.type=Li.j,a.startX=E.x,a.startY=E.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function dm(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Je.$(a,0)?y:Je.$(y,0)?a:Math.sqrt(a*a+y*y)))}function tp(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=dm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=dm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Iv(a,y,x,b){for(var E=a.pointsCount,z=y;Je.$(y.x,z.x)&&Je.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Je.$(y.x,z.x)&&!Je.$(y.y,z.y))return x-1;for(var tt=z;Je.$(y.x,z.x)&&Je.$(z.x,tt.x)&&(!b||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Je.$(y.y,z.y)&&Je.$(z.y,tt.y)&&(!b||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=E)return E-1;tt=a.i(x++)}return x-2}Bi.prototype.computeJumpLength=function(){return 10};function ep(a,y,x,b,E,z,tt){if(!tt&&Ig(a)){tt=a.computeJumpLength();var rt=tt/2,st=[],lt=0;if(a.isVisible()&&(lt=Pw(a,E,z,st)),0<lt){if(Je.B(E.y,z.y))if(E.x<z.x)for(var ut=0;ut<lt;){var dt=Math.max(E.x,Math.min(st[ut++]-rt,z.x-tt));y.lineTo(dt+x,z.y+b);for(var St=dt+x,Et=Math.min(dt+tt,z.x);ut<lt&&(dt=st[ut],dt<Et+tt);)ut++,Et=Math.min(dt+rt,z.x);dt=z.y-tt+b,Et+=x;var Tt=z.y+b;a.curve===Nf?Dp(y,Et,Tt,!1):Lf(y,St,dt,Et,dt,Et,Tt)}else for(--lt;0<=lt;){for(ut=Math.min(E.x,Math.max(st[lt--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+b),St=ut+x,dt=Math.max(ut-tt,z.x);0<=lt&&(ut=st[lt],ut>dt-tt);)lt--,dt=Math.max(ut-rt,z.x);ut=z.y-tt+b,dt+=x,Et=z.y+b,a.curve===Nf?Dp(y,dt,Et,!1):Lf(y,St,ut,dt,ut,dt,Et)}else if(Je.B(E.x,z.x))if(E.y<z.y)for(ut=0;ut<lt;){for(dt=Math.max(E.y,Math.min(st[ut++]-rt,z.y-tt)),y.lineTo(z.x+x,dt+b),St=dt+b,dt=Math.min(dt+tt,z.y);ut<lt&&(Et=st[ut],Et<dt+tt);)ut++,dt=Math.min(Et+rt,z.y);Et=z.x-tt+x,Tt=z.x+x,dt+=b,a.curve===Nf?Dp(y,Tt,dt,!1):Lf(y,Et,St,Et,dt,Tt,dt)}else for(--lt;0<=lt;){for(ut=Math.min(E.y,Math.max(st[lt--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+b),St=ut+b,ut=Math.max(ut-tt,z.y);0<=lt&&(dt=st[lt],dt>ut-tt);)lt--,ut=Math.max(dt-rt,z.y);dt=z.x-tt+x,Et=z.x+x,ut+=b,a.curve===Nf?Dp(y,Et,ut,!1):Lf(y,dt,St,dt,ut,Et,ut)}}}y.lineTo(z.x+x,z.y+b)}function Pw(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rt<tt;rt++){var st=z[rt];if(st instanceof Bi){if(st===a)return 0<b.length&&b.sort(function(ut,dt){return ut-dt}),b.length;if(st.isVisible()&&Ig(st)){var lt=st.routeBounds;lt.w()&&a.routeBounds.Yc(lt)&&!a.usesSamePort(st)&&(lt=st.path,lt!==null&&lt.Ed()&&bw(y,x,b,st))}}}}}return 0<b.length&&b.sort(function(ut,dt){return ut-dt}),b.length}function bw(a,y,x,b){for(var E=Je.B(a.y,y.y),z=b.pointsCount,tt=b.i(0),rt=re.alloc(),st=1;st<z;st++){var lt=b.i(st);if(st<z-1){var ut=b.i(st+1);if(tt.y===lt.y&&lt.y===ut.y){if(lt.x>tt.x&&ut.x>=lt.x||lt.x<tt.x&&ut.x<=lt.x)continue}else if(tt.x===lt.x&&lt.x===ut.x&&(lt.y>tt.y&&ut.y>=lt.y||lt.y<tt.y&&ut.y<=lt.y))continue}t:{ut=a.x;var dt=a.y,St=y.x,Et=y.y,Tt=tt.x;tt=tt.y;var Ht=lt.x,de=lt.y;if(Je.B(ut,St)){if(!Je.B(dt,Et)&&Je.B(tt,de)&&Math.min(dt,Et)<tt&&Math.max(dt,Et)>tt&&Math.min(Tt,Ht)<ut&&Math.max(Tt,Ht)>ut&&!Je.B(Tt,Ht)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(Je.B(dt,Et)&&Je.B(Tt,Ht)&&Math.min(ut,St)<Tt&&Math.max(ut,St)>Tt&&Math.min(tt,de)<dt&&Math.max(tt,de)>dt&&!Je.B(tt,de)){rt.x=Tt,rt.y=dt,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(E?x.push(rt.x):x.push(rt.y)),tt=lt}re.free(rt)}function Ig(a){return a=a.curve,a===Qp||a===Nf}function fm(a,y){(y||Ig(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Bi.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var tt=E.length,rt=0;rt<tt;rt++){var st=E[rt];st instanceof Bi&&(st===this?z=!0:z&&r1(this,st,a))}}else if(b)for(z=E.Pa.s,E=z.length,tt=0;tt<E;tt++)rt=z[tt],rt instanceof Bi&&r1(this,rt,a)}}}}};function r1(a,y,x){if(y!==null&&y.lk&&y.fd&&Ig(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Bi.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Bi.prototype.isVisible=function(){if(!Sr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},Bi.prototype.Zb=function(a){if(Sr.prototype.Zb.call(this,a),a&&fm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Bi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?m0:this.qk};function g0(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,tt=y.jb.s,rt=tt.length,st=0;st<rt;st++){var lt=tt[st];(lt.ef===y&&lt.ff===b&&lt.uf===x&&lt.vf===E||lt.ef===x&&lt.ff===E&&lt.uf===y&&lt.vf===b)&&(z===null?z=lt:(a===null&&(a=[],a.push(z)),a.push(lt)))}if(a!==null){for(z=Wy(y,x,b,E),z===null&&(z=new ym(y,b,x,E),Ky(y,z),Ky(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function p0(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Dr(y.links,a),y.Sl()))}Bi.prototype.ph=function(){return!0},Ae.Object.defineProperties(Bi.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&lm(y,this,x),p0(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.uf!==a&&am(a,this,E),g0(this),this.C(1)),this.g("fromNode",y,a),jp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&eA(x),p0(this),this.ff=a;var b=this.fromPort;b!==null&&eA(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),g0(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&lm(y,this,x),p0(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.ef!==a&&am(a,this,E),g0(this),this.C(1)),this.g("toNode",y,a),jp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&eA(x),p0(this),this.vf=a;var b=this.toPort;b!==null&&eA(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),g0(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ns},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&eA(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ei(a,">= 0",Bi,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ns},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&eA(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ei(a,">= 0",Bi,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Io:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&f0(this.fromNode),this.toNode!==null&&f0(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof io?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===xA&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Je.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var tt=this.i(z-2);z+3>=b&&(z=b-1);var rt=this.i(z-1),st=this.i(z);Je.Dl(E.x,E.y,tt.x,tt.y,rt.x,rt.y,st.x,st.y,.5,a),y=Math.min(st.x,y),x=Math.min(st.y,x),E=st}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new re)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||hm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Je.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Je.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new ai,b=0;b<a.length/2;b++)E=new re(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!Sn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new ai,b=0;b<a.length;b++)E=a[b],x.add(new re(E.x,E.y).freeze())}}else if(a instanceof ai)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Fe("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),hm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Vu(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Up(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Up(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),fm(this,y===Nf||y===Qp||a===Nf||a===Qp),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),fm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Bi.prototype.invalidateOtherJumpOvers=Bi.prototype.Xo,Bi.prototype.findClosestSegment=Bi.prototype.ez,Bi.prototype.updateRoute=Bi.prototype.vg,Bi.prototype.invalidateRoute=Bi.prototype.bb,Bi.prototype.rollbackRoute=Bi.prototype.rv,Bi.prototype.commitRoute=Bi.prototype.zf,Bi.prototype.startRoute=Bi.prototype.uh,Bi.prototype.clearPoints=Bi.prototype.Fj,Bi.prototype.removePoint=Bi.prototype.pv,Bi.prototype.addPointAt=Bi.prototype.yf,Bi.prototype.addPoint=Bi.prototype.ne,Bi.prototype.insertPointAt=Bi.prototype.m,Bi.prototype.insertPoint=Bi.prototype.Kz,Bi.prototype.setPointAt=Bi.prototype.L,Bi.prototype.setPoint=Bi.prototype.dd,Bi.prototype.getPoint=Bi.prototype.i,Bi.prototype.getOtherPort=Bi.prototype.Cz,Bi.prototype.getOtherNode=Bi.prototype.To;var np=null,ip=null,kv=new zn(Bi,"Normal",1),Lw=new zn(Bi,"Orthogonal",2),Fw=new zn(Bi,"AvoidsNodes",6),o1=new zn(Bi,"AvoidsNodesStraight",7),oh=new zn(Bi,"None",0),xA=new zn(Bi,"Bezier",9),Nf=new zn(Bi,"JumpGap",10),Qp=new zn(Bi,"JumpOver",11),m0=new zn(Bi,"End",17),gm=new zn(Bi,"Scale",18),pm=new zn(Bi,"Stretch",19),v0=new zn(Bi,"OrientAlong",21),y0=new zn(Bi,"OrientPlus90",22),w0=new zn(Bi,"OrientMinus90",23),Tv=new zn(Bi,"OrientOpposite",24),mm=new zn(Bi,"OrientUpright",25),S0=new zn(Bi,"OrientPlus90Upright",26),x0=new zn(Bi,"OrientMinus90Upright",27),vm=new zn(Bi,"OrientUpright45",28),s1=16,a1=14,B0=8;Bi.className="Link",Bi.Normal=kv,Bi.Orthogonal=Lw,Bi.AvoidsNodes=Fw,Bi.AvoidsNodesStraight=o1,Bi.None=oh,Bi.Bezier=xA,Bi.JumpGap=Nf,Bi.JumpOver=Qp,Bi.End=m0,Bi.Scale=gm,Bi.Stretch=pm,Bi.OrientAlong=v0,Bi.OrientPlus90=y0,Bi.OrientMinus90=w0,Bi.OrientOpposite=Tv,Bi.OrientUpright=mm,Bi.OrientPlus90Upright=S0,Bi.OrientMinus90Upright=x0,Bi.OrientUpright45=vm,Bi.EndSegmentStep=8,Bi.CurvinessStart=s1,Bi.SpacingMin=a1,Bi.OrthoShortCut=B0;function ym(a,y,x,b){Qo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}ym.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},ym.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},ym.className="LinkBundle";function C0(a){Qo(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}C0.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=Ov,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function Rp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function _d(a,y,x){return Rp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):Ov}function l1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=kg&&(x[b]=Ov)}C0.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===If)return!1}return!0};function Kd(a,y,x,b,E,z,tt,rt,st){if(!(y<z||y>tt||x<rt||x>st)){var lt=y|0,ut=x|0,dt=a.ac[lt][ut];if(dt>=kg&&dt<Hp)for(E?ut+=b:lt+=b,dt+=1;z<=lt&&lt<=tt&&rt<=ut&&ut<=st&&!(dt>=a.ac[lt][ut]);)a.ac[lt][ut]=dt,dt+=1,E?ut+=b:lt+=b;if(lt=E?ut:lt,E)if(0<b)for(x+=b;x<lt;x+=b)Kd(a,y,x,1,!E,z,tt,rt,st),Kd(a,y,x,-1,!E,z,tt,rt,st);else for(x+=b;x>lt;x+=b)Kd(a,y,x,1,!E,z,tt,rt,st),Kd(a,y,x,-1,!E,z,tt,rt,st);else if(0<b)for(y+=b;y<lt;y+=b)Kd(a,y,x,1,!E,z,tt,rt,st),Kd(a,y,x,-1,!E,z,tt,rt,st);else for(y+=b;y>lt;y+=b)Kd(a,y,x,1,!E,z,tt,rt,st),Kd(a,y,x,-1,!E,z,tt,rt,st)}}function wm(a,y,x,b,E,z,tt,rt,st){y|=0,x|=0;var lt=If,ut=kg;for(a.ac[y][x]=ut;lt===If&&y>z&&y<tt&&x>rt&&x<st;)ut+=1,a.ac[y][x]=ut,E?x+=b:y+=b,lt=a.ac[y][x]}function Sm(a,y,x,b,E,z,tt,rt,st){y|=0,x|=0;var lt=If,ut=Hp;for(a.ac[y][x]=ut;lt===If&&y>z&&y<tt&&x>rt&&x<st;)a.ac[y][x]=ut,E?x+=b:y+=b,lt=a.ac[y][x]}function u1(a,y,x,b,E,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,st=y.y;if(Rp(a,rt,st)){rt-=a.Nd,rt/=a.rc,st-=a.Od,st/=a.sc;var lt=b.x,ut=b.y;if(Rp(a,lt,ut))if(lt-=a.Nd,lt/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(rt-lt)&&1>=Math.abs(st-ut))a.abort=!0;else{var dt=z.x;b=z.y,y=z.x+z.width;var St=z.y+z.height;dt-=a.Nd,dt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,St-=a.Od,St/=a.sc,z=Math.max(0,Math.min(a.di,dt|0)),y=Math.min(a.di,Math.max(0,y|0)),dt=Math.max(0,Math.min(a.ei,b|0)),St=Math.min(a.ei,Math.max(0,St|0)),b=a.ac,rt|=0,st|=0,lt|=0,ut|=0;var Et=x===0||x===90?1:-1;if(x=x===90||x===270,b[rt][st]===If?(wm(a,rt,st,Et,x,z,y,dt,St),wm(a,rt,st,1,!x,z,y,dt,St),wm(a,rt,st,-1,!x,z,y,dt,St)):wm(a,rt,st,Et,x,rt,st,rt,st),b[lt][ut]===If?(Sm(a,lt,ut,E===0||E===90?1:-1,E===90||E===270,z,y,dt,St),Sm(a,lt,ut,1,!(E===90||E===270),z,y,dt,St),Sm(a,lt,ut,-1,!(E===90||E===270),z,y,dt,St)):Sm(a,lt,ut,Et,x,lt,ut,lt,ut),x=tr(),tt&&h1(a,lt,ut,E,rt,st,x))for((x[0]!==lt||x[1]!==ut)&&(x.unshift(ut),x.unshift(lt)),(x[x.length-2]!==rt||x[x.length-1]!==st)&&(x.push(rt),x.push(st)),a=kg,E=x[x.length-2],tt=x[x.length-1],b[E][tt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],tt=x[z+3],y=x[z],lt=x[z+1];y>E?E++:y<E?E--:lt>tt?tt++:lt<tt&&tt--,b[E][tt]=a++,E!==y||tt!==lt;);else Kd(a,rt,st,1,!1,z,y,dt,St),Kd(a,rt,st,-1,!1,z,y,dt,St),Kd(a,rt,st,1,!0,z,y,dt,St),Kd(a,rt,st,-1,!0,z,y,dt,St);vr(x)}}}}function h1(a,y,x,b,E,z,tt){for(var rt=a.ac,st=y,lt=x;;){if(st===E&&lt===z)return!0;var ut=st,dt=lt;if(b===0)if(ut<E)ut++;else break;else if(b===90)if(dt<z)dt++;else break;else if(b===180)if(ut>E)ut--;else break;else if(dt>z)dt--;else break;var St=rt[ut][dt];if(St===0||St===Dv)break;st=ut,lt=dt}for(;;){if(ut=b,dt=st,St=lt,b===0?St<z?(ut=90,St++):St>z&&(ut=270,St--):b===90?dt<E?(ut=0,dt++):dt>E&&(ut=180,dt--):b===180?St<z?(ut=90,St++):St>z&&(ut=270,St--):dt<E?(ut=0,dt++):dt>E&&(ut=180,dt--),dt=rt[dt][St],ut!==b&&dt!==0&&dt!==Dv){if(tt.push(st),tt.push(lt),h1(a,st,lt,ut,E,z,tt))return!0;tt.pop(),tt.pop()}if(rt[st][lt]=Dv,b===0){if(st===y)return!1;st--}else if(b===90){if(lt===x)return!1;lt--}else if(b===180){if(st===y)return!1;st++}else{if(lt===x)return!1;lt++}}}Ae.Object.defineProperties(C0.prototype,{bounds:{get:function(){return new Mn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var If=0,kg=1,Hp=999999,Ov=Hp+1,Dv=Hp+2;C0.className="PositionArray";function rp(){Qo(this),this.port=this.node=null,this.pe=[],this.ap=!1}rp.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
`+b.toString())}return y};function Ew(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}rp.prototype.Sl=function(){this.pe.length=0};function A1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof qr?E:null;if(z===null||z.isSubGraphExpanded)var tt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,tt=b.Lu()}z=a.pe.length=0;var rt=a.port.ga(Za,re.alloc()),st=a.port.ga(Rl,re.alloc());for(E=Mn.allocAt(rt.x,rt.y,0,0),E.Ye(st),re.free(rt),re.free(st),rt=re.allocAt(E.x+E.width/2,E.y+E.height/2),st=a.port.li(),tt=tt.iterator;tt.next();){var lt=tt.value;if(lt.isVisible()&&lt.fromPort!==lt.toPort){var ut=lt.fromPort===a.port||lt.fromNode!==null&&lt.fromNode.Td(b),dt=lt.computeSpot(ut,a.port);if(dt.$c()&&(ut=ut?lt.toPort:lt.fromPort,ut!==null)){var St=ut.part;if(St!==null){var Et=St.findVisibleNode();Et!==null&&Et!==St&&(St=Et,ut=St.port),ut=lt.computeOtherPoint(St,ut),St=rt.ab(ut),St-=st,0>St?St+=360:360<=St&&(St-=360),dt=Ew(E,dt,St,lt.isOrthogonal),dt===0?(dt=4,180<St&&(St-=360)):dt===90?(dt=8,270<St&&(St-=360)):dt===180?dt=2:(dt=1,90>St&&(St+=360)),Et=a.pe[z],Et===void 0?(Et=new jv(lt,St,dt),a.pe[z]=Et):(Et.link=lt,Et.angle=St,Et.Nc=dt),Et.hv.set(ut),z++}}}}for(re.free(rt),a.pe.sort(rp.prototype.j),st=a.pe.length,b=-1,z=rt=0;z<st;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==b&&(b=tt.Nc,rt=0),tt.Uo=rt,rt++);for(b=-1,rt=0,z=st-1;0<=z;z--)st=a.pe[z],st!==void 0&&(st.Nc!==b&&(b=st.Nc,rt=st.Uo+1),st.Gl=rt);if(z=a.pe,dt=a.port,b=a.node.portSpreading,rt=re.alloc(),st=re.alloc(),tt=re.alloc(),lt=re.alloc(),dt.ga(Za,rt),dt.ga(zu,st),dt.ga(Rl,tt),dt.ga(Ea,lt),Et=St=ut=dt=0,b===bv)for(var Tt=0;Tt<z.length;Tt++){var Ht=z[Tt];if(Ht!==null){var de=Ht.link.computeThickness();switch(Ht.Nc){case 8:St+=de;break;case 2:Et+=de;break;case 1:dt+=de;break;default:case 4:ut+=de}}}var ie=Tt=0,Se=1,Le=Ht=0;for(de=0;de<z.length;de++){var Ee=z[de];if(Ee!==null){if(Tt!==Ee.Nc){switch(Tt=Ee.Nc,Tt){case 8:var We=tt;ie=lt;break;case 2:We=lt,ie=rt;break;case 1:We=rt,ie=st;break;default:case 4:We=st,ie=tt}switch(Ht=ie.x-We.x,Le=ie.y-We.y,Tt){case 8:St>Math.abs(Ht)?(Se=Math.abs(Ht)/St,St=Math.abs(Ht)):Se=1;break;case 2:Et>Math.abs(Le)?(Se=Math.abs(Le)/Et,Et=Math.abs(Le)):Se=1;break;case 1:dt>Math.abs(Ht)?(Se=Math.abs(Ht)/dt,dt=Math.abs(Ht)):Se=1;break;default:case 4:ut>Math.abs(Le)?(Se=Math.abs(Le)/ut,ut=Math.abs(Le)):Se=1}ie=0}var dn=Ee.Zo;if(b===bv){switch(Ee=Ee.link.computeThickness(),Ee*=Se,dn.set(We),Tt){case 8:dn.x=We.x+Ht/2+St/2-ie-Ee/2;break;case 2:dn.y=We.y+Le/2+Et/2-ie-Ee/2;break;case 1:dn.x=We.x+Ht/2-dt/2+ie+Ee/2;break;default:case 4:dn.y=We.y+Le/2-ut/2+ie+Ee/2}ie+=Ee}else{var Di=.5;b===um&&(Di=(Ee.Uo+1)/(Ee.Gl+1)),dn.x=We.x+Ht*Di,dn.y=We.y+Le*Di}}}for(re.free(rt),re.free(st),re.free(tt),re.free(lt),We=a.pe,z=0;z<We.length;z++)b=We[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Mn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}rp.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},rp.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Pa,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},rp.className="Knot";function jv(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new re,this.Gl=this.Uo=0,this.Zo=new re,this.Ju=0}jv.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},jv.className="LinkInfo";function ha(a){Qo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new re(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}ha.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},ha.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ha.prototype.qb=function(){},ha.prototype.toString=function(){var a=ur(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},ha.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},ha.prototype.createNetwork=function(){return new Rs(this)},ha.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof on?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof qr?y.lg(a.memberParts):y.lg(a.iterator),y},ha.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},ha.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},ha.prototype.doLayout=function(a){var y=new ei;a instanceof on?(rg(this,y,a.nodes,!0,this.rh,!0,!1,!0),rg(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof qr?rg(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},ha.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var rt=a.value;P0(rt);var st=rt.measuredBounds,lt=st.width;st=st.height,rt.moveTo(b,E),rt instanceof qr&&(rt.rh=!1),b+=Math.max(lt,50)+20,tt=Math.max(tt,Math.max(st,50)),z>=y-1?(z=0,b=x,E+=tt+20,tt=0):z++}},ha.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof Bi)&&(P0(rt),this.rh(rt))){var st=rt.measuredBounds,lt=st.width;st=st.height,rt.moveTo(x,b),rt instanceof qr&&(rt.rh=!1),x+=Math.max(lt,50)+20,z=Math.max(z,Math.max(st,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},ha.prototype.rh=function(a){return!!(!a.location.w()||a instanceof qr&&a.rh)};function rg(a,y,x,b,E,z,tt,rt){for(x=x.iterator;x.next();){var st=x.value;b&&!st.isTopLevel||E!==null&&!E(st)||!st.canLayout()||(z&&st instanceof Qi?st.isLinkLabel||(st instanceof qr&&st.layout===null?rg(a,y,st.memberParts,!1,E,z,tt,rt):(P0(st),y.add(st))):tt&&st instanceof Bi?y.add(st):!rt||!st.Zc()||st instanceof Qi||(P0(st),y.add(st)))}}function P0(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}ha.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Mn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},ha.prototype.ex=function(a){var y=new ei;return a instanceof on?(rg(this,y,a.nodes,!0,null,!0,!0,!0),rg(this,y,a.links,!0,null,!0,!0,!0),rg(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof qr?rg(this,y,a.memberParts,!1,null,!0,!0,!0):rg(this,y,a.iterator,!1,null,!0,!0,!0),y},ha.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Za),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Ae.Object.defineProperties(ha.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),ha.prototype.collectParts=ha.prototype.ex,ha.prototype.getLayoutBounds=ha.prototype.ni,ha.prototype.invalidateLayout=ha.prototype.C,ha.className="Layout";function Rs(a){Qo(this),this.Sc=a,this.wf=new ei,this.ye=new ei,this.Es=new Ji,this.zs=new Ji}Rs.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new ei,this.ye=new ei,this.Es=new Ji,this.zs=new Ji},Rs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
`+x.value.toString(a-1)}return y},Rs.prototype.createVertex=function(){return new Cl(this)},Rs.prototype.createEdge=function(){return new nA(this)},Rs.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(tt){if(tt instanceof Qi)return!tt.isLinkLabel;if(tt instanceof Bi){var rt=tt.fromNode;return rt===null||rt.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Qi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof qr&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Bi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},Rs.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},jt=Rs.prototype,jt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},jt.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},jt.Iu=function(a){if(a!==null&&c1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function c1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}jt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},jt.ki=function(a){return a===null?null:this.Es.I(a)},jt.Bo=function(a){if(a!==null){Uv(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function Uv(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}jt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},jt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),Qv(this,a)}};function Qv(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}jt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},jt.Lo=function(a){return a===null?null:this.zs.I(a)},jt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},jt.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},jt.Ko=function(){for(var a=tr(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);vr(a)},Rs.prototype.deleteArtificialVertexes=function(){for(var a=tr(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=tr(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);vr(a),vr(y)};function Mw(a){for(var y=tr(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);vr(y)}Rs.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Mw(this),this.Ko()),a=new ai;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),Rv(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function Rv(a,y,x){if(x!==null&&x.network!==y){c1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(Qv(a,E),Uv(y,E),Rv(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(Qv(a,x),Uv(y,x),Rv(a,y,x.toVertex))}}Rs.prototype.dz=function(){for(var a=new ei,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},Ae.Object.defineProperties(Rs.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Rs.prototype.findAllParts=Rs.prototype.dz,Rs.prototype.splitIntoSubNetworks=Rs.prototype.Zx,Rs.prototype.deleteSelfEdges=Rs.prototype.Ko,Rs.prototype.reverseEdge=Rs.prototype.gm,Rs.prototype.linkVertexes=Rs.prototype.Zj,Rs.prototype.findEdge=Rs.prototype.Lo,Rs.prototype.deleteLink=Rs.prototype.Yy,Rs.prototype.deleteEdge=Rs.prototype.Mj,Rs.prototype.addLink=Rs.prototype.Dy,Rs.prototype.addEdge=Rs.prototype.Bo,Rs.prototype.findVertex=Rs.prototype.ki,Rs.prototype.deleteNode=Rs.prototype.Zy,Rs.prototype.deleteVertex=Rs.prototype.Iu,Rs.prototype.addNode=Rs.prototype.Bl,Rs.prototype.addVertex=Rs.prototype.dh,Rs.prototype.addParts=Rs.prototype.lg,Rs.className="LayoutNetwork";function Cl(a){Qo(this),this.ob=a,this.j=new Mn(0,0,10,10).freeze(),this.o=new re(5,5).freeze(),this.Sh=this.ub=null,this.tg=new ai,this.mg=new ai}Cl.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new ai,this.mg=new ai},Cl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Xo(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},Cl.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Sn(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof qr)){x=Mn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(bo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),Mn.free(x);return}Mn.free(x)}a.moveTo(y.x,y.y)}},Cl.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Cl.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Cl.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Cl.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function Hv(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}Ae.Object.defineProperties(Cl.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=Mn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),Mn.free(x),!(a instanceof qr)&&(a=a.locationObject.ga(bo),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new ei,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new ei,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new ei,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new ai,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Cl.prototype.deleteDestinationEdge=Cl.prototype.Jl,Cl.prototype.addDestinationEdge=Cl.prototype.zl,Cl.prototype.deleteSourceEdge=Cl.prototype.Kl,Cl.prototype.addSourceEdge=Cl.prototype.Cl,Cl.className="LayoutVertex",Cl.standardComparer=Hv,Cl.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function nA(a){Qo(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}nA.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},nA.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Xo(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},nA.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},nA.prototype.commit=function(){},nA.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Ae.Object.defineProperties(nA.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),nA.prototype.getOtherVertex=nA.prototype.Ax,nA.className="LayoutEdge";function iu(a){ha.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ni(NaN,NaN).freeze(),this.tf=new Ni(10,10).freeze(),this.Jb=b0,this.Rb=Bm,this.nd=L0,this.hd=d1,a&&Object.assign(this,a)}nn(iu,ha),iu.prototype.cloneProtected=function(a){ha.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},iu.prototype.qb=function(a){a.classType===iu?a===L0||a===Pm||a===zv||a===Cm?this.sorting=a:a===Bm||a===Yc?this.arrangement=a:a===b0||a===xm?this.alignment=a:Fe("Unknown enum value: "+a):ha.prototype.qb.call(this,a)},iu.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof qr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case Cm:E.reverse();break;case L0:E.sort(this.comparer);break;case Pm:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case xm:var rt=y,st=x,lt=Mn.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var dt=ut=0;dt<E.length;dt++){var St=this.ni(E[dt],lt);ut=Math.max(ut,St.width)}if(ut=Math.max(ut+rt,1),dt=Math.max(this.cellSize.height,1),!isFinite(dt))for(St=dt=0;St<E.length;St++){var Et=this.ni(E[St],lt);dt=Math.max(dt,Et.height)}dt=Math.max(dt+st,1),St=this.arrangement;for(var Tt=Et=this.arrangementOrigin.x,Ht=this.arrangementOrigin.y,de=0,ie=0,Se=0;Se<E.length;Se++){var Le=E[Se],Ee=this.ni(Le,lt),We=Math.ceil((Ee.width+rt)/ut)*ut,dn=Math.ceil((Ee.height+st)/dt)*dt;switch(St){case Yc:var Di=Math.abs(Tt-Ee.width);break;default:Di=Tt+Ee.width}switch((0<z&&de>z-1||0<tt&&0<de&&Di-Et>tt)&&(b.push(new Mn(0,Ht,tt+rt,ie)),de=0,Tt=Et,Ht+=ie,ie=0),ie=Math.max(ie,dn),St){case Yc:Ee=-Ee.width;break;default:Ee=0}switch(Le.moveTo(Tt+Ee,Ht),St){case Yc:Tt-=We;break;default:Tt+=We}de++}b.push(new Mn(0,Ht,tt+rt,ie)),Mn.free(lt);break;case b0:for(st=tt,ut=z,dt=y,St=x,tt=Mn.alloc(),Et=Math.max(this.cellSize.width,1),z=Ht=lt=0,rt=re.alloc(),Tt=0;Tt<E.length;Tt++)ie=E[Tt],de=this.ni(ie,tt),ie=Ff(ie,ie.locationObject,ie.locationSpot,rt),lt=Math.max(lt,ie.x),Ht=Math.max(Ht,de.width-ie.x),z=Math.max(z,ie.y);switch(Tt=this.arrangement,Tt){case Yc:lt+=dt;break;default:Ht+=dt}Et=isFinite(Et)?Math.max(Et+dt,1):Math.max(lt+Ht,1);var er=ie=this.arrangementOrigin.x;for(Se=this.arrangementOrigin.y,Ht=0,st>=lt&&(st-=lt),lt=Le=0,We=Math.max(this.cellSize.height,1),Ee=z=0,dn=!0,de=re.alloc(),Di=0;Di<E.length;Di++){var Ki=E[Di],xi=this.ni(Ki,tt),ni=Ff(Ki,Ki.locationObject,Ki.locationSpot,rt);if(0<Ht)switch(Tt){case Yc:er=(er-ie-(xi.width-ni.x))/Et,er=Je.$(Math.round(er),er)?Math.round(er):Math.floor(er),er=er*Et+ie;break;default:er=(er-ie+ni.x)/Et,er=Je.$(Math.round(er),er)?Math.round(er):Math.ceil(er),er=er*Et+ie}else switch(Tt){case Yc:Le=er+ni.x+xi.width;break;default:Le=er-ni.x}switch(Tt){case Yc:var Jr=-(er+ni.x)+Le;break;default:Jr=er+xi.width-ni.x-Le}if(0<ut&&Ht>ut-1||0<st&&0<Ht&&Jr>st){for(b.push(new Mn(0,dn?Se-z:Se,st+dt,Ee+z+St)),er=0;er<Ht&&Di!==Ht;er++){Jr=E[Di-Ht+er];var Qr=Ff(Jr,Jr.locationObject,Jr.locationSpot,de);Jr.moveTo(Jr.position.x,Jr.position.y+z-Qr.y)}Ee+=St,Se=dn?Se+Ee:Se+(Ee+z),Ht=Ee=z=0,er=ie,dn=!1}switch(er===ie&&(lt=Tt===Yc?Math.max(lt,xi.width-ni.x):Math.min(lt,-ni.x)),z=Math.max(z,ni.y),Ee=Math.max(Ee,xi.height-ni.y),isFinite(We)&&(Ee=Math.max(Ee,Math.max(xi.height,We)-ni.y)),dn?Ki.moveTo(er-ni.x,Se-ni.y):Ki.moveTo(er-ni.x,Se),Tt){case Yc:er-=ni.x+dt;break;default:er+=xi.width-ni.x+dt}Ht++}if(b.push(new Mn(0,Se,st+dt,(dn?Ee:Ee+z)+St)),E.length!==Ht)for(st=0;st<Ht;st++)ut=E[E.length-Ht+st],dt=Ff(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-dt.y);if(re.free(rt),re.free(de),Tt===Yc)for(E=0;E<b.length;E++)z=b[E],z.width+=lt,z.x-=lt;else for(E=0;E<b.length;E++)z=b[E],z.x>lt&&(z.width+=z.x-lt,z.x=lt);Mn.free(tt)}for(rt=z=tt=E=0;rt<b.length;rt++)st=b[rt],E=Math.min(E,st.x),tt=Math.min(tt,st.y),z=Math.max(z,st.x+st.width);this.arrangement===Yc?this.commitLayers(b,new re(E+y/2-(z+E),tt-x/2)):this.commitLayers(b,new re(E-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},iu.prototype.commitLayers=function(){};function d1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Ae.Object.defineProperties(iu.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==b0&&a!==xm||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Bm&&a!==Yc||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==zv&&a!==Cm&&a!==L0&&a!==Pm||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var xm=new zn(iu,"Position",0),b0=new zn(iu,"Location",1),Bm=new zn(iu,"LeftToRight",2),Yc=new zn(iu,"RightToLeft",3),zv=new zn(iu,"Forward",4),Cm=new zn(iu,"Reverse",5),L0=new zn(iu,"Ascending",6),Pm=new zn(iu,"Descending",7);iu.className="GridLayout",iu.standardComparer=d1,iu.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},iu.Position=xm,iu.Location=b0,iu.LeftToRight=Bm,iu.RightToLeft=Yc,iu.Forward=zv,iu.Reverse=Cm,iu.Ascending=L0,iu.Descending=Pm;function ys(){this.On=new ei,this.Dn=new ei,this.Pa=new ei,this.cf=new Ji,this.bf=new Ji,this.aj=new Ji,this.H=null,this.tp=!1}jt=ys.prototype,jt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},jt.Xe=function(a){this.H=a},jt.oi=function(a){if(a instanceof Qi){if(this.On.add(a),a instanceof qr){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof Bi?this.Dn.add(a):a instanceof Yo||this.Pa.add(a);y=a.data,y===null||a instanceof Yo||(a instanceof Bi?this.bf.add(y,a):this.cf.add(y,a))},jt.pc=function(a){if(a.Ej(),a instanceof Qi){if(this.On.remove(a),a instanceof qr){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof Bi?this.Dn.remove(a):a instanceof Yo||this.Pa.remove(a);y=a.data,y===null||a instanceof Yo||(a instanceof Bi?this.bf.remove(y):this.cf.remove(y))},jt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof qr)&&Fe('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof qr||Fe('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Bi||Fe('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=tr(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=tr(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=tr(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);vr(y),vr(x),vr(a)}},ys.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ys.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&f1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&_A(this.diagram,!1)};function f1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=g1(a,y,b);if(E!==null&&(cu(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}ys.prototype.insertLink=function(){return null},ys.prototype.resolveReferencesForData=function(){},ys.prototype.Ro=function(a){return this.H.model.Ro(a)};function g1(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(v1||(v1=!0,Ar('No Group template found for category "'+x+'"'),Ar(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(m1||(m1=!0,Ar('No Node template found for category "'+x+'"'),Ar(" Using default node template")),y=a.ny))),y}ys.prototype.getLinkCategoryForData=function(){return""},ys.prototype.setLinkCategoryForData=function(){},ys.prototype.setFromNodeForLink=function(){},ys.prototype.setToNodeForLink=function(){},ys.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(y1||(y1=!0,Ar('No Link template found for category "'+a+'"'),Ar(" Using default link template")),x=y.my)),x},ys.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ys.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},ys.prototype.ip=function(a){a=this.Lc(a),a!==null&&(mA(this.diagram,a,!1),this.unresolveReferencesForPart(a))},ys.prototype.unresolveReferencesForPart=function(){},ys.prototype.removeDataForLink=function(){},ys.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},ys.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Qi?a:null)},ys.prototype.findLinkForKey=function(){return null},jt=ys.prototype,jt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},jt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Qi?a:null)},jt.Kc=function(a){return a===null?null:this.bf.I(a)},jt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new ei;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(Sn(tt)&&Gv(this,E,tt)){y.add(b);break}}}return y.iterator},jt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new ei;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(Sn(tt)&&Gv(this,E,tt)){y.add(b);break}}}return y.iterator};function Gv(a,y,x){for(var b in x){var E=y[b],z=x[b];if($n(z)){if(!$n(E)||E.length<z.length)return!1;for(var tt=0;tt<E.length;tt++){var rt=z[tt];if(rt!==void 0&&!p1(a,E[tt],rt))return!1}}else if(!p1(a,E,z))return!1}return!0}function p1(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(Sn(y)&&Sn(x)){if(!Gv(a,y,x))return!1}else if(y!==x)return!1;return!0}ys.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===qs){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Na){var tt=a.newValue;b==="nodeDataArray"&&Sn(tt)&&f1(this,tt),y.isModified=!0}else if(x===tl){var rt=a.oldValue;b==="nodeDataArray"&&Sn(rt)&&this.ip(rt),y.isModified=!0}else x===gu&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===qs){var st=a.propertyName,lt=a.object;lt===y.model?(st==="nodeKeyProperty"||st==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(lt,st),y.isModified=!0}else if(x===Na||x===tl){var ut=a.change===Na,dt=ut?a.newParam:a.oldParam,St=ut?a.newValue:a.oldValue,Et=this.aj.I(a.object);if(Array.isArray(Et))for(a=0;a<Et.length;a++){var Tt=Et[a];if(ut)au(Tt,St,dt,!0);else if(!(0>dt)){var Ht=dt+Hd(Tt);Tt.pc(Ht,!0),Wg(Tt,Ht,dt)}}y.isModified=!0}}finally{y.aa=!0}}}}},ys.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},ys.prototype.rp=function(){for(var a=this.H.model,y=new ei,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),E.forEach(function(tt){F1(a,tt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&L1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},ys.prototype.refreshDataBoundLinks=function(){},ys.prototype.updateRelationshipsFromData=function(){},ys.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var tt=E[z].sx(a);tt!==null&&(x===null&&(x=tr()),x.push(tt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);vr(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function _v(a,y){var x=y.Hh;if($n(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function Kv(a,y,x){Ns(y,function(tt){tt=tt.O.s;for(var rt=tt.length,st=0;st<rt;st++)Rc(x,tt[st])});var b=y.Hh;if($n(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}ys.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Ji;if($n(a))for(var E=0;E<a.length;E++)bm(this,a[E],y,b,x);else for(a=a.iterator;a.next();)bm(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new ei;for(var z=new Ji,tt=b.iterator;tt.next();){var rt=tt.value;if(rt instanceof Bi)a||rt.fromNode!==null&&rt.toNode!==null||E.add(rt);else if(rt instanceof Qi&&rt.data!==null&&x.Tl()){var st=rt;rt=tt.key;var lt=rt.pg();lt!==null&&(lt=b.I(lt),lt!==null?(x.qe(st.data,x.wa(lt.data)),st=y.Kc(st.data),rt=rt.kh(),rt!==null&&st!==null&&z.add(rt,st)):x.qe(st.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new Ji;b.each(function(dt){dt.key.data!==null&&ut.add(dt.key.data,dt.value.data)}),x(ut,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function bm(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Sr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Qi){for(var tt=y.linksConnected;tt.next();){var rt=tt.value;if(rt.fromNode===y){var st=b.I(rt);st!==null&&(st.fromNode=z)}rt.toNode===y&&(rt=b.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof qr&&z instanceof qr)for(y=y.memberParts;y.next();)tt=bm(a,y.value,x,b,E),tt instanceof Bi||tt===null||(tt.containingGroup=z)}else if(y instanceof Bi&&z instanceof Bi)for(tt=y.fromNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=bm(a,y.value,x,b,E),tt!==null&&tt instanceof Qi&&(tt.labeledLink=z);return z}ys.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Bi||(b=E.copyNodeData(b),Sn(b)&&(E.xf(b),x=y.Lc(b)))}else cu(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Bi||(E=y.copyNodeData(b)),Sn(E)&&(x.data=E)));return x},Ae.Object.defineProperties(ys.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),ys.prototype.updateAllRelationshipsFromData=ys.prototype.rp,ys.prototype.findLinksByExample=ys.prototype.ls,ys.prototype.findNodesByExample=ys.prototype.ms,ys.prototype.findLinkForData=ys.prototype.Kc,ys.prototype.findNodeForData=ys.prototype.ii,ys.prototype.findPartForData=ys.prototype.Lc,ys.prototype.findNodeForKey=ys.prototype.Vb,ys.prototype.removeModeledPart=ys.prototype.ip,ys.prototype.removeModeledParts=ys.prototype.Gs,ys.prototype.rebuildParts=ys.prototype.Wd;var m1=!1,v1=!1,y1=!1;ys.className="PartManager";function Kl(a){ys.apply(this,arguments)}nn(Kl,ys),Kl.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),w1(this,a.linkDataArray)},Kl.prototype.addModeledParts=function(a){for(ys.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)jp(a.value);_A(this.diagram,!1)};function w1(a,y){y.forEach(function(x){S1(a,x)}),_A(a.diagram,!1)}function S1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){cu(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=Mm(x,y,!0);z!==""&&(E.fromPortId=z),z=BA(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Qi&&(E.fromNode=z)),z=Mm(x,y,!1),z!==""&&(E.toPortId=z),z=BA(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Qi&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}Kl.prototype.removeAllModeledParts=function(){var a=this.diagram.model;x1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function x1(a,y){y.forEach(function(x){a.ip(x)})}Kl.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Kl.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Kl.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Kl.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Kl.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Kl.prototype.findPartForKey=function(a){var y=ys.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Kl.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Kl.prototype.doModelChanged=function(a){var y=this;if(ys.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===qs){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(E==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var st=this.Vb(a.newValue);rt.toNode=st}}else if(E==="linkFromPortId"){var lt=this.Kc(a.object);if(lt!==null){var ut=a.newValue;typeof ut=="string"&&(lt.fromPortId=ut)}}else if(E==="linkToPortId"){var dt=this.Kc(a.object);if(dt!==null){var St=a.newValue;typeof St=="string"&&(dt.toPortId=St)}}else if(E==="nodeGroupKey"){var Et=this.Lc(a.object);if(Et!==null){var Tt=a.newValue;if(Tt!==void 0){var Ht=this.Vb(Tt);Ht instanceof qr?Et.containingGroup=Ht:Et.containingGroup=null}else Et.containingGroup=null}}else if(E==="linkLabelKeys"){var de=this.Kc(a.object);if(de!==null){var ie=a.oldValue,Se=a.newValue;Array.isArray(ie)&&ie.forEach(function(ni){0<=Se.indexOf(ni)||(ni=y.Vb(ni),ni!==null&&(ni.labeledLink=null))}),Array.isArray(Se)&&Se.forEach(function(ni){ni=y.Vb(ni),ni!==null&&(ni.labeledLink=de)})}}else if(E==="linkCategory"){var Le=this.Kc(a.object),Ee=a.newValue;Le!==null&&typeof Ee=="string"&&(Le.category=Ee)}else E==="linkDataArray"&&(x1(this,a.oldValue),w1(this,a.newValue));x.isModified=!0}else if(b===Na){var We=a.newValue;if(E==="linkDataArray"&&typeof We=="object"&&We!==null)S1(this,We);else if(E==="linkLabelKeys"&&sg(We)){var dn=this.Kc(a.object),Di=this.Vb(We);dn!==null&&Di!==null&&(Di.labeledLink=dn)}x.isModified=!0}else if(b===tl){var er=a.oldValue;if(E==="linkDataArray"&&typeof er=="object"&&er!==null)this.ip(er);else if(E==="linkLabelKeys"&&sg(er)){var Ki=this.Vb(er);Ki!==null&&(Ki.labeledLink=null)}x.isModified=!0}}else if(b===qs){var xi=a.propertyName;a.object!==x.model||xi!=="linkFromKeyProperty"&&xi!=="linkToKeyProperty"&&xi!=="linkFromPortIdProperty"&&xi!=="linkToPortIdProperty"&&xi!=="linkLabelKeysProperty"&&xi!=="nodeIsGroupProperty"&&xi!=="nodeGroupKeyProperty"&&xi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Kl.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new ei,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){T1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&k1(y,z,!1)})},Kl.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Bi){var E=BA(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=BA(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new ei().addAll(y);var tt=new ei;a.labelNodes.each(function(rt){rt.data!==null&&(rt=b.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(E),E=E.copy(),E.hp(tt),(0<y.count||0<E.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),E.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof Yo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof qr)&&(a.containingGroup=y)}}},Kl.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=F0(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var tt=b.value;y.lb(tt)?E instanceof qr&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=E)):(z.link=this.Kc(tt),z.link!==null&&E instanceof Qi&&(BA(y,tt,!0)===x&&(z.link.fromNode=E),BA(y,tt,!1)===x&&(z.link.toNode=E),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(rt){return function(st){return st===x?(E.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}Zc(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof qr&&(E.containingGroup=a))}},Kl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Qi){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Xc(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Xc(y,x,b.data)),a instanceof qr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Xc(y,x,b)}}},Kl.prototype.copyPartData=function(a,y){var x=ys.prototype.copyPartData.call(this,a,y);if(a instanceof Bi)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},Kl.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,tt=E.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=tt.archetypeLinkData,b instanceof Bi){if(cu(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,E.add(z),a=tt.archetypeLabelNodeData,a instanceof Qi&&(cu(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Gp(z,b,z.wa(a.data),!0),_p(z,b,rt,!0),x!==null&&Gp(z,b,z.wa(x.data),!1),_p(z,b,y,!1),z.fi(b),a=tt.archetypeLabelNodeData,a===null||a instanceof Qi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},Kl.prototype.findLinkForKey=Kl.prototype.findLinkForKey,Kl.prototype.findPartForKey=Kl.prototype.findPartForKey,Kl.prototype.removeAllModeledParts=Kl.prototype.removeAllModeledParts,Kl.prototype.addModeledParts=Kl.prototype.addModeledParts,Kl.prototype.addAllModeledParts=Kl.prototype.addAllModeledParts,Kl.className="GraphLinksPartManager";function kA(){ys.apply(this,arguments),this.Sg=null}nn(kA,ys);function Lm(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!ao(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(cu(b),b=b.copy(),b!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}kA.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},kA.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},kA.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},kA.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},kA.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},kA.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},kA.prototype.doModelChanged=function(a){if(ys.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===qs){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),tt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(tt!==null){var rt=tt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:Lm(this,z,tt)}}else if(b==="parentLinkCategory"){var st=this.ii(a.object),lt=a.newValue;if(st!==null&&typeof lt=="string"){var ut=st.kh();ut!==null&&(ut.category=lt)}}y.isModified=!0}}else if(x===qs){var dt=a.propertyName;a.object===y.model&&dt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},kA.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Qi&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:Lm(this,y,a):b!==null&&mA(x,b,!1)))}}},kA.prototype.updateDataBindings=function(a,y){ys.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},kA.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=F0(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof Qi&&y.mh(z)===x&&Lm(this,E,this.ii(z))}Zc(y,x)}a=y.mh(a),a!==void 0&&E instanceof Qi&&(a=this.Vb(a),Lm(this,a,E))}},kA.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Qi){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(tl,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&Xc(y,x,E)}},kA.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},kA.prototype.findLinkForKey=kA.prototype.findLinkForKey,kA.className="TreePartManager";function hr(a,y){this.kl=new ei,this.il=new ei,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Qo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ji,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new Ji,this.Lt=new ai,this.Wg=!1,this.o=null,this.undoManager=new gt,a!==void 0&&($n(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}hr.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},hr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},hr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},hr.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+kr(E)}}return y},hr.prototype.xA=function(a){a.change!==gu&&Fe("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof yt?(C1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},hr.prototype.Qv=function(a,y){var x=this,b=!1,E=new ei,z=new ei,tt=new ei,rt=this.vh;a.changes.each(function(dt){dt.model===x&&(dt.modelChange==="nodeDataArray"?dt.change===Na?E.add(dt.newValue):dt.change===tl&&tt.add(dt.oldValue):x.lb(dt.object)?z.add(dt.object):dt.change!==qs||x.modelData!==dt.object&&dt.propertyName!=="modelData"?dt.object!==null&&(rt&&rt.contains(dt.object)?rt.get(dt.object).each(function(St){x.lb(St)&&z.add(St)}):dt.object instanceof hr||x.ri()&&x.Jc(dt.object)||P1(x,dt.object).each(function(St){z.add(St)})):b=!0)});var st=this.il;st.clear(),E.each(function(dt){st.add(x.wa(dt)),y||z.add(dt)});var lt=this.kl;lt.clear(),tt.each(function(dt){lt.add(x.wa(dt)),y&&z.add(dt)}),a=x.cloneDeep(z.Fa());var ut=null;return b&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<st.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=st.Fa():ut.insertedNodeKeys=st.Fa()),0<a.length&&(ut===null&&(ut={}),ut.modifiedNodeData=a),0<lt.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=lt.Fa():ut.removedNodeKeys=lt.Fa()),lt.clear(),st.clear(),ut},hr.prototype.cloneDeep=function(a){return zp(this,a,!0)};function zp(a,y,x,b,E,z){function tt(dt,St){rt?(dt.__gohashid===void 0&&z.push(dt),b.set(dt,St)):(dt=Js++,b.set(dt,St),E.set(dt,y))}if(!Sn(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(b||(b=new Ji),rt){var st=b.get(y);if(st)return st}else for(E||(E=new Ji),st=E.iterator;st.next();){var lt=st.key;if(st.value===y&&(lt=b.get(lt)))return lt}if(Array.isArray(y)){st=[],tt(y,st);for(var ut=0;ut<y.length;ut++)st.push(zp(a,y[ut],!1,b,E,z))}else if(y instanceof re||y instanceof Ni||y instanceof Mn||y instanceof mr||y instanceof nr)st=y.copy(),tt(y,st);else{if(y instanceof as||y instanceof Li||y instanceof zn)return y;if(y instanceof ai)st=new ai().addAll(zp(a,y.Fa(),!1,b,E,z)),tt(y,st);else if(y instanceof ei)st=new ei().addAll(zp(a,y.Fa(),!1,b,E,z)),tt(y,st);else if(y instanceof Ji)st=new Ji().addAll(zp(a,y.Fa(),!1,b,E,z)),tt(y,st);else if(y instanceof Date)st=new Date(y.getTime()),tt(y,st);else if(y instanceof RegExp)st=new RegExp(y),tt(y,st),st.lastIndex=y.lastIndex;else if(typeof y.copy=="function")st=y.copy(),tt(y,st);else for(ut in st={},tt(y,st),y)ut!=="__gohashid"&&(st[ut]=zp(a,y[ut],!1,b,E,z))}return x&&z.forEach(function(dt){delete dt.__gohashid}),st}jt=hr.prototype,jt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},jt.rm=function(){var a="";return this.name!==""&&(a+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},jt.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function B1(a,y){y=y.modelData,Sn(y)&&(a.dm(y),a.modelData=y)}jt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!b1(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+Wv(this,this.modelData)),a+`,
"nodeDataArray": `+og(this,this.nodeDataArray,!0)},jt.kv=function(a){B1(this,a),a=a.nodeDataArray,$n(a)&&(this.dm(a),this.nodeDataArray=a)};function C1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var tt=b.get(E);tt===null?(tt=new ei,tt.add(z),b.add(E,tt)):tt.add(z)}}var b=a.vh;b===null&&(b=new Ji,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===qs?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Na||z===tl)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function P1(a,y){for(var x=new ei,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];Fm(a,y,E,E,x)}return x}function Fm(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return E.add(b),!0;if(Fm(a,y,tt,b,E))return!0}else if(Sn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return E.add(b),!0;if(Fm(a,y,tt,b,E))return!0}return!1}jt.Pv=function(a,y){var x=this,b=!1,E=new ei,z=new ei,tt=new ei,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===Na?E.add(ut.newValue):ut.change===tl&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==qs||x.modelData!==ut.object&&ut.propertyName!=="modelData"?ut.object!==null&&(rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(dt){x.lb(dt)&&z.add(dt)}):ut.object instanceof hr||x.ri()&&x.Jc(ut.object)||P1(x,ut.object).each(function(dt){z.add(dt)})):b=!0)});var st=this.il;st.clear(),E.each(function(ut){st.add(x.wa(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(x.wa(ut)),y&&z.add(ut)}),a="",b&&(a+=`,
"modelData": `+Wv(this,this.modelData)),0<st.count&&(a+=(y?this.Yv:this.Wv)+og(this,st.Fa(),!0)),0<z.count&&(a+=this.jy+og(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Wv:this.Yv)+og(this,lt.Fa(),!0)),lt.clear(),st.clear(),a},jt.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&Fe("applyIncrementalJson cannot change Model properties"),B1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Ji;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],tt=this.wa(z);tt!=null&&b.set(tt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){tt=y[z];var rt=this.hc(tt);rt===null&&(rt=(rt=b.get(tt))?rt:this.copyNodeData({}),this.km(rt,tt),this.xf(rt))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var st in E)st==="__gohashid"||st===this.nodeKeyProperty||this.Wj()&&st===this.nodeIsGroupProperty||this.setDataProperty(z,st,E[st]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,st=0;st<x;st++)y=this.hc(a[st]),y!==null&&this.cm(y)},jt.$x=function(a,y){a.change!==gu&&Fe("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof yt?(y===void 0&&(y=E0(this,this)),C1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},jt.yA=function(a,y){return this.$x(a,y)},jt.np=function(a){return a===void 0&&(a=E0(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},jt.toJSON=function(a){return this.np(a)},jt.Zw=function(a){var y=null;if(typeof a=="string")try{y=we.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Fe("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Fe("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},jt.Ky=function(a){return this.Zw(a)},hr.constructGraphLinksModel=function(){return new hr},jt=hr.prototype,jt.dm=function(a){if($n(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Sn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Fe("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(Sn(a)){for(y in a)if(x=a[y],Sn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new ai,b=0;b<x.length/2;b++)E.add(new re(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nw(a)}return a},jt.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):$n(a)?og(this,a):Sn(a)?Wv(this,a):typeof a=="function"?"null":a.toString()};function og(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new pr;E.add("["),x&&1<b&&E.add(`
`);for(var z=0;z<b;z++){var tt=y[z];tt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
`)),E.add(a.sm(tt)))}return x&&1<b&&E.add(`
`),E.add("]"),E.toString()}function b1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function sh(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Wv(a,y){var x=y;if(x instanceof re)y={class:"go.Point",x:sh(x.x),y:sh(x.y)};else if(x instanceof Ni)y={class:"go.Size",width:sh(x.width),height:sh(x.height)};else if(x instanceof Mn)y={class:"go.Rect",x:sh(x.x),y:sh(x.y),width:sh(x.width),height:sh(x.height)};else if(x instanceof mr)y={class:"go.Margin",top:sh(x.top),right:sh(x.right),bottom:sh(x.bottom),left:sh(x.left)};else if(x instanceof nr)x.sb()?y={class:"go.Spot",x:sh(x.x),y:sh(x.y),offsetX:sh(x.offsetX),offsetY:sh(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof as){if(y={class:"go.Brush",type:x.type.name},x.type===Wt?y.color=x.color:(x.type===ee||x.type===xe)&&(y.start=x.start,y.end=x.end,x.type===xe&&(x.startRadius!==0&&(y.startRadius=sh(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=sh(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof Li?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=sh(x.startX)),x.startY!==0&&(y.startY=sh(x.startY)),x.endX!==0&&(y.endX=sh(x.endX)),x.endY!==0&&(y.endY=sh(x.endY)),x.spot1.D(Za)||(y.spot1=x.spot1),x.spot2.D(Rl)||(y.spot2=x.spot2),x.type===Li.o&&(y.path=Li.ia(x))):x instanceof zn&&(y={class:"go.EnumValue",classType:E0(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=rl(y,E);if(!b1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof ai){var tt="[";for(z=z.iterator;z.next();){var rt=z.value;1<tt.length&&(tt+=","),tt+=a.sm(rt.x),tt+=",",tt+=a.sm(rt.y)}tt+="]",b+=tt}else b+=a.sm(z)}return b+"}"}function ah(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nw(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new re(ah(a.x),ah(a.y));else if(y==="Size")x=new Ni(ah(a.width),ah(a.height));else if(y==="Rect")x=new Mn(ah(a.x),ah(a.y),ah(a.width),ah(a.height));else if(y==="Margin")x=new mr(ah(a.top),ah(a.right),ah(a.bottom),ah(a.left));else if(y==="Spot")typeof a.enum=="string"?x=od(a.enum):x=new nr(ah(a.x),ah(a.y),ah(a.offsetX),ah(a.offsetY));else if(y==="Brush"){if(x=new as,x.type=Hi(as,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof nr&&(x.start=a.start),a.end instanceof nr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=ah(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=ah(a.endRadius)),a=a.colorStops,Sn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Li.parse(a.path):x=new Li,x.type=Hi(Li,a.type),typeof a.startX=="number"&&(x.startX=ah(a.startX)),typeof a.startY=="number"&&(x.startY=ah(a.startY)),typeof a.endX=="number"&&(x.endX=ah(a.endX)),typeof a.endY=="number"&&(x.endY=ah(a.endY)),a.spot1 instanceof nr&&(x.spot1=a.spot1),a.spot2 instanceof nr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=Yv(b),typeof b=="function"&&(x=Hi(b,a.name)));return x}jt.Pe=function(a){return this.Lt.add(a),this},jt.ik=function(a){this.Lt.remove(a)},jt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},jt.cb=function(a,y,x,b,E,z,tt){yl(this,"",a,y,x,b,E,z,tt)},jt.g=function(a,y,x,b,E){yl(this,"",qs,a,this,y,x,b,E)},jt.Fs=function(a,y,x,b,E,z){yl(this,"",qs,y,a,x,b,E,z)};function yl(a,y,x,b,E,z,tt,rt,st){rt===void 0&&(rt=null),st===void 0&&(st=null);var lt=new ia;lt.model=a,lt.change=x,lt.modelChange=y,lt.propertyName=b,lt.object=E,lt.oldValue=z,lt.oldParam=rt,lt.newValue=tt,lt.newParam=st,a.ds(lt)}hr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===qs){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),aa(x,b,E)}else a.change===Na?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Sn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Dr(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&dr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!$n(b)&&a.propertyName&&(b=rl(a.object,a.propertyName)),$n(b)&&typeof x=="number"&&(a=a.newValue,y?Dr(b,x):dr(b,x,a))):Fe("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===tl?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Sn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&dr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Dr(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!$n(b)&&a.propertyName&&(b=rl(a.object,a.propertyName)),$n(b)&&typeof x=="number"&&(a=a.oldValue,y?dr(b,x,a):Dr(b,x))):Fe("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==gu&&Fe("unknown ChangedEvent: "+a.toString())},hr.prototype.Ea=function(a){return this.undoManager.Ea(a)},hr.prototype.eb=function(a){return this.undoManager.eb(a)},hr.prototype.Kf=function(){return this.undoManager.Kf()},hr.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},jt=hr.prototype,jt.La=function(a,y){y===void 0&&(y=""),yl(this,"SourceChanged",gu,y,a,null,null)},jt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=rl(a,y),y!==void 0)){if(sg(y))return y;Fe("Key value for node data "+a+" is not a number or a string: "+y)}}},jt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=rl(a,x);b!==y&&this.hc(y)===null&&(aa(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),yl(this,"nodeKey",qs,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else aa(a,x,y)}};function sg(a){return typeof a=="number"||typeof a=="string"}jt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},jt.hc=function(a){return a===null&&Fe("Model.findNodeDataForKey:key must not be null"),a!==void 0&&sg(a)?this.kb.I(a):null},jt.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){aa(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;aa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;aa(a,y,x)}}}}},jt.xf=function(a){a!==null&&(Vs(a),this.lb(a)||L1(this,a,!0))};function L1(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&Fe("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,dr(a.Tc,b,y)),yl(a,"nodeDataArray",Na,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}jt.Fy=function(a){if($n(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},jt.cm=function(a){a!==null&&F1(this,a,!0)};function F1(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;Dr(a.Tc,b)}yl(a,"nodeDataArray",tl,"nodeDataArray",a,y,null,b,null),a.qp(y)}jt.nA=function(a){if($n(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},jt.$z=function(a){if(a!==this.nodeDataArray&&$n(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.wa(z);if(tt!==void 0){x.add(tt);var rt=this.hc(tt);rt!==z&&(rt!==null?(this.Do(rt,z),this.lm(z,rt)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},jt.jp=function(a,y){y!==void 0&&(a=F0(this,a),a instanceof ei&&this.Vf.add(y,a))},jt.Lv=function(){},jt.fm=function(){},jt.em=function(){},jt.qp=function(){};function Xc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new ei,a.Vf.add(y,b)),b.add(x)}}function Zc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof ei&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function F0(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof ei?a:null)}jt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},hr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):Em(this,a,!0),Sn(a)&&Qo(a),a};function Em(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=Em(a,y[x],a.copiesArrayObjects);b.push(E)}return Qo(b),b}if(x&&Sn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=rl(y,b),tt=E0(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof hr||z instanceof gt||z instanceof yt||z instanceof ia||(z=Em(a,z,!1)),aa(x,b,z)}return Qo(x),x}return y instanceof re||y instanceof Ni||y instanceof Mn||y instanceof nr||y instanceof mr?y.copy():y}hr.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!E1&&a instanceof _e&&(E1=!0,Ar('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Ar(" Is that really your intent?"));var b=rl(a,y);b!==x&&(aa(a,y,x),this.Fs(a,y,b,x))},jt=hr.prototype,jt.set=function(a,y,x){this.setDataProperty(a,y,x)},jt.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},jt.Ay=function(a,y){this.ts(a,-1,y)},jt.ts=function(a,y,x){0>y&&(y=a.length),dr(a,y,x),yl(this,"",Na,"",a,null,x,null,y)},jt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Fe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Dr(a,y),yl(this,"",tl,"",a,x,null,y,null)},jt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=rl(a,y),y===void 0))return"";if(typeof y=="string")return y;Fe("getCategoryForNodeData found a non-string category for "+a+": "+y)},jt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=rl(a,x);b===void 0&&(b=""),b!==y&&(aa(a,x,y),yl(this,"nodeCategory",qs,x,a,b,y))}else aa(a,x,y)}},jt.lm=function(a,y){this.jm(y,this.Ro(a))},jt.Tl=function(){return!1},jt.Wj=function(){return!1},jt.ri=function(){return!1},jt.xs=function(){return!1},jt.Xj=function(){return!1};function Vv(){return new hr}function E0(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return E0(a,y.constructor);return typeof y}function Yv(a){return Pc[a]?Pc[a]:we.go!==void 0&&we.go[a]?we.go[a]:null}function rl(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function aa(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}Ae.Object.defineProperties(hr.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&Fe("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Fe("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];Sn(E)||Fe("Model.nodeDataArray must only contain Objects, not: "+E),Vs(E)}for(this.Tc=a,b=new ai,E=0;E<x;E++){var z=a[E],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?b.add(z):this.kb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(yl(this,"nodeDataArray",qs,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),hr.prototype.setCategoryForNodeData=hr.prototype.jm,hr.prototype.getCategoryForNodeData=hr.prototype.Ro,hr.prototype.removeArrayItem=hr.prototype.ov,hr.prototype.insertArrayItem=hr.prototype.ts,hr.prototype.addArrayItem=hr.prototype.Ay,hr.prototype.assignAllDataProperties=hr.prototype.Do,hr.prototype.set=hr.prototype.set,hr.prototype.clearUnresolvedReferences=hr.prototype.Qy,hr.prototype.mergeNodeDataArray=hr.prototype.$z,hr.prototype.removeNodeDataCollection=hr.prototype.nA,hr.prototype.removeNodeData=hr.prototype.cm,hr.prototype.addNodeDataCollection=hr.prototype.Fy,hr.prototype.addNodeData=hr.prototype.xf,hr.prototype.makeNodeDataKeyUnique=hr.prototype.$u,hr.prototype.findNodeDataForKey=hr.prototype.hc,hr.prototype.containsNodeData=hr.prototype.lb,hr.prototype.setKeyForNodeData=hr.prototype.km,hr.prototype.getKeyForNodeData=hr.prototype.wa,hr.prototype.updateTargetBindings=hr.prototype.La,hr.prototype.commit=hr.prototype.commit,hr.prototype.rollbackTransaction=hr.prototype.Kf,hr.prototype.commitTransaction=hr.prototype.eb,hr.prototype.startTransaction=hr.prototype.Ea,hr.prototype.raiseDataChanged=hr.prototype.Fs,hr.prototype.raiseChanged=hr.prototype.g,hr.prototype.raiseChangedEvent=hr.prototype.cb,hr.prototype.removeChangedListener=hr.prototype.ik,hr.prototype.addChangedListener=hr.prototype.Pe,hr.prototype.writeJsonValue=hr.prototype.sm,hr.prototype.replaceJsonObjects=hr.prototype.dm,hr.prototype.applyIncrementalJSON=hr.prototype.Ky,hr.prototype.applyIncrementalJson=hr.prototype.Zw,hr.prototype.toJSON=hr.prototype.toJSON,hr.prototype.toJson=hr.prototype.np,hr.prototype.toIncrementalJSON=hr.prototype.yA,hr.prototype.toIncrementalJson=hr.prototype.$x,hr.prototype.toIncrementalData=hr.prototype.xA,hr.prototype.clear=hr.prototype.clear;var E1=!1,Pc={};hr.className="Model",hr.fromJSON=hr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=we.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Fe("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=Yv(b)):(E=Yv(b),E===null&&(E=we[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof hr?y=a:Fe("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=hr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},hr.safePropertyValue=rl,hr.safePropertySet=aa,Pc.Brush=as,Pc.ChangedEvent=ia,Pc.Geometry=Li,Pc.Margin=mr,Pc.Panel=Ln,Pc.Point=re,Pc.Rect=Mn,Pc.Size=Ni,Pc.Spot=nr,Pc.Transaction=yt,Pc.UndoManager=gt;function al(a,y,x,b){Qo(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=N1,this.wk=null):(this.el=M0,this.wk=b),this.st=new ei}al.prototype.copy=function(){var a=new al;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},jt=al.prototype,jt.qb=function(a){a.classType===al&&(this.mode=a)},jt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},jt.freeze=function(){return this._isFrozen=!0,this},jt.ka=function(){return this._isFrozen=!1,this},jt.Kx=function(a){return a===void 0&&(a=null),this.mode=M0,this.backConverter=a,this},jt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},jt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function M1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}jt.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")Ar("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=rl(y,b)),z!==void 0)if(E===null)x!==""&&aa(a,x,z);else try{if(x!==""){var tt=E(z,a);aa(a,x,tt)}else E(z,a)}catch(rt){}}}},jt.sp=function(a,y,x,b){if(this.el===M0){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,tt=a;if(E!==""&&(tt=rl(a,E)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=b!==null?b.diagram:null,st=rt!==null?rt.model:null;if(z===null){if(x!=="")st!==null?st.setDataProperty(y,x,tt):aa(y,x,tt);else if(st!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var lt=b.itemIndex,ut=b.panel.itemArray;st.ov(ut,lt),st.ts(ut,lt,tt)}}else try{if(x!==""){var dt=z(tt,y,st);st!==null?st.setDataProperty(y,x,dt):aa(y,x,dt)}else{var St=z(tt,y,st);if(St!==void 0&&st!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Et=b.itemIndex,Tt=b.panel.itemArray;st.ov(Tt,Et),st.ts(Tt,Et,St)}}}catch(Ht){}}finally{this.st.remove(a)}}}},Ae.Object.defineProperties(al.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Qn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Qn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Qn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Qn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Qn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Qn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Qn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Qn(this),this.el=a}}}),al.prototype.updateSource=al.prototype.sp,al.prototype.updateTarget=al.prototype.Mv,al.prototype.ofModel=al.prototype.dA,al.prototype.ofObject=al.prototype.cp,al.prototype.makeTwoWay=al.prototype.Kx;var Iw="Binding",N1=new zn(al,"OneWay",1),M0=new zn(al,"TwoWay",2);al.className="Binding",al.parseEnum=function(a,y){return function(x){return x=Hi(a,x),x===null?y:x}},al.toString=kr,al.OneWay=N1,al.TwoWay=M0;function Ko(a,y,x){hr.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new ei,this.wb=new Ji,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&($n(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}nn(Ko,hr),Ko.constructGraphLinksModel=hr.constructGraphLinksModel,Ko.prototype.cloneProtected=function(a){hr.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},jt=Ko.prototype,jt.clear=function(){hr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},jt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+kr(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+BA(this,E,!0)+"-->"+BA(this,E,!1)}return y},jt.Qv=function(a,y){this.linkKeyProperty===""&&Fe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=hr.prototype.Qv.call(this,a,y),b=this,E=new ei,z=new ei,tt=new ei,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Na?E.add(ut.newValue):ut.change===tl&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(dt){b.Jc(dt)&&z.add(dt)}):ut.object instanceof hr||b.lb(ut.object)||I1(b,ut.object).each(function(dt){z.add(dt)})))});var st=this.il;st.clear(),E.each(function(ut){st.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=b.cloneDeep(z.Fa()),0<st.count&&(x===null&&(x={}),y?x.removedLinkKeys=st.Fa():x.insertedLinkKeys=st.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<lt.count&&(x===null&&(x={}),y?x.insertedLinkKeys=lt.Fa():x.removedLinkKeys=lt.Fa()),lt.clear(),st.clear(),x},jt.rm=function(){var a=hr.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},jt.gp=function(a){hr.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},jt.Rv=function(){var a=hr.prototype.Rv.call(this),y=`,
"linkDataArray": `+og(this,this.linkDataArray,!0);return a+y},jt.kv=function(a){hr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function I1(a,y){for(var x=new ei,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];Fm(a,y,E,E,x)}return x}jt.Pv=function(a,y){this.linkKeyProperty===""&&Fe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=hr.prototype.Pv.call(this,a,y),b=this,E=new ei,z=new ei,tt=new ei,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Na?E.add(ut.newValue):ut.change===tl&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(dt){b.Jc(dt)&&z.add(dt)}):ut.object instanceof hr||b.lb(ut.object)||I1(b,ut.object).each(function(dt){z.add(dt)})))});var st=this.il;st.clear(),E.each(function(ut){st.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=x,0<st.count&&(a+=(y?this.Xv:this.Vv)+og(this,st.Fa(),!0)),0<z.count&&(a+=this.iy+og(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Vv:this.Xv)+og(this,lt.Fa(),!0)),lt.clear(),st.clear(),a},jt.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&Fe("applyIncrementalJson cannot change Model properties"),hr.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var tt in E)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,E[tt]);O1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Ko.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===qs){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),aa(x,b,E);return}}else if(a.change===Na){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Sn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===tl){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Sn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}hr.prototype.changeState.call(this,a,y)}},jt=Ko.prototype,jt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),aa(x,this.nodeKeyProperty,a),this.xf(x))}return a}},jt.yx=function(a){return BA(this,a,!0)},jt.wv=function(a,y){Gp(this,a,y,!0)},jt.Bx=function(a){return BA(this,a,!1)},jt.Bv=function(a,y){Gp(this,a,y,!1)};function BA(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=rl(y,a),a!==void 0))){if(sg(a))return a;Fe((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Gp(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=rl(y,E);z!==x&&(Zc(a,z,y),aa(y,E,x),a.hc(x)===null&&Xc(a,x,y),yl(a,b?"linkFromKey":"linkToKey",qs,E,y,z,x),typeof E=="string"&&a.La(y,E))}else aa(y,E,x)}}jt.zx=function(a){return Mm(this,a,!0)},jt.xv=function(a,y){_p(this,a,y,!0)},jt.Cx=function(a){return Mm(this,a,!1)},jt.Cv=function(a,y){_p(this,a,y,!1)};function Mm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=rl(y,a),y===void 0?"":y)}function _p(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=rl(y,E);z===void 0&&(z=""),z!==x&&(aa(y,E,x),yl(a,b?"linkFromPortId":"linkToPortId",qs,E,y,z,x),typeof E=="string"&&a.La(y,E))}else aa(y,E,x)}}jt.Ef=function(a){if(a===null)return Nm;var y=this.je;return y===""?Nm:(a=rl(a,y),a===void 0?Nm:a)},jt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=rl(a,x);if(b===void 0&&(b=Nm),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)Zc(this,b[z],a);for(aa(a,x,y),E=y.length,z=0;z<E;z++){var tt=y[z];this.hc(tt)===null&&Xc(this,tt,a)}yl(this,"linkLabelKeys",qs,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else aa(a,x,y)}},jt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=rl(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&Xc(this,y,a),yl(this,"linkLabelKeys",Na,x,a,null,y,null,E)))}else Fe(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},jt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=rl(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Zc(this,y,a),yl(this,"linkLabelKeys",tl,x,a,y,null,E,null)))}else b!==void 0&&Fe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},jt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=rl(a,y),y!==void 0)){if(sg(y))return y;Fe("Key value for link data "+a+" is not a number or a string: "+y)}}},jt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=rl(a,x);b!==y&&this.jh(y)===null&&(aa(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),yl(this,"linkKey",qs,x,a,b,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},jt.jh=function(a){return a===null&&Fe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&sg(a)?this.wb.I(a):null},jt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){aa(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;aa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;aa(a,y,x)}}}}},jt.Jc=function(a){return a===null?!1:this.$f.contains(a)},jt.fi=function(a){a!==null&&(Vs(a),this.Jc(a)||k1(this,a,!0))};function k1(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&Fe("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),yl(a,"linkDataArray",Na,"linkDataArray",a,null,y,null,b),Xv(a,y)}jt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},jt.bm=function(a){a!==null&&T1(this,a,!0)};function T1(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(yl(a,"linkDataArray",tl,"linkDataArray",a,y,null,b,null),x=BA(a,y,!0),Zc(a,x,y),x=BA(a,y,!1),Zc(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Zc(a,x,y)}jt.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},jt.Zz=function(a){if(this.linkKeyProperty===""&&Fe("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&$n(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),O1(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function Xv(a,y){var x=BA(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Xc(a,x,y),x=BA(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Xc(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&Xc(a,x,y)}jt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):Em(this,a,!0),Sn(a)&&(Qo(a),this.lf!==""&&aa(a,this.lf,void 0),this.mf!==""&&aa(a,this.mf,void 0),this.je!==""&&aa(a,this.je,[])),a},jt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!rl(a,y)},jt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=rl(a,y),y!==void 0)){if(sg(y))return y;Fe("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},jt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=rl(a,x);b!==y&&(Zc(this,b,a),aa(a,x,y),this.hc(y)===null&&Xc(this,y,a),yl(this,"nodeGroupKey",qs,x,a,b,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},Ko.prototype.copyNodeData=function(a){return a===null?null:(a=hr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||rl(a,this.Je)===void 0||aa(a,this.Je,void 0),a)},Ko.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Gp(this,a,x,!0);return}if(y===this.linkToKeyProperty){Gp(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){_p(this,a,x,!0);return}if(y===this.linkToPortIdProperty){_p(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=rl(a,y);b!==x&&(aa(a,y,x),this.Fs(a,y,b,x))},jt=Ko.prototype,jt.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&rl(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},jt.jp=function(a,y){hr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(BA(this,b,!0)===E){var tt=this.lf;aa(b,tt,z),yl(this,"linkFromKey",qs,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)}if(BA(this,b,!1)===E&&(tt=this.mf,aa(b,tt,z),yl(this,"linkToKey",qs,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)),tt=this.Ef(b),Array.isArray(tt))for(var rt=tt.length,st=this.je,lt=0;lt<rt;lt++)tt[lt]===E&&(tt[lt]=z,yl(this,"linkLabelKeys",Na,st,b,E,z,lt,lt))}},jt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;aa(a,b,x),yl(this,"nodeGroupKey",qs,b,a,y,x),typeof b=="string"&&this.La(a,b)}},jt.Lv=function(){hr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Xv(this,a[x])},jt.fm=function(a){hr.prototype.fm.call(this,a),a=this.wa(a);var y=F0(this,a);if(y!==null){var x=tr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;yl(this,"nodeGroupKey",qs,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(BA(this,b,!0)===a&&(E=this.lf,yl(this,"linkFromKey",qs,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),BA(this,b,!1)===a&&(E=this.mf,yl(this,"linkToKey",qs,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,tt=this.je,rt=0;rt<z;rt++)E[rt]===a&&(yl(this,"linkLabelKeys",Na,tt,b,a,a,rt,rt),x.push(b))}for(y=0;y<x.length;y++)Zc(this,a,x[y]);vr(x)}},jt.em=function(a){hr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Xc(this,y,a)},jt.qp=function(a){hr.prototype.qp.call(this,a);var y=this.lh(a);Zc(this,y,a)},jt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=rl(a,y),y===void 0))return"";if(typeof y=="string")return y;Fe("getCategoryForLinkData found a non-string category for "+a+": "+y)},Ko.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Ko.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=rl(a,x);b===void 0&&(b=""),b!==y&&(aa(a,x,y),yl(this,"linkCategory",qs,x,a,b,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},Ko.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},jt=Ko.prototype,jt.lm=function(a,y){hr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function O1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}jt.Wj=function(){return!0},jt.ri=function(){return!0},jt.xs=function(){return!0},jt.Xj=function(){return!0},Ae.Object.defineProperties(Ko.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];Sn(E)||Fe("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Vs(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new ai,E=0;E<x;E++){var z=a[E],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?b.add(z):this.wb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new ei,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,yl(this,"linkDataArray",qs,"linkDataArray",this,y,a),y=0;y<x;y++)Xv(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Ko.prototype.setCategoryForLinkData=Ko.prototype.lp,Ko.prototype.getCategoryForLinkData=Ko.prototype.ps,Ko.prototype.assignAllDataProperties=Ko.prototype.Do,Ko.prototype.setGroupKeyForNodeData=Ko.prototype.mp,Ko.prototype.getGroupKeyForNodeData=Ko.prototype.lh,Ko.prototype.isGroupForNodeData=Ko.prototype.Yu,Ko.prototype.copyLinkData=Ko.prototype.Jo,Ko.prototype.mergeLinkDataArray=Ko.prototype.Zz,Ko.prototype.removeLinkDataCollection=Ko.prototype.lA,Ko.prototype.removeLinkData=Ko.prototype.bm,Ko.prototype.addLinkDataCollection=Ko.prototype.Ey,Ko.prototype.addLinkData=Ko.prototype.fi,Ko.prototype.containsLinkData=Ko.prototype.Jc,Ko.prototype.makeLinkDataKeyUnique=Ko.prototype.Bs,Ko.prototype.findLinkDataForKey=Ko.prototype.jh,Ko.prototype.setKeyForLinkData=Ko.prototype.Ks,Ko.prototype.getKeyForLinkData=Ko.prototype.Ac,Ko.prototype.removeLabelKeyForLinkData=Ko.prototype.Qx,Ko.prototype.addLabelKeyForLinkData=Ko.prototype.Bu,Ko.prototype.setLabelKeysForLinkData=Ko.prototype.Ls,Ko.prototype.getLabelKeysForLinkData=Ko.prototype.Ef,Ko.prototype.setToPortIdForLinkData=Ko.prototype.Cv,Ko.prototype.getToPortIdForLinkData=Ko.prototype.Cx,Ko.prototype.setFromPortIdForLinkData=Ko.prototype.xv,Ko.prototype.getFromPortIdForLinkData=Ko.prototype.zx,Ko.prototype.setToKeyForLinkData=Ko.prototype.Bv,Ko.prototype.getToKeyForLinkData=Ko.prototype.Bx,Ko.prototype.setFromKeyForLinkData=Ko.prototype.wv,Ko.prototype.getFromKeyForLinkData=Ko.prototype.yx,Ko.prototype.clear=Ko.prototype.clear;var Nm=Object.freeze([]);Ko.className="GraphLinksModel",Pc.GraphLinksModel=Ko,hr.constructGraphLinksModel=hr.constructGraphLinksModel=function(){return new Ko},hr.initDiagramModel=Vv=function(){return new Ko};function lh(a,y){hr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&($n(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}nn(lh,hr),lh.constructGraphLinksModel=hr.constructGraphLinksModel,lh.prototype.cloneProtected=function(a){hr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},jt=lh.prototype,jt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+kr(E)}}return y},jt.rm=function(){var a=hr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},jt.gp=function(a){hr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},jt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Fe("applyIncrementalJson cannot change Model properties"),hr.prototype.fp.call(this,a)},jt.Vl=function(a){return a},jt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=rl(a,y),y!==void 0)){if(sg(y))return y;Fe("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},jt.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=rl(a,x);b!==y&&(Zc(this,b,a),aa(a,x,y),this.hc(y)===null&&Xc(this,y,a),yl(this,"nodeParentKey",qs,x,a,b,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},jt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=rl(a,y),y===void 0)?"":typeof y=="string"?y:(Fe("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},lh.prototype.getLinkCategoryForData=function(a){return this.ss(a)},lh.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=rl(a,x);b===void 0&&(b=""),b!==y&&(aa(a,x,y),yl(this,"parentLinkCategory",qs,x,a,b,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},lh.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},lh.prototype.copyNodeData=function(a){return a===null?null:(a=hr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||rl(a,this.Ke)===void 0||aa(a,this.Ke,void 0),a)},lh.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=rl(a,y);b!==x&&(aa(a,y,x),this.Fs(a,y,b,x))},jt=lh.prototype,jt.jp=function(a,y){hr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},jt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;aa(a,b,x),yl(this,"nodeParentKey",qs,b,a,y,x),typeof b=="string"&&this.La(a,b)}},jt.fm=function(a){hr.prototype.fm.call(this,a),a=this.wa(a);var y=F0(this,a);if(y!==null){var x=tr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;yl(this,"nodeParentKey",qs,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Zc(this,a,x[y]);vr(x)}},jt.em=function(a){hr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Xc(this,y,a)},jt.qp=function(a){hr.prototype.qp.call(this,a);var y=this.mh(a);Zc(this,y,a)},jt.lm=function(a,y){hr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},jt.Tl=function(){return!0},jt.xs=function(){return!0},Ae.Object.defineProperties(lh.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),lh.prototype.setParentLinkCategoryForNodeData=lh.prototype.Ms,lh.prototype.getParentLinkCategoryForNodeData=lh.prototype.ss,lh.prototype.setParentKeyForNodeData=lh.prototype.qe,lh.prototype.getParentKeyForNodeData=lh.prototype.mh,lh.className="TreeModel",Pc.TreeModel=lh;function wa(a){ha.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=bc,this.Ti=0,this.Zv=new re,this.Jp=this.me=0,this.Xr=new T0,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=bc,this.K=uh,this.nd=Wp,this.hd=Hv,this.tf=6,this.Nn=Um,a&&Object.assign(this,a)}nn(wa,ha),wa.prototype.cloneProtected=function(a){ha.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},wa.prototype.qb=function(a){a.classType===wa?a===Dm||a===jm||a===Tm||a===Om||a===Wp?this.sorting=a:a===Tg||a===Kp||a===uh||a===lg?this.direction=a:a===kf||a===ag||a===bc||a===Lc?this.arrangement=a:(a===op||a===Um)&&(this.nodeDiameterFormula=a):ha.prototype.qb.call(this,a)},wa.prototype.createNetwork=function(){return new Vp(this)},wa.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new ai;y.addAll(a.iterator),a=new ai;var x=new ai,b=this.sort(y),E,z,tt=this.Jp,rt=this.arrangement,st=this.nodeDiameterFormula,lt=this.radius;(!isFinite(lt)||0>=lt)&&(lt=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var dt=this.startAngle;isFinite(dt)||(dt=0);var St=this.sweepAngle;if((!isFinite(St)||360<St||1>St)&&(St=360),y=this.spacing,isFinite(y)||(y=NaN),rt===Lc&&st===op?rt=bc:rt===Lc&&st!==op&&(rt=this.arrangement),(this.direction===Tg||this.direction===Kp)&&this.sorting!==Wp){for(st=0;!(st>=b.length)&&(a.add(b.M(st)),!(st+1>=b.length));st+=2)x.add(b.M(st+1));this.direction===Tg?(this.arrangement===Lc&&a.reverse(),b=new ai,b.addAll(a),b.addAll(x)):(this.arrangement===Lc&&x.reverse(),b=new ai,b.addAll(x),b.addAll(a))}st=b.length;for(var Et=z=E=0;Et<b.length;Et++){var Tt=dt+St*z*(this.direction===uh?1:-1)/st,Ht=b.M(Et).diameter;isNaN(Ht)&&(Ht=ug(b.M(Et),Tt)),360>St&&(Et===0||Et===b.length-1)&&(Ht/=2),E+=Ht,z++}if(isNaN(lt)||rt===Lc){if(isNaN(y)&&(y=6),rt!==bc&&rt!==Lc){for(z=-1/0,tt=0;tt<st;tt++)Et=b.M(tt),E=b.M(tt===st-1?0:tt+1),isNaN(Et.diameter)&&ug(Et,0),isNaN(E.diameter)&&ug(E,0),z=Math.max(z,(Et.diameter+E.diameter)/2);tt=z+y,rt===kf?lt=(z+y)/(2*Math.PI/st):lt=Im(this,tt*(360<=St?st:st-1),ut,dt*Math.PI/180,St*Math.PI/180)}else lt=Im(this,E+(360<=St?st:st-1)*(rt!==Lc?y:1.6*y),ut,dt*Math.PI/180,St*Math.PI/180);z=lt*ut}else if(z=lt*ut,Et=Zv(this,lt,z,dt*Math.PI/180,St*Math.PI/180),isNaN(y))(rt===bc||rt===Lc)&&(y=(Et-E)/(360<=St?st:st-1));else if(rt===bc||rt===Lc)Et=(Et-E)/(360<=St?st:st-1),Et<y?(lt=Im(this,E+y*(360<=St?st:st-1),ut,dt*Math.PI/180,St*Math.PI/180),z=lt*ut):y=Et;else{for(tt=-1/0,E=0;E<st;E++)Tt=b.M(E),Ht=b.M(E===st-1?0:E+1),isNaN(Tt.diameter)&&ug(Tt,0),isNaN(Ht.diameter)&&ug(Ht,0),tt=Math.max(tt,(Tt.diameter+Ht.diameter)/2);tt+=y,E=Im(this,tt*(360<=St?st:st-1),ut,dt*Math.PI/180,St*Math.PI/180),E>lt?(lt=E,z=lt*ut):tt=Et/(360<=St?st:st-1)}if(this.kw=rt,this.lc=lt,this.Zm=ut,this.lw=dt,this.Wp=St,this.Ti=y,this.me=z,this.Jp=tt,y=b,b=this.kw,rt=this.lc,lt=this.lw,ut=this.Wp,dt=this.Ti,St=this.me,st=this.Jp,this.direction!==Tg&&this.direction!==Kp||b!==Lc)if(this.direction===Tg||this.direction===Kp){switch(tt=0,b){case ag:tt=180*km(this,rt,St,lt,st)/Math.PI;break;case bc:st=y=0,tt=a.first(),tt!==null&&(y=ug(tt,Math.PI/2)),tt=x.first(),tt!==null&&(st=ug(tt,Math.PI/2)),tt=180*km(this,rt,St,lt,dt+(y+st)/2)/Math.PI;break;case kf:tt=ut/y.length}if(this.direction===Tg){switch(b){case ag:k0(this,a,lt,lg);break;case bc:I0(this,a,lt,lg);break;case kf:N0(this,a,ut/2,lt,lg)}switch(b){case ag:k0(this,x,lt+tt,uh);break;case bc:I0(this,x,lt+tt,uh);break;case kf:N0(this,x,ut/2,lt+tt,uh)}}else{switch(b){case ag:k0(this,x,lt,lg);break;case bc:I0(this,x,lt,lg);break;case kf:N0(this,x,ut/2,lt,lg)}switch(b){case ag:k0(this,a,lt+tt,uh);break;case bc:I0(this,a,lt+tt,uh);break;case kf:N0(this,a,ut/2,lt+tt,uh)}}}else switch(b){case ag:k0(this,y,lt,this.direction);break;case bc:I0(this,y,lt,this.direction);break;case kf:N0(this,y,ut,lt,this.direction);break;case Lc:D1(this,y,ut,lt,this.direction)}else D1(this,y,ut,lt-ut/2,uh)}this.updateParts(),this.network=null,this.isValidLayout=!0};function N0(a,y,x,b,E){var z=a.Wp,tt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,st=0;st<rt;st++){var lt=b+(E===uh?st*x/(360<=z?rt:rt-1):-(st*x)/rt),ut=y.M(st),dt=tt*Math.tan(lt)/a;dt=Math.sqrt((tt*tt+a*a*dt*dt)/(1+dt*dt)),ut.centerX=dt*Math.cos(lt),ut.centerY=dt*Math.sin(lt),ut.actualAngle=180*lt/Math.PI}}function I0(a,y,x,b){var E=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var rt=y.length,st=0;st<rt;st++){var lt=y.M(st),ut=y.M(st===rt-1?0:st+1),dt=z*Math.sin(x);lt.centerX=E*Math.cos(x),lt.centerY=dt,lt.actualAngle=180*x/Math.PI,isNaN(lt.diameter)&&ug(lt,0),isNaN(ut.diameter)&&ug(ut,0),lt=km(a,E,z,b===uh?x:-x,(lt.diameter+ut.diameter)/2+tt),x+=b===uh?lt:-lt}}function k0(a,y,x,b){var E=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var rt=y.length,st=0;st<rt;st++){var lt=y.M(st);lt.centerX=E*Math.cos(x),lt.centerY=z*Math.sin(x),lt.actualAngle=180*x/Math.PI,lt=km(a,E,z,b===uh?x:-x,tt),x+=b===uh?lt:-lt}}function D1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new T0,360>x){for(z=b+(E===uh?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,U1(a,y,x,b,E)}else j1(a,y,x,b,E);a.Xr.commit(y)}function j1(a,y,x,b,E){var z=a.lc,tt=a.Ti,rt=a.Zm,st=z*Math.cos(b*Math.PI/180),lt=a.me*Math.sin(b*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=re.alloc();for(var dt=0;dt<ut.length&&(ut[dt].centerX=st,ut[dt].centerY=lt,!(dt>=ut.length-1));dt++)Q1(a,st,lt,ut,dt,E,z)||R1(a,st,lt,ut,dt,E,z),st=z.x,lt=z.y;if(re.free(z),a.mj++,!(23<a.mj)){st=ut[0].centerX,lt=ut[0].centerY,z=ut[ut.length-1].centerX,dt=ut[ut.length-1].centerY;var St=Math.abs(st-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),Et=Math.abs(lt-dt)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(Et)?Math.abs(st-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<Et?Et:1>Math.abs(St)?0:St,st=Math.abs(z)>Math.abs(dt)?0<z!=lt>dt:0<dt!=st<z,(st=E===uh?st:!st)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*rt,j1(a,y,x,b,E))}}}function U1(a,y,x,b,E){for(var z=a.lc,tt=a.me,rt=a.Zm,st=z*Math.cos(b*Math.PI/180),lt=tt*Math.sin(b*Math.PI/180),ut=re.alloc(),dt=y.Fa(),St=0;St<dt.length&&(dt[St].centerX=st,dt[St].centerY=lt,!(St>=dt.length-1));St++)Q1(a,st,lt,dt,St,E,ut)||R1(a,st,lt,dt,St,E,ut),st=ut.x,lt=ut.y;if(re.free(ut),a.mj++,!(23<a.mj)){if(st=Math.atan2(lt,st),st=E===uh?a.gt-st:st-a.gt,st=Math.abs(st)<Math.abs(st-2*Math.PI)?st:st-2*Math.PI,z=st*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],st=0;st<dt.length;st++)tt.mk[st]=dt[st].bounds.x,tt.tm[st]=dt[st].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*rt,U1(a,y,x,b,E))}}function Q1(a,y,x,b,E,z,tt){var rt=a.lc,st=a.me,lt=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===uh)){if(z=y+a,z>rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=lt,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=lt,!1;ut=!0}return lt=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*st,0>x!==ut&&(lt=-lt),Math.abs(x-lt)>(b[E].height+b[E+1].height)/2?(tt.x=z,tt.y=lt,!1):(tt.x=z,tt.y=lt,!0)}function R1(a,y,x,b,E,z,tt){var rt=a.lc,st=a.me,lt=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===uh)){if(z=x-a,z<-st){if(z=x+a,z>st){tt.x=lt,tt.y=z;return}b=!0}}else if(z=x+a,z>st){if(z=x-a,z<-st){tt.x=lt,tt.y=z;return}b=!0}lt=Math.sqrt(1-Math.min(1,z*z/(st*st)))*rt,0>y!==b&&(lt=-lt),tt.x=lt,tt.y=z}wa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},wa.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new re(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},wa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Zv(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),st=0,lt=0;lt<=z;lt++){b!==void 0&&E!==void 0?st=b+lt*E/z:st=lt*Math.PI/(2*z);var ut=Math.sin(st);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return b!==void 0&&E!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function Im(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Zv(a,1,x,b,E):Zv(a,1,x))}function km(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var rt=0;;rt++){var st=Math.sin(b+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*st*st)*a,tt>=E)return rt*a}}wa.prototype.sort=function(a){switch(this.sorting){case Tm:break;case Om:a.reverse();break;case Dm:a.sort(this.comparer);break;case jm:a.sort(this.comparer),a.reverse();break;case Wp:return this.ak(kw(a));default:Fe("Invalid sorting type.")}return a};function kw(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new ai;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var tt=0;tt<a.length;tt++){var rt=a.M(tt).edgesCount;rt>E&&(E=rt,z=tt)}else for(tt=0;tt<a.length;tt++)rt=y[tt],rt>E&&(E=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)E=a.indexOf(tt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}wa.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],rt=[];b=[],E=new ai;for(var st=0,lt=0;lt<y.length;lt++){var ut=y[lt].length;if(ut===1)b.push(lt);else if(ut===0)E.add(a.M(lt));else{if(st===0)x.push(lt);else{for(var dt=ut=1/0,St=-1,Et=[],Tt=0;Tt<x.length;Tt++)0>y[x[Tt]].indexOf(x[Tt===x.length-1?0:Tt+1])&&Et.push(Tt===x.length-1?0:Tt+1);if(Et.length===0)for(Tt=0;Tt<x.length;Tt++)Et.push(Tt);for(Tt=0;Tt<Et.length;Tt++){for(var Ht=Et[Tt],de=y[lt],ie=0,Se=0;Se<tt.length;Se++){var Le=z[tt[Se]],Ee=z[rt[Se]];if(Le<Ee){var We=Le;Le=Ee}else We=Ee;if(We<Ht&&Ht<=Le)for(Ee=0;Ee<de.length;Ee++){var dn=de[Ee];0>x.indexOf(dn)||We<z[dn]&&z[dn]<Le||We===z[dn]||Le===z[dn]||ie++}else for(Ee=0;Ee<de.length;Ee++)dn=de[Ee],0>x.indexOf(dn)||We<z[dn]&&z[dn]<Le&&We!==z[dn]&&Le!==z[dn]&&ie++}for(de=ie,Se=ie=0;Se<y[lt].length;Se++)We=x.indexOf(y[lt][Se]),0<=We&&(We=Math.abs(Ht-(We>=Ht?We+1:We)),ie+=We<x.length+1-We?We:x.length+1-We);for(Se=0;Se<tt.length;Se++)We=z[tt[Se]],Le=z[rt[Se]],We>=Ht&&We++,Le>=Ht&&Le++,We>Le&&(Ee=Le,Le=We,We=Ee),Le-We<(x.length+2)/2==(We<Ht&&Ht<=Le)&&ie++;(de<ut||de===ut&&ie<dt)&&(ut=de,dt=ie,St=Ht)}for(x.splice(St,0,lt),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[lt].length;ut++)dt=y[lt][ut],0<=x.indexOf(dt)&&(tt.push(lt),rt.push(dt))}st++}}for(tt=x.length;;){for(z=!0,rt=0;rt<b.length;rt++)if(st=b[rt],lt=y[st][0],ut=x.indexOf(lt),0<=ut){for(St=dt=0;St<y[lt].length;St++)Et=x.indexOf(y[lt][St]),0>Et||Et===ut||(Tt=Et>ut?Et-ut:ut-Et,dt+=Et<ut!=Tt>tt-Tt?1:-1);x.splice(0>dt?ut:ut+1,0,st),b.splice(rt,1),rt--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Ae.Object.defineProperties(wa.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Lc&&a!==bc&&a!==ag&&a!==kf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==uh&&a!==lg&&a!==Tg&&a!==Kp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Tm&&a!==Om&&a!==Dm&&!jm&&a!==Wp||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==Um&&a!==op||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var bc=new zn(wa,"ConstantSpacing",0),ag=new zn(wa,"ConstantDistance",1),kf=new zn(wa,"ConstantAngle",2),Lc=new zn(wa,"Packed",3),uh=new zn(wa,"Clockwise",4),lg=new zn(wa,"Counterclockwise",5),Tg=new zn(wa,"BidirectionalLeft",6),Kp=new zn(wa,"BidirectionalRight",7),Tm=new zn(wa,"Forwards",8),Om=new zn(wa,"Reverse",9),Dm=new zn(wa,"Ascending",10),jm=new zn(wa,"Descending",11),Wp=new zn(wa,"Optimized",12),Um=new zn(wa,"Pythagorean",13),op=new zn(wa,"Circular",14);wa.className="CircularLayout",wa.ConstantSpacing=bc,wa.ConstantDistance=ag,wa.ConstantAngle=kf,wa.Packed=Lc,wa.Clockwise=uh,wa.Counterclockwise=lg,wa.BidirectionalLeft=Tg,wa.BidirectionalRight=Kp,wa.Forwards=Tm,wa.Reverse=Om,wa.Ascending=Dm,wa.Descending=jm,wa.Optimized=Wp,wa.Pythagorean=Um,wa.Circular=op;function T0(){this.Pl=-1/0,this.tm=this.mk=null}T0.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},T0.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},T0.className="VertexArrangement";function Vp(a){Rs.call(this,a)}nn(Vp,Rs),Vp.prototype.createVertex=function(){return new O0(this)},Vp.prototype.createEdge=function(){return new Qm(this)},Vp.className="CircularNetwork";function O0(a){Cl.call(this,a),this.u=this.Si=NaN}nn(O0,Cl);function ug(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Lc)if(x.nodeDiameterFormula===op)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===op?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Ae.Object.defineProperties(O0.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),O0.className="CircularVertex";function Qm(a){nA.call(this,a)}nn(Qm,nA),Qm.className="CircularEdge";function du(a){ha.call(this),this.ah=null,this.An=0,this.$d=new Ni(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}nn(du,ha),du.prototype.cloneProtected=function(a){ha.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},du.prototype.createNetwork=function(){return new sp(this)},du.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}H1(this,0,a)}this.network=y;var tt=b=x.iterator;b=this.arrangementSpacing;var rt=tt.count,st=!0;z=E=0;for(var lt=tr(),ut=0;ut<rt+y.vertexes.count+2;ut++)lt[ut]=null;rt=0,tt.reset();for(var dt=Mn.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,dt),st)st=!1,E=dt.x+dt.width/2,z=dt.y+dt.height/2,lt[0]=new re(dt.x+dt.width+b.width,dt.y),lt[1]=new re(dt.x,dt.y+dt.height+b.height),rt=2;else{var St=z1(lt,rt,E,z,dt.width,dt.height,b),Et=lt[St],Tt=new re(Et.x+dt.width+b.width,Et.y),Ht=new re(Et.x,Et.y+dt.height+b.height);for(St+1<rt&&lt.splice(St+1,0,null),lt[St]=Tt,lt[St+1]=Ht,rt++,St=Et.x-dt.x,Et=Et.y-dt.y,ut=ut.vertexes.iterator;ut.next();)Tt=ut.value,Tt.centerX+=St,Tt.centerY+=Et}for(Mn.free(dt),ut=y.vertexes.iterator;ut.next();)tt=ut.value,St=tt.bounds,2>rt?(E=St.x+St.width/2,z=St.y+St.height/2,lt[0]=new re(St.x+St.width+b.width,St.y),lt[1]=new re(St.x,St.y+St.height+b.height),rt=2):(st=z1(lt,rt,E,z,St.width,St.height,b),dt=lt[st],Et=new re(dt.x+St.width+b.width,dt.y),St=new re(dt.x,dt.y+St.height+b.height),st+1<rt&&lt.splice(st+1,0,null),lt[st]=Et,lt[st+1]=St,rt++,tt.centerX=dt.x+tt.width/2,tt.centerY=dt.y+tt.height/2);for(vr(lt),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}_1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},du.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},du.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function H1(a,y,x){if(Tw(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ow(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,H1(a,y+1,x),_1(a,z),Dw(a,E),y=E.vertexes.Fa(),y.sort(function(tt,rt){return tt===null||rt===null||tt===rt?0:rt.Vd-tt.Vd}),x=0;x<y.length;x++)jw(a,y[x]);a.Zf=b}}function Tw(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ow(a,y){for(var x=a.network,b=new sp(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var tt=new K1;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new ai),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;E=rt.fromVertex,tt=rt.toVertex,E.network===b&&tt.network===b?b.Bo(rt):E.network===b?(rt=E.Hj,rt===null&&(rt=new ai,E.Hj=rt),rt.add(tt),E.Vd--,E.sh+=tt.sh):tt.network===b&&(rt=tt.Hj,rt===null&&(rt=new ai,tt.Hj=rt),rt.add(E),tt.Vd--,tt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Je.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var st=E.Hj;if(st!==null&&0<st.count&&(tt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=tt))){for(var lt=rt=0,ut=st.count-tt;ut<st.count;ut++){var dt=st.M(ut),St=null;for(z=dt.edges.iterator;z.next();){var Et=z.value;if(Et.Ax(dt)===E){St=Et;break}}St!==null&&(lt+=St.length,rt+=dt.width*dt.height)}z=E.centerX,st=E.centerY,ut=E.width,dt=E.height,St=E.focus,Et=ut*dt,1>Et&&(Et=1),rt=Je.sqrt((rt+Et+lt*lt*4/(tt*tt))/Et),tt=(rt-1)*ut/2,rt=(rt-1)*dt/2,E.bounds=new Mn(z-St.x-tt,st-St.y-rt,ut+2*tt,dt+2*rt),E.focus=new re(St.x+tt,St.y+rt)}}return a.network=b,x}function Dw(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,tt=E.Tv;b.bounds=new Mn(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new re(z,tt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jw(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=Je.sqrt(z*z+tt*tt)/2;for(var rt=!1,st=tt=0,lt=0,ut=y.vertexes.iterator;ut.next();){var dt=ut.value;1>=dt.Vd?st++:(rt=!0,lt++,tt+=Math.atan2(y.centerY-dt.centerY,y.centerX-dt.centerX))}if(st!==0){for(0<lt&&(tt/=lt),lt=y=0,y=rt?2*Math.PI/(st+1):2*Math.PI/st,st%2===0&&(lt=y/2),1<x.count&&x.sort(function(Et,Tt){return Et===null||Tt===null||Et===Tt?0:Tt.width*Tt.height-Et.width*Et.height}),rt=st%2===0?0:1,x=x.iterator;x.next();)if(st=x.value,!(1<st.Vd||a.isFixed(st))){for(ut=null,dt=st.edges.iterator;dt.next();){ut=dt.value;break}dt=st.width;var St=st.height;dt=Je.sqrt(dt*dt+St*St)/2,ut=z+ut.length+dt,dt=tt+(y*(rt/2>>1)+lt)*(rt%2===0?1:-1),st.centerX=b+ut*Math.cos(dt),st.centerY=E+ut*Math.sin(dt),rt++}}}}function z1(a,y,x,b,E,z,tt){var rt=9e19,st=-1,lt=0;t:for(;lt<y;lt++){var ut=a[lt],dt=ut.x-x,St=ut.y-b;if(dt=dt*dt+St*St,dt<rt){for(St=lt-1;0<=St;St--)if(a[St].y>ut.y&&a[St].x-ut.x<E+tt.width)continue t;for(St=lt+1;St<y;St++)if(a[St].x>ut.x&&a[St].y-ut.y<z+tt.height)continue t;st=lt,rt=dt}}return st}du.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},du.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function G1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,b+E<tt?a>y+z?(x=b+E-tt,a=a-y-z,Je.sqrt(x*x+a*a)):a+x<y?(b=b+E-tt,a=a+x-y,Je.sqrt(b*b+a*a)):tt-(b+E):b>tt+rt?a>y+z?(x=b-tt-rt,a=a-y-z,Je.sqrt(x*x+a*a)):a+x<y?(b=b-tt-rt,a=a+x-y,Je.sqrt(b*b+a*a)):b-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function _1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Uw(a)););a.ah=null}function Uw(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,tt=1;tt<y.length;tt++){var rt=y[tt];rt.forceX=0,rt.forceY=0;var st=rt.centerX;rt=rt.centerY,b=Math.min(b,st),E=Math.max(E,st),x=Math.min(x,rt),z=Math.max(z,rt)}(E=E-b>z-x)?y.sort(function(Ht,de){return Ht===null||de===null||Ht===de?0:Ht.centerX-de.centerX}):y.sort(function(Ht,de){return Ht===null||de===null||Ht===de?0:Ht.centerY-de.centerY}),x=a.Zf;var lt=b=rt=0;for(z=0;z<y.length;z++){tt=y[z],b=tt.bounds,rt=tt.focus,st=b.x+rt.x;var ut=b.y+rt.y;b=tt.charge*a.electricalFieldX(st,ut),lt=tt.charge*a.electricalFieldY(st,ut),b+=tt.mass*a.gravitationalFieldX(st,ut),lt+=tt.mass*a.gravitationalFieldY(st,ut),tt.forceX+=b,tt.forceY+=lt;for(var dt=z+1;dt<y.length;dt++){var St=y[dt];if(St!==tt){b=St.bounds,rt=St.focus,lt=b.x+rt.x;var Et=b.y+rt.y;if(st-lt>x||lt-st>x){if(E)break}else if(ut-Et>x||Et-ut>x){if(!E)break}else{var Tt=G1(tt,St);1>Tt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new Rm),Tt=b.random(),rt=b.random(),st>lt?(b=Math.abs(St.bounds.right-tt.bounds.x),b=(1+b)*Tt):st<lt?(b=Math.abs(St.bounds.x-tt.bounds.right),b=-(1+b)*Tt):(b=Math.max(St.width,tt.width),b=(1+b)*Tt-b/2),ut>Et?(lt=Math.abs(St.bounds.bottom-tt.bounds.y),lt=(1+lt)*rt):st<lt?(lt=Math.abs(St.bounds.y-tt.bounds.bottom),lt=-(1+lt)*rt):(lt=Math.max(St.height,tt.height),lt=(1+lt)*rt-lt/2)):(rt=-(tt.charge*St.charge)/(Tt*Tt),b=(lt-st)/Tt*rt,lt=(Et-ut)/Tt*rt),tt.forceX+=b,tt.forceY+=lt,St.forceX-=b,St.forceY-=lt}}}}for(E=a.network.edges.iterator;E.next();)rt=E.value,x=rt.fromVertex,z=rt.toVertex,tt=x.bounds,st=x.focus,b=tt.x+st.x,tt=tt.y+st.y,ut=z.bounds,dt=z.focus,st=ut.x+dt.x,ut=ut.y+dt.y,dt=G1(x,z),1>dt?(dt=a.randomNumberGenerator,dt===null&&(a.randomNumberGenerator=dt=new Rm),rt=dt.random(),dt=dt.random(),b=(b>st?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,lt=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*dt):(rt=rt.stiffness*(dt-rt.length),b=(st-b)/dt*rt,lt=(ut-tt)/dt*rt),x.forceX+=b,x.forceY+=lt,z.forceX-=b,z.forceY-=lt;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}du.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},du.prototype.moveFixedVertex=function(){},du.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},du.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ns,y.toSpot=ns)}},du.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Mn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Mn.free(x)}x=Mn.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}Mn.free(x)},du.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},du.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},du.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},du.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},du.prototype.electricalFieldX=function(){return 0},du.prototype.electricalFieldY=function(){return 0},du.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},du.prototype.gravitationalFieldX=function(){return 0},du.prototype.gravitationalFieldY=function(){return 0},du.prototype.isFixed=function(a){return a.isFixed},Ae.Object.defineProperties(du.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&Fe('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),du.className="ForceDirectedLayout";function K1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}K1.className="ForceDirectedSubnet";function sp(a){Rs.call(this,a)}nn(sp,Rs),sp.prototype.createVertex=function(){return new D0(this)},sp.prototype.createEdge=function(){return new j0(this)},sp.className="ForceDirectedNetwork";function D0(a){Cl.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}nn(D0,Cl),Ae.Object.defineProperties(D0.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),D0.className="ForceDirectedVertex";function j0(a){nA.call(this,a),this.j=this.o=NaN}nn(j0,nA),Ae.Object.defineProperties(j0.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),j0.className="ForceDirectedEdge";function Rm(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Rm.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},Rm.className="RandomNumberGenerator";function ws(a){ha.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Km,this.Zk=Wm,this.Qk=Vm,this.bj=4,this.rk=Ym,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new re,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}nn(ws,ha),ws.prototype.cloneProtected=function(a){ha.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},ws.prototype.qb=function(a){a.classType===ws?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:Fe("Unknown enum value: "+a):ha.prototype.qb.call(this,a)},ws.prototype.createNetwork=function(){return new Xp(this)},ws.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Q0&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Q0&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var tt=0,rt=0,st=0,lt=0;if(b.link!==null){if(rt=b.link,rt===null)continue;var ut=E.node;if(tt=z.node,ut===null||tt===null)continue;var dt=rt.fromNode;st=rt.toNode;for(var St=rt.fromPort;St!==null&&!St.Ed();)St=St.panel;for(rt=rt.toPort;rt!==null&&!rt.Ed();)rt=rt.panel;if(b.rev){lt=dt;var Et=St;dt=st,St=rt,st=lt,rt=Et}var Tt=E.focus;lt=z.focus;var Ht=b.rev?z.bounds:E.bounds;Et=re.alloc(),ut!==dt?Ht.w()&&dt.isVisible()?dt.actualBounds.w()?(Ff(dt,St,bo,Et),Et.x+=dt.actualBounds.x-Ht.x,Et.y+=dt.actualBounds.y-Ht.y):(Ff(dt,St,bo,Et),Et.w()||Et.assign(Tt)):Et.assign(Tt):Ht.w()?(Ff(dt,St,bo,Et),Et.w()||Et.assign(Tt)):Et.assign(Tt),dt=b.rev?E.bounds:z.bounds,ut=re.alloc(),tt!==st?dt.w()&&st.isVisible()?st.actualBounds.w()?(Ff(st,rt,bo,ut),ut.x+=st.actualBounds.x-dt.x,ut.y+=st.actualBounds.y-dt.y):(Ff(st,rt,bo,ut),ut.w()||ut.assign(lt)):ut.assign(lt):dt.w()?(Ff(st,rt,bo,ut),ut.w()||ut.assign(lt)):ut.assign(lt),this.K===90||this.K===270?(tt=Math.round((Et.x-Tt.x)/this.kc),st=Et.x,rt=Math.round((ut.x-lt.x)/this.kc),lt=ut.x):(tt=Math.round((Et.y-Tt.y)/this.kc),st=Et.y,rt=Math.round((ut.y-lt.y)/this.kc),lt=ut.y),re.free(Et),re.free(ut),b.portFromColOffset=tt,b.portFromPos=st,b.portToColOffset=rt,b.portToPos=lt}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Et=E.layer,ut=z.layer,dt=0,Ht=b.link,Ht!==null){var de=Ht.fromPort,ie=Ht.toPort;if(de!==null&&ie!==null){var Se=Ht.fromNode;if(St=Ht.toNode,Se!==null&&St!==null){var Le=_m(this,!0),Ee=_m(this,!1),We=this.setsPortSpots?Le:Ht.computeSpot(!0,de);Tt=this.setsPortSpots?Ee:Ht.computeSpot(!1,ie);var dn=Ht.isOrthogonal;We.$c()&&We.Hf(Ee)&&Tt.$c()&&Tt.Hf(Le)?dt=0:(Le=Ht.getLinkPoint(Se,de,We,!0,dn,St,ie,re.alloc()),Ee=Ht.getLinkDirection(Se,de,Le,We,!0,dn,St,ie),re.free(Le),We.ys()||Ee!==tw(this,b,!0)?this.setsPortSpots&&Se!==null&&Se.ports.count===1&&b.rev&&(dt+=1):dt+=1,We=Ht.getLinkPoint(St,ie,Tt,!1,dn,Se,de,re.alloc()),Ht=Ht.getLinkDirection(St,ie,We,Tt,!1,dn,Se,de),re.free(We),Tt.ys()||Ht!==tw(this,b,!1)?this.setsPortSpots&&St!==null&&St.ports.count===1&&b.rev&&(dt+=2):dt+=2)}}}if(St=dt,dt=St===1||St===3,(St=St===2||St===3)&&(Tt=a.createVertex(),Tt.node=null,Tt.Dj=1,Tt.layer=Et,Tt.near=E,a.dh(Tt),E=a.Zj(E,Tt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=tt,E.portToColOffset=0,E.portFromPos=st,E.portToPos=0,E=Tt),Ht=1,dt&&Ht--,Et-ut>Ht&&0<Et){for(b.valid=!1,Tt=a.createVertex(),Tt.node=null,Tt.Dj=2,Tt.layer=Et-1,a.dh(Tt),E=a.Zj(E,Tt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=St?0:tt,E.portToColOffset=0,E.portFromPos=St?0:st,E.portToPos=0,E=Tt,Et--;Et-ut>Ht&&0<Et;)Tt=a.createVertex(),Tt.node=null,Tt.Dj=3,Tt.layer=Et-1,a.dh(Tt),E=a.Zj(E,Tt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Tt,Et--;E=a.Zj(Tt,z,b.link),E.valid=!dt,dt&&(Tt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=rt,E.portFromPos=0,E.portToPos=lt}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=hg(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),Ag(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},ws.prototype.linkMinLength=function(){return 1};function Jv(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}ws.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},ws.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Ph(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function TA(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function W1(a,y,x){var b=hg(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<E;tt++){var rt=0,st=b[tt],lt=st.near;if(lt!==null&&lt.layer===st.layer)if(st=lt.index,st>tt)for(var ut=tt+1;ut<st;ut++){var dt=b[ut];dt.near===lt&&dt.Dj===lt.Dj||rt++}else for(ut=tt-1;ut>st;ut--)dt=b[ut],dt.near===lt&&dt.Dj===lt.Dj||rt++;var St;if(0<=x)for(st=b[tt].sourceEdgesArrayAccess,lt=0;lt<st.length;lt++){var Et=st[lt];if(Et.valid&&Et.fromVertex.layer!==y)for(dt=Et.fromVertex.index,ut=Et.portToPos,Et=Et.portFromPos,St=lt+1;St<st.length;St++){var Tt=st[St];if(Tt.valid&&Tt.fromVertex.layer!==y){var Ht=Tt.fromVertex.index,de=Tt.portToPos;Tt=Tt.portFromPos,ut<de&&(dt>Ht||dt===Ht&&Et>Tt)&&rt++,de<ut&&(Ht>dt||Ht===dt&&Tt>Et)&&rt++}}}if(0>=x){for(st=b[tt].destinationEdgesArrayAccess,lt=0;lt<st.length;lt++)if(Et=st[lt],Et.valid&&Et.toVertex.layer!==y)for(dt=Et.toVertex.index,ut=Et.portToPos,Et=Et.portFromPos,St=lt+1;St<st.length;St++)Tt=st[St],Tt.valid&&Tt.toVertex.layer!==y&&(Ht=Tt.toVertex.index,de=Tt.portToPos,Tt=Tt.portFromPos,Et<Tt&&(dt>Ht||dt===Ht&&ut>de)&&rt++,Tt<Et&&(Ht>dt||Ht===dt&&de>ut)&&rt++)}for(z[tt*E+tt]=rt,st=tt+1;st<E;st++){var ie=0,Se=0;if(0<=x){rt=b[tt].sourceEdgesArrayAccess;var Le=b[st].sourceEdgesArrayAccess;for(lt=0;lt<rt.length;lt++)if(Et=rt[lt],Et.valid&&Et.fromVertex.layer!==y)for(dt=Et.fromVertex.index,Et=Et.portFromPos,St=0;St<Le.length;St++)Tt=Le[St],Tt.valid&&Tt.fromVertex.layer!==y&&(Ht=Tt.fromVertex.index,Tt=Tt.portFromPos,(dt<Ht||dt===Ht&&Et<Tt)&&Se++,(Ht<dt||Ht===dt&&Tt<Et)&&ie++)}if(0>=x){for(rt=b[tt].destinationEdgesArrayAccess,Le=b[st].destinationEdgesArrayAccess,lt=0;lt<rt.length;lt++)if(Et=rt[lt],Et.valid&&Et.toVertex.layer!==y)for(dt=Et.toVertex.index,ut=Et.portToPos,St=0;St<Le.length;St++)Tt=Le[St],Tt.valid&&Tt.toVertex.layer!==y&&(Ht=Tt.toVertex.index,de=Tt.portToPos,(dt<Ht||dt===Ht&&ut<de)&&Se++,(Ht<dt||Ht===dt&&de<ut)&&ie++)}z[tt*E+st]=ie,z[st*E+tt]=Se}}return Ag(a,y,b),z}ws.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=W1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function Hm(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=hg(b,E),tt=b.tc[E],rt=0,st=0;st<tt;st++){var lt=z[st].destinationEdgesArrayAccess;if(lt!==null)for(var ut=0;ut<lt.length;ut++){var dt=lt[ut];if(dt.valid&&dt.toVertex.layer!==E){var St=dt.fromVertex.column+dt.portFromColOffset,Et=dt.toVertex.column+dt.portToColOffset;rt+=(Math.abs(St-Et)+1)*Jv(dt)}}}Ag(b,E,z),y+=rt}return y}ws.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function $v(a,y,x){for(var b=hg(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],st=null;0>=x&&(st=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ut=0,dt=0,St=rt.near;if(St!==null&&St.layer===rt.layer&&(ut+=St.column-1,dt++),st!==null)for(St=0;St<st.length;St++){rt=st[St];var Et=rt.fromVertex;rt.valid&&!rt.rev&&Et.layer!==y&&(ut+=Et.column,dt++)}if(lt!==null)for(st=0;st<lt.length;st++)rt=lt[st],St=rt.toVertex,rt.valid&&!rt.rev&&St.layer!==y&&(ut+=St.column,dt++);z[tt]=dt===0?-1:ut/dt}return Ag(a,y,b),z}function V1(a,y,x){for(var b=hg(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],st=null;0>=x&&(st=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ut=0,dt=[],St=rt.near;if(St!==null&&St.layer===rt.layer&&(dt[ut]=St.column-1,ut++),rt=void 0,st!==null)for(St=0;St<st.length;St++){rt=st[St];var Et=rt.fromVertex;rt.valid&&!rt.rev&&Et.layer!==y&&(dt[ut]=Et.column+rt.portFromColOffset,ut++)}if(lt!==null)for(st=0;st<lt.length;st++)rt=lt[st],St=rt.toVertex,rt.valid&&!rt.rev&&St.layer!==y&&(dt[ut]=St.column+rt.portToColOffset,ut++);ut===0?z[tt]=-1:(dt.sort(function(Tt,Ht){return Tt-Ht}),lt=ut>>1,z[tt]=ut&1?dt[lt]:dt[lt-1]+dt[lt]>>1)}return Ag(a,y,b),z}function U0(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,st=rt.toVertex,lt=y.layer-st.layer;rt=a.linkMinLength(rt),lt===rt&&U0(a,st,x,b,E,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,st=rt.fromVertex,lt=st.layer-y.layer,rt=a.linkMinLength(rt),lt===rt&&U0(a,st,x,b,E,z)}}function qv(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();)qv(a,tt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)qv(a,y.value.fromVertex,x,b,E,z)}}ws.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case ny:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Qw(a)!==null;){for(E=Y1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=Y1(a);for(E=X1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=X1(a);E=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var st=0,lt=rt.destinationEdges;lt.next();)lt.value.toVertex.valid&&st++;lt=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&&lt++;(E===null||z<st-lt)&&(E=rt,z=st-lt)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case Km:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&ty(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&ty(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Q0:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Qw(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function Y1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function X1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function ty(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,ty(a,E))}y.finish=a.Kn,a.Kn++}ws.prototype.assignLayers=function(){switch(this.Zk){case iy:Z1(this);break;case ry:for(var a,y=this.network.vertexes.iterator;y.next();)a=$1(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case Wm:for(Z1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&q1(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function Z1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=J1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function J1(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,J1(a,z)+E)}y.layer=x}else x=y.layer;return x}function $1(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,$1(a,z)+E)}y.layer=x}else x=y.layer;return x}function q1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)q1(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var tt=b[z],rt=tt.fromVertex,st=tt.toVertex;tt=a.linkMinLength(tt),rt.layer-st.layer>tt&&U0(a,rt,0,-1,!0,!1)}for(U0(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,rt=0,st=null,tt=a.network.vertexes.iterator;tt.next();){var lt=tt.value;if(lt.component===1){var ut=0,dt=!1,St=lt.sourceEdgesArrayAccess;E=St.length;for(var Et=0;Et<E;Et++){var Tt=St[Et],Ht=Tt.fromVertex;ut+=1,Ht.component!==1&&(z+=1,Ht=Ht.layer-lt.layer,Tt=a.linkMinLength(Tt),b=Math.min(b,Ht-Tt))}for(St=lt.destinationEdgesArrayAccess,E=St.length,Et=0;Et<E;Et++)Tt=St[Et].toVertex,--ut,Tt.component!==1?--z:dt=!0;(st===null||ut<rt)&&!dt&&(st=lt,rt=ut)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else st.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(U0(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,rt=null,st=a.network.vertexes.iterator;st.next();)if(tt=st.value,tt.component===1){for(lt=0,ut=!1,St=tt.sourceEdgesArrayAccess,dt=St.length,Et=0;Et<dt;Et++)Tt=St[Et].fromVertex,lt+=1,Tt.component!==1?b+=1:ut=!0;for(St=tt.destinationEdgesArrayAccess,dt=St.length,Et=0;Et<dt;Et++)Tt=St[Et],Ht=Tt.toVertex,--lt,Ht.component!==1&&(--b,Ht=tt.layer-Ht.layer,Tt=a.linkMinLength(Tt),E=Math.min(E,Ht-Tt));(rt===null||lt>z)&&!ut&&(rt=tt,z=lt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else rt.component=0}}}function tw(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}ws.prototype.initializeIndices=function(){switch(this.Qk){default:case sy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Vm:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&ew(this,x);break;case oy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&nw(this,x)}};function ew(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&ew(a,b))}function nw(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&nw(a,b))}ws.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ph(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)zm(this,b,1),XA(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Ph(this)),b=this.Ia;0<=b;b--)zm(this,b,-1),XA(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Ph(this))}for(TA(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)zm(this,b,0),XA(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Ph(this)),b=this.Ia;0<=b;b--)zm(this,b,0),XA(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Ph(this))}TA(this,y);var z,tt,rt;switch(this.rk){case ay:break;case ly:for(rt=a+1;(b=this.countCrossings())<rt;)for(rt=b,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=XA(this,b,-1)||z;for(E=this.countCrossings(),E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=XA(this,b,1)||z;for(E=this.countCrossings(),E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=XA(this,b,1)||z;for(E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=XA(this,b,-1)||z;for(E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=XA(this,b,0)||z;for(E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=XA(this,b,0)||z;E>=a?TA(this,y):(a=E,y=Ph(this))}break;default:case Ym:for(x=this.Ia,tt=0,rt=a+1;(b=this.countCrossings())<rt;){for(rt=b,z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=XA(this,b,-1)||z;for(E=this.countCrossings(),E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=XA(this,b,1)||z;for(E=this.countCrossings(),E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=XA(this,b,1)||z;for(E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=XA(this,b,-1)||z;for(E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=XA(this,b,0)||z;for(E>=a?TA(this,y):(a=E,y=Ph(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=XA(this,b,0)||z;E>=a?TA(this,y):(a=E,y=Ph(this))}}TA(this,y)};function zm(a,y,x){var b=hg(a,y),E=a.tc[y],z=V1(a,y,x),tt=$v(a,y,x);for(x=0;x<E;x++)tt[x]===-1&&(tt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var rt=!0,st;rt;)for(rt=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(rt=!0,st=z[x],z[x]=z[x+1],z[x+1]=st,st=tt[x],tt[x]=tt[x+1],tt[x+1]=st,st=b[x],b[x]=b[x+1],b[x+1]=st);for(x=z=0;x<E;x++)st=b[x],st.index=x,z+=a.nodeMinColumnSpace(st,!0),st.column=z,z+=1,z+=a.nodeMinColumnSpace(st,!1);Ag(a,y,b)}function XA(a,y,x){var b=hg(a,y),E=a.tc[y];x=W1(a,y,x);var z,tt=[];for(z=0;z<E;z++)tt[z]=-1;var rt=[];for(z=0;z<E;z++)rt[z]=-1;for(var st=!1,lt=!0;lt;)for(lt=!1,z=0;z<E-1;z++){var ut=x[b[z].index*E+b[z+1].index],dt=x[b[z+1].index*E+b[z].index],St=0,Et=0,Tt=b[z].column,Ht=b[z+1].column,de=a.nodeMinColumnSpace(b[z],!0),ie=a.nodeMinColumnSpace(b[z],!1),Se=a.nodeMinColumnSpace(b[z+1],!0),Le=a.nodeMinColumnSpace(b[z+1],!1);de=Tt-de+Se,ie=Ht-ie+Le;var Ee=b[z].sourceEdges.iterator;for(Ee.reset();Ee.next();)if(Se=Ee.value,Le=Se.fromVertex,Se.valid&&Le.layer===y){for(Se=0;b[Se]!==Le;)Se++;Se<z&&(St+=2*(z-Se),Et+=2*(z+1-Se)),Se===z+1&&(St+=1),Se>z+1&&(St+=4*(Se-z),Et+=4*(Se-(z+1)))}for(Ee=b[z].destinationEdges.iterator,Ee.reset();Ee.next();)if(Se=Ee.value,Le=Se.toVertex,Se.valid&&Le.layer===y){for(Se=0;b[Se]!==Le;)Se++;Se===z+1&&(Et+=1)}for(Ee=b[z+1].sourceEdges.iterator,Ee.reset();Ee.next();)if(Se=Ee.value,Le=Se.fromVertex,Se.valid&&Le.layer===y){for(Se=0;b[Se]!==Le;)Se++;Se<z&&(St+=2*(z+1-Se),Et+=2*(z-Se)),Se===z&&(Et+=1),Se>z+1&&(St+=4*(Se-(z+1)),Et+=4*(Se-z))}for(Ee=b[z+1].destinationEdges.iterator,Ee.reset();Ee.next();)if(Se=Ee.value,Le=Se.toVertex,Se.valid&&Le.layer===y){for(Se=0;b[Se]!==Le;)Se++;Se===z&&(St+=1)}Se=Le=0,Ee=tt[b[z].index];var We=rt[b[z].index],dn=tt[b[z+1].index],Di=rt[b[z+1].index];Ee!==-1&&(Le+=Math.abs(Ee-Tt),Se+=Math.abs(Ee-ie)),We!==-1&&(Le+=Math.abs(We-Tt),Se+=Math.abs(We-ie)),dn!==-1&&(Le+=Math.abs(dn-Ht),Se+=Math.abs(dn-de)),Di!==-1&&(Le+=Math.abs(Di-Ht),Se+=Math.abs(Di-de)),(Et<St-.5||Et===St&&dt<ut-.5||Et===St&&dt===ut&&Se<Le-.5)&&(lt=st=!0,b[z].column=ie,b[z+1].column=de,ut=b[z],b[z]=b[z+1],b[z+1]=ut)}for(z=0;z<E;z++)b[z].index=z;return Ag(a,y,b),st}ws.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Vw)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Yp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Yp(this,y,-1)||x;x=Yp(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)ey(this,y,1);for(y=this.Md-1;0<=y;y--)ey(this,y,-1);ey(this,this.Md,0)}if(a&&(iw(this,-1),iw(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Yp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Yp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Yp(this,y,0)||x}}else Gw(this)};function Yp(a,y,x){for(var b=!1;Rw(a,y,x);)b=!0;return b}function Rw(a,y,x){var b,E=hg(a,y),z=a.tc[y],tt=$v(a,y,-1);if(0<x)for(b=0;b<z;b++)tt[b]=-1;var rt=$v(a,y,1);if(0>x)for(b=0;b<z;b++)rt[b]=-1;for(var st=!1,lt=!0;lt;)for(lt=!1,b=0;b<z;b++){var ut=E[b].column,dt=a.nodeMinColumnSpace(E[b],!0),St=a.nodeMinColumnSpace(E[b],!1),Et=0;0>b-1||ut-E[b-1].column-1>dt+a.nodeMinColumnSpace(E[b-1],!1)?Et=ut-1:Et=ut,dt=b+1>=z||E[b+1].column-ut-1>St+a.nodeMinColumnSpace(E[b+1],!0)?ut+1:ut;var Tt=St=0,Ht=0;if(0>=x)for(var de=E[b].sourceEdges.iterator;de.next();){var ie=de.value,Se=ie.fromVertex;if(ie.valid&&Se.layer!==y){var Le=Jv(ie),Ee=ie.portFromColOffset;ie=ie.portToColOffset,Se=Se.column,St+=(Math.abs(ut+ie-(Se+Ee))+1)*Le,Tt+=(Math.abs(Et+ie-(Se+Ee))+1)*Le,Ht+=(Math.abs(dt+ie-(Se+Ee))+1)*Le}}if(0<=x)for(de=E[b].destinationEdges.iterator;de.next();)ie=de.value,Se=ie.toVertex,ie.valid&&Se.layer!==y&&(Le=Jv(ie),Ee=ie.portFromColOffset,ie=ie.portToColOffset,Se=Se.column,St+=(Math.abs(ut+Ee-(Se+ie))+1)*Le,Tt+=(Math.abs(Et+Ee-(Se+ie))+1)*Le,Ht+=(Math.abs(dt+Ee-(Se+ie))+1)*Le);ie=Ee=Le=0,de=tt[E[b].index],Se=rt[E[b].index],de!==-1&&(Le+=Math.abs(de-ut),Ee+=Math.abs(de-Et),ie+=Math.abs(de-dt)),Se!==-1&&(Le+=Math.abs(Se-ut),Ee+=Math.abs(Se-Et),ie+=Math.abs(Se-dt)),Tt<St||Tt===St&&Ee<Le?(lt=st=!0,E[b].column=Et):(Ht<St||Ht===St&&ie<Le)&&(lt=st=!0,E[b].column=dt)}return Ag(a,y,E),a.normalize(),st}function ey(a,y,x){var b=hg(a,y),E=a.tc[y],z=V1(a,y,x),tt=[];for(x=0;x<E;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var rt=b[x].column,st=a.nodeMinColumnSpace(b[x],!0),lt=a.nodeMinColumnSpace(b[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===E-1)ut=rt;else if(x===0){var dt=b[x+1].column;dt-rt===lt+a.nodeMinColumnSpace(b[x+1],!0)?ut=rt-1:ut=rt}else x===E-1?(dt=b[x-1].column,ut=rt-dt===st+a.nodeMinColumnSpace(b[x-1],!1)?rt+1:rt):(dt=b[x-1].column,st=dt+a.nodeMinColumnSpace(b[x-1],!1)+st+1,dt=b[x+1].column,lt=dt-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ut=(st+lt)/2|0);else x===0&&x===E-1?ut=tt[x]:x===0?(dt=b[x+1].column,lt=dt-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ut=Math.min(tt[x],lt)):x===E-1?(dt=b[x-1].column,st=dt+a.nodeMinColumnSpace(b[x-1],!1)+st+1,ut=Math.max(tt[x],st)):(dt=b[x-1].column,st=dt+a.nodeMinColumnSpace(b[x-1],!1)+st+1,dt=b[x+1].column,lt=dt-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,st<tt[x]&&tt[x]<lt?ut=tt[x]:st>=tt[x]?ut=st:lt<=tt[x]&&(ut=lt));ut!==rt&&(z=!0,b[x].column=ut)}Ag(a,y,b),a.normalize()}function Hw(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),tt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+tt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function zw(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){b=tt.value;var rt=b.column-a.nodeMinColumnSpace(b,!0),st=b.column+a.nodeMinColumnSpace(b,!1);rt<=y&&st>=y&&(E[b.layer]=!0),rt<=x&&st>=x&&(z[b.layer]=!0)}for(rt=!0,x=!1,b=0;b<=a.Ia;b++)rt=rt&&!(E[b]&&z[b]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function iw(a,y){for(var x=0;x<=a.Ra;x++)for(;Hw(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;zw(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Ph(a),z=Hm(a);for(b=z+1;z<b;){b=z,rw(a,x,1);var tt=Hm(a);tt>z?TA(a,E):tt<z&&(z=tt,E=Ph(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Ph(a),z=Hm(a),b=z+1;z<b;)b=z,rw(a,x,-1),tt=Hm(a),tt>z?TA(a,E):tt<z&&(z=tt,E=Ph(a));a.normalize()}function rw(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(qv(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var tt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),st=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=st;rt++)E[tt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt+1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt+1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt-1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt-1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(st=tt[tt.length-1],tt.pop(),E[st])for(E[st]=!1,z=0;z<a.le;z++)y[st*a.le+z]&&tt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Gw(a){for(var y=tr(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new ei,_w(y,x);var z=null,tt=null,rt=null,st=null,lt=(a.ve&1)!==0,ut=(a.ve&2)!==0,dt=(a.ve&4)!==0,St=(a.ve&8)!==0;for(lt&&(a.verticalAlignment(y,x,!0),z=Gm(a,y,!0,!1)),y.reverse(),dt&&(a.verticalAlignment(y,x,!1),rt=Gm(a,y,!1,!1)),b=fs(y),E=b.next();!E.done;E=b.next())E.value.reverse();St&&(a.verticalAlignment(y,x,!1),st=Gm(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=Gm(a,y,!0,!0)),vr(y),a.u(z,tt,rt,st),a.network.vertexes.each(function(Et){var Tt=tr();lt&&Tt.push(z.get(Et)),ut&&Tt.push(tt.get(Et)),dt&&Tt.push(rt.get(Et)),St&&Tt.push(st.get(Et)),Tt.sort(function(de,ie){return de-ie});var Ht=Tt.length;Ht=(Tt[Math.floor((Ht-1)/2)]+Tt[Math.ceil((Ht-1)/2)])/2,vr(Tt),Et.zc=Ht})}function _w(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,tt=a[b],rt=a[b+1],st=0;z<rt.length;st++){var lt=rt[st];t:{if(lt.node===null){var ut=uy(lt);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var dt=ut;if(st===rt.length-1||dt){for(ut=tt.length-1,dt&&(ut=uy(lt)[0].index);z<=st;){if(lt=rt[z],!lt.bo){dt=[];for(var St=fs(lt.sourceEdgesArrayAccess),Et=St.next();!Et.done;Et=St.next())Et=Et.value,Et.valid&&dt.push(Et);lt.bo=dt}for(lt=fs(lt.bo),dt=lt.next();!dt.done;dt=lt.next())dt=dt.value,St=dt.fromVertex.index,(St<E||St>ut)&&y.add(dt);z++}E=ut}}}ws.prototype.verticalAlignment=function(a,y,x){Kw(a),a=fs(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=fs(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var tt=x?uy(z):Yw(z),rt=tt.length;if(0<rt){tt.sort(function(dt,St){return dt.vi-St.vi});var st=(rt-1)/2;for(rt=Math.floor(st),st=Math.ceil(st);rt<=st;rt++)if(z.align===z){var lt=tt[rt],ut=void 0;ut=x?Xm(lt,z):Xm(z,lt),!y.contains(ut)&&E<lt.vi&&(lt.align=z,z.root=lt.root,z.align=lt.root,E=lt.vi)}}}}};function Kw(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function Gm(a,y,x,b){for(var E=a.K===90||a.K===270,z=fs(y),tt=z.next();!tt.done;tt=z.next()){var rt=fs(tt.value);for(tt=rt.next();!tt.done;tt=rt.next())tt=tt.value,tt.sd=tt,tt.shift=1/0,tt.zc=NaN,tt.qg=0}for(tt=a.K===90||a.K===270,z=fs(y),rt=z.next();!rt.done;rt=z.next()){rt=fs(rt.value);for(var st=rt.next();!st.done;st=rt.next())if(st=st.value,st.root===st){for(var lt=0,ut=st;ut.align!==st;){var dt=ut.align,St=tt?ut.width:ut.height,Et=tt?dt.width:dt.height;if(x){var Tt=Xm(ut,dt),Ht=Tt.portFromPos,de=Tt.portToPos;Tt.link!==null&&(ut.node&&ut.node!==Tt.link.fromNode&&(Ht=tt?ut.focusX:ut.focusY),dt.node&&dt.node!==Tt.link.toNode&&(de=tt?dt.focusX:dt.focusY))}else Tt=Xm(dt,ut),Ht=Tt.portToPos,de=Tt.portFromPos,Tt.link!==null&&(ut.node&&ut.node!==Tt.link.toNode&&(Ht=tt?ut.focusX:ut.focusY),dt.node&&dt.node!==Tt.link.fromNode&&(de=tt?dt.focusX:dt.focusY));St=b?ut.qg+(St-Ht)-(Et-de):ut.qg+Ht-de,dt.qg=St,lt=Math.min(lt,St),ut=ut.align}ut=st;do ut.qg=ut.qg-lt,ut=ut.align;while(ut!==st)}}for(x=fs(y),tt=x.next();!tt.done;tt=x.next())for(z=fs(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ow(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(rt=sw(z,y),rt.sd.shift=Math.min(rt.sd.shift,z.sd.shift+z.zc+z.qg-(rt.zc+rt.qg+(E?rt.width:rt.height)+a.columnSpacing)));rt=z.vi+1}while(tt<y.length&&rt<y[tt].length&&z.sd===y[tt][rt].sd)}for(a=new Ji,y=fs(y),tt=y.next();!tt.done;tt=y.next())for(x=fs(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=E?tt.width:tt.height,a.add(tt,b?-tt.zc-z:tt.zc);return a}function ow(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=sw(b,x),z=E.root;ow(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+tt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function sw(a,y){var x=a.Tz;return a=a.vi,1>a&&Fe("Could not determine previous vertex in layer"),y[x][a-1]}ws.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=tr(),E=tr(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Ww(this,y[tt],b,E,tt);rt<z&&(x=tt,z=rt)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?b[x]-b[tt]:E[x]-E[tt],z.delta!==0&&y[tt].each(function(st){return function(lt){lt.value+=st.delta}}(z)));vr(b),vr(E)};function Ww(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var st=rt.key;rt=rt.value,st=a.K===90||a.K===270?st.width:st.height,rt<z&&(z=rt),rt+st>tt&&(tt=rt+st)}),x[E]=z,b[E]=tt,tt-z}ws.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=_m(this,!0),y=_m(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function _m(a,y){return a.K===270?y?ga:ol:a.K===90?y?ol:ga:a.K===180?y?Zs:Ba:y?Ba:Zs}ws.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,tt=E=1/0,rt=-1/0;a.next();){var st=a.value,lt=st.layer,ut=st.column|0;b?(tt=y.x+this.kc*ut,lt=this.Kd[lt]):(tt=this.Kd[lt],lt=y.y+this.kc*ut),st.centerX=tt,st.centerY=lt,x&&isFinite(st.zc)&&(b?st.node?st.x=y.x+st.zc:st.centerX=y.x+st.zc:st.node?st.y=y.y+st.zc:st.centerY=y.y+st.zc),z=Math.min(st.x,z),E=Math.min(st.y,E),b?(tt=z,rt=Math.max(rt,st.bounds.right)):(tt=E,rt=Math.max(rt,st.bounds.bottom))}for(this.xw=rt-tt,z=y.x-z,y=y.y-E,this.Rf=new re(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},ws.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new Mn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Mn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Mn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Mn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Mn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Mn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Mn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Mn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},ws.prototype.commitLayers=function(){},ws.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,tt=b.fromPort,rt=b.toPort;if(E!==null){var st=E.findVisibleNode();st!==null&&st!==E&&(E=st,tt=st.port)}z!==null&&(st=z.findVisibleNode(),st!==null&&st!==z&&(z=st,rt=st.port));var lt=y.computeSpot(!0,tt);st=y.computeSpot(!1,rt);var ut=x.fromVertex,dt=x.toVertex;if(x.valid)y.curve===xA&&y.pointsCount===4&&(ut.column===dt.column&&this.alignOption===0?(x=y.getLinkPoint(E,tt,lt,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,st,!1,!1,E,tt),x.w()||x.set(E.actualBounds.center),rt.w()||rt.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+rt.x)/3,(2*x.y+rt.y)/3),y.yf((x.x+2*rt.x)/3,(x.y+2*rt.y)/3),y.yf(rt.x,rt.y)):(x=b=!1,tt!==null&&lt===Pa&&(b=!0),rt!==null&&st===Pa&&(x=!0),(b||x)&&(st=null,b&&(st=y.getLinkPointFromPoint(E,tt,tt.ga(bo),y.i(3),!0),st.w()||st.set(E.actualBounds.center),y.L(0,st.x,st.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,rt,rt.ga(bo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),st&&(z=y.i(2),y.L(1,(2*st.x+z.x)/3,(2*st.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ut.layer===dt.layer)y.zf();else{var St=!1,Et=!1,Tt=this.ie,Ht=y.firstPickIndex+1;if(y.isOrthogonal){Et=!0;var de=y.pointsCount;4<de&&y.points.removeRange(2,de-3)}else if(y.curve===xA)St=!0,de=y.pointsCount,4<de&&y.points.removeRange(2,de-3),de===4&&(Ht=2);else{de=y.pointsCount;var ie=lt===Pa,Se=st===Pa;2<de&&ie&&Se?y.points.removeRange(1,de-2):3<de&&ie&&!Se?y.points.removeRange(1,de-3):3<de&&!ie&&Se?y.points.removeRange(2,de-2):4<de&&!ie&&!Se&&y.points.removeRange(2,de-3)}if(x.rev){for(;dt!==null&&ut!==dt;){var Le=de=null;for(ie=dt.sourceEdges.iterator;ie.next()&&(Se=ie.value,Se.link!==x.link||(de=Se.fromVertex,Le=Se.toVertex,de.node!==null)););if(de===null)break;if(de!==ut){ie=y.i(Ht-1).x,Se=y.i(Ht-1).y;var Ee=de.centerX,We=de.centerY;if(Et)this.K===180||this.K===0?Ht===y.firstPickIndex+1?(y.m(Ht++,ie,Se),y.m(Ht++,ie,We)):(Le!==null?Le.centerY:Se)!==We&&(Le=this.Ta[de.layer-1]+this.Rf.x,y.m(Ht++,Le,Se),y.m(Ht++,Le,We)):Ht===y.firstPickIndex+1?(y.m(Ht++,ie,Se),y.m(Ht++,Ee,Se)):(Le!==null?Le.centerX:ie)!==Ee&&(Le=this.Ta[de.layer-1]+this.Rf.y,y.m(Ht++,ie,Le),y.m(Ht++,Ee,Le));else if(Ht===y.firstPickIndex+1){Le=Math.max(10,this.he[dt.layer]);var dn=Math.max(10,this.Ld[dt.layer]);if(St)this.K===180?Ee<=dt.bounds.x?(dt=dt.bounds.x,y.m(Ht++,dt-Le,We),y.m(Ht++,dt,We),y.m(Ht++,dt+dn,We)):(y.m(Ht++,Ee-Le,We),y.m(Ht++,Ee,We),y.m(Ht++,Ee+dn,We)):this.K===90?We>=dt.bounds.bottom?(dt=dt.bounds.y+dt.bounds.height,y.m(Ht++,Ee,dt+dn),y.m(Ht++,Ee,dt),y.m(Ht++,Ee,dt-Le)):(y.m(Ht++,Ee,We+dn),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We-Le)):this.K===270?We<=dt.bounds.y?(dt=dt.bounds.y,y.m(Ht++,Ee,dt-Le),y.m(Ht++,Ee,dt),y.m(Ht++,Ee,dt+dn)):(y.m(Ht++,Ee,We-Le),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We+dn)):this.K===0&&(Ee>=dt.bounds.right?(dt=dt.bounds.x+dt.bounds.width,y.m(Ht++,dt+dn,We),y.m(Ht++,dt,We),y.m(Ht++,dt-Le,We)):(y.m(Ht++,Ee+dn,We),y.m(Ht++,Ee,We),y.m(Ht++,Ee-Le,We)));else{y.m(Ht++,ie,Se);var Di=0;this.K===180||this.K===0?((this.K===180?Ee>=dt.bounds.right:Ee<=dt.bounds.x)&&(Di=(this.K===0?-Le:dn)/2),y.m(Ht++,ie+Di,We)):((this.K===270?We>=dt.bounds.bottom:We<=dt.bounds.y)&&(Di=(this.K===90?-Le:dn)/2),y.m(Ht++,Ee,Se+Di)),y.m(Ht++,Ee,We)}}else Le=Math.max(10,this.he[de.layer]),dn=Math.max(10,this.Ld[de.layer]),St?this.K===180?(y.m(Ht++,Ee-Le-Tt,We),y.m(Ht++,Math.min(Ee-Le+Tt/2,Ee),We),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We),y.m(Ht++,Math.max(Ee+dn-Tt/2,Ee),We),y.m(Ht++,Ee+dn+Tt,We)):this.K===90?(y.m(Ht++,Ee,We+dn+Tt),y.m(Ht++,Ee,Math.max(We+dn-Tt/2,We)),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We),y.m(Ht++,Ee,Math.min(We-Le+Tt/2,We)),y.m(Ht++,Ee,We-Le-Tt)):this.K===270?(y.m(Ht++,Ee,We-Le-Tt),y.m(Ht++,Ee,Math.min(We-Le+Tt/2,We)),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We),y.m(Ht++,Ee,Math.max(We+dn-Tt/2,We)),y.m(Ht++,Ee,We+dn+Tt)):(y.m(Ht++,Ee+dn+Tt,We),y.m(Ht++,Math.max(Ee+dn-Tt/2,Ee),We),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We),y.m(Ht++,Math.min(Ee-Le+Tt/2,Ee),We),y.m(Ht++,Ee-Le-Tt,We)):y.m(Ht++,Ee,We)}dt=de}(rt===null||lt!==Pa||Et)&&(ie=y.i(Ht-1).x,Se=y.i(Ht-1).y,Ee=y.i(Ht).x,We=y.i(Ht).y,Et?(Tt=this.Ld[ut.layer],this.K===180||this.K===0?(Et=Se,Et>=ut.bounds.y&&Et<=ut.bounds.bottom&&(this.K===180?Ee>=ut.bounds.x:Ee<=ut.bounds.right)&&(dt=ut.centerX+(this.K===180?-Tt:Tt),Et<ut.bounds.y+ut.bounds.height/2?Et=ut.bounds.y-this.kc/2:Et=ut.bounds.bottom+this.kc/2,y.m(Ht++,dt,Se),y.m(Ht++,dt,Et)),y.m(Ht++,Ee,Et)):(Et=ie,Et>=ut.bounds.x&&Et<=ut.bounds.right&&(this.K===270?We>=ut.bounds.y:We<=ut.bounds.bottom)&&(dt=ut.centerY+(this.K===270?-Tt:Tt),Et<ut.bounds.x+ut.bounds.width/2?Et=ut.bounds.x-this.kc/2:Et=ut.bounds.right+this.kc/2,y.m(Ht++,ie,dt),y.m(Ht++,Et,dt)),y.m(Ht++,Et,We)),y.m(Ht++,Ee,We)):St?(Le=Math.max(10,this.he[ut.layer]),dn=Math.max(10,this.Ld[ut.layer]),this.K===180&&Ee>=ut.bounds.x?(dt=ut.bounds.x+ut.bounds.width,y.L(Ht-2,dt,Se),y.L(Ht-1,dt+dn,Se)):this.K===90&&We<=ut.bounds.bottom?(dt=ut.bounds.y,y.L(Ht-2,ie,dt),y.L(Ht-1,ie,dt-Le)):this.K===270&&We>=ut.bounds.y?(dt=ut.bounds.y+ut.bounds.height,y.L(Ht-2,ie,dt),y.L(Ht-1,ie,dt+dn)):this.K===0&&Ee<=ut.bounds.right&&(dt=ut.bounds.x,y.L(Ht-2,dt,Se),y.L(Ht-1,dt-Le,Se))):(Le=Math.max(10,this.he[ut.layer]),dn=Math.max(10,this.Ld[ut.layer]),Et=0,this.K===180||this.K===0?((this.K===180?Ee<=ut.bounds.x:Ee>=ut.bounds.right)&&(Et=(this.K===0?dn:-Le)/2),y.m(Ht++,Ee+Et,Se)):((this.K===270?We<=ut.bounds.y:We>=ut.bounds.bottom)&&(Et=(this.K===90?dn:-Le)/2),y.m(Ht++,ie,We+Et)),y.m(Ht++,Ee,We)))}else{for(;ut!==null&&ut!==dt;){for(Le=de=null,ut=ut.destinationEdges.iterator;ut.next()&&(ie=ut.value,ie.link!==x.link||(de=ie.toVertex,Le=ie.fromVertex,Le.node!==null&&(Le=null),de.node!==null)););if(de===null)break;de!==dt&&(ie=y.i(Ht-1).x,Se=y.i(Ht-1).y,Ee=de.centerX,We=de.centerY,Et?this.K===180||this.K===0?(Le!==null?Le.centerY:Se)!==We&&(Le=this.Ta[de.layer]+this.Rf.x,Ht===y.firstPickIndex+1&&(Le=this.K===0?Math.max(Le,ie):Math.min(Le,ie)),y.m(Ht++,Le,Se),y.m(Ht++,Le,We)):(Le!==null?Le.centerX:ie)!==Ee&&(Le=this.Ta[de.layer]+this.Rf.y,Ht===y.firstPickIndex+1&&(Le=this.K===90?Math.max(Le,Se):Math.min(Le,Se)),y.m(Ht++,ie,Le),y.m(Ht++,Ee,Le)):(Le=Math.max(10,this.he[de.layer]),dn=Math.max(10,this.Ld[de.layer]),St?this.K===180?(y.m(Ht++,Ee+dn+Tt,We),y.m(Ht++,Math.max(Ee+dn-Tt/2,Ee),We),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We),y.m(Ht++,Math.min(Ee-Le+Tt/2,Ee),We),y.m(Ht++,Ee-Le-Tt,We)):this.K===90?(y.m(Ht++,Ee,We-Le-Tt),y.m(Ht++,Ee,Math.min(We-Le+Tt/2,We)),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We),y.m(Ht++,Ee,Math.max(We+dn-Tt/2,We)),y.m(Ht++,Ee,We+dn+Tt)):this.K===270?(y.m(Ht++,Ee,We+dn+Tt),y.m(Ht++,Ee,Math.max(We+dn-Tt/2,We)),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We),y.m(Ht++,Ee,Math.min(We-Le+Tt/2,We)),y.m(Ht++,Ee,We-Le-Tt)):(y.m(Ht++,Ee-Le-Tt,We),y.m(Ht++,Math.min(Ee-Le+Tt/2,Ee),We),y.m(Ht++,Ee,We),y.m(Ht++,Ee,We),y.m(Ht++,Math.max(Ee+dn-Tt/2,Ee),We),y.m(Ht++,Ee+dn+Tt,We)):this.K===180?(y.m(Ht++,Ee+dn,We),y.m(Ht++,Ee-Le,We)):this.K===90?(y.m(Ht++,Ee,We-Le),y.m(Ht++,Ee,We+dn)):this.K===270?(y.m(Ht++,Ee,We+dn),y.m(Ht++,Ee,We-Le)):(y.m(Ht++,Ee-Le,We),y.m(Ht++,Ee+dn,We)))),ut=de}Et&&(ie=y.i(Ht-1).x,Se=y.i(Ht-1).y,Ee=y.i(Ht).x,We=y.i(Ht).y,this.K===180||this.K===0?Se!==We&&(Le=this.K===0?Math.min(Math.max((Ee+ie)/2,this.Ta[dt.layer]+this.Rf.x),Ee):Math.max(Math.min((Ee+ie)/2,this.Ta[dt.layer]+this.Rf.x),Ee),y.m(Ht++,Le,Se),y.m(Ht++,Le,We)):ie!==Ee&&(Le=this.K===90?Math.min(Math.max((We+Se)/2,this.Ta[dt.layer]+this.Rf.y),We):Math.max(Math.min((We+Se)/2,this.Ta[dt.layer]+this.Rf.y),We),y.m(Ht++,ie,Le),y.m(Ht++,Ee,Le)))}b!==null&&St&&4<=y.pointsCount&&(tt!==null&&(tt=lt===Pa?y.getLinkPointFromPoint(E,tt,tt.ga(bo),y.i(3),!0):y.i(0),lt===Pa&&(lt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+lt.x)/2,lt.y),y.L(2,b.x,(lt.y+b.y)/2)):(y.L(1,lt.x,(tt.y+lt.y)/2),y.L(2,(lt.x+b.x)/2,b.y))),tt.w()||tt.set(E.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(E=st===Pa?y.getLinkPointFromPoint(z,rt,rt.ga(bo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),st===Pa&&(rt=y.i(y.pointsCount-3),st=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,st.x,(rt.y+st.y)/2)):(y.L(y.pointsCount-2,rt.x,(E.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+st.x)/2,st.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},ws.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new ai,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),tt=b.i(E+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var rt=new cg;rt.layer=Math.floor(z.y/2);var st=b.i(0),lt=b.i(b.pointsCount-1);if(rt.first=st.x*st.x+st.y,rt.jc=lt.x*lt.x+lt.y,rt.rd=Math.min(z.x,tt.x),rt.Ic=Math.max(z.x,tt.x),rt.index=E,rt.link=b,E+2<b.pointsCount){st=b.i(E-1),lt=b.i(E+2);var ut=0;st.y<z.y?ut=lt.y<z.y?3:z.x<tt.x?2:1:st.y>z.y&&(ut=lt.y>z.y?0:tt.x<z.x?2:1),rt.j=ut}x.push(rt)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,st=z;st<E;st++)lt=x[st],lt.jc!==rt&&(ut++,rt=lt.jc);this.zi(x,this.Ux,z,z+tt);var dt=1;for(rt=x[z].first,st=z;st<E;st++)lt=x[st],lt.first!==rt&&(dt++,rt=lt.first);for(st=!0,lt=dt,ut<dt?(st=!1,lt=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,dt=z;dt<E;dt++){var St=x[dt];(st?St.first:St.jc)!==rt&&(ut++,rt=st?St.first:St.jc);var Et=St.link;z=Et.i(St.index),tt=Et.i(St.index+1);var Tt=this.linkSpacing*(ut-(lt-1)/2);y++,Et.uh(),Et.L(St.index,z.x,z.y+Tt),Et.L(St.index+1,tt.x,tt.y+Tt),Et.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),tt=b.i(E+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new cg,rt.layer=Math.floor(z.x/2),st=b.i(0),lt=b.i(b.pointsCount-1),rt.first=st.x+st.y*st.y,rt.jc=lt.x+lt.y*lt.y,rt.rd=Math.min(z.y,tt.y),rt.Ic=Math.max(z.y,tt.y),rt.index=E,rt.link=b,E+2<b.pointsCount&&(st=b.i(E-1),lt=b.i(E+2),ut=0,st.x<z.x?ut=lt.x<z.x?3:z.y<tt.y?2:1:st.x>z.x&&(ut=lt.x>z.x?0:tt.y<z.y?2:1),rt.j=ut),x.push(rt));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,st=z;st<E;st++)lt=x[st],lt.jc!==rt&&(ut++,rt=lt.jc);for(this.zi(x,this.Ux,z,z+tt),dt=1,rt=x[z].first,st=z;st<E;st++)lt=x[st],lt.first!==rt&&(dt++,rt=lt.first);for(st=!0,lt=dt,ut<dt?(st=!1,lt=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,dt=z;dt<E;dt++)St=x[dt],(st?St.first:St.jc)!==rt&&(ut++,rt=st?St.first:St.jc),Et=St.link,z=Et.i(St.index),tt=Et.i(St.index+1),Tt=this.linkSpacing*(ut-(lt-1)/2),y++,Et.uh(),Et.L(St.index,z.x+Tt,z.y),Et.L(St.index+1,tt.x+Tt,tt.y),Et.zf()}z=E}a=b}}}},jt=ws.prototype,jt.Vx=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},jt.Ux=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},jt.Js=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},jt.B=function(a,y){return a-=y,-1<a&&1>a},jt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Fe("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function hg(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function Ag(a,y,x){a.He[a.tc[y]]=x}Ae.Object.defineProperties(ws.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):Fe("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==ny&&a!==Km&&a!==Q0||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Wm&&a!==iy&&a!==ry||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Vm&&a!==oy&&a!==sy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==ay&&a!==Ym&&a!==ly||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Km=new zn(ws,"CycleDepthFirst",0),ny=new zn(ws,"CycleGreedy",1),Q0=new zn(ws,"CycleFromLayers",2),Wm=new zn(ws,"LayerOptimalLinkLength",0),iy=new zn(ws,"LayerLongestPathSink",1),ry=new zn(ws,"LayerLongestPathSource",2),Vm=new zn(ws,"InitDepthFirstOut",0),oy=new zn(ws,"InitDepthFirstIn",1),sy=new zn(ws,"InitNaive",2),ay=new zn(ws,"AggressiveNone",0),Ym=new zn(ws,"AggressiveLess",1),ly=new zn(ws,"AggressiveMore",2),Vw=8;ws.className="LayeredDigraphLayout",ws.CycleDepthFirst=Km,ws.CycleGreedy=ny,ws.CycleFromLayers=Q0,ws.LayerOptimalLinkLength=Wm,ws.LayerLongestPathSink=iy,ws.LayerLongestPathSource=ry,ws.InitDepthFirstOut=Vm,ws.InitDepthFirstIn=oy,ws.InitNaive=sy,ws.AggressiveNone=ay,ws.AggressiveLess=Ym,ws.AggressiveMore=ly,ws.PackNone=0,ws.PackExpand=1,ws.PackStraighten=2,ws.PackMedian=4,ws.PackAll=15,ws.AlignNone=0,ws.AlignUpperLeft=1,ws.AlignUpperRight=2,ws.AlignLowerLeft=4,ws.AlignLowerRight=8,ws.AlignAll=15;function cg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}cg.className="SegInfo";function Xp(a){Rs.call(this,a)}nn(Xp,Rs),Xp.prototype.createVertex=function(){return new OA(this)},Xp.prototype.createEdge=function(){return new R0(this)},Xp.className="LayeredDigraphNetwork";function OA(a){Cl.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}nn(OA,Cl);function aw(a,y){return a.index-y.index}function Xm(a,y){if(!a.$n){for(var x=[],b=fs(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=fs(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Fe("Unable to find destination edge to given vertex")}function uy(a){if(!a.co){for(var y=[],x=fs(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(aw),a.co=y}return a.co}function Yw(a){if(!a.ao){for(var y=[],x=fs(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(aw),a.ao=y}return a.ao}OA.prototype.Cl=function(a){Cl.prototype.Cl.call(this,a),this.bo=this.co=null},OA.prototype.Kl=function(a){Cl.prototype.Kl.call(this,a),this.bo=this.co=null},OA.prototype.zl=function(a){Cl.prototype.zl.call(this,a),this.$n=this.ao=null},OA.prototype.Jl=function(a){Cl.prototype.Jl.call(this,a),this.$n=this.ao=null},Ae.Object.defineProperties(OA.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),OA.prototype.deleteDestinationEdge=OA.prototype.Jl,OA.prototype.addDestinationEdge=OA.prototype.zl,OA.prototype.deleteSourceEdge=OA.prototype.Kl,OA.prototype.addSourceEdge=OA.prototype.Cl,OA.className="LayeredDigraphVertex";function R0(a){nA.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}nn(R0,nA),Ae.Object.defineProperties(R0.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),R0.className="LayeredDigraphEdge";function Mo(a){ha.call(this),this.Ub=new ei,this.Wn=qm,this.ud=Wd,this.vo=ev,this.Bq=wy,this.$v=[],this.td=!0,this.Rb=nv,this.$d=new Ni(10,10).freeze();var y=new hp(this);this.W=new ZA(y),this.Y=new ZA(y),this.ru=[],a&&Object.assign(this,a)}nn(Mo,ha),Mo.prototype.cloneProtected=function(a){ha.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Mo.prototype.qb=function(a){a.classType===Mo?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:Fe("Unknown enum value: "+a):ha.prototype.qb.call(this,a)},Mo.prototype.createNetwork=function(){return new hp(this)},Mo.prototype.makeNetwork=function(a){function y(b){if(b instanceof Qi)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Bi){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof on?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof qr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Mo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==iv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof on&&(y=a),this.path===qm&&y!==null?this.ud=y.isTreePathToChildren?Wd:lp:this.ud=this.path===qm?Wd:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new ei,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Qi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof ZA&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,hy(this,y));for(y=this.network.vertexes,a=null;a=Xw(y),0<a.count;)y=lw(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,hy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ZA&&hw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ZA&&Aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ZA&&cw(this,y);if(this.Cu(),this.layerStyle===rv){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Sy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ZA&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new ei,this.isValidLayout=!0};function Xw(a){var y=new ei;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Mo.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Wd:x.sourceEdges.count===0&&this.Ub.add(x);break;case lp:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Fe("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=lw(this,a),a!==null&&this.Ub.add(a))};function lw(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Wd:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case lp:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Fe("Unhandled path value "+a.ud.toString())}}return b}function hy(a,y){if(y!==null){switch(a.ud){case Wd:if(0<y.destinationEdges.count){for(var x=new ai,b=y.destinationVertexes;b.next();){var E=b.value;uw(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case lp:if(0<y.sourceEdges.count){for(x=new ai,b=y.sourceVertexes;b.next();)E=b.value,uw(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Fe("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)hy(a,x[y])}}function uw(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Mo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function hw(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Xd&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,tt=z.length,rt=0;rt<tt;rt++){var st=z[rt];hw(a,st),x+=st.descendantCount+1,b=Math.max(b,st.maxChildrenCount),E=Math.max(E,st.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Zw(a,y){switch(a.vo){default:case ev:return y.parent!==null?y.parent:a.W;case vy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case my:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case py:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Mo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Zw(this,a)),a.parent!==null&&a.parent.alignment===Xd){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function Aw(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)Aw(a,y[b])}}Mo.prototype.assignTreeVertexValues=function(){};function cw(a,y){if(y!==null){y.alignment!==Xd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)cw(a,y[b])}}Mo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Zp:break;case z0:a.children.reverse();break;case G0:a.children.sort(a.comparer);break;case _0:a.children.sort(a.comparer),a.children.reverse();break;default:Fe("Unhandled sorting value "+a.sorting.toString())}},Mo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Mo.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=dg(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,tt=0,rt=0,st=a.commentSpacing;if(a.node!==null)for(var lt=a.node.Mu();lt.next();){var ut=lt.value;ut.category==="Comment"&&ut.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ut),ut.Va(),ut=ut.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(rt)):(z+=ut.width+Math.abs(rt),tt=Math.max(tt,ut.height)),rt=st)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=Mn.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=E,Mn.free(E))};function dg(a){return a===Tf||a===Xd||a===Of||a===af}function H0(a){return a===Tf||a===Xd}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dg(x)){if(H0(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Of)return!0}}return!1}Mo.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=dg(z)),b=b===90||b===270,x=E===90||E===270;for(var tt=a.childrenCount===0,rt=Ay(a),st=0,lt=a.comments,ut=lt.length,dt=re.alloc(),St=0;St<ut;St++){var Et=lt[St],Tt=Et.measuredBounds;if(b&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<E&&!z||x&&rt)if(0<=a.commentMargin)for(dt.h(a.bounds.x-a.commentMargin-Tt.width,a.bounds.y+st),Et.move(dt),Et=Et.Sd();Et.next();){var Ht=Et.value;Ht.fromSpot=Zs,Ht.toSpot=Ba}else for(dt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+st),Et.move(dt),Et=Et.Sd();Et.next();)Ht=Et.value,Ht.fromSpot=Ba,Ht.toSpot=Zs;else if(0<=a.commentMargin)for(dt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+st),Et.move(dt),Et=Et.Sd();Et.next();)Ht=Et.value,Ht.fromSpot=Ba,Ht.toSpot=Zs;else for(dt.h(a.bounds.x+a.commentMargin-Tt.width,a.bounds.y+st),Et.move(dt),Et=Et.Sd();Et.next();)Ht=Et.value,Ht.fromSpot=Zs,Ht.toSpot=Ba;st=0<=a.commentSpacing?st+(Tt.height+a.commentSpacing):st+(a.commentSpacing-Tt.height)}else{if(135<E&&!z||!x&&rt)if(0<=a.commentMargin)for(dt.h(a.bounds.x+st,a.bounds.y-a.commentMargin-Tt.height),Et.move(dt),Et=Et.Sd();Et.next();)Ht=Et.value,Ht.fromSpot=ga,Ht.toSpot=ol;else for(dt.h(a.bounds.x+st,a.bounds.y+2*a.focus.y-a.commentMargin),Et.move(dt),Et=Et.Sd();Et.next();)Ht=Et.value,Ht.fromSpot=ol,Ht.toSpot=ga;else if(0<=a.commentMargin)for(dt.h(a.bounds.x+st,a.bounds.y+2*a.focus.y+a.commentMargin),Et.move(dt),Et=Et.Sd();Et.next();)Ht=Et.value,Ht.fromSpot=ol,Ht.toSpot=ga;else for(dt.h(a.bounds.x+st,a.bounds.y+a.commentMargin-Tt.height),Et.move(dt),Et=Et.Sd();Et.next();)Ht=Et.value,Ht.fromSpot=ga,Ht.toSpot=ol;st=0<=a.commentSpacing?st+(Tt.width+a.commentSpacing):st+(a.commentSpacing-Tt.width)}}if(re.free(dt),y=st-a.commentSpacing-(b?y.height:y.width),this.ud===Wd)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},Mo.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case tv:dw(this,a);break;case K0:if(a.alignment===Xd)dw(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=dg(x)),b=Ay(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=Fc(a);y=E===90||E===270;var z=0,tt=a.children,rt=tt.length;for(x=0;x<rt;x++)b=tt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var st=a.alignment;b=st===Vd;var lt=st===Yd,ut=dg(st),dt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var St=a.nodeSpacing,Et=this.computeNodeIndent(a),Tt=a.rowSpacing,Ht=0;(b||lt||a.hm||a.im&&a.maxGenerationCount===1)&&(Ht=Math.max(0,a.rowIndent)),b=a.width;var de=a.height,ie=0,Se=0,Le=0,Ee=null,We=null,dn=0,Di=0,er=0,Ki=0,xi=0,ni=0,Jr=0,Qr=0;if(ut&&!H0(st)&&135<E&&tt.reverse(),H0(st))if(1<rt)for(var es=0;es<rt;es++)es%2===0&&es!==rt-1&&(Qr=Math.max(Qr,y?tt[es].Da.width:tt[es].Da.height));else rt===1&&(Qr=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(st){case Tf:Se=135>E?fw(this,a,tt,Qr,ie,Se):gw(this,a,tt,Qr,ie,Se),Qr=Se.x,ie=Se.width,Se=Se.height;break;case Of:for(Ee=0;Ee<rt;Ee++)We=tt[Ee],dt=We.Da,Le=ni===0?0:Tt,y?(We.S.h(z-dt.width,Ki+Le),ie=Math.max(ie,dt.width),Se=Math.max(Se,Ki+Le+dt.height),Ki+=Le+dt.height):(We.S.h(er+Le,z-dt.height),ie=Math.max(ie,er+Le+dt.width),Se=Math.max(Se,dt.height),er+=Le+dt.width),ni++;break;case af:for(Ee=0;Ee<rt;Ee++)We=tt[Ee],z=We.Da,dt=ni===0?0:Tt,y?(We.S.h(St/2+a.focus.x,Ki+dt),ie=Math.max(ie,z.width),Se=Math.max(Se,Ki+dt+z.height),Ki+=dt+z.height):(We.S.h(er+dt,St/2+a.focus.y),ie=Math.max(ie,er+dt+z.width),Se=Math.max(Se,z.height),er+=dt+z.width),ni++}Ee=Uh(this,2),We=Uh(this,2),y?(Ee[0].h(0,0),Ee[1].h(0,Se),We[0].h(ie,0)):(Ee[0].h(0,0),Ee[1].h(ie,0),We[0].h(0,Se)),We[1].h(ie,Se)}else for(es=0;es<rt;es++){var js=tt[es],Dl=js.Da;if(y){0<dt&&0<ni&&er+St+Dl.width>dt&&(er<z&&Og(a,st,z-er,0,Jr,es-1),xi++,ni=0,Jr=es,Le=Se,er=0,Ki=135<E?-Se-Tt:Se+Tt),Jm(this,js,0,Ki);var Wl=0;if(ni===0)Ee=js.Yo,We=js.kp,dn=Dl.width,Di=Dl.height,(Ee===null||We===null||E!==Fc(js))&&(Ee=Uh(this,2),We=Uh(this,2),Ee[0].h(0,0),Ee[1].h(0,Di),We[0].h(dn,0),We[1].h(dn,Di));else{var Qu=tr();Di=pw(this,a,js,Ee,We,dn,Di,Qu),Wl=Di.x,Ee=Qu[0],We=Qu[1],dn=Di.width,Di=Di.height,vr(Qu),er<Dl.width&&0>Wl&&(ap(a,-Wl,0,Jr,es-1),$m(Ee,-Wl,0),$m(We,-Wl,0),Wl=0)}js.S.h(Wl,Ki),ie=Math.max(ie,dn),Se=Math.max(Se,Le+(xi===0?0:Tt)+Dl.height),er=dn}else 0<dt&&0<ni&&Ki+St+Dl.height>dt&&(Ki<z&&Og(a,st,0,z-Ki,Jr,es-1),xi++,ni=0,Jr=es,Le=ie,Ki=0,er=135<E?-ie-Tt:ie+Tt),Jm(this,js,er,0),Wl=0,ni===0?(Ee=js.Yo,We=js.kp,dn=Dl.width,Di=Dl.height,(Ee===null||We===null||E!==Fc(js))&&(Ee=Uh(this,2),We=Uh(this,2),Ee[0].h(0,0),Ee[1].h(dn,0),We[0].h(0,Di),We[1].h(dn,Di))):(Qu=tr(),Di=pw(this,a,js,Ee,We,dn,Di,Qu),Wl=Di.x,Ee=Qu[0],We=Qu[1],dn=Di.width,Di=Di.height,vr(Qu),Ki<Dl.height&&0>Wl&&(ap(a,0,-Wl,Jr,es-1),$m(Ee,0,-Wl),$m(We,0,-Wl),Wl=0)),js.S.h(er,Wl),Se=Math.max(Se,Di),ie=Math.max(ie,Le+(xi===0?0:Tt)+Dl.width),Ki=Di;ni++}switch(0<xi&&(y?(Se+=Math.max(0,x),er<ie&&Og(a,st,ie-er,0,Jr,rt-1),0<Ht&&(lt||ap(a,Ht,0,0,rt-1),ie+=Ht)):(ie+=Math.max(0,x),Ki<Se&&Og(a,st,0,Se-Ki,Jr,rt-1),0<Ht&&(lt||ap(a,0,Ht,0,rt-1),Se+=Ht))),Ht=lt=0,st){case Jp:y?lt+=ie/2-a.focus.x-Et/2:Ht+=Se/2-a.focus.y-Et/2;break;case up:0<xi?y?lt+=ie/2-a.focus.x-Et/2:Ht+=Se/2-a.focus.y-Et/2:y?(Qr=tt[0].S.x+tt[0].la.x,lt+=Qr+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-Qr)/2-a.focus.x-Et/2):(Qr=tt[0].S.y+tt[0].la.y,Ht+=Qr+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-Qr)/2-a.focus.y-Et/2);break;case Vd:y?(lt-=Et,ie+=Et):(Ht-=Et,Se+=Et);break;case Yd:y?(lt+=ie-a.width+Et,ie+=Et):(Ht+=Se-a.height+Et,Se+=Et);break;case Tf:y?1<rt?lt+=Qr+St/2-a.focus.x:lt+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Ht+=Qr+St/2-a.focus.y:Ht+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case Of:y?lt+=ie+St/2-a.focus.x:Ht+=Se+St/2-a.focus.y;break;case af:break;default:Se=this.customAlignment(a,lt,Ht,ie,Se),lt=Se[0],Ht=Se[1],ie=Se[2],Se=Se[3]}for(Et=0;Et<rt;Et++)Qr=tt[Et],y?Qr.S.h(Qr.S.x+Qr.la.x-lt,Qr.S.y+(135<E?(ut?-Se:-Qr.Da.height)+Qr.la.y-x:de+x+Qr.la.y)):Qr.S.h(Qr.S.x+(135<E?(ut?-ie:-Qr.Da.width)+Qr.la.x-x:b+x+Qr.la.x),Qr.S.y+Qr.la.y-Ht);if(rt=tt=0,ut?y?(ie=cy(a,ie,lt),0>lt&&(lt=0),135<E&&(Ht+=Se+x),Se+=de+x,st===af&&(tt+=St/2+a.focus.x),rt+=de+x):(135<E&&(lt+=ie+x),ie+=b+x,Se=dy(a,Se,Ht),0>Ht&&(Ht=0),st===af&&(rt+=St/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>ie&&(ie=fy(st,b-ie,0),tt=ie.x,rt=ie.y,ie=b,lt=0):ie=cy(a,ie,lt),0>lt&&(tt-=lt,lt=0),135<E&&(Ht+=Se+x),Se=Math.max(Math.max(Se,de),Se+de+x),rt+=de+x):(135<E&&(lt+=ie+x),ie=Math.max(Math.max(ie,b),ie+b+x),a.comments===null?de>Se&&(Se=fy(st,0,de-Se),tt=Se.x,rt=Se.y,Se=de,Ht=0):Se=dy(a,Se,Ht),0>Ht&&(rt-=Ht,Ht=0),tt+=b+x),0<xi)E=Uh(this,4),xi=Uh(this,4),y?(E[2].h(0,de+x),E[3].h(E[2].x,Se),xi[2].h(ie,E[2].y),xi[3].h(xi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(ie,E[2].y),xi[2].h(E[2].x,Se),xi[3].h(E[3].x,xi[2].y));else{for(E=Uh(this,Ee.length+2),xi=Uh(this,We.length+2),st=0;st<Ee.length;st++)ut=Ee[st],E[st+2].h(ut.x+tt,ut.y+rt);for(st=0;st<We.length;st++)ut=We[st],xi[st+2].h(ut.x+tt,ut.y+rt)}y?(E[0].h(lt,0),E[1].h(E[0].x,de),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),xi[0].h(lt+b,0),xi[1].h(xi[0].x,de),xi[2].y<xi[1].y&&(xi[2].x<xi[0].x?xi[2].assign(xi[1]):xi[1].assign(xi[2])),xi[3].y<xi[2].y&&(xi[3].x<xi[0].x?xi[3].assign(xi[2]):xi[2].assign(xi[3])),E[2].y-=x/2,xi[2].y-=x/2):(E[0].h(0,Ht),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),xi[0].h(0,Ht+de),xi[1].h(b,xi[0].y),xi[2].x<xi[1].x&&(xi[2].y<xi[0].y?xi[2].assign(xi[1]):xi[1].assign(xi[2])),xi[3].x<xi[2].x&&(xi[3].y<xi[0].y?xi[3].assign(xi[2]):xi[2].assign(xi[3])),E[2].x-=x/2,xi[2].x-=x/2),Jc(this,Ee),Jc(this,We),a.Yo=E,a.kp=xi,a.la.h(lt,Ht),a.Da.h(ie,Se)}break;default:Fe("Unhandled compaction value "+a.compaction.toString())}}};function dw(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=dg(x));var E=Ay(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=Fc(y),x=b===90||b===270;var z=0;E=y.children;for(var tt=E.length,rt=0;rt<tt;rt++){var st=E[rt];z=Math.max(z,x?st.Da.width:st.Da.height)}var lt=y.alignment,ut=lt===Vd,dt=lt===Yd;rt=dg(lt);var St=Math.max(0,y.breadthLimit);st=a.computeLayerSpacing(y);var Et=y.nodeSpacing,Tt=a.computeNodeIndent(y),Ht=ut||dt?0:Tt/2,de=y.rowSpacing,ie=0;(ut||dt||y.hm||y.im&&y.maxGenerationCount===1)&&(ie=Math.max(0,y.rowIndent)),ut=y.width;var Se=y.height,Le=0,Ee=0,We=0,dn=0,Di=0,er=0,Ki=0,xi=0,ni=0,Jr=0;if(rt&&!H0(lt)&&135<b&&E.reverse(),H0(lt))if(1<tt)for(var Qr=0;Qr<tt;Qr++){var es=E[Qr],js=es.Da;Qr%2===0&&Qr!==tt-1?ni=Math.max(ni,(x?js.width:js.height)+a.computeBusNodeSpacing(es)-Et):Qr%2!==0&&(Jr=Math.max(Jr,(x?js.width:js.height)+a.computeBusNodeSpacing(es)-Et))}else tt===1&&(ni=x?E[0].Da.width:E[0].Da.height);if(rt)switch(lt){case Tf:case Xd:Ee=135>b?fw(a,y,E,ni,Le,Ee):gw(a,y,E,ni,Le,Ee),ni=Ee.x,Le=Ee.width,Ee=Ee.height;break;case Of:for(St=0;St<tt;St++)Ht=E[St],We=Ht.Da,Jr=Ki===0?0:de,x?(Ht.S.h(z-We.width,Di+Jr),Le=Math.max(Le,We.width),Ee=Math.max(Ee,Di+Jr+We.height),Di+=Jr+We.height):(Ht.S.h(dn+Jr,z-We.height),Le=Math.max(Le,dn+Jr+We.width),Ee=Math.max(Ee,We.height),dn+=Jr+We.width),Ki++;break;case af:for(z=0;z<tt;z++)St=E[z],Ht=St.Da,We=Ki===0?0:de,x?(St.S.h(Et/2+y.focus.x,Di+We),Le=Math.max(Le,Ht.width),Ee=Math.max(Ee,Di+We+Ht.height),Di+=We+Ht.height):(St.S.h(dn+We,Et/2+y.focus.y),Le=Math.max(Le,dn+We+Ht.width),Ee=Math.max(Ee,Ht.height),dn+=We+Ht.width),Ki++}else for(Jr=0;Jr<tt;Jr++)Qr=E[Jr],es=Qr.Da,x?(0<St&&0<Ki&&dn+Et+es.width>St&&(dn<z&&Og(y,lt,z-dn,0,xi,Jr-1),er++,Ki=0,xi=Jr,We=Ee,dn=0,Di=135<b?-Ee-de:Ee+de),js=Ki===0?Ht:Et,Jm(a,Qr,0,Di),Qr.S.h(dn+js,Di),Le=Math.max(Le,dn+js+es.width),Ee=Math.max(Ee,We+(er===0?0:de)+es.height),dn+=js+es.width):(0<St&&0<Ki&&Di+Et+es.height>St&&(Di<z&&Og(y,lt,0,z-Di,xi,Jr-1),er++,Ki=0,xi=Jr,We=Le,Di=0,dn=135<b?-Le-de:Le+de),js=Ki===0?Ht:Et,Jm(a,Qr,dn,0),Qr.S.h(dn,Di+js),Ee=Math.max(Ee,Di+js+es.height),Le=Math.max(Le,We+(er===0?0:de)+es.width),Di+=js+es.height),Ki++;switch(0<er&&(x?(Ee+=Math.max(0,st),dn<Le&&Og(y,lt,Le-dn,0,xi,tt-1),0<ie&&(dt||ap(y,ie,0,0,tt-1),Le+=ie)):(Le+=Math.max(0,st),Di<Ee&&Og(y,lt,0,Ee-Di,xi,tt-1),0<ie&&(dt||ap(y,0,ie,0,tt-1),Ee+=ie))),ie=dt=0,lt){case Jp:x?dt+=Le/2-y.focus.x-Tt/2:ie+=Ee/2-y.focus.y-Tt/2;break;case up:0<er?x?dt+=Le/2-y.focus.x-Tt/2:ie+=Ee/2-y.focus.y-Tt/2:x?(a=E[0].S.x+E[0].la.x,dt+=a+(E[tt-1].S.x+E[tt-1].la.x+2*E[tt-1].focus.x-a)/2-y.focus.x-Tt/2):(a=E[0].S.y+E[0].la.y,ie+=a+(E[tt-1].S.y+E[tt-1].la.y+2*E[tt-1].focus.y-a)/2-y.focus.y-Tt/2);break;case Vd:x?(dt-=Tt,Le+=Tt):(ie-=Tt,Ee+=Tt);break;case Yd:x?(dt+=Le-y.width+Tt,Le+=Tt):(ie+=Ee-y.height+Tt,Ee+=Tt);break;case Tf:case Xd:x?1<tt?dt+=ni+Et/2-y.focus.x:dt+=E[0].focus.x-y.focus.x+E[0].la.x:1<tt?ie+=ni+Et/2-y.focus.y:ie+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Of:x?dt+=Le+Et/2-y.focus.x:ie+=Ee+Et/2-y.focus.y;break;case af:break;default:a=a.customAlignment(y,dt,ie,Le,Ee),dt=a[0],ie=a[1],Le=a[2],Ee=a[3]}for(a=0;a<tt;a++)Tt=E[a],x?Tt.S.h(Tt.S.x+Tt.la.x-dt,Tt.S.y+(135<b?(rt?-Ee:-Tt.Da.height)+Tt.la.y-st:Se+st+Tt.la.y)):Tt.S.h(Tt.S.x+(135<b?(rt?-Le:-Tt.Da.width)+Tt.la.x-st:ut+st+Tt.la.x),Tt.S.y+Tt.la.y-ie);x?(Le=cy(y,Le,dt),0>dt&&(dt=0),135<b&&(ie+=Ee+st),Ee=Math.max(Math.max(Ee,Se),Ee+Se+st)):(135<b&&(dt+=Le+st),Le=Math.max(Math.max(Le,ut),Le+ut+st),Ee=dy(y,Ee,ie),0>ie&&(ie=0)),y.la.h(dt,ie),y.Da.h(Le,Ee)}}Mo.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function fw(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new Mn(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new Mn(b,0,E,z);for(var rt=y.nodeSpacing,st=y.rowSpacing,lt=Fc(y)===90,ut=0,dt=0,St=0,Et=0;Et<tt;Et++)if(!(Et%2!==0||1<tt&&Et===tt-1)){var Tt=x[Et],Ht=Tt.Da,de=ut===0?0:st;if(lt){var ie=a.computeBusNodeSpacing(Tt)-rt;Tt.S.h(b-(Ht.width+ie),St+de),E=Math.max(E,Ht.width+ie),z=Math.max(z,St+de+Ht.height),St+=de+Ht.height}else ie=a.computeBusNodeSpacing(Tt)-rt,Tt.S.h(dt+de,b-(Ht.height+ie)),z=Math.max(z,Ht.height+ie),E=Math.max(E,dt+de+Ht.width),dt+=de+Ht.width;ut++}for(ut=0,Tt=dt,Et=St,lt?(dt=b+rt,St=0):(dt=0,St=b+rt),Ht=0;Ht<tt;Ht++)if(Ht%2!==0){de=x[Ht],ie=de.Da;var Se=ut===0?0:st;if(lt){var Le=a.computeBusNodeSpacing(de)-rt;de.S.h(dt+Le,St+Se),E=Math.max(E,dt+ie.width+Le),z=Math.max(z,St+Se+ie.height),St+=Se+ie.height}else Le=a.computeBusNodeSpacing(de)-rt,de.S.h(dt+Se,St+Le),E=Math.max(E,dt+Se+ie.width),z=Math.max(z,St+ie.height+Le),dt+=Se+ie.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,lt?Math.max(Math.abs(Et),Math.abs(St)):Math.max(Math.abs(Tt),Math.abs(dt))),lt?(x.S.h(b+rt/2-x.focus.x-x.la.x,z+a),lt=b+rt/2-x.focus.x-x.la.x,E=Math.max(E,lt+tt.width),0>lt&&(E-=lt),z=Math.max(z,Math.max(Et,St)+a+tt.height),0>x.S.x&&(b=Zm(y,x.S.x,!1,b,rt))):(x.S.h(E+a,b+rt/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Tt,dt)+a+tt.width),St=b+rt/2-x.focus.y-x.la.y,z=Math.max(z,St+tt.height),0>St&&(z-=St),0>x.S.y&&(b=Zm(y,x.S.y,!0,b,rt)))),new Mn(b,0,E,z)}function gw(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new Mn(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new Mn(b,0,E,z);for(var rt=y.nodeSpacing,st=y.rowSpacing,lt=Fc(y)===270,ut=0,dt=0,St=0,Et=0;Et<tt;Et++)if(!(Et%2!==0||1<tt&&Et===tt-1)){var Tt=x[Et],Ht=Tt.Da,de=ut===0?0:st;if(lt){var ie=a.computeBusNodeSpacing(Tt)-rt;St-=de+Ht.height,Tt.S.h(b-(Ht.width+ie),St),E=Math.max(E,Ht.width+ie),z=Math.max(z,Math.abs(St))}else ie=a.computeBusNodeSpacing(Tt)-rt,dt-=de+Ht.width,Tt.S.h(dt,b-(Ht.height+ie)),z=Math.max(z,Ht.height+ie),E=Math.max(E,Math.abs(dt));ut++}for(ut=0,Tt=dt,Et=St,lt?(dt=b+rt,St=0):(dt=0,St=b+rt),Ht=0;Ht<tt;Ht++)if(Ht%2!==0){de=x[Ht],ie=de.Da;var Se=ut===0?0:st;if(lt){var Le=a.computeBusNodeSpacing(de)-rt;St-=Se+ie.height,de.S.h(dt+Le,St),E=Math.max(E,dt+ie.width+Le),z=Math.max(z,Math.abs(St))}else Le=a.computeBusNodeSpacing(de)-rt,dt-=Se+ie.width,de.S.h(dt,St+Le),z=Math.max(z,St+ie.height+Le),E=Math.max(E,Math.abs(dt));ut++}for(1<tt&&tt%2===1&&(st=x[tt-1],ut=st.Da,a=a.computeBusLastRowSpacing(st,lt?Math.max(Math.abs(Et),Math.abs(St)):Math.max(Math.abs(Tt),Math.abs(dt))),lt?(st.S.h(b+rt/2-st.focus.x-st.la.x,-z-ut.height-a),dt=b+rt/2-st.focus.x-st.la.x,E=Math.max(E,dt+ut.width),0>dt&&(E-=dt),z=Math.max(z,Math.abs(Math.min(Et,St))+a+ut.height),0>st.S.x&&(b=Zm(y,st.S.x,!1,b,rt))):(st.S.h(-E-ut.width-a,b+rt/2-st.focus.y-st.la.y),E=Math.max(E,Math.abs(Math.min(Tt,dt))+a+ut.width),St=b+rt/2-st.focus.y-st.la.y,z=Math.max(z,St+ut.height),0>St&&(z-=St),0>st.S.y&&(b=Zm(y,st.S.y,!0,b,rt)))),y=0;y<tt;y++)rt=x[y],lt?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+E,rt.S.y);return new Mn(b,0,E,z)}Mo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Mo.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Zm(a,y,x,b,E){a=a.children;for(var z=a.length,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function cy(a,y,x){switch(a.alignment){case up:case Jp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Vd:return a.width>y?a.width:y;case Yd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Tf:case Xd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Of:return a.width-a.focus.x+a.nodeSpacing/2+y;case af:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function dy(a,y,x){switch(a.alignment){case up:case Jp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Vd:return a.height>y?a.height:y;case Yd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Tf:case Xd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Of:return a.height-a.focus.y+a.nodeSpacing/2+y;case af:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function fy(a,y,x){switch(a){case Jp:y/=2,x/=2;break;case up:y/=2,x/=2;break;case Vd:x=y=0;break;case Yd:break;default:Fe("Unhandled alignment value "+a.toString())}return new re(y,x)}function Og(a,y,x,b,E,z){y=fy(y,x,b),ap(a,y.x,y.y,E,z)}function ap(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function Jm(a,y,x,b){var E=y.parent;switch(a.ud){case Wd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case lp:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Fe("Unhandled path value "+a.ud.toString())}}function $m(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function pw(a,y,x,b,E,z,tt,rt){var st=Fc(y),lt=st===90||st===270,ut=y.nodeSpacing;y=b;var dt=E;b=z;var St=tt,Et=x.Yo,Tt=x.kp;tt=x.Da;var Ht=lt?Math.max(St,tt.height):Math.max(b,tt.width);if((Et===null||st!==Fc(x))&&(Et=Uh(a,2),Tt=Uh(a,2),lt?(Et[0].h(0,0),Et[1].h(0,tt.height),Tt[0].h(tt.width,0),Tt[1].h(Tt[0].x,Et[1].y)):(Et[0].h(0,0),Et[1].h(tt.width,0),Tt[0].h(0,tt.height),Tt[1].h(Et[1].x,Tt[0].y))),lt){if(St=9999999,!(dt===null||2>dt.length||Et===null||2>Et.length))for(E=x=0;x<dt.length&&E<Et.length;){z=dt[x];var de=Et[E];st=de.x,lt=de.y,st+=b;var ie=z;x+1<dt.length&&(ie=dt[x+1]);var Se=de;de=Se.x,Se=Se.y,E+1<Et.length&&(Se=Et[E+1],de=Se.x,Se=Se.y,de+=b);var Le=St;z.y===lt?Le=st-z.x:z.y>lt&&z.y<Se?Le=st+(z.y-lt)/(Se-lt)*(de-st)-z.x:lt>z.y&&lt<ie.y&&(Le=st-(z.x+(lt-z.y)/(ie.y-z.y)*(ie.x-z.x))),Le<St&&(St=Le),ie.y<=z.y?x++:Se<=lt?E++:(ie.y<=Se&&x++,Se<=ie.y&&E++)}if(St=b-St,St+=ut,x=Et,E=St,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=Uh(a,y.length+x.length),b=z=st=0;z<x.length&&x[z].y<y[0].y;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(;st<y.length;)lt=y[st++],ut[b++].h(lt.x,lt.y);for(st=y[y.length-1].y;z<x.length&&x[z].y<=st;)z++;for(;z<x.length&&x[z].y>st;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(x=Uh(a,b),st=0;st<b;st++)x[st].assign(ut[st]);Jc(a,ut),b=x}if(z=Tt,st=St,dt===null||2>dt.length||z===null||2>z.length)E=null;else{for(ut=Uh(a,dt.length+z.length),E=lt=x=0;x<dt.length&&dt[x].y<z[0].y;)ie=dt[x++],ut[E++].h(ie.x,ie.y);for(;lt<z.length;)ie=z[lt++],ut[E++].h(ie.x+st,ie.y);for(z=z[z.length-1].y;x<dt.length&&dt[x].y<=z;)x++;for(;x<dt.length&&dt[x].y>z;)st=dt[x++],ut[E++].h(st.x,st.y);for(z=Uh(a,E),x=0;x<E;x++)z[x].assign(ut[x]);Jc(a,ut),E=z}return z=Math.max(0,St)+tt.width,tt=Ht,Jc(a,y),Jc(a,Et),Jc(a,dt),Jc(a,Tt),rt[0]=b,rt[1]=E,new Mn(St,0,z,tt)}if(b=9999999,!(dt===null||2>dt.length||Et===null||2>Et.length))for(E=x=0;x<dt.length&&E<Et.length;)z=dt[x],de=Et[E],st=de.x,lt=de.y,lt+=St,ie=z,x+1<dt.length&&(ie=dt[x+1]),Se=de,de=Se.x,Se=Se.y,E+1<Et.length&&(Se=Et[E+1],de=Se.x,Se=Se.y,Se+=St),Le=b,z.x===st?Le=lt-z.y:z.x>st&&z.x<de?Le=lt+(z.x-st)/(de-st)*(Se-lt)-z.y:st>z.x&&st<ie.x&&(Le=lt-(z.y+(st-z.x)/(ie.x-z.x)*(ie.y-z.y))),Le<b&&(b=Le),ie.x<=z.x?x++:de<=st?E++:(ie.x<=de&&x++,de<=ie.x&&E++);if(St-=b,St+=ut,x=Et,E=St,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=Uh(a,y.length+x.length),b=z=st=0;z<x.length&&x[z].x<y[0].x;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(;st<y.length;)lt=y[st++],ut[b++].h(lt.x,lt.y);for(st=y[y.length-1].x;z<x.length&&x[z].x<=st;)z++;for(;z<x.length&&x[z].x>st;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(x=Uh(a,b),st=0;st<b;st++)x[st].assign(ut[st]);Jc(a,ut),b=x}if(z=Tt,st=St,dt===null||2>dt.length||z===null||2>z.length)E=null;else{for(ut=Uh(a,dt.length+z.length),E=lt=x=0;x<dt.length&&dt[x].x<z[0].x;)ie=dt[x++],ut[E++].h(ie.x,ie.y);for(;lt<z.length;)ie=z[lt++],ut[E++].h(ie.x,ie.y+st);for(z=z[z.length-1].x;x<dt.length&&dt[x].x<=z;)x++;for(;x<dt.length&&dt[x].x>z;)st=dt[x++],ut[E++].h(st.x,st.y);for(z=Uh(a,E),x=0;x<E;x++)z[x].assign(ut[x]);Jc(a,ut),E=z}return z=Ht,tt=Math.max(0,St)+tt.height,Jc(a,y),Jc(a,Et),Jc(a,dt),Jc(a,Tt),rt[0]=b,rt[1]=E,new Mn(St,0,z,tt)}function Uh(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new re;return a}function Jc(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Mo.prototype.arrangeTrees=function(){if(this.Rb===iv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof ZA){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),gy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof ZA&&a.push(x);switch(this.sorting){case Zp:break;case z0:a.reverse();break;case G0:a.sort(this.comparer);break;case _0:a.sort(this.comparer),a.reverse();break;default:Fe("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(gy(this,E,y+E.la.x,x+E.la.y),this.Rb){case nv:x+=E.Da.height+this.$d.height;break;case yy:y+=E.Da.width+this.$d.width;break;default:Fe("Unhandled arrangement value "+this.Rb.toString())}}}};function gy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var tt=y[z];gy(a,tt,x+tt.S.x,b+tt.S.y)}}}Mo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Mo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Mo.prototype.Gu=function(){if(this.layerStyle===rv){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new re(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new re(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var rt=a[tt]+y[tt];this.angle===270?(z-=rt,E.push(new Mn(0,z,x,rt))):this.angle===90?(E.push(new Mn(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,E.push(new Mn(z,0,rt,x))):(E.push(new Mn(z,0,rt,x)),z+=rt)}this.commitLayers(E,b)}},Mo.prototype.commitLayers=function(){},Mo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Mo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof ZA&&mw(this,y)}};function mw(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)mw(a,y[b])}}Mo.prototype.setPortSpots=function(a){var y=a.alignment;if(dg(y)){var x=this.ud===Wd,b=Fc(a);switch(b){case 0:var E=Ba;break;case 90:E=ol;break;case 180:E=Zs;break;default:E=ga}var z=a.children,tt=z.length;switch(y){case Tf:case Xd:for(y=0;y<tt;y++){var rt=z[y];if(rt=(x?rt.sourceEdges:rt.destinationEdges).first(),rt!==null&&(rt=rt.link,rt!==null)){var st=b===90||b===270?Zs:ga;if(tt===1||y===tt-1&&tt%2===1)switch(b){case 0:st=Zs;break;case 90:st=ga;break;case 180:st=Ba;break;default:st=ol}else y%2===0&&(st=b===90||b===270?Ba:ol);x?(a.setsPortSpot&&(rt.fromSpot=E),a.setsChildPortSpot&&(rt.toSpot=st)):(a.setsPortSpot&&(rt.fromSpot=st),a.setsChildPortSpot&&(rt.toSpot=E))}}break;case Of:for(b=b===90||b===270?Ba:ol,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)));break;case af:for(b=b===90||b===270?Zs:ga,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)))}}else if(x=Fc(a),this.ud===Wd){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Ba;break;case 90:b.fromSpot=ol;break;case 180:b.fromSpot=Zs;break;default:b.fromSpot=ga}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Zs;break;case 90:b.toSpot=ga;break;case 180:b.toSpot=Ba;break;default:b.toSpot=ol}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Ba;break;case 90:b.toSpot=ol;break;case 180:b.toSpot=Zs;break;default:b.toSpot=ga}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Zs;break;case 90:b.fromSpot=ga;break;case 180:b.fromSpot=Ba;break;default:b.fromSpot=ol}else b.fromSpot=a.childPortSpot}};function Fc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Mo.prototype.computeLayerSpacing=function(a){var y=Fc(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Mo.prototype.computeNodeIndent=function(a){var y=Fc(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},Ae.Object.defineProperties(Mo.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==ev&&a!==my&&a!==py&&a!==vy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==wy&&a!==Sy&&a!==rv||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==nv&&a!==yy&&a!==iv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==Zp&&a!==z0&&a!==G0&&!_0||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):Fe("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==tv&&a!==K0||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Zp&&a!==z0&&a!==G0&&!_0||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==tv&&a!==K0||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var qm=new zn(Mo,"PathDefault",-1),Wd=new zn(Mo,"PathDestination",0),lp=new zn(Mo,"PathSource",1),Zp=new zn(Mo,"SortingForwards",10),z0=new zn(Mo,"SortingReverse",11),G0=new zn(Mo,"SortingAscending",12),_0=new zn(Mo,"SortingDescending",13),Jp=new zn(Mo,"AlignmentCenterSubtrees",20),up=new zn(Mo,"AlignmentCenterChildren",21),Vd=new zn(Mo,"AlignmentStart",22),Yd=new zn(Mo,"AlignmentEnd",23),Tf=new zn(Mo,"AlignmentBus",24),Xd=new zn(Mo,"AlignmentBusBranching",25),Of=new zn(Mo,"AlignmentTopLeftBus",26),af=new zn(Mo,"AlignmentBottomRightBus",27),tv=new zn(Mo,"CompactionNone",30),K0=new zn(Mo,"CompactionBlock",31),ev=new zn(Mo,"StyleLayered",40),py=new zn(Mo,"StyleLastParents",41),my=new zn(Mo,"StyleAlternating",42),vy=new zn(Mo,"StyleRootOnly",43),nv=new zn(Mo,"ArrangementVertical",50),yy=new zn(Mo,"ArrangementHorizontal",51),iv=new zn(Mo,"ArrangementFixedRoots",52),wy=new zn(Mo,"LayerIndividual",60),Sy=new zn(Mo,"LayerSiblings",61),rv=new zn(Mo,"LayerUniform",62);Mo.className="TreeLayout",Mo.PathDefault=qm,Mo.PathDestination=Wd,Mo.PathSource=lp,Mo.SortingForwards=Zp,Mo.SortingReverse=z0,Mo.SortingAscending=G0,Mo.SortingDescending=_0,Mo.AlignmentCenterSubtrees=Jp,Mo.AlignmentCenterChildren=up,Mo.AlignmentStart=Vd,Mo.AlignmentEnd=Yd,Mo.AlignmentBus=Tf,Mo.AlignmentBusBranching=Xd,Mo.AlignmentTopLeftBus=Of,Mo.AlignmentBottomRightBus=af,Mo.CompactionNone=tv,Mo.CompactionBlock=K0,Mo.StyleLayered=ev,Mo.StyleLastParents=py,Mo.StyleAlternating=my,Mo.StyleRootOnly=vy,Mo.ArrangementVertical=nv,Mo.ArrangementHorizontal=yy,Mo.ArrangementFixedRoots=iv,Mo.LayerIndividual=wy,Mo.LayerSiblings=Sy,Mo.LayerUniform=rv;function hp(a){Rs.call(this,a)}nn(hp,Rs),hp.prototype.createVertex=function(){return new ZA(this)},hp.prototype.createEdge=function(){return new $p(this)},hp.className="TreeNetwork";function ZA(a){Cl.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new re(0,0),this.Da=new Ni(0,0),this.la=new re(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Zp,this.hd=Hv,this.Kb=0,this.Jb=up,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=K0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ns,this.wr=!0,this.Dp=ns}nn(ZA,Cl),ZA.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Ae.Object.defineProperties(ZA.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),ZA.className="TreeVertex";function $p(a){nA.call(this,a),this.$t=new re(0,0)}nn($p,nA),$p.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Wd:x=this.fromVertex,b=this.toVertex;break;case lp:x=this.toVertex,b=this.fromVertex;break;default:Fe("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=Fc(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var st=a.curve===xA,lt=a.isOrthogonal,ut;if(a.uh(),lt||st){for(ut=2;4<a.pointsCount;)a.pv(2);var dt=a.i(1),St=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);dt=a.i(0),St=a.i(a.pointsCount-1)}var Et=a.i(a.pointsCount-1);z===0?(x.alignment===Yd?(z=b.bottom+E.y,E.y===0&&dt.y>Et.y+x.rowIndent&&(z=Math.min(z,Math.max(dt.y,z-y.computeNodeIndent(x))))):x.alignment===Vd?(z=b.top+E.y,E.y===0&&dt.y<Et.y-x.rowIndent&&(z=Math.max(z,Math.min(dt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,st?(a.m(ut,dt.x,z),ut++,a.m(ut,b.right+tt,z),ut++,a.m(ut,b.right+tt+(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+2*(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+(E.x-rt),z),ut++,a.m(ut,St.x,z)):(lt&&(a.m(ut,b.right+tt/2,dt.y),ut++),a.m(ut,b.right+tt/2,z),ut++,a.m(ut,b.right+tt+E.x-(lt?rt/2:rt),z),ut++,lt&&a.m(ut,a.i(ut-1).x,St.y))):z===90?(x.alignment===Yd?(z=b.right+E.x,E.x===0&&dt.x>Et.x+x.rowIndent&&(z=Math.min(z,Math.max(dt.x,z-y.computeNodeIndent(x))))):x.alignment===Vd?(z=b.left+E.x,E.x===0&&dt.x<Et.x-x.rowIndent&&(z=Math.max(z,Math.min(dt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,st?(a.m(ut,z,dt.y),ut++,a.m(ut,z,b.bottom+tt),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+2*(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)),ut++,a.m(ut,z,St.y)):(lt&&(a.m(ut,dt.x,b.bottom+tt/2),ut++),a.m(ut,z,b.bottom+tt/2),ut++,a.m(ut,z,b.bottom+tt+E.y-(lt?rt/2:rt)),ut++,lt&&a.m(ut,St.x,a.i(ut-1).y))):z===180?(x.alignment===Yd?(z=b.bottom+E.y,E.y===0&&dt.y>Et.y+x.rowIndent&&(z=Math.min(z,Math.max(dt.y,z-y.computeNodeIndent(x))))):x.alignment===Vd?(z=b.top+E.y,E.y===0&&dt.y<Et.y-x.rowIndent&&(z=Math.max(z,Math.min(dt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,st?(a.m(ut,dt.x,z),ut++,a.m(ut,b.left-tt,z),ut++,a.m(ut,b.left-tt+(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+2*(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+(E.x+rt),z),ut++,a.m(ut,St.x,z)):(lt&&(a.m(ut,b.left-tt/2,dt.y),ut++),a.m(ut,b.left-tt/2,z),ut++,a.m(ut,b.left-tt+E.x+(lt?rt/2:rt),z),ut++,lt&&a.m(ut,a.i(ut-1).x,St.y))):z===270?(x.alignment===Yd?(z=b.right+E.x,E.x===0&&dt.x>Et.x+x.rowIndent&&(z=Math.min(z,Math.max(dt.x,z-y.computeNodeIndent(x))))):x.alignment===Vd?(z=b.left+E.x,E.x===0&&dt.x<Et.x-x.rowIndent&&(z=Math.max(z,Math.min(dt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,st?(a.m(ut,z,dt.y),ut++,a.m(ut,z,b.top-tt),ut++,a.m(ut,z,b.top-tt+(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+2*(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+(E.y+rt)),ut++,a.m(ut,z,St.y)):(lt&&(a.m(ut,dt.x,b.top-tt/2),ut++),a.m(ut,z,b.top-tt/2),ut++,a.m(ut,z,b.top-tt+E.y+(lt?rt/2:rt)),ut++,lt&&a.m(ut,St.x,a.i(ut-1).y))):Fe("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Fc(x),y!==Fc(E)&&(tt=b.computeLayerSpacing(x),rt=x.bounds,x=E.bounds,y===0&&x.left-rt.right<tt+1||y===90&&x.top-rt.bottom<tt+1||y===180&&rt.left-x.right<tt+1||y===270&&rt.top-x.bottom<tt+1||(a.vg(),x=a.curve===xA,E=a.isOrthogonal,b=dg(this.fromVertex.alignment),a.uh(),y===0?(y=rt.right+tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=rt.bottom+tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=rt.left-tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=rt.top-tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Ae.Object.defineProperties($p.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),$p.className="TreeEdge",kt.prototype.initializeStandardTools=function(){this.gb("Action",new Rr,this.mouseDownTools),this.gb("Relinking",new Wi,this.mouseDownTools),this.gb("LinkReshaping",new Mr,this.mouseDownTools),this.gb("Rotating",new ls,this.mouseDownTools),this.gb("Resizing",new _n,this.mouseDownTools),this.gb("Linking",new Gn,this.mouseMoveTools),this.gb("Dragging",new ce,this.mouseMoveTools),this.gb("DragSelecting",new xo,this.mouseMoveTools),this.gb("Panning",new Yr,this.mouseMoveTools),this.gb("ContextMenu",new cs,this.mouseUpTools),this.gb("TextEditing",new Ho,this.mouseUpTools),this.gb("ClickCreating",new So,this.mouseUpTools),this.gb("ClickSelecting",new Jo,this.mouseUpTools)},$h("Horizontal",new Xn),$h("Spot",new Ii),$h("Table",new Zi),$h("Viewbox",new ar),$h("TableRow",new di),$h("TableColumn",new Si),$h("Graduated",new ds),$h("Grid",new br),Ks.add("GraphLinksModel",Kl),Ks.add("TreeModel",kA);var ov=we.go,xy={get licenseKey(){return on.licenseKey},set licenseKey(a){on.licenseKey=a},get version(){return on.version},Group:qr,EnumValue:zn,List:ai,Set:ei,Map:Ji,Point:re,Size:Ni,Rect:Mn,Margin:mr,Spot:nr,Geometry:Li,PathFigure:pa,PathSegment:Wo,InputEvent:zl,DiagramEvent:rc,ChangedEvent:ia,Model:hr,GraphLinksModel:Ko,TreeModel:lh,Binding:al,Transaction:yt,UndoManager:gt,CommandHandler:ue,Tool:Ct,DraggingTool:ce,DraggingInfo:wh,DraggingOptions:ot,LinkingBaseTool:Gi,LinkingTool:Gn,RelinkingTool:Wi,LinkReshapingTool:Mr,ResizingTool:_n,RotatingTool:ls,ClickSelectingTool:Jo,ActionTool:Rr,ClickCreatingTool:So,HTMLInfo:ts,ContextMenuTool:cs,DragSelectingTool:xo,PanningTool:Yr,TextEditingTool:Ho,ToolManager:kt,Animation:El,AnimationManager:Fl,AnimationTrigger:Bu,Layer:el,Diagram:on,Palette:ct,Overview:mt,Brush:as,GraphObject:_e,Panel:Ln,RowColumnDefinition:Va,Shape:io,TextBlock:Is,Picture:Bh,Part:Sr,Adornment:Yo,Node:Qi,Link:Bi,Placeholder:rh,Layout:ha,LayoutNetwork:Rs,LayoutVertex:Cl,LayoutEdge:nA,GridLayout:iu,PanelLayout:Ze,CircularLayout:wa,CircularNetwork:Vp,CircularVertex:O0,CircularEdge:Qm,ForceDirectedLayout:du,ForceDirectedNetwork:sp,ForceDirectedVertex:D0,ForceDirectedEdge:j0,LayeredDigraphLayout:ws,LayeredDigraphNetwork:Xp,LayeredDigraphVertex:OA,LayeredDigraphEdge:R0,TreeLayout:Mo,TreeNetwork:hp,TreeVertex:ZA,TreeEdge:$p};typeof ov=="object"&&ov.version&&Ar("WARNING: a `go` object on the root object is already defined. "+("Debug"in ov?"debug ":"")+"version: "+ov.version+", replaced with version: "+xy.version),on.prototype.go=xy,we.go=xy,typeof Fi.exports=="object"&&(Fi.exports=typeof Kt.g!="undefined"?Kt.g.go:self.go)}();var zt=typeof Kt.g!="undefined"?Kt.g.go:self.go;const ke=typeof Kt.g!="undefined"?Kt.g.go:self.go,Oe=ke.Group,Cn=ke.EnumValue,Be=ke.List,vn=ke.Set,Ie=ke.Map,ge=ke.Point,ye=ke.Size,Nt=ke.Rect,se=ke.Margin,oe=ke.Spot,me=ke.Geometry,Ut=ke.PathFigure,et=ke.PathSegment,nt=ke.InputEvent,ht=ke.DiagramEvent,at=ke.ChangedEvent,ft=ke.Model,vt=ke.GraphLinksModel,Mt=ke.TreeModel,Rt=ke.Binding,Gt=ke.Transaction,$t=ke.UndoManager,ae=ke.CommandHandler,ve=ke.Tool,fe=ke.DraggingTool,Ye=ke.DraggingInfo,De=ke.LinkingBaseTool,hn=ke.LinkingTool,Ue=ke.RelinkingTool,Pn=ke.LinkReshapingTool,qn=ke.ResizingTool,un=ke.RotatingTool,fn=ke.ClickSelectingTool,mn=ke.ActionTool,pe=ke.ClickCreatingTool,Xt=ke.HTMLInfo,Ve=ke.ContextMenuTool,Vn=ke.DragSelectingTool,si=ke.PanningTool,An=ke.TextEditingTool,Nn=ke.ToolManager,Yn=ke.Animation,Ci=ke.AnimationManager,Mi=ke.AnimationTrigger,Ri=ke.Layer,Te=ke.Diagram,ci=ke.Palette,ki=ke.Overview,Dn=ke.Brush,yi=ke.GraphObject,En=ke.Panel,gn=ke.RowColumnDefinition,Ne=ke.Shape,Xe=ke.TextBlock,wn=ke.TextBlockMetrics,sn=ke.Picture,Wn=ke.Part,Hn=ke.Adornment,Jt=ke.Node,It=ke.Link,bt=ke.Placeholder,Vt=ke.Layout,le=ke.LayoutNetwork,Ot=ke.LayoutVertex,be=ke.LayoutEdge,pn=ke.GridLayout,Zn=ke.PanelLayout,ii=ke.CircularLayout,wi=ke.CircularNetwork,Nr=ke.CircularVertex,_r=ke.CircularEdge,Tr=ke.ForceDirectedLayout,po=ke.ForceDirectedNetwork,To=ke.ForceDirectedVertex,Co=ke.ForceDirectedEdge,Kr=ke.LayeredDigraphLayout,gr=ke.LayeredDigraphNetwork,Wr=ke.LayeredDigraphVertex,Vr=ke.LayeredDigraphEdge,No=ke.TreeLayout,us=ke.TreeNetwork,Os=ke.TreeVertex,Ms=ke.TreeEdge,Fo=ke.version},64270:function(Fi){(function(Ti,Kt){Fi.exports=Kt()})(this,function(){"use strict";var Ti=function(Bt,xt){return Ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ft,Lt){Ft.__proto__=Lt}||function(Ft,Lt){for(var te in Lt)Object.prototype.hasOwnProperty.call(Lt,te)&&(Ft[te]=Lt[te])},Ti(Bt,xt)};function Kt(Bt,xt){if(typeof xt!="function"&&xt!==null)throw new TypeError("Class extends value "+String(xt)+" is not a constructor or null");Ti(Bt,xt);function Ft(){this.constructor=Bt}Bt.prototype=xt===null?Object.create(xt):(Ft.prototype=xt.prototype,new Ft)}var zt=function(){return zt=Object.assign||function(xt){for(var Ft,Lt=1,te=arguments.length;Lt<te;Lt++){Ft=arguments[Lt];for(var Pe in Ft)Object.prototype.hasOwnProperty.call(Ft,Pe)&&(xt[Pe]=Ft[Pe])}return xt},zt.apply(this,arguments)};function ke(Bt,xt,Ft,Lt){function te(Pe){return Pe instanceof Ft?Pe:new Ft(function($e){$e(Pe)})}return new(Ft||(Ft=Promise))(function(Pe,$e){function Fn(vi){try{Ai(Lt.next(vi))}catch(pt){$e(pt)}}function rn(vi){try{Ai(Lt.throw(vi))}catch(pt){$e(pt)}}function Ai(vi){vi.done?Pe(vi.value):te(vi.value).then(Fn,rn)}Ai((Lt=Lt.apply(Bt,xt||[])).next())})}function Oe(Bt,xt){var Ft={label:0,sent:function(){if(Pe[0]&1)throw Pe[1];return Pe[1]},trys:[],ops:[]},Lt,te,Pe,$e;return $e={next:Fn(0),throw:Fn(1),return:Fn(2)},typeof Symbol=="function"&&($e[Symbol.iterator]=function(){return this}),$e;function Fn(Ai){return function(vi){return rn([Ai,vi])}}function rn(Ai){if(Lt)throw new TypeError("Generator is already executing.");for(;Ft;)try{if(Lt=1,te&&(Pe=Ai[0]&2?te.return:Ai[0]?te.throw||((Pe=te.return)&&Pe.call(te),0):te.next)&&!(Pe=Pe.call(te,Ai[1])).done)return Pe;switch(te=0,Pe&&(Ai=[Ai[0]&2,Pe.value]),Ai[0]){case 0:case 1:Pe=Ai;break;case 4:return Ft.label++,{value:Ai[1],done:!1};case 5:Ft.label++,te=Ai[1],Ai=[0];continue;case 7:Ai=Ft.ops.pop(),Ft.trys.pop();continue;default:if(Pe=Ft.trys,!(Pe=Pe.length>0&&Pe[Pe.length-1])&&(Ai[0]===6||Ai[0]===2)){Ft=0;continue}if(Ai[0]===3&&(!Pe||Ai[1]>Pe[0]&&Ai[1]<Pe[3])){Ft.label=Ai[1];break}if(Ai[0]===6&&Ft.label<Pe[1]){Ft.label=Pe[1],Pe=Ai;break}if(Pe&&Ft.label<Pe[2]){Ft.label=Pe[2],Ft.ops.push(Ai);break}Pe[2]&&Ft.ops.pop(),Ft.trys.pop();continue}Ai=xt.call(Bt,Ft)}catch(vi){Ai=[6,vi],te=0}finally{Lt=Pe=0}if(Ai[0]&5)throw Ai[1];return{value:Ai[0]?Ai[1]:void 0,done:!0}}}function Cn(Bt,xt,Ft){if(Ft||arguments.length===2)for(var Lt=0,te=xt.length,Pe;Lt<te;Lt++)(Pe||!(Lt in xt))&&(Pe||(Pe=Array.prototype.slice.call(xt,0,Lt)),Pe[Lt]=xt[Lt]);return Bt.concat(Pe||xt)}for(var Be=function(){function Bt(xt,Ft,Lt,te){this.left=xt,this.top=Ft,this.width=Lt,this.height=te}return Bt.prototype.add=function(xt,Ft,Lt,te){return new Bt(this.left+xt,this.top+Ft,this.width+Lt,this.height+te)},Bt.fromClientRect=function(xt,Ft){return new Bt(Ft.left+xt.windowBounds.left,Ft.top+xt.windowBounds.top,Ft.width,Ft.height)},Bt.fromDOMRectList=function(xt,Ft){var Lt=Array.from(Ft).find(function(te){return te.width!==0});return Lt?new Bt(Lt.left+xt.windowBounds.left,Lt.top+xt.windowBounds.top,Lt.width,Lt.height):Bt.EMPTY},Bt.EMPTY=new Bt(0,0,0,0),Bt}(),vn=function(Bt,xt){return Be.fromClientRect(Bt,xt.getBoundingClientRect())},Ie=function(Bt){var xt=Bt.body,Ft=Bt.documentElement;if(!xt||!Ft)throw new Error("Unable to get document size");var Lt=Math.max(Math.max(xt.scrollWidth,Ft.scrollWidth),Math.max(xt.offsetWidth,Ft.offsetWidth),Math.max(xt.clientWidth,Ft.clientWidth)),te=Math.max(Math.max(xt.scrollHeight,Ft.scrollHeight),Math.max(xt.offsetHeight,Ft.offsetHeight),Math.max(xt.clientHeight,Ft.clientHeight));return new Be(0,0,Lt,te)},ge=function(Bt){for(var xt=[],Ft=0,Lt=Bt.length;Ft<Lt;){var te=Bt.charCodeAt(Ft++);if(te>=55296&&te<=56319&&Ft<Lt){var Pe=Bt.charCodeAt(Ft++);(Pe&64512)===56320?xt.push(((te&1023)<<10)+(Pe&1023)+65536):(xt.push(te),Ft--)}else xt.push(te)}return xt},ye=function(){for(var Bt=[],xt=0;xt<arguments.length;xt++)Bt[xt]=arguments[xt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Bt);var Ft=Bt.length;if(!Ft)return"";for(var Lt=[],te=-1,Pe="";++te<Ft;){var $e=Bt[te];$e<=65535?Lt.push($e):($e-=65536,Lt.push(($e>>10)+55296,$e%1024+56320)),(te+1===Ft||Lt.length>16384)&&(Pe+=String.fromCharCode.apply(String,Lt),Lt.length=0)}return Pe},Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),oe=0;oe<Nt.length;oe++)se[Nt.charCodeAt(oe)]=oe;for(var me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ut=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<me.length;et++)Ut[me.charCodeAt(et)]=et;for(var nt=function(Bt){var xt=Bt.length*.75,Ft=Bt.length,Lt,te=0,Pe,$e,Fn,rn;Bt[Bt.length-1]==="="&&(xt--,Bt[Bt.length-2]==="="&&xt--);var Ai=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xt):new Array(xt),vi=Array.isArray(Ai)?Ai:new Uint8Array(Ai);for(Lt=0;Lt<Ft;Lt+=4)Pe=Ut[Bt.charCodeAt(Lt)],$e=Ut[Bt.charCodeAt(Lt+1)],Fn=Ut[Bt.charCodeAt(Lt+2)],rn=Ut[Bt.charCodeAt(Lt+3)],vi[te++]=Pe<<2|$e>>4,vi[te++]=($e&15)<<4|Fn>>2,vi[te++]=(Fn&3)<<6|rn&63;return Ai},ht=function(Bt){for(var xt=Bt.length,Ft=[],Lt=0;Lt<xt;Lt+=2)Ft.push(Bt[Lt+1]<<8|Bt[Lt]);return Ft},at=function(Bt){for(var xt=Bt.length,Ft=[],Lt=0;Lt<xt;Lt+=4)Ft.push(Bt[Lt+3]<<24|Bt[Lt+2]<<16|Bt[Lt+1]<<8|Bt[Lt]);return Ft},ft=5,vt=11,Mt=2,Rt=vt-ft,Gt=65536>>ft,$t=1<<ft,ae=$t-1,ve=1024>>ft,fe=Gt+ve,Ye=fe,De=32,hn=Ye+De,Ue=65536>>vt,Pn=1<<Rt,qn=Pn-1,un=function(Bt,xt,Ft){return Bt.slice?Bt.slice(xt,Ft):new Uint16Array(Array.prototype.slice.call(Bt,xt,Ft))},fn=function(Bt,xt,Ft){return Bt.slice?Bt.slice(xt,Ft):new Uint32Array(Array.prototype.slice.call(Bt,xt,Ft))},mn=function(Bt,xt){var Ft=nt(Bt),Lt=Array.isArray(Ft)?at(Ft):new Uint32Array(Ft),te=Array.isArray(Ft)?ht(Ft):new Uint16Array(Ft),Pe=24,$e=un(te,Pe/2,Lt[4]/2),Fn=Lt[5]===2?un(te,(Pe+Lt[4])/2):fn(Lt,Math.ceil((Pe+Lt[4])/4));return new pe(Lt[0],Lt[1],Lt[2],Lt[3],$e,Fn)},pe=function(){function Bt(xt,Ft,Lt,te,Pe,$e){this.initialValue=xt,this.errorValue=Ft,this.highStart=Lt,this.highValueIndex=te,this.index=Pe,this.data=$e}return Bt.prototype.get=function(xt){var Ft;if(xt>=0){if(xt<55296||xt>56319&&xt<=65535)return Ft=this.index[xt>>ft],Ft=(Ft<<Mt)+(xt&ae),this.data[Ft];if(xt<=65535)return Ft=this.index[Gt+(xt-55296>>ft)],Ft=(Ft<<Mt)+(xt&ae),this.data[Ft];if(xt<this.highStart)return Ft=hn-Ue+(xt>>vt),Ft=this.index[Ft],Ft+=xt>>ft&qn,Ft=this.index[Ft],Ft=(Ft<<Mt)+(xt&ae),this.data[Ft];if(xt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Bt}(),Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ve=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Vn=0;Vn<Xt.length;Vn++)Ve[Xt.charCodeAt(Vn)]=Vn;var si="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",An=50,Nn=1,Yn=2,Ci=3,Mi=4,Ri=5,Te=7,ci=8,ki=9,Dn=10,yi=11,En=12,gn=13,Ne=14,Xe=15,wn=16,sn=17,Wn=18,Hn=19,Jt=20,It=21,bt=22,Vt=23,le=24,Ot=25,be=26,pn=27,Zn=28,ii=29,wi=30,Nr=31,_r=32,Tr=33,po=34,To=35,Co=36,Kr=37,gr=38,Wr=39,Vr=40,No=41,us=42,Os=43,Ms=[9001,65288],Fo="!",jt="\xD7",la="\xF7",fs=mn(si),vs=[wi,Co],Ws=[Nn,Yn,Ci,Ri],Fa=[Dn,ci],Sa=[pn,be],Pr=Ws.concat(Fa),Lr=[gr,Wr,Vr,po,To],ln=[Xe,gn],nn=function(Bt,xt){xt===void 0&&(xt="strict");var Ft=[],Lt=[],te=[];return Bt.forEach(function(Pe,$e){var Fn=fs.get(Pe);if(Fn>An?(te.push(!0),Fn-=An):te.push(!1),["normal","auto","loose"].indexOf(xt)!==-1&&[8208,8211,12316,12448].indexOf(Pe)!==-1)return Lt.push($e),Ft.push(wn);if(Fn===Mi||Fn===yi){if($e===0)return Lt.push($e),Ft.push(wi);var rn=Ft[$e-1];return Pr.indexOf(rn)===-1?(Lt.push(Lt[$e-1]),Ft.push(rn)):(Lt.push($e),Ft.push(wi))}if(Lt.push($e),Fn===Nr)return Ft.push(xt==="strict"?It:Kr);if(Fn===us||Fn===ii)return Ft.push(wi);if(Fn===Os)return Pe>=131072&&Pe<=196605||Pe>=196608&&Pe<=262141?Ft.push(Kr):Ft.push(wi);Ft.push(Fn)}),[Lt,Ft,te]},Ae=function(Bt,xt,Ft,Lt){var te=Lt[Ft];if(Array.isArray(Bt)?Bt.indexOf(te)!==-1:Bt===te)for(var Pe=Ft;Pe<=Lt.length;){Pe++;var $e=Lt[Pe];if($e===xt)return!0;if($e!==Dn)break}if(te===Dn)for(var Pe=Ft;Pe>0;){Pe--;var Fn=Lt[Pe];if(Array.isArray(Bt)?Bt.indexOf(Fn)!==-1:Bt===Fn)for(var rn=Ft;rn<=Lt.length;){rn++;var $e=Lt[rn];if($e===xt)return!0;if($e!==Dn)break}if(Fn!==Dn)break}return!1},Tn=function(Bt,xt){for(var Ft=Bt;Ft>=0;){var Lt=xt[Ft];if(Lt===Dn)Ft--;else return Lt}return 0},Jn=function(Bt,xt,Ft,Lt,te){if(Ft[Lt]===0)return jt;var Pe=Lt-1;if(Array.isArray(te)&&te[Pe]===!0)return jt;var $e=Pe-1,Fn=Pe+1,rn=xt[Pe],Ai=$e>=0?xt[$e]:0,vi=xt[Fn];if(rn===Yn&&vi===Ci)return jt;if(Ws.indexOf(rn)!==-1)return Fo;if(Ws.indexOf(vi)!==-1||Fa.indexOf(vi)!==-1)return jt;if(Tn(Pe,xt)===ci)return la;if(fs.get(Bt[Pe])===yi||(rn===_r||rn===Tr)&&fs.get(Bt[Fn])===yi||rn===Te||vi===Te||rn===ki||[Dn,gn,Xe].indexOf(rn)===-1&&vi===ki||[sn,Wn,Hn,le,Zn].indexOf(vi)!==-1||Tn(Pe,xt)===bt||Ae(Vt,bt,Pe,xt)||Ae([sn,Wn],It,Pe,xt)||Ae(En,En,Pe,xt))return jt;if(rn===Dn)return la;if(rn===Vt||vi===Vt)return jt;if(vi===wn||rn===wn)return la;if([gn,Xe,It].indexOf(vi)!==-1||rn===Ne||Ai===Co&&ln.indexOf(rn)!==-1||rn===Zn&&vi===Co||vi===Jt||vs.indexOf(vi)!==-1&&rn===Ot||vs.indexOf(rn)!==-1&&vi===Ot||rn===pn&&[Kr,_r,Tr].indexOf(vi)!==-1||[Kr,_r,Tr].indexOf(rn)!==-1&&vi===be||vs.indexOf(rn)!==-1&&Sa.indexOf(vi)!==-1||Sa.indexOf(rn)!==-1&&vs.indexOf(vi)!==-1||[pn,be].indexOf(rn)!==-1&&(vi===Ot||[bt,Xe].indexOf(vi)!==-1&&xt[Fn+1]===Ot)||[bt,Xe].indexOf(rn)!==-1&&vi===Ot||rn===Ot&&[Ot,Zn,le].indexOf(vi)!==-1)return jt;if([Ot,Zn,le,sn,Wn].indexOf(vi)!==-1)for(var pt=Pe;pt>=0;){var Pt=xt[pt];if(Pt===Ot)return jt;if([Zn,le].indexOf(Pt)!==-1)pt--;else break}if([pn,be].indexOf(vi)!==-1)for(var pt=[sn,Wn].indexOf(rn)!==-1?$e:Pe;pt>=0;){var Pt=xt[pt];if(Pt===Ot)return jt;if([Zn,le].indexOf(Pt)!==-1)pt--;else break}if(gr===rn&&[gr,Wr,po,To].indexOf(vi)!==-1||[Wr,po].indexOf(rn)!==-1&&[Wr,Vr].indexOf(vi)!==-1||[Vr,To].indexOf(rn)!==-1&&vi===Vr||Lr.indexOf(rn)!==-1&&[Jt,be].indexOf(vi)!==-1||Lr.indexOf(vi)!==-1&&rn===pn||vs.indexOf(rn)!==-1&&vs.indexOf(vi)!==-1||rn===le&&vs.indexOf(vi)!==-1||vs.concat(Ot).indexOf(rn)!==-1&&vi===bt&&Ms.indexOf(Bt[Fn])===-1||vs.concat(Ot).indexOf(vi)!==-1&&rn===Wn)return jt;if(rn===No&&vi===No){for(var Wt=Ft[Pe],ee=1;Wt>0&&(Wt--,xt[Wt]===No);)ee++;if(ee%2!==0)return jt}return rn===_r&&vi===Tr?jt:la},He=function(Bt,xt){xt||(xt={lineBreak:"normal",wordBreak:"normal"});var Ft=nn(Bt,xt.lineBreak),Lt=Ft[0],te=Ft[1],Pe=Ft[2];(xt.wordBreak==="break-all"||xt.wordBreak==="break-word")&&(te=te.map(function(Fn){return[Ot,wi,us].indexOf(Fn)!==-1?Kr:Fn}));var $e=xt.wordBreak==="keep-all"?Pe.map(function(Fn,rn){return Fn&&Bt[rn]>=19968&&Bt[rn]<=40959}):void 0;return[Lt,te,$e]},we=function(){function Bt(xt,Ft,Lt,te){this.codePoints=xt,this.required=Ft===Fo,this.start=Lt,this.end=te}return Bt.prototype.slice=function(){return ye.apply(void 0,this.codePoints.slice(this.start,this.end))},Bt}(),qe=function(Bt,xt){var Ft=ge(Bt),Lt=He(Ft,xt),te=Lt[0],Pe=Lt[1],$e=Lt[2],Fn=Ft.length,rn=0,Ai=0;return{next:function(){if(Ai>=Fn)return{done:!0,value:null};for(var vi=jt;Ai<Fn&&(vi=Jn(Ft,Pe,te,++Ai,$e))===jt;);if(vi!==jt||Ai===Fn){var pt=new we(Ft,vi,rn,Ai);return rn=Ai,{value:pt,done:!1}}return{done:!0,value:null}}}},In=1,ui=2,Pi=4,Fe=8,Qn=10,Ei=47,Ar=92,Sn=9,$n=32,xr=34,dr=61,Dr=35,tr=36,vr=37,ur=39,kr=40,Ao=41,Oo=95,Kn=45,Vo=33,rs=60,Po=62,zn=64,Hi=91,pr=93,jr=61,Ir=123,co=63,Io=125,oo=124,eo=126,Br=128,ai=65533,vo=42,ei=43,Qo=44,Vs=58,Xo=59,Js=46,ks=0,no=8,ro=11,Go=14,Ro=31,Ji=127,re=-1,zo=48,Hs=97,Qa=101,Ra=102,hl=117,Do=122,yo=65,os=69,wo=70,Ps=85,Pl=90,Hr=function(Bt){return Bt>=zo&&Bt<=57},zr=function(Bt){return Bt>=55296&&Bt<=57343},Ni=function(Bt){return Hr(Bt)||Bt>=yo&&Bt<=wo||Bt>=Hs&&Bt<=Ra},to=function(Bt){return Bt>=Hs&&Bt<=Do},hs=function(Bt){return Bt>=yo&&Bt<=Pl},zs=function(Bt){return to(Bt)||hs(Bt)},Gs=function(Bt){return Bt>=Br},so=function(Bt){return Bt===Qn||Bt===Sn||Bt===$n},Ls=function(Bt){return zs(Bt)||Gs(Bt)||Bt===Oo},Xa=function(Bt){return Ls(Bt)||Hr(Bt)||Bt===Kn},Ul=function(Bt){return Bt>=ks&&Bt<=no||Bt===ro||Bt>=Go&&Bt<=Ro||Bt===Ji},Ta=function(Bt,xt){return Bt!==Ar?!1:xt!==Qn},qo=function(Bt,xt,Ft){return Bt===Kn?Ls(xt)||Ta(xt,Ft):Ls(Bt)?!0:!!(Bt===Ar&&Ta(Bt,xt))},Mn=function(Bt,xt,Ft){return Bt===ei||Bt===Kn?Hr(xt)?!0:xt===Js&&Hr(Ft):Hr(Bt===Js?xt:Bt)},ca=function(Bt){var xt=0,Ft=1;(Bt[xt]===ei||Bt[xt]===Kn)&&(Bt[xt]===Kn&&(Ft=-1),xt++);for(var Lt=[];Hr(Bt[xt]);)Lt.push(Bt[xt++]);var te=Lt.length?parseInt(ye.apply(void 0,Lt),10):0;Bt[xt]===Js&&xt++;for(var Pe=[];Hr(Bt[xt]);)Pe.push(Bt[xt++]);var $e=Pe.length,Fn=$e?parseInt(ye.apply(void 0,Pe),10):0;(Bt[xt]===os||Bt[xt]===Qa)&&xt++;var rn=1;(Bt[xt]===ei||Bt[xt]===Kn)&&(Bt[xt]===Kn&&(rn=-1),xt++);for(var Ai=[];Hr(Bt[xt]);)Ai.push(Bt[xt++]);var vi=Ai.length?parseInt(ye.apply(void 0,Ai),10):0;return Ft*(te+Fn*Math.pow(10,-$e))*Math.pow(10,rn*vi)},tc={type:2},Vl={type:3},aA={type:4},Oa={type:13},ec={type:8},Al={type:21},ps={type:9},Ys={type:10},lA={type:11},jo={type:12},Fs={type:14},Zo={type:23},mr={type:1},cl={type:25},dl={type:24},lu={type:26},ch={type:27},bh={type:28},nr={type:29},Pa={type:31},Za={type:32},bl=function(){function Bt(){this._value=[]}return Bt.prototype.write=function(xt){this._value=this._value.concat(ge(xt))},Bt.prototype.read=function(){for(var xt=[],Ft=this.consumeToken();Ft!==Za;)xt.push(Ft),Ft=this.consumeToken();return xt},Bt.prototype.consumeToken=function(){var xt=this.consumeCodePoint();switch(xt){case xr:return this.consumeStringToken(xr);case Dr:var Ft=this.peekCodePoint(0),Lt=this.peekCodePoint(1),te=this.peekCodePoint(2);if(Xa(Ft)||Ta(Lt,te)){var Pe=qo(Ft,Lt,te)?ui:In,$e=this.consumeName();return{type:5,value:$e,flags:Pe}}break;case tr:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),Oa;break;case ur:return this.consumeStringToken(ur);case kr:return tc;case Ao:return Vl;case vo:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),Fs;break;case ei:if(Mn(xt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(xt),this.consumeNumericToken();break;case Qo:return aA;case Kn:var Fn=xt,rn=this.peekCodePoint(0),Ai=this.peekCodePoint(1);if(Mn(Fn,rn,Ai))return this.reconsumeCodePoint(xt),this.consumeNumericToken();if(qo(Fn,rn,Ai))return this.reconsumeCodePoint(xt),this.consumeIdentLikeToken();if(rn===Kn&&Ai===Po)return this.consumeCodePoint(),this.consumeCodePoint(),dl;break;case Js:if(Mn(xt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(xt),this.consumeNumericToken();break;case Ei:if(this.peekCodePoint(0)===vo)for(this.consumeCodePoint();;){var vi=this.consumeCodePoint();if(vi===vo&&(vi=this.consumeCodePoint(),vi===Ei))return this.consumeToken();if(vi===re)return this.consumeToken()}break;case Vs:return lu;case Xo:return ch;case rs:if(this.peekCodePoint(0)===Vo&&this.peekCodePoint(1)===Kn&&this.peekCodePoint(2)===Kn)return this.consumeCodePoint(),this.consumeCodePoint(),cl;break;case zn:var pt=this.peekCodePoint(0),Pt=this.peekCodePoint(1),Wt=this.peekCodePoint(2);if(qo(pt,Pt,Wt)){var $e=this.consumeName();return{type:7,value:$e}}break;case Hi:return bh;case Ar:if(Ta(xt,this.peekCodePoint(0)))return this.reconsumeCodePoint(xt),this.consumeIdentLikeToken();break;case pr:return nr;case jr:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),ec;break;case Ir:return lA;case Io:return jo;case hl:case Ps:var ee=this.peekCodePoint(0),xe=this.peekCodePoint(1);return ee===ei&&(Ni(xe)||xe===co)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(xt),this.consumeIdentLikeToken();case oo:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),ps;if(this.peekCodePoint(0)===oo)return this.consumeCodePoint(),Al;break;case eo:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),Ys;break;case re:return Za}return so(xt)?(this.consumeWhiteSpace(),Pa):Hr(xt)?(this.reconsumeCodePoint(xt),this.consumeNumericToken()):Ls(xt)?(this.reconsumeCodePoint(xt),this.consumeIdentLikeToken()):{type:6,value:ye(xt)}},Bt.prototype.consumeCodePoint=function(){var xt=this._value.shift();return typeof xt=="undefined"?-1:xt},Bt.prototype.reconsumeCodePoint=function(xt){this._value.unshift(xt)},Bt.prototype.peekCodePoint=function(xt){return xt>=this._value.length?-1:this._value[xt]},Bt.prototype.consumeUnicodeRangeToken=function(){for(var xt=[],Ft=this.consumeCodePoint();Ni(Ft)&&xt.length<6;)xt.push(Ft),Ft=this.consumeCodePoint();for(var Lt=!1;Ft===co&&xt.length<6;)xt.push(Ft),Ft=this.consumeCodePoint(),Lt=!0;if(Lt){var te=parseInt(ye.apply(void 0,xt.map(function(rn){return rn===co?zo:rn})),16),Pe=parseInt(ye.apply(void 0,xt.map(function(rn){return rn===co?wo:rn})),16);return{type:30,start:te,end:Pe}}var $e=parseInt(ye.apply(void 0,xt),16);if(this.peekCodePoint(0)===Kn&&Ni(this.peekCodePoint(1))){this.consumeCodePoint(),Ft=this.consumeCodePoint();for(var Fn=[];Ni(Ft)&&Fn.length<6;)Fn.push(Ft),Ft=this.consumeCodePoint();var Pe=parseInt(ye.apply(void 0,Fn),16);return{type:30,start:$e,end:Pe}}else return{type:30,start:$e,end:$e}},Bt.prototype.consumeIdentLikeToken=function(){var xt=this.consumeName();return xt.toLowerCase()==="url"&&this.peekCodePoint(0)===kr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===kr?(this.consumeCodePoint(),{type:19,value:xt}):{type:20,value:xt}},Bt.prototype.consumeUrlToken=function(){var xt=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===re)return{type:22,value:""};var Ft=this.peekCodePoint(0);if(Ft===ur||Ft===xr){var Lt=this.consumeStringToken(this.consumeCodePoint());return Lt.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===re||this.peekCodePoint(0)===Ao)?(this.consumeCodePoint(),{type:22,value:Lt.value}):(this.consumeBadUrlRemnants(),Zo)}for(;;){var te=this.consumeCodePoint();if(te===re||te===Ao)return{type:22,value:ye.apply(void 0,xt)};if(so(te))return this.consumeWhiteSpace(),this.peekCodePoint(0)===re||this.peekCodePoint(0)===Ao?(this.consumeCodePoint(),{type:22,value:ye.apply(void 0,xt)}):(this.consumeBadUrlRemnants(),Zo);if(te===xr||te===ur||te===kr||Ul(te))return this.consumeBadUrlRemnants(),Zo;if(te===Ar)if(Ta(te,this.peekCodePoint(0)))xt.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Zo;else xt.push(te)}},Bt.prototype.consumeWhiteSpace=function(){for(;so(this.peekCodePoint(0));)this.consumeCodePoint()},Bt.prototype.consumeBadUrlRemnants=function(){for(;;){var xt=this.consumeCodePoint();if(xt===Ao||xt===re)return;Ta(xt,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Bt.prototype.consumeStringSlice=function(xt){for(var Ft=5e4,Lt="";xt>0;){var te=Math.min(Ft,xt);Lt+=ye.apply(void 0,this._value.splice(0,te)),xt-=te}return this._value.shift(),Lt},Bt.prototype.consumeStringToken=function(xt){var Ft="",Lt=0;do{var te=this._value[Lt];if(te===re||te===void 0||te===xt)return Ft+=this.consumeStringSlice(Lt),{type:0,value:Ft};if(te===Qn)return this._value.splice(0,Lt),mr;if(te===Ar){var Pe=this._value[Lt+1];Pe!==re&&Pe!==void 0&&(Pe===Qn?(Ft+=this.consumeStringSlice(Lt),Lt=-1,this._value.shift()):Ta(te,Pe)&&(Ft+=this.consumeStringSlice(Lt),Ft+=ye(this.consumeEscapedCodePoint()),Lt=-1))}Lt++}while(!0)},Bt.prototype.consumeNumber=function(){var xt=[],Ft=Pi,Lt=this.peekCodePoint(0);for((Lt===ei||Lt===Kn)&&xt.push(this.consumeCodePoint());Hr(this.peekCodePoint(0));)xt.push(this.consumeCodePoint());Lt=this.peekCodePoint(0);var te=this.peekCodePoint(1);if(Lt===Js&&Hr(te))for(xt.push(this.consumeCodePoint(),this.consumeCodePoint()),Ft=Fe;Hr(this.peekCodePoint(0));)xt.push(this.consumeCodePoint());Lt=this.peekCodePoint(0),te=this.peekCodePoint(1);var Pe=this.peekCodePoint(2);if((Lt===os||Lt===Qa)&&((te===ei||te===Kn)&&Hr(Pe)||Hr(te)))for(xt.push(this.consumeCodePoint(),this.consumeCodePoint()),Ft=Fe;Hr(this.peekCodePoint(0));)xt.push(this.consumeCodePoint());return[ca(xt),Ft]},Bt.prototype.consumeNumericToken=function(){var xt=this.consumeNumber(),Ft=xt[0],Lt=xt[1],te=this.peekCodePoint(0),Pe=this.peekCodePoint(1),$e=this.peekCodePoint(2);if(qo(te,Pe,$e)){var Fn=this.consumeName();return{type:15,number:Ft,flags:Lt,unit:Fn}}return te===vr?(this.consumeCodePoint(),{type:16,number:Ft,flags:Lt}):{type:17,number:Ft,flags:Lt}},Bt.prototype.consumeEscapedCodePoint=function(){var xt=this.consumeCodePoint();if(Ni(xt)){for(var Ft=ye(xt);Ni(this.peekCodePoint(0))&&Ft.length<6;)Ft+=ye(this.consumeCodePoint());so(this.peekCodePoint(0))&&this.consumeCodePoint();var Lt=parseInt(Ft,16);return Lt===0||zr(Lt)||Lt>1114111?ai:Lt}return xt===re?ai:xt},Bt.prototype.consumeName=function(){for(var xt="";;){var Ft=this.consumeCodePoint();if(Xa(Ft))xt+=ye(Ft);else if(Ta(Ft,this.peekCodePoint(0)))xt+=ye(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ft),xt}},Bt}(),zu=function(){function Bt(xt){this._tokens=xt}return Bt.create=function(xt){var Ft=new bl;return Ft.write(xt),new Bt(Ft.read())},Bt.parseValue=function(xt){return Bt.create(xt).parseComponentValue()},Bt.parseValues=function(xt){return Bt.create(xt).parseComponentValues()},Bt.prototype.parseComponentValue=function(){for(var xt=this.consumeToken();xt.type===31;)xt=this.consumeToken();if(xt.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(xt);var Ft=this.consumeComponentValue();do xt=this.consumeToken();while(xt.type===31);if(xt.type===32)return Ft;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Bt.prototype.parseComponentValues=function(){for(var xt=[];;){var Ft=this.consumeComponentValue();if(Ft.type===32)return xt;xt.push(Ft),xt.push()}},Bt.prototype.consumeComponentValue=function(){var xt=this.consumeToken();switch(xt.type){case 11:case 28:case 2:return this.consumeSimpleBlock(xt.type);case 19:return this.consumeFunction(xt)}return xt},Bt.prototype.consumeSimpleBlock=function(xt){for(var Ft={type:xt,values:[]},Lt=this.consumeToken();;){if(Lt.type===32||Hl(Lt,xt))return Ft;this.reconsumeToken(Lt),Ft.values.push(this.consumeComponentValue()),Lt=this.consumeToken()}},Bt.prototype.consumeFunction=function(xt){for(var Ft={name:xt.value,values:[],type:18};;){var Lt=this.consumeToken();if(Lt.type===32||Lt.type===3)return Ft;this.reconsumeToken(Lt),Ft.values.push(this.consumeComponentValue())}},Bt.prototype.consumeToken=function(){var xt=this._tokens.shift();return typeof xt=="undefined"?Za:xt},Bt.prototype.reconsumeToken=function(xt){this._tokens.unshift(xt)},Bt}(),Ql=function(Bt){return Bt.type===15},bo=function(Bt){return Bt.type===17},fa=function(Bt){return Bt.type===20},Ea=function(Bt){return Bt.type===0},Yl=function(Bt,xt){return fa(Bt)&&Bt.value===xt},Rl=function(Bt){return Bt.type!==31},vu=function(Bt){return Bt.type!==31&&Bt.type!==4},tu=function(Bt){var xt=[],Ft=[];return Bt.forEach(function(Lt){if(Lt.type===4){if(Ft.length===0)throw new Error("Error parsing function args, zero tokens for arg");xt.push(Ft),Ft=[];return}Lt.type!==31&&Ft.push(Lt)}),Ft.length&&xt.push(Ft),xt},Hl=function(Bt,xt){return xt===11&&Bt.type===12||xt===28&&Bt.type===29?!0:xt===2&&Bt.type===3},Ll=function(Bt){return Bt.type===17||Bt.type===15},uo=function(Bt){return Bt.type===16||Ll(Bt)},id=function(Bt){return Bt.length>1?[Bt[0],Bt[1]]:[Bt[0]]},Xl={type:17,number:0,flags:Pi},Nc={type:16,number:50,flags:Pi},dh={type:16,number:100,flags:Pi},uA=function(Bt,xt,Ft){var Lt=Bt[0],te=Bt[1];return[xa(Lt,xt),xa(typeof te!="undefined"?te:Lt,Ft)]},xa=function(Bt,xt){if(Bt.type===16)return Bt.number/100*xt;if(Ql(Bt))switch(Bt.unit){case"rem":case"em":return 16*Bt.number;case"px":default:return Bt.number}return Bt.number},Gu="deg",rd="grad",jA="rad",nc="turn",ns={name:"angle",parse:function(Bt,xt){if(xt.type===15)switch(xt.unit){case Gu:return Math.PI*xt.number/180;case rd:return Math.PI/200*xt.number;case jA:return xt.number;case nc:return Math.PI*2*xt.number}throw new Error("Unsupported angle type")}},Xs=function(Bt){return Bt.type===15&&(Bt.unit===Gu||Bt.unit===rd||Bt.unit===jA||Bt.unit===nc)},eu=function(Bt){var xt=Bt.filter(fa).map(function(Ft){return Ft.value}).join(" ");switch(xt){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xl,Xl];case"to top":case"bottom":return qa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xl,dh];case"to right":case"left":return qa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[dh,dh];case"to bottom":case"top":return qa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[dh,Xl];case"to left":case"right":return qa(270)}return 0},qa=function(Bt){return Math.PI*Bt/180},Ma={name:"color",parse:function(Bt,xt){if(xt.type===18){var Ft=od[xt.name];if(typeof Ft=="undefined")throw new Error('Attempting to parse an unsupported color function "'+xt.name+'"');return Ft(Bt,xt.values)}if(xt.type===5){if(xt.value.length===3){var Lt=xt.value.substring(0,1),te=xt.value.substring(1,2),Pe=xt.value.substring(2,3);return Ba(parseInt(Lt+Lt,16),parseInt(te+te,16),parseInt(Pe+Pe,16),1)}if(xt.value.length===4){var Lt=xt.value.substring(0,1),te=xt.value.substring(1,2),Pe=xt.value.substring(2,3),$e=xt.value.substring(3,4);return Ba(parseInt(Lt+Lt,16),parseInt(te+te,16),parseInt(Pe+Pe,16),parseInt($e+$e,16)/255)}if(xt.value.length===6){var Lt=xt.value.substring(0,2),te=xt.value.substring(2,4),Pe=xt.value.substring(4,6);return Ba(parseInt(Lt,16),parseInt(te,16),parseInt(Pe,16),1)}if(xt.value.length===8){var Lt=xt.value.substring(0,2),te=xt.value.substring(2,4),Pe=xt.value.substring(4,6),$e=xt.value.substring(6,8);return Ba(parseInt(Lt,16),parseInt(te,16),parseInt(Pe,16),parseInt($e,16)/255)}}if(xt.type===20){var Fn=_h[xt.value.toUpperCase()];if(typeof Fn!="undefined")return Fn}return _h.TRANSPARENT}},ga=function(Bt){return(255&Bt)===0},Zs=function(Bt){var xt=255&Bt,Ft=255&Bt>>8,Lt=255&Bt>>16,te=255&Bt>>24;return xt<255?"rgba("+te+","+Lt+","+Ft+","+xt/255+")":"rgb("+te+","+Lt+","+Ft+")"},Ba=function(Bt,xt,Ft,Lt){return(Bt<<24|xt<<16|Ft<<8|Math.round(Lt*255)<<0)>>>0},ol=function(Bt,xt){if(Bt.type===17)return Bt.number;if(Bt.type===16){var Ft=xt===3?1:255;return xt===3?Bt.number/100*Ft:Math.round(Bt.number/100*Ft)}return 0},Gh=function(Bt,xt){var Ft=xt.filter(vu);if(Ft.length===3){var Lt=Ft.map(ol),te=Lt[0],Pe=Lt[1],$e=Lt[2];return Ba(te,Pe,$e,1)}if(Ft.length===4){var Fn=Ft.map(ol),te=Fn[0],Pe=Fn[1],$e=Fn[2],rn=Fn[3];return Ba(te,Pe,$e,rn)}return 0};function yu(Bt,xt,Ft){return Ft<0&&(Ft+=1),Ft>=1&&(Ft-=1),Ft<1/6?(xt-Bt)*Ft*6+Bt:Ft<1/2?xt:Ft<2/3?(xt-Bt)*6*(2/3-Ft)+Bt:Bt}var ba=function(Bt,xt){var Ft=xt.filter(vu),Lt=Ft[0],te=Ft[1],Pe=Ft[2],$e=Ft[3],Fn=(Lt.type===17?qa(Lt.number):ns.parse(Bt,Lt))/(Math.PI*2),rn=uo(te)?te.number/100:0,Ai=uo(Pe)?Pe.number/100:0,vi=typeof $e!="undefined"&&uo($e)?xa($e,1):1;if(rn===0)return Ba(Ai*255,Ai*255,Ai*255,1);var pt=Ai<=.5?Ai*(rn+1):Ai+rn-Ai*rn,Pt=Ai*2-pt,Wt=yu(Pt,pt,Fn+1/3),ee=yu(Pt,pt,Fn),xe=yu(Pt,pt,Fn-1/3);return Ba(Wt*255,ee*255,xe*255,vi)},od={hsl:ba,hsla:ba,rgb:Gh,rgba:Gh},ic=function(Bt,xt){return Ma.parse(Bt,zu.create(xt).parseComponentValue())},_h={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},fo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Bt,xt){return xt.map(function(Ft){if(fa(Ft))switch(Ft.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Kf={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Je=function(Bt,xt){var Ft=Ma.parse(Bt,xt[0]),Lt=xt[1];return Lt&&uo(Lt)?{color:Ft,stop:Lt}:{color:Ft,stop:null}},Li=function(Bt,xt){var Ft=Bt[0],Lt=Bt[Bt.length-1];Ft.stop===null&&(Ft.stop=Xl),Lt.stop===null&&(Lt.stop=dh);for(var te=[],Pe=0,$e=0;$e<Bt.length;$e++){var Fn=Bt[$e].stop;if(Fn!==null){var rn=xa(Fn,xt);rn>Pe?te.push(rn):te.push(Pe),Pe=rn}else te.push(null)}for(var Ai=null,$e=0;$e<te.length;$e++){var vi=te[$e];if(vi===null)Ai===null&&(Ai=$e);else if(Ai!==null){for(var pt=$e-Ai,Pt=te[Ai-1],Wt=(vi-Pt)/(pt+1),ee=1;ee<=pt;ee++)te[Ai+ee-1]=Wt*ee;Ai=null}}return Bt.map(function(xe,ze){var je=xe.color;return{color:je,stop:Math.max(Math.min(1,te[ze]/xt),0)}})},ff=function(Bt,xt,Ft){var Lt=xt/2,te=Ft/2,Pe=xa(Bt[0],xt)-Lt,$e=te-xa(Bt[1],Ft);return(Math.atan2($e,Pe)+Math.PI*2)%(Math.PI*2)},hA=function(Bt,xt,Ft){var Lt=typeof Bt=="number"?Bt:ff(Bt,xt,Ft),te=Math.abs(xt*Math.sin(Lt))+Math.abs(Ft*Math.cos(Lt)),Pe=xt/2,$e=Ft/2,Fn=te/2,rn=Math.sin(Lt-Math.PI/2)*Fn,Ai=Math.cos(Lt-Math.PI/2)*Fn;return[te,Pe-Ai,Pe+Ai,$e-rn,$e+rn]},uu=function(Bt,xt){return Math.sqrt(Bt*Bt+xt*xt)},hu=function(Bt,xt,Ft,Lt,te){var Pe=[[0,0],[0,xt],[Bt,0],[Bt,xt]];return Pe.reduce(function($e,Fn){var rn=Fn[0],Ai=Fn[1],vi=uu(Ft-rn,Lt-Ai);return(te?vi<$e.optimumDistance:vi>$e.optimumDistance)?{optimumCorner:Fn,optimumDistance:vi}:$e},{optimumDistance:te?1/0:-1/0,optimumCorner:null}).optimumCorner},Lh=function(Bt,xt,Ft,Lt,te){var Pe=0,$e=0;switch(Bt.size){case 0:Bt.shape===0?Pe=$e=Math.min(Math.abs(xt),Math.abs(xt-Lt),Math.abs(Ft),Math.abs(Ft-te)):Bt.shape===1&&(Pe=Math.min(Math.abs(xt),Math.abs(xt-Lt)),$e=Math.min(Math.abs(Ft),Math.abs(Ft-te)));break;case 2:if(Bt.shape===0)Pe=$e=Math.min(uu(xt,Ft),uu(xt,Ft-te),uu(xt-Lt,Ft),uu(xt-Lt,Ft-te));else if(Bt.shape===1){var Fn=Math.min(Math.abs(Ft),Math.abs(Ft-te))/Math.min(Math.abs(xt),Math.abs(xt-Lt)),rn=hu(Lt,te,xt,Ft,!0),Ai=rn[0],vi=rn[1];Pe=uu(Ai-xt,(vi-Ft)/Fn),$e=Fn*Pe}break;case 1:Bt.shape===0?Pe=$e=Math.max(Math.abs(xt),Math.abs(xt-Lt),Math.abs(Ft),Math.abs(Ft-te)):Bt.shape===1&&(Pe=Math.max(Math.abs(xt),Math.abs(xt-Lt)),$e=Math.max(Math.abs(Ft),Math.abs(Ft-te)));break;case 3:if(Bt.shape===0)Pe=$e=Math.max(uu(xt,Ft),uu(xt,Ft-te),uu(xt-Lt,Ft),uu(xt-Lt,Ft-te));else if(Bt.shape===1){var Fn=Math.max(Math.abs(Ft),Math.abs(Ft-te))/Math.max(Math.abs(xt),Math.abs(xt-Lt)),pt=hu(Lt,te,xt,Ft,!1),Ai=pt[0],vi=pt[1];Pe=uu(Ai-xt,(vi-Ft)/Fn),$e=Fn*Pe}break}return Array.isArray(Bt.size)&&(Pe=xa(Bt.size[0],Lt),$e=Bt.size.length===2?xa(Bt.size[1],te):Pe),[Pe,$e]},gf=function(Bt,xt){var Ft=qa(180),Lt=[];return tu(xt).forEach(function(te,Pe){if(Pe===0){var $e=te[0];if($e.type===20&&$e.value==="to"){Ft=eu(te);return}else if(Xs($e)){Ft=ns.parse(Bt,$e);return}}var Fn=Je(Bt,te);Lt.push(Fn)}),{angle:Ft,stops:Lt,type:1}},Ic=function(Bt,xt){var Ft=qa(180),Lt=[];return tu(xt).forEach(function(te,Pe){if(Pe===0){var $e=te[0];if($e.type===20&&["top","left","right","bottom"].indexOf($e.value)!==-1){Ft=eu(te);return}else if(Xs($e)){Ft=(ns.parse(Bt,$e)+qa(270))%qa(360);return}}var Fn=Je(Bt,te);Lt.push(Fn)}),{angle:Ft,stops:Lt,type:1}},pa=function(Bt,xt){var Ft=qa(180),Lt=[],te=1,Pe=0,$e=3,Fn=[];return tu(xt).forEach(function(rn,Ai){var vi=rn[0];if(Ai===0){if(fa(vi)&&vi.value==="linear"){te=1;return}else if(fa(vi)&&vi.value==="radial"){te=2;return}}if(vi.type===18){if(vi.name==="from"){var pt=Ma.parse(Bt,vi.values[0]);Lt.push({stop:Xl,color:pt})}else if(vi.name==="to"){var pt=Ma.parse(Bt,vi.values[0]);Lt.push({stop:dh,color:pt})}else if(vi.name==="color-stop"){var Pt=vi.values.filter(vu);if(Pt.length===2){var pt=Ma.parse(Bt,Pt[1]),Wt=Pt[0];bo(Wt)&&Lt.push({stop:{type:16,number:Wt.number*100,flags:Wt.flags},color:pt})}}}}),te===1?{angle:(Ft+qa(180))%qa(360),stops:Lt,type:te}:{size:$e,shape:Pe,stops:Lt,position:Fn,type:te}},Wo="closest-side",fu="farthest-side",_u="closest-corner",sl="farthest-corner",Ts="circle",kl="ellipse",Iu="cover",Da="contain",fh=function(Bt,xt){var Ft=0,Lt=3,te=[],Pe=[];return tu(xt).forEach(function($e,Fn){var rn=!0;if(Fn===0){var Ai=!1;rn=$e.reduce(function(pt,Pt){if(Ai)if(fa(Pt))switch(Pt.value){case"center":return Pe.push(Nc),pt;case"top":case"left":return Pe.push(Xl),pt;case"right":case"bottom":return Pe.push(dh),pt}else(uo(Pt)||Ll(Pt))&&Pe.push(Pt);else if(fa(Pt))switch(Pt.value){case Ts:return Ft=0,!1;case kl:return Ft=1,!1;case"at":return Ai=!0,!1;case Wo:return Lt=0,!1;case Iu:case fu:return Lt=1,!1;case Da:case _u:return Lt=2,!1;case sl:return Lt=3,!1}else if(Ll(Pt)||uo(Pt))return Array.isArray(Lt)||(Lt=[]),Lt.push(Pt),!1;return pt},rn)}if(rn){var vi=Je(Bt,$e);te.push(vi)}}),{size:Lt,shape:Ft,stops:te,position:Pe,type:2}},zl=function(Bt,xt){var Ft=0,Lt=3,te=[],Pe=[];return tu(xt).forEach(function($e,Fn){var rn=!0;if(Fn===0?rn=$e.reduce(function(vi,pt){if(fa(pt))switch(pt.value){case"center":return Pe.push(Nc),!1;case"top":case"left":return Pe.push(Xl),!1;case"right":case"bottom":return Pe.push(dh),!1}else if(uo(pt)||Ll(pt))return Pe.push(pt),!1;return vi},rn):Fn===1&&(rn=$e.reduce(function(vi,pt){if(fa(pt))switch(pt.value){case Ts:return Ft=0,!1;case kl:return Ft=1,!1;case Da:case Wo:return Lt=0,!1;case fu:return Lt=1,!1;case _u:return Lt=2,!1;case Iu:case sl:return Lt=3,!1}else if(Ll(pt)||uo(pt))return Array.isArray(Lt)||(Lt=[]),Lt.push(pt),!1;return vi},rn)),rn){var Ai=Je(Bt,$e);te.push(Ai)}}),{size:Lt,shape:Ft,stops:te,position:Pe,type:2}},rc=function(Bt){return Bt.type===1},ia=function(Bt){return Bt.type===2},gu={name:"image",parse:function(Bt,xt){if(xt.type===22){var Ft={url:xt.value,type:0};return Bt.cache.addImage(xt.value),Ft}if(xt.type===18){var Lt=Na[xt.name];if(typeof Lt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+xt.name+'"');return Lt(Bt,xt.values)}throw new Error("Unsupported image type "+xt.type)}};function qs(Bt){return!(Bt.type===20&&Bt.value==="none")&&(Bt.type!==18||!!Na[Bt.name])}var Na={"linear-gradient":gf,"-moz-linear-gradient":Ic,"-ms-linear-gradient":Ic,"-o-linear-gradient":Ic,"-webkit-linear-gradient":Ic,"radial-gradient":fh,"-moz-radial-gradient":zl,"-ms-radial-gradient":zl,"-o-radial-gradient":zl,"-webkit-radial-gradient":zl,"-webkit-gradient":pa},tl={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){if(xt.length===0)return[];var Ft=xt[0];return Ft.type===20&&Ft.value==="none"?[]:xt.filter(function(Lt){return vu(Lt)&&qs(Lt)}).map(function(Lt){return gu.parse(Bt,Lt)})}},yt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Bt,xt){return xt.map(function(Ft){if(fa(Ft))switch(Ft.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},gt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Bt,xt){return tu(xt).map(function(Ft){return Ft.filter(uo)}).map(id)}},wt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Bt,xt){return tu(xt).map(function(Ft){return Ft.filter(fa).map(function(Lt){return Lt.value}).join(" ")}).map(Ct)}},Ct=function(Bt){switch(Bt){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Qt;(function(Bt){Bt.AUTO="auto",Bt.CONTAIN="contain",Bt.COVER="cover"})(Qt||(Qt={}));var kt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Bt,xt){return tu(xt).map(function(Ft){return Ft.filter(Yt)})}},Yt=function(Bt){return fa(Bt)||uo(Bt)},Zt=function(Bt){return{name:"border-"+Bt+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ne=Zt("top"),Ce=Zt("right"),Re=Zt("bottom"),Qe=Zt("left"),en=function(Bt){return{name:"border-radius-"+Bt,initialValue:"0 0",prefix:!1,type:1,parse:function(xt,Ft){return id(Ft.filter(uo))}}},ce=en("top-left"),kn=en("top-right"),Bn=en("bottom-right"),jn=en("bottom-left"),an=function(Bt){return{name:"border-"+Bt+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(xt,Ft){switch(Ft){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},On=an("top"),mi=an("right"),Ui=an("bottom"),ir=an("left"),Er=function(Bt){return{name:"border-"+Bt+"-width",initialValue:"0",type:0,prefix:!1,parse:function(xt,Ft){return Ql(Ft)?Ft.number:0}}},_i=Er("top"),li=Er("right"),Xi=Er("bottom"),yr=Er("left"),yn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"rtl":return 1;case"ltr":default:return 0}}},bi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Bt,xt){return xt.filter(fa).reduce(function(Ft,Lt){return Ft|hi(Lt.value)},0)}},hi=function(Bt){switch(Bt){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},cr={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},sr={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Bt,xt){return xt.type===20&&xt.value==="normal"?0:xt.type===17||xt.type===15?xt.number:0}},Vi;(function(Bt){Bt.NORMAL="normal",Bt.STRICT="strict"})(Vi||(Vi={}));var zi={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"strict":return Vi.STRICT;case"normal":default:return Vi.NORMAL}}},Gi={name:"line-height",initialValue:"normal",prefix:!1,type:4},rr=function(Bt,xt){return fa(Bt)&&Bt.value==="normal"?1.2*xt:Bt.type===17?xt*Bt.number:uo(Bt)?xa(Bt,xt):xt},ao={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Bt,xt){return xt.type===20&&xt.value==="none"?null:gu.parse(Bt,xt)}},tn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"inside":return 0;case"outside":default:return 1}}},Un={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Gn=function(Bt){return{name:"margin-"+Bt,initialValue:"0",prefix:!1,type:4}},pi=Gn("top"),Oi=Gn("right"),$i=Gn("bottom"),Wi=Gn("left"),or={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Bt,xt){return xt.filter(fa).map(function(Ft){switch(Ft.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Mr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"break-word":return"break-word";case"normal":default:return"normal"}}},Gr=function(Bt){return{name:"padding-"+Bt,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Uo=Gr("top"),Lo=Gr("right"),Ss=Gr("bottom"),wr=Gr("left"),_n={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},ls={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Jo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){return xt.length===1&&Yl(xt[0],"none")?[]:tu(xt).map(function(Ft){for(var Lt={color:_h.TRANSPARENT,offsetX:Xl,offsetY:Xl,blur:Xl},te=0,Pe=0;Pe<Ft.length;Pe++){var $e=Ft[Pe];Ll($e)?(te===0?Lt.offsetX=$e:te===1?Lt.offsetY=$e:Lt.blur=$e,te++):Lt.color=Ma.parse(Bt,$e)}return Lt})}},Rr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},So={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Bt,xt){if(xt.type===20&&xt.value==="none")return null;if(xt.type===18){var Ft=ts[xt.name];if(typeof Ft=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+xt.name+'"');return Ft(xt.values)}return null}},xo=function(Bt){var xt=Bt.filter(function(Ft){return Ft.type===17}).map(function(Ft){return Ft.number});return xt.length===6?xt:null},Yr=function(Bt){var xt=Bt.filter(function(rn){return rn.type===17}).map(function(rn){return rn.number}),Ft=xt[0],Lt=xt[1];xt[2],xt[3];var te=xt[4],Pe=xt[5];xt[6],xt[7],xt[8],xt[9],xt[10],xt[11];var $e=xt[12],Fn=xt[13];return xt[14],xt[15],xt.length===16?[Ft,Lt,te,Pe,$e,Fn]:null},ts={matrix:xo,matrix3d:Yr},ms={type:16,number:50,flags:Pi},cs=[ms,ms],Ds={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Bt,xt){var Ft=xt.filter(uo);return Ft.length!==2?cs:[Ft[0],Ft[1]]}},$o={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ra;(function(Bt){Bt.NORMAL="normal",Bt.BREAK_ALL="break-all",Bt.KEEP_ALL="keep-all"})(ra||(ra={}));for(var Bs={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"break-all":return ra.BREAK_ALL;case"keep-all":return ra.KEEP_ALL;case"normal":default:return ra.NORMAL}}},ta={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Bt,xt){if(xt.type===20)return{auto:!0,order:0};if(bo(xt))return{auto:!1,order:xt.number};throw new Error("Invalid z-index number parsed")}},ko={name:"time",parse:function(Bt,xt){if(xt.type===15)switch(xt.unit.toLowerCase()){case"s":return 1e3*xt.number;case"ms":return xt.number}throw new Error("Unsupported time type")}},Au={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Bt,xt){return bo(xt)?xt.number:1}},Ca={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gh={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Bt,xt){return xt.filter(fa).map(function(Ft){switch(Ft.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Ft){return Ft!==0})}},Ho={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Bt,xt){var Ft=[],Lt=[];return xt.forEach(function(te){switch(te.type){case 20:case 0:Ft.push(te.value);break;case 17:Ft.push(te.number.toString());break;case 4:Lt.push(Ft.join(" ")),Ft.length=0;break}}),Ft.length&&Lt.push(Ft.join(" ")),Lt.map(function(te){return te.indexOf(" ")===-1?te:"'"+te+"'"})}},gl={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},AA={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Bt,xt){if(bo(xt))return xt.number;if(fa(xt))switch(xt.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ha={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){return xt.filter(fa).map(function(Ft){return Ft.value})}},ku={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},oa=function(Bt,xt){return(Bt&xt)!==0},ph={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){if(xt.length===0)return[];var Ft=xt[0];return Ft.type===20&&Ft.value==="none"?[]:xt}},oc={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Bt,xt){if(xt.length===0)return null;var Ft=xt[0];if(Ft.type===20&&Ft.value==="none")return null;for(var Lt=[],te=xt.filter(Rl),Pe=0;Pe<te.length;Pe++){var $e=te[Pe],Fn=te[Pe+1];if($e.type===20){var rn=Fn&&bo(Fn)?Fn.number:1;Lt.push({counter:$e.value,increment:rn})}}return Lt}},wl={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Bt,xt){if(xt.length===0)return[];for(var Ft=[],Lt=xt.filter(Rl),te=0;te<Lt.length;te++){var Pe=Lt[te],$e=Lt[te+1];if(fa(Pe)&&Pe.value!=="none"){var Fn=$e&&bo($e)?$e.number:0;Ft.push({counter:Pe.value,reset:Fn})}}return Ft}},_s={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Bt,xt){return xt.filter(Ql).map(function(Ft){return ko.parse(Bt,Ft)})}},Ia={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Bt,xt){if(xt.length===0)return null;var Ft=xt[0];if(Ft.type===20&&Ft.value==="none")return null;var Lt=[],te=xt.filter(Ea);if(te.length%2!==0)return null;for(var Pe=0;Pe<te.length;Pe+=2){var $e=te[Pe].value,Fn=te[Pe+1].value;Lt.push({open:$e,close:Fn})}return Lt}},cA=function(Bt,xt,Ft){if(!Bt)return"";var Lt=Bt[Math.min(xt,Bt.length-1)];return Lt?Ft?Lt.open:Lt.close:""},ou={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){return xt.length===1&&Yl(xt[0],"none")?[]:tu(xt).map(function(Ft){for(var Lt={color:255,offsetX:Xl,offsetY:Xl,blur:Xl,spread:Xl,inset:!1},te=0,Pe=0;Pe<Ft.length;Pe++){var $e=Ft[Pe];Yl($e,"inset")?Lt.inset=!0:Ll($e)?(te===0?Lt.offsetX=$e:te===1?Lt.offsetY=$e:te===2?Lt.blur=$e:Lt.spread=$e,te++):Lt.color=Ma.parse(Bt,$e)}return Lt})}},dA={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Bt,xt){var Ft=[0,1,2],Lt=[];return xt.filter(fa).forEach(function(te){switch(te.value){case"stroke":Lt.push(1);break;case"fill":Lt.push(0);break;case"markers":Lt.push(2);break}}),Ft.forEach(function(te){Lt.indexOf(te)===-1&&Lt.push(te)}),Lt}},Fh={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Cs={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Bt,xt){return Ql(xt)?xt.number:0}},wu=function(){function Bt(xt,Ft){var Lt,te;this.animationDuration=ho(xt,_s,Ft.animationDuration),this.backgroundClip=ho(xt,fo,Ft.backgroundClip),this.backgroundColor=ho(xt,Kf,Ft.backgroundColor),this.backgroundImage=ho(xt,tl,Ft.backgroundImage),this.backgroundOrigin=ho(xt,yt,Ft.backgroundOrigin),this.backgroundPosition=ho(xt,gt,Ft.backgroundPosition),this.backgroundRepeat=ho(xt,wt,Ft.backgroundRepeat),this.backgroundSize=ho(xt,kt,Ft.backgroundSize),this.borderTopColor=ho(xt,ne,Ft.borderTopColor),this.borderRightColor=ho(xt,Ce,Ft.borderRightColor),this.borderBottomColor=ho(xt,Re,Ft.borderBottomColor),this.borderLeftColor=ho(xt,Qe,Ft.borderLeftColor),this.borderTopLeftRadius=ho(xt,ce,Ft.borderTopLeftRadius),this.borderTopRightRadius=ho(xt,kn,Ft.borderTopRightRadius),this.borderBottomRightRadius=ho(xt,Bn,Ft.borderBottomRightRadius),this.borderBottomLeftRadius=ho(xt,jn,Ft.borderBottomLeftRadius),this.borderTopStyle=ho(xt,On,Ft.borderTopStyle),this.borderRightStyle=ho(xt,mi,Ft.borderRightStyle),this.borderBottomStyle=ho(xt,Ui,Ft.borderBottomStyle),this.borderLeftStyle=ho(xt,ir,Ft.borderLeftStyle),this.borderTopWidth=ho(xt,_i,Ft.borderTopWidth),this.borderRightWidth=ho(xt,li,Ft.borderRightWidth),this.borderBottomWidth=ho(xt,Xi,Ft.borderBottomWidth),this.borderLeftWidth=ho(xt,yr,Ft.borderLeftWidth),this.boxShadow=ho(xt,ou,Ft.boxShadow),this.color=ho(xt,yn,Ft.color),this.direction=ho(xt,bn,Ft.direction),this.display=ho(xt,bi,Ft.display),this.float=ho(xt,cr,Ft.cssFloat),this.fontFamily=ho(xt,Ho,Ft.fontFamily),this.fontSize=ho(xt,gl,Ft.fontSize),this.fontStyle=ho(xt,ku,Ft.fontStyle),this.fontVariant=ho(xt,Ha,Ft.fontVariant),this.fontWeight=ho(xt,AA,Ft.fontWeight),this.letterSpacing=ho(xt,sr,Ft.letterSpacing),this.lineBreak=ho(xt,zi,Ft.lineBreak),this.lineHeight=ho(xt,Gi,Ft.lineHeight),this.listStyleImage=ho(xt,ao,Ft.listStyleImage),this.listStylePosition=ho(xt,tn,Ft.listStylePosition),this.listStyleType=ho(xt,Un,Ft.listStyleType),this.marginTop=ho(xt,pi,Ft.marginTop),this.marginRight=ho(xt,Oi,Ft.marginRight),this.marginBottom=ho(xt,$i,Ft.marginBottom),this.marginLeft=ho(xt,Wi,Ft.marginLeft),this.opacity=ho(xt,Au,Ft.opacity);var Pe=ho(xt,or,Ft.overflow);this.overflowX=Pe[0],this.overflowY=Pe[Pe.length>1?1:0],this.overflowWrap=ho(xt,Mr,Ft.overflowWrap),this.paddingTop=ho(xt,Uo,Ft.paddingTop),this.paddingRight=ho(xt,Lo,Ft.paddingRight),this.paddingBottom=ho(xt,Ss,Ft.paddingBottom),this.paddingLeft=ho(xt,wr,Ft.paddingLeft),this.paintOrder=ho(xt,dA,Ft.paintOrder),this.position=ho(xt,ls,Ft.position),this.textAlign=ho(xt,_n,Ft.textAlign),this.textDecorationColor=ho(xt,Ca,(Lt=Ft.textDecorationColor)!==null&&Lt!==void 0?Lt:Ft.color),this.textDecorationLine=ho(xt,gh,(te=Ft.textDecorationLine)!==null&&te!==void 0?te:Ft.textDecoration),this.textShadow=ho(xt,Jo,Ft.textShadow),this.textTransform=ho(xt,Rr,Ft.textTransform),this.transform=ho(xt,So,Ft.transform),this.transformOrigin=ho(xt,Ds,Ft.transformOrigin),this.visibility=ho(xt,$o,Ft.visibility),this.webkitTextStrokeColor=ho(xt,Fh,Ft.webkitTextStrokeColor),this.webkitTextStrokeWidth=ho(xt,Cs,Ft.webkitTextStrokeWidth),this.wordBreak=ho(xt,Bs,Ft.wordBreak),this.zIndex=ho(xt,ta,Ft.zIndex)}return Bt.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Bt.prototype.isTransparent=function(){return ga(this.backgroundColor)},Bt.prototype.isTransformed=function(){return this.transform!==null},Bt.prototype.isPositioned=function(){return this.position!==0},Bt.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Bt.prototype.isFloating=function(){return this.float!==0},Bt.prototype.isInlineLevel=function(){return oa(this.display,4)||oa(this.display,33554432)||oa(this.display,268435456)||oa(this.display,536870912)||oa(this.display,67108864)||oa(this.display,134217728)},Bt}(),Fl=function(){function Bt(xt,Ft){this.content=ho(xt,ph,Ft.content),this.quotes=ho(xt,Ia,Ft.quotes)}return Bt}(),Gl=function(){function Bt(xt,Ft){this.counterIncrement=ho(xt,oc,Ft.counterIncrement),this.counterReset=ho(xt,wl,Ft.counterReset)}return Bt}(),ho=function(Bt,xt,Ft){var Lt=new bl,te=Ft!==null&&typeof Ft!="undefined"?Ft.toString():xt.initialValue;Lt.write(te);var Pe=new zu(Lt.read());switch(xt.type){case 2:var $e=Pe.parseComponentValue();return xt.parse(Bt,fa($e)?$e.value:xt.initialValue);case 0:return xt.parse(Bt,Pe.parseComponentValue());case 1:return xt.parse(Bt,Pe.parseComponentValues());case 4:return Pe.parseComponentValue();case 3:switch(xt.format){case"angle":return ns.parse(Bt,Pe.parseComponentValue());case"color":return Ma.parse(Bt,Pe.parseComponentValue());case"image":return gu.parse(Bt,Pe.parseComponentValue());case"length":var Fn=Pe.parseComponentValue();return Ll(Fn)?Fn:Xl;case"length-percentage":var rn=Pe.parseComponentValue();return uo(rn)?rn:Xl;case"time":return ko.parse(Bt,Pe.parseComponentValue())}break}},pl="data-html2canvas-debug",Ku=function(Bt){var xt=Bt.getAttribute(pl);switch(xt){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},PA=function(Bt,xt){var Ft=Ku(Bt);return Ft===1||xt===Ft},pu=function(){function Bt(xt,Ft){if(this.context=xt,this.textNodes=[],this.elements=[],this.flags=0,PA(Ft,3))debugger;this.styles=new wu(xt,window.getComputedStyle(Ft,null)),fr(Ft)&&(this.styles.animationDuration.some(function(Lt){return Lt>0})&&(Ft.style.animationDuration="0s"),this.styles.transform!==null&&(Ft.style.transform="none")),this.bounds=vn(this.context,Ft),PA(Ft,4)&&(this.flags|=16)}return Bt}(),Su="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Vu=0;Vu<xu.length;Vu++)Wu[xu.charCodeAt(Vu)]=Vu;for(var fl=function(Bt){var xt=Bt.length*.75,Ft=Bt.length,Lt,te=0,Pe,$e,Fn,rn;Bt[Bt.length-1]==="="&&(xt--,Bt[Bt.length-2]==="="&&xt--);var Ai=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xt):new Array(xt),vi=Array.isArray(Ai)?Ai:new Uint8Array(Ai);for(Lt=0;Lt<Ft;Lt+=4)Pe=Wu[Bt.charCodeAt(Lt)],$e=Wu[Bt.charCodeAt(Lt+1)],Fn=Wu[Bt.charCodeAt(Lt+2)],rn=Wu[Bt.charCodeAt(Lt+3)],vi[te++]=Pe<<2|$e>>4,vi[te++]=($e&15)<<4|Fn>>2,vi[te++]=(Fn&3)<<6|rn&63;return Ai},Yu=function(Bt){for(var xt=Bt.length,Ft=[],Lt=0;Lt<xt;Lt+=2)Ft.push(Bt[Lt+1]<<8|Bt[Lt]);return Ft},sc=function(Bt){for(var xt=Bt.length,Ft=[],Lt=0;Lt<xt;Lt+=4)Ft.push(Bt[Lt+3]<<24|Bt[Lt+2]<<16|Bt[Lt+1]<<8|Bt[Lt]);return Ft},Xu=5,fA=11,Zu=2,UA=fA-Xu,sd=65536>>Xu,El=1<<Xu,ac=El-1,Kh=1024>>Xu,QA=sd+Kh,ad=QA,ld=32,kc=ad+ld,qd=65536>>fA,lc=1<<UA,Bu=lc-1,tf=function(Bt,xt,Ft){return Bt.slice?Bt.slice(xt,Ft):new Uint16Array(Array.prototype.slice.call(Bt,xt,Ft))},Zl=function(Bt,xt,Ft){return Bt.slice?Bt.slice(xt,Ft):new Uint32Array(Array.prototype.slice.call(Bt,xt,Ft))},RA=function(Bt,xt){var Ft=fl(Bt),Lt=Array.isArray(Ft)?sc(Ft):new Uint32Array(Ft),te=Array.isArray(Ft)?Yu(Ft):new Uint16Array(Ft),Pe=24,$e=tf(te,Pe/2,Lt[4]/2),Fn=Lt[5]===2?tf(te,(Pe+Lt[4])/2):Zl(Lt,Math.ceil((Pe+Lt[4])/4));return new uc(Lt[0],Lt[1],Lt[2],Lt[3],$e,Fn)},uc=function(){function Bt(xt,Ft,Lt,te,Pe,$e){this.initialValue=xt,this.errorValue=Ft,this.highStart=Lt,this.highValueIndex=te,this.index=Pe,this.data=$e}return Bt.prototype.get=function(xt){var Ft;if(xt>=0){if(xt<55296||xt>56319&&xt<=65535)return Ft=this.index[xt>>Xu],Ft=(Ft<<Zu)+(xt&ac),this.data[Ft];if(xt<=65535)return Ft=this.index[sd+(xt-55296>>Xu)],Ft=(Ft<<Zu)+(xt&ac),this.data[Ft];if(xt<this.highStart)return Ft=kc-qd+(xt>>fA),Ft=this.index[Ft],Ft+=xt>>Xu&Bu,Ft=this.index[Ft],Ft=(Ft<<Zu)+(xt&ac),this.data[Ft];if(xt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Bt}(),el="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wh=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ud=0;ud<el.length;ud++)Wh[el.charCodeAt(ud)]=ud;var Eh=1,hc=2,on=3,gA=4,Mh=5,pf=7,hd=8,Ld=9,Tc=10,mf=11,_l=12,Oc=13,Fd=14,Ed=15,HA=function(Bt){for(var xt=[],Ft=0,Lt=Bt.length;Ft<Lt;){var te=Bt.charCodeAt(Ft++);if(te>=55296&&te<=56319&&Ft<Lt){var Pe=Bt.charCodeAt(Ft++);(Pe&64512)===56320?xt.push(((te&1023)<<10)+(Pe&1023)+65536):(xt.push(te),Ft--)}else xt.push(te)}return xt},Ad=function(){for(var Bt=[],xt=0;xt<arguments.length;xt++)Bt[xt]=arguments[xt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Bt);var Ft=Bt.length;if(!Ft)return"";for(var Lt=[],te=-1,Pe="";++te<Ft;){var $e=Bt[te];$e<=65535?Lt.push($e):($e-=65536,Lt.push(($e>>10)+55296,$e%1024+56320)),(te+1===Ft||Lt.length>16384)&&(Pe+=String.fromCharCode.apply(String,Lt),Lt.length=0)}return Pe},cd=RA(Su),Tu="\xD7",nl="\xF7",Dc=function(Bt){return cd.get(Bt)},Md=function(Bt,xt,Ft){var Lt=Ft-2,te=xt[Lt],Pe=xt[Ft-1],$e=xt[Ft];if(Pe===hc&&$e===on)return Tu;if(Pe===hc||Pe===on||Pe===gA||$e===hc||$e===on||$e===gA)return nl;if(Pe===hd&&[hd,Ld,mf,_l].indexOf($e)!==-1||(Pe===mf||Pe===Ld)&&($e===Ld||$e===Tc)||(Pe===_l||Pe===Tc)&&$e===Tc||$e===Oc||$e===Mh||$e===pf||Pe===Eh)return Tu;if(Pe===Oc&&$e===Fd){for(;te===Mh;)te=xt[--Lt];if(te===Fd)return Tu}if(Pe===Ed&&$e===Ed){for(var Fn=0;te===Ed;)Fn++,te=xt[--Lt];if(Fn%2===0)return Tu}return nl},bs=function(Bt){var xt=HA(Bt),Ft=xt.length,Lt=0,te=0,Pe=xt.map(Dc);return{next:function(){if(Lt>=Ft)return{done:!0,value:null};for(var $e=Tu;Lt<Ft&&($e=Md(xt,Pe,++Lt))===Tu;);if($e!==Tu||Lt===Ft){var Fn=Ad.apply(null,xt.slice(te,Lt));return te=Lt,{value:Fn,done:!1}}return{done:!0,value:null}}}},dd=function(Bt){for(var xt=bs(Bt),Ft=[],Lt;!(Lt=xt.next()).done;)Lt.value&&Ft.push(Lt.value.slice());return Ft},Nd=function(Bt){var xt=123;if(Bt.createRange){var Ft=Bt.createRange();if(Ft.getBoundingClientRect){var Lt=Bt.createElement("boundtest");Lt.style.height=xt+"px",Lt.style.display="block",Bt.body.appendChild(Lt),Ft.selectNode(Lt);var te=Ft.getBoundingClientRect(),Pe=Math.round(te.height);if(Bt.body.removeChild(Lt),Pe===xt)return!0}}return!1},Nh=function(Bt){var xt=Bt.createElement("boundtest");xt.style.width="50px",xt.style.display="block",xt.style.fontSize="12px",xt.style.letterSpacing="0px",xt.style.wordSpacing="0px",Bt.body.appendChild(xt);var Ft=Bt.createRange();xt.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var Lt=xt.firstChild,te=ge(Lt.data).map(function(rn){return ye(rn)}),Pe=0,$e={},Fn=te.every(function(rn,Ai){Ft.setStart(Lt,Pe),Ft.setEnd(Lt,Pe+rn.length);var vi=Ft.getBoundingClientRect();Pe+=rn.length;var pt=vi.x>$e.x||vi.y>$e.y;return $e=vi,Ai===0?!0:pt});return Bt.body.removeChild(xt),Fn},Cu=function(){return typeof new Image().crossOrigin!="undefined"},Id=function(){return typeof new XMLHttpRequest().responseType=="string"},jc=function(Bt){var xt=new Image,Ft=Bt.createElement("canvas"),Lt=Ft.getContext("2d");if(!Lt)return!1;xt.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Lt.drawImage(xt,0,0),Ft.toDataURL()}catch(te){return!1}return!0},Pu=function(Bt){return Bt[0]===0&&Bt[1]===255&&Bt[2]===0&&Bt[3]===255},Uc=function(Bt){var xt=Bt.createElement("canvas"),Ft=100;xt.width=Ft,xt.height=Ft;var Lt=xt.getContext("2d");if(!Lt)return Promise.reject(!1);Lt.fillStyle="rgb(0, 255, 0)",Lt.fillRect(0,0,Ft,Ft);var te=new Image,Pe=xt.toDataURL();te.src=Pe;var $e=fd(Ft,Ft,0,0,te);return Lt.fillStyle="red",Lt.fillRect(0,0,Ft,Ft),ef($e).then(function(Fn){Lt.drawImage(Fn,0,0);var rn=Lt.getImageData(0,0,Ft,Ft).data;Lt.fillStyle="red",Lt.fillRect(0,0,Ft,Ft);var Ai=Bt.createElement("div");return Ai.style.backgroundImage="url("+Pe+")",Ai.style.height=Ft+"px",Pu(rn)?ef(fd(Ft,Ft,0,0,Ai)):Promise.reject(!1)}).then(function(Fn){return Lt.drawImage(Fn,0,0),Pu(Lt.getImageData(0,0,Ft,Ft).data)}).catch(function(){return!1})},fd=function(Bt,xt,Ft,Lt,te){var Pe="http://www.w3.org/2000/svg",$e=document.createElementNS(Pe,"svg"),Fn=document.createElementNS(Pe,"foreignObject");return $e.setAttributeNS(null,"width",Bt.toString()),$e.setAttributeNS(null,"height",xt.toString()),Fn.setAttributeNS(null,"width","100%"),Fn.setAttributeNS(null,"height","100%"),Fn.setAttributeNS(null,"x",Ft.toString()),Fn.setAttributeNS(null,"y",Lt.toString()),Fn.setAttributeNS(null,"externalResourcesRequired","true"),$e.appendChild(Fn),Fn.appendChild(te),$e},ef=function(Bt){return new Promise(function(xt,Ft){var Lt=new Image;Lt.onload=function(){return xt(Lt)},Lt.onerror=Ft,Lt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Bt))})},Sl={get SUPPORT_RANGE_BOUNDS(){var Bt=Nd(document);return Object.defineProperty(Sl,"SUPPORT_RANGE_BOUNDS",{value:Bt}),Bt},get SUPPORT_WORD_BREAKING(){var Bt=Sl.SUPPORT_RANGE_BOUNDS&&Nh(document);return Object.defineProperty(Sl,"SUPPORT_WORD_BREAKING",{value:Bt}),Bt},get SUPPORT_SVG_DRAWING(){var Bt=jc(document);return Object.defineProperty(Sl,"SUPPORT_SVG_DRAWING",{value:Bt}),Bt},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Bt=typeof Array.from=="function"&&typeof window.fetch=="function"?Uc(document):Promise.resolve(!1);return Object.defineProperty(Sl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Bt}),Bt},get SUPPORT_CORS_IMAGES(){var Bt=Cu();return Object.defineProperty(Sl,"SUPPORT_CORS_IMAGES",{value:Bt}),Bt},get SUPPORT_RESPONSE_TYPE(){var Bt=Id();return Object.defineProperty(Sl,"SUPPORT_RESPONSE_TYPE",{value:Bt}),Bt},get SUPPORT_CORS_XHR(){var Bt="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Sl,"SUPPORT_CORS_XHR",{value:Bt}),Bt},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Bt=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Sl,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Bt}),Bt}},Tl=function(){function Bt(xt,Ft){this.text=xt,this.bounds=Ft}return Bt}(),zA=function(Bt,xt,Ft,Lt){var te=Ac(xt,Ft),Pe=[],$e=0;return te.forEach(function(Fn){if(Ft.textDecorationLine.length||Fn.trim().length>0)if(Sl.SUPPORT_RANGE_BOUNDS){var rn=pA(Lt,$e,Fn.length).getClientRects();if(rn.length>1){var Ai=GA(Fn),vi=0;Ai.forEach(function(Pt){Pe.push(new Tl(Pt,Be.fromDOMRectList(Bt,pA(Lt,vi+$e,Pt.length).getClientRects()))),vi+=Pt.length})}else Pe.push(new Tl(Fn,Be.fromDOMRectList(Bt,rn)))}else{var pt=Lt.splitText(Fn.length);Pe.push(new Tl(Fn,Ml(Bt,Lt))),Lt=pt}else Sl.SUPPORT_RANGE_BOUNDS||(Lt=Lt.splitText(Fn.length));$e+=Fn.length}),Pe},Ml=function(Bt,xt){var Ft=xt.ownerDocument;if(Ft){var Lt=Ft.createElement("html2canvaswrapper");Lt.appendChild(xt.cloneNode(!0));var te=xt.parentNode;if(te){te.replaceChild(Lt,xt);var Pe=vn(Bt,Lt);return Lt.firstChild&&te.replaceChild(Lt.firstChild,Lt),Pe}}return Be.EMPTY},pA=function(Bt,xt,Ft){var Lt=Bt.ownerDocument;if(!Lt)throw new Error("Node has no owner document");var te=Lt.createRange();return te.setStart(Bt,xt),te.setEnd(Bt,xt+Ft),te},GA=function(Bt){if(Sl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var xt=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(xt.segment(Bt)).map(function(Ft){return Ft.segment})}return dd(Bt)},Vh=function(Bt,xt){if(Sl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ft=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Ft.segment(Bt)).map(function(Lt){return Lt.segment})}return kd(Bt,xt)},Ac=function(Bt,xt){return xt.letterSpacing!==0?GA(Bt):Vh(Bt,xt)},cc=[32,160,4961,65792,65793,4153,4241],kd=function(Bt,xt){for(var Ft=qe(Bt,{lineBreak:xt.lineBreak,wordBreak:xt.overflowWrap==="break-word"?"break-word":xt.wordBreak}),Lt=[],te,Pe=function(){if(te.value){var $e=te.value.slice(),Fn=ge($e),rn="";Fn.forEach(function(Ai){cc.indexOf(Ai)===-1?rn+=ye(Ai):(rn.length&&Lt.push(rn),Lt.push(ye(Ai)),rn="")}),rn.length&&Lt.push(rn)}};!(te=Ft.next()).done;)Pe();return Lt},dc=function(){function Bt(xt,Ft,Lt){this.text=mA(Ft.data,Lt.textTransform),this.textBounds=zA(xt,this.text,Lt,Ft)}return Bt}(),mA=function(Bt,xt){switch(xt){case 1:return Bt.toLowerCase();case 3:return Bt.replace(bu,fc);case 2:return Bt.toUpperCase();default:return Bt}},bu=/(^|\s|:|-|\(|\))([a-z])/g,fc=function(Bt,xt,Ft){return Bt.length>0?xt+Ft.toUpperCase():Bt},vA=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;return te.src=Lt.currentSrc||Lt.src,te.intrinsicWidth=Lt.naturalWidth,te.intrinsicHeight=Lt.naturalHeight,te.context.cache.addImage(te.src),te}return xt}(pu),mh=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;return te.canvas=Lt,te.intrinsicWidth=Lt.width,te.intrinsicHeight=Lt.height,te}return xt}(pu),gc=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this,Pe=new XMLSerializer,$e=vn(Ft,Lt);return Lt.setAttribute("width",$e.width+"px"),Lt.setAttribute("height",$e.height+"px"),te.svg="data:image/svg+xml,"+encodeURIComponent(Pe.serializeToString(Lt)),te.intrinsicWidth=Lt.width.baseVal.value,te.intrinsicHeight=Lt.height.baseVal.value,te.context.cache.addImage(te.svg),te}return xt}(pu),Ih=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;return te.value=Lt.value,te}return xt}(pu),gd=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;return te.start=Lt.start,te.reversed=typeof Lt.reversed=="boolean"&&Lt.reversed===!0,te}return xt}(pu),Qc=[{type:15,flags:0,unit:"px",number:3}],nf=[{type:16,flags:0,number:50}],vh=function(Bt){return Bt.width>Bt.height?new Be(Bt.left+(Bt.width-Bt.height)/2,Bt.top,Bt.height,Bt.height):Bt.width<Bt.height?new Be(Bt.left,Bt.top+(Bt.height-Bt.width)/2,Bt.width,Bt.width):Bt},Td=function(Bt){var xt=Bt.type===bA?new Array(Bt.value.length+1).join("\u2022"):Bt.value;return xt.length===0?Bt.placeholder||"":xt},pc="checkbox",kh="radio",bA="password",Rc=707406591,Ju=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;switch(te.type=Lt.type.toLowerCase(),te.checked=Lt.checked,te.value=Td(Lt),(te.type===pc||te.type===kh)&&(te.styles.backgroundColor=3739148031,te.styles.borderTopColor=te.styles.borderRightColor=te.styles.borderBottomColor=te.styles.borderLeftColor=2779096575,te.styles.borderTopWidth=te.styles.borderRightWidth=te.styles.borderBottomWidth=te.styles.borderLeftWidth=1,te.styles.borderTopStyle=te.styles.borderRightStyle=te.styles.borderBottomStyle=te.styles.borderLeftStyle=1,te.styles.backgroundClip=[0],te.styles.backgroundOrigin=[0],te.bounds=vh(te.bounds)),te.type){case pc:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=Qc;break;case kh:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=nf;break}return te}return xt}(pu),Od=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this,Pe=Lt.options[Lt.selectedIndex||0];return te.value=Pe&&Pe.text||"",te}return xt}(pu),_A=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;return te.value=Lt.value,te}return xt}(pu),mc=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;te.src=Lt.src,te.width=parseInt(Lt.width,10)||0,te.height=parseInt(Lt.height,10)||0,te.backgroundColor=te.styles.backgroundColor;try{if(Lt.contentWindow&&Lt.contentWindow.document&&Lt.contentWindow.document.documentElement){te.tree=_t(Ft,Lt.contentWindow.document.documentElement);var Pe=Lt.contentWindow.document.documentElement?ic(Ft,getComputedStyle(Lt.contentWindow.document.documentElement).backgroundColor):_h.TRANSPARENT,$e=Lt.contentWindow.document.body?ic(Ft,getComputedStyle(Lt.contentWindow.document.body).backgroundColor):_h.TRANSPARENT;te.backgroundColor=ga(Pe)?ga($e)?te.styles.backgroundColor:$e:Pe}}catch(Fn){}return te}return xt}(pu),pd=["OL","UL","MENU"],Yh=function(Bt,xt,Ft,Lt){for(var te=xt.firstChild,Pe=void 0;te;te=Pe)if(Pe=te.nextSibling,gi(te)&&te.data.trim().length>0)Ft.textNodes.push(new dc(Bt,te,Ft.styles));else if(ji(te))if(Hc(te)&&te.assignedNodes)te.assignedNodes().forEach(function(Fn){return Yh(Bt,Fn,Ft,Lt)});else{var $e=Dd(Bt,te);$e.styles.isVisible()&&(Ge(te,$e,Lt)?$e.flags|=4:Rn($e.styles)&&($e.flags|=2),pd.indexOf(te.tagName)!==-1&&($e.flags|=8),Ft.elements.push($e),te.slot,te.shadowRoot?Yh(Bt,te.shadowRoot,$e,Lt):!yh(te)&&!La(te)&&!vc(te)&&Yh(Bt,te,$e,Lt))}},Dd=function(Bt,xt){return ma(xt)?new vA(Bt,xt):ml(xt)?new mh(Bt,xt):La(xt)?new gc(Bt,xt):_o(xt)?new Ih(Bt,xt):gs(xt)?new gd(Bt,xt):ea(xt)?new Ju(Bt,xt):vc(xt)?new Od(Bt,xt):yh(xt)?new _A(Bt,xt):ja(xt)?new mc(Bt,xt):new pu(Bt,xt)},_t=function(Bt,xt){var Ft=Dd(Bt,xt);return Ft.flags|=4,Yh(Bt,xt,Ft,Ft),Ft},Ge=function(Bt,xt,Ft){return xt.styles.isPositionedWithZIndex()||xt.styles.opacity<1||xt.styles.isTransformed()||ss(Bt)&&Ft.styles.isTransparent()},Rn=function(Bt){return Bt.isPositioned()||Bt.isFloating()},gi=function(Bt){return Bt.nodeType===Node.TEXT_NODE},ji=function(Bt){return Bt.nodeType===Node.ELEMENT_NODE},fr=function(Bt){return ji(Bt)&&typeof Bt.style!="undefined"&&!Or(Bt)},Or=function(Bt){return typeof Bt.className=="object"},_o=function(Bt){return Bt.tagName==="LI"},gs=function(Bt){return Bt.tagName==="OL"},ea=function(Bt){return Bt.tagName==="INPUT"},Ks=function(Bt){return Bt.tagName==="HTML"},La=function(Bt){return Bt.tagName==="svg"},ss=function(Bt){return Bt.tagName==="BODY"},ml=function(Bt){return Bt.tagName==="CANVAS"},xl=function(Bt){return Bt.tagName==="VIDEO"},ma=function(Bt){return Bt.tagName==="IMG"},ja=function(Bt){return Bt.tagName==="IFRAME"},Lu=function(Bt){return Bt.tagName==="STYLE"},Ou=function(Bt){return Bt.tagName==="SCRIPT"},yh=function(Bt){return Bt.tagName==="TEXTAREA"},vc=function(Bt){return Bt.tagName==="SELECT"},Hc=function(Bt){return Bt.tagName==="SLOT"},zc=function(Bt){return Bt.tagName.indexOf("-")>0},Gc=function(){function Bt(){this.counters={}}return Bt.prototype.getCounterValue=function(xt){var Ft=this.counters[xt];return Ft&&Ft.length?Ft[Ft.length-1]:1},Bt.prototype.getCounterValues=function(xt){var Ft=this.counters[xt];return Ft||[]},Bt.prototype.pop=function(xt){var Ft=this;xt.forEach(function(Lt){return Ft.counters[Lt].pop()})},Bt.prototype.parse=function(xt){var Ft=this,Lt=xt.counterIncrement,te=xt.counterReset,Pe=!0;Lt!==null&&Lt.forEach(function(Fn){var rn=Ft.counters[Fn.counter];rn&&Fn.increment!==0&&(Pe=!1,rn.length||rn.push(1),rn[Math.max(0,rn.length-1)]+=Fn.increment)});var $e=[];return Pe&&te.forEach(function(Fn){var rn=Ft.counters[Fn.counter];$e.push(Fn.counter),rn||(rn=Ft.counters[Fn.counter]=[]),rn.push(Fn.reset)}),$e},Bt}(),Xh={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},KA={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Zh={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Us={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Th=function(Bt,xt,Ft,Lt,te,Pe){return Bt<xt||Bt>Ft?ct(Bt,te,Pe.length>0):Lt.integers.reduce(function($e,Fn,rn){for(;Bt>=Fn;)Bt-=Fn,$e+=Lt.values[rn];return $e},"")+Pe},yc=function(Bt,xt,Ft,Lt){var te="";do Ft||Bt--,te=Lt(Bt)+te,Bt/=xt;while(Bt*xt>=xt);return te},il=function(Bt,xt,Ft,Lt,te){var Pe=Ft-xt+1;return(Bt<0?"-":"")+(yc(Math.abs(Bt),Pe,Lt,function($e){return ye(Math.floor($e%Pe)+xt)})+te)},$u=function(Bt,xt,Ft){Ft===void 0&&(Ft=". ");var Lt=xt.length;return yc(Math.abs(Bt),Lt,!1,function(te){return xt[Math.floor(te%Lt)]})+Ft},Jl=1,LA=2,za=4,wc=8,Ol=function(Bt,xt,Ft,Lt,te,Pe){if(Bt<-9999||Bt>9999)return ct(Bt,4,te.length>0);var $e=Math.abs(Bt),Fn=te;if($e===0)return xt[0]+Fn;for(var rn=0;$e>0&&rn<=4;rn++){var Ai=$e%10;Ai===0&&oa(Pe,Jl)&&Fn!==""?Fn=xt[Ai]+Fn:Ai>1||Ai===1&&rn===0||Ai===1&&rn===1&&oa(Pe,LA)||Ai===1&&rn===1&&oa(Pe,za)&&Bt>100||Ai===1&&rn>1&&oa(Pe,wc)?Fn=xt[Ai]+(rn>0?Ft[rn-1]:"")+Fn:Ai===1&&rn>0&&(Fn=Ft[rn-1]+Fn),$e=Math.floor($e/10)}return(Bt<0?Lt:"")+Fn},wh="\u5341\u767E\u5343\u842C",Sc="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",ot="\uB9C8\uC774\uB108\uC2A4",ct=function(Bt,xt,Ft){var Lt=Ft?". ":"",te=Ft?"\u3001":"",Pe=Ft?", ":"",$e=Ft?" ":"";switch(xt){case 0:return"\u2022"+$e;case 1:return"\u25E6"+$e;case 2:return"\u25FE"+$e;case 5:var Fn=il(Bt,48,57,!0,Lt);return Fn.length<4?"0"+Fn:Fn;case 4:return $u(Bt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",te);case 6:return Th(Bt,1,3999,Xh,3,Lt).toLowerCase();case 7:return Th(Bt,1,3999,Xh,3,Lt);case 8:return il(Bt,945,969,!1,Lt);case 9:return il(Bt,97,122,!1,Lt);case 10:return il(Bt,65,90,!1,Lt);case 11:return il(Bt,1632,1641,!0,Lt);case 12:case 49:return Th(Bt,1,9999,KA,3,Lt);case 35:return Th(Bt,1,9999,KA,3,Lt).toLowerCase();case 13:return il(Bt,2534,2543,!0,Lt);case 14:case 30:return il(Bt,6112,6121,!0,Lt);case 15:return $u(Bt,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",te);case 16:return $u(Bt,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",te);case 17:case 48:return Ol(Bt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",wh,"\u8CA0",te,LA|za|wc);case 47:return Ol(Bt,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Sc,"\u8CA0",te,Jl|LA|za|wc);case 42:return Ol(Bt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",wh,"\u8D1F",te,LA|za|wc);case 41:return Ol(Bt,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Sc,"\u8D1F",te,Jl|LA|za|wc);case 26:return Ol(Bt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,te,0);case 25:return Ol(Bt,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,te,Jl|LA|za);case 31:return Ol(Bt,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",ot,Pe,Jl|LA|za);case 33:return Ol(Bt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",ot,Pe,0);case 32:return Ol(Bt,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",ot,Pe,Jl|LA|za);case 18:return il(Bt,2406,2415,!0,Lt);case 20:return Th(Bt,1,19999,Us,3,Lt);case 21:return il(Bt,2790,2799,!0,Lt);case 22:return il(Bt,2662,2671,!0,Lt);case 22:return Th(Bt,1,10999,Zh,3,Lt);case 23:return $u(Bt,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return $u(Bt,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return il(Bt,3302,3311,!0,Lt);case 28:return $u(Bt,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",te);case 29:return $u(Bt,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",te);case 34:return il(Bt,3792,3801,!0,Lt);case 37:return il(Bt,6160,6169,!0,Lt);case 38:return il(Bt,4160,4169,!0,Lt);case 39:return il(Bt,2918,2927,!0,Lt);case 40:return il(Bt,1776,1785,!0,Lt);case 43:return il(Bt,3046,3055,!0,Lt);case 44:return il(Bt,3174,3183,!0,Lt);case 45:return il(Bt,3664,3673,!0,Lt);case 46:return il(Bt,3872,3881,!0,Lt);case 3:default:return il(Bt,48,57,!0,Lt)}},At="data-html2canvas-ignore",mt=function(){function Bt(xt,Ft,Lt){if(this.context=xt,this.options=Lt,this.scrolledElements=[],this.referenceElement=Ft,this.counters=new Gc,this.quoteDepth=0,!Ft.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ft.ownerDocument.documentElement,!1)}return Bt.prototype.toIFrame=function(xt,Ft){var Lt=this,te=qt(xt,Ft);if(!te.contentWindow)return Promise.reject("Unable to find iframe window");var Pe=xt.defaultView.pageXOffset,$e=xt.defaultView.pageYOffset,Fn=te.contentWindow,rn=Fn.document,Ai=Me(te).then(function(){return ke(Lt,void 0,void 0,function(){var vi,pt;return Oe(this,function(Pt){switch(Pt.label){case 0:return this.scrolledElements.forEach(qi),Fn&&(Fn.scrollTo(Ft.left,Ft.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Fn.scrollY!==Ft.top||Fn.scrollX!==Ft.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Fn.scrollX-Ft.left,Fn.scrollY-Ft.top,0,0))),vi=this.options.onclone,pt=this.clonedReferenceElement,typeof pt=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:rn.fonts&&rn.fonts.ready?[4,rn.fonts.ready]:[3,2];case 1:Pt.sent(),Pt.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ue(rn)]:[3,4];case 3:Pt.sent(),Pt.label=4;case 4:return typeof vi=="function"?[2,Promise.resolve().then(function(){return vi(rn,pt)}).then(function(){return te})]:[2,te]}})})});return rn.open(),rn.write(ri(document.doctype)+"<html></html>"),ti(this.referenceElement.ownerDocument,Pe,$e),rn.replaceChild(rn.adoptNode(this.documentElement),rn.documentElement),rn.close(),Ai},Bt.prototype.createElementClone=function(xt){if(PA(xt,2))debugger;if(ml(xt))return this.createCanvasClone(xt);if(xl(xt))return this.createVideoClone(xt);if(Lu(xt))return this.createStyleClone(xt);var Ft=xt.cloneNode(!1);return ma(Ft)&&(ma(xt)&&xt.currentSrc&&xt.currentSrc!==xt.src&&(Ft.src=xt.currentSrc,Ft.srcset=""),Ft.loading==="lazy"&&(Ft.loading="eager")),zc(Ft)?this.createCustomElementClone(Ft):Ft},Bt.prototype.createCustomElementClone=function(xt){var Ft=document.createElement("html2canvascustomelement");return _e(xt.style,Ft),Ft},Bt.prototype.createStyleClone=function(xt){try{var Ft=xt.sheet;if(Ft&&Ft.cssRules){var Lt=[].slice.call(Ft.cssRules,0).reduce(function(Pe,$e){return $e&&typeof $e.cssText=="string"?Pe+$e.cssText:Pe},""),te=xt.cloneNode(!1);return te.textContent=Lt,te}}catch(Pe){if(this.context.logger.error("Unable to access cssRules property",Pe),Pe.name!=="SecurityError")throw Pe}return xt.cloneNode(!1)},Bt.prototype.createCanvasClone=function(xt){var Ft;if(this.options.inlineImages&&xt.ownerDocument){var Lt=xt.ownerDocument.createElement("img");try{return Lt.src=xt.toDataURL(),Lt}catch(Ai){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",xt)}}var te=xt.cloneNode(!1);try{te.width=xt.width,te.height=xt.height;var Pe=xt.getContext("2d"),$e=te.getContext("2d");if($e)if(!this.options.allowTaint&&Pe)$e.putImageData(Pe.getImageData(0,0,xt.width,xt.height),0,0);else{var Fn=(Ft=xt.getContext("webgl2"))!==null&&Ft!==void 0?Ft:xt.getContext("webgl");if(Fn){var rn=Fn.getContextAttributes();(rn==null?void 0:rn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",xt)}$e.drawImage(xt,0,0)}return te}catch(Ai){this.context.logger.info("Unable to clone canvas as it is tainted",xt)}return te},Bt.prototype.createVideoClone=function(xt){var Ft=xt.ownerDocument.createElement("canvas");Ft.width=xt.offsetWidth,Ft.height=xt.offsetHeight;var Lt=Ft.getContext("2d");try{return Lt&&(Lt.drawImage(xt,0,0,Ft.width,Ft.height),this.options.allowTaint||Lt.getImageData(0,0,Ft.width,Ft.height)),Ft}catch(Pe){this.context.logger.info("Unable to clone video as it is tainted",xt)}var te=xt.ownerDocument.createElement("canvas");return te.width=xt.offsetWidth,te.height=xt.offsetHeight,te},Bt.prototype.appendChildNode=function(xt,Ft,Lt){(!ji(Ft)||!Ou(Ft)&&!Ft.hasAttribute(At)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ft)))&&(!this.options.copyStyles||!ji(Ft)||!Lu(Ft))&&xt.appendChild(this.cloneNode(Ft,Lt))},Bt.prototype.cloneChildNodes=function(xt,Ft,Lt){for(var te=this,Pe=xt.shadowRoot?xt.shadowRoot.firstChild:xt.firstChild;Pe;Pe=Pe.nextSibling)if(ji(Pe)&&Hc(Pe)&&typeof Pe.assignedNodes=="function"){var $e=Pe.assignedNodes();$e.length&&$e.forEach(function(Fn){return te.appendChildNode(Ft,Fn,Lt)})}else this.appendChildNode(Ft,Pe,Lt)},Bt.prototype.cloneNode=function(xt,Ft){if(gi(xt))return document.createTextNode(xt.data);if(!xt.ownerDocument)return xt.cloneNode(!1);var Lt=xt.ownerDocument.defaultView;if(Lt&&ji(xt)&&(fr(xt)||Or(xt))){var te=this.createElementClone(xt);te.style.transitionProperty="none";var Pe=Lt.getComputedStyle(xt),$e=Lt.getComputedStyle(xt,":before"),Fn=Lt.getComputedStyle(xt,":after");this.referenceElement===xt&&fr(te)&&(this.clonedReferenceElement=te),ss(te)&&Eo(te);var rn=this.counters.parse(new Gl(this.context,Pe)),Ai=this.resolvePseudoContent(xt,te,$e,Dt.BEFORE);zc(xt)&&(Ft=!0),xl(xt)||this.cloneChildNodes(xt,te,Ft),Ai&&te.insertBefore(Ai,te.firstChild);var vi=this.resolvePseudoContent(xt,te,Fn,Dt.AFTER);return vi&&te.appendChild(vi),this.counters.pop(rn),(Pe&&(this.options.copyStyles||Or(xt))&&!ja(xt)||Ft)&&_e(Pe,te),(xt.scrollTop!==0||xt.scrollLeft!==0)&&this.scrolledElements.push([te,xt.scrollLeft,xt.scrollTop]),(yh(xt)||vc(xt))&&(yh(te)||vc(te))&&(te.value=xt.value),te}return xt.cloneNode(!1)},Bt.prototype.resolvePseudoContent=function(xt,Ft,Lt,te){var Pe=this;if(Lt){var $e=Lt.content,Fn=Ft.ownerDocument;if(!(!Fn||!$e||$e==="none"||$e==="-moz-alt-content"||Lt.display==="none")){this.counters.parse(new Gl(this.context,Lt));var rn=new Fl(this.context,Lt),Ai=Fn.createElement("html2canvaspseudoelement");_e(Lt,Ai),rn.content.forEach(function(pt){if(pt.type===0)Ai.appendChild(Fn.createTextNode(pt.value));else if(pt.type===22){var Pt=Fn.createElement("img");Pt.src=pt.value,Pt.style.opacity="1",Ai.appendChild(Pt)}else if(pt.type===18){if(pt.name==="attr"){var Wt=pt.values.filter(fa);Wt.length&&Ai.appendChild(Fn.createTextNode(xt.getAttribute(Wt[0].value)||""))}else if(pt.name==="counter"){var ee=pt.values.filter(vu),xe=ee[0],ze=ee[1];if(xe&&fa(xe)){var je=Pe.counters.getCounterValue(xe.value),Ke=ze&&fa(ze)?Un.parse(Pe.context,ze.value):3;Ai.appendChild(Fn.createTextNode(ct(je,Ke,!1)))}}else if(pt.name==="counters"){var Ze=pt.values.filter(vu),xe=Ze[0],cn=Ze[1],ze=Ze[2];if(xe&&fa(xe)){var Xn=Pe.counters.getCounterValues(xe.value),oi=ze&&fa(ze)?Un.parse(Pe.context,ze.value):3,Ii=cn&&cn.type===0?cn.value:"",fi=Xn.map(function(di){return ct(di,oi,!1)}).join(Ii);Ai.appendChild(Fn.createTextNode(fi))}}}else if(pt.type===20)switch(pt.value){case"open-quote":Ai.appendChild(Fn.createTextNode(cA(rn.quotes,Pe.quoteDepth++,!0)));break;case"close-quote":Ai.appendChild(Fn.createTextNode(cA(rn.quotes,--Pe.quoteDepth,!1)));break;default:Ai.appendChild(Fn.createTextNode(pt.value))}}),Ai.className=Ur+" "+mo;var vi=te===Dt.BEFORE?" "+Ur:" "+mo;return Or(Ft)?Ft.className.baseValue+=vi:Ft.className+=vi,Ai}}},Bt.destroy=function(xt){return xt.parentNode?(xt.parentNode.removeChild(xt),!0):!1},Bt}(),Dt;(function(Bt){Bt[Bt.BEFORE=0]="BEFORE",Bt[Bt.AFTER=1]="AFTER"})(Dt||(Dt={}));var qt=function(Bt,xt){var Ft=Bt.createElement("iframe");return Ft.className="html2canvas-container",Ft.style.visibility="hidden",Ft.style.position="fixed",Ft.style.left="-10000px",Ft.style.top="0px",Ft.style.border="0",Ft.width=xt.width.toString(),Ft.height=xt.height.toString(),Ft.scrolling="no",Ft.setAttribute(At,"true"),Bt.body.appendChild(Ft),Ft},he=function(Bt){return new Promise(function(xt){if(Bt.complete){xt();return}if(!Bt.src){xt();return}Bt.onload=xt,Bt.onerror=xt})},ue=function(Bt){return Promise.all([].slice.call(Bt.images,0).map(he))},Me=function(Bt){return new Promise(function(xt,Ft){var Lt=Bt.contentWindow;if(!Lt)return Ft("No window assigned for iframe");var te=Lt.document;Lt.onload=Bt.onload=function(){Lt.onload=Bt.onload=null;var Pe=setInterval(function(){te.body.childNodes.length>0&&te.readyState==="complete"&&(clearInterval(Pe),xt(Bt))},50)}})},xn=["all","d","content"],_e=function(Bt,xt){for(var Ft=Bt.length-1;Ft>=0;Ft--){var Lt=Bt.item(Ft);xn.indexOf(Lt)===-1&&xt.style.setProperty(Lt,Bt.getPropertyValue(Lt))}return xt},ri=function(Bt){var xt="";return Bt&&(xt+="<!DOCTYPE ",Bt.name&&(xt+=Bt.name),Bt.internalSubset&&(xt+=Bt.internalSubset),Bt.publicId&&(xt+='"'+Bt.publicId+'"'),Bt.systemId&&(xt+='"'+Bt.systemId+'"'),xt+=">"),xt},ti=function(Bt,xt,Ft){Bt&&Bt.defaultView&&(xt!==Bt.defaultView.pageXOffset||Ft!==Bt.defaultView.pageYOffset)&&Bt.defaultView.scrollTo(xt,Ft)},qi=function(Bt){var xt=Bt[0],Ft=Bt[1],Lt=Bt[2];xt.scrollLeft=Ft,xt.scrollTop=Lt},lr=":before",Cr=":after",Ur="___html2canvas___pseudoelement_before",mo="___html2canvas___pseudoelement_after",Xr=`{
content: "" !important;
display: none !important;
}`,Eo=function(Bt){is(Bt,"."+Ur+lr+Xr+`
.`+mo+Cr+Xr)},is=function(Bt,xt){var Ft=Bt.ownerDocument;if(Ft){var Lt=Ft.createElement("style");Lt.textContent=xt,Bt.appendChild(Lt)}},Zr=function(){function Bt(){}return Bt.getOrigin=function(xt){var Ft=Bt._link;return Ft?(Ft.href=xt,Ft.href=Ft.href,Ft.protocol+Ft.hostname+Ft.port):"about:blank"},Bt.isSameOrigin=function(xt){return Bt.getOrigin(xt)===Bt._origin},Bt.setContext=function(xt){Bt._link=xt.document.createElement("a"),Bt._origin=Bt.getOrigin(xt.location.href)},Bt._origin="about:blank",Bt}(),xs=function(){function Bt(xt,Ft){this.context=xt,this._options=Ft,this._cache={}}return Bt.prototype.addImage=function(xt){var Ft=Promise.resolve();return this.has(xt)||(ka(xt)||Aa(xt))&&(this._cache[xt]=this.loadImage(xt)).catch(function(){}),Ft},Bt.prototype.match=function(xt){return this._cache[xt]},Bt.prototype.loadImage=function(xt){return ke(this,void 0,void 0,function(){var Ft,Lt,te,Pe,$e=this;return Oe(this,function(Fn){switch(Fn.label){case 0:return Ft=Zr.isSameOrigin(xt),Lt=!$s(xt)&&this._options.useCORS===!0&&Sl.SUPPORT_CORS_IMAGES&&!Ft,te=!$s(xt)&&!Ft&&!ka(xt)&&typeof this._options.proxy=="string"&&Sl.SUPPORT_CORS_XHR&&!Lt,!Ft&&this._options.allowTaint===!1&&!$s(xt)&&!ka(xt)&&!te&&!Lt?[2]:(Pe=xt,te?[4,this.proxy(Pe)]:[3,2]);case 1:Pe=Fn.sent(),Fn.label=2;case 2:return this.context.logger.debug("Added image "+xt.substring(0,256)),[4,new Promise(function(rn,Ai){var vi=new Image;vi.onload=function(){return rn(vi)},vi.onerror=Ai,(ua(Pe)||Lt)&&(vi.crossOrigin="anonymous"),vi.src=Pe,vi.complete===!0&&setTimeout(function(){return rn(vi)},500),$e._options.imageTimeout>0&&setTimeout(function(){return Ai("Timed out ("+$e._options.imageTimeout+"ms) loading image")},$e._options.imageTimeout)})];case 3:return[2,Fn.sent()]}})})},Bt.prototype.has=function(xt){return typeof this._cache[xt]!="undefined"},Bt.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Bt.prototype.proxy=function(xt){var Ft=this,Lt=this._options.proxy;if(!Lt)throw new Error("No proxy defined");var te=xt.substring(0,256);return new Promise(function(Pe,$e){var Fn=Sl.SUPPORT_RESPONSE_TYPE?"blob":"text",rn=new XMLHttpRequest;rn.onload=function(){if(rn.status===200)if(Fn==="text")Pe(rn.response);else{var pt=new FileReader;pt.addEventListener("load",function(){return Pe(pt.result)},!1),pt.addEventListener("error",function(Pt){return $e(Pt)},!1),pt.readAsDataURL(rn.response)}else $e("Failed to proxy resource "+te+" with status code "+rn.status)},rn.onerror=$e;var Ai=Lt.indexOf("?")>-1?"&":"?";if(rn.open("GET",""+Lt+Ai+"url="+encodeURIComponent(xt)+"&responseType="+Fn),Fn!=="text"&&rn instanceof XMLHttpRequest&&(rn.responseType=Fn),Ft._options.imageTimeout){var vi=Ft._options.imageTimeout;rn.timeout=vi,rn.ontimeout=function(){return $e("Timed out ("+vi+"ms) proxying "+te)}}rn.send()})},Bt}(),Ga=/^data:image\/svg\+xml/i,Ja=/^data:image\/.*;base64,/i,va=/^data:image\/.*/i,Aa=function(Bt){return Sl.SUPPORT_SVG_DRAWING||!Bl(Bt)},$s=function(Bt){return va.test(Bt)},ua=function(Bt){return Ja.test(Bt)},ka=function(Bt){return Bt.substr(0,4)==="blob"},Bl=function(Bt){return Bt.substr(-3).toLowerCase()==="svg"||Ga.test(Bt)},$r=function(){function Bt(xt,Ft){this.type=0,this.x=xt,this.y=Ft}return Bt.prototype.add=function(xt,Ft){return new Bt(this.x+xt,this.y+Ft)},Bt}(),Qs=function(Bt,xt,Ft){return new $r(Bt.x+(xt.x-Bt.x)*Ft,Bt.y+(xt.y-Bt.y)*Ft)},$a=function(){function Bt(xt,Ft,Lt,te){this.type=1,this.start=xt,this.startControl=Ft,this.endControl=Lt,this.end=te}return Bt.prototype.subdivide=function(xt,Ft){var Lt=Qs(this.start,this.startControl,xt),te=Qs(this.startControl,this.endControl,xt),Pe=Qs(this.endControl,this.end,xt),$e=Qs(Lt,te,xt),Fn=Qs(te,Pe,xt),rn=Qs($e,Fn,xt);return Ft?new Bt(this.start,Lt,$e,rn):new Bt(rn,Fn,Pe,this.end)},Bt.prototype.add=function(xt,Ft){return new Bt(this.start.add(xt,Ft),this.startControl.add(xt,Ft),this.endControl.add(xt,Ft),this.end.add(xt,Ft))},Bt.prototype.reverse=function(){return new Bt(this.end,this.endControl,this.startControl,this.start)},Bt}(),_a=function(Bt){return Bt.type===1},nu=function(){function Bt(xt){var Ft=xt.styles,Lt=xt.bounds,te=uA(Ft.borderTopLeftRadius,Lt.width,Lt.height),Pe=te[0],$e=te[1],Fn=uA(Ft.borderTopRightRadius,Lt.width,Lt.height),rn=Fn[0],Ai=Fn[1],vi=uA(Ft.borderBottomRightRadius,Lt.width,Lt.height),pt=vi[0],Pt=vi[1],Wt=uA(Ft.borderBottomLeftRadius,Lt.width,Lt.height),ee=Wt[0],xe=Wt[1],ze=[];ze.push((Pe+rn)/Lt.width),ze.push((ee+pt)/Lt.width),ze.push(($e+xe)/Lt.height),ze.push((Ai+Pt)/Lt.height);var je=Math.max.apply(Math,ze);je>1&&(Pe/=je,$e/=je,rn/=je,Ai/=je,pt/=je,Pt/=je,ee/=je,xe/=je);var Ke=Lt.width-rn,Ze=Lt.height-Pt,cn=Lt.width-pt,Xn=Lt.height-xe,oi=Ft.borderTopWidth,Ii=Ft.borderRightWidth,fi=Ft.borderBottomWidth,Yi=Ft.borderLeftWidth,Zi=xa(Ft.paddingTop,xt.bounds.width),di=xa(Ft.paddingRight,xt.bounds.width),Si=xa(Ft.paddingBottom,xt.bounds.width),ar=xa(Ft.paddingLeft,xt.bounds.width);this.topLeftBorderDoubleOuterBox=Pe>0||$e>0?As(Lt.left+Yi/3,Lt.top+oi/3,Pe-Yi/3,$e-oi/3,Es.TOP_LEFT):new $r(Lt.left+Yi/3,Lt.top+oi/3),this.topRightBorderDoubleOuterBox=Pe>0||$e>0?As(Lt.left+Ke,Lt.top+oi/3,rn-Ii/3,Ai-oi/3,Es.TOP_RIGHT):new $r(Lt.left+Lt.width-Ii/3,Lt.top+oi/3),this.bottomRightBorderDoubleOuterBox=pt>0||Pt>0?As(Lt.left+cn,Lt.top+Ze,pt-Ii/3,Pt-fi/3,Es.BOTTOM_RIGHT):new $r(Lt.left+Lt.width-Ii/3,Lt.top+Lt.height-fi/3),this.bottomLeftBorderDoubleOuterBox=ee>0||xe>0?As(Lt.left+Yi/3,Lt.top+Xn,ee-Yi/3,xe-fi/3,Es.BOTTOM_LEFT):new $r(Lt.left+Yi/3,Lt.top+Lt.height-fi/3),this.topLeftBorderDoubleInnerBox=Pe>0||$e>0?As(Lt.left+Yi*2/3,Lt.top+oi*2/3,Pe-Yi*2/3,$e-oi*2/3,Es.TOP_LEFT):new $r(Lt.left+Yi*2/3,Lt.top+oi*2/3),this.topRightBorderDoubleInnerBox=Pe>0||$e>0?As(Lt.left+Ke,Lt.top+oi*2/3,rn-Ii*2/3,Ai-oi*2/3,Es.TOP_RIGHT):new $r(Lt.left+Lt.width-Ii*2/3,Lt.top+oi*2/3),this.bottomRightBorderDoubleInnerBox=pt>0||Pt>0?As(Lt.left+cn,Lt.top+Ze,pt-Ii*2/3,Pt-fi*2/3,Es.BOTTOM_RIGHT):new $r(Lt.left+Lt.width-Ii*2/3,Lt.top+Lt.height-fi*2/3),this.bottomLeftBorderDoubleInnerBox=ee>0||xe>0?As(Lt.left+Yi*2/3,Lt.top+Xn,ee-Yi*2/3,xe-fi*2/3,Es.BOTTOM_LEFT):new $r(Lt.left+Yi*2/3,Lt.top+Lt.height-fi*2/3),this.topLeftBorderStroke=Pe>0||$e>0?As(Lt.left+Yi/2,Lt.top+oi/2,Pe-Yi/2,$e-oi/2,Es.TOP_LEFT):new $r(Lt.left+Yi/2,Lt.top+oi/2),this.topRightBorderStroke=Pe>0||$e>0?As(Lt.left+Ke,Lt.top+oi/2,rn-Ii/2,Ai-oi/2,Es.TOP_RIGHT):new $r(Lt.left+Lt.width-Ii/2,Lt.top+oi/2),this.bottomRightBorderStroke=pt>0||Pt>0?As(Lt.left+cn,Lt.top+Ze,pt-Ii/2,Pt-fi/2,Es.BOTTOM_RIGHT):new $r(Lt.left+Lt.width-Ii/2,Lt.top+Lt.height-fi/2),this.bottomLeftBorderStroke=ee>0||xe>0?As(Lt.left+Yi/2,Lt.top+Xn,ee-Yi/2,xe-fi/2,Es.BOTTOM_LEFT):new $r(Lt.left+Yi/2,Lt.top+Lt.height-fi/2),this.topLeftBorderBox=Pe>0||$e>0?As(Lt.left,Lt.top,Pe,$e,Es.TOP_LEFT):new $r(Lt.left,Lt.top),this.topRightBorderBox=rn>0||Ai>0?As(Lt.left+Ke,Lt.top,rn,Ai,Es.TOP_RIGHT):new $r(Lt.left+Lt.width,Lt.top),this.bottomRightBorderBox=pt>0||Pt>0?As(Lt.left+cn,Lt.top+Ze,pt,Pt,Es.BOTTOM_RIGHT):new $r(Lt.left+Lt.width,Lt.top+Lt.height),this.bottomLeftBorderBox=ee>0||xe>0?As(Lt.left,Lt.top+Xn,ee,xe,Es.BOTTOM_LEFT):new $r(Lt.left,Lt.top+Lt.height),this.topLeftPaddingBox=Pe>0||$e>0?As(Lt.left+Yi,Lt.top+oi,Math.max(0,Pe-Yi),Math.max(0,$e-oi),Es.TOP_LEFT):new $r(Lt.left+Yi,Lt.top+oi),this.topRightPaddingBox=rn>0||Ai>0?As(Lt.left+Math.min(Ke,Lt.width-Ii),Lt.top+oi,Ke>Lt.width+Ii?0:Math.max(0,rn-Ii),Math.max(0,Ai-oi),Es.TOP_RIGHT):new $r(Lt.left+Lt.width-Ii,Lt.top+oi),this.bottomRightPaddingBox=pt>0||Pt>0?As(Lt.left+Math.min(cn,Lt.width-Yi),Lt.top+Math.min(Ze,Lt.height-fi),Math.max(0,pt-Ii),Math.max(0,Pt-fi),Es.BOTTOM_RIGHT):new $r(Lt.left+Lt.width-Ii,Lt.top+Lt.height-fi),this.bottomLeftPaddingBox=ee>0||xe>0?As(Lt.left+Yi,Lt.top+Math.min(Xn,Lt.height-fi),Math.max(0,ee-Yi),Math.max(0,xe-fi),Es.BOTTOM_LEFT):new $r(Lt.left+Yi,Lt.top+Lt.height-fi),this.topLeftContentBox=Pe>0||$e>0?As(Lt.left+Yi+ar,Lt.top+oi+Zi,Math.max(0,Pe-(Yi+ar)),Math.max(0,$e-(oi+Zi)),Es.TOP_LEFT):new $r(Lt.left+Yi+ar,Lt.top+oi+Zi),this.topRightContentBox=rn>0||Ai>0?As(Lt.left+Math.min(Ke,Lt.width+Yi+ar),Lt.top+oi+Zi,Ke>Lt.width+Yi+ar?0:rn-Yi+ar,Ai-(oi+Zi),Es.TOP_RIGHT):new $r(Lt.left+Lt.width-(Ii+di),Lt.top+oi+Zi),this.bottomRightContentBox=pt>0||Pt>0?As(Lt.left+Math.min(cn,Lt.width-(Yi+ar)),Lt.top+Math.min(Ze,Lt.height+oi+Zi),Math.max(0,pt-(Ii+di)),Pt-(fi+Si),Es.BOTTOM_RIGHT):new $r(Lt.left+Lt.width-(Ii+di),Lt.top+Lt.height-(fi+Si)),this.bottomLeftContentBox=ee>0||xe>0?As(Lt.left+Yi+ar,Lt.top+Xn,Math.max(0,ee-(Yi+ar)),xe-(fi+Si),Es.BOTTOM_LEFT):new $r(Lt.left+Yi+ar,Lt.top+Lt.height-(fi+Si))}return Bt}(),Es;(function(Bt){Bt[Bt.TOP_LEFT=0]="TOP_LEFT",Bt[Bt.TOP_RIGHT=1]="TOP_RIGHT",Bt[Bt.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Bt[Bt.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Es||(Es={}));var As=function(Bt,xt,Ft,Lt,te){var Pe=4*((Math.sqrt(2)-1)/3),$e=Ft*Pe,Fn=Lt*Pe,rn=Bt+Ft,Ai=xt+Lt;switch(te){case Es.TOP_LEFT:return new $a(new $r(Bt,Ai),new $r(Bt,Ai-Fn),new $r(rn-$e,xt),new $r(rn,xt));case Es.TOP_RIGHT:return new $a(new $r(Bt,xt),new $r(Bt+$e,xt),new $r(rn,Ai-Fn),new $r(rn,Ai));case Es.BOTTOM_RIGHT:return new $a(new $r(rn,xt),new $r(rn,xt+Fn),new $r(Bt+$e,Ai),new $r(Bt,Ai));case Es.BOTTOM_LEFT:default:return new $a(new $r(rn,Ai),new $r(rn-$e,Ai),new $r(Bt,xt+Fn),new $r(Bt,xt))}},mu=function(Bt){return[Bt.topLeftBorderBox,Bt.topRightBorderBox,Bt.bottomRightBorderBox,Bt.bottomLeftBorderBox]},vl=function(Bt){return[Bt.topLeftContentBox,Bt.topRightContentBox,Bt.bottomRightContentBox,Bt.bottomLeftContentBox]},xc=function(Bt){return[Bt.topLeftPaddingBox,Bt.topRightPaddingBox,Bt.bottomRightPaddingBox,Bt.bottomLeftPaddingBox]},Du=function(){function Bt(xt,Ft,Lt){this.offsetX=xt,this.offsetY=Ft,this.matrix=Lt,this.type=0,this.target=6}return Bt}(),su=function(){function Bt(xt,Ft){this.path=xt,this.target=Ft,this.type=1}return Bt}(),Fu=function(){function Bt(xt){this.opacity=xt,this.type=2,this.target=6}return Bt}(),Ka=function(Bt){return Bt.type===0},$l=function(Bt){return Bt.type===1},yA=function(Bt){return Bt.type===2},WA=function(Bt,xt){return Bt.length===xt.length?Bt.some(function(Ft,Lt){return Ft===xt[Lt]}):!1},xg=function(Bt,xt,Ft,Lt,te){return Bt.map(function(Pe,$e){switch($e){case 0:return Pe.add(xt,Ft);case 1:return Pe.add(xt+Lt,Ft);case 2:return Pe.add(xt+Lt,Ft+te);case 3:return Pe.add(xt,Ft+te)}return Pe})},qu=function(){function Bt(xt){this.element=xt,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Bt}(),Bg=function(){function Bt(xt,Ft){if(this.container=xt,this.parent=Ft,this.effects=[],this.curves=new nu(this.container),this.container.styles.opacity<1&&this.effects.push(new Fu(this.container.styles.opacity)),this.container.styles.transform!==null){var Lt=this.container.bounds.left+this.container.styles.transformOrigin[0].number,te=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Pe=this.container.styles.transform;this.effects.push(new Du(Lt,te,Pe))}if(this.container.styles.overflowX!==0){var $e=mu(this.curves),Fn=xc(this.curves);WA($e,Fn)?this.effects.push(new su($e,6)):(this.effects.push(new su($e,2)),this.effects.push(new su(Fn,4)))}}return Bt.prototype.getEffects=function(xt){for(var Ft=[2,3].indexOf(this.container.styles.position)===-1,Lt=this.parent,te=this.effects.slice(0);Lt;){var Pe=Lt.effects.filter(function(rn){return!$l(rn)});if(Ft||Lt.container.styles.position!==0||!Lt.parent){if(te.unshift.apply(te,Pe),Ft=[2,3].indexOf(Lt.container.styles.position)===-1,Lt.container.styles.overflowX!==0){var $e=mu(Lt.curves),Fn=xc(Lt.curves);WA($e,Fn)||te.unshift(new su(Fn,6))}}else te.unshift.apply(te,Pe);Lt=Lt.parent}return te.filter(function(rn){return oa(rn.target,xt)})},Bt}(),FA=function(Bt,xt,Ft,Lt){Bt.container.elements.forEach(function(te){var Pe=oa(te.flags,4),$e=oa(te.flags,2),Fn=new Bg(te,Bt);oa(te.styles.display,2048)&&Lt.push(Fn);var rn=oa(te.flags,8)?[]:Lt;if(Pe||$e){var Ai=Pe||te.styles.isPositioned()?Ft:xt,vi=new qu(Fn);if(te.styles.isPositioned()||te.styles.opacity<1||te.styles.isTransformed()){var pt=te.styles.zIndex.order;if(pt<0){var Pt=0;Ai.negativeZIndex.some(function(ee,xe){return pt>ee.element.container.styles.zIndex.order?(Pt=xe,!1):Pt>0}),Ai.negativeZIndex.splice(Pt,0,vi)}else if(pt>0){var Wt=0;Ai.positiveZIndex.some(function(ee,xe){return pt>=ee.element.container.styles.zIndex.order?(Wt=xe+1,!1):Wt>0}),Ai.positiveZIndex.splice(Wt,0,vi)}else Ai.zeroOrAutoZIndexOrTransformedOrOpacity.push(vi)}else te.styles.isFloating()?Ai.nonPositionedFloats.push(vi):Ai.nonPositionedInlineLevel.push(vi);FA(Fn,vi,Pe?vi:Ft,rn)}else te.styles.isInlineLevel()?xt.inlineLevel.push(Fn):xt.nonInlineLevel.push(Fn),FA(Fn,xt,Ft,rn);oa(te.flags,8)&&Wf(te,rn)})},Wf=function(Bt,xt){for(var Ft=Bt instanceof gd?Bt.start:1,Lt=Bt instanceof gd?Bt.reversed:!1,te=0;te<xt.length;te++){var Pe=xt[te];Pe.container instanceof Ih&&typeof Pe.container.value=="number"&&Pe.container.value!==0&&(Ft=Pe.container.value),Pe.listValue=ct(Ft,Pe.container.styles.listStyleType,!0),Ft+=Lt?-1:1}},vf=function(Bt){var xt=new Bg(Bt,null),Ft=new qu(xt),Lt=[];return FA(xt,Ft,Ft,Lt),Wf(xt.container,Lt),Ft},jd=function(Bt,xt){switch(xt){case 0:return Nl(Bt.topLeftBorderBox,Bt.topLeftPaddingBox,Bt.topRightBorderBox,Bt.topRightPaddingBox);case 1:return Nl(Bt.topRightBorderBox,Bt.topRightPaddingBox,Bt.bottomRightBorderBox,Bt.bottomRightPaddingBox);case 2:return Nl(Bt.bottomRightBorderBox,Bt.bottomRightPaddingBox,Bt.bottomLeftBorderBox,Bt.bottomLeftPaddingBox);case 3:default:return Nl(Bt.bottomLeftBorderBox,Bt.bottomLeftPaddingBox,Bt.topLeftBorderBox,Bt.topLeftPaddingBox)}},md=function(Bt,xt){switch(xt){case 0:return Nl(Bt.topLeftBorderBox,Bt.topLeftBorderDoubleOuterBox,Bt.topRightBorderBox,Bt.topRightBorderDoubleOuterBox);case 1:return Nl(Bt.topRightBorderBox,Bt.topRightBorderDoubleOuterBox,Bt.bottomRightBorderBox,Bt.bottomRightBorderDoubleOuterBox);case 2:return Nl(Bt.bottomRightBorderBox,Bt.bottomRightBorderDoubleOuterBox,Bt.bottomLeftBorderBox,Bt.bottomLeftBorderDoubleOuterBox);case 3:default:return Nl(Bt.bottomLeftBorderBox,Bt.bottomLeftBorderDoubleOuterBox,Bt.topLeftBorderBox,Bt.topLeftBorderDoubleOuterBox)}},Vf=function(Bt,xt){switch(xt){case 0:return Nl(Bt.topLeftBorderDoubleInnerBox,Bt.topLeftPaddingBox,Bt.topRightBorderDoubleInnerBox,Bt.topRightPaddingBox);case 1:return Nl(Bt.topRightBorderDoubleInnerBox,Bt.topRightPaddingBox,Bt.bottomRightBorderDoubleInnerBox,Bt.bottomRightPaddingBox);case 2:return Nl(Bt.bottomRightBorderDoubleInnerBox,Bt.bottomRightPaddingBox,Bt.bottomLeftBorderDoubleInnerBox,Bt.bottomLeftPaddingBox);case 3:default:return Nl(Bt.bottomLeftBorderDoubleInnerBox,Bt.bottomLeftPaddingBox,Bt.topLeftBorderDoubleInnerBox,Bt.topLeftPaddingBox)}},_c=function(Bt,xt){switch(xt){case 0:return VA(Bt.topLeftBorderStroke,Bt.topRightBorderStroke);case 1:return VA(Bt.topRightBorderStroke,Bt.bottomRightBorderStroke);case 2:return VA(Bt.bottomRightBorderStroke,Bt.bottomLeftBorderStroke);case 3:default:return VA(Bt.bottomLeftBorderStroke,Bt.topLeftBorderStroke)}},VA=function(Bt,xt){var Ft=[];return _a(Bt)?Ft.push(Bt.subdivide(.5,!1)):Ft.push(Bt),_a(xt)?Ft.push(xt.subdivide(.5,!0)):Ft.push(xt),Ft},Nl=function(Bt,xt,Ft,Lt){var te=[];return _a(Bt)?te.push(Bt.subdivide(.5,!1)):te.push(Bt),_a(Ft)?te.push(Ft.subdivide(.5,!0)):te.push(Ft),_a(Lt)?te.push(Lt.subdivide(.5,!0).reverse()):te.push(Lt),_a(xt)?te.push(xt.subdivide(.5,!1).reverse()):te.push(xt),te},Eu=function(Bt){var xt=Bt.bounds,Ft=Bt.styles;return xt.add(Ft.borderLeftWidth,Ft.borderTopWidth,-(Ft.borderRightWidth+Ft.borderLeftWidth),-(Ft.borderTopWidth+Ft.borderBottomWidth))},Yf=function(Bt){var xt=Bt.styles,Ft=Bt.bounds,Lt=xa(xt.paddingLeft,Ft.width),te=xa(xt.paddingRight,Ft.width),Pe=xa(xt.paddingTop,Ft.width),$e=xa(xt.paddingBottom,Ft.width);return Ft.add(Lt+xt.borderLeftWidth,Pe+xt.borderTopWidth,-(xt.borderRightWidth+xt.borderLeftWidth+Lt+te),-(xt.borderTopWidth+xt.borderBottomWidth+Pe+$e))},Gg=function(Bt,xt){return Bt===0?xt.bounds:Bt===2?Yf(xt):Eu(xt)},yp=function(Bt,xt){return Bt===0?xt.bounds:Bt===2?Yf(xt):Eu(xt)},Ud=function(Bt,xt,Ft){var Lt=Gg(th(Bt.styles.backgroundOrigin,xt),Bt),te=yp(th(Bt.styles.backgroundClip,xt),Bt),Pe=vd(th(Bt.styles.backgroundSize,xt),Ft,Lt),$e=Pe[0],Fn=Pe[1],rn=uA(th(Bt.styles.backgroundPosition,xt),Lt.width-$e,Lt.height-Fn),Ai=EA(th(Bt.styles.backgroundRepeat,xt),rn,Pe,Lt,te),vi=Math.round(Lt.left+rn[0]),pt=Math.round(Lt.top+rn[1]);return[Ai,vi,pt,$e,Fn]},Qd=function(Bt){return fa(Bt)&&Bt.value===Qt.AUTO},Xf=function(Bt){return typeof Bt=="number"},vd=function(Bt,xt,Ft){var Lt=xt[0],te=xt[1],Pe=xt[2],$e=Bt[0],Fn=Bt[1];if(!$e)return[0,0];if(uo($e)&&Fn&&uo(Fn))return[xa($e,Ft.width),xa(Fn,Ft.height)];var rn=Xf(Pe);if(fa($e)&&($e.value===Qt.CONTAIN||$e.value===Qt.COVER)){if(Xf(Pe)){var Ai=Ft.width/Ft.height;return Ai<Pe!=($e.value===Qt.COVER)?[Ft.width,Ft.width/Pe]:[Ft.height*Pe,Ft.height]}return[Ft.width,Ft.height]}var vi=Xf(Lt),pt=Xf(te),Pt=vi||pt;if(Qd($e)&&(!Fn||Qd(Fn))){if(vi&&pt)return[Lt,te];if(!rn&&!Pt)return[Ft.width,Ft.height];if(Pt&&rn){var Wt=vi?Lt:te*Pe,ee=pt?te:Lt/Pe;return[Wt,ee]}var xe=vi?Lt:Ft.width,ze=pt?te:Ft.height;return[xe,ze]}if(rn){var je=0,Ke=0;return uo($e)?je=xa($e,Ft.width):uo(Fn)&&(Ke=xa(Fn,Ft.height)),Qd($e)?je=Ke*Pe:(!Fn||Qd(Fn))&&(Ke=je/Pe),[je,Ke]}var Ze=null,cn=null;if(uo($e)?Ze=xa($e,Ft.width):Fn&&uo(Fn)&&(cn=xa(Fn,Ft.height)),Ze!==null&&(!Fn||Qd(Fn))&&(cn=vi&&pt?Ze/Lt*te:Ft.height),cn!==null&&Qd($e)&&(Ze=vi&&pt?cn/te*Lt:Ft.width),Ze!==null&&cn!==null)return[Ze,cn];throw new Error("Unable to calculate background-size for element")},th=function(Bt,xt){var Ft=Bt[xt];return typeof Ft=="undefined"?Bt[0]:Ft},EA=function(Bt,xt,Ft,Lt,te){var Pe=xt[0],$e=xt[1],Fn=Ft[0],rn=Ft[1];switch(Bt){case 2:return[new $r(Math.round(Lt.left),Math.round(Lt.top+$e)),new $r(Math.round(Lt.left+Lt.width),Math.round(Lt.top+$e)),new $r(Math.round(Lt.left+Lt.width),Math.round(rn+Lt.top+$e)),new $r(Math.round(Lt.left),Math.round(rn+Lt.top+$e))];case 3:return[new $r(Math.round(Lt.left+Pe),Math.round(Lt.top)),new $r(Math.round(Lt.left+Pe+Fn),Math.round(Lt.top)),new $r(Math.round(Lt.left+Pe+Fn),Math.round(Lt.height+Lt.top)),new $r(Math.round(Lt.left+Pe),Math.round(Lt.height+Lt.top))];case 1:return[new $r(Math.round(Lt.left+Pe),Math.round(Lt.top+$e)),new $r(Math.round(Lt.left+Pe+Fn),Math.round(Lt.top+$e)),new $r(Math.round(Lt.left+Pe+Fn),Math.round(Lt.top+$e+rn)),new $r(Math.round(Lt.left+Pe),Math.round(Lt.top+$e+rn))];default:return[new $r(Math.round(te.left),Math.round(te.top)),new $r(Math.round(te.left+te.width),Math.round(te.top)),new $r(Math.round(te.left+te.width),Math.round(te.height+te.top)),new $r(Math.round(te.left),Math.round(te.height+te.top))]}},Cg="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",wA="Hidden Text",eh=function(){function Bt(xt){this._data={},this._document=xt}return Bt.prototype.parseMetrics=function(xt,Ft){var Lt=this._document.createElement("div"),te=this._document.createElement("img"),Pe=this._document.createElement("span"),$e=this._document.body;Lt.style.visibility="hidden",Lt.style.fontFamily=xt,Lt.style.fontSize=Ft,Lt.style.margin="0",Lt.style.padding="0",Lt.style.whiteSpace="nowrap",$e.appendChild(Lt),te.src=Cg,te.width=1,te.height=1,te.style.margin="0",te.style.padding="0",te.style.verticalAlign="baseline",Pe.style.fontFamily=xt,Pe.style.fontSize=Ft,Pe.style.margin="0",Pe.style.padding="0",Pe.appendChild(this._document.createTextNode(wA)),Lt.appendChild(Pe),Lt.appendChild(te);var Fn=te.offsetTop-Pe.offsetTop+2;Lt.removeChild(Pe),Lt.appendChild(this._document.createTextNode(wA)),Lt.style.lineHeight="normal",te.style.verticalAlign="super";var rn=te.offsetTop-Lt.offsetTop+2;return $e.removeChild(Lt),{baseline:Fn,middle:rn}},Bt.prototype.getMetrics=function(xt,Ft){var Lt=xt+" "+Ft;return typeof this._data[Lt]=="undefined"&&(this._data[Lt]=this.parseMetrics(xt,Ft)),this._data[Lt]},Bt}(),Oh=function(){function Bt(xt,Ft){this.context=xt,this.options=Ft}return Bt}(),Dh=1e4,Rd=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;return te._activeEffects=[],te.canvas=Lt.canvas?Lt.canvas:document.createElement("canvas"),te.ctx=te.canvas.getContext("2d"),Lt.canvas||(te.canvas.width=Math.floor(Lt.width*Lt.scale),te.canvas.height=Math.floor(Lt.height*Lt.scale),te.canvas.style.width=Lt.width+"px",te.canvas.style.height=Lt.height+"px"),te.fontMetrics=new eh(document),te.ctx.scale(te.options.scale,te.options.scale),te.ctx.translate(-Lt.x,-Lt.y),te.ctx.textBaseline="bottom",te._activeEffects=[],te.context.logger.debug("Canvas renderer initialized ("+Lt.width+"x"+Lt.height+") with scale "+Lt.scale),te}return xt.prototype.applyEffects=function(Ft){for(var Lt=this;this._activeEffects.length;)this.popEffect();Ft.forEach(function(te){return Lt.applyEffect(te)})},xt.prototype.applyEffect=function(Ft){this.ctx.save(),yA(Ft)&&(this.ctx.globalAlpha=Ft.opacity),Ka(Ft)&&(this.ctx.translate(Ft.offsetX,Ft.offsetY),this.ctx.transform(Ft.matrix[0],Ft.matrix[1],Ft.matrix[2],Ft.matrix[3],Ft.matrix[4],Ft.matrix[5]),this.ctx.translate(-Ft.offsetX,-Ft.offsetY)),$l(Ft)&&(this.path(Ft.path),this.ctx.clip()),this._activeEffects.push(Ft)},xt.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},xt.prototype.renderStack=function(Ft){return ke(this,void 0,void 0,function(){var Lt;return Oe(this,function(te){switch(te.label){case 0:return Lt=Ft.element.container.styles,Lt.isVisible()?[4,this.renderStackContent(Ft)]:[3,2];case 1:te.sent(),te.label=2;case 2:return[2]}})})},xt.prototype.renderNode=function(Ft){return ke(this,void 0,void 0,function(){return Oe(this,function(Lt){switch(Lt.label){case 0:if(oa(Ft.container.flags,16))debugger;return Ft.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ft)]:[3,3];case 1:return Lt.sent(),[4,this.renderNodeContent(Ft)];case 2:Lt.sent(),Lt.label=3;case 3:return[2]}})})},xt.prototype.renderTextWithLetterSpacing=function(Ft,Lt,te){var Pe=this;if(Lt===0)this.ctx.fillText(Ft.text,Ft.bounds.left,Ft.bounds.top+te);else{var $e=GA(Ft.text);$e.reduce(function(Fn,rn){return Pe.ctx.fillText(rn,Fn,Ft.bounds.top+te),Fn+Pe.ctx.measureText(rn).width},Ft.bounds.left)}},xt.prototype.createFontStyle=function(Ft){var Lt=Ft.fontVariant.filter(function($e){return $e==="normal"||$e==="small-caps"}).join(""),te=Sp(Ft.fontFamily).join(", "),Pe=Ql(Ft.fontSize)?""+Ft.fontSize.number+Ft.fontSize.unit:Ft.fontSize.number+"px";return[[Ft.fontStyle,Lt,Ft.fontWeight,Pe,te].join(" "),te,Pe]},xt.prototype.renderTextNode=function(Ft,Lt){return ke(this,void 0,void 0,function(){var te,Pe,$e,Fn,rn,Ai,vi,pt,Pt=this;return Oe(this,function(Wt){return te=this.createFontStyle(Lt),Pe=te[0],$e=te[1],Fn=te[2],this.ctx.font=Pe,this.ctx.direction=Lt.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",rn=this.fontMetrics.getMetrics($e,Fn),Ai=rn.baseline,vi=rn.middle,pt=Lt.paintOrder,Ft.textBounds.forEach(function(ee){pt.forEach(function(xe){switch(xe){case 0:Pt.ctx.fillStyle=Zs(Lt.color),Pt.renderTextWithLetterSpacing(ee,Lt.letterSpacing,Ai);var ze=Lt.textShadow;ze.length&&ee.text.trim().length&&(ze.slice(0).reverse().forEach(function(je){Pt.ctx.shadowColor=Zs(je.color),Pt.ctx.shadowOffsetX=je.offsetX.number*Pt.options.scale,Pt.ctx.shadowOffsetY=je.offsetY.number*Pt.options.scale,Pt.ctx.shadowBlur=je.blur.number,Pt.renderTextWithLetterSpacing(ee,Lt.letterSpacing,Ai)}),Pt.ctx.shadowColor="",Pt.ctx.shadowOffsetX=0,Pt.ctx.shadowOffsetY=0,Pt.ctx.shadowBlur=0),Lt.textDecorationLine.length&&(Pt.ctx.fillStyle=Zs(Lt.textDecorationColor||Lt.color),Lt.textDecorationLine.forEach(function(je){switch(je){case 1:Pt.ctx.fillRect(ee.bounds.left,Math.round(ee.bounds.top+Ai),ee.bounds.width,1);break;case 2:Pt.ctx.fillRect(ee.bounds.left,Math.round(ee.bounds.top),ee.bounds.width,1);break;case 3:Pt.ctx.fillRect(ee.bounds.left,Math.ceil(ee.bounds.top+vi),ee.bounds.width,1);break}}));break;case 1:Lt.webkitTextStrokeWidth&&ee.text.trim().length&&(Pt.ctx.strokeStyle=Zs(Lt.webkitTextStrokeColor),Pt.ctx.lineWidth=Lt.webkitTextStrokeWidth,Pt.ctx.lineJoin=window.chrome?"miter":"round",Pt.ctx.strokeText(ee.text,ee.bounds.left,ee.bounds.top+Ai)),Pt.ctx.strokeStyle="",Pt.ctx.lineWidth=0,Pt.ctx.lineJoin="miter";break}})}),[2]})})},xt.prototype.renderReplacedElement=function(Ft,Lt,te){if(te&&Ft.intrinsicWidth>0&&Ft.intrinsicHeight>0){var Pe=Yf(Ft),$e=xc(Lt);this.path($e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(te,0,0,Ft.intrinsicWidth,Ft.intrinsicHeight,Pe.left,Pe.top,Pe.width,Pe.height),this.ctx.restore()}},xt.prototype.renderNodeContent=function(Ft){return ke(this,void 0,void 0,function(){var Lt,te,Pe,$e,Fn,rn,Ke,Ke,Ai,vi,pt,Pt,cn,Wt,ee,Xn,xe,ze,je,Ke,Ze,cn,Xn;return Oe(this,function(oi){switch(oi.label){case 0:this.applyEffects(Ft.getEffects(4)),Lt=Ft.container,te=Ft.curves,Pe=Lt.styles,$e=0,Fn=Lt.textNodes,oi.label=1;case 1:return $e<Fn.length?(rn=Fn[$e],[4,this.renderTextNode(rn,Pe)]):[3,4];case 2:oi.sent(),oi.label=3;case 3:return $e++,[3,1];case 4:if(!(Lt instanceof vA))return[3,8];oi.label=5;case 5:return oi.trys.push([5,7,,8]),[4,this.context.cache.match(Lt.src)];case 6:return Ke=oi.sent(),this.renderReplacedElement(Lt,te,Ke),[3,8];case 7:return oi.sent(),this.context.logger.error("Error loading image "+Lt.src),[3,8];case 8:if(Lt instanceof mh&&this.renderReplacedElement(Lt,te,Lt.canvas),!(Lt instanceof gc))return[3,12];oi.label=9;case 9:return oi.trys.push([9,11,,12]),[4,this.context.cache.match(Lt.svg)];case 10:return Ke=oi.sent(),this.renderReplacedElement(Lt,te,Ke),[3,12];case 11:return oi.sent(),this.context.logger.error("Error loading svg "+Lt.svg.substring(0,255)),[3,12];case 12:return Lt instanceof mc&&Lt.tree?(Ai=new xt(this.context,{scale:this.options.scale,backgroundColor:Lt.backgroundColor,x:0,y:0,width:Lt.width,height:Lt.height}),[4,Ai.render(Lt.tree)]):[3,14];case 13:vi=oi.sent(),Lt.width&&Lt.height&&this.ctx.drawImage(vi,0,0,Lt.width,Lt.height,Lt.bounds.left,Lt.bounds.top,Lt.bounds.width,Lt.bounds.height),oi.label=14;case 14:if(Lt instanceof Ju&&(pt=Math.min(Lt.bounds.width,Lt.bounds.height),Lt.type===pc?Lt.checked&&(this.ctx.save(),this.path([new $r(Lt.bounds.left+pt*.39363,Lt.bounds.top+pt*.79),new $r(Lt.bounds.left+pt*.16,Lt.bounds.top+pt*.5549),new $r(Lt.bounds.left+pt*.27347,Lt.bounds.top+pt*.44071),new $r(Lt.bounds.left+pt*.39694,Lt.bounds.top+pt*.5649),new $r(Lt.bounds.left+pt*.72983,Lt.bounds.top+pt*.23),new $r(Lt.bounds.left+pt*.84,Lt.bounds.top+pt*.34085),new $r(Lt.bounds.left+pt*.39363,Lt.bounds.top+pt*.79)]),this.ctx.fillStyle=Zs(Rc),this.ctx.fill(),this.ctx.restore()):Lt.type===kh&&Lt.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Lt.bounds.left+pt/2,Lt.bounds.top+pt/2,pt/4,0,Math.PI*2,!0),this.ctx.fillStyle=Zs(Rc),this.ctx.fill(),this.ctx.restore())),wp(Lt)&&Lt.value.length){switch(Pt=this.createFontStyle(Pe),cn=Pt[0],Wt=Pt[1],ee=this.fontMetrics.getMetrics(cn,Wt).baseline,this.ctx.font=cn,this.ctx.fillStyle=Zs(Pe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=as(Lt.styles.textAlign),Xn=Yf(Lt),xe=0,Lt.styles.textAlign){case 1:xe+=Xn.width/2;break;case 2:xe+=Xn.width;break}ze=Xn.add(xe,0,0,-Xn.height/2+1),this.ctx.save(),this.path([new $r(Xn.left,Xn.top),new $r(Xn.left+Xn.width,Xn.top),new $r(Xn.left+Xn.width,Xn.top+Xn.height),new $r(Xn.left,Xn.top+Xn.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Tl(Lt.value,ze),Pe.letterSpacing,ee),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!oa(Lt.styles.display,2048))return[3,20];if(Lt.styles.listStyleImage===null)return[3,19];if(je=Lt.styles.listStyleImage,je.type!==0)return[3,18];Ke=void 0,Ze=je.url,oi.label=15;case 15:return oi.trys.push([15,17,,18]),[4,this.context.cache.match(Ze)];case 16:return Ke=oi.sent(),this.ctx.drawImage(Ke,Lt.bounds.left-(Ke.width+10),Lt.bounds.top),[3,18];case 17:return oi.sent(),this.context.logger.error("Error loading list-style-image "+Ze),[3,18];case 18:return[3,20];case 19:Ft.listValue&&Lt.styles.listStyleType!==-1&&(cn=this.createFontStyle(Pe)[0],this.ctx.font=cn,this.ctx.fillStyle=Zs(Pe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Xn=new Be(Lt.bounds.left,Lt.bounds.top+xa(Lt.styles.paddingTop,Lt.bounds.width),Lt.bounds.width,rr(Pe.lineHeight,Pe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Tl(Ft.listValue,Xn),Pe.letterSpacing,rr(Pe.lineHeight,Pe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),oi.label=20;case 20:return[2]}})})},xt.prototype.renderStackContent=function(Ft){return ke(this,void 0,void 0,function(){var Lt,te,je,Pe,$e,je,Fn,rn,je,Ai,vi,je,pt,Pt,je,Wt,ee,je,xe,ze,je;return Oe(this,function(Ke){switch(Ke.label){case 0:if(oa(Ft.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ft.element)];case 1:Ke.sent(),Lt=0,te=Ft.negativeZIndex,Ke.label=2;case 2:return Lt<te.length?(je=te[Lt],[4,this.renderStack(je)]):[3,5];case 3:Ke.sent(),Ke.label=4;case 4:return Lt++,[3,2];case 5:return[4,this.renderNodeContent(Ft.element)];case 6:Ke.sent(),Pe=0,$e=Ft.nonInlineLevel,Ke.label=7;case 7:return Pe<$e.length?(je=$e[Pe],[4,this.renderNode(je)]):[3,10];case 8:Ke.sent(),Ke.label=9;case 9:return Pe++,[3,7];case 10:Fn=0,rn=Ft.nonPositionedFloats,Ke.label=11;case 11:return Fn<rn.length?(je=rn[Fn],[4,this.renderStack(je)]):[3,14];case 12:Ke.sent(),Ke.label=13;case 13:return Fn++,[3,11];case 14:Ai=0,vi=Ft.nonPositionedInlineLevel,Ke.label=15;case 15:return Ai<vi.length?(je=vi[Ai],[4,this.renderStack(je)]):[3,18];case 16:Ke.sent(),Ke.label=17;case 17:return Ai++,[3,15];case 18:pt=0,Pt=Ft.inlineLevel,Ke.label=19;case 19:return pt<Pt.length?(je=Pt[pt],[4,this.renderNode(je)]):[3,22];case 20:Ke.sent(),Ke.label=21;case 21:return pt++,[3,19];case 22:Wt=0,ee=Ft.zeroOrAutoZIndexOrTransformedOrOpacity,Ke.label=23;case 23:return Wt<ee.length?(je=ee[Wt],[4,this.renderStack(je)]):[3,26];case 24:Ke.sent(),Ke.label=25;case 25:return Wt++,[3,23];case 26:xe=0,ze=Ft.positiveZIndex,Ke.label=27;case 27:return xe<ze.length?(je=ze[xe],[4,this.renderStack(je)]):[3,30];case 28:Ke.sent(),Ke.label=29;case 29:return xe++,[3,27];case 30:return[2]}})})},xt.prototype.mask=function(Ft){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(Ft.slice(0).reverse()),this.ctx.closePath()},xt.prototype.path=function(Ft){this.ctx.beginPath(),this.formatPath(Ft),this.ctx.closePath()},xt.prototype.formatPath=function(Ft){var Lt=this;Ft.forEach(function(te,Pe){var $e=_a(te)?te.start:te;Pe===0?Lt.ctx.moveTo($e.x,$e.y):Lt.ctx.lineTo($e.x,$e.y),_a(te)&&Lt.ctx.bezierCurveTo(te.startControl.x,te.startControl.y,te.endControl.x,te.endControl.y,te.end.x,te.end.y)})},xt.prototype.renderRepeat=function(Ft,Lt,te,Pe){this.path(Ft),this.ctx.fillStyle=Lt,this.ctx.translate(te,Pe),this.ctx.fill(),this.ctx.translate(-te,-Pe)},xt.prototype.resizeImage=function(Ft,Lt,te){var Pe;if(Ft.width===Lt&&Ft.height===te)return Ft;var $e=(Pe=this.canvas.ownerDocument)!==null&&Pe!==void 0?Pe:document,Fn=$e.createElement("canvas");Fn.width=Math.max(1,Lt),Fn.height=Math.max(1,te);var rn=Fn.getContext("2d");return rn.drawImage(Ft,0,0,Ft.width,Ft.height,0,0,Lt,te),Fn},xt.prototype.renderBackgroundImage=function(Ft){return ke(this,void 0,void 0,function(){var Lt,te,Pe,$e,Fn,rn;return Oe(this,function(Ai){switch(Ai.label){case 0:Lt=Ft.styles.backgroundImage.length-1,te=function(vi){var pt,Pt,Wt,Zi,Bo,lo,ar,br,fi,ee,Zi,Bo,lo,ar,br,xe,ze,je,Ke,Ze,cn,Xn,oi,Ii,fi,Yi,Zi,di,Si,ar,br,Fr,Bo,lo,ds,Ln,ya,Ua,da,sa,Wa,na;return Oe(this,function(Ns){switch(Ns.label){case 0:if(vi.type!==0)return[3,5];pt=void 0,Pt=vi.url,Ns.label=1;case 1:return Ns.trys.push([1,3,,4]),[4,Pe.context.cache.match(Pt)];case 2:return pt=Ns.sent(),[3,4];case 3:return Ns.sent(),Pe.context.logger.error("Error loading background-image "+Pt),[3,4];case 4:return pt&&(Wt=Ud(Ft,Lt,[pt.width,pt.height,pt.width/pt.height]),Zi=Wt[0],Bo=Wt[1],lo=Wt[2],ar=Wt[3],br=Wt[4],fi=Pe.ctx.createPattern(Pe.resizeImage(pt,ar,br),"repeat"),Pe.renderRepeat(Zi,fi,Bo,lo)),[3,6];case 5:rc(vi)?(ee=Ud(Ft,Lt,[null,null,null]),Zi=ee[0],Bo=ee[1],lo=ee[2],ar=ee[3],br=ee[4],xe=hA(vi.angle,ar,br),ze=xe[0],je=xe[1],Ke=xe[2],Ze=xe[3],cn=xe[4],Xn=document.createElement("canvas"),Xn.width=ar,Xn.height=br,oi=Xn.getContext("2d"),Ii=oi.createLinearGradient(je,Ze,Ke,cn),Li(vi.stops,ze).forEach(function(ql){return Ii.addColorStop(ql.stop,Zs(ql.color))}),oi.fillStyle=Ii,oi.fillRect(0,0,ar,br),ar>0&&br>0&&(fi=Pe.ctx.createPattern(Xn,"repeat"),Pe.renderRepeat(Zi,fi,Bo,lo))):ia(vi)&&(Yi=Ud(Ft,Lt,[null,null,null]),Zi=Yi[0],di=Yi[1],Si=Yi[2],ar=Yi[3],br=Yi[4],Fr=vi.position.length===0?[Nc]:vi.position,Bo=xa(Fr[0],ar),lo=xa(Fr[Fr.length-1],br),ds=Lh(vi,Bo,lo,ar,br),Ln=ds[0],ya=ds[1],Ln>0&&ya>0&&(Ua=Pe.ctx.createRadialGradient(di+Bo,Si+lo,0,di+Bo,Si+lo,Ln),Li(vi.stops,Ln*2).forEach(function(ql){return Ua.addColorStop(ql.stop,Zs(ql.color))}),Pe.path(Zi),Pe.ctx.fillStyle=Ua,Ln!==ya?(da=Ft.bounds.left+.5*Ft.bounds.width,sa=Ft.bounds.top+.5*Ft.bounds.height,Wa=ya/Ln,na=1/Wa,Pe.ctx.save(),Pe.ctx.translate(da,sa),Pe.ctx.transform(1,0,0,Wa,0,0),Pe.ctx.translate(-da,-sa),Pe.ctx.fillRect(di,na*(Si-sa)+sa,ar,br*na),Pe.ctx.restore()):Pe.ctx.fill())),Ns.label=6;case 6:return Lt--,[2]}})},Pe=this,$e=0,Fn=Ft.styles.backgroundImage.slice(0).reverse(),Ai.label=1;case 1:return $e<Fn.length?(rn=Fn[$e],[5,te(rn)]):[3,4];case 2:Ai.sent(),Ai.label=3;case 3:return $e++,[3,1];case 4:return[2]}})})},xt.prototype.renderSolidBorder=function(Ft,Lt,te){return ke(this,void 0,void 0,function(){return Oe(this,function(Pe){return this.path(jd(te,Lt)),this.ctx.fillStyle=Zs(Ft),this.ctx.fill(),[2]})})},xt.prototype.renderDoubleBorder=function(Ft,Lt,te,Pe){return ke(this,void 0,void 0,function(){var $e,Fn;return Oe(this,function(rn){switch(rn.label){case 0:return Lt<3?[4,this.renderSolidBorder(Ft,te,Pe)]:[3,2];case 1:return rn.sent(),[2];case 2:return $e=md(Pe,te),this.path($e),this.ctx.fillStyle=Zs(Ft),this.ctx.fill(),Fn=Vf(Pe,te),this.path(Fn),this.ctx.fill(),[2]}})})},xt.prototype.renderNodeBackgroundAndBorders=function(Ft){return ke(this,void 0,void 0,function(){var Lt,te,Pe,$e,Fn,rn,Ai,vi,pt=this;return Oe(this,function(Pt){switch(Pt.label){case 0:return this.applyEffects(Ft.getEffects(2)),Lt=Ft.container.styles,te=!ga(Lt.backgroundColor)||Lt.backgroundImage.length,Pe=[{style:Lt.borderTopStyle,color:Lt.borderTopColor,width:Lt.borderTopWidth},{style:Lt.borderRightStyle,color:Lt.borderRightColor,width:Lt.borderRightWidth},{style:Lt.borderBottomStyle,color:Lt.borderBottomColor,width:Lt.borderBottomWidth},{style:Lt.borderLeftStyle,color:Lt.borderLeftColor,width:Lt.borderLeftWidth}],$e=yf(th(Lt.backgroundClip,0),Ft.curves),te||Lt.boxShadow.length?(this.ctx.save(),this.path($e),this.ctx.clip(),ga(Lt.backgroundColor)||(this.ctx.fillStyle=Zs(Lt.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ft.container)]):[3,2];case 1:Pt.sent(),this.ctx.restore(),Lt.boxShadow.slice(0).reverse().forEach(function(Wt){pt.ctx.save();var ee=mu(Ft.curves),xe=Wt.inset?0:Dh,ze=xg(ee,-xe+(Wt.inset?1:-1)*Wt.spread.number,(Wt.inset?1:-1)*Wt.spread.number,Wt.spread.number*(Wt.inset?-2:2),Wt.spread.number*(Wt.inset?-2:2));Wt.inset?(pt.path(ee),pt.ctx.clip(),pt.mask(ze)):(pt.mask(ee),pt.ctx.clip(),pt.path(ze)),pt.ctx.shadowOffsetX=Wt.offsetX.number+xe,pt.ctx.shadowOffsetY=Wt.offsetY.number,pt.ctx.shadowColor=Zs(Wt.color),pt.ctx.shadowBlur=Wt.blur.number,pt.ctx.fillStyle=Wt.inset?Zs(Wt.color):"rgba(0,0,0,1)",pt.ctx.fill(),pt.ctx.restore()}),Pt.label=2;case 2:Fn=0,rn=0,Ai=Pe,Pt.label=3;case 3:return rn<Ai.length?(vi=Ai[rn],vi.style!==0&&!ga(vi.color)&&vi.width>0?vi.style!==2?[3,5]:[4,this.renderDashedDottedBorder(vi.color,vi.width,Fn,Ft.curves,2)]:[3,11]):[3,13];case 4:return Pt.sent(),[3,11];case 5:return vi.style!==3?[3,7]:[4,this.renderDashedDottedBorder(vi.color,vi.width,Fn,Ft.curves,3)];case 6:return Pt.sent(),[3,11];case 7:return vi.style!==4?[3,9]:[4,this.renderDoubleBorder(vi.color,vi.width,Fn,Ft.curves)];case 8:return Pt.sent(),[3,11];case 9:return[4,this.renderSolidBorder(vi.color,Fn,Ft.curves)];case 10:Pt.sent(),Pt.label=11;case 11:Fn++,Pt.label=12;case 12:return rn++,[3,3];case 13:return[2]}})})},xt.prototype.renderDashedDottedBorder=function(Ft,Lt,te,Pe,$e){return ke(this,void 0,void 0,function(){var Fn,rn,Ai,vi,pt,Pt,Wt,ee,xe,ze,je,Ke,Ze,cn,Xn,oi,Xn,oi;return Oe(this,function(Ii){return this.ctx.save(),Fn=_c(Pe,te),rn=jd(Pe,te),$e===2&&(this.path(rn),this.ctx.clip()),_a(rn[0])?(Ai=rn[0].start.x,vi=rn[0].start.y):(Ai=rn[0].x,vi=rn[0].y),_a(rn[1])?(pt=rn[1].end.x,Pt=rn[1].end.y):(pt=rn[1].x,Pt=rn[1].y),te===0||te===2?Wt=Math.abs(Ai-pt):Wt=Math.abs(vi-Pt),this.ctx.beginPath(),$e===3?this.formatPath(Fn):this.formatPath(rn.slice(0,2)),ee=Lt<3?Lt*3:Lt*2,xe=Lt<3?Lt*2:Lt,$e===3&&(ee=Lt,xe=Lt),ze=!0,Wt<=ee*2?ze=!1:Wt<=ee*2+xe?(je=Wt/(2*ee+xe),ee*=je,xe*=je):(Ke=Math.floor((Wt+xe)/(ee+xe)),Ze=(Wt-Ke*ee)/(Ke-1),cn=(Wt-(Ke+1)*ee)/Ke,xe=cn<=0||Math.abs(xe-Ze)<Math.abs(xe-cn)?Ze:cn),ze&&($e===3?this.ctx.setLineDash([0,ee+xe]):this.ctx.setLineDash([ee,xe])),$e===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Lt):this.ctx.lineWidth=Lt*2+1.1,this.ctx.strokeStyle=Zs(Ft),this.ctx.stroke(),this.ctx.setLineDash([]),$e===2&&(_a(rn[0])&&(Xn=rn[3],oi=rn[0],this.ctx.beginPath(),this.formatPath([new $r(Xn.end.x,Xn.end.y),new $r(oi.start.x,oi.start.y)]),this.ctx.stroke()),_a(rn[1])&&(Xn=rn[1],oi=rn[2],this.ctx.beginPath(),this.formatPath([new $r(Xn.end.x,Xn.end.y),new $r(oi.start.x,oi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},xt.prototype.render=function(Ft){return ke(this,void 0,void 0,function(){var Lt;return Oe(this,function(te){switch(te.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Zs(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Lt=vf(Ft),[4,this.renderStack(Lt)];case 1:return te.sent(),this.applyEffects([]),[2,this.canvas]}})})},xt}(Oh),wp=function(Bt){return Bt instanceof _A||Bt instanceof Od?!0:Bt instanceof Ju&&Bt.type!==kh&&Bt.type!==pc},yf=function(Bt,xt){switch(Bt){case 0:return mu(xt);case 2:return vl(xt);case 1:default:return xc(xt)}},as=function(Bt){switch(Bt){case 1:return"center";case 2:return"right";case 0:default:return"left"}},_g=["-apple-system","system-ui"],Sp=function(Bt){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Bt.filter(function(xt){return _g.indexOf(xt)===-1}):Bt},wf=function(Bt){Kt(xt,Bt);function xt(Ft,Lt){var te=Bt.call(this,Ft,Lt)||this;return te.canvas=Lt.canvas?Lt.canvas:document.createElement("canvas"),te.ctx=te.canvas.getContext("2d"),te.options=Lt,te.canvas.width=Math.floor(Lt.width*Lt.scale),te.canvas.height=Math.floor(Lt.height*Lt.scale),te.canvas.style.width=Lt.width+"px",te.canvas.style.height=Lt.height+"px",te.ctx.scale(te.options.scale,te.options.scale),te.ctx.translate(-Lt.x,-Lt.y),te.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Lt.width+"x"+Lt.height+" at "+Lt.x+","+Lt.y+") with scale "+Lt.scale),te}return xt.prototype.render=function(Ft){return ke(this,void 0,void 0,function(){var Lt,te;return Oe(this,function(Pe){switch(Pe.label){case 0:return Lt=fd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ft),[4,yd(Lt)];case 1:return te=Pe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Zs(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(te,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},xt}(Oh),yd=function(Bt){return new Promise(function(xt,Ft){var Lt=new Image;Lt.onload=function(){xt(Lt)},Lt.onerror=Ft,Lt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Bt))})},Kc=function(){function Bt(xt){var Ft=xt.id,Lt=xt.enabled;this.id=Ft,this.enabled=Lt,this.start=Date.now()}return Bt.prototype.debug=function(){for(var xt=[],Ft=0;Ft<arguments.length;Ft++)xt[Ft]=arguments[Ft];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Cn([this.id,this.getTime()+"ms"],xt)):this.info.apply(this,xt))},Bt.prototype.getTime=function(){return Date.now()-this.start},Bt.prototype.info=function(){for(var xt=[],Ft=0;Ft<arguments.length;Ft++)xt[Ft]=arguments[Ft];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Cn([this.id,this.getTime()+"ms"],xt))},Bt.prototype.warn=function(){for(var xt=[],Ft=0;Ft<arguments.length;Ft++)xt[Ft]=arguments[Ft];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Cn([this.id,this.getTime()+"ms"],xt)):this.info.apply(this,xt))},Bt.prototype.error=function(){for(var xt=[],Ft=0;Ft<arguments.length;Ft++)xt[Ft]=arguments[Ft];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Cn([this.id,this.getTime()+"ms"],xt)):this.info.apply(this,xt))},Bt.instances={},Bt}(),MA=function(){function Bt(xt,Ft){var Lt;this.windowBounds=Ft,this.instanceName="#"+Bt.instanceCount++,this.logger=new Kc({id:this.instanceName,enabled:xt.logging}),this.cache=(Lt=xt.cache)!==null&&Lt!==void 0?Lt:new xs(this,xt)}return Bt.instanceCount=1,Bt}(),Pg=function(Bt,xt){return xt===void 0&&(xt={}),Kg(Bt,xt)};typeof window!="undefined"&&Zr.setContext(window);var Kg=function(Bt,xt){return ke(void 0,void 0,void 0,function(){var Ft,Lt,te,Pe,$e,Fn,rn,Ai,vi,pt,Pt,Wt,ee,xe,ze,je,Ke,Ze,cn,Xn,Ii,oi,Ii,fi,Yi,Zi,di,Si,ar,br,Fr,Bo,lo,ds,Ln,ya,Ua,da,sa,Wa;return Oe(this,function(na){switch(na.label){case 0:if(!Bt||typeof Bt!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Ft=Bt.ownerDocument,!Ft)throw new Error("Element is not attached to a Document");if(Lt=Ft.defaultView,!Lt)throw new Error("Document is not attached to a Window");return te={allowTaint:(fi=xt.allowTaint)!==null&&fi!==void 0?fi:!1,imageTimeout:(Yi=xt.imageTimeout)!==null&&Yi!==void 0?Yi:15e3,proxy:xt.proxy,useCORS:(Zi=xt.useCORS)!==null&&Zi!==void 0?Zi:!1},Pe=zt({logging:(di=xt.logging)!==null&&di!==void 0?di:!0,cache:xt.cache},te),$e={windowWidth:(Si=xt.windowWidth)!==null&&Si!==void 0?Si:Lt.innerWidth,windowHeight:(ar=xt.windowHeight)!==null&&ar!==void 0?ar:Lt.innerHeight,scrollX:(br=xt.scrollX)!==null&&br!==void 0?br:Lt.pageXOffset,scrollY:(Fr=xt.scrollY)!==null&&Fr!==void 0?Fr:Lt.pageYOffset},Fn=new Be($e.scrollX,$e.scrollY,$e.windowWidth,$e.windowHeight),rn=new MA(Pe,Fn),Ai=(Bo=xt.foreignObjectRendering)!==null&&Bo!==void 0?Bo:!1,vi={allowTaint:(lo=xt.allowTaint)!==null&&lo!==void 0?lo:!1,onclone:xt.onclone,ignoreElements:xt.ignoreElements,inlineImages:Ai,copyStyles:Ai},rn.logger.debug("Starting document clone with size "+Fn.width+"x"+Fn.height+" scrolled to "+-Fn.left+","+-Fn.top),pt=new mt(rn,Bt,vi),Pt=pt.clonedReferenceElement,Pt?[4,pt.toIFrame(Ft,Fn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Wt=na.sent(),ee=ss(Pt)||Ks(Pt)?Ie(Pt.ownerDocument):vn(rn,Pt),xe=ee.width,ze=ee.height,je=ee.left,Ke=ee.top,Ze=bg(rn,Pt,xt.backgroundColor),cn={canvas:xt.canvas,backgroundColor:Ze,scale:(Ln=(ds=xt.scale)!==null&&ds!==void 0?ds:Lt.devicePixelRatio)!==null&&Ln!==void 0?Ln:1,x:((ya=xt.x)!==null&&ya!==void 0?ya:0)+je,y:((Ua=xt.y)!==null&&Ua!==void 0?Ua:0)+Ke,width:(da=xt.width)!==null&&da!==void 0?da:Math.ceil(xe),height:(sa=xt.height)!==null&&sa!==void 0?sa:Math.ceil(ze)},Ai?(rn.logger.debug("Document cloned, using foreign object rendering"),Ii=new wf(rn,cn),[4,Ii.render(Pt)]):[3,3];case 2:return Xn=na.sent(),[3,5];case 3:return rn.logger.debug("Document cloned, element located at "+je+","+Ke+" with size "+xe+"x"+ze+" using computed rendering"),rn.logger.debug("Starting DOM parsing"),oi=_t(rn,Pt),Ze===oi.styles.backgroundColor&&(oi.styles.backgroundColor=_h.TRANSPARENT),rn.logger.debug("Starting renderer for element at "+cn.x+","+cn.y+" with size "+cn.width+"x"+cn.height),Ii=new Rd(rn,cn),[4,Ii.render(oi)];case 4:Xn=na.sent(),na.label=5;case 5:return(!((Wa=xt.removeContainer)!==null&&Wa!==void 0)||Wa)&&(mt.destroy(Wt)||rn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),rn.logger.debug("Finished rendering"),[2,Xn]}})})},bg=function(Bt,xt,Ft){var Lt=xt.ownerDocument,te=Lt.documentElement?ic(Bt,getComputedStyle(Lt.documentElement).backgroundColor):_h.TRANSPARENT,Pe=Lt.body?ic(Bt,getComputedStyle(Lt.body).backgroundColor):_h.TRANSPARENT,$e=typeof Ft=="string"?ic(Bt,Ft):Ft===null?_h.TRANSPARENT:4294967295;return xt===Lt.documentElement?ga(te)?ga(Pe)?$e:Pe:te:$e};return Pg})},44164:function(Fi,Ti,Kt){var zt=Kt(97671);(function(Oe,Cn){Fi.exports=Cn(Kt(7348),Kt(64270))})(self,function(ke,Oe){return function(){var Cn={"./src/plugin/hyperlinks.js":function(ge,ye,Nt){"use strict";Nt.r(ye);var se=Nt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),oe=Nt.n(se),me=Nt("./node_modules/core-js/modules/es.string.link.js"),Ut=Nt.n(me),et=Nt("./src/worker.js"),nt=Nt("./src/utils.js"),ht=[],at={toContainer:et.default.prototype.toContainer,toPdf:et.default.prototype.toPdf};et.default.prototype.toContainer=function(){return at.toContainer.call(this).then(function(){if(this.opt.enableLinks){var Mt=this.prop.container,Rt=Mt.querySelectorAll("a"),Gt=(0,nt.unitConvert)(Mt.getBoundingClientRect(),this.prop.pageSize.k);ht=[],Array.prototype.forEach.call(Rt,function($t){for(var ae=$t.getClientRects(),ve=0;ve<ae.length;ve++){var fe=(0,nt.unitConvert)(ae[ve],this.prop.pageSize.k);fe.left-=Gt.left,fe.top-=Gt.top;var Ye=Math.floor(fe.top/this.prop.pageSize.inner.height)+1,De=this.opt.margin[0]+fe.top%this.prop.pageSize.inner.height,hn=this.opt.margin[1]+fe.left;ht.push({page:Ye,top:De,left:hn,clientRect:fe,link:$t})}},this)}})},et.default.prototype.toPdf=function(){return at.toPdf.call(this).then(function(){if(this.opt.enableLinks){ht.forEach(function(Rt){this.prop.pdf.setPage(Rt.page),this.prop.pdf.link(Rt.left,Rt.top,Rt.clientRect.width,Rt.clientRect.height,{url:Rt.link.href})},this);var Mt=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(Mt)}})}},"./src/plugin/jspdf-plugin.js":function(ge,ye,Nt){"use strict";Nt.r(ye);var se=Nt("./node_modules/core-js/modules/es.symbol.js"),oe=Nt.n(se),me=Nt("./node_modules/core-js/modules/es.symbol.description.js"),Ut=Nt.n(me),et=Nt("./node_modules/core-js/modules/es.object.to-string.js"),nt=Nt.n(et),ht=Nt("./node_modules/core-js/modules/es.symbol.iterator.js"),at=Nt.n(ht),ft=Nt("./node_modules/core-js/modules/es.array.iterator.js"),vt=Nt.n(ft),Mt=Nt("./node_modules/core-js/modules/es.string.iterator.js"),Rt=Nt.n(Mt),Gt=Nt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),$t=Nt.n(Gt),ae=Nt("jspdf"),ve=Nt.n(ae);function fe(Ye){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(hn){return typeof hn}:fe=function(hn){return hn&&typeof Symbol=="function"&&hn.constructor===Symbol&&hn!==Symbol.prototype?"symbol":typeof hn},fe(Ye)}ae.jsPDF.getPageSize=function(Ye,De,hn){if(fe(Ye)==="object"){var Ue=Ye;Ye=Ue.orientation,De=Ue.unit||De,hn=Ue.format||hn}De=De||"mm",hn=hn||"a4",Ye=(""+(Ye||"P")).toLowerCase();var Pn=(""+hn).toLowerCase(),qn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(De){case"pt":var un=1;break;case"mm":var un=72/25.4;break;case"cm":var un=72/2.54;break;case"in":var un=72;break;case"px":var un=72/96;break;case"pc":var un=12;break;case"em":var un=12;break;case"ex":var un=6;break;default:throw"Invalid unit: "+De}if(qn.hasOwnProperty(Pn))var fn=qn[Pn][1]/un,mn=qn[Pn][0]/un;else try{var fn=hn[1],mn=hn[0]}catch(Ve){throw new Error("Invalid format: "+hn)}if(Ye==="p"||Ye==="portrait"){if(Ye="p",mn>fn){var pe=mn;mn=fn,fn=pe}}else if(Ye==="l"||Ye==="landscape"){if(Ye="l",fn>mn){var pe=mn;mn=fn,fn=pe}}else throw"Invalid orientation: "+Ye;var Xt={width:mn,height:fn,unit:De,k:un};return Xt},ye.default=ae.jsPDF},"./src/plugin/pagebreaks.js":function(ge,ye,Nt){"use strict";Nt.r(ye);var se=Nt("./node_modules/core-js/modules/es.array.concat.js"),oe=Nt.n(se),me=Nt("./node_modules/core-js/modules/es.array.slice.js"),Ut=Nt.n(me),et=Nt("./node_modules/core-js/modules/es.array.join.js"),nt=Nt.n(et),ht=Nt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),at=Nt.n(ht),ft=Nt("./node_modules/core-js/modules/es.object.keys.js"),vt=Nt.n(ft),Mt=Nt("./src/worker.js"),Rt=Nt("./src/utils.js"),Gt={toContainer:Mt.default.prototype.toContainer};Mt.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},Mt.default.prototype.toContainer=function(){return Gt.toContainer.call(this).then(function(){var ve=this.prop.container,fe=this.prop.pageSize.inner.px.height,Ye=[].concat(this.opt.pagebreak.mode),De={avoidAll:Ye.indexOf("avoid-all")!==-1,css:Ye.indexOf("css")!==-1,legacy:Ye.indexOf("legacy")!==-1},hn={},Ue=this;["before","after","avoid"].forEach(function(un){var fn=De.avoidAll&&un==="avoid";hn[un]=fn?[]:[].concat(Ue.opt.pagebreak[un]||[]),hn[un].length>0&&(hn[un]=Array.prototype.slice.call(ve.querySelectorAll(hn[un].join(", "))))});var Pn=ve.querySelectorAll(".html2pdf__page-break");Pn=Array.prototype.slice.call(Pn);var qn=ve.querySelectorAll("*");Array.prototype.forEach.call(qn,function(fn){var mn={before:!1,after:De.legacy&&Pn.indexOf(fn)!==-1,avoid:De.avoidAll};if(De.css){var pe=window.getComputedStyle(fn),Xt=["always","page","left","right"],Ve=["avoid","avoid-page"];mn={before:mn.before||Xt.indexOf(pe.breakBefore||pe.pageBreakBefore)!==-1,after:mn.after||Xt.indexOf(pe.breakAfter||pe.pageBreakAfter)!==-1,avoid:mn.avoid||Ve.indexOf(pe.breakInside||pe.pageBreakInside)!==-1}}Object.keys(mn).forEach(function(Ci){mn[Ci]=mn[Ci]||hn[Ci].indexOf(fn)!==-1});var Vn=fn.getBoundingClientRect();if(mn.avoid&&!mn.before){var si=Math.floor(Vn.top/fe),An=Math.floor(Vn.bottom/fe),Nn=Math.abs(Vn.bottom-Vn.top)/fe;An!==si&&Nn<=1&&(mn.before=!0)}if(mn.before){var Yn=(0,Rt.createElement)("div",{style:{display:"block",height:fe-Vn.top%fe+"px"}});fn.parentNode.insertBefore(Yn,fn)}if(mn.after){var Yn=(0,Rt.createElement)("div",{style:{display:"block",height:fe-Vn.bottom%fe+"px"}});fn.parentNode.insertBefore(Yn,fn.nextSibling)}})})}},"./src/utils.js":function(ge,ye,Nt){"use strict";Nt.r(ye),Nt.d(ye,{objType:function(){return Ye},createElement:function(){return De},cloneNode:function(){return hn},unitConvert:function(){return Ue},toPx:function(){return Pn}});var se=Nt("./node_modules/core-js/modules/es.number.constructor.js"),oe=Nt.n(se),me=Nt("./node_modules/core-js/modules/es.symbol.js"),Ut=Nt.n(me),et=Nt("./node_modules/core-js/modules/es.symbol.description.js"),nt=Nt.n(et),ht=Nt("./node_modules/core-js/modules/es.object.to-string.js"),at=Nt.n(ht),ft=Nt("./node_modules/core-js/modules/es.symbol.iterator.js"),vt=Nt.n(ft),Mt=Nt("./node_modules/core-js/modules/es.array.iterator.js"),Rt=Nt.n(Mt),Gt=Nt("./node_modules/core-js/modules/es.string.iterator.js"),$t=Nt.n(Gt),ae=Nt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ve=Nt.n(ae);function fe(qn){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(fn){return typeof fn}:fe=function(fn){return fn&&typeof Symbol=="function"&&fn.constructor===Symbol&&fn!==Symbol.prototype?"symbol":typeof fn},fe(qn)}var Ye=function(un){var fn=fe(un);return fn==="undefined"?"undefined":fn==="string"||un instanceof String?"string":fn==="number"||un instanceof Number?"number":fn==="function"||un instanceof Function?"function":un&&un.constructor===Array?"array":un&&un.nodeType===1?"element":fn==="object"?"object":"unknown"},De=function(un,fn){var mn=document.createElement(un);if(fn.className&&(mn.className=fn.className),fn.innerHTML){mn.innerHTML=fn.innerHTML;for(var pe=mn.getElementsByTagName("script"),Xt=pe.length;Xt-- >0;null)pe[Xt].parentNode.removeChild(pe[Xt])}for(var Ve in fn.style)mn.style[Ve]=fn.style[Ve];return mn},hn=function qn(un,fn){for(var mn=un.nodeType===3?document.createTextNode(un.nodeValue):un.cloneNode(!1),pe=un.firstChild;pe;pe=pe.nextSibling)(fn===!0||pe.nodeType!==1||pe.nodeName!=="SCRIPT")&&mn.appendChild(qn(pe,fn));return un.nodeType===1&&(un.nodeName==="CANVAS"?(mn.width=un.width,mn.height=un.height,mn.getContext("2d").drawImage(un,0,0)):(un.nodeName==="TEXTAREA"||un.nodeName==="SELECT")&&(mn.value=un.value),mn.addEventListener("load",function(){mn.scrollTop=un.scrollTop,mn.scrollLeft=un.scrollLeft},!0)),mn},Ue=function(un,fn){if(Ye(un)==="number")return un*72/96/fn;var mn={};for(var pe in un)mn[pe]=un[pe]*72/96/fn;return mn},Pn=function(un,fn){return Math.floor(un*fn/72*96)}},"./src/worker.js":function(ge,ye,Nt){"use strict";Nt.r(ye);var se=Nt("./node_modules/core-js/modules/es.object.assign.js"),oe=Nt.n(se),me=Nt("./node_modules/core-js/modules/es.array.map.js"),Ut=Nt.n(me),et=Nt("./node_modules/core-js/modules/es.object.keys.js"),nt=Nt.n(et),ht=Nt("./node_modules/core-js/modules/es.array.concat.js"),at=Nt.n(ht),ft=Nt("./node_modules/core-js/modules/es.object.to-string.js"),vt=Nt.n(ft),Mt=Nt("./node_modules/core-js/modules/es.regexp.to-string.js"),Rt=Nt.n(Mt),Gt=Nt("./node_modules/core-js/modules/es.function.name.js"),$t=Nt.n(Gt),ae=Nt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ve=Nt.n(ae),fe=Nt("jspdf"),Ye=Nt.n(fe),De=Nt("html2canvas"),hn=Nt.n(De),Ue=Nt("./src/utils.js"),Pn=Nt("./node_modules/es6-promise/dist/es6-promise.js"),qn=Nt.n(Pn),un=qn().Promise,fn=function mn(pe){var Xt=Object.assign(mn.convert(un.resolve()),JSON.parse(JSON.stringify(mn.template))),Ve=mn.convert(un.resolve(),Xt);return Ve=Ve.setProgress(1,mn,1,[mn]),Ve=Ve.set(pe),Ve};fn.prototype=Object.create(un.prototype),fn.prototype.constructor=fn,fn.convert=function(pe,Xt){return pe.__proto__=Xt||fn.prototype,pe},fn.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},fn.prototype.from=function(pe,Xt){function Ve(Vn){switch((0,Ue.objType)(Vn)){case"string":return"string";case"element":return Vn.nodeName.toLowerCase&&Vn.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(Xt=Xt||Ve(pe),Xt){case"string":return this.set({src:(0,Ue.createElement)("div",{innerHTML:pe})});case"element":return this.set({src:pe});case"canvas":return this.set({canvas:pe});case"img":return this.set({img:pe});default:return this.error("Unknown source type.")}})},fn.prototype.to=function(pe){switch(pe){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},fn.prototype.toContainer=function(){var pe=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(pe).then(function(){var Ve={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Vn={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Ve.opacity=0;var si=(0,Ue.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Ue.createElement)("div",{className:"html2pdf__overlay",style:Ve}),this.prop.container=(0,Ue.createElement)("div",{className:"html2pdf__container",style:Vn}),this.prop.container.appendChild(si),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},fn.prototype.toCanvas=function(){var pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(pe).then(function(){var Ve=Object.assign({},this.opt.html2canvas);return delete Ve.onrendered,De(this.prop.container,Ve)}).then(function(Ve){var Vn=this.opt.html2canvas.onrendered||function(){};Vn(Ve),this.prop.canvas=Ve,document.body.removeChild(this.prop.overlay)})},fn.prototype.toImg=function(){var pe=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(pe).then(function(){var Ve=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ve})},fn.prototype.toPdf=function(){var pe=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(pe).then(function(){var Ve=this.prop.canvas,Vn=this.opt,si=Ve.height,An=Math.floor(Ve.width*this.prop.pageSize.inner.ratio),Nn=Math.ceil(si/An),Yn=this.prop.pageSize.inner.height,Ci=document.createElement("canvas"),Mi=Ci.getContext("2d");Ci.width=Ve.width,Ci.height=An,this.prop.pdf=this.prop.pdf||new fe.jsPDF(Vn.jsPDF);for(var Ri=0;Ri<Nn;Ri++){Ri===Nn-1&&si%An!==0&&(Ci.height=si%An,Yn=Ci.height*this.prop.pageSize.inner.width/Ci.width);var Te=Ci.width,ci=Ci.height;Mi.fillStyle="white",Mi.fillRect(0,0,Te,ci),Mi.drawImage(Ve,0,Ri*An,Te,ci,0,0,Te,ci),Ri&&this.prop.pdf.addPage();var ki=Ci.toDataURL("image/"+Vn.image.type,Vn.image.quality);this.prop.pdf.addImage(ki,Vn.image.type,Vn.margin[1],Vn.margin[0],this.prop.pageSize.inner.width,Yn)}})},fn.prototype.output=function(pe,Xt,Ve){return Ve=Ve||"pdf",Ve.toLowerCase()==="img"||Ve.toLowerCase()==="image"?this.outputImg(pe,Xt):this.outputPdf(pe,Xt)},fn.prototype.outputPdf=function(pe,Xt){var Ve=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ve).then(function(){return this.prop.pdf.output(pe,Xt)})},fn.prototype.outputImg=function(pe,Xt){var Ve=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ve).then(function(){switch(pe){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+pe+'" is not supported.'}})},fn.prototype.save=function(pe){var Xt=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Xt).set(pe?{filename:pe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},fn.prototype.set=function(pe){if((0,Ue.objType)(pe)!=="object")return this;var Xt=Object.keys(pe||{}).map(function(Ve){switch(Ve){case"margin":return this.setMargin.bind(this,pe.margin);case"jsPDF":return function(){return this.opt.jsPDF=pe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,pe.pageSize);default:return Ve in fn.template.prop?function(){this.prop[Ve]=pe[Ve]}:function(){this.opt[Ve]=pe[Ve]}}},this);return this.then(function(){return this.thenList(Xt)})},fn.prototype.get=function(pe,Xt){return this.then(function(){var Vn=pe in fn.template.prop?this.prop[pe]:this.opt[pe];return Xt?Xt(Vn):Vn})},fn.prototype.setMargin=function(pe){return this.then(function(){switch((0,Ue.objType)(pe)){case"number":pe=[pe,pe,pe,pe];case"array":if(pe.length===2&&(pe=[pe[0],pe[1],pe[0],pe[1]]),pe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=pe}).then(this.setPageSize)},fn.prototype.setPageSize=function(pe){return this.then(function(){pe=pe||fe.jsPDF.getPageSize(this.opt.jsPDF),pe.hasOwnProperty("inner")||(pe.inner={width:pe.width-this.opt.margin[1]-this.opt.margin[3],height:pe.height-this.opt.margin[0]-this.opt.margin[2]},pe.inner.px={width:(0,Ue.toPx)(pe.inner.width,pe.k),height:(0,Ue.toPx)(pe.inner.height,pe.k)},pe.inner.ratio=pe.inner.height/pe.inner.width),this.prop.pageSize=pe})},fn.prototype.setProgress=function(pe,Xt,Ve,Vn){return pe!=null&&(this.progress.val=pe),Xt!=null&&(this.progress.state=Xt),Ve!=null&&(this.progress.n=Ve),Vn!=null&&(this.progress.stack=Vn),this.progress.ratio=this.progress.val/this.progress.state,this},fn.prototype.updateProgress=function(pe,Xt,Ve,Vn){return this.setProgress(pe?this.progress.val+pe:null,Xt||null,Ve?this.progress.n+Ve:null,Vn?this.progress.stack.concat(Vn):null)},fn.prototype.then=function(pe,Xt){var Ve=this;return this.thenCore(pe,Xt,function(si,An){return Ve.updateProgress(null,null,1,[si]),un.prototype.then.call(this,function(Yn){return Ve.updateProgress(null,si),Yn}).then(si,An).then(function(Yn){return Ve.updateProgress(1),Yn})})},fn.prototype.thenCore=function(pe,Xt,Ve){Ve=Ve||un.prototype.then;var Vn=this;pe&&(pe=pe.bind(Vn)),Xt&&(Xt=Xt.bind(Vn));var si=un.toString().indexOf("[native code]")!==-1&&un.name==="Promise",An=si?Vn:fn.convert(Object.assign({},Vn),un.prototype),Nn=Ve.call(An,pe,Xt);return fn.convert(Nn,Vn.__proto__)},fn.prototype.thenExternal=function(pe,Xt){return un.prototype.then.call(this,pe,Xt)},fn.prototype.thenList=function(pe){var Xt=this;return pe.forEach(function(Vn){Xt=Xt.thenCore(Vn)}),Xt},fn.prototype.catch=function(mn){mn&&(mn=mn.bind(this));var pe=un.prototype.catch.call(this,mn);return fn.convert(pe,this)},fn.prototype.catchExternal=function(pe){return un.prototype.catch.call(this,pe)},fn.prototype.error=function(pe){return this.then(function(){throw new Error(pe)})},fn.prototype.using=fn.prototype.set,fn.prototype.saveAs=fn.prototype.save,fn.prototype.export=fn.prototype.output,fn.prototype.run=fn.prototype.then,ye.default=fn},"./node_modules/core-js/internals/a-function.js":function(ge){ge.exports=function(ye){if(typeof ye!="function")throw TypeError(String(ye)+" is not a function");return ye}},"./node_modules/core-js/internals/a-possible-prototype.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/is-object.js");ge.exports=function(oe){if(!se(oe)&&oe!==null)throw TypeError("Can't set "+String(oe)+" as a prototype");return oe}},"./node_modules/core-js/internals/add-to-unscopables.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/well-known-symbol.js"),oe=Nt("./node_modules/core-js/internals/object-create.js"),me=Nt("./node_modules/core-js/internals/object-define-property.js"),Ut=se("unscopables"),et=Array.prototype;et[Ut]==null&&me.f(et,Ut,{configurable:!0,value:oe(null)}),ge.exports=function(nt){et[Ut][nt]=!0}},"./node_modules/core-js/internals/an-object.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/is-object.js");ge.exports=function(oe){if(!se(oe))throw TypeError(String(oe)+" is not an object");return oe}},"./node_modules/core-js/internals/array-for-each.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/array-iteration.js").forEach,oe=Nt("./node_modules/core-js/internals/array-method-is-strict.js"),me=oe("forEach");ge.exports=me?[].forEach:function(et){return se(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-indexed-object.js"),oe=Nt("./node_modules/core-js/internals/to-length.js"),me=Nt("./node_modules/core-js/internals/to-absolute-index.js"),Ut=function(et){return function(nt,ht,at){var ft=se(nt),vt=oe(ft.length),Mt=me(at,vt),Rt;if(et&&ht!=ht){for(;vt>Mt;)if(Rt=ft[Mt++],Rt!=Rt)return!0}else for(;vt>Mt;Mt++)if((et||Mt in ft)&&ft[Mt]===ht)return et||Mt||0;return!et&&-1}};ge.exports={includes:Ut(!0),indexOf:Ut(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/function-bind-context.js"),oe=Nt("./node_modules/core-js/internals/indexed-object.js"),me=Nt("./node_modules/core-js/internals/to-object.js"),Ut=Nt("./node_modules/core-js/internals/to-length.js"),et=Nt("./node_modules/core-js/internals/array-species-create.js"),nt=[].push,ht=function(at){var ft=at==1,vt=at==2,Mt=at==3,Rt=at==4,Gt=at==6,$t=at==7,ae=at==5||Gt;return function(ve,fe,Ye,De){for(var hn=me(ve),Ue=oe(hn),Pn=se(fe,Ye,3),qn=Ut(Ue.length),un=0,fn=De||et,mn=ft?fn(ve,qn):vt||$t?fn(ve,0):void 0,pe,Xt;qn>un;un++)if((ae||un in Ue)&&(pe=Ue[un],Xt=Pn(pe,un,hn),at))if(ft)mn[un]=Xt;else if(Xt)switch(at){case 3:return!0;case 5:return pe;case 6:return un;case 2:nt.call(mn,pe)}else switch(at){case 4:return!1;case 7:nt.call(mn,pe)}return Gt?-1:Mt||Rt?Rt:mn}};ge.exports={forEach:ht(0),map:ht(1),filter:ht(2),some:ht(3),every:ht(4),find:ht(5),findIndex:ht(6),filterReject:ht(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/fails.js"),oe=Nt("./node_modules/core-js/internals/well-known-symbol.js"),me=Nt("./node_modules/core-js/internals/engine-v8-version.js"),Ut=oe("species");ge.exports=function(et){return me>=51||!se(function(){var nt=[],ht=nt.constructor={};return ht[Ut]=function(){return{foo:1}},nt[et](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/fails.js");ge.exports=function(oe,me){var Ut=[][oe];return!!Ut&&se(function(){Ut.call(null,me||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/is-object.js"),oe=Nt("./node_modules/core-js/internals/is-array.js"),me=Nt("./node_modules/core-js/internals/well-known-symbol.js"),Ut=me("species");ge.exports=function(et){var nt;return oe(et)&&(nt=et.constructor,typeof nt=="function"&&(nt===Array||oe(nt.prototype))?nt=void 0:se(nt)&&(nt=nt[Ut],nt===null&&(nt=void 0))),nt===void 0?Array:nt}},"./node_modules/core-js/internals/array-species-create.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/array-species-constructor.js");ge.exports=function(oe,me){return new(se(oe))(me===0?0:me)}},"./node_modules/core-js/internals/classof-raw.js":function(ge){var ye={}.toString;ge.exports=function(Nt){return ye.call(Nt).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-string-tag-support.js"),oe=Nt("./node_modules/core-js/internals/classof-raw.js"),me=Nt("./node_modules/core-js/internals/well-known-symbol.js"),Ut=me("toStringTag"),et=oe(function(){return arguments}())=="Arguments",nt=function(ht,at){try{return ht[at]}catch(ft){}};ge.exports=se?oe:function(ht){var at,ft,vt;return ht===void 0?"Undefined":ht===null?"Null":typeof(ft=nt(at=Object(ht),Ut))=="string"?ft:et?oe(at):(vt=oe(at))=="Object"&&typeof at.callee=="function"?"Arguments":vt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/has.js"),oe=Nt("./node_modules/core-js/internals/own-keys.js"),me=Nt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ut=Nt("./node_modules/core-js/internals/object-define-property.js");ge.exports=function(et,nt){for(var ht=oe(nt),at=Ut.f,ft=me.f,vt=0;vt<ht.length;vt++){var Mt=ht[vt];se(et,Mt)||at(et,Mt,ft(nt,Mt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/fails.js");ge.exports=!se(function(){function oe(){}return oe.prototype.constructor=null,Object.getPrototypeOf(new oe)!==oe.prototype})},"./node_modules/core-js/internals/create-html.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/require-object-coercible.js"),oe=Nt("./node_modules/core-js/internals/to-string.js"),me=/"/g;ge.exports=function(Ut,et,nt,ht){var at=oe(se(Ut)),ft="<"+et;return nt!==""&&(ft+=" "+nt+'="'+oe(ht).replace(me,"&quot;")+'"'),ft+">"+at+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,oe=Nt("./node_modules/core-js/internals/object-create.js"),me=Nt("./node_modules/core-js/internals/create-property-descriptor.js"),Ut=Nt("./node_modules/core-js/internals/set-to-string-tag.js"),et=Nt("./node_modules/core-js/internals/iterators.js"),nt=function(){return this};ge.exports=function(ht,at,ft){var vt=at+" Iterator";return ht.prototype=oe(se,{next:me(1,ft)}),Ut(ht,vt,!1,!0),et[vt]=nt,ht}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/descriptors.js"),oe=Nt("./node_modules/core-js/internals/object-define-property.js"),me=Nt("./node_modules/core-js/internals/create-property-descriptor.js");ge.exports=se?function(Ut,et,nt){return oe.f(Ut,et,me(1,nt))}:function(Ut,et,nt){return Ut[et]=nt,Ut}},"./node_modules/core-js/internals/create-property-descriptor.js":function(ge){ge.exports=function(ye,Nt){return{enumerable:!(ye&1),configurable:!(ye&2),writable:!(ye&4),value:Nt}}},"./node_modules/core-js/internals/create-property.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/to-property-key.js"),oe=Nt("./node_modules/core-js/internals/object-define-property.js"),me=Nt("./node_modules/core-js/internals/create-property-descriptor.js");ge.exports=function(Ut,et,nt){var ht=se(et);ht in Ut?oe.f(Ut,ht,me(0,nt)):Ut[ht]=nt}},"./node_modules/core-js/internals/define-iterator.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/create-iterator-constructor.js"),me=Nt("./node_modules/core-js/internals/object-get-prototype-of.js"),Ut=Nt("./node_modules/core-js/internals/object-set-prototype-of.js"),et=Nt("./node_modules/core-js/internals/set-to-string-tag.js"),nt=Nt("./node_modules/core-js/internals/create-non-enumerable-property.js"),ht=Nt("./node_modules/core-js/internals/redefine.js"),at=Nt("./node_modules/core-js/internals/well-known-symbol.js"),ft=Nt("./node_modules/core-js/internals/is-pure.js"),vt=Nt("./node_modules/core-js/internals/iterators.js"),Mt=Nt("./node_modules/core-js/internals/iterators-core.js"),Rt=Mt.IteratorPrototype,Gt=Mt.BUGGY_SAFARI_ITERATORS,$t=at("iterator"),ae="keys",ve="values",fe="entries",Ye=function(){return this};ge.exports=function(De,hn,Ue,Pn,qn,un,fn){oe(Ue,hn,Pn);var mn=function(Mi){if(Mi===qn&&si)return si;if(!Gt&&Mi in Ve)return Ve[Mi];switch(Mi){case ae:return function(){return new Ue(this,Mi)};case ve:return function(){return new Ue(this,Mi)};case fe:return function(){return new Ue(this,Mi)}}return function(){return new Ue(this)}},pe=hn+" Iterator",Xt=!1,Ve=De.prototype,Vn=Ve[$t]||Ve["@@iterator"]||qn&&Ve[qn],si=!Gt&&Vn||mn(qn),An=hn=="Array"&&Ve.entries||Vn,Nn,Yn,Ci;if(An&&(Nn=me(An.call(new De)),Rt!==Object.prototype&&Nn.next&&(!ft&&me(Nn)!==Rt&&(Ut?Ut(Nn,Rt):typeof Nn[$t]!="function"&&nt(Nn,$t,Ye)),et(Nn,pe,!0,!0),ft&&(vt[pe]=Ye))),qn==ve&&Vn&&Vn.name!==ve&&(Xt=!0,si=function(){return Vn.call(this)}),(!ft||fn)&&Ve[$t]!==si&&nt(Ve,$t,si),vt[hn]=si,qn)if(Yn={values:mn(ve),keys:un?si:mn(ae),entries:mn(fe)},fn)for(Ci in Yn)(Gt||Xt||!(Ci in Ve))&&ht(Ve,Ci,Yn[Ci]);else se({target:hn,proto:!0,forced:Gt||Xt},Yn);return Yn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/path.js"),oe=Nt("./node_modules/core-js/internals/has.js"),me=Nt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ut=Nt("./node_modules/core-js/internals/object-define-property.js").f;ge.exports=function(et){var nt=se.Symbol||(se.Symbol={});oe(nt,et)||Ut(nt,et,{value:me.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/fails.js");ge.exports=!se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/is-object.js"),me=se.document,Ut=oe(me)&&oe(me.createElement);ge.exports=function(et){return Ut?me.createElement(et):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(ge){ge.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/get-built-in.js");ge.exports=se("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/engine-user-agent.js"),me=se.process,Ut=se.Deno,et=me&&me.versions||Ut&&Ut.version,nt=et&&et.v8,ht,at;nt?(ht=nt.split("."),at=ht[0]<4?1:ht[0]+ht[1]):oe&&(ht=oe.match(/Edge\/(\d+)/),(!ht||ht[1]>=74)&&(ht=oe.match(/Chrome\/(\d+)/),ht&&(at=ht[1]))),ge.exports=at&&+at},"./node_modules/core-js/internals/enum-bug-keys.js":function(ge){ge.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,me=Nt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ut=Nt("./node_modules/core-js/internals/redefine.js"),et=Nt("./node_modules/core-js/internals/set-global.js"),nt=Nt("./node_modules/core-js/internals/copy-constructor-properties.js"),ht=Nt("./node_modules/core-js/internals/is-forced.js");ge.exports=function(at,ft){var vt=at.target,Mt=at.global,Rt=at.stat,Gt,$t,ae,ve,fe,Ye;if(Mt?$t=se:Rt?$t=se[vt]||et(vt,{}):$t=(se[vt]||{}).prototype,$t)for(ae in ft){if(fe=ft[ae],at.noTargetGet?(Ye=oe($t,ae),ve=Ye&&Ye.value):ve=$t[ae],Gt=ht(Mt?ae:vt+(Rt?".":"#")+ae,at.forced),!Gt&&ve!==void 0){if(typeof fe==typeof ve)continue;nt(fe,ve)}(at.sham||ve&&ve.sham)&&me(fe,"sham",!0),Ut($t,ae,fe,at)}}},"./node_modules/core-js/internals/fails.js":function(ge){ge.exports=function(ye){try{return!!ye()}catch(Nt){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/a-function.js");ge.exports=function(oe,me,Ut){if(se(oe),me===void 0)return oe;switch(Ut){case 0:return function(){return oe.call(me)};case 1:return function(et){return oe.call(me,et)};case 2:return function(et,nt){return oe.call(me,et,nt)};case 3:return function(et,nt,ht){return oe.call(me,et,nt,ht)}}return function(){return oe.apply(me,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=function(me){return typeof me=="function"?me:void 0};ge.exports=function(me,Ut){return arguments.length<2?oe(se[me]):se[me]&&se[me][Ut]}},"./node_modules/core-js/internals/global.js":function(ge){var ye=function(Nt){return Nt&&Nt.Math==Math&&Nt};ge.exports=ye(typeof globalThis=="object"&&globalThis)||ye(typeof window=="object"&&window)||ye(typeof self=="object"&&self)||ye(typeof Kt.g=="object"&&Kt.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-object.js"),oe={}.hasOwnProperty;ge.exports=Object.hasOwn||function(Ut,et){return oe.call(se(Ut),et)}},"./node_modules/core-js/internals/hidden-keys.js":function(ge){ge.exports={}},"./node_modules/core-js/internals/html.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/get-built-in.js");ge.exports=se("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/descriptors.js"),oe=Nt("./node_modules/core-js/internals/fails.js"),me=Nt("./node_modules/core-js/internals/document-create-element.js");ge.exports=!se&&!oe(function(){return Object.defineProperty(me("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/fails.js"),oe=Nt("./node_modules/core-js/internals/classof-raw.js"),me="".split;ge.exports=se(function(){return!Object("z").propertyIsEnumerable(0)})?function(Ut){return oe(Ut)=="String"?me.call(Ut,""):Object(Ut)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/is-object.js"),oe=Nt("./node_modules/core-js/internals/object-set-prototype-of.js");ge.exports=function(me,Ut,et){var nt,ht;return oe&&typeof(nt=Ut.constructor)=="function"&&nt!==et&&se(ht=nt.prototype)&&ht!==et.prototype&&oe(me,ht),me}},"./node_modules/core-js/internals/inspect-source.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/shared-store.js"),oe=Function.toString;typeof se.inspectSource!="function"&&(se.inspectSource=function(me){return oe.call(me)}),ge.exports=se.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/native-weak-map.js"),oe=Nt("./node_modules/core-js/internals/global.js"),me=Nt("./node_modules/core-js/internals/is-object.js"),Ut=Nt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Nt("./node_modules/core-js/internals/has.js"),nt=Nt("./node_modules/core-js/internals/shared-store.js"),ht=Nt("./node_modules/core-js/internals/shared-key.js"),at=Nt("./node_modules/core-js/internals/hidden-keys.js"),ft="Object already initialized",vt=oe.WeakMap,Mt,Rt,Gt,$t=function(Ue){return Gt(Ue)?Rt(Ue):Mt(Ue,{})},ae=function(Ue){return function(Pn){var qn;if(!me(Pn)||(qn=Rt(Pn)).type!==Ue)throw TypeError("Incompatible receiver, "+Ue+" required");return qn}};if(se||nt.state){var ve=nt.state||(nt.state=new vt),fe=ve.get,Ye=ve.has,De=ve.set;Mt=function(Ue,Pn){if(Ye.call(ve,Ue))throw new TypeError(ft);return Pn.facade=Ue,De.call(ve,Ue,Pn),Pn},Rt=function(Ue){return fe.call(ve,Ue)||{}},Gt=function(Ue){return Ye.call(ve,Ue)}}else{var hn=ht("state");at[hn]=!0,Mt=function(Ue,Pn){if(et(Ue,hn))throw new TypeError(ft);return Pn.facade=Ue,Ut(Ue,hn,Pn),Pn},Rt=function(Ue){return et(Ue,hn)?Ue[hn]:{}},Gt=function(Ue){return et(Ue,hn)}}ge.exports={set:Mt,get:Rt,has:Gt,enforce:$t,getterFor:ae}},"./node_modules/core-js/internals/is-array.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/classof-raw.js");ge.exports=Array.isArray||function(me){return se(me)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/fails.js"),oe=/#|\.prototype\./,me=function(at,ft){var vt=et[Ut(at)];return vt==ht?!0:vt==nt?!1:typeof ft=="function"?se(ft):!!ft},Ut=me.normalize=function(at){return String(at).replace(oe,".").toLowerCase()},et=me.data={},nt=me.NATIVE="N",ht=me.POLYFILL="P";ge.exports=me},"./node_modules/core-js/internals/is-object.js":function(ge){ge.exports=function(ye){return typeof ye=="object"?ye!==null:typeof ye=="function"}},"./node_modules/core-js/internals/is-pure.js":function(ge){ge.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/get-built-in.js"),oe=Nt("./node_modules/core-js/internals/use-symbol-as-uid.js");ge.exports=oe?function(me){return typeof me=="symbol"}:function(me){var Ut=se("Symbol");return typeof Ut=="function"&&Object(me)instanceof Ut}},"./node_modules/core-js/internals/iterators-core.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/fails.js"),oe=Nt("./node_modules/core-js/internals/object-get-prototype-of.js"),me=Nt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ut=Nt("./node_modules/core-js/internals/has.js"),et=Nt("./node_modules/core-js/internals/well-known-symbol.js"),nt=Nt("./node_modules/core-js/internals/is-pure.js"),ht=et("iterator"),at=!1,ft=function(){return this},vt,Mt,Rt;[].keys&&(Rt=[].keys(),"next"in Rt?(Mt=oe(oe(Rt)),Mt!==Object.prototype&&(vt=Mt)):at=!0);var Gt=vt==null||se(function(){var $t={};return vt[ht].call($t)!==$t});Gt&&(vt={}),(!nt||Gt)&&!Ut(vt,ht)&&me(vt,ht,ft),ge.exports={IteratorPrototype:vt,BUGGY_SAFARI_ITERATORS:at}},"./node_modules/core-js/internals/iterators.js":function(ge){ge.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/engine-v8-version.js"),oe=Nt("./node_modules/core-js/internals/fails.js");ge.exports=!!Object.getOwnPropertySymbols&&!oe(function(){var me=Symbol();return!String(me)||!(Object(me)instanceof Symbol)||!Symbol.sham&&se&&se<41})},"./node_modules/core-js/internals/native-weak-map.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/inspect-source.js"),me=se.WeakMap;ge.exports=typeof me=="function"&&/native code/.test(oe(me))},"./node_modules/core-js/internals/object-assign.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/descriptors.js"),oe=Nt("./node_modules/core-js/internals/fails.js"),me=Nt("./node_modules/core-js/internals/object-keys.js"),Ut=Nt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),et=Nt("./node_modules/core-js/internals/object-property-is-enumerable.js"),nt=Nt("./node_modules/core-js/internals/to-object.js"),ht=Nt("./node_modules/core-js/internals/indexed-object.js"),at=Object.assign,ft=Object.defineProperty;ge.exports=!at||oe(function(){if(se&&at({b:1},at(ft({},"a",{enumerable:!0,get:function(){ft(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var vt={},Mt={},Rt=Symbol(),Gt="abcdefghijklmnopqrst";return vt[Rt]=7,Gt.split("").forEach(function($t){Mt[$t]=$t}),at({},vt)[Rt]!=7||me(at({},Mt)).join("")!=Gt})?function(Mt,Rt){for(var Gt=nt(Mt),$t=arguments.length,ae=1,ve=Ut.f,fe=et.f;$t>ae;)for(var Ye=ht(arguments[ae++]),De=ve?me(Ye).concat(ve(Ye)):me(Ye),hn=De.length,Ue=0,Pn;hn>Ue;)Pn=De[Ue++],(!se||fe.call(Ye,Pn))&&(Gt[Pn]=Ye[Pn]);return Gt}:at},"./node_modules/core-js/internals/object-create.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/an-object.js"),oe=Nt("./node_modules/core-js/internals/object-define-properties.js"),me=Nt("./node_modules/core-js/internals/enum-bug-keys.js"),Ut=Nt("./node_modules/core-js/internals/hidden-keys.js"),et=Nt("./node_modules/core-js/internals/html.js"),nt=Nt("./node_modules/core-js/internals/document-create-element.js"),ht=Nt("./node_modules/core-js/internals/shared-key.js"),at=">",ft="<",vt="prototype",Mt="script",Rt=ht("IE_PROTO"),Gt=function(){},$t=function(De){return ft+Mt+at+De+ft+"/"+Mt+at},ae=function(De){De.write($t("")),De.close();var hn=De.parentWindow.Object;return De=null,hn},ve=function(){var De=nt("iframe"),hn="java"+Mt+":",Ue;if(De.style)return De.style.display="none",et.appendChild(De),De.src=String(hn),Ue=De.contentWindow.document,Ue.open(),Ue.write($t("document.F=Object")),Ue.close(),Ue.F},fe,Ye=function(){try{fe=new ActiveXObject("htmlfile")}catch(hn){}Ye=document.domain&&fe?ae(fe):ve()||ae(fe);for(var De=me.length;De--;)delete Ye[vt][me[De]];return Ye()};Ut[Rt]=!0,ge.exports=Object.create||function(hn,Ue){var Pn;return hn!==null?(Gt[vt]=se(hn),Pn=new Gt,Gt[vt]=null,Pn[Rt]=hn):Pn=Ye(),Ue===void 0?Pn:oe(Pn,Ue)}},"./node_modules/core-js/internals/object-define-properties.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/descriptors.js"),oe=Nt("./node_modules/core-js/internals/object-define-property.js"),me=Nt("./node_modules/core-js/internals/an-object.js"),Ut=Nt("./node_modules/core-js/internals/object-keys.js");ge.exports=se?Object.defineProperties:function(nt,ht){me(nt);for(var at=Ut(ht),ft=at.length,vt=0,Mt;ft>vt;)oe.f(nt,Mt=at[vt++],ht[Mt]);return nt}},"./node_modules/core-js/internals/object-define-property.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/descriptors.js"),oe=Nt("./node_modules/core-js/internals/ie8-dom-define.js"),me=Nt("./node_modules/core-js/internals/an-object.js"),Ut=Nt("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;ye.f=se?et:function(ht,at,ft){if(me(ht),at=Ut(at),me(ft),oe)try{return et(ht,at,ft)}catch(vt){}if("get"in ft||"set"in ft)throw TypeError("Accessors not supported");return"value"in ft&&(ht[at]=ft.value),ht}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/descriptors.js"),oe=Nt("./node_modules/core-js/internals/object-property-is-enumerable.js"),me=Nt("./node_modules/core-js/internals/create-property-descriptor.js"),Ut=Nt("./node_modules/core-js/internals/to-indexed-object.js"),et=Nt("./node_modules/core-js/internals/to-property-key.js"),nt=Nt("./node_modules/core-js/internals/has.js"),ht=Nt("./node_modules/core-js/internals/ie8-dom-define.js"),at=Object.getOwnPropertyDescriptor;ye.f=se?at:function(vt,Mt){if(vt=Ut(vt),Mt=et(Mt),ht)try{return at(vt,Mt)}catch(Rt){}if(nt(vt,Mt))return me(!oe.f.call(vt,Mt),vt[Mt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-indexed-object.js"),oe=Nt("./node_modules/core-js/internals/object-get-own-property-names.js").f,me={}.toString,Ut=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(nt){try{return oe(nt)}catch(ht){return Ut.slice()}};ge.exports.f=function(ht){return Ut&&me.call(ht)=="[object Window]"?et(ht):oe(se(ht))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/object-keys-internal.js"),oe=Nt("./node_modules/core-js/internals/enum-bug-keys.js"),me=oe.concat("length","prototype");ye.f=Object.getOwnPropertyNames||function(et){return se(et,me)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(ge,ye){ye.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/has.js"),oe=Nt("./node_modules/core-js/internals/to-object.js"),me=Nt("./node_modules/core-js/internals/shared-key.js"),Ut=Nt("./node_modules/core-js/internals/correct-prototype-getter.js"),et=me("IE_PROTO"),nt=Object.prototype;ge.exports=Ut?Object.getPrototypeOf:function(ht){return ht=oe(ht),se(ht,et)?ht[et]:typeof ht.constructor=="function"&&ht instanceof ht.constructor?ht.constructor.prototype:ht instanceof Object?nt:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/has.js"),oe=Nt("./node_modules/core-js/internals/to-indexed-object.js"),me=Nt("./node_modules/core-js/internals/array-includes.js").indexOf,Ut=Nt("./node_modules/core-js/internals/hidden-keys.js");ge.exports=function(et,nt){var ht=oe(et),at=0,ft=[],vt;for(vt in ht)!se(Ut,vt)&&se(ht,vt)&&ft.push(vt);for(;nt.length>at;)se(ht,vt=nt[at++])&&(~me(ft,vt)||ft.push(vt));return ft}},"./node_modules/core-js/internals/object-keys.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/object-keys-internal.js"),oe=Nt("./node_modules/core-js/internals/enum-bug-keys.js");ge.exports=Object.keys||function(Ut){return se(Ut,oe)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(ge,ye){"use strict";var Nt={}.propertyIsEnumerable,se=Object.getOwnPropertyDescriptor,oe=se&&!Nt.call({1:2},1);ye.f=oe?function(Ut){var et=se(this,Ut);return!!et&&et.enumerable}:Nt},"./node_modules/core-js/internals/object-set-prototype-of.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/an-object.js"),oe=Nt("./node_modules/core-js/internals/a-possible-prototype.js");ge.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var me=!1,Ut={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(Ut,[]),me=Ut instanceof Array}catch(nt){}return function(ht,at){return se(ht),oe(at),me?et.call(ht,at):ht.__proto__=at,ht}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/to-string-tag-support.js"),oe=Nt("./node_modules/core-js/internals/classof.js");ge.exports=se?{}.toString:function(){return"[object "+oe(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/is-object.js");ge.exports=function(oe,me){var Ut,et;if(me==="string"&&typeof(Ut=oe.toString)=="function"&&!se(et=Ut.call(oe))||typeof(Ut=oe.valueOf)=="function"&&!se(et=Ut.call(oe))||me!=="string"&&typeof(Ut=oe.toString)=="function"&&!se(et=Ut.call(oe)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/get-built-in.js"),oe=Nt("./node_modules/core-js/internals/object-get-own-property-names.js"),me=Nt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ut=Nt("./node_modules/core-js/internals/an-object.js");ge.exports=se("Reflect","ownKeys")||function(nt){var ht=oe.f(Ut(nt)),at=me.f;return at?ht.concat(at(nt)):ht}},"./node_modules/core-js/internals/path.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js");ge.exports=se},"./node_modules/core-js/internals/redefine.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/create-non-enumerable-property.js"),me=Nt("./node_modules/core-js/internals/has.js"),Ut=Nt("./node_modules/core-js/internals/set-global.js"),et=Nt("./node_modules/core-js/internals/inspect-source.js"),nt=Nt("./node_modules/core-js/internals/internal-state.js"),ht=nt.get,at=nt.enforce,ft=String(String).split("String");(ge.exports=function(vt,Mt,Rt,Gt){var $t=Gt?!!Gt.unsafe:!1,ae=Gt?!!Gt.enumerable:!1,ve=Gt?!!Gt.noTargetGet:!1,fe;if(typeof Rt=="function"&&(typeof Mt=="string"&&!me(Rt,"name")&&oe(Rt,"name",Mt),fe=at(Rt),fe.source||(fe.source=ft.join(typeof Mt=="string"?Mt:""))),vt===se){ae?vt[Mt]=Rt:Ut(Mt,Rt);return}else $t?!ve&&vt[Mt]&&(ae=!0):delete vt[Mt];ae?vt[Mt]=Rt:oe(vt,Mt,Rt)})(Function.prototype,"toString",function(){return typeof this=="function"&&ht(this).source||et(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/an-object.js");ge.exports=function(){var oe=se(this),me="";return oe.global&&(me+="g"),oe.ignoreCase&&(me+="i"),oe.multiline&&(me+="m"),oe.dotAll&&(me+="s"),oe.unicode&&(me+="u"),oe.sticky&&(me+="y"),me}},"./node_modules/core-js/internals/require-object-coercible.js":function(ge){ge.exports=function(ye){if(ye==null)throw TypeError("Can't call method on "+ye);return ye}},"./node_modules/core-js/internals/set-global.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js");ge.exports=function(oe,me){try{Object.defineProperty(se,oe,{value:me,configurable:!0,writable:!0})}catch(Ut){se[oe]=me}return me}},"./node_modules/core-js/internals/set-to-string-tag.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/object-define-property.js").f,oe=Nt("./node_modules/core-js/internals/has.js"),me=Nt("./node_modules/core-js/internals/well-known-symbol.js"),Ut=me("toStringTag");ge.exports=function(et,nt,ht){et&&!oe(et=ht?et:et.prototype,Ut)&&se(et,Ut,{configurable:!0,value:nt})}},"./node_modules/core-js/internals/shared-key.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/shared.js"),oe=Nt("./node_modules/core-js/internals/uid.js"),me=se("keys");ge.exports=function(Ut){return me[Ut]||(me[Ut]=oe(Ut))}},"./node_modules/core-js/internals/shared-store.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/set-global.js"),me="__core-js_shared__",Ut=se[me]||oe(me,{});ge.exports=Ut},"./node_modules/core-js/internals/shared.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/is-pure.js"),oe=Nt("./node_modules/core-js/internals/shared-store.js");(ge.exports=function(me,Ut){return oe[me]||(oe[me]=Ut!==void 0?Ut:{})})("versions",[]).push({version:"3.16.0",mode:se?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/fails.js");ge.exports=function(oe){return se(function(){var me=""[oe]('"');return me!==me.toLowerCase()||me.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-integer.js"),oe=Nt("./node_modules/core-js/internals/to-string.js"),me=Nt("./node_modules/core-js/internals/require-object-coercible.js"),Ut=function(et){return function(nt,ht){var at=oe(me(nt)),ft=se(ht),vt=at.length,Mt,Rt;return ft<0||ft>=vt?et?"":void 0:(Mt=at.charCodeAt(ft),Mt<55296||Mt>56319||ft+1===vt||(Rt=at.charCodeAt(ft+1))<56320||Rt>57343?et?at.charAt(ft):Mt:et?at.slice(ft,ft+2):(Mt-55296<<10)+(Rt-56320)+65536)}};ge.exports={codeAt:Ut(!1),charAt:Ut(!0)}},"./node_modules/core-js/internals/string-trim.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/require-object-coercible.js"),oe=Nt("./node_modules/core-js/internals/to-string.js"),me=Nt("./node_modules/core-js/internals/whitespaces.js"),Ut="["+me+"]",et=RegExp("^"+Ut+Ut+"*"),nt=RegExp(Ut+Ut+"*$"),ht=function(at){return function(ft){var vt=oe(se(ft));return at&1&&(vt=vt.replace(et,"")),at&2&&(vt=vt.replace(nt,"")),vt}};ge.exports={start:ht(1),end:ht(2),trim:ht(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-integer.js"),oe=Math.max,me=Math.min;ge.exports=function(Ut,et){var nt=se(Ut);return nt<0?oe(nt+et,0):me(nt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/indexed-object.js"),oe=Nt("./node_modules/core-js/internals/require-object-coercible.js");ge.exports=function(me){return se(oe(me))}},"./node_modules/core-js/internals/to-integer.js":function(ge){var ye=Math.ceil,Nt=Math.floor;ge.exports=function(se){return isNaN(se=+se)?0:(se>0?Nt:ye)(se)}},"./node_modules/core-js/internals/to-length.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-integer.js"),oe=Math.min;ge.exports=function(me){return me>0?oe(se(me),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/require-object-coercible.js");ge.exports=function(oe){return Object(se(oe))}},"./node_modules/core-js/internals/to-primitive.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/is-object.js"),oe=Nt("./node_modules/core-js/internals/is-symbol.js"),me=Nt("./node_modules/core-js/internals/ordinary-to-primitive.js"),Ut=Nt("./node_modules/core-js/internals/well-known-symbol.js"),et=Ut("toPrimitive");ge.exports=function(nt,ht){if(!se(nt)||oe(nt))return nt;var at=nt[et],ft;if(at!==void 0){if(ht===void 0&&(ht="default"),ft=at.call(nt,ht),!se(ft)||oe(ft))return ft;throw TypeError("Can't convert object to primitive value")}return ht===void 0&&(ht="number"),me(nt,ht)}},"./node_modules/core-js/internals/to-property-key.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-primitive.js"),oe=Nt("./node_modules/core-js/internals/is-symbol.js");ge.exports=function(me){var Ut=se(me,"string");return oe(Ut)?Ut:String(Ut)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/well-known-symbol.js"),oe=se("toStringTag"),me={};me[oe]="z",ge.exports=String(me)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/is-symbol.js");ge.exports=function(oe){if(se(oe))throw TypeError("Cannot convert a Symbol value to a string");return String(oe)}},"./node_modules/core-js/internals/uid.js":function(ge){var ye=0,Nt=Math.random();ge.exports=function(se){return"Symbol("+String(se===void 0?"":se)+")_"+(++ye+Nt).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/native-symbol.js");ge.exports=se&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/well-known-symbol.js");ye.f=se},"./node_modules/core-js/internals/well-known-symbol.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/shared.js"),me=Nt("./node_modules/core-js/internals/has.js"),Ut=Nt("./node_modules/core-js/internals/uid.js"),et=Nt("./node_modules/core-js/internals/native-symbol.js"),nt=Nt("./node_modules/core-js/internals/use-symbol-as-uid.js"),ht=oe("wks"),at=se.Symbol,ft=nt?at:at&&at.withoutSetter||Ut;ge.exports=function(vt){return(!me(ht,vt)||!(et||typeof ht[vt]=="string"))&&(et&&me(at,vt)?ht[vt]=at[vt]:ht[vt]=ft("Symbol."+vt)),ht[vt]}},"./node_modules/core-js/internals/whitespaces.js":function(ge){ge.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/fails.js"),me=Nt("./node_modules/core-js/internals/is-array.js"),Ut=Nt("./node_modules/core-js/internals/is-object.js"),et=Nt("./node_modules/core-js/internals/to-object.js"),nt=Nt("./node_modules/core-js/internals/to-length.js"),ht=Nt("./node_modules/core-js/internals/create-property.js"),at=Nt("./node_modules/core-js/internals/array-species-create.js"),ft=Nt("./node_modules/core-js/internals/array-method-has-species-support.js"),vt=Nt("./node_modules/core-js/internals/well-known-symbol.js"),Mt=Nt("./node_modules/core-js/internals/engine-v8-version.js"),Rt=vt("isConcatSpreadable"),Gt=9007199254740991,$t="Maximum allowed index exceeded",ae=Mt>=51||!oe(function(){var De=[];return De[Rt]=!1,De.concat()[0]!==De}),ve=ft("concat"),fe=function(De){if(!Ut(De))return!1;var hn=De[Rt];return hn!==void 0?!!hn:me(De)},Ye=!ae||!ve;se({target:"Array",proto:!0,forced:Ye},{concat:function(hn){var Ue=et(this),Pn=at(Ue,0),qn=0,un,fn,mn,pe,Xt;for(un=-1,mn=arguments.length;un<mn;un++)if(Xt=un===-1?Ue:arguments[un],fe(Xt)){if(pe=nt(Xt.length),qn+pe>Gt)throw TypeError($t);for(fn=0;fn<pe;fn++,qn++)fn in Xt&&ht(Pn,qn,Xt[fn])}else{if(qn>=Gt)throw TypeError($t);ht(Pn,qn++,Xt)}return Pn.length=qn,Pn}})},"./node_modules/core-js/modules/es.array.iterator.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/to-indexed-object.js"),oe=Nt("./node_modules/core-js/internals/add-to-unscopables.js"),me=Nt("./node_modules/core-js/internals/iterators.js"),Ut=Nt("./node_modules/core-js/internals/internal-state.js"),et=Nt("./node_modules/core-js/internals/define-iterator.js"),nt="Array Iterator",ht=Ut.set,at=Ut.getterFor(nt);ge.exports=et(Array,"Array",function(ft,vt){ht(this,{type:nt,target:se(ft),index:0,kind:vt})},function(){var ft=at(this),vt=ft.target,Mt=ft.kind,Rt=ft.index++;return!vt||Rt>=vt.length?(ft.target=void 0,{value:void 0,done:!0}):Mt=="keys"?{value:Rt,done:!1}:Mt=="values"?{value:vt[Rt],done:!1}:{value:[Rt,vt[Rt]],done:!1}},"values"),me.Arguments=me.Array,oe("keys"),oe("values"),oe("entries")},"./node_modules/core-js/modules/es.array.join.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/indexed-object.js"),me=Nt("./node_modules/core-js/internals/to-indexed-object.js"),Ut=Nt("./node_modules/core-js/internals/array-method-is-strict.js"),et=[].join,nt=oe!=Object,ht=Ut("join",",");se({target:"Array",proto:!0,forced:nt||!ht},{join:function(ft){return et.call(me(this),ft===void 0?",":ft)}})},"./node_modules/core-js/modules/es.array.map.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/array-iteration.js").map,me=Nt("./node_modules/core-js/internals/array-method-has-species-support.js"),Ut=me("map");se({target:"Array",proto:!0,forced:!Ut},{map:function(nt){return oe(this,nt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/is-object.js"),me=Nt("./node_modules/core-js/internals/is-array.js"),Ut=Nt("./node_modules/core-js/internals/to-absolute-index.js"),et=Nt("./node_modules/core-js/internals/to-length.js"),nt=Nt("./node_modules/core-js/internals/to-indexed-object.js"),ht=Nt("./node_modules/core-js/internals/create-property.js"),at=Nt("./node_modules/core-js/internals/well-known-symbol.js"),ft=Nt("./node_modules/core-js/internals/array-method-has-species-support.js"),vt=ft("slice"),Mt=at("species"),Rt=[].slice,Gt=Math.max;se({target:"Array",proto:!0,forced:!vt},{slice:function(ae,ve){var fe=nt(this),Ye=et(fe.length),De=Ut(ae,Ye),hn=Ut(ve===void 0?Ye:ve,Ye),Ue,Pn,qn;if(me(fe)&&(Ue=fe.constructor,typeof Ue=="function"&&(Ue===Array||me(Ue.prototype))?Ue=void 0:oe(Ue)&&(Ue=Ue[Mt],Ue===null&&(Ue=void 0)),Ue===Array||Ue===void 0))return Rt.call(fe,De,hn);for(Pn=new(Ue===void 0?Array:Ue)(Gt(hn-De,0)),qn=0;De<hn;De++,qn++)De in fe&&ht(Pn,qn,fe[De]);return Pn.length=qn,Pn}})},"./node_modules/core-js/modules/es.function.name.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/descriptors.js"),oe=Nt("./node_modules/core-js/internals/object-define-property.js").f,me=Function.prototype,Ut=me.toString,et=/^\s*function ([^ (]*)/,nt="name";se&&!(nt in me)&&oe(me,nt,{configurable:!0,get:function(){try{return Ut.call(this).match(et)[1]}catch(ht){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/descriptors.js"),oe=Nt("./node_modules/core-js/internals/global.js"),me=Nt("./node_modules/core-js/internals/is-forced.js"),Ut=Nt("./node_modules/core-js/internals/redefine.js"),et=Nt("./node_modules/core-js/internals/has.js"),nt=Nt("./node_modules/core-js/internals/classof-raw.js"),ht=Nt("./node_modules/core-js/internals/inherit-if-required.js"),at=Nt("./node_modules/core-js/internals/is-symbol.js"),ft=Nt("./node_modules/core-js/internals/to-primitive.js"),vt=Nt("./node_modules/core-js/internals/fails.js"),Mt=Nt("./node_modules/core-js/internals/object-create.js"),Rt=Nt("./node_modules/core-js/internals/object-get-own-property-names.js").f,Gt=Nt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,$t=Nt("./node_modules/core-js/internals/object-define-property.js").f,ae=Nt("./node_modules/core-js/internals/string-trim.js").trim,ve="Number",fe=oe[ve],Ye=fe.prototype,De=nt(Mt(Ye))==ve,hn=function(fn){if(at(fn))throw TypeError("Cannot convert a Symbol value to a number");var mn=ft(fn,"number"),pe,Xt,Ve,Vn,si,An,Nn,Yn;if(typeof mn=="string"&&mn.length>2){if(mn=ae(mn),pe=mn.charCodeAt(0),pe===43||pe===45){if(Xt=mn.charCodeAt(2),Xt===88||Xt===120)return NaN}else if(pe===48){switch(mn.charCodeAt(1)){case 66:case 98:Ve=2,Vn=49;break;case 79:case 111:Ve=8,Vn=55;break;default:return+mn}for(si=mn.slice(2),An=si.length,Nn=0;Nn<An;Nn++)if(Yn=si.charCodeAt(Nn),Yn<48||Yn>Vn)return NaN;return parseInt(si,Ve)}}return+mn};if(me(ve,!fe(" 0o1")||!fe("0b1")||fe("+0x1"))){for(var Ue=function(mn){var pe=arguments.length<1?0:mn,Xt=this;return Xt instanceof Ue&&(De?vt(function(){Ye.valueOf.call(Xt)}):nt(Xt)!=ve)?ht(new fe(hn(pe)),Xt,Ue):hn(pe)},Pn=se?Rt(fe):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),qn=0,un;Pn.length>qn;qn++)et(fe,un=Pn[qn])&&!et(Ue,un)&&$t(Ue,un,Gt(fe,un));Ue.prototype=Ye,Ye.constructor=Ue,Ut(oe,ve,Ue)}},"./node_modules/core-js/modules/es.object.assign.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/object-assign.js");se({target:"Object",stat:!0,forced:Object.assign!==oe},{assign:oe})},"./node_modules/core-js/modules/es.object.keys.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/to-object.js"),me=Nt("./node_modules/core-js/internals/object-keys.js"),Ut=Nt("./node_modules/core-js/internals/fails.js"),et=Ut(function(){me(1)});se({target:"Object",stat:!0,forced:et},{keys:function(ht){return me(oe(ht))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/to-string-tag-support.js"),oe=Nt("./node_modules/core-js/internals/redefine.js"),me=Nt("./node_modules/core-js/internals/object-to-string.js");se||oe(Object.prototype,"toString",me,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/redefine.js"),oe=Nt("./node_modules/core-js/internals/an-object.js"),me=Nt("./node_modules/core-js/internals/to-string.js"),Ut=Nt("./node_modules/core-js/internals/fails.js"),et=Nt("./node_modules/core-js/internals/regexp-flags.js"),nt="toString",ht=RegExp.prototype,at=ht[nt],ft=Ut(function(){return at.call({source:"a",flags:"b"})!="/a/b"}),vt=at.name!=nt;(ft||vt)&&se(RegExp.prototype,nt,function(){var Rt=oe(this),Gt=me(Rt.source),$t=Rt.flags,ae=me($t===void 0&&Rt instanceof RegExp&&!("flags"in ht)?et.call(Rt):$t);return"/"+Gt+"/"+ae},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/string-multibyte.js").charAt,oe=Nt("./node_modules/core-js/internals/to-string.js"),me=Nt("./node_modules/core-js/internals/internal-state.js"),Ut=Nt("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",nt=me.set,ht=me.getterFor(et);Ut(String,"String",function(at){nt(this,{type:et,string:oe(at),index:0})},function(){var ft=ht(this),vt=ft.string,Mt=ft.index,Rt;return Mt>=vt.length?{value:void 0,done:!0}:(Rt=se(vt,Mt),ft.index+=Rt.length,{value:Rt,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/create-html.js"),me=Nt("./node_modules/core-js/internals/string-html-forced.js");se({target:"String",proto:!0,forced:me("link")},{link:function(et){return oe(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/descriptors.js"),me=Nt("./node_modules/core-js/internals/global.js"),Ut=Nt("./node_modules/core-js/internals/has.js"),et=Nt("./node_modules/core-js/internals/is-object.js"),nt=Nt("./node_modules/core-js/internals/object-define-property.js").f,ht=Nt("./node_modules/core-js/internals/copy-constructor-properties.js"),at=me.Symbol;if(oe&&typeof at=="function"&&(!("description"in at.prototype)||at().description!==void 0)){var ft={},vt=function(){var ve=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),fe=this instanceof vt?new at(ve):ve===void 0?at():at(ve);return ve===""&&(ft[fe]=!0),fe};ht(vt,at);var Mt=vt.prototype=at.prototype;Mt.constructor=vt;var Rt=Mt.toString,Gt=String(at("test"))=="Symbol(test)",$t=/^Symbol\((.*)\)[^)]+$/;nt(Mt,"description",{configurable:!0,get:function(){var ve=et(this)?this.valueOf():this,fe=Rt.call(ve);if(Ut(ft,ve))return"";var Ye=Gt?fe.slice(7,-1):fe.replace($t,"$1");return Ye===""?void 0:Ye}}),se({global:!0,forced:!0},{Symbol:vt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/define-well-known-symbol.js");se("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(ge,ye,Nt){"use strict";var se=Nt("./node_modules/core-js/internals/export.js"),oe=Nt("./node_modules/core-js/internals/global.js"),me=Nt("./node_modules/core-js/internals/get-built-in.js"),Ut=Nt("./node_modules/core-js/internals/is-pure.js"),et=Nt("./node_modules/core-js/internals/descriptors.js"),nt=Nt("./node_modules/core-js/internals/native-symbol.js"),ht=Nt("./node_modules/core-js/internals/fails.js"),at=Nt("./node_modules/core-js/internals/has.js"),ft=Nt("./node_modules/core-js/internals/is-array.js"),vt=Nt("./node_modules/core-js/internals/is-object.js"),Mt=Nt("./node_modules/core-js/internals/is-symbol.js"),Rt=Nt("./node_modules/core-js/internals/an-object.js"),Gt=Nt("./node_modules/core-js/internals/to-object.js"),$t=Nt("./node_modules/core-js/internals/to-indexed-object.js"),ae=Nt("./node_modules/core-js/internals/to-property-key.js"),ve=Nt("./node_modules/core-js/internals/to-string.js"),fe=Nt("./node_modules/core-js/internals/create-property-descriptor.js"),Ye=Nt("./node_modules/core-js/internals/object-create.js"),De=Nt("./node_modules/core-js/internals/object-keys.js"),hn=Nt("./node_modules/core-js/internals/object-get-own-property-names.js"),Ue=Nt("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Pn=Nt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),qn=Nt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),un=Nt("./node_modules/core-js/internals/object-define-property.js"),fn=Nt("./node_modules/core-js/internals/object-property-is-enumerable.js"),mn=Nt("./node_modules/core-js/internals/create-non-enumerable-property.js"),pe=Nt("./node_modules/core-js/internals/redefine.js"),Xt=Nt("./node_modules/core-js/internals/shared.js"),Ve=Nt("./node_modules/core-js/internals/shared-key.js"),Vn=Nt("./node_modules/core-js/internals/hidden-keys.js"),si=Nt("./node_modules/core-js/internals/uid.js"),An=Nt("./node_modules/core-js/internals/well-known-symbol.js"),Nn=Nt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Yn=Nt("./node_modules/core-js/internals/define-well-known-symbol.js"),Ci=Nt("./node_modules/core-js/internals/set-to-string-tag.js"),Mi=Nt("./node_modules/core-js/internals/internal-state.js"),Ri=Nt("./node_modules/core-js/internals/array-iteration.js").forEach,Te=Ve("hidden"),ci="Symbol",ki="prototype",Dn=An("toPrimitive"),yi=Mi.set,En=Mi.getterFor(ci),gn=Object[ki],Ne=oe.Symbol,Xe=me("JSON","stringify"),wn=qn.f,sn=un.f,Wn=Ue.f,Hn=fn.f,Jt=Xt("symbols"),It=Xt("op-symbols"),bt=Xt("string-to-symbol-registry"),Vt=Xt("symbol-to-string-registry"),le=Xt("wks"),Ot=oe.QObject,be=!Ot||!Ot[ki]||!Ot[ki].findChild,pn=et&&ht(function(){return Ye(sn({},"a",{get:function(){return sn(this,"a",{value:7}).a}})).a!=7})?function(Kr,gr,Wr){var Vr=wn(gn,gr);Vr&&delete gn[gr],sn(Kr,gr,Wr),Vr&&Kr!==gn&&sn(gn,gr,Vr)}:sn,Zn=function(Kr,gr){var Wr=Jt[Kr]=Ye(Ne[ki]);return yi(Wr,{type:ci,tag:Kr,description:gr}),et||(Wr.description=gr),Wr},ii=function(gr,Wr,Vr){gr===gn&&ii(It,Wr,Vr),Rt(gr);var No=ae(Wr);return Rt(Vr),at(Jt,No)?(Vr.enumerable?(at(gr,Te)&&gr[Te][No]&&(gr[Te][No]=!1),Vr=Ye(Vr,{enumerable:fe(0,!1)})):(at(gr,Te)||sn(gr,Te,fe(1,{})),gr[Te][No]=!0),pn(gr,No,Vr)):sn(gr,No,Vr)},wi=function(gr,Wr){Rt(gr);var Vr=$t(Wr),No=De(Vr).concat(To(Vr));return Ri(No,function(us){(!et||_r.call(Vr,us))&&ii(gr,us,Vr[us])}),gr},Nr=function(gr,Wr){return Wr===void 0?Ye(gr):wi(Ye(gr),Wr)},_r=function(gr){var Wr=ae(gr),Vr=Hn.call(this,Wr);return this===gn&&at(Jt,Wr)&&!at(It,Wr)?!1:Vr||!at(this,Wr)||!at(Jt,Wr)||at(this,Te)&&this[Te][Wr]?Vr:!0},Tr=function(gr,Wr){var Vr=$t(gr),No=ae(Wr);if(!(Vr===gn&&at(Jt,No)&&!at(It,No))){var us=wn(Vr,No);return us&&at(Jt,No)&&!(at(Vr,Te)&&Vr[Te][No])&&(us.enumerable=!0),us}},po=function(gr){var Wr=Wn($t(gr)),Vr=[];return Ri(Wr,function(No){!at(Jt,No)&&!at(Vn,No)&&Vr.push(No)}),Vr},To=function(gr){var Wr=gr===gn,Vr=Wn(Wr?It:$t(gr)),No=[];return Ri(Vr,function(us){at(Jt,us)&&(!Wr||at(gn,us))&&No.push(Jt[us])}),No};if(nt||(Ne=function(){if(this instanceof Ne)throw TypeError("Symbol is not a constructor");var gr=!arguments.length||arguments[0]===void 0?void 0:ve(arguments[0]),Wr=si(gr),Vr=function(No){this===gn&&Vr.call(It,No),at(this,Te)&&at(this[Te],Wr)&&(this[Te][Wr]=!1),pn(this,Wr,fe(1,No))};return et&&be&&pn(gn,Wr,{configurable:!0,set:Vr}),Zn(Wr,gr)},pe(Ne[ki],"toString",function(){return En(this).tag}),pe(Ne,"withoutSetter",function(Kr){return Zn(si(Kr),Kr)}),fn.f=_r,un.f=ii,qn.f=Tr,hn.f=Ue.f=po,Pn.f=To,Nn.f=function(Kr){return Zn(An(Kr),Kr)},et&&(sn(Ne[ki],"description",{configurable:!0,get:function(){return En(this).description}}),Ut||pe(gn,"propertyIsEnumerable",_r,{unsafe:!0}))),se({global:!0,wrap:!0,forced:!nt,sham:!nt},{Symbol:Ne}),Ri(De(le),function(Kr){Yn(Kr)}),se({target:ci,stat:!0,forced:!nt},{for:function(Kr){var gr=ve(Kr);if(at(bt,gr))return bt[gr];var Wr=Ne(gr);return bt[gr]=Wr,Vt[Wr]=gr,Wr},keyFor:function(gr){if(!Mt(gr))throw TypeError(gr+" is not a symbol");if(at(Vt,gr))return Vt[gr]},useSetter:function(){be=!0},useSimple:function(){be=!1}}),se({target:"Object",stat:!0,forced:!nt,sham:!et},{create:Nr,defineProperty:ii,defineProperties:wi,getOwnPropertyDescriptor:Tr}),se({target:"Object",stat:!0,forced:!nt},{getOwnPropertyNames:po,getOwnPropertySymbols:To}),se({target:"Object",stat:!0,forced:ht(function(){Pn.f(1)})},{getOwnPropertySymbols:function(gr){return Pn.f(Gt(gr))}}),Xe){var Co=!nt||ht(function(){var Kr=Ne();return Xe([Kr])!="[null]"||Xe({a:Kr})!="{}"||Xe(Object(Kr))!="{}"});se({target:"JSON",stat:!0,forced:Co},{stringify:function(gr,Wr,Vr){for(var No=[gr],us=1,Os;arguments.length>us;)No.push(arguments[us++]);if(Os=Wr,!(!vt(Wr)&&gr===void 0||Mt(gr)))return ft(Wr)||(Wr=function(Ms,Fo){if(typeof Os=="function"&&(Fo=Os.call(this,Ms,Fo)),!Mt(Fo))return Fo}),No[1]=Wr,Xe.apply(null,No)}})}Ne[ki][Dn]||mn(Ne[ki],Dn,Ne[ki].valueOf),Ci(Ne,ci),Vn[Te]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/dom-iterables.js"),me=Nt("./node_modules/core-js/internals/array-for-each.js"),Ut=Nt("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var et in oe){var nt=se[et],ht=nt&&nt.prototype;if(ht&&ht.forEach!==me)try{Ut(ht,"forEach",me)}catch(at){ht.forEach=me}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(ge,ye,Nt){var se=Nt("./node_modules/core-js/internals/global.js"),oe=Nt("./node_modules/core-js/internals/dom-iterables.js"),me=Nt("./node_modules/core-js/modules/es.array.iterator.js"),Ut=Nt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Nt("./node_modules/core-js/internals/well-known-symbol.js"),nt=et("iterator"),ht=et("toStringTag"),at=me.values;for(var ft in oe){var vt=se[ft],Mt=vt&&vt.prototype;if(Mt){if(Mt[nt]!==at)try{Ut(Mt,nt,at)}catch(Gt){Mt[nt]=at}if(Mt[ht]||Ut(Mt,ht,ft),oe[ft]){for(var Rt in me)if(Mt[Rt]!==me[Rt])try{Ut(Mt,Rt,me[Rt])}catch(Gt){Mt[Rt]=me[Rt]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(ge){(function(ye,Nt){ge.exports=Nt()})(this,function(){"use strict";function ye(Ot){var be=typeof Ot;return Ot!==null&&(be==="object"||be==="function")}function Nt(Ot){return typeof Ot=="function"}var se=void 0;Array.isArray?se=Array.isArray:se=function(Ot){return Object.prototype.toString.call(Ot)==="[object Array]"};var oe=se,me=0,Ut=void 0,et=void 0,nt=function(be,pn){De[me]=be,De[me+1]=pn,me+=2,me===2&&(et?et(hn):Pn())};function ht(Ot){et=Ot}function at(Ot){nt=Ot}var ft=typeof window!="undefined"?window:void 0,vt=ft||{},Mt=vt.MutationObserver||vt.WebKitMutationObserver,Rt=typeof self=="undefined"&&typeof zt!="undefined"&&{}.toString.call(zt)==="[object process]",Gt=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function $t(){return function(){return zt.nextTick(hn)}}function ae(){return typeof Ut!="undefined"?function(){Ut(hn)}:Ye()}function ve(){var Ot=0,be=new Mt(hn),pn=document.createTextNode("");return be.observe(pn,{characterData:!0}),function(){pn.data=Ot=++Ot%2}}function fe(){var Ot=new MessageChannel;return Ot.port1.onmessage=hn,function(){return Ot.port2.postMessage(0)}}function Ye(){var Ot=setTimeout;return function(){return Ot(hn,1)}}var De=new Array(1e3);function hn(){for(var Ot=0;Ot<me;Ot+=2){var be=De[Ot],pn=De[Ot+1];be(pn),De[Ot]=void 0,De[Ot+1]=void 0}me=0}function Ue(){try{var Ot=Function("return this")().require("vertx");return Ut=Ot.runOnLoop||Ot.runOnContext,ae()}catch(be){return Ye()}}var Pn=void 0;Rt?Pn=$t():Mt?Pn=ve():Gt?Pn=fe():ft===void 0?Pn=Ue():Pn=Ye();function qn(Ot,be){var pn=this,Zn=new this.constructor(mn);Zn[fn]===void 0&&Xe(Zn);var ii=pn._state;if(ii){var wi=arguments[ii-1];nt(function(){return yi(ii,Zn,wi,pn._result)})}else ki(pn,Zn,Ot,be);return Zn}function un(Ot){var be=this;if(Ot&&typeof Ot=="object"&&Ot.constructor===be)return Ot;var pn=new be(mn);return Mi(pn,Ot),pn}var fn=Math.random().toString(36).substring(2);function mn(){}var pe=void 0,Xt=1,Ve=2;function Vn(){return new TypeError("You cannot resolve a promise with itself")}function si(){return new TypeError("A promises callback cannot return that same promise.")}function An(Ot,be,pn,Zn){try{Ot.call(be,pn,Zn)}catch(ii){return ii}}function Nn(Ot,be,pn){nt(function(Zn){var ii=!1,wi=An(pn,be,function(Nr){ii||(ii=!0,be!==Nr?Mi(Zn,Nr):Te(Zn,Nr))},function(Nr){ii||(ii=!0,ci(Zn,Nr))},"Settle: "+(Zn._label||" unknown promise"));!ii&&wi&&(ii=!0,ci(Zn,wi))},Ot)}function Yn(Ot,be){be._state===Xt?Te(Ot,be._result):be._state===Ve?ci(Ot,be._result):ki(be,void 0,function(pn){return Mi(Ot,pn)},function(pn){return ci(Ot,pn)})}function Ci(Ot,be,pn){be.constructor===Ot.constructor&&pn===qn&&be.constructor.resolve===un?Yn(Ot,be):pn===void 0?Te(Ot,be):Nt(pn)?Nn(Ot,be,pn):Te(Ot,be)}function Mi(Ot,be){if(Ot===be)ci(Ot,Vn());else if(ye(be)){var pn=void 0;try{pn=be.then}catch(Zn){ci(Ot,Zn);return}Ci(Ot,be,pn)}else Te(Ot,be)}function Ri(Ot){Ot._onerror&&Ot._onerror(Ot._result),Dn(Ot)}function Te(Ot,be){Ot._state===pe&&(Ot._result=be,Ot._state=Xt,Ot._subscribers.length!==0&&nt(Dn,Ot))}function ci(Ot,be){Ot._state===pe&&(Ot._state=Ve,Ot._result=be,nt(Ri,Ot))}function ki(Ot,be,pn,Zn){var ii=Ot._subscribers,wi=ii.length;Ot._onerror=null,ii[wi]=be,ii[wi+Xt]=pn,ii[wi+Ve]=Zn,wi===0&&Ot._state&&nt(Dn,Ot)}function Dn(Ot){var be=Ot._subscribers,pn=Ot._state;if(be.length!==0){for(var Zn=void 0,ii=void 0,wi=Ot._result,Nr=0;Nr<be.length;Nr+=3)Zn=be[Nr],ii=be[Nr+pn],Zn?yi(pn,Zn,ii,wi):ii(wi);Ot._subscribers.length=0}}function yi(Ot,be,pn,Zn){var ii=Nt(pn),wi=void 0,Nr=void 0,_r=!0;if(ii){try{wi=pn(Zn)}catch(Tr){_r=!1,Nr=Tr}if(be===wi){ci(be,si());return}}else wi=Zn;be._state!==pe||(ii&&_r?Mi(be,wi):_r===!1?ci(be,Nr):Ot===Xt?Te(be,wi):Ot===Ve&&ci(be,wi))}function En(Ot,be){try{be(function(Zn){Mi(Ot,Zn)},function(Zn){ci(Ot,Zn)})}catch(pn){ci(Ot,pn)}}var gn=0;function Ne(){return gn++}function Xe(Ot){Ot[fn]=gn++,Ot._state=void 0,Ot._result=void 0,Ot._subscribers=[]}function wn(){return new Error("Array Methods must be provided an Array")}var sn=function(){function Ot(be,pn){this._instanceConstructor=be,this.promise=new be(mn),this.promise[fn]||Xe(this.promise),oe(pn)?(this.length=pn.length,this._remaining=pn.length,this._result=new Array(this.length),this.length===0?Te(this.promise,this._result):(this.length=this.length||0,this._enumerate(pn),this._remaining===0&&Te(this.promise,this._result))):ci(this.promise,wn())}return Ot.prototype._enumerate=function(pn){for(var Zn=0;this._state===pe&&Zn<pn.length;Zn++)this._eachEntry(pn[Zn],Zn)},Ot.prototype._eachEntry=function(pn,Zn){var ii=this._instanceConstructor,wi=ii.resolve;if(wi===un){var Nr=void 0,_r=void 0,Tr=!1;try{Nr=pn.then}catch(To){Tr=!0,_r=To}if(Nr===qn&&pn._state!==pe)this._settledAt(pn._state,Zn,pn._result);else if(typeof Nr!="function")this._remaining--,this._result[Zn]=pn;else if(ii===Vt){var po=new ii(mn);Tr?ci(po,_r):Ci(po,pn,Nr),this._willSettleAt(po,Zn)}else this._willSettleAt(new ii(function(To){return To(pn)}),Zn)}else this._willSettleAt(wi(pn),Zn)},Ot.prototype._settledAt=function(pn,Zn,ii){var wi=this.promise;wi._state===pe&&(this._remaining--,pn===Ve?ci(wi,ii):this._result[Zn]=ii),this._remaining===0&&Te(wi,this._result)},Ot.prototype._willSettleAt=function(pn,Zn){var ii=this;ki(pn,void 0,function(wi){return ii._settledAt(Xt,Zn,wi)},function(wi){return ii._settledAt(Ve,Zn,wi)})},Ot}();function Wn(Ot){return new sn(this,Ot).promise}function Hn(Ot){var be=this;return oe(Ot)?new be(function(pn,Zn){for(var ii=Ot.length,wi=0;wi<ii;wi++)be.resolve(Ot[wi]).then(pn,Zn)}):new be(function(pn,Zn){return Zn(new TypeError("You must pass an array to race."))})}function Jt(Ot){var be=this,pn=new be(mn);return ci(pn,Ot),pn}function It(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function bt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Vt=function(){function Ot(be){this[fn]=Ne(),this._result=this._state=void 0,this._subscribers=[],mn!==be&&(typeof be!="function"&&It(),this instanceof Ot?En(this,be):bt())}return Ot.prototype.catch=function(pn){return this.then(null,pn)},Ot.prototype.finally=function(pn){var Zn=this,ii=Zn.constructor;return Nt(pn)?Zn.then(function(wi){return ii.resolve(pn()).then(function(){return wi})},function(wi){return ii.resolve(pn()).then(function(){throw wi})}):Zn.then(pn,pn)},Ot}();Vt.prototype.then=qn,Vt.all=Wn,Vt.race=Hn,Vt.resolve=un,Vt.reject=Jt,Vt._setScheduler=ht,Vt._setAsap=at,Vt._asap=nt;function le(){var Ot=void 0;if(typeof Kt.g!="undefined")Ot=Kt.g;else if(typeof self!="undefined")Ot=self;else try{Ot=Function("return this")()}catch(Zn){throw new Error("polyfill failed because global object is unavailable in this environment")}var be=Ot.Promise;if(be){var pn=null;try{pn=Object.prototype.toString.call(be.resolve())}catch(Zn){}if(pn==="[object Promise]"&&!be.cast)return}Ot.Promise=Vt}return Vt.polyfill=le,Vt.Promise=Vt,Vt})},html2canvas:function(ge){"use strict";ge.exports=Oe},jspdf:function(ge){"use strict";ge.exports=ke}},Be={};function vn(ge){var ye=Be[ge];if(ye!==void 0)return ye.exports;var Nt=Be[ge]={exports:{}};return Cn[ge].call(Nt.exports,Nt,Nt.exports,vn),Nt.exports}(function(){vn.n=function(ge){var ye=ge&&ge.__esModule?function(){return ge.default}:function(){return ge};return vn.d(ye,{a:ye}),ye}})(),function(){vn.d=function(ge,ye){for(var Nt in ye)vn.o(ye,Nt)&&!vn.o(ge,Nt)&&Object.defineProperty(ge,Nt,{enumerable:!0,get:ye[Nt]})}}(),function(){vn.o=function(ge,ye){return Object.prototype.hasOwnProperty.call(ge,ye)}}(),function(){vn.r=function(ge){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ge,"__esModule",{value:!0})}}();var Ie={};return function(){"use strict";vn.r(Ie);var ge=vn("./src/worker.js"),ye=vn("./src/plugin/jspdf-plugin.js"),Nt=vn("./src/plugin/pagebreaks.js"),se=vn("./src/plugin/hyperlinks.js"),oe=function me(Ut,et){var nt=new me.Worker(et);return Ut?nt.from(Ut).save():nt};oe.Worker=ge.default,Ie.default=oe}(),Ie=Ie.default,Ie}()})},7348:function(Fi,Ti,Kt){"use strict";Kt.r(Ti),Kt.d(Ti,{AcroForm:function(){return Xl},AcroFormAppearance:function(){return uo},AcroFormButton:function(){return Ea},AcroFormCheckBox:function(){return tu},AcroFormChoiceField:function(){return zu},AcroFormComboBox:function(){return bo},AcroFormEditBox:function(){return fa},AcroFormListBox:function(){return Ql},AcroFormPasswordField:function(){return Ll},AcroFormPushButton:function(){return Yl},AcroFormRadioButton:function(){return Rl},AcroFormTextField:function(){return Hl},GState:function(){return to},ShadingPattern:function(){return zs},TilingPattern:function(){return Gs},default:function(){return so},jsPDF:function(){return so}});var zt=Kt(20135),ke={},Oe=function(yt,gt,wt,Ct,Qt){var kt=new Worker(ke[gt]||(ke[gt]=URL.createObjectURL(new Blob([yt+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return kt.onmessage=function(Yt){var Zt=Yt.data,ne=Zt.$e$;if(ne){var Ce=new Error(ne[0]);Ce.code=ne[1],Ce.stack=ne[2],Qt(Ce,null)}else Qt(null,Zt)},kt.postMessage(wt,Ct),kt},Cn=Uint8Array,Be=Uint16Array,vn=Int32Array,Ie=new Cn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ge=new Cn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ye=new Cn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Nt=function(yt,gt){for(var wt=new Be(31),Ct=0;Ct<31;++Ct)wt[Ct]=gt+=1<<yt[Ct-1];for(var Qt=new vn(wt[30]),Ct=1;Ct<30;++Ct)for(var kt=wt[Ct];kt<wt[Ct+1];++kt)Qt[kt]=kt-wt[Ct]<<5|Ct;return{b:wt,r:Qt}},se=Nt(Ie,2),oe=se.b,me=se.r;oe[28]=258,me[258]=28;for(var Ut=Nt(ge,0),et=Ut.b,nt=Ut.r,ht=new Be(32768),at=0;at<32768;++at){var ft=(at&43690)>>1|(at&21845)<<1;ft=(ft&52428)>>2|(ft&13107)<<2,ft=(ft&61680)>>4|(ft&3855)<<4,ht[at]=((ft&65280)>>8|(ft&255)<<8)>>1}for(var vt=function(yt,gt,wt){for(var Ct=yt.length,Qt=0,kt=new Be(gt);Qt<Ct;++Qt)yt[Qt]&&++kt[yt[Qt]-1];var Yt=new Be(gt);for(Qt=1;Qt<gt;++Qt)Yt[Qt]=Yt[Qt-1]+kt[Qt-1]<<1;var Zt;if(wt){Zt=new Be(1<<gt);var ne=15-gt;for(Qt=0;Qt<Ct;++Qt)if(yt[Qt])for(var Ce=Qt<<4|yt[Qt],Re=gt-yt[Qt],Qe=Yt[yt[Qt]-1]++<<Re,en=Qe|(1<<Re)-1;Qe<=en;++Qe)Zt[ht[Qe]>>ne]=Ce}else for(Zt=new Be(Ct),Qt=0;Qt<Ct;++Qt)yt[Qt]&&(Zt[Qt]=ht[Yt[yt[Qt]-1]++]>>15-yt[Qt]);return Zt},Mt=new Cn(288),at=0;at<144;++at)Mt[at]=8;for(var at=144;at<256;++at)Mt[at]=9;for(var at=256;at<280;++at)Mt[at]=7;for(var at=280;at<288;++at)Mt[at]=8;for(var Rt=new Cn(32),at=0;at<32;++at)Rt[at]=5;var Gt=vt(Mt,9,0),$t=vt(Mt,9,1),ae=vt(Rt,5,0),ve=vt(Rt,5,1),fe=function(yt){for(var gt=yt[0],wt=1;wt<yt.length;++wt)yt[wt]>gt&&(gt=yt[wt]);return gt},Ye=function(yt,gt,wt){var Ct=gt/8|0;return(yt[Ct]|yt[Ct+1]<<8)>>(gt&7)&wt},De=function(yt,gt){var wt=gt/8|0;return(yt[wt]|yt[wt+1]<<8|yt[wt+2]<<16)>>(gt&7)},hn=function(yt){return(yt+7)/8|0},Ue=function(yt,gt,wt){return(gt==null||gt<0)&&(gt=0),(wt==null||wt>yt.length)&&(wt=yt.length),new Cn(yt.subarray(gt,wt))},Pn={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},qn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],un=function(yt,gt,wt){var Ct=new Error(gt||qn[yt]);if(Ct.code=yt,Error.captureStackTrace&&Error.captureStackTrace(Ct,un),!wt)throw Ct;return Ct},fn=function(yt,gt,wt,Ct){var Qt=yt.length,kt=Ct?Ct.length:0;if(!Qt||gt.f&&!gt.l)return wt||new Cn(0);var Yt=!wt,Zt=Yt||gt.i!=2,ne=gt.i;Yt&&(wt=new Cn(Qt*3));var Ce=function(Gr){var Uo=wt.length;if(Gr>Uo){var Lo=new Cn(Math.max(Uo*2,Gr));Lo.set(wt),wt=Lo}},Re=gt.f||0,Qe=gt.p||0,en=gt.b||0,ce=gt.l,kn=gt.d,Bn=gt.m,jn=gt.n,an=Qt*8;do{if(!ce){Re=Ye(yt,Qe,1);var On=Ye(yt,Qe+1,3);if(Qe+=3,On)if(On==1)ce=$t,kn=ve,Bn=9,jn=5;else if(On==2){var Er=Ye(yt,Qe,31)+257,_i=Ye(yt,Qe+10,15)+4,li=Er+Ye(yt,Qe+5,31)+1;Qe+=14;for(var Xi=new Cn(li),yr=new Cn(19),yn=0;yn<_i;++yn)yr[ye[yn]]=Ye(yt,Qe+yn*3,7);Qe+=_i*3;for(var bn=fe(yr),bi=(1<<bn)-1,hi=vt(yr,bn,1),yn=0;yn<li;){var cr=hi[Ye(yt,Qe,bi)];Qe+=cr&15;var mi=cr>>4;if(mi<16)Xi[yn++]=mi;else{var sr=0,Vi=0;for(mi==16?(Vi=3+Ye(yt,Qe,3),Qe+=2,sr=Xi[yn-1]):mi==17?(Vi=3+Ye(yt,Qe,7),Qe+=3):mi==18&&(Vi=11+Ye(yt,Qe,127),Qe+=7);Vi--;)Xi[yn++]=sr}}var zi=Xi.subarray(0,Er),Gi=Xi.subarray(Er);Bn=fe(zi),jn=fe(Gi),ce=vt(zi,Bn,1),kn=vt(Gi,jn,1)}else un(1);else{var mi=hn(Qe)+4,Ui=yt[mi-4]|yt[mi-3]<<8,ir=mi+Ui;if(ir>Qt){ne&&un(0);break}Zt&&Ce(en+Ui),wt.set(yt.subarray(mi,ir),en),gt.b=en+=Ui,gt.p=Qe=ir*8,gt.f=Re;continue}if(Qe>an){ne&&un(0);break}}Zt&&Ce(en+131072);for(var rr=(1<<Bn)-1,ao=(1<<jn)-1,tn=Qe;;tn=Qe){var sr=ce[De(yt,Qe)&rr],Un=sr>>4;if(Qe+=sr&15,Qe>an){ne&&un(0);break}if(sr||un(2),Un<256)wt[en++]=Un;else if(Un==256){tn=Qe,ce=null;break}else{var Gn=Un-254;if(Un>264){var yn=Un-257,pi=Ie[yn];Gn=Ye(yt,Qe,(1<<pi)-1)+oe[yn],Qe+=pi}var Oi=kn[De(yt,Qe)&ao],$i=Oi>>4;Oi||un(3),Qe+=Oi&15;var Gi=et[$i];if($i>3){var pi=ge[$i];Gi+=De(yt,Qe)&(1<<pi)-1,Qe+=pi}if(Qe>an){ne&&un(0);break}Zt&&Ce(en+131072);var Wi=en+Gn;if(en<Gi){var or=kt-Gi,Mr=Math.min(Gi,Wi);for(or+en<0&&un(3);en<Mr;++en)wt[en]=Ct[or+en]}for(;en<Wi;++en)wt[en]=wt[en-Gi]}}gt.l=ce,gt.p=tn,gt.b=en,gt.f=Re,ce&&(Re=1,gt.m=Bn,gt.d=kn,gt.n=jn)}while(!Re);return en!=wt.length&&Yt?Ue(wt,0,en):wt.subarray(0,en)},mn=function(yt,gt,wt){wt<<=gt&7;var Ct=gt/8|0;yt[Ct]|=wt,yt[Ct+1]|=wt>>8},pe=function(yt,gt,wt){wt<<=gt&7;var Ct=gt/8|0;yt[Ct]|=wt,yt[Ct+1]|=wt>>8,yt[Ct+2]|=wt>>16},Xt=function(yt,gt){for(var wt=[],Ct=0;Ct<yt.length;++Ct)yt[Ct]&&wt.push({s:Ct,f:yt[Ct]});var Qt=wt.length,kt=wt.slice();if(!Qt)return{t:Ci,l:0};if(Qt==1){var Yt=new Cn(wt[0].s+1);return Yt[wt[0].s]=1,{t:Yt,l:1}}wt.sort(function(ir,Er){return ir.f-Er.f}),wt.push({s:-1,f:25001});var Zt=wt[0],ne=wt[1],Ce=0,Re=1,Qe=2;for(wt[0]={s:-1,f:Zt.f+ne.f,l:Zt,r:ne};Re!=Qt-1;)Zt=wt[wt[Ce].f<wt[Qe].f?Ce++:Qe++],ne=wt[Ce!=Re&&wt[Ce].f<wt[Qe].f?Ce++:Qe++],wt[Re++]={s:-1,f:Zt.f+ne.f,l:Zt,r:ne};for(var en=kt[0].s,Ct=1;Ct<Qt;++Ct)kt[Ct].s>en&&(en=kt[Ct].s);var ce=new Be(en+1),kn=Ve(wt[Re-1],ce,0);if(kn>gt){var Ct=0,Bn=0,jn=kn-gt,an=1<<jn;for(kt.sort(function(Er,_i){return ce[_i.s]-ce[Er.s]||Er.f-_i.f});Ct<Qt;++Ct){var On=kt[Ct].s;if(ce[On]>gt)Bn+=an-(1<<kn-ce[On]),ce[On]=gt;else break}for(Bn>>=jn;Bn>0;){var mi=kt[Ct].s;ce[mi]<gt?Bn-=1<<gt-ce[mi]++-1:++Ct}for(;Ct>=0&&Bn;--Ct){var Ui=kt[Ct].s;ce[Ui]==gt&&(--ce[Ui],++Bn)}kn=gt}return{t:new Cn(ce),l:kn}},Ve=function(yt,gt,wt){return yt.s==-1?Math.max(Ve(yt.l,gt,wt+1),Ve(yt.r,gt,wt+1)):gt[yt.s]=wt},Vn=function(yt){for(var gt=yt.length;gt&&!yt[--gt];);for(var wt=new Be(++gt),Ct=0,Qt=yt[0],kt=1,Yt=function(ne){wt[Ct++]=ne},Zt=1;Zt<=gt;++Zt)if(yt[Zt]==Qt&&Zt!=gt)++kt;else{if(!Qt&&kt>2){for(;kt>138;kt-=138)Yt(32754);kt>2&&(Yt(kt>10?kt-11<<5|28690:kt-3<<5|12305),kt=0)}else if(kt>3){for(Yt(Qt),--kt;kt>6;kt-=6)Yt(8304);kt>2&&(Yt(kt-3<<5|8208),kt=0)}for(;kt--;)Yt(Qt);kt=1,Qt=yt[Zt]}return{c:wt.subarray(0,Ct),n:gt}},si=function(yt,gt){for(var wt=0,Ct=0;Ct<gt.length;++Ct)wt+=yt[Ct]*gt[Ct];return wt},An=function(yt,gt,wt){var Ct=wt.length,Qt=hn(gt+2);yt[Qt]=Ct&255,yt[Qt+1]=Ct>>8,yt[Qt+2]=yt[Qt]^255,yt[Qt+3]=yt[Qt+1]^255;for(var kt=0;kt<Ct;++kt)yt[Qt+kt+4]=wt[kt];return(Qt+4+Ct)*8},Nn=function(yt,gt,wt,Ct,Qt,kt,Yt,Zt,ne,Ce,Re){mn(gt,Re++,wt),++Qt[256];for(var Qe=Xt(Qt,15),en=Qe.t,ce=Qe.l,kn=Xt(kt,15),Bn=kn.t,jn=kn.l,an=Vn(en),On=an.c,mi=an.n,Ui=Vn(Bn),ir=Ui.c,Er=Ui.n,_i=new Be(19),li=0;li<On.length;++li)++_i[On[li]&31];for(var li=0;li<ir.length;++li)++_i[ir[li]&31];for(var Xi=Xt(_i,7),yr=Xi.t,yn=Xi.l,bn=19;bn>4&&!yr[ye[bn-1]];--bn);var bi=Ce+5<<3,hi=si(Qt,Mt)+si(kt,Rt)+Yt,cr=si(Qt,en)+si(kt,Bn)+Yt+14+3*bn+si(_i,yr)+2*_i[16]+3*_i[17]+7*_i[18];if(ne>=0&&bi<=hi&&bi<=cr)return An(gt,Re,yt.subarray(ne,ne+Ce));var sr,Vi,zi,Gi;if(mn(gt,Re,1+(cr<hi)),Re+=2,cr<hi){sr=vt(en,ce,0),Vi=en,zi=vt(Bn,jn,0),Gi=Bn;var rr=vt(yr,yn,0);mn(gt,Re,mi-257),mn(gt,Re+5,Er-1),mn(gt,Re+10,bn-4),Re+=14;for(var li=0;li<bn;++li)mn(gt,Re+3*li,yr[ye[li]]);Re+=3*bn;for(var ao=[On,ir],tn=0;tn<2;++tn)for(var Un=ao[tn],li=0;li<Un.length;++li){var Gn=Un[li]&31;mn(gt,Re,rr[Gn]),Re+=yr[Gn],Gn>15&&(mn(gt,Re,Un[li]>>5&127),Re+=Un[li]>>12)}}else sr=Gt,Vi=Mt,zi=ae,Gi=Rt;for(var li=0;li<Zt;++li){var pi=Ct[li];if(pi>255){var Gn=pi>>18&31;pe(gt,Re,sr[Gn+257]),Re+=Vi[Gn+257],Gn>7&&(mn(gt,Re,pi>>23&31),Re+=Ie[Gn]);var Oi=pi&31;pe(gt,Re,zi[Oi]),Re+=Gi[Oi],Oi>3&&(pe(gt,Re,pi>>5&8191),Re+=ge[Oi])}else pe(gt,Re,sr[pi]),Re+=Vi[pi]}return pe(gt,Re,sr[256]),Re+Vi[256]},Yn=new vn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ci=new Cn(0),Mi=function(yt,gt,wt,Ct,Qt,kt){var Yt=kt.z||yt.length,Zt=new Cn(Ct+Yt+5*(1+Math.ceil(Yt/7e3))+Qt),ne=Zt.subarray(Ct,Zt.length-Qt),Ce=kt.l,Re=(kt.r||0)&7;if(gt){Re&&(ne[0]=kt.r>>3);for(var Qe=Yn[gt-1],en=Qe>>13,ce=Qe&8191,kn=(1<<wt)-1,Bn=kt.p||new Be(32768),jn=kt.h||new Be(kn+1),an=Math.ceil(wt/3),On=2*an,mi=function(Ss){return(yt[Ss]^yt[Ss+1]<<an^yt[Ss+2]<<On)&kn},Ui=new vn(25e3),ir=new Be(288),Er=new Be(32),_i=0,li=0,Xi=kt.i||0,yr=0,yn=kt.w||0,bn=0;Xi+2<Yt;++Xi){var bi=mi(Xi),hi=Xi&32767,cr=jn[bi];if(Bn[hi]=cr,jn[bi]=hi,yn<=Xi){var sr=Yt-Xi;if((_i>7e3||yr>24576)&&(sr>423||!Ce)){Re=Nn(yt,ne,0,Ui,ir,Er,li,yr,bn,Xi-bn,Re),yr=_i=li=0,bn=Xi;for(var Vi=0;Vi<286;++Vi)ir[Vi]=0;for(var Vi=0;Vi<30;++Vi)Er[Vi]=0}var zi=2,Gi=0,rr=ce,ao=hi-cr&32767;if(sr>2&&bi==mi(Xi-ao))for(var tn=Math.min(en,sr)-1,Un=Math.min(32767,Xi),Gn=Math.min(258,sr);ao<=Un&&--rr&&hi!=cr;){if(yt[Xi+zi]==yt[Xi+zi-ao]){for(var pi=0;pi<Gn&&yt[Xi+pi]==yt[Xi+pi-ao];++pi);if(pi>zi){if(zi=pi,Gi=ao,pi>tn)break;for(var Oi=Math.min(ao,pi-2),$i=0,Vi=0;Vi<Oi;++Vi){var Wi=Xi-ao+Vi&32767,or=Bn[Wi],Mr=Wi-or&32767;Mr>$i&&($i=Mr,cr=Wi)}}}hi=cr,cr=Bn[hi],ao+=hi-cr&32767}if(Gi){Ui[yr++]=268435456|me[zi]<<18|nt[Gi];var Gr=me[zi]&31,Uo=nt[Gi]&31;li+=Ie[Gr]+ge[Uo],++ir[257+Gr],++Er[Uo],yn=Xi+zi,++_i}else Ui[yr++]=yt[Xi],++ir[yt[Xi]]}}for(Xi=Math.max(Xi,yn);Xi<Yt;++Xi)Ui[yr++]=yt[Xi],++ir[yt[Xi]];Re=Nn(yt,ne,Ce,Ui,ir,Er,li,yr,bn,Xi-bn,Re),Ce||(kt.r=Re&7|ne[Re/8|0]<<3,Re-=7,kt.h=jn,kt.p=Bn,kt.i=Xi,kt.w=yn)}else{for(var Xi=kt.w||0;Xi<Yt+Ce;Xi+=65535){var Lo=Xi+65535;Lo>=Yt&&(ne[Re/8|0]=Ce,Lo=Yt),Re=An(ne,Re+1,yt.subarray(Xi,Lo))}kt.i=Yt}return Ue(Zt,0,Ct+hn(Re)+Qt)},Ri=null,Te=function(){var yt=-1;return{p:function(gt){for(var wt=yt,Ct=0;Ct<gt.length;++Ct)wt=Ri[wt&255^gt[Ct]]^wt>>>8;yt=wt},d:function(){return~yt}}},ci=function(){var yt=1,gt=0;return{p:function(wt){for(var Ct=yt,Qt=gt,kt=wt.length|0,Yt=0;Yt!=kt;){for(var Zt=Math.min(Yt+2655,kt);Yt<Zt;++Yt)Qt+=Ct+=wt[Yt];Ct=(Ct&65535)+15*(Ct>>16),Qt=(Qt&65535)+15*(Qt>>16)}yt=Ct,gt=Qt},d:function(){return yt%=65521,gt%=65521,(yt&255)<<24|(yt&65280)<<8|(gt&255)<<8|gt>>8}}},ki=function(yt,gt,wt,Ct,Qt){if(!Qt&&(Qt={l:1},gt.dictionary)){var kt=gt.dictionary.subarray(-32768),Yt=new Cn(kt.length+yt.length);Yt.set(kt),Yt.set(yt,kt.length),yt=Yt,Qt.w=kt.length}return Mi(yt,gt.level==null?6:gt.level,gt.mem==null?Qt.l?Math.ceil(Math.max(8,Math.min(13,Math.log(yt.length)))*1.5):20:12+gt.mem,wt,Ct,Qt)},Dn=function(yt,gt){var wt={};for(var Ct in yt)wt[Ct]=yt[Ct];for(var Ct in gt)wt[Ct]=gt[Ct];return wt},yi=function(yt,gt,wt){for(var Ct=yt(),Qt=yt.toString(),kt=Qt.slice(Qt.indexOf("[")+1,Qt.lastIndexOf("]")).replace(/\s+/g,"").split(","),Yt=0;Yt<Ct.length;++Yt){var Zt=Ct[Yt],ne=kt[Yt];if(typeof Zt=="function"){gt+=";"+ne+"=";var Ce=Zt.toString();if(Zt.prototype)if(Ce.indexOf("[native code]")!=-1){var Re=Ce.indexOf(" ",8)+1;gt+=Ce.slice(Re,Ce.indexOf("(",Re))}else{gt+=Ce;for(var Qe in Zt.prototype)gt+=";"+ne+".prototype."+Qe+"="+Zt.prototype[Qe].toString()}else gt+=Ce}else wt[ne]=Zt}return gt},En=null,gn=function(yt){var gt=[];for(var wt in yt)yt[wt].buffer&&gt.push((yt[wt]=new yt[wt].constructor(yt[wt])).buffer);return gt},Ne=function(yt,gt,wt,Ct){if(!En[wt]){for(var Qt="",kt={},Yt=yt.length-1,Zt=0;Zt<Yt;++Zt)Qt=yi(yt[Zt],Qt,kt);En[wt]={c:yi(yt[Yt],Qt,kt),e:kt}}var ne=Dn({},En[wt].e);return Oe(En[wt].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+gt.toString()+"}",wt,ne,gn(ne),Ct)},Xe=function(){return[Cn,Be,vn,Ie,ge,ye,oe,et,$t,ve,ht,qn,vt,fe,Ye,De,hn,Ue,un,fn,Ms,It,bt]},wn=function(){return[Cn,Be,vn,Ie,ge,ye,me,nt,Gt,Mt,ae,Rt,ht,Yn,Ci,vt,mn,pe,Xt,Ve,Vn,si,An,Nn,hn,Ue,Mi,ki,Vr,It]},sn=function(){return[wi,Tr,ii,Te,Ri]},Wn=function(){return[Nr,_r]},Hn=function(){return[po,ii,ci]},Jt=function(){return[To]},It=function(yt){return postMessage(yt,[yt.buffer])},bt=function(yt){return yt&&{out:yt.size&&new Cn(yt.size),dictionary:yt.dictionary}},Vt=function(yt,gt,wt,Ct,Qt,kt){var Yt=Ne(wt,Ct,Qt,function(Zt,ne){Yt.terminate(),kt(Zt,ne)});return Yt.postMessage([yt,gt],gt.consume?[yt.buffer]:[]),function(){Yt.terminate()}},le=function(yt){return yt.ondata=function(gt,wt){return postMessage([gt,wt],[gt.buffer])},function(gt){gt.data.length?(yt.push(gt.data[0],gt.data[1]),postMessage([gt.data[0].length])):yt.flush()}},Ot=function(yt,gt,wt,Ct,Qt,kt,Yt){var Zt,ne=Ne(yt,Ct,Qt,function(Ce,Re){Ce?(ne.terminate(),gt.ondata.call(gt,Ce)):Array.isArray(Re)?Re.length==1?(gt.queuedSize-=Re[0],gt.ondrain&&gt.ondrain(Re[0])):(Re[1]&&ne.terminate(),gt.ondata.call(gt,Ce,Re[0],Re[1])):Yt(Re)});ne.postMessage(wt),gt.queuedSize=0,gt.push=function(Ce,Re){gt.ondata||un(5),Zt&&gt.ondata(un(4,0,1),null,!!Re),gt.queuedSize+=Ce.length,ne.postMessage([Ce,Zt=Re],[Ce.buffer])},gt.terminate=function(){ne.terminate()},kt&&(gt.flush=function(){ne.postMessage([])})},be=function(yt,gt){return yt[gt]|yt[gt+1]<<8},pn=function(yt,gt){return(yt[gt]|yt[gt+1]<<8|yt[gt+2]<<16|yt[gt+3]<<24)>>>0},Zn=function(yt,gt){return pn(yt,gt)+pn(yt,gt+4)*4294967296},ii=function(yt,gt,wt){for(;wt;++gt)yt[gt]=wt,wt>>>=8},wi=function(yt,gt){var wt=gt.filename;if(yt[0]=31,yt[1]=139,yt[2]=8,yt[8]=gt.level<2?4:gt.level==9?2:0,yt[9]=3,gt.mtime!=0&&ii(yt,4,Math.floor(new Date(gt.mtime||Date.now())/1e3)),wt){yt[3]=8;for(var Ct=0;Ct<=wt.length;++Ct)yt[Ct+10]=wt.charCodeAt(Ct)}},Nr=function(yt){(yt[0]!=31||yt[1]!=139||yt[2]!=8)&&un(6,"invalid gzip data");var gt=yt[3],wt=10;gt&4&&(wt+=(yt[10]|yt[11]<<8)+2);for(var Ct=(gt>>3&1)+(gt>>4&1);Ct>0;Ct-=!yt[wt++]);return wt+(gt&2)},_r=function(yt){var gt=yt.length;return(yt[gt-4]|yt[gt-3]<<8|yt[gt-2]<<16|yt[gt-1]<<24)>>>0},Tr=function(yt){return 10+(yt.filename?yt.filename.length+1:0)},po=function(yt,gt){var wt=gt.level,Ct=wt==0?0:wt<6?1:wt==9?3:2;if(yt[0]=120,yt[1]=Ct<<6|(gt.dictionary&&32),yt[1]|=31-(yt[0]<<8|yt[1])%31,gt.dictionary){var Qt=ci();Qt.p(gt.dictionary),ii(yt,2,Qt.d())}},To=function(yt,gt){return((yt[0]&15)!=8||yt[0]>>4>7||(yt[0]<<8|yt[1])%31)&&un(6,"invalid zlib data"),(yt[1]>>5&1)==+!gt&&un(6,"invalid zlib data: "+(yt[1]&32?"need":"unexpected")+" dictionary"),(yt[1]>>3&4)+2};function Co(yt,gt){return typeof yt=="function"&&(gt=yt,yt={}),this.ondata=gt,yt}var Kr=null,gr=null;function Wr(yt,gt,wt){return wt||(wt=gt,gt={}),typeof wt!="function"&&un(7),Vt(yt,gt,[wn],function(Ct){return It(Vr(Ct.data[0],Ct.data[1]))},0,wt)}function Vr(yt,gt){return ki(yt,gt||{},0,0)}var No=null,us=null;function Os(yt,gt,wt){return wt||(wt=gt,gt={}),typeof wt!="function"&&un(7),Vt(yt,gt,[Xe],function(Ct){return It(Ms(Ct.data[0],bt(Ct.data[1])))},1,wt)}function Ms(yt,gt){return fn(yt,{i:2},gt&&gt.out,gt&&gt.dictionary)}var Fo=null,jt=null;function la(yt,gt,wt){return wt||(wt=gt,gt={}),typeof wt!="function"&&un(7),Vt(yt,gt,[wn,sn,function(){return[fs]}],function(Ct){return It(fs(Ct.data[0],Ct.data[1]))},2,wt)}function fs(yt,gt){gt||(gt={});var wt=Te(),Ct=yt.length;wt.p(yt);var Qt=ki(yt,gt,Tr(gt),8),kt=Qt.length;return wi(Qt,gt),ii(Qt,kt-8,wt.d()),ii(Qt,kt-4,Ct),Qt}var vs=null,Ws=null;function Fa(yt,gt,wt){return wt||(wt=gt,gt={}),typeof wt!="function"&&un(7),Vt(yt,gt,[Xe,Wn,function(){return[Sa]}],function(Ct){return It(Sa(Ct.data[0],Ct.data[1]))},3,wt)}function Sa(yt,gt){var wt=Nr(yt);return wt+8>yt.length&&un(6,"invalid gzip data"),fn(yt.subarray(wt,-8),{i:2},gt&&gt.out||new Cn(_r(yt)),gt&&gt.dictionary)}var Pr=null,Lr=null;function ln(yt,gt,wt){return wt||(wt=gt,gt={}),typeof wt!="function"&&un(7),Vt(yt,gt,[wn,Hn,function(){return[nn]}],function(Ct){return It(nn(Ct.data[0],Ct.data[1]))},4,wt)}function nn(yt,gt){gt||(gt={});var wt=ci();wt.p(yt);var Ct=ki(yt,gt,gt.dictionary?6:2,4);return po(Ct,gt),ii(Ct,Ct.length-4,wt.d()),Ct}var Ae=null,Tn=null;function Jn(yt,gt,wt){return wt||(wt=gt,gt={}),typeof wt!="function"&&un(7),Vt(yt,gt,[Xe,Jt,function(){return[He]}],function(Ct){return It(He(Ct.data[0],bt(Ct.data[1])))},5,wt)}function He(yt,gt){return fn(yt.subarray(To(yt,gt&&gt.dictionary),-4),{i:2},gt&&gt.out,gt&&gt.dictionary)}var we=null,qe=null;function In(yt,gt,wt){return wt||(wt=gt,gt={}),typeof wt!="function"&&un(7),yt[0]==31&&yt[1]==139&&yt[2]==8?Fa(yt,gt,wt):(yt[0]&15)!=8||yt[0]>>4>7||(yt[0]<<8|yt[1])%31?Os(yt,gt,wt):Jn(yt,gt,wt)}function ui(yt,gt){return yt[0]==31&&yt[1]==139&&yt[2]==8?Sa(yt,gt):(yt[0]&15)!=8||yt[0]>>4>7||(yt[0]<<8|yt[1])%31?Ms(yt,gt):He(yt,gt)}var Pi=function(yt,gt,wt,Ct){for(var Qt in yt){var kt=yt[Qt],Yt=gt+Qt,Zt=Ct;Array.isArray(kt)&&(Zt=Dn(Ct,kt[1]),kt=kt[0]),kt instanceof Cn?wt[Yt]=[kt,Zt]:(wt[Yt+="/"]=[new Cn(0),Zt],Pi(kt,Yt,wt,Ct))}},Fe=typeof TextEncoder!="undefined"&&new TextEncoder,Qn=typeof TextDecoder!="undefined"&&new TextDecoder,Ei=0;try{Qn.decode(Ci,{stream:!0}),Ei=1}catch(yt){}var Ar=function(yt){for(var gt="",wt=0;;){var Ct=yt[wt++],Qt=(Ct>127)+(Ct>223)+(Ct>239);if(wt+Qt>yt.length)return{s:gt,r:Ue(yt,wt-1)};Qt?Qt==3?(Ct=((Ct&15)<<18|(yt[wt++]&63)<<12|(yt[wt++]&63)<<6|yt[wt++]&63)-65536,gt+=String.fromCharCode(55296|Ct>>10,56320|Ct&1023)):Qt&1?gt+=String.fromCharCode((Ct&31)<<6|yt[wt++]&63):gt+=String.fromCharCode((Ct&15)<<12|(yt[wt++]&63)<<6|yt[wt++]&63):gt+=String.fromCharCode(Ct)}},Sn=null,$n=null;function xr(yt,gt){if(gt){for(var wt=new Cn(yt.length),Ct=0;Ct<yt.length;++Ct)wt[Ct]=yt.charCodeAt(Ct);return wt}if(Fe)return Fe.encode(yt);for(var Qt=yt.length,kt=new Cn(yt.length+(yt.length>>1)),Yt=0,Zt=function(Re){kt[Yt++]=Re},Ct=0;Ct<Qt;++Ct){if(Yt+5>kt.length){var ne=new Cn(Yt+8+(Qt-Ct<<1));ne.set(kt),kt=ne}var Ce=yt.charCodeAt(Ct);Ce<128||gt?Zt(Ce):Ce<2048?(Zt(192|Ce>>6),Zt(128|Ce&63)):Ce>55295&&Ce<57344?(Ce=65536+(Ce&1047552)|yt.charCodeAt(++Ct)&1023,Zt(240|Ce>>18),Zt(128|Ce>>12&63),Zt(128|Ce>>6&63),Zt(128|Ce&63)):(Zt(224|Ce>>12),Zt(128|Ce>>6&63),Zt(128|Ce&63))}return Ue(kt,0,Yt)}function dr(yt,gt){if(gt){for(var wt="",Ct=0;Ct<yt.length;Ct+=16384)wt+=String.fromCharCode.apply(null,yt.subarray(Ct,Ct+16384));return wt}else{if(Qn)return Qn.decode(yt);var Qt=Ar(yt),kt=Qt.s,wt=Qt.r;return wt.length&&un(8),kt}}var Dr=function(yt){return yt==1?3:yt<6?2:yt==9?1:0},tr=function(yt,gt){return gt+30+be(yt,gt+26)+be(yt,gt+28)},vr=function(yt,gt,wt){var Ct=be(yt,gt+28),Qt=dr(yt.subarray(gt+46,gt+46+Ct),!(be(yt,gt+8)&2048)),kt=gt+46+Ct,Yt=pn(yt,gt+20),Zt=wt&&Yt==4294967295?ur(yt,kt):[Yt,pn(yt,gt+24),pn(yt,gt+42)],ne=Zt[0],Ce=Zt[1],Re=Zt[2];return[be(yt,gt+10),ne,Ce,Qt,kt+be(yt,gt+30)+be(yt,gt+32),Re]},ur=function(yt,gt){for(;be(yt,gt)!=1;gt+=4+be(yt,gt+2));return[Zn(yt,gt+12),Zn(yt,gt+4),Zn(yt,gt+20)]},kr=function(yt){var gt=0;if(yt)for(var wt in yt){var Ct=yt[wt].length;Ct>65535&&un(9),gt+=Ct+4}return gt},Ao=function(yt,gt,wt,Ct,Qt,kt,Yt,Zt){var ne=Ct.length,Ce=wt.extra,Re=Zt&&Zt.length,Qe=kr(Ce);ii(yt,gt,Yt!=null?33639248:67324752),gt+=4,Yt!=null&&(yt[gt++]=20,yt[gt++]=wt.os),yt[gt]=20,gt+=2,yt[gt++]=wt.flag<<1|(kt<0&&8),yt[gt++]=Qt&&8,yt[gt++]=wt.compression&255,yt[gt++]=wt.compression>>8;var en=new Date(wt.mtime==null?Date.now():wt.mtime),ce=en.getFullYear()-1980;if((ce<0||ce>119)&&un(10),ii(yt,gt,ce<<25|en.getMonth()+1<<21|en.getDate()<<16|en.getHours()<<11|en.getMinutes()<<5|en.getSeconds()>>1),gt+=4,kt!=-1&&(ii(yt,gt,wt.crc),ii(yt,gt+4,kt<0?-kt-2:kt),ii(yt,gt+8,wt.size)),ii(yt,gt+12,ne),ii(yt,gt+14,Qe),gt+=16,Yt!=null&&(ii(yt,gt,Re),ii(yt,gt+6,wt.attrs),ii(yt,gt+10,Yt),gt+=14),yt.set(Ct,gt),gt+=ne,Qe)for(var kn in Ce){var Bn=Ce[kn],jn=Bn.length;ii(yt,gt,+kn),ii(yt,gt+2,jn),yt.set(Bn,gt+4),gt+=4+jn}return Re&&(yt.set(Zt,gt),gt+=Re),gt},Oo=function(yt,gt,wt,Ct,Qt){ii(yt,gt,101010256),ii(yt,gt+8,wt),ii(yt,gt+10,wt),ii(yt,gt+12,Ct),ii(yt,gt+16,Qt)},Kn=null,Vo=null,rs=null,Po=null;function zn(yt,gt,wt){wt||(wt=gt,gt={}),typeof wt!="function"&&un(7);var Ct={};Pi(yt,"",Ct,gt);var Qt=Object.keys(Ct),kt=Qt.length,Yt=0,Zt=0,ne=kt,Ce=new Array(kt),Re=[],Qe=function(){for(var jn=0;jn<Re.length;++jn)Re[jn]()},en=function(jn,an){Io(function(){wt(jn,an)})};Io(function(){en=wt});var ce=function(){var jn=new Cn(Zt+22),an=Yt,On=Zt-Yt;Zt=0;for(var mi=0;mi<ne;++mi){var Ui=Ce[mi];try{var ir=Ui.c.length;Ao(jn,Zt,Ui,Ui.f,Ui.u,ir);var Er=30+Ui.f.length+kr(Ui.extra),_i=Zt+Er;jn.set(Ui.c,_i),Ao(jn,Yt,Ui,Ui.f,Ui.u,ir,Zt,Ui.m),Yt+=16+Er+(Ui.m?Ui.m.length:0),Zt=_i+ir}catch(li){return en(li,null)}}Oo(jn,Yt,Ce.length,On,an),en(null,jn)};kt||ce();for(var kn=function(jn){var an=Qt[jn],On=Ct[an],mi=On[0],Ui=On[1],ir=Te(),Er=mi.length;ir.p(mi);var _i=xr(an),li=_i.length,Xi=Ui.comment,yr=Xi&&xr(Xi),yn=yr&&yr.length,bn=kr(Ui.extra),bi=Ui.level==0?0:8,hi=function(cr,sr){if(cr)Qe(),en(cr,null);else{var Vi=sr.length;Ce[jn]=Dn(Ui,{size:Er,crc:ir.d(),c:sr,f:_i,m:yr,u:li!=an.length||yr&&Xi.length!=yn,compression:bi}),Yt+=30+li+bn+Vi,Zt+=76+2*(li+bn)+(yn||0)+Vi,--kt||ce()}};if(li>65535&&hi(un(11,0,1),null),!bi)hi(null,mi);else if(Er<16e4)try{hi(null,Vr(mi,Ui))}catch(cr){hi(cr,null)}else Re.push(Wr(mi,Ui,hi))},Bn=0;Bn<ne;++Bn)kn(Bn);return Qe}function Hi(yt,gt){gt||(gt={});var wt={},Ct=[];Pi(yt,"",wt,gt);var Qt=0,kt=0;for(var Yt in wt){var Zt=wt[Yt],ne=Zt[0],Ce=Zt[1],Re=Ce.level==0?0:8,Qe=xr(Yt),en=Qe.length,ce=Ce.comment,kn=ce&&xr(ce),Bn=kn&&kn.length,jn=kr(Ce.extra);en>65535&&un(11);var an=Re?Vr(ne,Ce):ne,On=an.length,mi=Te();mi.p(ne),Ct.push(Dn(Ce,{size:ne.length,crc:mi.d(),c:an,f:Qe,m:kn,u:en!=Yt.length||kn&&ce.length!=Bn,o:Qt,compression:Re})),Qt+=30+en+jn+On,kt+=76+2*(en+jn)+(Bn||0)+On}for(var Ui=new Cn(kt+22),ir=Qt,Er=kt-Qt,_i=0;_i<Ct.length;++_i){var Qe=Ct[_i];Ao(Ui,Qe.o,Qe,Qe.f,Qe.u,Qe.c.length);var li=30+Qe.f.length+kr(Qe.extra);Ui.set(Qe.c,Qe.o+li),Ao(Ui,Qt,Qe,Qe.f,Qe.u,Qe.c.length,Qe.o,Qe.m),Qt+=16+li+(Qe.m?Qe.m.length:0)}return Oo(Ui,Qt,Ct.length,Er,ir),Ui}var pr=null,jr=null,Ir=null,co=null,Io=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(yt){yt()};function oo(yt,gt,wt){wt||(wt=gt,gt={}),typeof wt!="function"&&un(7);var Ct=[],Qt=function(){for(var jn=0;jn<Ct.length;++jn)Ct[jn]()},kt={},Yt=function(jn,an){Io(function(){wt(jn,an)})};Io(function(){Yt=wt});for(var Zt=yt.length-22;pn(yt,Zt)!=101010256;--Zt)if(!Zt||yt.length-Zt>65558)return Yt(un(13,0,1),null),Qt;var ne=be(yt,Zt+8);if(ne){var Ce=ne,Re=pn(yt,Zt+16),Qe=Re==4294967295||Ce==65535;if(Qe){var en=pn(yt,Zt-12);Qe=pn(yt,en)==101075792,Qe&&(Ce=ne=pn(yt,en+32),Re=pn(yt,en+48))}for(var ce=gt&&gt.filter,kn=function(jn){var an=vr(yt,Re,Qe),On=an[0],mi=an[1],Ui=an[2],ir=an[3],Er=an[4],_i=an[5],li=tr(yt,_i);Re=Er;var Xi=function(yn,bn){yn?(Qt(),Yt(yn,null)):(bn&&(kt[ir]=bn),--ne||Yt(null,kt))};if(!ce||ce({name:ir,size:mi,originalSize:Ui,compression:On}))if(!On)Xi(null,Ue(yt,li,li+mi));else if(On==8){var yr=yt.subarray(li,li+mi);if(Ui<524288||mi>.8*Ui)try{Xi(null,Ms(yr,{out:new Cn(Ui)}))}catch(yn){Xi(yn,null)}else Ct.push(Os(yr,{size:Ui},Xi))}else Xi(un(14,"unknown compression type "+On,1),null);else Xi(null,null)},Bn=0;Bn<Ce;++Bn)kn(Bn)}else Yt(null,{});return Qt}function eo(yt,gt){for(var wt={},Ct=yt.length-22;pn(yt,Ct)!=101010256;--Ct)(!Ct||yt.length-Ct>65558)&&un(13);var Qt=be(yt,Ct+8);if(!Qt)return{};var kt=pn(yt,Ct+16),Yt=kt==4294967295||Qt==65535;if(Yt){var Zt=pn(yt,Ct-12);Yt=pn(yt,Zt)==101075792,Yt&&(Qt=pn(yt,Zt+32),kt=pn(yt,Zt+48))}for(var ne=gt&&gt.filter,Ce=0;Ce<Qt;++Ce){var Re=vr(yt,kt,Yt),Qe=Re[0],en=Re[1],ce=Re[2],kn=Re[3],Bn=Re[4],jn=Re[5],an=tr(yt,jn);kt=Bn,(!ne||ne({name:kn,size:en,originalSize:ce,compression:Qe}))&&(Qe?Qe==8?wt[kn]=Ms(yt.subarray(an,an+en),{out:new Cn(ce)}):un(14,"unknown compression type "+Qe):wt[kn]=Ue(yt,an,an+en))}return wt}var Br=function(){return typeof window!="undefined"?window:typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:this}();function ai(){Br.console&&typeof Br.console.log=="function"&&Br.console.log.apply(Br.console,arguments)}var vo={log:ai,warn:function(yt){Br.console&&(typeof Br.console.warn=="function"?Br.console.warn.apply(Br.console,arguments):ai.call(null,arguments))},error:function(yt){Br.console&&(typeof Br.console.error=="function"?Br.console.error.apply(Br.console,arguments):ai(yt))}};function ei(yt,gt,wt){var Ct=new XMLHttpRequest;Ct.open("GET",yt),Ct.responseType="blob",Ct.onload=function(){ks(Ct.response,gt,wt)},Ct.onerror=function(){vo.error("could not download file")},Ct.send()}function Qo(yt){var gt=new XMLHttpRequest;gt.open("HEAD",yt,!1);try{gt.send()}catch(wt){}return gt.status>=200&&gt.status<=299}function Vs(yt){try{yt.dispatchEvent(new MouseEvent("click"))}catch(wt){var gt=document.createEvent("MouseEvents");gt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),yt.dispatchEvent(gt)}}var Xo,Js,ks=Br.saveAs||((typeof window=="undefined"?"undefined":(0,zt.Z)(window))!=="object"||window!==Br?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(yt,gt,wt){var Ct=Br.URL||Br.webkitURL,Qt=document.createElement("a");gt=gt||yt.name||"download",Qt.download=gt,Qt.rel="noopener",typeof yt=="string"?(Qt.href=yt,Qt.origin!==location.origin?Qo(Qt.href)?ei(yt,gt,wt):Vs(Qt,Qt.target="_blank"):Vs(Qt)):(Qt.href=Ct.createObjectURL(yt),setTimeout(function(){Ct.revokeObjectURL(Qt.href)},4e4),setTimeout(function(){Vs(Qt)},0))}:"msSaveOrOpenBlob"in navigator?function(yt,gt,wt){if(gt=gt||yt.name||"download",typeof yt=="string")if(Qo(yt))ei(yt,gt,wt);else{var Ct=document.createElement("a");Ct.href=yt,Ct.target="_blank",setTimeout(function(){Vs(Ct)})}else navigator.msSaveOrOpenBlob(function(Qt,kt){return kt===void 0?kt={autoBom:!1}:(0,zt.Z)(kt)!=="object"&&(vo.warn("Deprecated: Expected third argument to be a object"),kt={autoBom:!kt}),kt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Qt.type)?new Blob(["\uFEFF",Qt],{type:Qt.type}):Qt}(yt,wt),gt)}:function(yt,gt,wt,Ct){if((Ct=Ct||open("","_blank"))&&(Ct.document.title=Ct.document.body.innerText="downloading..."),typeof yt=="string")return ei(yt,gt,wt);var Qt=yt.type==="application/octet-stream",kt=/constructor/i.test(Br.HTMLElement)||Br.safari,Yt=/CriOS\/[\d]+/.test(navigator.userAgent);if((Yt||Qt&&kt)&&(typeof FileReader=="undefined"?"undefined":(0,zt.Z)(FileReader))==="object"){var Zt=new FileReader;Zt.onloadend=function(){var Re=Zt.result;Re=Yt?Re:Re.replace(/^data:[^;]*;/,"data:attachment/file;"),Ct?Ct.location.href=Re:location=Re,Ct=null},Zt.readAsDataURL(yt)}else{var ne=Br.URL||Br.webkitURL,Ce=ne.createObjectURL(yt);Ct?Ct.location=Ce:location.href=Ce,Ct=null,setTimeout(function(){ne.revokeObjectURL(Ce)},4e4)}});function no(yt){var gt;yt=yt||"",this.ok=!1,yt.charAt(0)=="#"&&(yt=yt.substr(1,6)),yt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[yt=(yt=yt.replace(/ /g,"")).toLowerCase()]||yt;for(var wt=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Zt){return[parseInt(Zt[1]),parseInt(Zt[2]),parseInt(Zt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Zt){return[parseInt(Zt[1],16),parseInt(Zt[2],16),parseInt(Zt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Zt){return[parseInt(Zt[1]+Zt[1],16),parseInt(Zt[2]+Zt[2],16),parseInt(Zt[3]+Zt[3],16)]}}],Ct=0;Ct<wt.length;Ct++){var Qt=wt[Ct].re,kt=wt[Ct].process,Yt=Qt.exec(yt);Yt&&(gt=kt(Yt),this.r=gt[0],this.g=gt[1],this.b=gt[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Zt=this.r.toString(16),ne=this.g.toString(16),Ce=this.b.toString(16);return Zt.length==1&&(Zt="0"+Zt),ne.length==1&&(ne="0"+ne),Ce.length==1&&(Ce="0"+Ce),"#"+Zt+ne+Ce}}function ro(yt,gt){var wt=yt[0],Ct=yt[1],Qt=yt[2],kt=yt[3];wt=Ro(wt,Ct,Qt,kt,gt[0],7,-680876936),kt=Ro(kt,wt,Ct,Qt,gt[1],12,-389564586),Qt=Ro(Qt,kt,wt,Ct,gt[2],17,606105819),Ct=Ro(Ct,Qt,kt,wt,gt[3],22,-1044525330),wt=Ro(wt,Ct,Qt,kt,gt[4],7,-176418897),kt=Ro(kt,wt,Ct,Qt,gt[5],12,1200080426),Qt=Ro(Qt,kt,wt,Ct,gt[6],17,-1473231341),Ct=Ro(Ct,Qt,kt,wt,gt[7],22,-45705983),wt=Ro(wt,Ct,Qt,kt,gt[8],7,1770035416),kt=Ro(kt,wt,Ct,Qt,gt[9],12,-1958414417),Qt=Ro(Qt,kt,wt,Ct,gt[10],17,-42063),Ct=Ro(Ct,Qt,kt,wt,gt[11],22,-1990404162),wt=Ro(wt,Ct,Qt,kt,gt[12],7,1804603682),kt=Ro(kt,wt,Ct,Qt,gt[13],12,-40341101),Qt=Ro(Qt,kt,wt,Ct,gt[14],17,-1502002290),wt=Ji(wt,Ct=Ro(Ct,Qt,kt,wt,gt[15],22,1236535329),Qt,kt,gt[1],5,-165796510),kt=Ji(kt,wt,Ct,Qt,gt[6],9,-1069501632),Qt=Ji(Qt,kt,wt,Ct,gt[11],14,643717713),Ct=Ji(Ct,Qt,kt,wt,gt[0],20,-373897302),wt=Ji(wt,Ct,Qt,kt,gt[5],5,-701558691),kt=Ji(kt,wt,Ct,Qt,gt[10],9,38016083),Qt=Ji(Qt,kt,wt,Ct,gt[15],14,-660478335),Ct=Ji(Ct,Qt,kt,wt,gt[4],20,-405537848),wt=Ji(wt,Ct,Qt,kt,gt[9],5,568446438),kt=Ji(kt,wt,Ct,Qt,gt[14],9,-1019803690),Qt=Ji(Qt,kt,wt,Ct,gt[3],14,-187363961),Ct=Ji(Ct,Qt,kt,wt,gt[8],20,1163531501),wt=Ji(wt,Ct,Qt,kt,gt[13],5,-1444681467),kt=Ji(kt,wt,Ct,Qt,gt[2],9,-51403784),Qt=Ji(Qt,kt,wt,Ct,gt[7],14,1735328473),wt=re(wt,Ct=Ji(Ct,Qt,kt,wt,gt[12],20,-1926607734),Qt,kt,gt[5],4,-378558),kt=re(kt,wt,Ct,Qt,gt[8],11,-2022574463),Qt=re(Qt,kt,wt,Ct,gt[11],16,1839030562),Ct=re(Ct,Qt,kt,wt,gt[14],23,-35309556),wt=re(wt,Ct,Qt,kt,gt[1],4,-1530992060),kt=re(kt,wt,Ct,Qt,gt[4],11,1272893353),Qt=re(Qt,kt,wt,Ct,gt[7],16,-155497632),Ct=re(Ct,Qt,kt,wt,gt[10],23,-1094730640),wt=re(wt,Ct,Qt,kt,gt[13],4,681279174),kt=re(kt,wt,Ct,Qt,gt[0],11,-358537222),Qt=re(Qt,kt,wt,Ct,gt[3],16,-722521979),Ct=re(Ct,Qt,kt,wt,gt[6],23,76029189),wt=re(wt,Ct,Qt,kt,gt[9],4,-640364487),kt=re(kt,wt,Ct,Qt,gt[12],11,-421815835),Qt=re(Qt,kt,wt,Ct,gt[15],16,530742520),wt=zo(wt,Ct=re(Ct,Qt,kt,wt,gt[2],23,-995338651),Qt,kt,gt[0],6,-198630844),kt=zo(kt,wt,Ct,Qt,gt[7],10,1126891415),Qt=zo(Qt,kt,wt,Ct,gt[14],15,-1416354905),Ct=zo(Ct,Qt,kt,wt,gt[5],21,-57434055),wt=zo(wt,Ct,Qt,kt,gt[12],6,1700485571),kt=zo(kt,wt,Ct,Qt,gt[3],10,-1894986606),Qt=zo(Qt,kt,wt,Ct,gt[10],15,-1051523),Ct=zo(Ct,Qt,kt,wt,gt[1],21,-2054922799),wt=zo(wt,Ct,Qt,kt,gt[8],6,1873313359),kt=zo(kt,wt,Ct,Qt,gt[15],10,-30611744),Qt=zo(Qt,kt,wt,Ct,gt[6],15,-1560198380),Ct=zo(Ct,Qt,kt,wt,gt[13],21,1309151649),wt=zo(wt,Ct,Qt,kt,gt[4],6,-145523070),kt=zo(kt,wt,Ct,Qt,gt[11],10,-1120210379),Qt=zo(Qt,kt,wt,Ct,gt[2],15,718787259),Ct=zo(Ct,Qt,kt,wt,gt[9],21,-343485551),yt[0]=wo(wt,yt[0]),yt[1]=wo(Ct,yt[1]),yt[2]=wo(Qt,yt[2]),yt[3]=wo(kt,yt[3])}function Go(yt,gt,wt,Ct,Qt,kt){return gt=wo(wo(gt,yt),wo(Ct,kt)),wo(gt<<Qt|gt>>>32-Qt,wt)}function Ro(yt,gt,wt,Ct,Qt,kt,Yt){return Go(gt&wt|~gt&Ct,yt,gt,Qt,kt,Yt)}function Ji(yt,gt,wt,Ct,Qt,kt,Yt){return Go(gt&Ct|wt&~Ct,yt,gt,Qt,kt,Yt)}function re(yt,gt,wt,Ct,Qt,kt,Yt){return Go(gt^wt^Ct,yt,gt,Qt,kt,Yt)}function zo(yt,gt,wt,Ct,Qt,kt,Yt){return Go(wt^(gt|~Ct),yt,gt,Qt,kt,Yt)}function Hs(yt){var gt,wt=yt.length,Ct=[1732584193,-271733879,-1732584194,271733878];for(gt=64;gt<=yt.length;gt+=64)ro(Ct,Qa(yt.substring(gt-64,gt)));yt=yt.substring(gt-64);var Qt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(gt=0;gt<yt.length;gt++)Qt[gt>>2]|=yt.charCodeAt(gt)<<(gt%4<<3);if(Qt[gt>>2]|=128<<(gt%4<<3),gt>55)for(ro(Ct,Qt),gt=0;gt<16;gt++)Qt[gt]=0;return Qt[14]=8*wt,ro(Ct,Qt),Ct}function Qa(yt){var gt,wt=[];for(gt=0;gt<64;gt+=4)wt[gt>>2]=yt.charCodeAt(gt)+(yt.charCodeAt(gt+1)<<8)+(yt.charCodeAt(gt+2)<<16)+(yt.charCodeAt(gt+3)<<24);return wt}Xo=Br.atob.bind(Br),Js=Br.btoa.bind(Br);var Ra="0123456789abcdef".split("");function hl(yt){for(var gt="",wt=0;wt<4;wt++)gt+=Ra[yt>>8*wt+4&15]+Ra[yt>>8*wt&15];return gt}function Do(yt){return String.fromCharCode((255&yt)>>0,(65280&yt)>>8,(16711680&yt)>>16,(4278190080&yt)>>24)}function yo(yt){return Hs(yt).map(Do).join("")}var os=function(yt){for(var gt=0;gt<yt.length;gt++)yt[gt]=hl(yt[gt]);return yt.join("")}(Hs("hello"))!="5d41402abc4b2a76b9719d911017c592";function wo(yt,gt){if(os){var wt=(65535&yt)+(65535&gt);return(yt>>16)+(gt>>16)+(wt>>16)<<16|65535&wt}return yt+gt&4294967295}function Ps(yt,gt){var wt,Ct,Qt,kt;if(yt!==wt){for(var Yt=(Qt=yt,kt=1+(256/yt.length>>0),new Array(kt+1).join(Qt)),Zt=[],ne=0;ne<256;ne++)Zt[ne]=ne;var Ce=0;for(ne=0;ne<256;ne++){var Re=Zt[ne];Ce=(Ce+Re+Yt.charCodeAt(ne))%256,Zt[ne]=Zt[Ce],Zt[Ce]=Re}wt=yt,Ct=Zt}else Zt=Ct;var Qe=gt.length,en=0,ce=0,kn="";for(ne=0;ne<Qe;ne++)ce=(ce+(Re=Zt[en=(en+1)%256]))%256,Zt[en]=Zt[ce],Zt[ce]=Re,Yt=Zt[(Zt[en]+Zt[ce])%256],kn+=String.fromCharCode(gt.charCodeAt(ne)^Yt);return kn}var Pl={print:4,modify:8,copy:16,"annot-forms":32};function Hr(yt,gt,wt,Ct){this.v=1,this.r=2;var Qt=192;yt.forEach(function(Zt){if(Pl.perm!==void 0)throw new Error("Invalid permission: "+Zt);Qt+=Pl[Zt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var kt=(gt+this.padding).substr(0,32),Yt=(wt+this.padding).substr(0,32);this.O=this.processOwnerPassword(kt,Yt),this.P=-(1+(255^Qt)),this.encryptionKey=yo(kt+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ct)).substr(0,5),this.U=Ps(this.encryptionKey,this.padding)}function zr(yt){if(/[^\u0000-\u00ff]/.test(yt))throw new Error("Invalid PDF Name Object: "+yt+", Only accept ASCII characters.");for(var gt="",wt=yt.length,Ct=0;Ct<wt;Ct++){var Qt=yt.charCodeAt(Ct);Qt<33||Qt===35||Qt===37||Qt===40||Qt===41||Qt===47||Qt===60||Qt===62||Qt===91||Qt===93||Qt===123||Qt===125||Qt>126?gt+="#"+("0"+Qt.toString(16)).slice(-2):gt+=yt[Ct]}return gt}function Ni(yt){if((0,zt.Z)(yt)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var gt={};this.subscribe=function(wt,Ct,Qt){if(Qt=Qt||!1,typeof wt!="string"||typeof Ct!="function"||typeof Qt!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");gt.hasOwnProperty(wt)||(gt[wt]={});var kt=Math.random().toString(35);return gt[wt][kt]=[Ct,!!Qt],kt},this.unsubscribe=function(wt){for(var Ct in gt)if(gt[Ct][wt])return delete gt[Ct][wt],Object.keys(gt[Ct]).length===0&&delete gt[Ct],!0;return!1},this.publish=function(wt){if(gt.hasOwnProperty(wt)){var Ct=Array.prototype.slice.call(arguments,1),Qt=[];for(var kt in gt[wt]){var Yt=gt[wt][kt];try{Yt[0].apply(yt,Ct)}catch(Zt){Br.console&&vo.error("jsPDF PubSub Error",Zt.message,Zt)}Yt[1]&&Qt.push(kt)}Qt.length&&Qt.forEach(this.unsubscribe)}},this.getTopics=function(){return gt}}function to(yt){if(!(this instanceof to))return new to(yt);var gt="opacity,stroke-opacity".split(",");for(var wt in yt)yt.hasOwnProperty(wt)&&gt.indexOf(wt)>=0&&(this[wt]=yt[wt]);this.id="",this.objectNumber=-1}function hs(yt,gt){this.gState=yt,this.matrix=gt,this.id="",this.objectNumber=-1}function zs(yt,gt,wt,Ct,Qt){if(!(this instanceof zs))return new zs(yt,gt,wt,Ct,Qt);this.type=yt==="axial"?2:3,this.coords=gt,this.colors=wt,hs.call(this,Ct,Qt)}function Gs(yt,gt,wt,Ct,Qt){if(!(this instanceof Gs))return new Gs(yt,gt,wt,Ct,Qt);this.boundingBox=yt,this.xStep=gt,this.yStep=wt,this.stream="",this.cloneIndex=0,hs.call(this,Ct,Qt)}function so(yt){var gt,wt=typeof arguments[0]=="string"?arguments[0]:"p",Ct=arguments[1],Qt=arguments[2],kt=arguments[3],Yt=[],Zt=1,ne=16,Ce="S",Re=null;(0,zt.Z)(yt=yt||{})==="object"&&(wt=yt.orientation,Ct=yt.unit||Ct,Qt=yt.format||Qt,kt=yt.compress||yt.compressPdf||kt,(Re=yt.encryption||null)!==null&&(Re.userPassword=Re.userPassword||"",Re.ownerPassword=Re.ownerPassword||"",Re.userPermissions=Re.userPermissions||[]),Zt=typeof yt.userUnit=="number"?Math.abs(yt.userUnit):1,yt.precision!==void 0&&(gt=yt.precision),yt.floatPrecision!==void 0&&(ne=yt.floatPrecision),Ce=yt.defaultPathOperation||"S"),Yt=yt.filters||(kt===!0?["FlateEncode"]:Yt),Ct=Ct||"mm",wt=(""+(wt||"P")).toLowerCase();var Qe=yt.putOnlyUsedFonts||!1,en={},ce={internal:{},__private__:{}};ce.__private__.PubSub=Ni;var kn="1.3",Bn=ce.__private__.getPdfVersion=function(){return kn};ce.__private__.setPdfVersion=function(_t){kn=_t};var jn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};ce.__private__.getPageFormats=function(){return jn};var an=ce.__private__.getPageFormat=function(_t){return jn[_t]};Qt=Qt||"a4";var On={COMPAT:"compat",ADVANCED:"advanced"},mi=On.COMPAT;function Ui(){this.saveGraphicsState(),_n(new Cs(ko,0,0,-ko,0,Yh()*ko).toString()+" cm"),this.setFontSize(this.getFontSize()/ko),Ce="n",mi=On.ADVANCED}function ir(){this.restoreGraphicsState(),Ce="S",mi=On.COMPAT}var Er=ce.__private__.combineFontStyleAndFontWeight=function(_t,Ge){if(_t=="bold"&&Ge=="normal"||_t=="bold"&&Ge==400||_t=="normal"&&Ge=="italic"||_t=="bold"&&Ge=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Ge&&(_t=Ge==400||Ge==="normal"?_t==="italic"?"italic":"normal":Ge!=700&&Ge!=="bold"||_t!=="normal"?(Ge==700?"bold":Ge)+""+_t:"bold"),_t};ce.advancedAPI=function(_t){var Ge=mi===On.COMPAT;return Ge&&Ui.call(this),typeof _t!="function"||(_t(this),Ge&&ir.call(this)),this},ce.compatAPI=function(_t){var Ge=mi===On.ADVANCED;return Ge&&ir.call(this),typeof _t!="function"||(_t(this),Ge&&Ui.call(this)),this},ce.isAdvancedAPI=function(){return mi===On.ADVANCED};var _i,li=function(_t){if(mi!==On.ADVANCED)throw new Error(_t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Xi=ce.roundToPrecision=ce.__private__.roundToPrecision=function(_t,Ge){var Rn=gt||Ge;if(isNaN(_t)||isNaN(Rn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return _t.toFixed(Rn).replace(/0+$/,"")};_i=ce.hpf=ce.__private__.hpf=typeof ne=="number"?function(_t){if(isNaN(_t))throw new Error("Invalid argument passed to jsPDF.hpf");return Xi(_t,ne)}:ne==="smart"?function(_t){if(isNaN(_t))throw new Error("Invalid argument passed to jsPDF.hpf");return Xi(_t,_t>-1&&_t<1?16:5)}:function(_t){if(isNaN(_t))throw new Error("Invalid argument passed to jsPDF.hpf");return Xi(_t,16)};var yr=ce.f2=ce.__private__.f2=function(_t){if(isNaN(_t))throw new Error("Invalid argument passed to jsPDF.f2");return Xi(_t,2)},yn=ce.__private__.f3=function(_t){if(isNaN(_t))throw new Error("Invalid argument passed to jsPDF.f3");return Xi(_t,3)},bn=ce.scale=ce.__private__.scale=function(_t){if(isNaN(_t))throw new Error("Invalid argument passed to jsPDF.scale");return mi===On.COMPAT?_t*ko:mi===On.ADVANCED?_t:void 0},bi=function(_t){return mi===On.COMPAT?Yh()-_t:mi===On.ADVANCED?_t:void 0},hi=function(_t){return bn(bi(_t))};ce.__private__.setPrecision=ce.setPrecision=function(_t){typeof parseInt(_t,10)=="number"&&(gt=parseInt(_t,10))};var cr,sr="00000000000000000000000000000000",Vi=ce.__private__.getFileId=function(){return sr},zi=ce.__private__.setFileId=function(_t){return sr=_t!==void 0&&/^[a-fA-F0-9]{32}$/.test(_t)?_t.toUpperCase():sr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Re!==null&&(nl=new Hr(Re.userPermissions,Re.userPassword,Re.ownerPassword,sr)),sr};ce.setFileId=function(_t){return zi(_t),this},ce.getFileId=function(){return Vi()};var Gi=ce.__private__.convertDateToPDFDate=function(_t){var Ge=_t.getTimezoneOffset(),Rn=Ge<0?"+":"-",gi=Math.floor(Math.abs(Ge/60)),ji=Math.abs(Ge%60),fr=[Rn,Gn(gi),"'",Gn(ji),"'"].join("");return["D:",_t.getFullYear(),Gn(_t.getMonth()+1),Gn(_t.getDate()),Gn(_t.getHours()),Gn(_t.getMinutes()),Gn(_t.getSeconds()),fr].join("")},rr=ce.__private__.convertPDFDateToDate=function(_t){var Ge=parseInt(_t.substr(2,4),10),Rn=parseInt(_t.substr(6,2),10)-1,gi=parseInt(_t.substr(8,2),10),ji=parseInt(_t.substr(10,2),10),fr=parseInt(_t.substr(12,2),10),Or=parseInt(_t.substr(14,2),10);return new Date(Ge,Rn,gi,ji,fr,Or,0)},ao=ce.__private__.setCreationDate=function(_t){var Ge;if(_t===void 0&&(_t=new Date),_t instanceof Date)Ge=Gi(_t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(_t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Ge=_t}return cr=Ge},tn=ce.__private__.getCreationDate=function(_t){var Ge=cr;return _t==="jsDate"&&(Ge=rr(cr)),Ge};ce.setCreationDate=function(_t){return ao(_t),this},ce.getCreationDate=function(_t){return tn(_t)};var Un,Gn=ce.__private__.padd2=function(_t){return("0"+parseInt(_t)).slice(-2)},pi=ce.__private__.padd2Hex=function(_t){return("00"+(_t=_t.toString())).substr(_t.length)},Oi=0,$i=[],Wi=[],or=0,Mr=[],Gr=[],Uo=!1,Lo=Wi,Ss=function(){Oi=0,or=0,Wi=[],$i=[],Mr=[],pu=pl(),Su=pl()};ce.__private__.setCustomOutputDestination=function(_t){Uo=!0,Lo=_t};var wr=function(_t){Uo||(Lo=_t)};ce.__private__.resetCustomOutputDestination=function(){Uo=!1,Lo=Wi};var _n=ce.__private__.out=function(_t){return _t=_t.toString(),or+=_t.length+1,Lo.push(_t),Lo},ls=ce.__private__.write=function(_t){return _n(arguments.length===1?_t.toString():Array.prototype.join.call(arguments," "))},Jo=ce.__private__.getArrayBuffer=function(_t){for(var Ge=_t.length,Rn=new ArrayBuffer(Ge),gi=new Uint8Array(Rn);Ge--;)gi[Ge]=_t.charCodeAt(Ge);return Rn},Rr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];ce.__private__.getStandardFonts=function(){return Rr};var So=yt.fontSize||16;ce.__private__.setFontSize=ce.setFontSize=function(_t){return So=mi===On.ADVANCED?_t/ko:_t,this};var xo,Yr=ce.__private__.getFontSize=ce.getFontSize=function(){return mi===On.COMPAT?So:So*ko},ts=yt.R2L||!1;ce.__private__.setR2L=ce.setR2L=function(_t){return ts=_t,this},ce.__private__.getR2L=ce.getR2L=function(){return ts};var ms,cs=ce.__private__.setZoomMode=function(_t){var Ge=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(_t))xo=_t;else if(isNaN(_t)){if(Ge.indexOf(_t)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+_t+'" is not recognized.');xo=_t}else xo=parseInt(_t,10)};ce.__private__.getZoomMode=function(){return xo};var Ds,$o=ce.__private__.setPageMode=function(_t){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(_t)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+_t+'" is not recognized.');ms=_t};ce.__private__.getPageMode=function(){return ms};var ra=ce.__private__.setLayoutMode=function(_t){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(_t)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+_t+'" is not recognized.');Ds=_t};ce.__private__.getLayoutMode=function(){return Ds},ce.__private__.setDisplayMode=ce.setDisplayMode=function(_t,Ge,Rn){return cs(_t),ra(Ge),$o(Rn),this};var Bs={title:"",subject:"",author:"",keywords:"",creator:""};ce.__private__.getDocumentProperty=function(_t){if(Object.keys(Bs).indexOf(_t)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Bs[_t]},ce.__private__.getDocumentProperties=function(){return Bs},ce.__private__.setDocumentProperties=ce.setProperties=ce.setDocumentProperties=function(_t){for(var Ge in Bs)Bs.hasOwnProperty(Ge)&&_t[Ge]&&(Bs[Ge]=_t[Ge]);return this},ce.__private__.setDocumentProperty=function(_t,Ge){if(Object.keys(Bs).indexOf(_t)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Bs[_t]=Ge};var ta,ko,Au,Ca,gh,Ho={},gl={},AA=[],Ha={},ku={},oa={},ph={},oc=null,wl=0,_s=[],Ia=new Ni(ce),cA=yt.hotfixes||[],ou={},dA={},Fh=[],Cs=function _t(Ge,Rn,gi,ji,fr,Or){if(!(this instanceof _t))return new _t(Ge,Rn,gi,ji,fr,Or);isNaN(Ge)&&(Ge=1),isNaN(Rn)&&(Rn=0),isNaN(gi)&&(gi=0),isNaN(ji)&&(ji=1),isNaN(fr)&&(fr=0),isNaN(Or)&&(Or=0),this._matrix=[Ge,Rn,gi,ji,fr,Or]};Object.defineProperty(Cs.prototype,"sx",{get:function(){return this._matrix[0]},set:function(_t){this._matrix[0]=_t}}),Object.defineProperty(Cs.prototype,"shy",{get:function(){return this._matrix[1]},set:function(_t){this._matrix[1]=_t}}),Object.defineProperty(Cs.prototype,"shx",{get:function(){return this._matrix[2]},set:function(_t){this._matrix[2]=_t}}),Object.defineProperty(Cs.prototype,"sy",{get:function(){return this._matrix[3]},set:function(_t){this._matrix[3]=_t}}),Object.defineProperty(Cs.prototype,"tx",{get:function(){return this._matrix[4]},set:function(_t){this._matrix[4]=_t}}),Object.defineProperty(Cs.prototype,"ty",{get:function(){return this._matrix[5]},set:function(_t){this._matrix[5]=_t}}),Object.defineProperty(Cs.prototype,"a",{get:function(){return this._matrix[0]},set:function(_t){this._matrix[0]=_t}}),Object.defineProperty(Cs.prototype,"b",{get:function(){return this._matrix[1]},set:function(_t){this._matrix[1]=_t}}),Object.defineProperty(Cs.prototype,"c",{get:function(){return this._matrix[2]},set:function(_t){this._matrix[2]=_t}}),Object.defineProperty(Cs.prototype,"d",{get:function(){return this._matrix[3]},set:function(_t){this._matrix[3]=_t}}),Object.defineProperty(Cs.prototype,"e",{get:function(){return this._matrix[4]},set:function(_t){this._matrix[4]=_t}}),Object.defineProperty(Cs.prototype,"f",{get:function(){return this._matrix[5]},set:function(_t){this._matrix[5]=_t}}),Object.defineProperty(Cs.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Cs.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Cs.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Cs.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Cs.prototype.join=function(_t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(_i).join(_t)},Cs.prototype.multiply=function(_t){var Ge=_t.sx*this.sx+_t.shy*this.shx,Rn=_t.sx*this.shy+_t.shy*this.sy,gi=_t.shx*this.sx+_t.sy*this.shx,ji=_t.shx*this.shy+_t.sy*this.sy,fr=_t.tx*this.sx+_t.ty*this.shx+this.tx,Or=_t.tx*this.shy+_t.ty*this.sy+this.ty;return new Cs(Ge,Rn,gi,ji,fr,Or)},Cs.prototype.decompose=function(){var _t=this.sx,Ge=this.shy,Rn=this.shx,gi=this.sy,ji=this.tx,fr=this.ty,Or=Math.sqrt(_t*_t+Ge*Ge),_o=(_t/=Or)*Rn+(Ge/=Or)*gi;Rn-=_t*_o,gi-=Ge*_o;var gs=Math.sqrt(Rn*Rn+gi*gi);return _o/=gs,_t*(gi/=gs)<Ge*(Rn/=gs)&&(_t=-_t,Ge=-Ge,_o=-_o,Or=-Or),{scale:new Cs(Or,0,0,gs,0,0),translate:new Cs(1,0,0,1,ji,fr),rotate:new Cs(_t,Ge,-Ge,_t,0,0),skew:new Cs(1,0,_o,1,0,0)}},Cs.prototype.toString=function(_t){return this.join(" ")},Cs.prototype.inversed=function(){var _t=this.sx,Ge=this.shy,Rn=this.shx,gi=this.sy,ji=this.tx,fr=this.ty,Or=1/(_t*gi-Ge*Rn),_o=gi*Or,gs=-Ge*Or,ea=-Rn*Or,Ks=_t*Or;return new Cs(_o,gs,ea,Ks,-_o*ji-ea*fr,-gs*ji-Ks*fr)},Cs.prototype.applyToPoint=function(_t){var Ge=_t.x*this.sx+_t.y*this.shx+this.tx,Rn=_t.x*this.shy+_t.y*this.sy+this.ty;return new kh(Ge,Rn)},Cs.prototype.applyToRectangle=function(_t){var Ge=this.applyToPoint(_t),Rn=this.applyToPoint(new kh(_t.x+_t.w,_t.y+_t.h));return new bA(Ge.x,Ge.y,Rn.x-Ge.x,Rn.y-Ge.y)},Cs.prototype.clone=function(){var _t=this.sx,Ge=this.shy,Rn=this.shx,gi=this.sy,ji=this.tx,fr=this.ty;return new Cs(_t,Ge,Rn,gi,ji,fr)},ce.Matrix=Cs;var wu=ce.matrixMult=function(_t,Ge){return Ge.multiply(_t)},Fl=new Cs(1,0,0,1,0,0);ce.unitMatrix=ce.identityMatrix=Fl;var Gl=function(_t,Ge){if(!ku[_t]){var Rn=(Ge instanceof zs?"Sh":"P")+(Object.keys(Ha).length+1).toString(10);Ge.id=Rn,ku[_t]=Rn,Ha[Rn]=Ge,Ia.publish("addPattern",Ge)}};ce.ShadingPattern=zs,ce.TilingPattern=Gs,ce.addShadingPattern=function(_t,Ge){return li("addShadingPattern()"),Gl(_t,Ge),this},ce.beginTilingPattern=function(_t){li("beginTilingPattern()"),Ju(_t.boundingBox[0],_t.boundingBox[1],_t.boundingBox[2]-_t.boundingBox[0],_t.boundingBox[3]-_t.boundingBox[1],_t.matrix)},ce.endTilingPattern=function(_t,Ge){li("endTilingPattern()"),Ge.stream=Gr[Un].join(`
`),Gl(_t,Ge),Ia.publish("endTilingPattern",Ge),Fh.pop().restore()};var ho=ce.__private__.newObject=function(){var _t=pl();return Ku(_t,!0),_t},pl=ce.__private__.newObjectDeferred=function(){return Oi++,$i[Oi]=function(){return or},Oi},Ku=function(_t,Ge){return Ge=typeof Ge=="boolean"&&Ge,$i[_t]=or,Ge&&_n(_t+" 0 obj"),_t},PA=ce.__private__.newAdditionalObject=function(){var _t={objId:pl(),content:""};return Mr.push(_t),_t},pu=pl(),Su=pl(),xu=ce.__private__.decodeColorString=function(_t){var Ge=_t.split(" ");if(Ge.length!==2||Ge[1]!=="g"&&Ge[1]!=="G")Ge.length===5&&(Ge[4]==="k"||Ge[4]==="K")&&(Ge=[(1-Ge[0])*(1-Ge[3]),(1-Ge[1])*(1-Ge[3]),(1-Ge[2])*(1-Ge[3]),"r"]);else{var Rn=parseFloat(Ge[0]);Ge=[Rn,Rn,Rn,"r"]}for(var gi="#",ji=0;ji<3;ji++)gi+=("0"+Math.floor(255*parseFloat(Ge[ji])).toString(16)).slice(-2);return gi},Wu=ce.__private__.encodeColorString=function(_t){var Ge;typeof _t=="string"&&(_t={ch1:_t});var Rn=_t.ch1,gi=_t.ch2,ji=_t.ch3,fr=_t.ch4,Or=_t.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Rn=="string"&&Rn.charAt(0)!=="#"){var _o=new no(Rn);if(_o.ok)Rn=_o.toHex();else if(!/^\d*\.?\d*$/.test(Rn))throw new Error('Invalid color "'+Rn+'" passed to jsPDF.encodeColorString.')}if(typeof Rn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Rn)&&(Rn="#"+Rn[1]+Rn[1]+Rn[2]+Rn[2]+Rn[3]+Rn[3]),typeof Rn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Rn)){var gs=parseInt(Rn.substr(1),16);Rn=gs>>16&255,gi=gs>>8&255,ji=255&gs}if(gi===void 0||fr===void 0&&Rn===gi&&gi===ji)if(typeof Rn=="string")Ge=Rn+" "+Or[0];else switch(_t.precision){case 2:Ge=yr(Rn/255)+" "+Or[0];break;case 3:default:Ge=yn(Rn/255)+" "+Or[0]}else if(fr===void 0||(0,zt.Z)(fr)==="object"){if(fr&&!isNaN(fr.a)&&fr.a===0)return Ge=["1.","1.","1.",Or[1]].join(" ");if(typeof Rn=="string")Ge=[Rn,gi,ji,Or[1]].join(" ");else switch(_t.precision){case 2:Ge=[yr(Rn/255),yr(gi/255),yr(ji/255),Or[1]].join(" ");break;default:case 3:Ge=[yn(Rn/255),yn(gi/255),yn(ji/255),Or[1]].join(" ")}}else if(typeof Rn=="string")Ge=[Rn,gi,ji,fr,Or[2]].join(" ");else switch(_t.precision){case 2:Ge=[yr(Rn),yr(gi),yr(ji),yr(fr),Or[2]].join(" ");break;case 3:default:Ge=[yn(Rn),yn(gi),yn(ji),yn(fr),Or[2]].join(" ")}return Ge},Vu=ce.__private__.getFilters=function(){return Yt},fl=ce.__private__.putStream=function(_t){var Ge=(_t=_t||{}).data||"",Rn=_t.filters||Vu(),gi=_t.alreadyAppliedFilters||[],ji=_t.addLength1||!1,fr=Ge.length,Or=_t.objectId,_o=function(ma){return ma};if(Re!==null&&Or===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Re!==null&&(_o=nl.encryptor(Or,0));var gs={};Rn===!0&&(Rn=["FlateEncode"]);var ea=_t.additionalKeyValues||[],Ks=(gs=so.API.processDataByFilters!==void 0?so.API.processDataByFilters(Ge,Rn):{data:Ge,reverseChain:[]}).reverseChain+(Array.isArray(gi)?gi.join(" "):gi.toString());if(gs.data.length!==0&&(ea.push({key:"Length",value:gs.data.length}),ji===!0&&ea.push({key:"Length1",value:fr})),Ks.length!=0)if(Ks.split("/").length-1==1)ea.push({key:"Filter",value:Ks});else{ea.push({key:"Filter",value:"["+Ks+"]"});for(var La=0;La<ea.length;La+=1)if(ea[La].key==="DecodeParms"){for(var ss=[],ml=0;ml<gs.reverseChain.split("/").length-1;ml+=1)ss.push("null");ss.push(ea[La].value),ea[La].value="["+ss.join(" ")+"]"}}_n("<<");for(var xl=0;xl<ea.length;xl++)_n("/"+ea[xl].key+" "+ea[xl].value);_n(">>"),gs.data.length!==0&&(_n("stream"),_n(_o(gs.data)),_n("endstream"))},Yu=ce.__private__.putPage=function(_t){var Ge=_t.number,Rn=_t.data,gi=_t.objId,ji=_t.contentsObjId;Ku(gi,!0),_n("<</Type /Page"),_n("/Parent "+_t.rootDictionaryObjId+" 0 R"),_n("/Resources "+_t.resourceDictionaryObjId+" 0 R"),_n("/MediaBox ["+parseFloat(_i(_t.mediaBox.bottomLeftX))+" "+parseFloat(_i(_t.mediaBox.bottomLeftY))+" "+_i(_t.mediaBox.topRightX)+" "+_i(_t.mediaBox.topRightY)+"]"),_t.cropBox!==null&&_n("/CropBox ["+_i(_t.cropBox.bottomLeftX)+" "+_i(_t.cropBox.bottomLeftY)+" "+_i(_t.cropBox.topRightX)+" "+_i(_t.cropBox.topRightY)+"]"),_t.bleedBox!==null&&_n("/BleedBox ["+_i(_t.bleedBox.bottomLeftX)+" "+_i(_t.bleedBox.bottomLeftY)+" "+_i(_t.bleedBox.topRightX)+" "+_i(_t.bleedBox.topRightY)+"]"),_t.trimBox!==null&&_n("/TrimBox ["+_i(_t.trimBox.bottomLeftX)+" "+_i(_t.trimBox.bottomLeftY)+" "+_i(_t.trimBox.topRightX)+" "+_i(_t.trimBox.topRightY)+"]"),_t.artBox!==null&&_n("/ArtBox ["+_i(_t.artBox.bottomLeftX)+" "+_i(_t.artBox.bottomLeftY)+" "+_i(_t.artBox.topRightX)+" "+_i(_t.artBox.topRightY)+"]"),typeof _t.userUnit=="number"&&_t.userUnit!==1&&_n("/UserUnit "+_t.userUnit),Ia.publish("putPage",{objId:gi,pageContext:_s[Ge],pageNumber:Ge,page:Rn}),_n("/Contents "+ji+" 0 R"),_n(">>"),_n("endobj");var fr=Rn.join(`
`);return mi===On.ADVANCED&&(fr+=`
Q`),Ku(ji,!0),fl({data:fr,filters:Vu(),objectId:ji}),_n("endobj"),gi},sc=ce.__private__.putPages=function(){var _t,Ge,Rn=[];for(_t=1;_t<=wl;_t++)_s[_t].objId=pl(),_s[_t].contentsObjId=pl();for(_t=1;_t<=wl;_t++)Rn.push(Yu({number:_t,data:Gr[_t],objId:_s[_t].objId,contentsObjId:_s[_t].contentsObjId,mediaBox:_s[_t].mediaBox,cropBox:_s[_t].cropBox,bleedBox:_s[_t].bleedBox,trimBox:_s[_t].trimBox,artBox:_s[_t].artBox,userUnit:_s[_t].userUnit,rootDictionaryObjId:pu,resourceDictionaryObjId:Su}));Ku(pu,!0),_n("<</Type /Pages");var gi="/Kids [";for(Ge=0;Ge<wl;Ge++)gi+=Rn[Ge]+" 0 R ";_n(gi+"]"),_n("/Count "+wl),_n(">>"),_n("endobj"),Ia.publish("postPutPages")},Xu=function(_t){Ia.publish("putFont",{font:_t,out:_n,newObject:ho,putStream:fl}),_t.isAlreadyPutted!==!0&&(_t.objectNumber=ho(),_n("<<"),_n("/Type /Font"),_n("/BaseFont /"+zr(_t.postScriptName)),_n("/Subtype /Type1"),typeof _t.encoding=="string"&&_n("/Encoding /"+_t.encoding),_n("/FirstChar 32"),_n("/LastChar 255"),_n(">>"),_n("endobj"))},fA=function(){for(var _t in Ho)Ho.hasOwnProperty(_t)&&(Qe===!1||Qe===!0&&en.hasOwnProperty(_t))&&Xu(Ho[_t])},Zu=function(_t){_t.objectNumber=ho();var Ge=[];Ge.push({key:"Type",value:"/XObject"}),Ge.push({key:"Subtype",value:"/Form"}),Ge.push({key:"BBox",value:"["+[_i(_t.x),_i(_t.y),_i(_t.x+_t.width),_i(_t.y+_t.height)].join(" ")+"]"}),Ge.push({key:"Matrix",value:"["+_t.matrix.toString()+"]"});var Rn=_t.pages[1].join(`
`);fl({data:Rn,additionalKeyValues:Ge,objectId:_t.objectNumber}),_n("endobj")},UA=function(){for(var _t in ou)ou.hasOwnProperty(_t)&&Zu(ou[_t])},sd=function(_t,Ge){var Rn,gi=[],ji=1/(Ge-1);for(Rn=0;Rn<1;Rn+=ji)gi.push(Rn);if(gi.push(1),_t[0].offset!=0){var fr={offset:0,color:_t[0].color};_t.unshift(fr)}if(_t[_t.length-1].offset!=1){var Or={offset:1,color:_t[_t.length-1].color};_t.push(Or)}for(var _o="",gs=0,ea=0;ea<gi.length;ea++){for(Rn=gi[ea];Rn>_t[gs+1].offset;)gs++;var Ks=_t[gs].offset,La=(Rn-Ks)/(_t[gs+1].offset-Ks),ss=_t[gs].color,ml=_t[gs+1].color;_o+=pi(Math.round((1-La)*ss[0]+La*ml[0]).toString(16))+pi(Math.round((1-La)*ss[1]+La*ml[1]).toString(16))+pi(Math.round((1-La)*ss[2]+La*ml[2]).toString(16))}return _o.trim()},El=function(_t,Ge){Ge||(Ge=21);var Rn=ho(),gi=sd(_t.colors,Ge),ji=[];ji.push({key:"FunctionType",value:"0"}),ji.push({key:"Domain",value:"[0.0 1.0]"}),ji.push({key:"Size",value:"["+Ge+"]"}),ji.push({key:"BitsPerSample",value:"8"}),ji.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ji.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),fl({data:gi,additionalKeyValues:ji,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Rn}),_n("endobj"),_t.objectNumber=ho(),_n("<< /ShadingType "+_t.type),_n("/ColorSpace /DeviceRGB");var fr="/Coords ["+_i(parseFloat(_t.coords[0]))+" "+_i(parseFloat(_t.coords[1]))+" ";_t.type===2?fr+=_i(parseFloat(_t.coords[2]))+" "+_i(parseFloat(_t.coords[3])):fr+=_i(parseFloat(_t.coords[2]))+" "+_i(parseFloat(_t.coords[3]))+" "+_i(parseFloat(_t.coords[4]))+" "+_i(parseFloat(_t.coords[5])),_n(fr+="]"),_t.matrix&&_n("/Matrix ["+_t.matrix.toString()+"]"),_n("/Function "+Rn+" 0 R"),_n("/Extend [true true]"),_n(">>"),_n("endobj")},ac=function(_t,Ge){var Rn=pl(),gi=ho();Ge.push({resourcesOid:Rn,objectOid:gi}),_t.objectNumber=gi;var ji=[];ji.push({key:"Type",value:"/Pattern"}),ji.push({key:"PatternType",value:"1"}),ji.push({key:"PaintType",value:"1"}),ji.push({key:"TilingType",value:"1"}),ji.push({key:"BBox",value:"["+_t.boundingBox.map(_i).join(" ")+"]"}),ji.push({key:"XStep",value:_i(_t.xStep)}),ji.push({key:"YStep",value:_i(_t.yStep)}),ji.push({key:"Resources",value:Rn+" 0 R"}),_t.matrix&&ji.push({key:"Matrix",value:"["+_t.matrix.toString()+"]"}),fl({data:_t.stream,additionalKeyValues:ji,objectId:_t.objectNumber}),_n("endobj")},Kh=function(_t){var Ge;for(Ge in Ha)Ha.hasOwnProperty(Ge)&&(Ha[Ge]instanceof zs?El(Ha[Ge]):Ha[Ge]instanceof Gs&&ac(Ha[Ge],_t))},QA=function(_t){for(var Ge in _t.objectNumber=ho(),_n("<<"),_t)switch(Ge){case"opacity":_n("/ca "+yr(_t[Ge]));break;case"stroke-opacity":_n("/CA "+yr(_t[Ge]))}_n(">>"),_n("endobj")},ad=function(){var _t;for(_t in oa)oa.hasOwnProperty(_t)&&QA(oa[_t])},ld=function(){for(var _t in _n("/XObject <<"),ou)ou.hasOwnProperty(_t)&&ou[_t].objectNumber>=0&&_n("/"+_t+" "+ou[_t].objectNumber+" 0 R");Ia.publish("putXobjectDict"),_n(">>")},kc=function(){nl.oid=ho(),_n("<<"),_n("/Filter /Standard"),_n("/V "+nl.v),_n("/R "+nl.r),_n("/U <"+nl.toHexString(nl.U)+">"),_n("/O <"+nl.toHexString(nl.O)+">"),_n("/P "+nl.P),_n(">>"),_n("endobj")},qd=function(){for(var _t in _n("/Font <<"),Ho)Ho.hasOwnProperty(_t)&&(Qe===!1||Qe===!0&&en.hasOwnProperty(_t))&&_n("/"+_t+" "+Ho[_t].objectNumber+" 0 R");_n(">>")},lc=function(){if(Object.keys(Ha).length>0){for(var _t in _n("/Shading <<"),Ha)Ha.hasOwnProperty(_t)&&Ha[_t]instanceof zs&&Ha[_t].objectNumber>=0&&_n("/"+_t+" "+Ha[_t].objectNumber+" 0 R");Ia.publish("putShadingPatternDict"),_n(">>")}},Bu=function(_t){if(Object.keys(Ha).length>0){for(var Ge in _n("/Pattern <<"),Ha)Ha.hasOwnProperty(Ge)&&Ha[Ge]instanceof ce.TilingPattern&&Ha[Ge].objectNumber>=0&&Ha[Ge].objectNumber<_t&&_n("/"+Ge+" "+Ha[Ge].objectNumber+" 0 R");Ia.publish("putTilingPatternDict"),_n(">>")}},tf=function(){if(Object.keys(oa).length>0){var _t;for(_t in _n("/ExtGState <<"),oa)oa.hasOwnProperty(_t)&&oa[_t].objectNumber>=0&&_n("/"+_t+" "+oa[_t].objectNumber+" 0 R");Ia.publish("putGStateDict"),_n(">>")}},Zl=function(_t){Ku(_t.resourcesOid,!0),_n("<<"),_n("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),qd(),lc(),Bu(_t.objectOid),tf(),ld(),_n(">>"),_n("endobj")},RA=function(){var _t=[];fA(),ad(),UA(),Kh(_t),Ia.publish("putResources"),_t.forEach(Zl),Zl({resourcesOid:Su,objectOid:Number.MAX_SAFE_INTEGER}),Ia.publish("postPutResources")},uc=function(){Ia.publish("putAdditionalObjects");for(var _t=0;_t<Mr.length;_t++){var Ge=Mr[_t];Ku(Ge.objId,!0),_n(Ge.content),_n("endobj")}Ia.publish("postPutAdditionalObjects")},el=function(_t){gl[_t.fontName]=gl[_t.fontName]||{},gl[_t.fontName][_t.fontStyle]=_t.id},Wh=function(_t,Ge,Rn,gi,ji){var fr={id:"F"+(Object.keys(Ho).length+1).toString(10),postScriptName:_t,fontName:Ge,fontStyle:Rn,encoding:gi,isStandardFont:ji||!1,metadata:{}};return Ia.publish("addFont",{font:fr,instance:this}),Ho[fr.id]=fr,el(fr),fr.id},ud=function(_t){for(var Ge=0,Rn=Rr.length;Ge<Rn;Ge++){var gi=Wh.call(this,_t[Ge][0],_t[Ge][1],_t[Ge][2],Rr[Ge][3],!0);Qe===!1&&(en[gi]=!0);var ji=_t[Ge][0].split("-");el({id:gi,fontName:ji[0],fontStyle:ji[1]||""})}Ia.publish("addFonts",{fonts:Ho,dictionary:gl})},Eh=function(_t){return _t.foo=function(){try{return _t.apply(this,arguments)}catch(gi){var Ge=gi.stack||"";~Ge.indexOf(" at ")&&(Ge=Ge.split(" at ")[1]);var Rn="Error in function "+Ge.split(`
`)[0].split("<")[0]+": "+gi.message;if(!Br.console)throw new Error(Rn);Br.console.error(Rn,gi),Br.alert&&alert(Rn)}},_t.foo.bar=_t,_t.foo},hc=function(_t,Ge){var Rn,gi,ji,fr,Or,_o,gs,ea,Ks;if(ji=(Ge=Ge||{}).sourceEncoding||"Unicode",Or=Ge.outputEncoding,(Ge.autoencode||Or)&&Ho[ta].metadata&&Ho[ta].metadata[ji]&&Ho[ta].metadata[ji].encoding&&(fr=Ho[ta].metadata[ji].encoding,!Or&&Ho[ta].encoding&&(Or=Ho[ta].encoding),!Or&&fr.codePages&&(Or=fr.codePages[0]),typeof Or=="string"&&(Or=fr[Or]),Or)){for(gs=!1,_o=[],Rn=0,gi=_t.length;Rn<gi;Rn++)(ea=Or[_t.charCodeAt(Rn)])?_o.push(String.fromCharCode(ea)):_o.push(_t[Rn]),_o[Rn].charCodeAt(0)>>8&&(gs=!0);_t=_o.join("")}for(Rn=_t.length;gs===void 0&&Rn!==0;)_t.charCodeAt(Rn-1)>>8&&(gs=!0),Rn--;if(!gs)return _t;for(_o=Ge.noBOM?[]:[254,255],Rn=0,gi=_t.length;Rn<gi;Rn++){if((Ks=(ea=_t.charCodeAt(Rn))>>8)>>8)throw new Error("Character at position "+Rn+" of string '"+_t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");_o.push(Ks),_o.push(ea-(Ks<<8))}return String.fromCharCode.apply(void 0,_o)},on=ce.__private__.pdfEscape=ce.pdfEscape=function(_t,Ge){return hc(_t,Ge).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gA=ce.__private__.beginPage=function(_t){Gr[++wl]=[],_s[wl]={objId:0,contentsObjId:0,userUnit:Number(Zt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(_t[0]),topRightY:Number(_t[1])}},hd(wl),wr(Gr[Un])},Mh=function(_t,Ge){var Rn,gi,ji;switch(wt=Ge||wt,typeof _t=="string"&&(Rn=an(_t.toLowerCase()),Array.isArray(Rn)&&(gi=Rn[0],ji=Rn[1])),Array.isArray(_t)&&(gi=_t[0]*ko,ji=_t[1]*ko),isNaN(gi)&&(gi=Qt[0],ji=Qt[1]),(gi>14400||ji>14400)&&(vo.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),gi=Math.min(14400,gi),ji=Math.min(14400,ji)),Qt=[gi,ji],wt.substr(0,1)){case"l":ji>gi&&(Qt=[ji,gi]);break;case"p":gi>ji&&(Qt=[ji,gi])}gA(Qt),Ac(GA),_n(mh),vh!==0&&_n(vh+" J"),Td!==0&&_n(Td+" j"),Ia.publish("addPage",{pageNumber:wl})},pf=function(_t){_t>0&&_t<=wl&&(Gr.splice(_t,1),_s.splice(_t,1),wl--,Un>wl&&(Un=wl),this.setPage(Un))},hd=function(_t){_t>0&&_t<=wl&&(Un=_t)},Ld=ce.__private__.getNumberOfPages=ce.getNumberOfPages=function(){return Gr.length-1},Tc=function(_t,Ge,Rn){var gi,ji=void 0;return Rn=Rn||{},_t=_t!==void 0?_t:Ho[ta].fontName,Ge=Ge!==void 0?Ge:Ho[ta].fontStyle,gi=_t.toLowerCase(),gl[gi]!==void 0&&gl[gi][Ge]!==void 0?ji=gl[gi][Ge]:gl[_t]!==void 0&&gl[_t][Ge]!==void 0?ji=gl[_t][Ge]:Rn.disableWarning===!1&&vo.warn("Unable to look up font label for font '"+_t+"', '"+Ge+"'. Refer to getFontList() for available fonts."),ji||Rn.noFallback||(ji=gl.times[Ge])==null&&(ji=gl.times.normal),ji},mf=ce.__private__.putInfo=function(){var _t=ho(),Ge=function(gi){return gi};for(var Rn in Re!==null&&(Ge=nl.encryptor(_t,0)),_n("<<"),_n("/Producer ("+on(Ge("jsPDF "+so.version))+")"),Bs)Bs.hasOwnProperty(Rn)&&Bs[Rn]&&_n("/"+Rn.substr(0,1).toUpperCase()+Rn.substr(1)+" ("+on(Ge(Bs[Rn]))+")");_n("/CreationDate ("+on(Ge(cr))+")"),_n(">>"),_n("endobj")},_l=ce.__private__.putCatalog=function(_t){var Ge=(_t=_t||{}).rootDictionaryObjId||pu;switch(ho(),_n("<<"),_n("/Type /Catalog"),_n("/Pages "+Ge+" 0 R"),xo||(xo="fullwidth"),xo){case"fullwidth":_n("/OpenAction [3 0 R /FitH null]");break;case"fullheight":_n("/OpenAction [3 0 R /FitV null]");break;case"fullpage":_n("/OpenAction [3 0 R /Fit]");break;case"original":_n("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Rn=""+xo;Rn.substr(Rn.length-1)==="%"&&(xo=parseInt(xo)/100),typeof xo=="number"&&_n("/OpenAction [3 0 R /XYZ null null "+yr(xo)+"]")}switch(Ds||(Ds="continuous"),Ds){case"continuous":_n("/PageLayout /OneColumn");break;case"single":_n("/PageLayout /SinglePage");break;case"two":case"twoleft":_n("/PageLayout /TwoColumnLeft");break;case"tworight":_n("/PageLayout /TwoColumnRight")}ms&&_n("/PageMode /"+ms),Ia.publish("putCatalog"),_n(">>"),_n("endobj")},Oc=ce.__private__.putTrailer=function(){_n("trailer"),_n("<<"),_n("/Size "+(Oi+1)),_n("/Root "+Oi+" 0 R"),_n("/Info "+(Oi-1)+" 0 R"),Re!==null&&_n("/Encrypt "+nl.oid+" 0 R"),_n("/ID [ <"+sr+"> <"+sr+"> ]"),_n(">>")},Fd=ce.__private__.putHeader=function(){_n("%PDF-"+kn),_n("%\xBA\xDF\xAC\xE0")},Ed=ce.__private__.putXRef=function(){var _t="0000000000";_n("xref"),_n("0 "+(Oi+1)),_n("0000000000 65535 f ");for(var Ge=1;Ge<=Oi;Ge++)typeof $i[Ge]=="function"?_n((_t+$i[Ge]()).slice(-10)+" 00000 n "):$i[Ge]!==void 0?_n((_t+$i[Ge]).slice(-10)+" 00000 n "):_n("0000000000 00000 n ")},HA=ce.__private__.buildDocument=function(){Ss(),wr(Wi),Ia.publish("buildDocument"),Fd(),sc(),uc(),RA(),Re!==null&&kc(),mf(),_l();var _t=or;return Ed(),Oc(),_n("startxref"),_n(""+_t),_n("%%EOF"),wr(Gr[Un]),Wi.join(`
`)},Ad=ce.__private__.getBlob=function(_t){return new Blob([Jo(_t)],{type:"application/pdf"})},cd=ce.output=ce.__private__.output=Eh(function(_t,Ge){switch(typeof(Ge=Ge||{})=="string"?Ge={filename:Ge}:Ge.filename=Ge.filename||"generated.pdf",_t){case void 0:return HA();case"save":ce.save(Ge.filename);break;case"arraybuffer":return Jo(HA());case"blob":return Ad(HA());case"bloburi":case"bloburl":if(Br.URL!==void 0&&typeof Br.URL.createObjectURL=="function")return Br.URL&&Br.URL.createObjectURL(Ad(HA()))||void 0;vo.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Rn="",gi=HA();try{Rn=Js(gi)}catch(ml){Rn=Js(unescape(encodeURIComponent(gi)))}return"data:application/pdf;filename="+Ge.filename+";base64,"+Rn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Br)==="[object Window]"){var ji="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",fr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Ge.pdfObjectUrl&&(ji=Ge.pdfObjectUrl,fr="");var Or='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ji+'"'+fr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Ge)+");<\/script></body></html>",_o=Br.open();return _o!==null&&_o.document.write(Or),_o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Br)==="[object Window]"){var gs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Ge.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Ge.filename+'" width="500px" height="400px" /></body></html>',ea=Br.open();if(ea!==null){ea.document.write(gs);var Ks=this;ea.document.documentElement.querySelector("#pdfViewer").onload=function(){ea.document.title=Ge.filename,ea.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ks.output("bloburl"))}}return ea}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Br)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var La='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Ge)+'"></iframe></body></html>',ss=Br.open();if(ss!==null&&(ss.document.write(La),ss.document.title=Ge.filename),ss||typeof safari=="undefined")return ss;break;case"datauri":case"dataurl":return Br.document.location.href=this.output("datauristring",Ge);default:return null}}),Tu=function(_t){return Array.isArray(cA)===!0&&cA.indexOf(_t)>-1};switch(Ct){case"pt":ko=1;break;case"mm":ko=72/25.4;break;case"cm":ko=72/2.54;break;case"in":ko=72;break;case"px":ko=Tu("px_scaling")==1?.75:96/72;break;case"pc":case"em":ko=12;break;case"ex":ko=6;break;default:if(typeof Ct!="number")throw new Error("Invalid unit: "+Ct);ko=Ct}var nl=null;ao(),zi();var Dc=function(_t){return Re!==null?nl.encryptor(_t,0):function(Ge){return Ge}},Md=ce.__private__.getPageInfo=ce.getPageInfo=function(_t){if(isNaN(_t)||_t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:_s[_t].objId,pageNumber:_t,pageContext:_s[_t]}},bs=ce.__private__.getPageInfoByObjId=function(_t){if(isNaN(_t)||_t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Ge in _s)if(_s[Ge].objId===_t)break;return Md(Ge)},dd=ce.__private__.getCurrentPageInfo=ce.getCurrentPageInfo=function(){return{objId:_s[Un].objId,pageNumber:Un,pageContext:_s[Un]}};ce.addPage=function(){return Mh.apply(this,arguments),this},ce.setPage=function(){return hd.apply(this,arguments),wr.call(this,Gr[Un]),this},ce.insertPage=function(_t){return this.addPage(),this.movePage(Un,_t),this},ce.movePage=function(_t,Ge){var Rn,gi;if(_t>Ge){Rn=Gr[_t],gi=_s[_t];for(var ji=_t;ji>Ge;ji--)Gr[ji]=Gr[ji-1],_s[ji]=_s[ji-1];Gr[Ge]=Rn,_s[Ge]=gi,this.setPage(Ge)}else if(_t<Ge){Rn=Gr[_t],gi=_s[_t];for(var fr=_t;fr<Ge;fr++)Gr[fr]=Gr[fr+1],_s[fr]=_s[fr+1];Gr[Ge]=Rn,_s[Ge]=gi,this.setPage(Ge)}return this},ce.deletePage=function(){return pf.apply(this,arguments),this},ce.__private__.text=ce.text=function(_t,Ge,Rn,gi,ji){var fr,Or,_o,gs,ea,Ks,La,ss,ml,xl=(gi=gi||{}).scope||this;if(typeof _t=="number"&&typeof Ge=="number"&&(typeof Rn=="string"||Array.isArray(Rn))){var ma=Rn;Rn=Ge,Ge=_t,_t=ma}if(arguments[3]instanceof Cs?(li("The transform parameter of text() with a Matrix value"),ml=ji):(_o=arguments[4],gs=arguments[5],(0,zt.Z)(La=arguments[3])==="object"&&La!==null||(typeof _o=="string"&&(gs=_o,_o=null),typeof La=="string"&&(gs=La,La=null),typeof La=="number"&&(_o=La,La=null),gi={flags:La,angle:_o,align:gs})),isNaN(Ge)||isNaN(Rn)||_t==null)throw new Error("Invalid arguments passed to jsPDF.text");if(_t.length===0)return xl;var ja="",Lu=!1,Ou=typeof gi.lineHeightFactor=="number"?gi.lineHeightFactor:pA,yh=xl.internal.scaleFactor;function vc(Aa){return Aa=Aa.split(" ").join(Array(gi.TabLen||9).join(" ")),on(Aa,La)}function Hc(Aa){for(var $s,ua=Aa.concat(),ka=[],Bl=ua.length;Bl--;)typeof($s=ua.shift())=="string"?ka.push($s):Array.isArray(Aa)&&($s.length===1||$s[1]===void 0&&$s[2]===void 0)?ka.push($s[0]):ka.push([$s[0],$s[1],$s[2]]);return ka}function zc(Aa,$s){var ua;if(typeof Aa=="string")ua=$s(Aa)[0];else if(Array.isArray(Aa)){for(var ka,Bl,$r=Aa.concat(),Qs=[],$a=$r.length;$a--;)typeof(ka=$r.shift())=="string"?Qs.push($s(ka)[0]):Array.isArray(ka)&&typeof ka[0]=="string"&&(Bl=$s(ka[0],ka[1],ka[2]),Qs.push([Bl[0],Bl[1],Bl[2]]));ua=Qs}return ua}var Gc=!1,Xh=!0;if(typeof _t=="string")Gc=!0;else if(Array.isArray(_t)){var KA=_t.concat();Or=[];for(var Zh,Us=KA.length;Us--;)(typeof(Zh=KA.shift())!="string"||Array.isArray(Zh)&&typeof Zh[0]!="string")&&(Xh=!1);Gc=Xh}if(Gc===!1)throw new Error('Type of text must be string or Array. "'+_t+'" is not recognized.');typeof _t=="string"&&(_t=_t.match(/[\r?\n]/)?_t.split(/\r\n|\r|\n/g):[_t]);var Th=So/xl.internal.scaleFactor,yc=Th*(Ou-1);switch(gi.baseline){case"bottom":Rn-=yc;break;case"top":Rn+=Th-yc;break;case"hanging":Rn+=Th-2*yc;break;case"middle":Rn+=Th/2-yc}if((Ks=gi.maxWidth||0)>0&&(typeof _t=="string"?_t=xl.splitTextToSize(_t,Ks):Object.prototype.toString.call(_t)==="[object Array]"&&(_t=_t.reduce(function(Aa,$s){return Aa.concat(xl.splitTextToSize($s,Ks))},[]))),fr={text:_t,x:Ge,y:Rn,options:gi,mutex:{pdfEscape:on,activeFontKey:ta,fonts:Ho,activeFontSize:So}},Ia.publish("preProcessText",fr),_t=fr.text,_o=(gi=fr.options).angle,!(ml instanceof Cs)&&_o&&typeof _o=="number"){_o*=Math.PI/180,gi.rotationDirection===0&&(_o=-_o),mi===On.ADVANCED&&(_o=-_o);var il=Math.cos(_o),$u=Math.sin(_o);ml=new Cs(il,$u,-$u,il,0,0)}else _o&&_o instanceof Cs&&(ml=_o);mi!==On.ADVANCED||ml||(ml=Fl),(ea=gi.charSpace||Qc)!==void 0&&(ja+=_i(bn(ea))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(ss=gi.horizontalScale)!==void 0&&(ja+=_i(100*ss)+` Tz
`),gi.lang;var Jl=-1,LA=gi.renderingMode!==void 0?gi.renderingMode:gi.stroke,za=xl.internal.getCurrentPageInfo().pageContext;switch(LA){case 0:case!1:case"fill":Jl=0;break;case 1:case!0:case"stroke":Jl=1;break;case 2:case"fillThenStroke":Jl=2;break;case 3:case"invisible":Jl=3;break;case 4:case"fillAndAddForClipping":Jl=4;break;case 5:case"strokeAndAddPathForClipping":Jl=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Jl=6;break;case 7:case"addToPathForClipping":Jl=7}var wc=za.usedRenderingMode!==void 0?za.usedRenderingMode:-1;Jl!==-1?ja+=Jl+` Tr
`:wc!==-1&&(ja+=`0 Tr
`),Jl!==-1&&(za.usedRenderingMode=Jl),gs=gi.align||"left";var Ol,wh=So*Ou,Sc=xl.internal.pageSize.getWidth(),it=Ho[ta];ea=gi.charSpace||Qc,Ks=gi.maxWidth||0,La=Object.assign({autoencode:!0,noBOM:!0},gi.flags);var ot=[],ct=function(Aa){return xl.getStringUnitWidth(Aa,{font:it,charSpace:ea,fontSize:So,doKerning:!1})*So/yh};if(Object.prototype.toString.call(_t)==="[object Array]"){var At;Or=Hc(_t),gs!=="left"&&(Ol=Or.map(ct));var mt,Dt=0;if(gs==="right"){Ge-=Ol[0],_t=[],Us=Or.length;for(var qt=0;qt<Us;qt++)qt===0?(mt=mA(Ge),At=bu(Rn)):(mt=bn(Dt-Ol[qt]),At=-wh),_t.push([Or[qt],mt,At]),Dt=Ol[qt]}else if(gs==="center"){Ge-=Ol[0]/2,_t=[],Us=Or.length;for(var he=0;he<Us;he++)he===0?(mt=mA(Ge),At=bu(Rn)):(mt=bn((Dt-Ol[he])/2),At=-wh),_t.push([Or[he],mt,At]),Dt=Ol[he]}else if(gs==="left"){_t=[],Us=Or.length;for(var ue=0;ue<Us;ue++)_t.push(Or[ue])}else if(gs==="justify"&&it.encoding==="Identity-H"){_t=[],Us=Or.length,Ks=Ks!==0?Ks:Sc;for(var Me=0,xn=0;xn<Us;xn++)if(At=xn===0?bu(Rn):-wh,mt=xn===0?mA(Ge):Me,xn<Us-1){var _e=bn((Ks-Ol[xn])/(Or[xn].split(" ").length-1)),ri=Or[xn].split(" ");_t.push([ri[0]+" ",mt,At]),Me=0;for(var ti=1;ti<ri.length;ti++){var qi=(ct(ri[ti-1]+" "+ri[ti])-ct(ri[ti]))*yh+_e;ti==ri.length-1?_t.push([ri[ti],qi,0]):_t.push([ri[ti]+" ",qi,0]),Me-=qi}}else _t.push([Or[xn],mt,At]);_t.push(["",Me,0])}else{if(gs!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(_t=[],Us=Or.length,Ks=Ks!==0?Ks:Sc,xn=0;xn<Us;xn++)At=xn===0?bu(Rn):-wh,mt=xn===0?mA(Ge):0,xn<Us-1?ot.push(_i(bn((Ks-Ol[xn])/(Or[xn].split(" ").length-1)))):ot.push(0),_t.push([Or[xn],mt,At])}}var lr=typeof gi.R2L=="boolean"?gi.R2L:ts;lr===!0&&(_t=zc(_t,function(Aa,$s,ua){return[Aa.split("").reverse().join(""),$s,ua]})),fr={text:_t,x:Ge,y:Rn,options:gi,mutex:{pdfEscape:on,activeFontKey:ta,fonts:Ho,activeFontSize:So}},Ia.publish("postProcessText",fr),_t=fr.text,Lu=fr.mutex.isHex||!1;var Cr=Ho[ta].encoding;Cr!=="WinAnsiEncoding"&&Cr!=="StandardEncoding"||(_t=zc(_t,function(Aa,$s,ua){return[vc(Aa),$s,ua]})),Or=Hc(_t),_t=[];for(var Ur,mo,Xr,Eo=0,is=1,Zr=Array.isArray(Or[0])?is:Eo,xs="",Ga=function(Aa,$s,ua){var ka="";return ua instanceof Cs?(ua=typeof gi.angle=="number"?wu(ua,new Cs(1,0,0,1,Aa,$s)):wu(new Cs(1,0,0,1,Aa,$s),ua),mi===On.ADVANCED&&(ua=wu(new Cs(1,0,0,-1,0,0),ua)),ka=ua.join(" ")+` Tm
`):ka=_i(Aa)+" "+_i($s)+` Td
`,ka},Ja=0;Ja<Or.length;Ja++){switch(xs="",Zr){case is:Xr=(Lu?"<":"(")+Or[Ja][0]+(Lu?">":")"),Ur=parseFloat(Or[Ja][1]),mo=parseFloat(Or[Ja][2]);break;case Eo:Xr=(Lu?"<":"(")+Or[Ja]+(Lu?">":")"),Ur=mA(Ge),mo=bu(Rn)}ot!==void 0&&ot[Ja]!==void 0&&(xs=ot[Ja]+` Tw
`),Ja===0?_t.push(xs+Ga(Ur,mo,ml)+Xr):Zr===Eo?_t.push(xs+Xr):Zr===is&&_t.push(xs+Ga(Ur,mo,ml)+Xr)}_t=Zr===Eo?_t.join(` Tj
T* `):_t.join(` Tj
`),_t+=` Tj
`;var va=`BT
/`;return va+=ta+" "+So+` Tf
`,va+=_i(So*Ou)+` TL
`,va+=Ih+`
`,va+=ja,va+=_t,_n(va+="ET"),en[ta]=!0,xl};var Nd=ce.__private__.clip=ce.clip=function(_t){return _n(_t==="evenodd"?"W*":"W"),this};ce.clipEvenOdd=function(){return Nd("evenodd")},ce.__private__.discardPath=ce.discardPath=function(){return _n("n"),this};var Nh=ce.__private__.isValidStyle=function(_t){var Ge=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(_t)!==-1&&(Ge=!0),Ge};ce.__private__.setDefaultPathOperation=ce.setDefaultPathOperation=function(_t){return Nh(_t)&&(Ce=_t),this};var Cu=ce.__private__.getStyle=ce.getStyle=function(_t){var Ge=Ce;switch(_t){case"D":case"S":Ge="S";break;case"F":Ge="f";break;case"FD":case"DF":Ge="B";break;case"f":case"f*":case"B":case"B*":Ge=_t}return Ge},Id=ce.close=function(){return _n("h"),this};ce.stroke=function(){return _n("S"),this},ce.fill=function(_t){return jc("f",_t),this},ce.fillEvenOdd=function(_t){return jc("f*",_t),this},ce.fillStroke=function(_t){return jc("B",_t),this},ce.fillStrokeEvenOdd=function(_t){return jc("B*",_t),this};var jc=function(_t,Ge){(0,zt.Z)(Ge)==="object"?fd(Ge,_t):_n(_t)},Pu=function(_t){_t===null||mi===On.ADVANCED&&_t===void 0||(_t=Cu(_t),_n(_t))};function Uc(_t,Ge,Rn,gi,ji){var fr=new Gs(Ge||this.boundingBox,Rn||this.xStep,gi||this.yStep,this.gState,ji||this.matrix);fr.stream=this.stream;var Or=_t+"$$"+this.cloneIndex+++"$$";return Gl(Or,fr),fr}var fd=function(_t,Ge){var Rn=ku[_t.key],gi=Ha[Rn];if(gi instanceof zs)_n("q"),_n(ef(Ge)),gi.gState&&ce.setGState(gi.gState),_n(_t.matrix.toString()+" cm"),_n("/"+Rn+" sh"),_n("Q");else if(gi instanceof Gs){var ji=new Cs(1,0,0,-1,0,Yh());_t.matrix&&(ji=ji.multiply(_t.matrix||Fl),Rn=Uc.call(gi,_t.key,_t.boundingBox,_t.xStep,_t.yStep,ji).id),_n("q"),_n("/Pattern cs"),_n("/"+Rn+" scn"),gi.gState&&ce.setGState(gi.gState),_n(Ge),_n("Q")}},ef=function(_t){switch(_t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Sl=ce.moveTo=function(_t,Ge){return _n(_i(bn(_t))+" "+_i(hi(Ge))+" m"),this},Tl=ce.lineTo=function(_t,Ge){return _n(_i(bn(_t))+" "+_i(hi(Ge))+" l"),this},zA=ce.curveTo=function(_t,Ge,Rn,gi,ji,fr){return _n([_i(bn(_t)),_i(hi(Ge)),_i(bn(Rn)),_i(hi(gi)),_i(bn(ji)),_i(hi(fr)),"c"].join(" ")),this};ce.__private__.line=ce.line=function(_t,Ge,Rn,gi,ji){if(isNaN(_t)||isNaN(Ge)||isNaN(Rn)||isNaN(gi)||!Nh(ji))throw new Error("Invalid arguments passed to jsPDF.line");return mi===On.COMPAT?this.lines([[Rn-_t,gi-Ge]],_t,Ge,[1,1],ji||"S"):this.lines([[Rn-_t,gi-Ge]],_t,Ge,[1,1]).stroke()},ce.__private__.lines=ce.lines=function(_t,Ge,Rn,gi,ji,fr){var Or,_o,gs,ea,Ks,La,ss,ml,xl,ma,ja,Lu;if(typeof _t=="number"&&(Lu=Rn,Rn=Ge,Ge=_t,_t=Lu),gi=gi||[1,1],fr=fr||!1,isNaN(Ge)||isNaN(Rn)||!Array.isArray(_t)||!Array.isArray(gi)||!Nh(ji)||typeof fr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Sl(Ge,Rn),Or=gi[0],_o=gi[1],ea=_t.length,ma=Ge,ja=Rn,gs=0;gs<ea;gs++)(Ks=_t[gs]).length===2?(ma=Ks[0]*Or+ma,ja=Ks[1]*_o+ja,Tl(ma,ja)):(La=Ks[0]*Or+ma,ss=Ks[1]*_o+ja,ml=Ks[2]*Or+ma,xl=Ks[3]*_o+ja,ma=Ks[4]*Or+ma,ja=Ks[5]*_o+ja,zA(La,ss,ml,xl,ma,ja));return fr&&Id(),Pu(ji),this},ce.path=function(_t){for(var Ge=0;Ge<_t.length;Ge++){var Rn=_t[Ge],gi=Rn.c;switch(Rn.op){case"m":Sl(gi[0],gi[1]);break;case"l":Tl(gi[0],gi[1]);break;case"c":zA.apply(this,gi);break;case"h":Id()}}return this},ce.__private__.rect=ce.rect=function(_t,Ge,Rn,gi,ji){if(isNaN(_t)||isNaN(Ge)||isNaN(Rn)||isNaN(gi)||!Nh(ji))throw new Error("Invalid arguments passed to jsPDF.rect");return mi===On.COMPAT&&(gi=-gi),_n([_i(bn(_t)),_i(hi(Ge)),_i(bn(Rn)),_i(bn(gi)),"re"].join(" ")),Pu(ji),this},ce.__private__.triangle=ce.triangle=function(_t,Ge,Rn,gi,ji,fr,Or){if(isNaN(_t)||isNaN(Ge)||isNaN(Rn)||isNaN(gi)||isNaN(ji)||isNaN(fr)||!Nh(Or))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Rn-_t,gi-Ge],[ji-Rn,fr-gi],[_t-ji,Ge-fr]],_t,Ge,[1,1],Or,!0),this},ce.__private__.roundedRect=ce.roundedRect=function(_t,Ge,Rn,gi,ji,fr,Or){if(isNaN(_t)||isNaN(Ge)||isNaN(Rn)||isNaN(gi)||isNaN(ji)||isNaN(fr)||!Nh(Or))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var _o=4/3*(Math.SQRT2-1);return ji=Math.min(ji,.5*Rn),fr=Math.min(fr,.5*gi),this.lines([[Rn-2*ji,0],[ji*_o,0,ji,fr-fr*_o,ji,fr],[0,gi-2*fr],[0,fr*_o,-ji*_o,fr,-ji,fr],[2*ji-Rn,0],[-ji*_o,0,-ji,-fr*_o,-ji,-fr],[0,2*fr-gi],[0,-fr*_o,ji*_o,-fr,ji,-fr]],_t+ji,Ge,[1,1],Or,!0),this},ce.__private__.ellipse=ce.ellipse=function(_t,Ge,Rn,gi,ji){if(isNaN(_t)||isNaN(Ge)||isNaN(Rn)||isNaN(gi)||!Nh(ji))throw new Error("Invalid arguments passed to jsPDF.ellipse");var fr=4/3*(Math.SQRT2-1)*Rn,Or=4/3*(Math.SQRT2-1)*gi;return Sl(_t+Rn,Ge),zA(_t+Rn,Ge-Or,_t+fr,Ge-gi,_t,Ge-gi),zA(_t-fr,Ge-gi,_t-Rn,Ge-Or,_t-Rn,Ge),zA(_t-Rn,Ge+Or,_t-fr,Ge+gi,_t,Ge+gi),zA(_t+fr,Ge+gi,_t+Rn,Ge+Or,_t+Rn,Ge),Pu(ji),this},ce.__private__.circle=ce.circle=function(_t,Ge,Rn,gi){if(isNaN(_t)||isNaN(Ge)||isNaN(Rn)||!Nh(gi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(_t,Ge,Rn,Rn,gi)},ce.setFont=function(_t,Ge,Rn){return Rn&&(Ge=Er(Ge,Rn)),ta=Tc(_t,Ge,{disableWarning:!1}),this};var Ml=ce.__private__.getFont=ce.getFont=function(){return Ho[Tc.apply(ce,arguments)]};ce.__private__.getFontList=ce.getFontList=function(){var _t,Ge,Rn={};for(_t in gl)if(gl.hasOwnProperty(_t))for(Ge in Rn[_t]=[],gl[_t])gl[_t].hasOwnProperty(Ge)&&Rn[_t].push(Ge);return Rn},ce.addFont=function(_t,Ge,Rn,gi,ji){var fr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&fr.indexOf(arguments[3])!==-1?ji=arguments[3]:arguments[3]&&fr.indexOf(arguments[3])==-1&&(Rn=Er(Rn,gi)),ji=ji||"Identity-H",Wh.call(this,_t,Ge,Rn,ji)};var pA,GA=yt.lineWidth||.200025,Vh=ce.__private__.getLineWidth=ce.getLineWidth=function(){return GA},Ac=ce.__private__.setLineWidth=ce.setLineWidth=function(_t){return GA=_t,_n(_i(bn(_t))+" w"),this};ce.__private__.setLineDash=so.API.setLineDash=so.API.setLineDashPattern=function(_t,Ge){if(_t=_t||[],Ge=Ge||0,isNaN(Ge)||!Array.isArray(_t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return _t=_t.map(function(Rn){return _i(bn(Rn))}).join(" "),Ge=_i(bn(Ge)),_n("["+_t+"] "+Ge+" d"),this};var cc=ce.__private__.getLineHeight=ce.getLineHeight=function(){return So*pA};ce.__private__.getLineHeight=ce.getLineHeight=function(){return So*pA};var kd=ce.__private__.setLineHeightFactor=ce.setLineHeightFactor=function(_t){return typeof(_t=_t||1.15)=="number"&&(pA=_t),this},dc=ce.__private__.getLineHeightFactor=ce.getLineHeightFactor=function(){return pA};kd(yt.lineHeight);var mA=ce.__private__.getHorizontalCoordinate=function(_t){return bn(_t)},bu=ce.__private__.getVerticalCoordinate=function(_t){return mi===On.ADVANCED?_t:_s[Un].mediaBox.topRightY-_s[Un].mediaBox.bottomLeftY-bn(_t)},fc=ce.__private__.getHorizontalCoordinateString=ce.getHorizontalCoordinateString=function(_t){return _i(mA(_t))},vA=ce.__private__.getVerticalCoordinateString=ce.getVerticalCoordinateString=function(_t){return _i(bu(_t))},mh=yt.strokeColor||"0 G";ce.__private__.getStrokeColor=ce.getDrawColor=function(){return xu(mh)},ce.__private__.setStrokeColor=ce.setDrawColor=function(_t,Ge,Rn,gi){return mh=Wu({ch1:_t,ch2:Ge,ch3:Rn,ch4:gi,pdfColorType:"draw",precision:2}),_n(mh),this};var gc=yt.fillColor||"0 g";ce.__private__.getFillColor=ce.getFillColor=function(){return xu(gc)},ce.__private__.setFillColor=ce.setFillColor=function(_t,Ge,Rn,gi){return gc=Wu({ch1:_t,ch2:Ge,ch3:Rn,ch4:gi,pdfColorType:"fill",precision:2}),_n(gc),this};var Ih=yt.textColor||"0 g",gd=ce.__private__.getTextColor=ce.getTextColor=function(){return xu(Ih)};ce.__private__.setTextColor=ce.setTextColor=function(_t,Ge,Rn,gi){return Ih=Wu({ch1:_t,ch2:Ge,ch3:Rn,ch4:gi,pdfColorType:"text",precision:3}),this};var Qc=yt.charSpace,nf=ce.__private__.getCharSpace=ce.getCharSpace=function(){return parseFloat(Qc||0)};ce.__private__.setCharSpace=ce.setCharSpace=function(_t){if(isNaN(_t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Qc=_t,this};var vh=0;ce.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},ce.__private__.setLineCap=ce.setLineCap=function(_t){var Ge=ce.CapJoinStyles[_t];if(Ge===void 0)throw new Error("Line cap style of '"+_t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return vh=Ge,_n(Ge+" J"),this};var Td=0;ce.__private__.setLineJoin=ce.setLineJoin=function(_t){var Ge=ce.CapJoinStyles[_t];if(Ge===void 0)throw new Error("Line join style of '"+_t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Td=Ge,_n(Ge+" j"),this},ce.__private__.setLineMiterLimit=ce.__private__.setMiterLimit=ce.setLineMiterLimit=ce.setMiterLimit=function(_t){if(_t=_t||0,isNaN(_t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return _n(_i(bn(_t))+" M"),this},ce.GState=to,ce.setGState=function(_t){(_t=typeof _t=="string"?oa[ph[_t]]:pc(null,_t)).equals(oc)||(_n("/"+_t.id+" gs"),oc=_t)};var pc=function(_t,Ge){if(!_t||!ph[_t]){var Rn=!1;for(var gi in oa)if(oa.hasOwnProperty(gi)&&oa[gi].equals(Ge)){Rn=!0;break}if(Rn)Ge=oa[gi];else{var ji="GS"+(Object.keys(oa).length+1).toString(10);oa[ji]=Ge,Ge.id=ji}return _t&&(ph[_t]=Ge.id),Ia.publish("addGState",Ge),Ge}};ce.addGState=function(_t,Ge){return pc(_t,Ge),this},ce.saveGraphicsState=function(){return _n("q"),AA.push({key:ta,size:So,color:Ih}),this},ce.restoreGraphicsState=function(){_n("Q");var _t=AA.pop();return ta=_t.key,So=_t.size,Ih=_t.color,oc=null,this},ce.setCurrentTransformationMatrix=function(_t){return _n(_t.toString()+" cm"),this},ce.comment=function(_t){return _n("#"+_t),this};var kh=function(_t,Ge){var Rn=_t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Rn},set:function(fr){isNaN(fr)||(Rn=parseFloat(fr))}});var gi=Ge||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return gi},set:function(fr){isNaN(fr)||(gi=parseFloat(fr))}});var ji="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ji},set:function(fr){ji=fr.toString()}}),this},bA=function(_t,Ge,Rn,gi){kh.call(this,_t,Ge),this.type="rect";var ji=Rn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ji},set:function(Or){isNaN(Or)||(ji=parseFloat(Or))}});var fr=gi||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return fr},set:function(Or){isNaN(Or)||(fr=parseFloat(Or))}}),this},Rc=function(){this.page=wl,this.currentPage=Un,this.pages=Gr.slice(0),this.pagesContext=_s.slice(0),this.x=Au,this.y=Ca,this.matrix=gh,this.width=mc(Un),this.height=Yh(Un),this.outputDestination=Lo,this.id="",this.objectNumber=-1};Rc.prototype.restore=function(){wl=this.page,Un=this.currentPage,_s=this.pagesContext,Gr=this.pages,Au=this.x,Ca=this.y,gh=this.matrix,pd(Un,this.width),Dd(Un,this.height),Lo=this.outputDestination};var Ju=function(_t,Ge,Rn,gi,ji){Fh.push(new Rc),wl=Un=0,Gr=[],Au=_t,Ca=Ge,gh=ji,gA([Rn,gi])},Od=function(_t){if(dA[_t])Fh.pop().restore();else{var Ge=new Rc,Rn="Xo"+(Object.keys(ou).length+1).toString(10);Ge.id=Rn,dA[_t]=Rn,ou[Rn]=Ge,Ia.publish("addFormObject",Ge),Fh.pop().restore()}};for(var _A in ce.beginFormObject=function(_t,Ge,Rn,gi,ji){return Ju(_t,Ge,Rn,gi,ji),this},ce.endFormObject=function(_t){return Od(_t),this},ce.doFormObject=function(_t,Ge){var Rn=ou[dA[_t]];return _n("q"),_n(Ge.toString()+" cm"),_n("/"+Rn.id+" Do"),_n("Q"),this},ce.getFormObject=function(_t){var Ge=ou[dA[_t]];return{x:Ge.x,y:Ge.y,width:Ge.width,height:Ge.height,matrix:Ge.matrix}},ce.save=function(_t,Ge){return _t=_t||"generated.pdf",(Ge=Ge||{}).returnPromise=Ge.returnPromise||!1,Ge.returnPromise===!1?(ks(Ad(HA()),_t),typeof ks.unload=="function"&&Br.setTimeout&&setTimeout(ks.unload,911),this):new Promise(function(Rn,gi){try{var ji=ks(Ad(HA()),_t);typeof ks.unload=="function"&&Br.setTimeout&&setTimeout(ks.unload,911),Rn(ji)}catch(fr){gi(fr.message)}})},so.API)so.API.hasOwnProperty(_A)&&(_A==="events"&&so.API.events.length?function(_t,Ge){var Rn,gi,ji;for(ji=Ge.length-1;ji!==-1;ji--)Rn=Ge[ji][0],gi=Ge[ji][1],_t.subscribe.apply(_t,[Rn].concat(typeof gi=="function"?[gi]:gi))}(Ia,so.API.events):ce[_A]=so.API[_A]);var mc=ce.getPageWidth=function(_t){return(_s[_t=_t||Un].mediaBox.topRightX-_s[_t].mediaBox.bottomLeftX)/ko},pd=ce.setPageWidth=function(_t,Ge){_s[_t].mediaBox.topRightX=Ge*ko+_s[_t].mediaBox.bottomLeftX},Yh=ce.getPageHeight=function(_t){return(_s[_t=_t||Un].mediaBox.topRightY-_s[_t].mediaBox.bottomLeftY)/ko},Dd=ce.setPageHeight=function(_t,Ge){_s[_t].mediaBox.topRightY=Ge*ko+_s[_t].mediaBox.bottomLeftY};return ce.internal={pdfEscape:on,getStyle:Cu,getFont:Ml,getFontSize:Yr,getCharSpace:nf,getTextColor:gd,getLineHeight:cc,getLineHeightFactor:dc,getLineWidth:Vh,write:ls,getHorizontalCoordinate:mA,getVerticalCoordinate:bu,getCoordinateString:fc,getVerticalCoordinateString:vA,collections:{},newObject:ho,newAdditionalObject:PA,newObjectDeferred:pl,newObjectDeferredBegin:Ku,getFilters:Vu,putStream:fl,events:Ia,scaleFactor:ko,pageSize:{getWidth:function(){return mc(Un)},setWidth:function(_t){pd(Un,_t)},getHeight:function(){return Yh(Un)},setHeight:function(_t){Dd(Un,_t)}},encryptionOptions:Re,encryption:nl,getEncryptor:Dc,output:cd,getNumberOfPages:Ld,pages:Gr,out:_n,f2:yr,f3:yn,getPageInfo:Md,getPageInfoByObjId:bs,getCurrentPageInfo:dd,getPDFVersion:Bn,Point:kh,Rectangle:bA,Matrix:Cs,hasHotfix:Tu},Object.defineProperty(ce.internal.pageSize,"width",{get:function(){return mc(Un)},set:function(_t){pd(Un,_t)},enumerable:!0,configurable:!0}),Object.defineProperty(ce.internal.pageSize,"height",{get:function(){return Yh(Un)},set:function(_t){Dd(Un,_t)},enumerable:!0,configurable:!0}),ud.call(ce,Rr),ta="F1",Mh(Qt,wt),Ia.publish("initialized"),ce}Hr.prototype.lsbFirstWord=function(yt){return String.fromCharCode(yt>>0&255,yt>>8&255,yt>>16&255,yt>>24&255)},Hr.prototype.toHexString=function(yt){return yt.split("").map(function(gt){return("0"+(255&gt.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Hr.prototype.hexToBytes=function(yt){for(var gt=[],wt=0;wt<yt.length;wt+=2)gt.push(String.fromCharCode(parseInt(yt.substr(wt,2),16)));return gt.join("")},Hr.prototype.processOwnerPassword=function(yt,gt){return Ps(yo(gt).substr(0,5),yt)},Hr.prototype.encryptor=function(yt,gt){var wt=yo(this.encryptionKey+String.fromCharCode(255&yt,yt>>8&255,yt>>16&255,255&gt,gt>>8&255)).substr(0,10);return function(Ct){return Ps(wt,Ct)}},to.prototype.equals=function(yt){var gt,wt="id,objectNumber,equals";if(!yt||(0,zt.Z)(yt)!==(0,zt.Z)(this))return!1;var Ct=0;for(gt in this)if(!(wt.indexOf(gt)>=0)){if(this.hasOwnProperty(gt)&&!yt.hasOwnProperty(gt)||this[gt]!==yt[gt])return!1;Ct++}for(gt in yt)yt.hasOwnProperty(gt)&&wt.indexOf(gt)<0&&Ct--;return Ct===0},so.API={events:[]},so.version="3.0.1";var Ls=so.API,Xa=1,Ul=function(yt){return yt.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ta=function(yt){return yt.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},qo=function(yt){return yt.toFixed(2)},Mn=function(yt){return yt.toFixed(5)};Ls.__acroform__={};var ca=function(yt,gt){yt.prototype=Object.create(gt.prototype),yt.prototype.constructor=yt},tc=function(yt){return yt*Xa},Vl=function(yt){var gt=new Pa,wt=uo.internal.getHeight(yt)||0,Ct=uo.internal.getWidth(yt)||0;return gt.BBox=[0,0,Number(qo(Ct)),Number(qo(wt))],gt},aA=Ls.__acroform__.setBit=function(yt,gt){if(yt=yt||0,gt=gt||0,isNaN(yt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return yt|=1<<gt},Oa=Ls.__acroform__.clearBit=function(yt,gt){if(yt=yt||0,gt=gt||0,isNaN(yt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return yt&=~(1<<gt)},ec=Ls.__acroform__.getBit=function(yt,gt){if(isNaN(yt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return yt&1<<gt?1:0},Al=Ls.__acroform__.getBitForPdf=function(yt,gt){if(isNaN(yt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return ec(yt,gt-1)},ps=Ls.__acroform__.setBitForPdf=function(yt,gt){if(isNaN(yt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return aA(yt,gt-1)},Ys=Ls.__acroform__.clearBitForPdf=function(yt,gt){if(isNaN(yt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Oa(yt,gt-1)},lA=Ls.__acroform__.calculateCoordinates=function(yt,gt){var wt=gt.internal.getHorizontalCoordinate,Ct=gt.internal.getVerticalCoordinate,Qt=yt[0],kt=yt[1],Yt=yt[2],Zt=yt[3],ne={};return ne.lowerLeft_X=wt(Qt)||0,ne.lowerLeft_Y=Ct(kt+Zt)||0,ne.upperRight_X=wt(Qt+Yt)||0,ne.upperRight_Y=Ct(kt)||0,[Number(qo(ne.lowerLeft_X)),Number(qo(ne.lowerLeft_Y)),Number(qo(ne.upperRight_X)),Number(qo(ne.upperRight_Y))]},jo=function(yt){if(yt.appearanceStreamContent)return yt.appearanceStreamContent;if(yt.V||yt.DV){var gt=[],wt=yt._V||yt.DV,Ct=Fs(yt,wt),Qt=yt.scope.internal.getFont(yt.fontName,yt.fontStyle).id;gt.push("/Tx BMC"),gt.push("q"),gt.push("BT"),gt.push(yt.scope.__private__.encodeColorString(yt.color)),gt.push("/"+Qt+" "+qo(Ct.fontSize)+" Tf"),gt.push("1 0 0 1 0 0 Tm"),gt.push(Ct.text),gt.push("ET"),gt.push("Q"),gt.push("EMC");var kt=Vl(yt);return kt.scope=yt.scope,kt.stream=gt.join(`
`),kt}},Fs=function(yt,gt){var wt=yt.fontSize===0?yt.maxFontSize:yt.fontSize,Ct={text:"",fontSize:""},Qt=(gt=(gt=gt.substr(0,1)=="("?gt.substr(1):gt).substr(gt.length-1)==")"?gt.substr(0,gt.length-1):gt).split(" ");Qt=yt.multiline?Qt.map(function(yn){return yn.split(`
`)}):Qt.map(function(yn){return[yn]});var kt=wt,Yt=uo.internal.getHeight(yt)||0;Yt=Yt<0?-Yt:Yt;var Zt=uo.internal.getWidth(yt)||0;Zt=Zt<0?-Zt:Zt;var ne=function(yn,bn,bi){if(yn+1<Qt.length){var hi=bn+" "+Qt[yn+1][0];return Zo(hi,yt,bi).width<=Zt-4}return!1};kt++;t:for(;kt>0;){gt="",kt--;var Ce,Re,Qe=Zo("3",yt,kt).height,en=yt.multiline?Yt-kt:(Yt-Qe)/2,ce=en+=2,kn=0,Bn=0,jn=0;if(kt<=0){gt=`(...) Tj
`,gt+="% Width of Text: "+Zo(gt,yt,kt=12).width+", FieldWidth:"+Zt+`
`;break}for(var an="",On=0,mi=0;mi<Qt.length;mi++)if(Qt.hasOwnProperty(mi)){var Ui=!1;if(Qt[mi].length!==1&&jn!==Qt[mi].length-1){if((Qe+2)*(On+2)+2>Yt)continue t;an+=Qt[mi][jn],Ui=!0,Bn=mi,mi--}else{an=(an+=Qt[mi][jn]+" ").substr(an.length-1)==" "?an.substr(0,an.length-1):an;var ir=parseInt(mi),Er=ne(ir,an,kt),_i=mi>=Qt.length-1;if(Er&&!_i){an+=" ",jn=0;continue}if(Er||_i){if(_i)Bn=ir;else if(yt.multiline&&(Qe+2)*(On+2)+2>Yt)continue t}else{if(!yt.multiline||(Qe+2)*(On+2)+2>Yt)continue t;Bn=ir}}for(var li="",Xi=kn;Xi<=Bn;Xi++){var yr=Qt[Xi];if(yt.multiline){if(Xi===Bn){li+=yr[jn]+" ",jn=(jn+1)%yr.length;continue}if(Xi===kn){li+=yr[yr.length-1]+" ";continue}}li+=yr[0]+" "}switch(li=li.substr(li.length-1)==" "?li.substr(0,li.length-1):li,Re=Zo(li,yt,kt).width,yt.textAlign){case"right":Ce=Zt-Re-2;break;case"center":Ce=(Zt-Re)/2;break;case"left":default:Ce=2}gt+=qo(Ce)+" "+qo(ce)+` Td
`,gt+="("+Ul(li)+`) Tj
`,gt+=-qo(Ce)+` 0 Td
`,ce=-(kt+2),Re=0,kn=Ui?Bn:Bn+1,On++,an=""}break}return Ct.text=gt,Ct.fontSize=kt,Ct},Zo=function(yt,gt,wt){var Ct=gt.scope.internal.getFont(gt.fontName,gt.fontStyle),Qt=gt.scope.getStringUnitWidth(yt,{font:Ct,fontSize:parseFloat(wt),charSpace:0})*parseFloat(wt);return{height:gt.scope.getStringUnitWidth("3",{font:Ct,fontSize:parseFloat(wt),charSpace:0})*parseFloat(wt)*1.5,width:Qt}},mr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},cl=function(yt,gt){var wt={type:"reference",object:yt};gt.internal.getPageInfo(yt.page).pageContext.annotations.find(function(Ct){return Ct.type===wt.type&&Ct.object===wt.object})===void 0&&gt.internal.getPageInfo(yt.page).pageContext.annotations.push(wt)},dl=function(yt,gt){for(var wt in yt)if(yt.hasOwnProperty(wt)){var Ct=wt,Qt=yt[wt];gt.internal.newObjectDeferredBegin(Qt.objId,!0),(0,zt.Z)(Qt)==="object"&&typeof Qt.putStream=="function"&&Qt.putStream(),delete yt[Ct]}},lu=function(yt,gt){if(gt.scope=yt,yt.internal!==void 0&&(yt.internal.acroformPlugin===void 0||yt.internal.acroformPlugin.isInitialized===!1)){if(bl.FieldNum=0,yt.internal.acroformPlugin=JSON.parse(JSON.stringify(mr)),yt.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Xa=yt.internal.scaleFactor,yt.internal.acroformPlugin.acroFormDictionaryRoot=new Za,yt.internal.acroformPlugin.acroFormDictionaryRoot.scope=yt,yt.internal.acroformPlugin.acroFormDictionaryRoot._eventID=yt.internal.events.subscribe("postPutResources",function(){(function(wt){wt.internal.events.unsubscribe(wt.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete wt.internal.acroformPlugin.acroFormDictionaryRoot._eventID,wt.internal.acroformPlugin.printedOut=!0})(yt)}),yt.internal.events.subscribe("buildDocument",function(){(function(wt){wt.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ct=wt.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Qt in Ct)if(Ct.hasOwnProperty(Qt)){var kt=Ct[Qt];kt.objId=void 0,kt.hasAnnotation&&cl(kt,wt)}})(yt)}),yt.internal.events.subscribe("putCatalog",function(){(function(wt){if(wt.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");wt.internal.write("/AcroForm "+wt.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(yt)}),yt.internal.events.subscribe("postPutPages",function(wt){(function(Ct,Qt){var kt=!Ct;for(var Yt in Ct||(Qt.internal.newObjectDeferredBegin(Qt.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Qt.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ct=Ct||Qt.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ct.hasOwnProperty(Yt)){var Zt=Ct[Yt],ne=[],Ce=Zt.Rect;if(Zt.Rect&&(Zt.Rect=lA(Zt.Rect,Qt)),Qt.internal.newObjectDeferredBegin(Zt.objId,!0),Zt.DA=uo.createDefaultAppearanceStream(Zt),(0,zt.Z)(Zt)==="object"&&typeof Zt.getKeyValueListForStream=="function"&&(ne=Zt.getKeyValueListForStream()),Zt.Rect=Ce,Zt.hasAppearanceStream&&!Zt.appearanceStreamContent){var Re=jo(Zt);ne.push({key:"AP",value:"<</N "+Re+">>"}),Qt.internal.acroformPlugin.xForms.push(Re)}if(Zt.appearanceStreamContent){var Qe="";for(var en in Zt.appearanceStreamContent)if(Zt.appearanceStreamContent.hasOwnProperty(en)){var ce=Zt.appearanceStreamContent[en];if(Qe+="/"+en+" ",Qe+="<<",Object.keys(ce).length>=1||Array.isArray(ce)){for(var Yt in ce)if(ce.hasOwnProperty(Yt)){var kn=ce[Yt];typeof kn=="function"&&(kn=kn.call(Qt,Zt)),Qe+="/"+Yt+" "+kn+" ",Qt.internal.acroformPlugin.xForms.indexOf(kn)>=0||Qt.internal.acroformPlugin.xForms.push(kn)}}else typeof(kn=ce)=="function"&&(kn=kn.call(Qt,Zt)),Qe+="/"+Yt+" "+kn,Qt.internal.acroformPlugin.xForms.indexOf(kn)>=0||Qt.internal.acroformPlugin.xForms.push(kn);Qe+=">>"}ne.push({key:"AP",value:`<<
`+Qe+">>"})}Qt.internal.putStream({additionalKeyValues:ne,objectId:Zt.objId}),Qt.internal.out("endobj")}kt&&dl(Qt.internal.acroformPlugin.xForms,Qt)})(wt,yt)}),yt.internal.acroformPlugin.isInitialized=!0}},ch=Ls.__acroform__.arrayToPdfArray=function(yt,gt,wt){var Ct=function(Yt){return Yt};if(Array.isArray(yt)){for(var Qt="[",kt=0;kt<yt.length;kt++)switch(kt!==0&&(Qt+=" "),(0,zt.Z)(yt[kt])){case"boolean":case"number":case"object":Qt+=yt[kt].toString();break;case"string":yt[kt].substr(0,1)!=="/"?(gt!==void 0&&wt&&(Ct=wt.internal.getEncryptor(gt)),Qt+="("+Ul(Ct(yt[kt].toString()))+")"):Qt+=yt[kt].toString()}return Qt+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},bh=function(yt,gt,wt){var Ct=function(Qt){return Qt};return gt!==void 0&&wt&&(Ct=wt.internal.getEncryptor(gt)),(yt=yt||"").toString(),yt="("+Ul(Ct(yt))+")"},nr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(yt){this._objId=yt}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};nr.prototype.toString=function(){return this.objId+" 0 R"},nr.prototype.putStream=function(){var yt=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:yt,objectId:this.objId}),this.scope.internal.out("endobj")},nr.prototype.getKeyValueListForStream=function(){var yt=[],gt=Object.getOwnPropertyNames(this).filter(function(kt){return kt!="content"&&kt!="appearanceStreamContent"&&kt!="scope"&&kt!="objId"&&kt.substring(0,1)!="_"});for(var wt in gt)if(Object.getOwnPropertyDescriptor(this,gt[wt]).configurable===!1){var Ct=gt[wt],Qt=this[Ct];Qt&&(Array.isArray(Qt)?yt.push({key:Ct,value:ch(Qt,this.objId,this.scope)}):Qt instanceof nr?(Qt.scope=this.scope,yt.push({key:Ct,value:Qt.objId+" 0 R"})):typeof Qt!="function"&&yt.push({key:Ct,value:Qt}))}return yt};var Pa=function(){nr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var yt,gt=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return gt},set:function(wt){gt=wt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(wt){yt=wt.trim()},get:function(){return yt||null}})};ca(Pa,nr);var Za=function(){nr.call(this);var yt,gt=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return gt.length>0?gt:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return gt}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(yt){var wt=function(Ct){return Ct};return this.scope&&(wt=this.scope.internal.getEncryptor(this.objId)),"("+Ul(wt(yt))+")"}},set:function(wt){yt=wt}})};ca(Za,nr);var bl=function yt(){nr.call(this);var gt=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return gt},set:function(an){if(isNaN(an))throw new Error('Invalid value "'+an+'" for attribute F supplied.');gt=an}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Al(gt,3)},set:function(an){an?this.F=ps(gt,3):this.F=Ys(gt,3)}});var wt=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return wt},set:function(an){if(isNaN(an))throw new Error('Invalid value "'+an+'" for attribute Ff supplied.');wt=an}});var Ct=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ct.length!==0)return Ct},set:function(an){Ct=an!==void 0?an:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ct||isNaN(Ct[0])?0:Ct[0]},set:function(an){Ct[0]=an}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ct||isNaN(Ct[1])?0:Ct[1]},set:function(an){Ct[1]=an}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ct||isNaN(Ct[2])?0:Ct[2]},set:function(an){Ct[2]=an}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ct||isNaN(Ct[3])?0:Ct[3]},set:function(an){Ct[3]=an}});var Qt="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Qt},set:function(an){switch(an){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Qt=an;break;default:throw new Error('Invalid value "'+an+'" for attribute FT supplied.')}}});var kt=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!kt||kt.length<1){if(this instanceof vu)return;kt="FieldObject"+yt.FieldNum++}var an=function(On){return On};return this.scope&&(an=this.scope.internal.getEncryptor(this.objId)),"("+Ul(an(kt))+")"},set:function(an){kt=an.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return kt},set:function(an){kt=an}});var Yt="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Yt},set:function(an){Yt=an}});var Zt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Zt},set:function(an){Zt=an}});var ne=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ne},set:function(an){ne=an}});var Ce=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ce===void 0?50/Xa:Ce},set:function(an){Ce=an}});var Re="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Re},set:function(an){Re=an}});var Qe="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Qe||this instanceof vu||this instanceof Hl))return bh(Qe,this.objId,this.scope)},set:function(an){an=an.toString(),Qe=an}});var en=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(en)return this instanceof Ea?en:bh(en,this.objId,this.scope)},set:function(an){an=an.toString(),en=this instanceof Ea?an:an.substr(0,1)==="("?Ta(an.substr(1,an.length-2)):Ta(an)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ea?Ta(en.substr(1,en.length-1)):en},set:function(an){an=an.toString(),en=this instanceof Ea?"/"+an:an}});var ce=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ce)return ce},set:function(an){this.V=an}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ce)return this instanceof Ea?ce:bh(ce,this.objId,this.scope)},set:function(an){an=an.toString(),ce=this instanceof Ea?an:an.substr(0,1)==="("?Ta(an.substr(1,an.length-2)):Ta(an)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ea?Ta(ce.substr(1,ce.length-1)):ce},set:function(an){an=an.toString(),ce=this instanceof Ea?"/"+an:an}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var kn,Bn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Bn},set:function(an){an=!!an,Bn=an}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(kn)return kn},set:function(an){kn=an}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,1)},set:function(an){an?this.Ff=ps(this.Ff,1):this.Ff=Ys(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,2)},set:function(an){an?this.Ff=ps(this.Ff,2):this.Ff=Ys(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,3)},set:function(an){an?this.Ff=ps(this.Ff,3):this.Ff=Ys(this.Ff,3)}});var jn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(jn!==null)return jn},set:function(an){if([0,1,2].indexOf(an)===-1)throw new Error('Invalid value "'+an+'" for attribute Q supplied.');jn=an}}),Object.defineProperty(this,"textAlign",{get:function(){var an;switch(jn){case 0:default:an="left";break;case 1:an="center";break;case 2:an="right"}return an},configurable:!0,enumerable:!0,set:function(an){switch(an){case"right":case 2:jn=2;break;case"center":case 1:jn=1;break;case"left":case 0:default:jn=0}}})};ca(bl,nr);var zu=function(){bl.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var yt=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return yt},set:function(wt){yt=wt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return yt},set:function(wt){yt=wt}});var gt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ch(gt,this.objId,this.scope)},set:function(wt){var Ct,Qt;Qt=[],typeof(Ct=wt)=="string"&&(Qt=function(kt,Yt,Zt){Zt||(Zt=1);for(var ne,Ce=[];ne=Yt.exec(kt);)Ce.push(ne[Zt]);return Ce}(Ct,/\((.*?)\)/g)),gt=Qt}}),this.getOptions=function(){return gt},this.setOptions=function(wt){gt=wt,this.sort&&gt.sort()},this.addOption=function(wt){wt=(wt=wt||"").toString(),gt.push(wt),this.sort&&gt.sort()},this.removeOption=function(wt,Ct){for(Ct=Ct||!1,wt=(wt=wt||"").toString();gt.indexOf(wt)!==-1&&(gt.splice(gt.indexOf(wt),1),Ct!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,18)},set:function(wt){wt?this.Ff=ps(this.Ff,18):this.Ff=Ys(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,19)},set:function(wt){this.combo===!0&&(wt?this.Ff=ps(this.Ff,19):this.Ff=Ys(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,20)},set:function(wt){wt?(this.Ff=ps(this.Ff,20),gt.sort()):this.Ff=Ys(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,22)},set:function(wt){wt?this.Ff=ps(this.Ff,22):this.Ff=Ys(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,23)},set:function(wt){wt?this.Ff=ps(this.Ff,23):this.Ff=Ys(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,27)},set:function(wt){wt?this.Ff=ps(this.Ff,27):this.Ff=Ys(this.Ff,27)}}),this.hasAppearanceStream=!1};ca(zu,bl);var Ql=function(){zu.call(this),this.fontName="helvetica",this.combo=!1};ca(Ql,zu);var bo=function(){Ql.call(this),this.combo=!0};ca(bo,Ql);var fa=function(){bo.call(this),this.edit=!0};ca(fa,bo);var Ea=function(){bl.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,15)},set:function(wt){wt?this.Ff=ps(this.Ff,15):this.Ff=Ys(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,16)},set:function(wt){wt?this.Ff=ps(this.Ff,16):this.Ff=Ys(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,17)},set:function(wt){wt?this.Ff=ps(this.Ff,17):this.Ff=Ys(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,26)},set:function(wt){wt?this.Ff=ps(this.Ff,26):this.Ff=Ys(this.Ff,26)}});var yt,gt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var wt=function(kt){return kt};if(this.scope&&(wt=this.scope.internal.getEncryptor(this.objId)),Object.keys(gt).length!==0){var Ct,Qt=[];for(Ct in Qt.push("<<"),gt)Qt.push("/"+Ct+" ("+Ul(wt(gt[Ct]))+")");return Qt.push(">>"),Qt.join(`
`)}},set:function(wt){(0,zt.Z)(wt)==="object"&&(gt=wt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return gt.CA||""},set:function(wt){typeof wt=="string"&&(gt.CA=wt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return yt},set:function(wt){yt=wt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return yt.substr(1,yt.length-1)},set:function(wt){yt="/"+wt}})};ca(Ea,bl);var Yl=function(){Ea.call(this),this.pushButton=!0};ca(Yl,Ea);var Rl=function(){Ea.call(this),this.radio=!0,this.pushButton=!1;var yt=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return yt},set:function(gt){yt=gt!==void 0?gt:[]}})};ca(Rl,Ea);var vu=function(){var yt,gt;bl.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return yt},set:function(Qt){yt=Qt}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return gt},set:function(Qt){gt=Qt}});var wt,Ct={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Qt=function(Zt){return Zt};this.scope&&(Qt=this.scope.internal.getEncryptor(this.objId));var kt,Yt=[];for(kt in Yt.push("<<"),Ct)Yt.push("/"+kt+" ("+Ul(Qt(Ct[kt]))+")");return Yt.push(">>"),Yt.join(`
`)},set:function(Qt){(0,zt.Z)(Qt)==="object"&&(Ct=Qt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ct.CA||""},set:function(Qt){typeof Qt=="string"&&(Ct.CA=Qt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return wt},set:function(Qt){wt=Qt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return wt.substr(1,wt.length-1)},set:function(Qt){wt="/"+Qt}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=uo.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ca(vu,bl),Rl.prototype.setAppearance=function(yt){if(!("createAppearanceStream"in yt)||!("getCA"in yt))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var gt in this.Kids)if(this.Kids.hasOwnProperty(gt)){var wt=this.Kids[gt];wt.appearanceStreamContent=yt.createAppearanceStream(wt.optionName),wt.caption=yt.getCA()}},Rl.prototype.createOption=function(yt){var gt=new vu;return gt.Parent=this,gt.optionName=yt,this.Kids.push(gt),id.call(this.scope,gt),gt};var tu=function(){Ea.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=uo.CheckBox.createAppearanceStream()};ca(tu,Ea);var Hl=function(){bl.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,13)},set:function(gt){gt?this.Ff=ps(this.Ff,13):this.Ff=Ys(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,21)},set:function(gt){gt?this.Ff=ps(this.Ff,21):this.Ff=Ys(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,23)},set:function(gt){gt?this.Ff=ps(this.Ff,23):this.Ff=Ys(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,24)},set:function(gt){gt?this.Ff=ps(this.Ff,24):this.Ff=Ys(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,25)},set:function(gt){gt?this.Ff=ps(this.Ff,25):this.Ff=Ys(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,26)},set:function(gt){gt?this.Ff=ps(this.Ff,26):this.Ff=Ys(this.Ff,26)}});var yt=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return yt},set:function(gt){yt=gt}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return yt},set:function(gt){Number.isInteger(gt)&&(yt=gt)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ca(Hl,bl);var Ll=function(){Hl.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,14)},set:function(yt){yt?this.Ff=ps(this.Ff,14):this.Ff=Ys(this.Ff,14)}}),this.password=!0};ca(Ll,Hl);var uo={CheckBox:{createAppearanceStream:function(){return{N:{On:uo.CheckBox.YesNormal},D:{On:uo.CheckBox.YesPushDown,Off:uo.CheckBox.OffPushDown}}},YesPushDown:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=[],Ct=yt.scope.internal.getFont(yt.fontName,yt.fontStyle).id,Qt=yt.scope.__private__.encodeColorString(yt.color),kt=Fs(yt,yt.caption);return wt.push("0.749023 g"),wt.push("0 0 "+qo(uo.internal.getWidth(yt))+" "+qo(uo.internal.getHeight(yt))+" re"),wt.push("f"),wt.push("BMC"),wt.push("q"),wt.push("0 0 1 rg"),wt.push("/"+Ct+" "+qo(kt.fontSize)+" Tf "+Qt),wt.push("BT"),wt.push(kt.text),wt.push("ET"),wt.push("Q"),wt.push("EMC"),gt.stream=wt.join(`
`),gt},YesNormal:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=yt.scope.internal.getFont(yt.fontName,yt.fontStyle).id,Ct=yt.scope.__private__.encodeColorString(yt.color),Qt=[],kt=uo.internal.getHeight(yt),Yt=uo.internal.getWidth(yt),Zt=Fs(yt,yt.caption);return Qt.push("1 g"),Qt.push("0 0 "+qo(Yt)+" "+qo(kt)+" re"),Qt.push("f"),Qt.push("q"),Qt.push("0 0 1 rg"),Qt.push("0 0 "+qo(Yt-1)+" "+qo(kt-1)+" re"),Qt.push("W"),Qt.push("n"),Qt.push("0 g"),Qt.push("BT"),Qt.push("/"+wt+" "+qo(Zt.fontSize)+" Tf "+Ct),Qt.push(Zt.text),Qt.push("ET"),Qt.push("Q"),gt.stream=Qt.join(`
`),gt},OffPushDown:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=[];return wt.push("0.749023 g"),wt.push("0 0 "+qo(uo.internal.getWidth(yt))+" "+qo(uo.internal.getHeight(yt))+" re"),wt.push("f"),gt.stream=wt.join(`
`),gt}},RadioButton:{Circle:{createAppearanceStream:function(yt){var gt={D:{Off:uo.RadioButton.Circle.OffPushDown},N:{}};return gt.N[yt]=uo.RadioButton.Circle.YesNormal,gt.D[yt]=uo.RadioButton.Circle.YesPushDown,gt},getCA:function(){return"l"},YesNormal:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=[],Ct=uo.internal.getWidth(yt)<=uo.internal.getHeight(yt)?uo.internal.getWidth(yt)/4:uo.internal.getHeight(yt)/4;Ct=Number((.9*Ct).toFixed(5));var Qt=uo.internal.Bezier_C,kt=Number((Ct*Qt).toFixed(5));return wt.push("q"),wt.push("1 0 0 1 "+Mn(uo.internal.getWidth(yt)/2)+" "+Mn(uo.internal.getHeight(yt)/2)+" cm"),wt.push(Ct+" 0 m"),wt.push(Ct+" "+kt+" "+kt+" "+Ct+" 0 "+Ct+" c"),wt.push("-"+kt+" "+Ct+" -"+Ct+" "+kt+" -"+Ct+" 0 c"),wt.push("-"+Ct+" -"+kt+" -"+kt+" -"+Ct+" 0 -"+Ct+" c"),wt.push(kt+" -"+Ct+" "+Ct+" -"+kt+" "+Ct+" 0 c"),wt.push("f"),wt.push("Q"),gt.stream=wt.join(`
`),gt},YesPushDown:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=[],Ct=uo.internal.getWidth(yt)<=uo.internal.getHeight(yt)?uo.internal.getWidth(yt)/4:uo.internal.getHeight(yt)/4;Ct=Number((.9*Ct).toFixed(5));var Qt=Number((2*Ct).toFixed(5)),kt=Number((Qt*uo.internal.Bezier_C).toFixed(5)),Yt=Number((Ct*uo.internal.Bezier_C).toFixed(5));return wt.push("0.749023 g"),wt.push("q"),wt.push("1 0 0 1 "+Mn(uo.internal.getWidth(yt)/2)+" "+Mn(uo.internal.getHeight(yt)/2)+" cm"),wt.push(Qt+" 0 m"),wt.push(Qt+" "+kt+" "+kt+" "+Qt+" 0 "+Qt+" c"),wt.push("-"+kt+" "+Qt+" -"+Qt+" "+kt+" -"+Qt+" 0 c"),wt.push("-"+Qt+" -"+kt+" -"+kt+" -"+Qt+" 0 -"+Qt+" c"),wt.push(kt+" -"+Qt+" "+Qt+" -"+kt+" "+Qt+" 0 c"),wt.push("f"),wt.push("Q"),wt.push("0 g"),wt.push("q"),wt.push("1 0 0 1 "+Mn(uo.internal.getWidth(yt)/2)+" "+Mn(uo.internal.getHeight(yt)/2)+" cm"),wt.push(Ct+" 0 m"),wt.push(Ct+" "+Yt+" "+Yt+" "+Ct+" 0 "+Ct+" c"),wt.push("-"+Yt+" "+Ct+" -"+Ct+" "+Yt+" -"+Ct+" 0 c"),wt.push("-"+Ct+" -"+Yt+" -"+Yt+" -"+Ct+" 0 -"+Ct+" c"),wt.push(Yt+" -"+Ct+" "+Ct+" -"+Yt+" "+Ct+" 0 c"),wt.push("f"),wt.push("Q"),gt.stream=wt.join(`
`),gt},OffPushDown:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=[],Ct=uo.internal.getWidth(yt)<=uo.internal.getHeight(yt)?uo.internal.getWidth(yt)/4:uo.internal.getHeight(yt)/4;Ct=Number((.9*Ct).toFixed(5));var Qt=Number((2*Ct).toFixed(5)),kt=Number((Qt*uo.internal.Bezier_C).toFixed(5));return wt.push("0.749023 g"),wt.push("q"),wt.push("1 0 0 1 "+Mn(uo.internal.getWidth(yt)/2)+" "+Mn(uo.internal.getHeight(yt)/2)+" cm"),wt.push(Qt+" 0 m"),wt.push(Qt+" "+kt+" "+kt+" "+Qt+" 0 "+Qt+" c"),wt.push("-"+kt+" "+Qt+" -"+Qt+" "+kt+" -"+Qt+" 0 c"),wt.push("-"+Qt+" -"+kt+" -"+kt+" -"+Qt+" 0 -"+Qt+" c"),wt.push(kt+" -"+Qt+" "+Qt+" -"+kt+" "+Qt+" 0 c"),wt.push("f"),wt.push("Q"),gt.stream=wt.join(`
`),gt}},Cross:{createAppearanceStream:function(yt){var gt={D:{Off:uo.RadioButton.Cross.OffPushDown},N:{}};return gt.N[yt]=uo.RadioButton.Cross.YesNormal,gt.D[yt]=uo.RadioButton.Cross.YesPushDown,gt},getCA:function(){return"8"},YesNormal:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=[],Ct=uo.internal.calculateCross(yt);return wt.push("q"),wt.push("1 1 "+qo(uo.internal.getWidth(yt)-2)+" "+qo(uo.internal.getHeight(yt)-2)+" re"),wt.push("W"),wt.push("n"),wt.push(qo(Ct.x1.x)+" "+qo(Ct.x1.y)+" m"),wt.push(qo(Ct.x2.x)+" "+qo(Ct.x2.y)+" l"),wt.push(qo(Ct.x4.x)+" "+qo(Ct.x4.y)+" m"),wt.push(qo(Ct.x3.x)+" "+qo(Ct.x3.y)+" l"),wt.push("s"),wt.push("Q"),gt.stream=wt.join(`
`),gt},YesPushDown:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=uo.internal.calculateCross(yt),Ct=[];return Ct.push("0.749023 g"),Ct.push("0 0 "+qo(uo.internal.getWidth(yt))+" "+qo(uo.internal.getHeight(yt))+" re"),Ct.push("f"),Ct.push("q"),Ct.push("1 1 "+qo(uo.internal.getWidth(yt)-2)+" "+qo(uo.internal.getHeight(yt)-2)+" re"),Ct.push("W"),Ct.push("n"),Ct.push(qo(wt.x1.x)+" "+qo(wt.x1.y)+" m"),Ct.push(qo(wt.x2.x)+" "+qo(wt.x2.y)+" l"),Ct.push(qo(wt.x4.x)+" "+qo(wt.x4.y)+" m"),Ct.push(qo(wt.x3.x)+" "+qo(wt.x3.y)+" l"),Ct.push("s"),Ct.push("Q"),gt.stream=Ct.join(`
`),gt},OffPushDown:function(yt){var gt=Vl(yt);gt.scope=yt.scope;var wt=[];return wt.push("0.749023 g"),wt.push("0 0 "+qo(uo.internal.getWidth(yt))+" "+qo(uo.internal.getHeight(yt))+" re"),wt.push("f"),gt.stream=wt.join(`
`),gt}}},createDefaultAppearanceStream:function(yt){var gt=yt.scope.internal.getFont(yt.fontName,yt.fontStyle).id,wt=yt.scope.__private__.encodeColorString(yt.color);return"/"+gt+" "+yt.fontSize+" Tf "+wt}};uo.internal={Bezier_C:.551915024494,calculateCross:function(yt){var gt=uo.internal.getWidth(yt),wt=uo.internal.getHeight(yt),Ct=Math.min(gt,wt);return{x1:{x:(gt-Ct)/2,y:(wt-Ct)/2+Ct},x2:{x:(gt-Ct)/2+Ct,y:(wt-Ct)/2},x3:{x:(gt-Ct)/2,y:(wt-Ct)/2},x4:{x:(gt-Ct)/2+Ct,y:(wt-Ct)/2+Ct}}}},uo.internal.getWidth=function(yt){var gt=0;return(0,zt.Z)(yt)==="object"&&(gt=tc(yt.Rect[2])),gt},uo.internal.getHeight=function(yt){var gt=0;return(0,zt.Z)(yt)==="object"&&(gt=tc(yt.Rect[3])),gt};var id=Ls.addField=function(yt){if(lu(this,yt),!(yt instanceof bl))throw new Error("Invalid argument passed to jsPDF.addField.");var gt;return(gt=yt).scope.internal.acroformPlugin.printedOut&&(gt.scope.internal.acroformPlugin.printedOut=!1,gt.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),gt.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(gt),yt.page=yt.scope.internal.getCurrentPageInfo().pageNumber,this};Ls.AcroFormChoiceField=zu,Ls.AcroFormListBox=Ql,Ls.AcroFormComboBox=bo,Ls.AcroFormEditBox=fa,Ls.AcroFormButton=Ea,Ls.AcroFormPushButton=Yl,Ls.AcroFormRadioButton=Rl,Ls.AcroFormCheckBox=tu,Ls.AcroFormTextField=Hl,Ls.AcroFormPasswordField=Ll,Ls.AcroFormAppearance=uo,Ls.AcroForm={ChoiceField:zu,ListBox:Ql,ComboBox:bo,EditBox:fa,Button:Ea,PushButton:Yl,RadioButton:Rl,CheckBox:tu,TextField:Hl,PasswordField:Ll,Appearance:uo},so.AcroForm={ChoiceField:zu,ListBox:Ql,ComboBox:bo,EditBox:fa,Button:Ea,PushButton:Yl,RadioButton:Rl,CheckBox:tu,TextField:Hl,PasswordField:Ll,Appearance:uo};var Xl=so.AcroForm;function Nc(yt){return yt.reduce(function(gt,wt,Ct){return gt[wt]=Ct,gt},{})}(function(yt){yt.__addimage__={};var gt="UNKNOWN",wt={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Ct=yt.__addimage__.getImageFileTypeByImageData=function(yn,bn){var bi,hi,cr,sr,Vi,zi=gt;if((bn=bn||gt)==="RGBA"||yn.data!==void 0&&yn.data instanceof Uint8ClampedArray&&"height"in yn&&"width"in yn)return"RGBA";if(Er(yn))for(Vi in wt)for(cr=wt[Vi],bi=0;bi<cr.length;bi+=1){for(sr=!0,hi=0;hi<cr[bi].length;hi+=1)if(cr[bi][hi]!==void 0&&cr[bi][hi]!==yn[hi]){sr=!1;break}if(sr===!0){zi=Vi;break}}else for(Vi in wt)for(cr=wt[Vi],bi=0;bi<cr.length;bi+=1){for(sr=!0,hi=0;hi<cr[bi].length;hi+=1)if(cr[bi][hi]!==void 0&&cr[bi][hi]!==yn.charCodeAt(hi)){sr=!1;break}if(sr===!0){zi=Vi;break}}return zi===gt&&bn!==gt&&(zi=bn),zi},Qt=function yn(bn){for(var bi=this.internal.write,hi=this.internal.putStream,cr=(0,this.internal.getFilters)();cr.indexOf("FlateEncode")!==-1;)cr.splice(cr.indexOf("FlateEncode"),1);bn.objectId=this.internal.newObject();var sr=[];if(sr.push({key:"Type",value:"/XObject"}),sr.push({key:"Subtype",value:"/Image"}),sr.push({key:"Width",value:bn.width}),sr.push({key:"Height",value:bn.height}),bn.colorSpace===jn.INDEXED?sr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(bn.palette.length/3-1)+" "+("sMask"in bn&&bn.sMask!==void 0?bn.objectId+2:bn.objectId+1)+" 0 R]"}):(sr.push({key:"ColorSpace",value:"/"+bn.colorSpace}),bn.colorSpace===jn.DEVICE_CMYK&&sr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),sr.push({key:"BitsPerComponent",value:bn.bitsPerComponent}),"decodeParameters"in bn&&bn.decodeParameters!==void 0&&sr.push({key:"DecodeParms",value:"<<"+bn.decodeParameters+">>"}),"transparency"in bn&&Array.isArray(bn.transparency)){for(var Vi="",zi=0,Gi=bn.transparency.length;zi<Gi;zi++)Vi+=bn.transparency[zi]+" "+bn.transparency[zi]+" ";sr.push({key:"Mask",value:"["+Vi+"]"})}bn.sMask!==void 0&&sr.push({key:"SMask",value:bn.objectId+1+" 0 R"});var rr=bn.filter!==void 0?["/"+bn.filter]:void 0;if(hi({data:bn.data,additionalKeyValues:sr,alreadyAppliedFilters:rr,objectId:bn.objectId}),bi("endobj"),"sMask"in bn&&bn.sMask!==void 0){var ao="/Predictor "+bn.predictor+" /Colors 1 /BitsPerComponent "+bn.bitsPerComponent+" /Columns "+bn.width,tn={width:bn.width,height:bn.height,colorSpace:"DeviceGray",bitsPerComponent:bn.bitsPerComponent,decodeParameters:ao,data:bn.sMask};"filter"in bn&&(tn.filter=bn.filter),yn.call(this,tn)}if(bn.colorSpace===jn.INDEXED){var Un=this.internal.newObject();hi({data:li(new Uint8Array(bn.palette)),objectId:Un}),bi("endobj")}},kt=function(){var yn=this.internal.collections.addImage_images;for(var bn in yn)Qt.call(this,yn[bn])},Yt=function(){var yn,bn=this.internal.collections.addImage_images,bi=this.internal.write;for(var hi in bn)bi("/I"+(yn=bn[hi]).index,yn.objectId,"0","R")},Zt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",kt),this.internal.events.subscribe("putXobjectDict",Yt))},ne=function(){var yn=this.internal.collections.addImage_images;return Zt.call(this),yn},Ce=function(){return Object.keys(this.internal.collections.addImage_images).length},Re=function(yn){return typeof yt["process"+yn.toUpperCase()]=="function"},Qe=function(yn){return(0,zt.Z)(yn)==="object"&&yn.nodeType===1},en=function(yn,bn){if(yn.nodeName==="IMG"&&yn.hasAttribute("src")){var bi=""+yn.getAttribute("src");if(bi.indexOf("data:image/")===0)return Xo(unescape(bi).split("base64,").pop());var hi=yt.loadFile(bi,!0);if(hi!==void 0)return hi}if(yn.nodeName==="CANVAS"){if(yn.width===0||yn.height===0)throw new Error("Given canvas must have data. Canvas width: "+yn.width+", height: "+yn.height);var cr;switch(bn){case"PNG":cr="image/png";break;case"WEBP":cr="image/webp";break;case"JPEG":case"JPG":default:cr="image/jpeg"}return Xo(yn.toDataURL(cr,1).split("base64,").pop())}},ce=function(yn){var bn=this.internal.collections.addImage_images;if(bn){for(var bi in bn)if(yn===bn[bi].alias)return bn[bi]}},kn=function(yn,bn,bi){return yn||bn||(yn=-96,bn=-96),yn<0&&(yn=-1*bi.width*72/yn/this.internal.scaleFactor),bn<0&&(bn=-1*bi.height*72/bn/this.internal.scaleFactor),yn===0&&(yn=bn*bi.width/bi.height),bn===0&&(bn=yn*bi.height/bi.width),[yn,bn]},Bn=function(yn,bn,bi,hi,cr,sr){var Vi=kn.call(this,bi,hi,cr),zi=this.internal.getCoordinateString,Gi=this.internal.getVerticalCoordinateString,rr=ne.call(this);if(bi=Vi[0],hi=Vi[1],rr[cr.index]=cr,sr){sr*=Math.PI/180;var ao=Math.cos(sr),tn=Math.sin(sr),Un=function(pi){return pi.toFixed(4)},Gn=[Un(ao),Un(tn),Un(-1*tn),Un(ao),0,0,"cm"]}this.internal.write("q"),sr?(this.internal.write([1,"0","0",1,zi(yn),Gi(bn+hi),"cm"].join(" ")),this.internal.write(Gn.join(" ")),this.internal.write([zi(bi),"0","0",zi(hi),"0","0","cm"].join(" "))):this.internal.write([zi(bi),"0","0",zi(hi),zi(yn),Gi(bn+hi),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+cr.index+" Do"),this.internal.write("Q")},jn=yt.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};yt.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var an=yt.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},On=yt.__addimage__.sHashCode=function(yn){var bn,bi,hi=0;if(typeof yn=="string")for(bi=yn.length,bn=0;bn<bi;bn++)hi=(hi<<5)-hi+yn.charCodeAt(bn),hi|=0;else if(Er(yn))for(bi=yn.byteLength/2,bn=0;bn<bi;bn++)hi=(hi<<5)-hi+yn[bn],hi|=0;return hi},mi=yt.__addimage__.validateStringAsBase64=function(yn){(yn=yn||"").toString().trim();var bn=!0;return yn.length===0&&(bn=!1),yn.length%4!=0&&(bn=!1),/^[A-Za-z0-9+/]+$/.test(yn.substr(0,yn.length-2))===!1&&(bn=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(yn.substr(-2))===!1&&(bn=!1),bn},Ui=yt.__addimage__.extractImageFromDataUrl=function(yn){if(yn==null||!(yn=yn.trim()).startsWith("data:"))return null;var bn=yn.indexOf(",");return bn<0?null:yn.substring(0,bn).trim().endsWith("base64")?yn.substring(bn+1):null},ir=yt.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};yt.__addimage__.isArrayBuffer=function(yn){return ir()&&yn instanceof ArrayBuffer};var Er=yt.__addimage__.isArrayBufferView=function(yn){return ir()&&typeof Uint32Array!="undefined"&&(yn instanceof Int8Array||yn instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&yn instanceof Uint8ClampedArray||yn instanceof Int16Array||yn instanceof Uint16Array||yn instanceof Int32Array||yn instanceof Uint32Array||yn instanceof Float32Array||yn instanceof Float64Array)},_i=yt.__addimage__.binaryStringToUint8Array=function(yn){for(var bn=yn.length,bi=new Uint8Array(bn),hi=0;hi<bn;hi++)bi[hi]=yn.charCodeAt(hi);return bi},li=yt.__addimage__.arrayBufferToBinaryString=function(yn){for(var bn="",bi=Er(yn)?yn:new Uint8Array(yn),hi=0;hi<bi.length;hi+=8192)bn+=String.fromCharCode.apply(null,bi.subarray(hi,hi+8192));return bn};yt.addImage=function(){var yn,bn,bi,hi,cr,sr,Vi,zi,Gi;if(typeof arguments[1]=="number"?(bn=gt,bi=arguments[1],hi=arguments[2],cr=arguments[3],sr=arguments[4],Vi=arguments[5],zi=arguments[6],Gi=arguments[7]):(bn=arguments[1],bi=arguments[2],hi=arguments[3],cr=arguments[4],sr=arguments[5],Vi=arguments[6],zi=arguments[7],Gi=arguments[8]),(0,zt.Z)(yn=arguments[0])==="object"&&!Qe(yn)&&"imageData"in yn){var rr=yn;yn=rr.imageData,bn=rr.format||bn||gt,bi=rr.x||bi||0,hi=rr.y||hi||0,cr=rr.w||rr.width||cr,sr=rr.h||rr.height||sr,Vi=rr.alias||Vi,zi=rr.compression||zi,Gi=rr.rotation||rr.angle||Gi}var ao=this.internal.getFilters();if(zi===void 0&&ao.indexOf("FlateEncode")!==-1&&(zi="SLOW"),isNaN(bi)||isNaN(hi))throw new Error("Invalid coordinates passed to jsPDF.addImage");Zt.call(this);var tn=Xi.call(this,yn,bn,Vi,zi);return Bn.call(this,bi,hi,cr,sr,tn,Gi),this};var Xi=function(yn,bn,bi,hi){var cr,sr,Vi;if(typeof yn=="string"&&Ct(yn)===gt){yn=unescape(yn);var zi=yr(yn,!1);(zi!==""||(zi=yt.loadFile(yn,!0))!==void 0)&&(yn=zi)}if(Qe(yn)&&(yn=en(yn,bn)),bn=Ct(yn,bn),!Re(bn))throw new Error("addImage does not support files of type '"+bn+"', please ensure that a plugin for '"+bn+"' support is added.");if(((Vi=bi)==null||Vi.length===0)&&(bi=function(Gi){return typeof Gi=="string"||Er(Gi)?On(Gi):Er(Gi.data)?On(Gi.data):null}(yn)),(cr=ce.call(this,bi))||(ir()&&(yn instanceof Uint8Array||bn==="RGBA"||(sr=yn,yn=_i(yn))),cr=this["process"+bn.toUpperCase()](yn,Ce.call(this),bi,function(Gi){return Gi&&typeof Gi=="string"&&(Gi=Gi.toUpperCase()),Gi in yt.image_compression?Gi:an.NONE}(hi),sr)),!cr)throw new Error("An unknown error occurred whilst processing the image.");return cr},yr=yt.__addimage__.convertBase64ToBinaryString=function(yn,bn){bn=typeof bn!="boolean"||bn;var bi,hi="";if(typeof yn=="string"){var cr;bi=(cr=Ui(yn))!==null&&cr!==void 0?cr:yn;try{hi=Xo(bi)}catch(sr){if(bn)throw mi(bi)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+sr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return hi};yt.getImageProperties=function(yn){var bn,bi,hi="";if(Qe(yn)&&(yn=en(yn)),typeof yn=="string"&&Ct(yn)===gt&&((hi=yr(yn,!1))===""&&(hi=yt.loadFile(yn)||""),yn=hi),bi=Ct(yn),!Re(bi))throw new Error("addImage does not support files of type '"+bi+"', please ensure that a plugin for '"+bi+"' support is added.");if(!ir()||yn instanceof Uint8Array||(yn=_i(yn)),!(bn=this["process"+bi.toUpperCase()](yn)))throw new Error("An unknown error occurred whilst processing the image");return bn.fileType=bi,bn}})(so.API),function(yt){var gt=function(wt){if(wt!==void 0&&wt!="")return!0};so.API.events.push(["addPage",function(wt){this.internal.getPageInfo(wt.pageNumber).pageContext.annotations=[]}]),yt.events.push(["putPage",function(wt){for(var Ct,Qt,kt,Yt=this.internal.getCoordinateString,Zt=this.internal.getVerticalCoordinateString,ne=this.internal.getPageInfoByObjId(wt.objId),Ce=wt.pageContext.annotations,Re=!1,Qe=0;Qe<Ce.length&&!Re;Qe++)switch((Ct=Ce[Qe]).type){case"link":(gt(Ct.options.url)||gt(Ct.options.pageNumber))&&(Re=!0);break;case"reference":case"text":case"freetext":Re=!0}if(Re!=0){this.internal.write("/Annots [");for(var en=0;en<Ce.length;en++){Ct=Ce[en];var ce=this.internal.pdfEscape,kn=this.internal.getEncryptor(wt.objId);switch(Ct.type){case"reference":this.internal.write(" "+Ct.object.objId+" 0 R ");break;case"text":var Bn=this.internal.newAdditionalObject(),jn=this.internal.newAdditionalObject(),an=this.internal.getEncryptor(Bn.objId),On=Ct.title||"Note";kt="<</Type /Annot /Subtype /Text "+(Qt="/Rect ["+Yt(Ct.bounds.x)+" "+Zt(Ct.bounds.y+Ct.bounds.h)+" "+Yt(Ct.bounds.x+Ct.bounds.w)+" "+Zt(Ct.bounds.y)+"] ")+"/Contents ("+ce(an(Ct.contents))+")",kt+=" /Popup "+jn.objId+" 0 R",kt+=" /P "+ne.objId+" 0 R",kt+=" /T ("+ce(an(On))+") >>",Bn.content=kt;var mi=Bn.objId+" 0 R";kt="<</Type /Annot /Subtype /Popup "+(Qt="/Rect ["+Yt(Ct.bounds.x+30)+" "+Zt(Ct.bounds.y+Ct.bounds.h)+" "+Yt(Ct.bounds.x+Ct.bounds.w+30)+" "+Zt(Ct.bounds.y)+"] ")+" /Parent "+mi,Ct.open&&(kt+=" /Open true"),kt+=" >>",jn.content=kt,this.internal.write(Bn.objId,"0 R",jn.objId,"0 R");break;case"freetext":Qt="/Rect ["+Yt(Ct.bounds.x)+" "+Zt(Ct.bounds.y)+" "+Yt(Ct.bounds.x+Ct.bounds.w)+" "+Zt(Ct.bounds.y+Ct.bounds.h)+"] ";var Ui=Ct.color||"#000000";kt="<</Type /Annot /Subtype /FreeText "+Qt+"/Contents ("+ce(kn(Ct.contents))+")",kt+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Ui+")",kt+=" /Border [0 0 0]",kt+=" >>",this.internal.write(kt);break;case"link":if(Ct.options.name){var ir=this.annotations._nameMap[Ct.options.name];Ct.options.pageNumber=ir.page,Ct.options.top=ir.y}else Ct.options.top||(Ct.options.top=0);if(Qt="/Rect ["+Ct.finalBounds.x+" "+Ct.finalBounds.y+" "+Ct.finalBounds.w+" "+Ct.finalBounds.h+"] ",kt="",Ct.options.url)kt="<</Type /Annot /Subtype /Link "+Qt+"/Border [0 0 0] /A <</S /URI /URI ("+ce(kn(Ct.options.url))+") >>";else if(Ct.options.pageNumber)switch(kt="<</Type /Annot /Subtype /Link "+Qt+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ct.options.pageNumber).objId+" 0 R",Ct.options.magFactor=Ct.options.magFactor||"XYZ",Ct.options.magFactor){case"Fit":kt+=" /Fit]";break;case"FitH":kt+=" /FitH "+Ct.options.top+"]";break;case"FitV":Ct.options.left=Ct.options.left||0,kt+=" /FitV "+Ct.options.left+"]";break;case"XYZ":default:var Er=Zt(Ct.options.top);Ct.options.left=Ct.options.left||0,Ct.options.zoom===void 0&&(Ct.options.zoom=0),kt+=" /XYZ "+Ct.options.left+" "+Er+" "+Ct.options.zoom+"]"}kt!=""&&(kt+=" >>",this.internal.write(kt))}}this.internal.write("]")}}]),yt.createAnnotation=function(wt){var Ct=this.internal.getCurrentPageInfo();switch(wt.type){case"link":this.link(wt.bounds.x,wt.bounds.y,wt.bounds.w,wt.bounds.h,wt);break;case"text":case"freetext":Ct.pageContext.annotations.push(wt)}},yt.link=function(wt,Ct,Qt,kt,Yt){var Zt=this.internal.getCurrentPageInfo(),ne=this.internal.getCoordinateString,Ce=this.internal.getVerticalCoordinateString;Zt.pageContext.annotations.push({finalBounds:{x:ne(wt),y:Ce(Ct),w:ne(wt+Qt),h:Ce(Ct+kt)},options:Yt,type:"link"})},yt.textWithLink=function(wt,Ct,Qt,kt){var Yt,Zt,ne=this.getTextWidth(wt),Ce=this.internal.getLineHeight()/this.internal.scaleFactor;if(kt.maxWidth!==void 0){Zt=kt.maxWidth;var Re=this.splitTextToSize(wt,Zt).length;Yt=Math.ceil(Ce*Re)}else Zt=ne,Yt=Ce;return this.text(wt,Ct,Qt,kt),Qt+=.2*Ce,kt.align==="center"&&(Ct-=ne/2),kt.align==="right"&&(Ct-=ne),this.link(Ct,Qt-Ce,Zt,Yt,kt),ne},yt.getTextWidth=function(wt){var Ct=this.internal.getFontSize();return this.getStringUnitWidth(wt)*Ct/this.internal.scaleFactor}}(so.API),function(yt){var gt={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},wt={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},Ct={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Qt=[1570,1571,1573,1575];yt.__arabicParser__={};var kt=yt.__arabicParser__.isInArabicSubstitutionA=function(Bn){return gt[Bn.charCodeAt(0)]!==void 0},Yt=yt.__arabicParser__.isArabicLetter=function(Bn){return typeof Bn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Bn)},Zt=yt.__arabicParser__.isArabicEndLetter=function(Bn){return Yt(Bn)&&kt(Bn)&&gt[Bn.charCodeAt(0)].length<=2},ne=yt.__arabicParser__.isArabicAlfLetter=function(Bn){return Yt(Bn)&&Qt.indexOf(Bn.charCodeAt(0))>=0};yt.__arabicParser__.arabicLetterHasIsolatedForm=function(Bn){return Yt(Bn)&&kt(Bn)&&gt[Bn.charCodeAt(0)].length>=1};var Ce=yt.__arabicParser__.arabicLetterHasFinalForm=function(Bn){return Yt(Bn)&&kt(Bn)&&gt[Bn.charCodeAt(0)].length>=2};yt.__arabicParser__.arabicLetterHasInitialForm=function(Bn){return Yt(Bn)&&kt(Bn)&&gt[Bn.charCodeAt(0)].length>=3};var Re=yt.__arabicParser__.arabicLetterHasMedialForm=function(Bn){return Yt(Bn)&&kt(Bn)&&gt[Bn.charCodeAt(0)].length==4},Qe=yt.__arabicParser__.resolveLigatures=function(Bn){var jn=0,an=wt,On="",mi=0;for(jn=0;jn<Bn.length;jn+=1)an[Bn.charCodeAt(jn)]!==void 0?(mi++,typeof(an=an[Bn.charCodeAt(jn)])=="number"&&(On+=String.fromCharCode(an),an=wt,mi=0),jn===Bn.length-1&&(an=wt,On+=Bn.charAt(jn-(mi-1)),jn-=mi-1,mi=0)):(an=wt,On+=Bn.charAt(jn-mi),jn-=mi,mi=0);return On};yt.__arabicParser__.isArabicDiacritic=function(Bn){return Bn!==void 0&&Ct[Bn.charCodeAt(0)]!==void 0};var en=yt.__arabicParser__.getCorrectForm=function(Bn,jn,an){return Yt(Bn)?kt(Bn)===!1?-1:!Ce(Bn)||!Yt(jn)&&!Yt(an)||!Yt(an)&&Zt(jn)||Zt(Bn)&&!Yt(jn)||Zt(Bn)&&ne(jn)||Zt(Bn)&&Zt(jn)?0:Re(Bn)&&Yt(jn)&&!Zt(jn)&&Yt(an)&&Ce(an)?3:Zt(Bn)||!Yt(an)?1:2:-1},ce=function(Bn){var jn=0,an=0,On=0,mi="",Ui="",ir="",Er=(Bn=Bn||"").split("\\s+"),_i=[];for(jn=0;jn<Er.length;jn+=1){for(_i.push(""),an=0;an<Er[jn].length;an+=1)mi=Er[jn][an],Ui=Er[jn][an-1],ir=Er[jn][an+1],Yt(mi)?(On=en(mi,Ui,ir),_i[jn]+=On!==-1?String.fromCharCode(gt[mi.charCodeAt(0)][On]):mi):_i[jn]+=mi;_i[jn]=Qe(_i[jn])}return _i.join(" ")},kn=yt.__arabicParser__.processArabic=yt.processArabic=function(){var Bn,jn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,an=[];if(Array.isArray(jn)){var On=0;for(an=[],On=0;On<jn.length;On+=1)Array.isArray(jn[On])?an.push([ce(jn[On][0]),jn[On][1],jn[On][2]]):an.push([ce(jn[On])]);Bn=an}else Bn=ce(jn);return typeof arguments[0]=="string"?Bn:(arguments[0].text=Bn,arguments[0])};yt.events.push(["preProcessText",kn])}(so.API),so.API.autoPrint=function(yt){var gt;switch((yt=yt||{}).variant=yt.variant||"non-conform",yt.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){gt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+gt+" 0 R")})}return this},function(yt){var gt=function(){var wt=void 0;Object.defineProperty(this,"pdf",{get:function(){return wt},set:function(Zt){wt=Zt}});var Ct=150;Object.defineProperty(this,"width",{get:function(){return Ct},set:function(Zt){Ct=isNaN(Zt)||Number.isInteger(Zt)===!1||Zt<0?150:Zt,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ct+1)}});var Qt=300;Object.defineProperty(this,"height",{get:function(){return Qt},set:function(Zt){Qt=isNaN(Zt)||Number.isInteger(Zt)===!1||Zt<0?300:Zt,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Qt+1)}});var kt=[];Object.defineProperty(this,"childNodes",{get:function(){return kt},set:function(Zt){kt=Zt}});var Yt={};Object.defineProperty(this,"style",{get:function(){return Yt},set:function(Zt){Yt=Zt}}),Object.defineProperty(this,"parentNode",{})};gt.prototype.getContext=function(wt,Ct){var Qt;if((wt=wt||"2d")!=="2d")return null;for(Qt in Ct)this.pdf.context2d.hasOwnProperty(Qt)&&(this.pdf.context2d[Qt]=Ct[Qt]);return this.pdf.context2d._canvas=this,this.pdf.context2d},gt.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},yt.events.push(["initialized",function(){this.canvas=new gt,this.canvas.pdf=this}])}(so.API),function(yt){var gt={left:0,top:0,bottom:0,right:0},wt=!1,Ct=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},gt),this.internal.__cell__.margins.width=this.getPageWidth(),Qt.call(this))},Qt=function(){this.internal.__cell__.lastCell=new kt,this.internal.__cell__.pages=1},kt=function(){var ne=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ne},set:function(Bn){ne=Bn}});var Ce=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ce},set:function(Bn){Ce=Bn}});var Re=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Re},set:function(Bn){Re=Bn}});var Qe=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Qe},set:function(Bn){Qe=Bn}});var en=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return en},set:function(Bn){en=Bn}});var ce=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ce},set:function(Bn){ce=Bn}});var kn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return kn},set:function(Bn){kn=Bn}}),this};kt.prototype.clone=function(){return new kt(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},kt.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},yt.setHeaderFunction=function(ne){return Ct.call(this),this.internal.__cell__.headerFunction=typeof ne=="function"?ne:void 0,this},yt.getTextDimensions=function(ne,Ce){Ct.call(this);var Re=(Ce=Ce||{}).fontSize||this.getFontSize(),Qe=Ce.font||this.getFont(),en=Ce.scaleFactor||this.internal.scaleFactor,ce=0,kn=0,Bn=0,jn=this;if(!Array.isArray(ne)&&typeof ne!="string"){if(typeof ne!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ne=String(ne)}var an=Ce.maxWidth;an>0?typeof ne=="string"?ne=this.splitTextToSize(ne,an):Object.prototype.toString.call(ne)==="[object Array]"&&(ne=ne.reduce(function(mi,Ui){return mi.concat(jn.splitTextToSize(Ui,an))},[])):ne=Array.isArray(ne)?ne:[ne];for(var On=0;On<ne.length;On++)ce<(Bn=this.getStringUnitWidth(ne[On],{font:Qe})*Re)&&(ce=Bn);return ce!==0&&(kn=ne.length),{w:ce/=en,h:Math.max((kn*Re*this.getLineHeightFactor()-Re*(this.getLineHeightFactor()-1))/en,0)}},yt.cellAddPage=function(){Ct.call(this),this.addPage();var ne=this.internal.__cell__.margins||gt;return this.internal.__cell__.lastCell=new kt(ne.left,ne.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Yt=yt.cell=function(){var ne;ne=arguments[0]instanceof kt?arguments[0]:new kt(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ct.call(this);var Ce=this.internal.__cell__.lastCell,Re=this.internal.__cell__.padding,Qe=this.internal.__cell__.margins||gt,en=this.internal.__cell__.tableHeaderRow,ce=this.internal.__cell__.printHeaders;return Ce.lineNumber!==void 0&&(Ce.lineNumber===ne.lineNumber?(ne.x=(Ce.x||0)+(Ce.width||0),ne.y=Ce.y||0):Ce.y+Ce.height+ne.height+Qe.bottom>this.getPageHeight()?(this.cellAddPage(),ne.y=Qe.top,ce&&en&&(this.printHeaderRow(ne.lineNumber,!0),ne.y+=en[0].height)):ne.y=Ce.y+Ce.height||ne.y),ne.text[0]!==void 0&&(this.rect(ne.x,ne.y,ne.width,ne.height,wt===!0?"FD":void 0),ne.align==="right"?this.text(ne.text,ne.x+ne.width-Re,ne.y+Re,{align:"right",baseline:"top"}):ne.align==="center"?this.text(ne.text,ne.x+ne.width/2,ne.y+Re,{align:"center",baseline:"top",maxWidth:ne.width-Re-Re}):this.text(ne.text,ne.x+Re,ne.y+Re,{align:"left",baseline:"top",maxWidth:ne.width-Re-Re})),this.internal.__cell__.lastCell=ne,this};yt.table=function(ne,Ce,Re,Qe,en){if(Ct.call(this),!Re)throw new Error("No data for PDF table.");var ce,kn,Bn,jn,an=[],On=[],mi=[],Ui={},ir={},Er=[],_i=[],li=(en=en||{}).autoSize||!1,Xi=en.printHeaders!==!1,yr=en.css&&en.css["font-size"]!==void 0?16*en.css["font-size"]:en.fontSize||12,yn=en.margins||Object.assign({width:this.getPageWidth()},gt),bn=typeof en.padding=="number"?en.padding:3,bi=en.headerBackgroundColor||"#c8c8c8",hi=en.headerTextColor||"#000";if(Qt.call(this),this.internal.__cell__.printHeaders=Xi,this.internal.__cell__.margins=yn,this.internal.__cell__.table_font_size=yr,this.internal.__cell__.padding=bn,this.internal.__cell__.headerBackgroundColor=bi,this.internal.__cell__.headerTextColor=hi,this.setFontSize(yr),Qe==null)On=an=Object.keys(Re[0]),mi=an.map(function(){return"left"});else if(Array.isArray(Qe)&&(0,zt.Z)(Qe[0])==="object")for(an=Qe.map(function(rr){return rr.name}),On=Qe.map(function(rr){return rr.prompt||rr.name||""}),mi=Qe.map(function(rr){return rr.align||"left"}),ce=0;ce<Qe.length;ce+=1)ir[Qe[ce].name]=Qe[ce].width*(19.049976/25.4);else Array.isArray(Qe)&&typeof Qe[0]=="string"&&(On=an=Qe,mi=an.map(function(){return"left"}));if(li||Array.isArray(Qe)&&typeof Qe[0]=="string")for(ce=0;ce<an.length;ce+=1){for(Ui[jn=an[ce]]=Re.map(function(rr){return rr[jn]}),this.setFont(void 0,"bold"),Er.push(this.getTextDimensions(On[ce],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),kn=Ui[jn],this.setFont(void 0,"normal"),Bn=0;Bn<kn.length;Bn+=1)Er.push(this.getTextDimensions(kn[Bn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ir[jn]=Math.max.apply(null,Er)+bn+bn,Er=[]}if(Xi){var cr={};for(ce=0;ce<an.length;ce+=1)cr[an[ce]]={},cr[an[ce]].text=On[ce],cr[an[ce]].align=mi[ce];var sr=Zt.call(this,cr,ir);_i=an.map(function(rr){return new kt(ne,Ce,ir[rr],sr,cr[rr].text,void 0,cr[rr].align)}),this.setTableHeaderRow(_i),this.printHeaderRow(1,!1)}var Vi=Qe.reduce(function(rr,ao){return rr[ao.name]=ao.align,rr},{});for(ce=0;ce<Re.length;ce+=1){"rowStart"in en&&en.rowStart instanceof Function&&en.rowStart({row:ce,data:Re[ce]},this);var zi=Zt.call(this,Re[ce],ir);for(Bn=0;Bn<an.length;Bn+=1){var Gi=Re[ce][an[Bn]];"cellStart"in en&&en.cellStart instanceof Function&&en.cellStart({row:ce,col:Bn,data:Gi},this),Yt.call(this,new kt(ne,Ce,ir[an[Bn]],zi,Gi,ce+2,Vi[an[Bn]]))}}return this.internal.__cell__.table_x=ne,this.internal.__cell__.table_y=Ce,this};var Zt=function(ne,Ce){var Re=this.internal.__cell__.padding,Qe=this.internal.__cell__.table_font_size,en=this.internal.scaleFactor;return Object.keys(ne).map(function(ce){var kn=ne[ce];return this.splitTextToSize(kn.hasOwnProperty("text")?kn.text:kn,Ce[ce]-Re-Re)},this).map(function(ce){return this.getLineHeightFactor()*ce.length*Qe/en+Re+Re},this).reduce(function(ce,kn){return Math.max(ce,kn)},0)};yt.setTableHeaderRow=function(ne){Ct.call(this),this.internal.__cell__.tableHeaderRow=ne},yt.printHeaderRow=function(ne,Ce){if(Ct.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Re;if(wt=!0,typeof this.internal.__cell__.headerFunction=="function"){var Qe=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new kt(Qe[0],Qe[1],Qe[2],Qe[3],void 0,-1)}this.setFont(void 0,"bold");for(var en=[],ce=0;ce<this.internal.__cell__.tableHeaderRow.length;ce+=1){Re=this.internal.__cell__.tableHeaderRow[ce].clone(),Ce&&(Re.y=this.internal.__cell__.margins.top||0,en.push(Re)),Re.lineNumber=ne;var kn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Yt.call(this,Re),this.setTextColor(kn)}en.length>0&&this.setTableHeaderRow(en),this.setFont(void 0,"normal"),wt=!1}}(so.API);var dh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},uA=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],xa=Nc(uA),Gu=[100,200,300,400,500,600,700,800,900],rd=Nc(Gu);function jA(yt){var gt=yt.family.replace(/"|'/g,"").toLowerCase(),wt=function(kt){return dh[kt=kt||"normal"]?kt:"normal"}(yt.style),Ct=function(kt){if(!kt)return 400;if(typeof kt=="number")return kt>=100&&kt<=900&&kt%100==0?kt:400;if(/^\d00$/.test(kt))return parseInt(kt);switch(kt){case"bold":return 700;case"normal":default:return 400}}(yt.weight),Qt=function(kt){return typeof xa[kt=kt||"normal"]=="number"?kt:"normal"}(yt.stretch);return{family:gt,style:wt,weight:Ct,stretch:Qt,src:yt.src||[],ref:yt.ref||{name:gt,style:[Qt,wt,Ct].join(" ")}}}function nc(yt,gt,wt,Ct){var Qt;for(Qt=wt;Qt>=0&&Qt<gt.length;Qt+=Ct)if(yt[gt[Qt]])return yt[gt[Qt]];for(Qt=wt;Qt>=0&&Qt<gt.length;Qt-=Ct)if(yt[gt[Qt]])return yt[gt[Qt]]}var ns={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Xs={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function eu(yt){return[yt.stretch,yt.style,yt.weight,yt.family].join(" ")}function qa(yt,gt,wt){for(var Ct=(wt=wt||{}).defaultFontFamily||"times",Qt=Object.assign({},ns,wt.genericFontFamilies||{}),kt=null,Yt=null,Zt=0;Zt<gt.length;++Zt)if(Qt[(kt=jA(gt[Zt])).family]&&(kt.family=Qt[kt.family]),yt.hasOwnProperty(kt.family)){Yt=yt[kt.family];break}if(!(Yt=Yt||yt[Ct]))throw new Error("Could not find a font-family for the rule '"+eu(kt)+"' and default family '"+Ct+"'.");if(Yt=function(ne,Ce){if(Ce[ne])return Ce[ne];var Re=xa[ne],Qe=Re<=xa.normal?-1:1,en=nc(Ce,uA,Re,Qe);if(!en)throw new Error("Could not find a matching font-stretch value for "+ne);return en}(kt.stretch,Yt),Yt=function(ne,Ce){if(Ce[ne])return Ce[ne];for(var Re=dh[ne],Qe=0;Qe<Re.length;++Qe)if(Ce[Re[Qe]])return Ce[Re[Qe]];throw new Error("Could not find a matching font-style for "+ne)}(kt.style,Yt),!(Yt=function(ne,Ce){if(Ce[ne])return Ce[ne];if(ne===400&&Ce[500])return Ce[500];if(ne===500&&Ce[400])return Ce[400];var Re=rd[ne],Qe=nc(Ce,Gu,Re,ne<400?-1:1);if(!Qe)throw new Error("Could not find a matching font-weight for value "+ne);return Qe}(kt.weight,Yt)))throw new Error("Failed to resolve a font for the rule '"+eu(kt)+"'.");return Yt}function Ma(yt){return yt.trimLeft()}function ga(yt,gt){for(var wt=0;wt<yt.length;){if(yt.charAt(wt)===gt)return[yt.substring(0,wt),yt.substring(wt+1)];wt+=1}return null}function Zs(yt){var gt=yt.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return gt===null?null:[gt[0],yt.substring(gt[0].length)]}var Ba,ol,Gh,yu=["times"];(function(yt){var gt,wt,Ct,Qt,kt,Yt,Zt,ne,Ce,Re=function(tn){return tn=tn||{},this.isStrokeTransparent=tn.isStrokeTransparent||!1,this.strokeOpacity=tn.strokeOpacity||1,this.strokeStyle=tn.strokeStyle||"#000000",this.fillStyle=tn.fillStyle||"#000000",this.isFillTransparent=tn.isFillTransparent||!1,this.fillOpacity=tn.fillOpacity||1,this.font=tn.font||"10px sans-serif",this.textBaseline=tn.textBaseline||"alphabetic",this.textAlign=tn.textAlign||"left",this.lineWidth=tn.lineWidth||1,this.lineJoin=tn.lineJoin||"miter",this.lineCap=tn.lineCap||"butt",this.path=tn.path||[],this.transform=tn.transform!==void 0?tn.transform.clone():new ne,this.globalCompositeOperation=tn.globalCompositeOperation||"normal",this.globalAlpha=tn.globalAlpha||1,this.clip_path=tn.clip_path||[],this.currentPoint=tn.currentPoint||new Yt,this.miterLimit=tn.miterLimit||10,this.lastPoint=tn.lastPoint||new Yt,this.lineDashOffset=tn.lineDashOffset||0,this.lineDash=tn.lineDash||[],this.margin=tn.margin||[0,0,0,0],this.prevPageLastElemOffset=tn.prevPageLastElemOffset||0,this.ignoreClearRect=typeof tn.ignoreClearRect!="boolean"||tn.ignoreClearRect,this};yt.events.push(["initialized",function(){this.context2d=new Qe(this),gt=this.internal.f2,wt=this.internal.getCoordinateString,Ct=this.internal.getVerticalCoordinateString,Qt=this.internal.getHorizontalCoordinate,kt=this.internal.getVerticalCoordinate,Yt=this.internal.Point,Zt=this.internal.Rectangle,ne=this.internal.Matrix,Ce=new Re}]);var Qe=function(tn){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Un=tn;Object.defineProperty(this,"pdf",{get:function(){return Un}});var Gn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Gn},set:function(wr){Gn=!!wr}});var pi=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return pi},set:function(wr){pi=!!wr}});var Oi=0;Object.defineProperty(this,"posX",{get:function(){return Oi},set:function(wr){isNaN(wr)||(Oi=wr)}});var $i=0;Object.defineProperty(this,"posY",{get:function(){return $i},set:function(wr){isNaN(wr)||($i=wr)}}),Object.defineProperty(this,"margin",{get:function(){return Ce.margin},set:function(wr){var _n;typeof wr=="number"?_n=[wr,wr,wr,wr]:((_n=new Array(4))[0]=wr[0],_n[1]=wr.length>=2?wr[1]:_n[0],_n[2]=wr.length>=3?wr[2]:_n[0],_n[3]=wr.length>=4?wr[3]:_n[1]),Ce.margin=_n}});var Wi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Wi},set:function(wr){Wi=wr}});var or=0;Object.defineProperty(this,"lastBreak",{get:function(){return or},set:function(wr){or=wr}});var Mr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Mr},set:function(wr){Mr=wr}}),Object.defineProperty(this,"ctx",{get:function(){return Ce},set:function(wr){wr instanceof Re&&(Ce=wr)}}),Object.defineProperty(this,"path",{get:function(){return Ce.path},set:function(wr){Ce.path=wr}});var Gr=[];Object.defineProperty(this,"ctxStack",{get:function(){return Gr},set:function(wr){Gr=wr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(wr){var _n;_n=en(wr),this.ctx.fillStyle=_n.style,this.ctx.isFillTransparent=_n.a===0,this.ctx.fillOpacity=_n.a,this.pdf.setFillColor(_n.r,_n.g,_n.b,{a:_n.a}),this.pdf.setTextColor(_n.r,_n.g,_n.b,{a:_n.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(wr){var _n=en(wr);this.ctx.strokeStyle=_n.style,this.ctx.isStrokeTransparent=_n.a===0,this.ctx.strokeOpacity=_n.a,_n.a===0?this.pdf.setDrawColor(255,255,255):(_n.a,this.pdf.setDrawColor(_n.r,_n.g,_n.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(wr){["butt","round","square"].indexOf(wr)!==-1&&(this.ctx.lineCap=wr,this.pdf.setLineCap(wr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(wr){isNaN(wr)||(this.ctx.lineWidth=wr,this.pdf.setLineWidth(wr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(wr){["bevel","round","miter"].indexOf(wr)!==-1&&(this.ctx.lineJoin=wr,this.pdf.setLineJoin(wr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(wr){isNaN(wr)||(this.ctx.miterLimit=wr,this.pdf.setMiterLimit(wr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(wr){this.ctx.textBaseline=wr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(wr){["right","end","center","left","start"].indexOf(wr)!==-1&&(this.ctx.textAlign=wr)}});var Uo=null;function Lo(wr,_n){if(Uo===null){var ls=function(Jo){var Rr=[];return Object.keys(Jo).forEach(function(So){Jo[So].forEach(function(xo){var Yr=null;switch(xo){case"bold":Yr={family:So,weight:"bold"};break;case"italic":Yr={family:So,style:"italic"};break;case"bolditalic":Yr={family:So,weight:"bold",style:"italic"};break;case"":case"normal":Yr={family:So}}Yr!==null&&(Yr.ref={name:So,style:xo},Rr.push(Yr))})}),Rr}(wr.getFontList());Uo=function(Jo){for(var Rr={},So=0;So<Jo.length;++So){var xo=jA(Jo[So]),Yr=xo.family,ts=xo.stretch,ms=xo.style,cs=xo.weight;Rr[Yr]=Rr[Yr]||{},Rr[Yr][ts]=Rr[Yr][ts]||{},Rr[Yr][ts][ms]=Rr[Yr][ts][ms]||{},Rr[Yr][ts][ms][cs]=xo}return Rr}(ls.concat(_n))}return Uo}var Ss=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ss},set:function(wr){Uo=null,Ss=wr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(wr){var _n;if(this.ctx.font=wr,(_n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(wr))!==null){var ls=_n[1];_n[2];var Jo=_n[3],Rr=_n[4];_n[5];var So=_n[6],xo=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Rr)[2];Rr=Math.floor(xo==="px"?parseFloat(Rr)*this.pdf.internal.scaleFactor:xo==="em"?parseFloat(Rr)*this.pdf.getFontSize():parseFloat(Rr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Rr);var Yr=function(Bs){var ta,ko,Au=[],Ca=Bs.trim();if(Ca==="")return yu;if(Ca in Xs)return[Xs[Ca]];for(;Ca!=="";){switch(ko=null,ta=(Ca=Ma(Ca)).charAt(0)){case'"':case"'":ko=ga(Ca.substring(1),ta);break;default:ko=Zs(Ca)}if(ko===null||(Au.push(ko[0]),(Ca=Ma(ko[1]))!==""&&Ca.charAt(0)!==","))return yu;Ca=Ca.replace(/^,/,"")}return Au}(So);if(this.fontFaces){var ts=qa(Lo(this.pdf,this.fontFaces),Yr.map(function(Bs){return{family:Bs,stretch:"normal",weight:Jo,style:ls}}));this.pdf.setFont(ts.ref.name,ts.ref.style)}else{var ms="";(Jo==="bold"||parseInt(Jo,10)>=700||ls==="bold")&&(ms="bold"),ls==="italic"&&(ms+="italic"),ms.length===0&&(ms="normal");for(var cs="",Ds={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},$o=0;$o<Yr.length;$o++){if(this.pdf.internal.getFont(Yr[$o],ms,{noFallback:!0,disableWarning:!0})!==void 0){cs=Yr[$o];break}if(ms==="bolditalic"&&this.pdf.internal.getFont(Yr[$o],"bold",{noFallback:!0,disableWarning:!0})!==void 0)cs=Yr[$o],ms="bold";else if(this.pdf.internal.getFont(Yr[$o],"normal",{noFallback:!0,disableWarning:!0})!==void 0){cs=Yr[$o],ms="normal";break}}if(cs===""){for(var ra=0;ra<Yr.length;ra++)if(Ds[Yr[ra]]){cs=Ds[Yr[ra]];break}}cs=cs===""?"Times":cs,this.pdf.setFont(cs,ms)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(wr){this.ctx.globalCompositeOperation=wr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(wr){this.ctx.globalAlpha=wr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(wr){this.ctx.lineDashOffset=wr,ao.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(wr){this.ctx.lineDash=wr,ao.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(wr){this.ctx.ignoreClearRect=!!wr}})};Qe.prototype.setLineDash=function(tn){this.lineDash=tn},Qe.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Qe.prototype.fill=function(){Ui.call(this,"fill",!1)},Qe.prototype.stroke=function(){Ui.call(this,"stroke",!1)},Qe.prototype.beginPath=function(){this.path=[{type:"begin"}]},Qe.prototype.moveTo=function(tn,Un){if(isNaN(tn)||isNaN(Un))throw vo.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Gn=this.ctx.transform.applyToPoint(new Yt(tn,Un));this.path.push({type:"mt",x:Gn.x,y:Gn.y}),this.ctx.lastPoint=new Yt(tn,Un)},Qe.prototype.closePath=function(){var tn=new Yt(0,0),Un=0;for(Un=this.path.length-1;Un!==-1;Un--)if(this.path[Un].type==="begin"&&(0,zt.Z)(this.path[Un+1])==="object"&&typeof this.path[Un+1].x=="number"){tn=new Yt(this.path[Un+1].x,this.path[Un+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Yt(tn.x,tn.y)},Qe.prototype.lineTo=function(tn,Un){if(isNaN(tn)||isNaN(Un))throw vo.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Gn=this.ctx.transform.applyToPoint(new Yt(tn,Un));this.path.push({type:"lt",x:Gn.x,y:Gn.y}),this.ctx.lastPoint=new Yt(Gn.x,Gn.y)},Qe.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Ui.call(this,null,!0)},Qe.prototype.quadraticCurveTo=function(tn,Un,Gn,pi){if(isNaN(Gn)||isNaN(pi)||isNaN(tn)||isNaN(Un))throw vo.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Oi=this.ctx.transform.applyToPoint(new Yt(Gn,pi)),$i=this.ctx.transform.applyToPoint(new Yt(tn,Un));this.path.push({type:"qct",x1:$i.x,y1:$i.y,x:Oi.x,y:Oi.y}),this.ctx.lastPoint=new Yt(Oi.x,Oi.y)},Qe.prototype.bezierCurveTo=function(tn,Un,Gn,pi,Oi,$i){if(isNaN(Oi)||isNaN($i)||isNaN(tn)||isNaN(Un)||isNaN(Gn)||isNaN(pi))throw vo.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Wi=this.ctx.transform.applyToPoint(new Yt(Oi,$i)),or=this.ctx.transform.applyToPoint(new Yt(tn,Un)),Mr=this.ctx.transform.applyToPoint(new Yt(Gn,pi));this.path.push({type:"bct",x1:or.x,y1:or.y,x2:Mr.x,y2:Mr.y,x:Wi.x,y:Wi.y}),this.ctx.lastPoint=new Yt(Wi.x,Wi.y)},Qe.prototype.arc=function(tn,Un,Gn,pi,Oi,$i){if(isNaN(tn)||isNaN(Un)||isNaN(Gn)||isNaN(pi)||isNaN(Oi))throw vo.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if($i=!!$i,!this.ctx.transform.isIdentity){var Wi=this.ctx.transform.applyToPoint(new Yt(tn,Un));tn=Wi.x,Un=Wi.y;var or=this.ctx.transform.applyToPoint(new Yt(0,Gn)),Mr=this.ctx.transform.applyToPoint(new Yt(0,0));Gn=Math.sqrt(Math.pow(or.x-Mr.x,2)+Math.pow(or.y-Mr.y,2))}Math.abs(Oi-pi)>=2*Math.PI&&(pi=0,Oi=2*Math.PI),this.path.push({type:"arc",x:tn,y:Un,radius:Gn,startAngle:pi,endAngle:Oi,counterclockwise:$i})},Qe.prototype.arcTo=function(tn,Un,Gn,pi,Oi){throw new Error("arcTo not implemented.")},Qe.prototype.rect=function(tn,Un,Gn,pi){if(isNaN(tn)||isNaN(Un)||isNaN(Gn)||isNaN(pi))throw vo.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(tn,Un),this.lineTo(tn+Gn,Un),this.lineTo(tn+Gn,Un+pi),this.lineTo(tn,Un+pi),this.lineTo(tn,Un),this.lineTo(tn+Gn,Un),this.lineTo(tn,Un)},Qe.prototype.fillRect=function(tn,Un,Gn,pi){if(isNaN(tn)||isNaN(Un)||isNaN(Gn)||isNaN(pi))throw vo.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ce.call(this)){var Oi={};this.lineCap!=="butt"&&(Oi.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Oi.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(tn,Un,Gn,pi),this.fill(),Oi.hasOwnProperty("lineCap")&&(this.lineCap=Oi.lineCap),Oi.hasOwnProperty("lineJoin")&&(this.lineJoin=Oi.lineJoin)}},Qe.prototype.strokeRect=function(tn,Un,Gn,pi){if(isNaN(tn)||isNaN(Un)||isNaN(Gn)||isNaN(pi))throw vo.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");kn.call(this)||(this.beginPath(),this.rect(tn,Un,Gn,pi),this.stroke())},Qe.prototype.clearRect=function(tn,Un,Gn,pi){if(isNaN(tn)||isNaN(Un)||isNaN(Gn)||isNaN(pi))throw vo.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(tn,Un,Gn,pi))},Qe.prototype.save=function(tn){tn=typeof tn!="boolean"||tn;for(var Un=this.pdf.internal.getCurrentPageInfo().pageNumber,Gn=0;Gn<this.pdf.internal.getNumberOfPages();Gn++)this.pdf.setPage(Gn+1),this.pdf.internal.out("q");if(this.pdf.setPage(Un),tn){this.ctx.fontSize=this.pdf.internal.getFontSize();var pi=new Re(this.ctx);this.ctxStack.push(this.ctx),this.ctx=pi}},Qe.prototype.restore=function(tn){tn=typeof tn!="boolean"||tn;for(var Un=this.pdf.internal.getCurrentPageInfo().pageNumber,Gn=0;Gn<this.pdf.internal.getNumberOfPages();Gn++)this.pdf.setPage(Gn+1),this.pdf.internal.out("Q");this.pdf.setPage(Un),tn&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Qe.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var en=function(tn){var Un,Gn,pi,Oi;if(tn.isCanvasGradient===!0&&(tn=tn.getColor()),!tn)return{r:0,g:0,b:0,a:0,style:tn};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(tn))Un=0,Gn=0,pi=0,Oi=0;else{var $i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(tn);if($i!==null)Un=parseInt($i[1]),Gn=parseInt($i[2]),pi=parseInt($i[3]),Oi=1;else if(($i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(tn))!==null)Un=parseInt($i[1]),Gn=parseInt($i[2]),pi=parseInt($i[3]),Oi=parseFloat($i[4]);else{if(Oi=1,typeof tn=="string"&&tn.charAt(0)!=="#"){var Wi=new no(tn);tn=Wi.ok?Wi.toHex():"#000000"}tn.length===4?(Un=tn.substring(1,2),Un+=Un,Gn=tn.substring(2,3),Gn+=Gn,pi=tn.substring(3,4),pi+=pi):(Un=tn.substring(1,3),Gn=tn.substring(3,5),pi=tn.substring(5,7)),Un=parseInt(Un,16),Gn=parseInt(Gn,16),pi=parseInt(pi,16)}}return{r:Un,g:Gn,b:pi,a:Oi,style:tn}},ce=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},kn=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Qe.prototype.fillText=function(tn,Un,Gn,pi){if(isNaN(Un)||isNaN(Gn)||typeof tn!="string")throw vo.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(pi=isNaN(pi)?void 0:pi,!ce.call(this)){var Oi=zi(this.ctx.transform.rotation),$i=this.ctx.transform.scaleX;bn.call(this,{text:tn,x:Un,y:Gn,scale:$i,angle:Oi,align:this.textAlign,maxWidth:pi})}},Qe.prototype.strokeText=function(tn,Un,Gn,pi){if(isNaN(Un)||isNaN(Gn)||typeof tn!="string")throw vo.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!kn.call(this)){pi=isNaN(pi)?void 0:pi;var Oi=zi(this.ctx.transform.rotation),$i=this.ctx.transform.scaleX;bn.call(this,{text:tn,x:Un,y:Gn,scale:$i,renderingMode:"stroke",angle:Oi,align:this.textAlign,maxWidth:pi})}},Qe.prototype.measureText=function(tn){if(typeof tn!="string")throw vo.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Un=this.pdf,Gn=this.pdf.internal.scaleFactor,pi=Un.internal.getFontSize(),Oi=Un.getStringUnitWidth(tn)*pi/Un.internal.scaleFactor,$i=function(Wi){var or=(Wi=Wi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return or}}),this};return new $i({width:Oi*=Math.round(96*Gn/72*1e4)/1e4})},Qe.prototype.scale=function(tn,Un){if(isNaN(tn)||isNaN(Un))throw vo.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Gn=new ne(tn,0,0,Un,0,0);this.ctx.transform=this.ctx.transform.multiply(Gn)},Qe.prototype.rotate=function(tn){if(isNaN(tn))throw vo.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Un=new ne(Math.cos(tn),Math.sin(tn),-Math.sin(tn),Math.cos(tn),0,0);this.ctx.transform=this.ctx.transform.multiply(Un)},Qe.prototype.translate=function(tn,Un){if(isNaN(tn)||isNaN(Un))throw vo.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Gn=new ne(1,0,0,1,tn,Un);this.ctx.transform=this.ctx.transform.multiply(Gn)},Qe.prototype.transform=function(tn,Un,Gn,pi,Oi,$i){if(isNaN(tn)||isNaN(Un)||isNaN(Gn)||isNaN(pi)||isNaN(Oi)||isNaN($i))throw vo.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Wi=new ne(tn,Un,Gn,pi,Oi,$i);this.ctx.transform=this.ctx.transform.multiply(Wi)},Qe.prototype.setTransform=function(tn,Un,Gn,pi,Oi,$i){tn=isNaN(tn)?1:tn,Un=isNaN(Un)?0:Un,Gn=isNaN(Gn)?0:Gn,pi=isNaN(pi)?1:pi,Oi=isNaN(Oi)?0:Oi,$i=isNaN($i)?0:$i,this.ctx.transform=new ne(tn,Un,Gn,pi,Oi,$i)};var Bn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Qe.prototype.drawImage=function(tn,Un,Gn,pi,Oi,$i,Wi,or,Mr){var Gr=this.pdf.getImageProperties(tn),Uo=1,Lo=1,Ss=1,wr=1;pi!==void 0&&or!==void 0&&(Ss=or/pi,wr=Mr/Oi,Uo=Gr.width/pi*or/pi,Lo=Gr.height/Oi*Mr/Oi),$i===void 0&&($i=Un,Wi=Gn,Un=0,Gn=0),pi!==void 0&&or===void 0&&(or=pi,Mr=Oi),pi===void 0&&or===void 0&&(or=Gr.width,Mr=Gr.height);for(var _n,ls=this.ctx.transform.decompose(),Jo=zi(ls.rotate.shx),Rr=new ne,So=(Rr=(Rr=(Rr=Rr.multiply(ls.translate)).multiply(ls.skew)).multiply(ls.scale)).applyToRectangle(new Zt($i-Un*Ss,Wi-Gn*wr,pi*Uo,Oi*Lo)),xo=jn.call(this,So),Yr=[],ts=0;ts<xo.length;ts+=1)Yr.indexOf(xo[ts])===-1&&Yr.push(xo[ts]);if(mi(Yr),this.autoPaging)for(var ms=Yr[0],cs=Yr[Yr.length-1],Ds=ms;Ds<cs+1;Ds++){this.pdf.setPage(Ds);var $o=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ra=Ds===1?this.posY+this.margin[0]:this.margin[0],Bs=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ta=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ko=Ds===1?0:Bs+(Ds-2)*ta;if(this.ctx.clip_path.length!==0){var Au=this.path;_n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=On(_n,this.posX+this.margin[3],-ko+ra+this.ctx.prevPageLastElemOffset),ir.call(this,"fill",!0),this.path=Au}var Ca=JSON.parse(JSON.stringify(So));Ca=On([Ca],this.posX+this.margin[3],-ko+ra+this.ctx.prevPageLastElemOffset)[0];var gh=(Ds>ms||Ds<cs)&&Bn.call(this);gh&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],$o,ta,null).clip().discardPath()),this.pdf.addImage(tn,"JPEG",Ca.x,Ca.y,Ca.w,Ca.h,null,null,Jo),gh&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(tn,"JPEG",So.x,So.y,So.w,So.h,null,null,Jo)};var jn=function(tn,Un,Gn){var pi=[];Un=Un||this.pdf.internal.pageSize.width,Gn=Gn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Oi=this.posY+this.ctx.prevPageLastElemOffset;switch(tn.type){default:case"mt":case"lt":pi.push(Math.floor((tn.y+Oi)/Gn)+1);break;case"arc":pi.push(Math.floor((tn.y+Oi-tn.radius)/Gn)+1),pi.push(Math.floor((tn.y+Oi+tn.radius)/Gn)+1);break;case"qct":var $i=Gi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tn.x1,tn.y1,tn.x,tn.y);pi.push(Math.floor(($i.y+Oi)/Gn)+1),pi.push(Math.floor(($i.y+$i.h+Oi)/Gn)+1);break;case"bct":var Wi=rr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tn.x1,tn.y1,tn.x2,tn.y2,tn.x,tn.y);pi.push(Math.floor((Wi.y+Oi)/Gn)+1),pi.push(Math.floor((Wi.y+Wi.h+Oi)/Gn)+1);break;case"rect":pi.push(Math.floor((tn.y+Oi)/Gn)+1),pi.push(Math.floor((tn.y+tn.h+Oi)/Gn)+1)}for(var or=0;or<pi.length;or+=1)for(;this.pdf.internal.getNumberOfPages()<pi[or];)an.call(this);return pi},an=function(){var tn=this.fillStyle,Un=this.strokeStyle,Gn=this.font,pi=this.lineCap,Oi=this.lineWidth,$i=this.lineJoin;this.pdf.addPage(),this.fillStyle=tn,this.strokeStyle=Un,this.font=Gn,this.lineCap=pi,this.lineWidth=Oi,this.lineJoin=$i},On=function(tn,Un,Gn){for(var pi=0;pi<tn.length;pi++)switch(tn[pi].type){case"bct":tn[pi].x2+=Un,tn[pi].y2+=Gn;case"qct":tn[pi].x1+=Un,tn[pi].y1+=Gn;case"mt":case"lt":case"arc":default:tn[pi].x+=Un,tn[pi].y+=Gn}return tn},mi=function(tn){return tn.sort(function(Un,Gn){return Un-Gn})},Ui=function(tn,Un){for(var Gn,pi,Oi=this.fillStyle,$i=this.strokeStyle,Wi=this.lineCap,or=this.lineWidth,Mr=Math.abs(or*this.ctx.transform.scaleX),Gr=this.lineJoin,Uo=JSON.parse(JSON.stringify(this.path)),Lo=JSON.parse(JSON.stringify(this.path)),Ss=[],wr=0;wr<Lo.length;wr++)if(Lo[wr].x!==void 0)for(var _n=jn.call(this,Lo[wr]),ls=0;ls<_n.length;ls+=1)Ss.indexOf(_n[ls])===-1&&Ss.push(_n[ls]);for(var Jo=0;Jo<Ss.length;Jo++)for(;this.pdf.internal.getNumberOfPages()<Ss[Jo];)an.call(this);if(mi(Ss),this.autoPaging)for(var Rr=Ss[0],So=Ss[Ss.length-1],xo=Rr;xo<So+1;xo++){this.pdf.setPage(xo),this.fillStyle=Oi,this.strokeStyle=$i,this.lineCap=Wi,this.lineWidth=Mr,this.lineJoin=Gr;var Yr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ts=xo===1?this.posY+this.margin[0]:this.margin[0],ms=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],cs=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ds=xo===1?0:ms+(xo-2)*cs;if(this.ctx.clip_path.length!==0){var $o=this.path;Gn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=On(Gn,this.posX+this.margin[3],-Ds+ts+this.ctx.prevPageLastElemOffset),ir.call(this,tn,!0),this.path=$o}if(pi=JSON.parse(JSON.stringify(Uo)),this.path=On(pi,this.posX+this.margin[3],-Ds+ts+this.ctx.prevPageLastElemOffset),Un===!1||xo===0){var ra=(xo>Rr||xo<So)&&Bn.call(this);ra&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Yr,cs,null).clip().discardPath()),ir.call(this,tn,Un),ra&&this.pdf.restoreGraphicsState()}this.lineWidth=or}else this.lineWidth=Mr,ir.call(this,tn,Un),this.lineWidth=or;this.path=Uo},ir=function(tn,Un){if((tn!=="stroke"||Un||!kn.call(this))&&(tn==="stroke"||Un||!ce.call(this))){for(var Gn,pi,Oi=[],$i=this.path,Wi=0;Wi<$i.length;Wi++){var or=$i[Wi];switch(or.type){case"begin":Oi.push({begin:!0});break;case"close":Oi.push({close:!0});break;case"mt":Oi.push({start:or,deltas:[],abs:[]});break;case"lt":var Mr=Oi.length;if($i[Wi-1]&&!isNaN($i[Wi-1].x)&&(Gn=[or.x-$i[Wi-1].x,or.y-$i[Wi-1].y],Mr>0)){for(;Mr>=0;Mr--)if(Oi[Mr-1].close!==!0&&Oi[Mr-1].begin!==!0){Oi[Mr-1].deltas.push(Gn),Oi[Mr-1].abs.push(or);break}}break;case"bct":Gn=[or.x1-$i[Wi-1].x,or.y1-$i[Wi-1].y,or.x2-$i[Wi-1].x,or.y2-$i[Wi-1].y,or.x-$i[Wi-1].x,or.y-$i[Wi-1].y],Oi[Oi.length-1].deltas.push(Gn);break;case"qct":var Gr=$i[Wi-1].x+2/3*(or.x1-$i[Wi-1].x),Uo=$i[Wi-1].y+2/3*(or.y1-$i[Wi-1].y),Lo=or.x+2/3*(or.x1-or.x),Ss=or.y+2/3*(or.y1-or.y),wr=or.x,_n=or.y;Gn=[Gr-$i[Wi-1].x,Uo-$i[Wi-1].y,Lo-$i[Wi-1].x,Ss-$i[Wi-1].y,wr-$i[Wi-1].x,_n-$i[Wi-1].y],Oi[Oi.length-1].deltas.push(Gn);break;case"arc":Oi.push({deltas:[],abs:[],arc:!0}),Array.isArray(Oi[Oi.length-1].abs)&&Oi[Oi.length-1].abs.push(or)}}pi=Un?null:tn==="stroke"?"stroke":"fill";for(var ls=!1,Jo=0;Jo<Oi.length;Jo++)if(Oi[Jo].arc)for(var Rr=Oi[Jo].abs,So=0;So<Rr.length;So++){var xo=Rr[So];xo.type==="arc"?li.call(this,xo.x,xo.y,xo.radius,xo.startAngle,xo.endAngle,xo.counterclockwise,void 0,Un,!ls):bi.call(this,xo.x,xo.y),ls=!0}else if(Oi[Jo].close===!0)this.pdf.internal.out("h"),ls=!1;else if(Oi[Jo].begin!==!0){var Yr=Oi[Jo].start.x,ts=Oi[Jo].start.y;hi.call(this,Oi[Jo].deltas,Yr,ts),ls=!0}pi&&Xi.call(this,pi),Un&&yr.call(this)}},Er=function(tn){var Un=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Gn=Un*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return tn-Gn;case"top":return tn+Un-Gn;case"hanging":return tn+Un-2*Gn;case"middle":return tn+Un/2-Gn;case"ideographic":return tn;case"alphabetic":default:return tn}},_i=function(tn){return tn+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Qe.prototype.createLinearGradient=function(){var tn=function(){};return tn.colorStops=[],tn.addColorStop=function(Un,Gn){this.colorStops.push([Un,Gn])},tn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},tn.isCanvasGradient=!0,tn},Qe.prototype.createPattern=function(){return this.createLinearGradient()},Qe.prototype.createRadialGradient=function(){return this.createLinearGradient()};var li=function(tn,Un,Gn,pi,Oi,$i,Wi,or,Mr){for(var Gr=sr.call(this,Gn,pi,Oi,$i),Uo=0;Uo<Gr.length;Uo++){var Lo=Gr[Uo];Uo===0&&(Mr?yn.call(this,Lo.x1+tn,Lo.y1+Un):bi.call(this,Lo.x1+tn,Lo.y1+Un)),cr.call(this,tn,Un,Lo.x2,Lo.y2,Lo.x3,Lo.y3,Lo.x4,Lo.y4)}or?yr.call(this):Xi.call(this,Wi)},Xi=function(tn){switch(tn){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},yr=function(){this.pdf.clip(),this.pdf.discardPath()},yn=function(tn,Un){this.pdf.internal.out(wt(tn)+" "+Ct(Un)+" m")},bn=function(tn){var Un;switch(tn.align){case"right":case"end":Un="right";break;case"center":Un="center";break;case"left":case"start":default:Un="left"}var Gn=this.pdf.getTextDimensions(tn.text),pi=Er.call(this,tn.y),Oi=_i.call(this,pi)-Gn.h,$i=this.ctx.transform.applyToPoint(new Yt(tn.x,pi)),Wi=this.ctx.transform.decompose(),or=new ne;or=(or=(or=or.multiply(Wi.translate)).multiply(Wi.skew)).multiply(Wi.scale);for(var Mr,Gr,Uo,Lo=this.ctx.transform.applyToRectangle(new Zt(tn.x,pi,Gn.w,Gn.h)),Ss=or.applyToRectangle(new Zt(tn.x,Oi,Gn.w,Gn.h)),wr=jn.call(this,Ss),_n=[],ls=0;ls<wr.length;ls+=1)_n.indexOf(wr[ls])===-1&&_n.push(wr[ls]);if(mi(_n),this.autoPaging)for(var Jo=_n[0],Rr=_n[_n.length-1],So=Jo;So<Rr+1;So++){this.pdf.setPage(So);var xo=So===1?this.posY+this.margin[0]:this.margin[0],Yr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ts=this.pdf.internal.pageSize.height-this.margin[2],ms=ts-this.margin[0],cs=this.pdf.internal.pageSize.width-this.margin[1],Ds=cs-this.margin[3],$o=So===1?0:Yr+(So-2)*ms;if(this.ctx.clip_path.length!==0){var ra=this.path;Mr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=On(Mr,this.posX+this.margin[3],-1*$o+xo),ir.call(this,"fill",!0),this.path=ra}var Bs=On([JSON.parse(JSON.stringify(Ss))],this.posX+this.margin[3],-$o+xo+this.ctx.prevPageLastElemOffset)[0];tn.scale>=.01&&(Gr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Gr*tn.scale),Uo=this.lineWidth,this.lineWidth=Uo*tn.scale);var ta=this.autoPaging!=="text";if(ta||Bs.y+Bs.h<=ts){if(ta||Bs.y>=xo&&Bs.x<=cs){var ko=ta?tn.text:this.pdf.splitTextToSize(tn.text,tn.maxWidth||cs-Bs.x)[0],Au=On([JSON.parse(JSON.stringify(Lo))],this.posX+this.margin[3],-$o+xo+this.ctx.prevPageLastElemOffset)[0],Ca=ta&&(So>Jo||So<Rr)&&Bn.call(this);Ca&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ds,ms,null).clip().discardPath()),this.pdf.text(ko,Au.x,Au.y,{angle:tn.angle,align:Un,renderingMode:tn.renderingMode}),Ca&&this.pdf.restoreGraphicsState()}}else Bs.y<ts&&(this.ctx.prevPageLastElemOffset+=ts-Bs.y);tn.scale>=.01&&(this.pdf.setFontSize(Gr),this.lineWidth=Uo)}else tn.scale>=.01&&(Gr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Gr*tn.scale),Uo=this.lineWidth,this.lineWidth=Uo*tn.scale),this.pdf.text(tn.text,$i.x+this.posX,$i.y+this.posY,{angle:tn.angle,align:Un,renderingMode:tn.renderingMode,maxWidth:tn.maxWidth}),tn.scale>=.01&&(this.pdf.setFontSize(Gr),this.lineWidth=Uo)},bi=function(tn,Un,Gn,pi){Gn=Gn||0,pi=pi||0,this.pdf.internal.out(wt(tn+Gn)+" "+Ct(Un+pi)+" l")},hi=function(tn,Un,Gn){return this.pdf.lines(tn,Un,Gn,null,null)},cr=function(tn,Un,Gn,pi,Oi,$i,Wi,or){this.pdf.internal.out([gt(Qt(Gn+tn)),gt(kt(pi+Un)),gt(Qt(Oi+tn)),gt(kt($i+Un)),gt(Qt(Wi+tn)),gt(kt(or+Un)),"c"].join(" "))},sr=function(tn,Un,Gn,pi){for(var Oi=2*Math.PI,$i=Math.PI/2;Un>Gn;)Un-=Oi;var Wi=Math.abs(Gn-Un);Wi<Oi&&pi&&(Wi=Oi-Wi);for(var or=[],Mr=pi?-1:1,Gr=Un;Wi>1e-5;){var Uo=Gr+Mr*Math.min(Wi,$i);or.push(Vi.call(this,tn,Gr,Uo)),Wi-=Math.abs(Uo-Gr),Gr=Uo}return or},Vi=function(tn,Un,Gn){var pi=(Gn-Un)/2,Oi=tn*Math.cos(pi),$i=tn*Math.sin(pi),Wi=Oi,or=-$i,Mr=Wi*Wi+or*or,Gr=Mr+Wi*Oi+or*$i,Uo=4/3*(Math.sqrt(2*Mr*Gr)-Gr)/(Wi*$i-or*Oi),Lo=Wi-Uo*or,Ss=or+Uo*Wi,wr=Lo,_n=-Ss,ls=pi+Un,Jo=Math.cos(ls),Rr=Math.sin(ls);return{x1:tn*Math.cos(Un),y1:tn*Math.sin(Un),x2:Lo*Jo-Ss*Rr,y2:Lo*Rr+Ss*Jo,x3:wr*Jo-_n*Rr,y3:wr*Rr+_n*Jo,x4:tn*Math.cos(Gn),y4:tn*Math.sin(Gn)}},zi=function(tn){return 180*tn/Math.PI},Gi=function(tn,Un,Gn,pi,Oi,$i){var Wi=tn+.5*(Gn-tn),or=Un+.5*(pi-Un),Mr=Oi+.5*(Gn-Oi),Gr=$i+.5*(pi-$i),Uo=Math.min(tn,Oi,Wi,Mr),Lo=Math.max(tn,Oi,Wi,Mr),Ss=Math.min(Un,$i,or,Gr),wr=Math.max(Un,$i,or,Gr);return new Zt(Uo,Ss,Lo-Uo,wr-Ss)},rr=function(tn,Un,Gn,pi,Oi,$i,Wi,or){var Mr,Gr,Uo,Lo,Ss,wr,_n,ls,Jo,Rr,So,xo,Yr,ts,ms=Gn-tn,cs=pi-Un,Ds=Oi-Gn,$o=$i-pi,ra=Wi-Oi,Bs=or-$i;for(Gr=0;Gr<41;Gr++)Jo=(_n=(Uo=tn+(Mr=Gr/40)*ms)+Mr*((Ss=Gn+Mr*Ds)-Uo))+Mr*(Ss+Mr*(Oi+Mr*ra-Ss)-_n),Rr=(ls=(Lo=Un+Mr*cs)+Mr*((wr=pi+Mr*$o)-Lo))+Mr*(wr+Mr*($i+Mr*Bs-wr)-ls),Gr==0?(So=Jo,xo=Rr,Yr=Jo,ts=Rr):(So=Math.min(So,Jo),xo=Math.min(xo,Rr),Yr=Math.max(Yr,Jo),ts=Math.max(ts,Rr));return new Zt(Math.round(So),Math.round(xo),Math.round(Yr-So),Math.round(ts-xo))},ao=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var tn,Un,Gn=(tn=this.ctx.lineDash,Un=this.ctx.lineDashOffset,JSON.stringify({lineDash:tn,lineDashOffset:Un}));this.prevLineDash!==Gn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Gn)}}})(so.API),function(yt){var gt=function(kt){var Yt,Zt,ne,Ce,Re,Qe,en,ce,kn,Bn;for(/[^\x00-\xFF]/.test(kt),Zt=[],ne=0,Ce=(kt+=Yt="\0\0\0\0".slice(kt.length%4||4)).length;Ce>ne;ne+=4)(Re=(kt.charCodeAt(ne)<<24)+(kt.charCodeAt(ne+1)<<16)+(kt.charCodeAt(ne+2)<<8)+kt.charCodeAt(ne+3))!==0?(Qe=(Re=((Re=((Re=((Re=(Re-(Bn=Re%85))/85)-(kn=Re%85))/85)-(ce=Re%85))/85)-(en=Re%85))/85)%85,Zt.push(Qe+33,en+33,ce+33,kn+33,Bn+33)):Zt.push(122);return function(jn,an){for(var On=an;On>0;On--)jn.pop()}(Zt,Yt.length),String.fromCharCode.apply(String,Zt)+"~>"},wt=function(kt){var Yt,Zt,ne,Ce,Re,Qe=String,en="length",ce=255,kn="charCodeAt",Bn="slice",jn="replace";for(kt[Bn](-2),kt=kt[Bn](0,-2)[jn](/\s/g,"")[jn]("z","!!!!!"),ne=[],Ce=0,Re=(kt+=Yt="uuuuu"[Bn](kt[en]%5||5))[en];Re>Ce;Ce+=5)Zt=52200625*(kt[kn](Ce)-33)+614125*(kt[kn](Ce+1)-33)+7225*(kt[kn](Ce+2)-33)+85*(kt[kn](Ce+3)-33)+(kt[kn](Ce+4)-33),ne.push(ce&Zt>>24,ce&Zt>>16,ce&Zt>>8,ce&Zt);return function(an,On){for(var mi=On;mi>0;mi--)an.pop()}(ne,Yt[en]),Qe.fromCharCode.apply(Qe,ne)},Ct=function(kt){var Yt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((kt=kt.replace(/\s/g,"")).indexOf(">")!==-1&&(kt=kt.substr(0,kt.indexOf(">"))),kt.length%2&&(kt+="0"),Yt.test(kt)===!1)return"";for(var Zt="",ne=0;ne<kt.length;ne+=2)Zt+=String.fromCharCode("0x"+(kt[ne]+kt[ne+1]));return Zt},Qt=function(kt){for(var Yt=new Uint8Array(kt.length),Zt=kt.length;Zt--;)Yt[Zt]=kt.charCodeAt(Zt);return kt=(Yt=nn(Yt)).reduce(function(ne,Ce){return ne+String.fromCharCode(Ce)},"")};yt.processDataByFilters=function(kt,Yt){var Zt=0,ne=kt||"",Ce=[];for(typeof(Yt=Yt||[])=="string"&&(Yt=[Yt]),Zt=0;Zt<Yt.length;Zt+=1)switch(Yt[Zt]){case"ASCII85Decode":case"/ASCII85Decode":ne=wt(ne),Ce.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ne=gt(ne),Ce.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ne=Ct(ne),Ce.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ne=ne.split("").map(function(Re){return("0"+Re.charCodeAt().toString(16)).slice(-2)}).join("")+">",Ce.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ne=Qt(ne),Ce.push("/FlateDecode");break;default:throw new Error('The filter: "'+Yt[Zt]+'" is not implemented')}return{data:ne,reverseChain:Ce.reverse().join(" ")}}}(so.API),function(yt){yt.loadFile=function(gt,wt,Ct){return function(Qt,kt,Yt){kt=kt!==!1,Yt=typeof Yt=="function"?Yt:function(){};var Zt=void 0;try{Zt=function(ne,Ce,Re){var Qe=new XMLHttpRequest,en=0,ce=function(kn){var Bn=kn.length,jn=[],an=String.fromCharCode;for(en=0;en<Bn;en+=1)jn.push(an(255&kn.charCodeAt(en)));return jn.join("")};if(Qe.open("GET",ne,!Ce),Qe.overrideMimeType("text/plain; charset=x-user-defined"),Ce===!1&&(Qe.onload=function(){Qe.status===200?Re(ce(this.responseText)):Re(void 0)}),Qe.send(null),Ce&&Qe.status===200)return ce(Qe.responseText)}(Qt,kt,Yt)}catch(ne){}return Zt}(gt,wt,Ct)},yt.loadImageFile=yt.loadFile}(so.API),function(yt){function gt(){return(Br.html2canvas?Promise.resolve(Br.html2canvas):Promise.resolve().then(Kt.t.bind(Kt,64270,23))).catch(function(Yt){return Promise.reject(new Error("Could not load html2canvas: "+Yt))}).then(function(Yt){return Yt.default?Yt.default:Yt})}function wt(){return(Br.DOMPurify?Promise.resolve(Br.DOMPurify):Kt.e(7631).then(Kt.bind(Kt,87631))).catch(function(Yt){return Promise.reject(new Error("Could not load dompurify: "+Yt))}).then(function(Yt){return Yt.default?Yt.default:Yt})}var Ct=function(Yt){var Zt=(0,zt.Z)(Yt);return Zt==="undefined"?"undefined":Zt==="string"||Yt instanceof String?"string":Zt==="number"||Yt instanceof Number?"number":Zt==="function"||Yt instanceof Function?"function":Yt&&Yt.constructor===Array?"array":Yt&&Yt.nodeType===1?"element":Zt==="object"?"object":"unknown"},Qt=function(Yt,Zt){var ne=document.createElement(Yt);for(var Ce in Zt.className&&(ne.className=Zt.className),Zt.innerHTML&&Zt.dompurify&&(ne.innerHTML=Zt.dompurify.sanitize(Zt.innerHTML)),Zt.style)ne.style[Ce]=Zt.style[Ce];return ne},kt=function Yt(Zt){var ne=Object.assign(Yt.convert(Promise.resolve()),JSON.parse(JSON.stringify(Yt.template))),Ce=Yt.convert(Promise.resolve(),ne);return Ce=(Ce=Ce.setProgress(1,Yt,1,[Yt])).set(Zt)};(kt.prototype=Object.create(Promise.prototype)).constructor=kt,kt.convert=function(Yt,Zt){return Yt.__proto__=Zt||kt.prototype,Yt},kt.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},kt.prototype.from=function(Yt,Zt){return this.then(function(){switch(Zt=Zt||function(ne){switch(Ct(ne)){case"string":return"string";case"element":return ne.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Yt)){case"string":return this.then(wt).then(function(ne){return this.set({src:Qt("div",{innerHTML:Yt,dompurify:ne})})});case"element":return this.set({src:Yt});case"canvas":return this.set({canvas:Yt});case"img":return this.set({img:Yt});default:return this.error("Unknown source type.")}})},kt.prototype.to=function(Yt){switch(Yt){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},kt.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var Yt={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Zt=function ne(Ce,Re){for(var Qe=Ce.nodeType===3?document.createTextNode(Ce.nodeValue):Ce.cloneNode(!1),en=Ce.firstChild;en;en=en.nextSibling)Re!==!0&&en.nodeType===1&&en.nodeName==="SCRIPT"||Qe.appendChild(ne(en,Re));return Ce.nodeType===1&&(Ce.nodeName==="CANVAS"?(Qe.width=Ce.width,Qe.height=Ce.height,Qe.getContext("2d").drawImage(Ce,0,0)):Ce.nodeName!=="TEXTAREA"&&Ce.nodeName!=="SELECT"||(Qe.value=Ce.value),Qe.addEventListener("load",function(){Qe.scrollTop=Ce.scrollTop,Qe.scrollLeft=Ce.scrollLeft},!0)),Qe}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Zt.tagName==="BODY"&&(Yt.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Qt("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Qt("div",{className:"html2pdf__container",style:Yt}),this.prop.container.appendChild(Zt),this.prop.container.firstChild.appendChild(Qt("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},kt.prototype.toCanvas=function(){var Yt=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Yt).then(gt).then(function(Zt){var ne=Object.assign({},this.opt.html2canvas);return delete ne.onrendered,Zt(this.prop.container,ne)}).then(function(Zt){(this.opt.html2canvas.onrendered||function(){})(Zt),this.prop.canvas=Zt,document.body.removeChild(this.prop.overlay)})},kt.prototype.toContext2d=function(){var Yt=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Yt).then(gt).then(function(Zt){var ne=this.opt.jsPDF,Ce=this.opt.fontFaces,Re=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Qe=Object.assign({async:!0,allowTaint:!0,scale:Re,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Qe.onrendered,ne.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ne.context2d.posX=this.opt.x,ne.context2d.posY=this.opt.y,ne.context2d.margin=this.opt.margin,ne.context2d.fontFaces=Ce,Ce)for(var en=0;en<Ce.length;++en){var ce=Ce[en],kn=ce.src.find(function(Bn){return Bn.format==="truetype"});kn&&ne.addFont(kn.url,ce.ref.name,ce.ref.style)}return Qe.windowHeight=Qe.windowHeight||0,Qe.windowHeight=Qe.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Qe.windowHeight,ne.context2d.save(!0),Zt(this.prop.container,Qe)}).then(function(Zt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Zt),this.prop.canvas=Zt,document.body.removeChild(this.prop.overlay)})},kt.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Yt=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Yt})},kt.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},kt.prototype.output=function(Yt,Zt,ne){return(ne=ne||"pdf").toLowerCase()==="img"||ne.toLowerCase()==="image"?this.outputImg(Yt,Zt):this.outputPdf(Yt,Zt)},kt.prototype.outputPdf=function(Yt,Zt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Yt,Zt)})},kt.prototype.outputImg=function(Yt){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Yt){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Yt+'" is not supported.'}})},kt.prototype.save=function(Yt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Yt?{filename:Yt}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},kt.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},kt.prototype.set=function(Yt){if(Ct(Yt)!=="object")return this;var Zt=Object.keys(Yt||{}).map(function(ne){if(ne in kt.template.prop)return function(){this.prop[ne]=Yt[ne]};switch(ne){case"margin":return this.setMargin.bind(this,Yt.margin);case"jsPDF":return function(){return this.opt.jsPDF=Yt.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Yt.pageSize);default:return function(){this.opt[ne]=Yt[ne]}}},this);return this.then(function(){return this.thenList(Zt)})},kt.prototype.get=function(Yt,Zt){return this.then(function(){var ne=Yt in kt.template.prop?this.prop[Yt]:this.opt[Yt];return Zt?Zt(ne):ne})},kt.prototype.setMargin=function(Yt){return this.then(function(){switch(Ct(Yt)){case"number":Yt=[Yt,Yt,Yt,Yt];case"array":if(Yt.length===2&&(Yt=[Yt[0],Yt[1],Yt[0],Yt[1]]),Yt.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Yt}).then(this.setPageSize)},kt.prototype.setPageSize=function(Yt){function Zt(ne,Ce){return Math.floor(ne*Ce/72*96)}return this.then(function(){(Yt=Yt||so.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Yt.inner={width:Yt.width-this.opt.margin[1]-this.opt.margin[3],height:Yt.height-this.opt.margin[0]-this.opt.margin[2]},Yt.inner.px={width:Zt(Yt.inner.width,Yt.k),height:Zt(Yt.inner.height,Yt.k)},Yt.inner.ratio=Yt.inner.height/Yt.inner.width),this.prop.pageSize=Yt})},kt.prototype.setProgress=function(Yt,Zt,ne,Ce){return Yt!=null&&(this.progress.val=Yt),Zt!=null&&(this.progress.state=Zt),ne!=null&&(this.progress.n=ne),Ce!=null&&(this.progress.stack=Ce),this.progress.ratio=this.progress.val/this.progress.state,this},kt.prototype.updateProgress=function(Yt,Zt,ne,Ce){return this.setProgress(Yt?this.progress.val+Yt:null,Zt||null,ne?this.progress.n+ne:null,Ce?this.progress.stack.concat(Ce):null)},kt.prototype.then=function(Yt,Zt){var ne=this;return this.thenCore(Yt,Zt,function(Ce,Re){return ne.updateProgress(null,null,1,[Ce]),Promise.prototype.then.call(this,function(Qe){return ne.updateProgress(null,Ce),Qe}).then(Ce,Re).then(function(Qe){return ne.updateProgress(1),Qe})})},kt.prototype.thenCore=function(Yt,Zt,ne){ne=ne||Promise.prototype.then,Yt&&(Yt=Yt.bind(this)),Zt&&(Zt=Zt.bind(this));var Ce=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:kt.convert(Object.assign({},this),Promise.prototype),Re=ne.call(Ce,Yt,Zt);return kt.convert(Re,this.__proto__)},kt.prototype.thenExternal=function(Yt,Zt){return Promise.prototype.then.call(this,Yt,Zt)},kt.prototype.thenList=function(Yt){var Zt=this;return Yt.forEach(function(ne){Zt=Zt.thenCore(ne)}),Zt},kt.prototype.catch=function(Yt){Yt&&(Yt=Yt.bind(this));var Zt=Promise.prototype.catch.call(this,Yt);return kt.convert(Zt,this)},kt.prototype.catchExternal=function(Yt){return Promise.prototype.catch.call(this,Yt)},kt.prototype.error=function(Yt){return this.then(function(){throw new Error(Yt)})},kt.prototype.using=kt.prototype.set,kt.prototype.saveAs=kt.prototype.save,kt.prototype.export=kt.prototype.output,kt.prototype.run=kt.prototype.then,so.getPageSize=function(Yt,Zt,ne){if((0,zt.Z)(Yt)==="object"){var Ce=Yt;Yt=Ce.orientation,Zt=Ce.unit||Zt,ne=Ce.format||ne}Zt=Zt||"mm",ne=ne||"a4",Yt=(""+(Yt||"P")).toLowerCase();var Re,Qe=(""+ne).toLowerCase(),en={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Zt){case"pt":Re=1;break;case"mm":Re=72/25.4;break;case"cm":Re=72/2.54;break;case"in":Re=72;break;case"px":Re=.75;break;case"pc":case"em":Re=12;break;case"ex":Re=6;break;default:throw"Invalid unit: "+Zt}var ce,kn=0,Bn=0;if(en.hasOwnProperty(Qe))kn=en[Qe][1]/Re,Bn=en[Qe][0]/Re;else try{kn=ne[1],Bn=ne[0]}catch(jn){throw new Error("Invalid format: "+ne)}if(Yt==="p"||Yt==="portrait")Yt="p",Bn>kn&&(ce=Bn,Bn=kn,kn=ce);else{if(Yt!=="l"&&Yt!=="landscape")throw"Invalid orientation: "+Yt;Yt="l",kn>Bn&&(ce=Bn,Bn=kn,kn=ce)}return{width:Bn,height:kn,unit:Zt,k:Re,orientation:Yt}},yt.html=function(Yt,Zt){(Zt=Zt||{}).callback=Zt.callback||function(){},Zt.html2canvas=Zt.html2canvas||{},Zt.html2canvas.canvas=Zt.html2canvas.canvas||this.canvas,Zt.jsPDF=Zt.jsPDF||this,Zt.fontFaces=Zt.fontFaces?Zt.fontFaces.map(jA):null;var ne=new kt(Zt);return Zt.worker?ne:ne.from(Yt).doCallback()}}(so.API),so.API.addJS=function(yt){return Gh=yt,this.internal.events.subscribe("postPutResources",function(){Ba=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ba+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ol=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Gh+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ba!==void 0&&ol!==void 0&&this.internal.out("/Names <</JavaScript "+Ba+" 0 R>>")}),this},function(yt){var gt;yt.events.push(["postPutResources",function(){var wt=this,Ct=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Qt=wt.outline.render().split(/\r\n/),kt=0;kt<Qt.length;kt++){var Yt=Qt[kt],Zt=Ct.exec(Yt);if(Zt!=null){var ne=Zt[1];wt.internal.newObjectDeferredBegin(ne,!1)}wt.internal.write(Yt)}if(this.outline.createNamedDestinations){var Ce=this.internal.pages.length,Re=[];for(kt=0;kt<Ce;kt++){var Qe=wt.internal.newObject();Re.push(Qe);var en=wt.internal.getPageInfo(kt+1);wt.internal.write("<< /D["+en.objId+" 0 R /XYZ null null null]>> endobj")}var ce=wt.internal.newObject();for(wt.internal.write("<< /Names [ "),kt=0;kt<Re.length;kt++)wt.internal.write("(page_"+(kt+1)+")"+Re[kt]+" 0 R");wt.internal.write(" ] >>","endobj"),gt=wt.internal.newObject(),wt.internal.write("<< /Dests "+ce+" 0 R"),wt.internal.write(">>","endobj")}}]),yt.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+gt+" 0 R"))}]),yt.events.push(["initialized",function(){var wt=this;wt.outline={createNamedDestinations:!1,root:{children:[]}},wt.outline.add=function(Ct,Qt,kt){var Yt={title:Qt,options:kt,children:[]};return Ct==null&&(Ct=this.root),Ct.children.push(Yt),Yt},wt.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=wt,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},wt.outline.genIds_r=function(Ct){Ct.id=wt.internal.newObjectDeferred();for(var Qt=0;Qt<Ct.children.length;Qt++)this.genIds_r(Ct.children[Qt])},wt.outline.renderRoot=function(Ct){this.objStart(Ct),this.line("/Type /Outlines"),Ct.children.length>0&&(this.line("/First "+this.makeRef(Ct.children[0])),this.line("/Last "+this.makeRef(Ct.children[Ct.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ct)),this.objEnd()},wt.outline.renderItems=function(Ct){for(var Qt=this.ctx.pdf.internal.getVerticalCoordinateString,kt=0;kt<Ct.children.length;kt++){var Yt=Ct.children[kt];this.objStart(Yt),this.line("/Title "+this.makeString(Yt.title)),this.line("/Parent "+this.makeRef(Ct)),kt>0&&this.line("/Prev "+this.makeRef(Ct.children[kt-1])),kt<Ct.children.length-1&&this.line("/Next "+this.makeRef(Ct.children[kt+1])),Yt.children.length>0&&(this.line("/First "+this.makeRef(Yt.children[0])),this.line("/Last "+this.makeRef(Yt.children[Yt.children.length-1])));var Zt=this.count=this.count_r({count:0},Yt);if(Zt>0&&this.line("/Count "+Zt),Yt.options&&Yt.options.pageNumber){var ne=wt.internal.getPageInfo(Yt.options.pageNumber);this.line("/Dest ["+ne.objId+" 0 R /XYZ 0 "+Qt(0)+" 0]")}this.objEnd()}for(var Ce=0;Ce<Ct.children.length;Ce++)this.renderItems(Ct.children[Ce])},wt.outline.line=function(Ct){this.ctx.val+=Ct+`\r
`},wt.outline.makeRef=function(Ct){return Ct.id+" 0 R"},wt.outline.makeString=function(Ct){return"("+wt.internal.pdfEscape(Ct)+")"},wt.outline.objStart=function(Ct){this.ctx.val+=`\r
`+Ct.id+` 0 obj\r
<<\r
`},wt.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},wt.outline.count_r=function(Ct,Qt){for(var kt=0;kt<Qt.children.length;kt++)Ct.count++,this.count_r(Ct,Qt.children[kt]);return Ct.count}}])}(so.API),function(yt){var gt=[192,193,194,195,196,197,198,199];yt.processJPEG=function(wt,Ct,Qt,kt,Yt,Zt){var ne,Ce=this.decode.DCT_DECODE,Re=null;if(typeof wt=="string"||this.__addimage__.isArrayBuffer(wt)||this.__addimage__.isArrayBufferView(wt)){switch(wt=Yt||wt,wt=this.__addimage__.isArrayBuffer(wt)?new Uint8Array(wt):wt,(ne=function(Qe){for(var en,ce=256*Qe.charCodeAt(4)+Qe.charCodeAt(5),kn=Qe.length,Bn={width:0,height:0,numcomponents:1},jn=4;jn<kn;jn+=2){if(jn+=ce,gt.indexOf(Qe.charCodeAt(jn+1))!==-1){en=256*Qe.charCodeAt(jn+5)+Qe.charCodeAt(jn+6),Bn={width:256*Qe.charCodeAt(jn+7)+Qe.charCodeAt(jn+8),height:en,numcomponents:Qe.charCodeAt(jn+9)};break}ce=256*Qe.charCodeAt(jn+2)+Qe.charCodeAt(jn+3)}return Bn}(wt=this.__addimage__.isArrayBufferView(wt)?this.__addimage__.arrayBufferToBinaryString(wt):wt)).numcomponents){case 1:Zt=this.color_spaces.DEVICE_GRAY;break;case 4:Zt=this.color_spaces.DEVICE_CMYK;break;case 3:Zt=this.color_spaces.DEVICE_RGB}Re={data:wt,width:ne.width,height:ne.height,colorSpace:Zt,bitsPerComponent:8,filter:Ce,index:Ct,alias:Qt}}return Re}}(so.API);var ba,od,ic,_h,fo,Kf=function(){var yt,gt,wt;function Ct(kt){var Yt,Zt,ne,Ce,Re,Qe,en,ce,kn,Bn,jn,an,On,mi;for(this.data=kt,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Qe=null;;){switch(Yt=this.readUInt32(),kn=function(){var Ui,ir;for(ir=[],Ui=0;Ui<4;++Ui)ir.push(String.fromCharCode(this.data[this.pos++]));return ir}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(Yt);break;case"fcTL":Qe&&this.animation.frames.push(Qe),this.pos+=4,Qe={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Re=this.readUInt16(),Ce=this.readUInt16()||100,Qe.delay=1e3*Re/Ce,Qe.disposeOp=this.data[this.pos++],Qe.blendOp=this.data[this.pos++],Qe.data=[];break;case"IDAT":case"fdAT":for(kn==="fdAT"&&(this.pos+=4,Yt-=4),kt=(Qe!=null?Qe.data:void 0)||this.imgData,an=0;0<=Yt?an<Yt:an>Yt;0<=Yt?++an:--an)kt.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ne=this.palette.length/3,this.transparency.indexed=this.read(Yt),this.transparency.indexed.length>ne)throw new Error("More transparent colors than palette size");if((Bn=ne-this.transparency.indexed.length)>0)for(On=0;0<=Bn?On<Bn:On>Bn;0<=Bn?++On:--On)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Yt)[0];break;case 2:this.transparency.rgb=this.read(Yt)}break;case"tEXt":en=(jn=this.read(Yt)).indexOf(0),ce=String.fromCharCode.apply(String,jn.slice(0,en)),this.text[ce]=String.fromCharCode.apply(String,jn.slice(en+1));break;case"IEND":return Qe&&this.animation.frames.push(Qe),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(mi=this.colorType)===4||mi===6,Zt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Zt,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=Yt}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ct.prototype.read=function(kt){var Yt,Zt;for(Zt=[],Yt=0;0<=kt?Yt<kt:Yt>kt;0<=kt?++Yt:--Yt)Zt.push(this.data[this.pos++]);return Zt},Ct.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ct.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ct.prototype.decodePixels=function(kt){var Yt=this.pixelBitlength/8,Zt=new Uint8Array(this.width*this.height*Yt),ne=0,Ce=this;if(kt==null&&(kt=this.imgData),kt.length===0)return new Uint8Array(0);function Re(Qe,en,ce,kn){var Bn,jn,an,On,mi,Ui,ir,Er,_i,li,Xi,yr,yn,bn,bi,hi,cr,sr,Vi,zi,Gi,rr=Math.ceil((Ce.width-Qe)/ce),ao=Math.ceil((Ce.height-en)/kn),tn=Ce.width==rr&&Ce.height==ao;for(bn=Yt*rr,yr=tn?Zt:new Uint8Array(bn*ao),Ui=kt.length,yn=0,jn=0;yn<ao&&ne<Ui;){switch(kt[ne++]){case 0:for(On=cr=0;cr<bn;On=cr+=1)yr[jn++]=kt[ne++];break;case 1:for(On=sr=0;sr<bn;On=sr+=1)Bn=kt[ne++],mi=On<Yt?0:yr[jn-Yt],yr[jn++]=(Bn+mi)%256;break;case 2:for(On=Vi=0;Vi<bn;On=Vi+=1)Bn=kt[ne++],an=(On-On%Yt)/Yt,bi=yn&&yr[(yn-1)*bn+an*Yt+On%Yt],yr[jn++]=(bi+Bn)%256;break;case 3:for(On=zi=0;zi<bn;On=zi+=1)Bn=kt[ne++],an=(On-On%Yt)/Yt,mi=On<Yt?0:yr[jn-Yt],bi=yn&&yr[(yn-1)*bn+an*Yt+On%Yt],yr[jn++]=(Bn+Math.floor((mi+bi)/2))%256;break;case 4:for(On=Gi=0;Gi<bn;On=Gi+=1)Bn=kt[ne++],an=(On-On%Yt)/Yt,mi=On<Yt?0:yr[jn-Yt],yn===0?bi=hi=0:(bi=yr[(yn-1)*bn+an*Yt+On%Yt],hi=an&&yr[(yn-1)*bn+(an-1)*Yt+On%Yt]),ir=mi+bi-hi,Er=Math.abs(ir-mi),li=Math.abs(ir-bi),Xi=Math.abs(ir-hi),_i=Er<=li&&Er<=Xi?mi:li<=Xi?bi:hi,yr[jn++]=(Bn+_i)%256;break;default:throw new Error("Invalid filter algorithm: "+kt[ne-1])}if(!tn){var Un=((en+yn*kn)*Ce.width+Qe)*Yt,Gn=yn*bn;for(On=0;On<rr;On+=1){for(var pi=0;pi<Yt;pi+=1)Zt[Un++]=yr[Gn++];Un+=(ce-1)*Yt}}yn++}}return kt=He(kt),Ce.interlaceMethod==1?(Re(0,0,8,8),Re(4,0,8,8),Re(0,4,4,8),Re(2,0,4,4),Re(0,2,2,4),Re(1,0,2,2),Re(0,1,1,2)):Re(0,0,1,1),Zt},Ct.prototype.decodePalette=function(){var kt,Yt,Zt,ne,Ce,Re,Qe,en,ce;for(Zt=this.palette,Re=this.transparency.indexed||[],Ce=new Uint8Array((Re.length||0)+Zt.length),ne=0,kt=0,Yt=Qe=0,en=Zt.length;Qe<en;Yt=Qe+=3)Ce[ne++]=Zt[Yt],Ce[ne++]=Zt[Yt+1],Ce[ne++]=Zt[Yt+2],Ce[ne++]=(ce=Re[kt++])!=null?ce:255;return Ce},Ct.prototype.copyToImageData=function(kt,Yt){var Zt,ne,Ce,Re,Qe,en,ce,kn,Bn,jn,an;if(ne=this.colors,Bn=null,Zt=this.hasAlphaChannel,this.palette.length&&(Bn=(an=this._decodedPalette)!=null?an:this._decodedPalette=this.decodePalette(),ne=4,Zt=!0),kn=(Ce=kt.data||kt).length,Qe=Bn||Yt,Re=en=0,ne===1)for(;Re<kn;)ce=Bn?4*Yt[Re/4]:en,jn=Qe[ce++],Ce[Re++]=jn,Ce[Re++]=jn,Ce[Re++]=jn,Ce[Re++]=Zt?Qe[ce++]:255,en=ce;else for(;Re<kn;)ce=Bn?4*Yt[Re/4]:en,Ce[Re++]=Qe[ce++],Ce[Re++]=Qe[ce++],Ce[Re++]=Qe[ce++],Ce[Re++]=Zt?Qe[ce++]:255,en=ce},Ct.prototype.decode=function(){var kt;return kt=new Uint8Array(this.width*this.height*4),this.copyToImageData(kt,this.decodePixels()),kt};var Qt=function(){if(Object.prototype.toString.call(Br)==="[object Window]"){try{gt=Br.document.createElement("canvas"),wt=gt.getContext("2d")}catch(kt){return!1}return!0}return!1};return Qt(),yt=function(kt){var Yt;if(Qt()===!0)return wt.width=kt.width,wt.height=kt.height,wt.clearRect(0,0,kt.width,kt.height),wt.putImageData(kt,0,0),(Yt=new Image).src=gt.toDataURL(),Yt;throw new Error("This method requires a Browser with Canvas-capability.")},Ct.prototype.decodeFrames=function(kt){var Yt,Zt,ne,Ce,Re,Qe,en,ce;if(this.animation){for(ce=[],Zt=Re=0,Qe=(en=this.animation.frames).length;Re<Qe;Zt=++Re)Yt=en[Zt],ne=kt.createImageData(Yt.width,Yt.height),Ce=this.decodePixels(new Uint8Array(Yt.data)),this.copyToImageData(ne,Ce),Yt.imageData=ne,ce.push(Yt.image=yt(ne));return ce}},Ct.prototype.renderFrame=function(kt,Yt){var Zt,ne,Ce;return Zt=(ne=this.animation.frames)[Yt],Ce=ne[Yt-1],Yt===0&&kt.clearRect(0,0,this.width,this.height),(Ce!=null?Ce.disposeOp:void 0)===1?kt.clearRect(Ce.xOffset,Ce.yOffset,Ce.width,Ce.height):(Ce!=null?Ce.disposeOp:void 0)===2&&kt.putImageData(Ce.imageData,Ce.xOffset,Ce.yOffset),Zt.blendOp===0&&kt.clearRect(Zt.xOffset,Zt.yOffset,Zt.width,Zt.height),kt.drawImage(Zt.image,Zt.xOffset,Zt.yOffset)},Ct.prototype.animate=function(kt){var Yt,Zt,ne,Ce,Re,Qe,en=this;return Zt=0,Qe=this.animation,Ce=Qe.numFrames,ne=Qe.frames,Re=Qe.numPlays,(Yt=function(){var ce,kn;if(ce=Zt++%Ce,kn=ne[ce],en.renderFrame(kt,ce),Ce>1&&Zt/Ce<Re)return en.animation._timeout=setTimeout(Yt,kn.delay)})()},Ct.prototype.stopAnimation=function(){var kt;return clearTimeout((kt=this.animation)!=null?kt._timeout:void 0)},Ct.prototype.render=function(kt){var Yt,Zt;return kt._png&&kt._png.stopAnimation(),kt._png=this,kt.width=this.width,kt.height=this.height,Yt=kt.getContext("2d"),this.animation?(this.decodeFrames(Yt),this.animate(Yt)):(Zt=Yt.createImageData(this.width,this.height),this.copyToImageData(Zt,this.decodePixels()),Yt.putImageData(Zt,0,0))},Ct}();function Je(yt){var gt=0;if(yt[gt++]!==71||yt[gt++]!==73||yt[gt++]!==70||yt[gt++]!==56||(yt[gt++]+1&253)!=56||yt[gt++]!==97)throw new Error("Invalid GIF 87a/89a header.");var wt=yt[gt++]|yt[gt++]<<8,Ct=yt[gt++]|yt[gt++]<<8,Qt=yt[gt++],kt=Qt>>7,Yt=1<<(7&Qt)+1;yt[gt++],yt[gt++];var Zt=null,ne=null;kt&&(Zt=gt,ne=Yt,gt+=3*Yt);var Ce=!0,Re=[],Qe=0,en=null,ce=0,kn=null;for(this.width=wt,this.height=Ct;Ce&&gt<yt.length;)switch(yt[gt++]){case 33:switch(yt[gt++]){case 255:if(yt[gt]!==11||yt[gt+1]==78&&yt[gt+2]==69&&yt[gt+3]==84&&yt[gt+4]==83&&yt[gt+5]==67&&yt[gt+6]==65&&yt[gt+7]==80&&yt[gt+8]==69&&yt[gt+9]==50&&yt[gt+10]==46&&yt[gt+11]==48&&yt[gt+12]==3&&yt[gt+13]==1&&yt[gt+16]==0)gt+=14,kn=yt[gt++]|yt[gt++]<<8,gt++;else for(gt+=12;;){if(!((yn=yt[gt++])>=0))throw Error("Invalid block size");if(yn===0)break;gt+=yn}break;case 249:if(yt[gt++]!==4||yt[gt+4]!==0)throw new Error("Invalid graphics extension block.");var Bn=yt[gt++];Qe=yt[gt++]|yt[gt++]<<8,en=yt[gt++],!(1&Bn)&&(en=null),ce=Bn>>2&7,gt++;break;case 254:for(;;){if(!((yn=yt[gt++])>=0))throw Error("Invalid block size");if(yn===0)break;gt+=yn}break;default:throw new Error("Unknown graphic control label: 0x"+yt[gt-1].toString(16))}break;case 44:var jn=yt[gt++]|yt[gt++]<<8,an=yt[gt++]|yt[gt++]<<8,On=yt[gt++]|yt[gt++]<<8,mi=yt[gt++]|yt[gt++]<<8,Ui=yt[gt++],ir=Ui>>6&1,Er=1<<(7&Ui)+1,_i=Zt,li=ne,Xi=!1;Ui>>7&&(Xi=!0,_i=gt,li=Er,gt+=3*Er);var yr=gt;for(gt++;;){var yn;if(!((yn=yt[gt++])>=0))throw Error("Invalid block size");if(yn===0)break;gt+=yn}Re.push({x:jn,y:an,width:On,height:mi,has_local_palette:Xi,palette_offset:_i,palette_size:li,data_offset:yr,data_length:gt-yr,transparent_index:en,interlaced:!!ir,delay:Qe,disposal:ce});break;case 59:Ce=!1;break;default:throw new Error("Unknown gif block: 0x"+yt[gt-1].toString(16))}this.numFrames=function(){return Re.length},this.loopCount=function(){return kn},this.frameInfo=function(bn){if(bn<0||bn>=Re.length)throw new Error("Frame index out of range.");return Re[bn]},this.decodeAndBlitFrameBGRA=function(bn,bi){var hi=this.frameInfo(bn),cr=hi.width*hi.height,sr=new Uint8Array(cr);Li(yt,hi.data_offset,sr,cr);var Vi=hi.palette_offset,zi=hi.transparent_index;zi===null&&(zi=256);var Gi=hi.width,rr=wt-Gi,ao=Gi,tn=4*(hi.y*wt+hi.x),Un=4*((hi.y+hi.height)*wt+hi.x),Gn=tn,pi=4*rr;hi.interlaced===!0&&(pi+=4*wt*7);for(var Oi=8,$i=0,Wi=sr.length;$i<Wi;++$i){var or=sr[$i];if(ao===0&&(ao=Gi,(Gn+=pi)>=Un&&(pi=4*rr+4*wt*(Oi-1),Gn=tn+(Gi+rr)*(Oi<<1),Oi>>=1)),or===zi)Gn+=4;else{var Mr=yt[Vi+3*or],Gr=yt[Vi+3*or+1],Uo=yt[Vi+3*or+2];bi[Gn++]=Uo,bi[Gn++]=Gr,bi[Gn++]=Mr,bi[Gn++]=255}--ao}},this.decodeAndBlitFrameRGBA=function(bn,bi){var hi=this.frameInfo(bn),cr=hi.width*hi.height,sr=new Uint8Array(cr);Li(yt,hi.data_offset,sr,cr);var Vi=hi.palette_offset,zi=hi.transparent_index;zi===null&&(zi=256);var Gi=hi.width,rr=wt-Gi,ao=Gi,tn=4*(hi.y*wt+hi.x),Un=4*((hi.y+hi.height)*wt+hi.x),Gn=tn,pi=4*rr;hi.interlaced===!0&&(pi+=4*wt*7);for(var Oi=8,$i=0,Wi=sr.length;$i<Wi;++$i){var or=sr[$i];if(ao===0&&(ao=Gi,(Gn+=pi)>=Un&&(pi=4*rr+4*wt*(Oi-1),Gn=tn+(Gi+rr)*(Oi<<1),Oi>>=1)),or===zi)Gn+=4;else{var Mr=yt[Vi+3*or],Gr=yt[Vi+3*or+1],Uo=yt[Vi+3*or+2];bi[Gn++]=Mr,bi[Gn++]=Gr,bi[Gn++]=Uo,bi[Gn++]=255}--ao}}}function Li(yt,gt,wt,Ct){for(var Qt=yt[gt++],kt=1<<Qt,Yt=kt+1,Zt=Yt+1,ne=Qt+1,Ce=(1<<ne)-1,Re=0,Qe=0,en=0,ce=yt[gt++],kn=new Int32Array(4096),Bn=null;;){for(;Re<16&&ce!==0;)Qe|=yt[gt++]<<Re,Re+=8,ce===1?ce=yt[gt++]:--ce;if(Re<ne)break;var jn=Qe&Ce;if(Qe>>=ne,Re-=ne,jn!==kt){if(jn===Yt)break;for(var an=jn<Zt?jn:Bn,On=0,mi=an;mi>kt;)mi=kn[mi]>>8,++On;var Ui=mi;if(en+On+(an!==jn?1:0)>Ct)return void vo.log("Warning, gif stream longer than expected.");wt[en++]=Ui;var ir=en+=On;for(an!==jn&&(wt[en++]=Ui),mi=an;On--;)mi=kn[mi],wt[--ir]=255&mi,mi>>=8;Bn!==null&&Zt<4096&&(kn[Zt++]=Bn<<8|Ui,Zt>=Ce+1&&ne<12&&(++ne,Ce=Ce<<1|1)),Bn=jn}else Zt=Yt+1,Ce=(1<<(ne=Qt+1))-1,Bn=null}return en!==Ct&&vo.log("Warning, gif stream shorter than expected."),wt}function ff(yt){var gt,wt,Ct,Qt,kt,Yt=Math.floor,Zt=new Array(64),ne=new Array(64),Ce=new Array(64),Re=new Array(64),Qe=new Array(65535),en=new Array(65535),ce=new Array(64),kn=new Array(64),Bn=[],jn=0,an=7,On=new Array(64),mi=new Array(64),Ui=new Array(64),ir=new Array(256),Er=new Array(2048),_i=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],li=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Xi=[0,1,2,3,4,5,6,7,8,9,10,11],yr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],yn=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],bn=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],bi=[0,1,2,3,4,5,6,7,8,9,10,11],hi=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],cr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function sr(tn,Un){for(var Gn=0,pi=0,Oi=new Array,$i=1;$i<=16;$i++){for(var Wi=1;Wi<=tn[$i];Wi++)Oi[Un[pi]]=[],Oi[Un[pi]][0]=Gn,Oi[Un[pi]][1]=$i,pi++,Gn++;Gn*=2}return Oi}function Vi(tn){for(var Un=tn[0],Gn=tn[1]-1;Gn>=0;)Un&1<<Gn&&(jn|=1<<an),Gn--,--an<0&&(jn==255?(zi(255),zi(0)):zi(jn),an=7,jn=0)}function zi(tn){Bn.push(tn)}function Gi(tn){zi(tn>>8&255),zi(255&tn)}function rr(tn,Un,Gn,pi,Oi){for(var $i,Wi=Oi[0],or=Oi[240],Mr=function(Rr,So){var xo,Yr,ts,ms,cs,Ds,$o,ra,Bs,ta,ko=0;for(Bs=0;Bs<8;++Bs){xo=Rr[ko],Yr=Rr[ko+1],ts=Rr[ko+2],ms=Rr[ko+3],cs=Rr[ko+4],Ds=Rr[ko+5],$o=Rr[ko+6];var Au=xo+(ra=Rr[ko+7]),Ca=xo-ra,gh=Yr+$o,Ho=Yr-$o,gl=ts+Ds,AA=ts-Ds,Ha=ms+cs,ku=ms-cs,oa=Au+Ha,ph=Au-Ha,oc=gh+gl,wl=gh-gl;Rr[ko]=oa+oc,Rr[ko+4]=oa-oc;var _s=.707106781*(wl+ph);Rr[ko+2]=ph+_s,Rr[ko+6]=ph-_s;var Ia=.382683433*((oa=ku+AA)-(wl=Ho+Ca)),cA=.5411961*oa+Ia,ou=1.306562965*wl+Ia,dA=.707106781*(oc=AA+Ho),Fh=Ca+dA,Cs=Ca-dA;Rr[ko+5]=Cs+cA,Rr[ko+3]=Cs-cA,Rr[ko+1]=Fh+ou,Rr[ko+7]=Fh-ou,ko+=8}for(ko=0,Bs=0;Bs<8;++Bs){xo=Rr[ko],Yr=Rr[ko+8],ts=Rr[ko+16],ms=Rr[ko+24],cs=Rr[ko+32],Ds=Rr[ko+40],$o=Rr[ko+48];var wu=xo+(ra=Rr[ko+56]),Fl=xo-ra,Gl=Yr+$o,ho=Yr-$o,pl=ts+Ds,Ku=ts-Ds,PA=ms+cs,pu=ms-cs,Su=wu+PA,xu=wu-PA,Wu=Gl+pl,Vu=Gl-pl;Rr[ko]=Su+Wu,Rr[ko+32]=Su-Wu;var fl=.707106781*(Vu+xu);Rr[ko+16]=xu+fl,Rr[ko+48]=xu-fl;var Yu=.382683433*((Su=pu+Ku)-(Vu=ho+Fl)),sc=.5411961*Su+Yu,Xu=1.306562965*Vu+Yu,fA=.707106781*(Wu=Ku+ho),Zu=Fl+fA,UA=Fl-fA;Rr[ko+40]=UA+sc,Rr[ko+24]=UA-sc,Rr[ko+8]=Zu+Xu,Rr[ko+56]=Zu-Xu,ko++}for(Bs=0;Bs<64;++Bs)ta=Rr[Bs]*So[Bs],ce[Bs]=ta>0?ta+.5|0:ta-.5|0;return ce}(tn,Un),Gr=0;Gr<64;++Gr)kn[_i[Gr]]=Mr[Gr];var Uo=kn[0]-Gn;Gn=kn[0],Uo==0?Vi(pi[0]):(Vi(pi[en[$i=32767+Uo]]),Vi(Qe[$i]));for(var Lo=63;Lo>0&&kn[Lo]==0;)Lo--;if(Lo==0)return Vi(Wi),Gn;for(var Ss,wr=1;wr<=Lo;){for(var _n=wr;kn[wr]==0&&wr<=Lo;)++wr;var ls=wr-_n;if(ls>=16){Ss=ls>>4;for(var Jo=1;Jo<=Ss;++Jo)Vi(or);ls&=15}$i=32767+kn[wr],Vi(Oi[(ls<<4)+en[$i]]),Vi(Qe[$i]),wr++}return Lo!=63&&Vi(Wi),Gn}function ao(tn){tn=Math.min(Math.max(tn,1),100),kt!=tn&&(function(Un){for(var Gn=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],pi=0;pi<64;pi++){var Oi=Yt((Gn[pi]*Un+50)/100);Oi=Math.min(Math.max(Oi,1),255),Zt[_i[pi]]=Oi}for(var $i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Wi=0;Wi<64;Wi++){var or=Yt(($i[Wi]*Un+50)/100);or=Math.min(Math.max(or,1),255),ne[_i[Wi]]=or}for(var Mr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Gr=0,Uo=0;Uo<8;Uo++)for(var Lo=0;Lo<8;Lo++)Ce[Gr]=1/(Zt[_i[Gr]]*Mr[Uo]*Mr[Lo]*8),Re[Gr]=1/(ne[_i[Gr]]*Mr[Uo]*Mr[Lo]*8),Gr++}(tn<50?Math.floor(5e3/tn):Math.floor(200-2*tn)),kt=tn)}this.encode=function(tn,Un){Un&&ao(Un),Bn=new Array,jn=0,an=7,Gi(65496),Gi(65504),Gi(16),zi(74),zi(70),zi(73),zi(70),zi(0),zi(1),zi(1),zi(0),Gi(1),Gi(1),zi(0),zi(0),function(){Gi(65499),Gi(132),zi(0);for(var Yr=0;Yr<64;Yr++)zi(Zt[Yr]);zi(1);for(var ts=0;ts<64;ts++)zi(ne[ts])}(),function(Yr,ts){Gi(65472),Gi(17),zi(8),Gi(ts),Gi(Yr),zi(3),zi(1),zi(17),zi(0),zi(2),zi(17),zi(1),zi(3),zi(17),zi(1)}(tn.width,tn.height),function(){Gi(65476),Gi(418),zi(0);for(var Yr=0;Yr<16;Yr++)zi(li[Yr+1]);for(var ts=0;ts<=11;ts++)zi(Xi[ts]);zi(16);for(var ms=0;ms<16;ms++)zi(yr[ms+1]);for(var cs=0;cs<=161;cs++)zi(yn[cs]);zi(1);for(var Ds=0;Ds<16;Ds++)zi(bn[Ds+1]);for(var $o=0;$o<=11;$o++)zi(bi[$o]);zi(17);for(var ra=0;ra<16;ra++)zi(hi[ra+1]);for(var Bs=0;Bs<=161;Bs++)zi(cr[Bs])}(),Gi(65498),Gi(12),zi(3),zi(1),zi(0),zi(2),zi(17),zi(3),zi(17),zi(0),zi(63),zi(0);var Gn=0,pi=0,Oi=0;jn=0,an=7,this.encode.displayName="_encode_";for(var $i,Wi,or,Mr,Gr,Uo,Lo,Ss,wr,_n=tn.data,ls=tn.width,Jo=tn.height,Rr=4*ls,So=0;So<Jo;){for($i=0;$i<Rr;){for(Gr=Rr*So+$i,Lo=-1,Ss=0,wr=0;wr<64;wr++)Uo=Gr+(Ss=wr>>3)*Rr+(Lo=4*(7&wr)),So+Ss>=Jo&&(Uo-=Rr*(So+1+Ss-Jo)),$i+Lo>=Rr&&(Uo-=$i+Lo-Rr+4),Wi=_n[Uo++],or=_n[Uo++],Mr=_n[Uo++],On[wr]=(Er[Wi]+Er[or+256>>0]+Er[Mr+512>>0]>>16)-128,mi[wr]=(Er[Wi+768>>0]+Er[or+1024>>0]+Er[Mr+1280>>0]>>16)-128,Ui[wr]=(Er[Wi+1280>>0]+Er[or+1536>>0]+Er[Mr+1792>>0]>>16)-128;Gn=rr(On,Ce,Gn,gt,Ct),pi=rr(mi,Re,pi,wt,Qt),Oi=rr(Ui,Re,Oi,wt,Qt),$i+=32}So+=8}if(an>=0){var xo=[];xo[1]=an+1,xo[0]=(1<<an+1)-1,Vi(xo)}return Gi(65497),new Uint8Array(Bn)},yt=yt||50,function(){for(var tn=String.fromCharCode,Un=0;Un<256;Un++)ir[Un]=tn(Un)}(),gt=sr(li,Xi),wt=sr(bn,bi),Ct=sr(yr,yn),Qt=sr(hi,cr),function(){for(var tn=1,Un=2,Gn=1;Gn<=15;Gn++){for(var pi=tn;pi<Un;pi++)en[32767+pi]=Gn,Qe[32767+pi]=[],Qe[32767+pi][1]=Gn,Qe[32767+pi][0]=pi;for(var Oi=-(Un-1);Oi<=-tn;Oi++)en[32767+Oi]=Gn,Qe[32767+Oi]=[],Qe[32767+Oi][1]=Gn,Qe[32767+Oi][0]=Un-1+Oi;tn<<=1,Un<<=1}}(),function(){for(var tn=0;tn<256;tn++)Er[tn]=19595*tn,Er[tn+256>>0]=38470*tn,Er[tn+512>>0]=7471*tn+32768,Er[tn+768>>0]=-11059*tn,Er[tn+1024>>0]=-21709*tn,Er[tn+1280>>0]=32768*tn+8421375,Er[tn+1536>>0]=-27439*tn,Er[tn+1792>>0]=-5329*tn}(),ao(yt)}function hA(yt,gt){if(this.pos=0,this.buffer=yt,this.datav=new DataView(yt.buffer),this.is_with_alpha=!!gt,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function uu(yt){function gt(li){if(!li)throw Error("assert :P")}function wt(li,Xi,yr){for(var yn=0;4>yn;yn++)if(li[Xi+yn]!=yr.charCodeAt(yn))return!0;return!1}function Ct(li,Xi,yr,yn,bn){for(var bi=0;bi<bn;bi++)li[Xi+bi]=yr[yn+bi]}function Qt(li,Xi,yr,yn){for(var bn=0;bn<yn;bn++)li[Xi+bn]=yr}function kt(li){return new Int32Array(li)}function Yt(li,Xi){for(var yr=[],yn=0;yn<li;yn++)yr.push(new Xi);return yr}function Zt(li,Xi){var yr=[];return function yn(bn,bi,hi){for(var cr=hi[bi],sr=0;sr<cr&&(bn.push(hi.length>bi+1?[]:new Xi),!(hi.length<bi+1));sr++)yn(bn[sr],bi+1,hi)}(yr,0,li),yr}var ne=function(){var li=this;function Xi(pt,Pt){for(var Wt=1<<Pt-1>>>0;pt&Wt;)Wt>>>=1;return Wt?(pt&Wt-1)+Wt:pt}function yr(pt,Pt,Wt,ee,xe){gt(!(ee%Wt));do pt[Pt+(ee-=Wt)]=xe;while(0<ee)}function yn(pt,Pt,Wt,ee,xe){if(gt(2328>=xe),512>=xe)var ze=kt(512);else if((ze=kt(xe))==null)return 0;return function(je,Ke,Ze,cn,Xn,oi){var Ii,fi,Yi=Ke,Zi=1<<Ze,di=kt(16),Si=kt(16);for(gt(Xn!=0),gt(cn!=null),gt(je!=null),gt(0<Ze),fi=0;fi<Xn;++fi){if(15<cn[fi])return 0;++di[cn[fi]]}if(di[0]==Xn)return 0;for(Si[1]=0,Ii=1;15>Ii;++Ii){if(di[Ii]>1<<Ii)return 0;Si[Ii+1]=Si[Ii]+di[Ii]}for(fi=0;fi<Xn;++fi)Ii=cn[fi],0<cn[fi]&&(oi[Si[Ii]++]=fi);if(Si[15]==1)return(cn=new bn).g=0,cn.value=oi[0],yr(je,Yi,1,Zi,cn),Zi;var ar,br=-1,Fr=Zi-1,Bo=0,lo=1,ds=1,Ln=1<<Ze;for(fi=0,Ii=1,Xn=2;Ii<=Ze;++Ii,Xn<<=1){if(lo+=ds<<=1,0>(ds-=di[Ii]))return 0;for(;0<di[Ii];--di[Ii])(cn=new bn).g=Ii,cn.value=oi[fi++],yr(je,Yi+Bo,Xn,Ln,cn),Bo=Xi(Bo,Ii)}for(Ii=Ze+1,Xn=2;15>=Ii;++Ii,Xn<<=1){if(lo+=ds<<=1,0>(ds-=di[Ii]))return 0;for(;0<di[Ii];--di[Ii]){if(cn=new bn,(Bo&Fr)!=br){for(Yi+=Ln,ar=1<<(br=Ii)-Ze;15>br&&!(0>=(ar-=di[br]));)++br,ar<<=1;Zi+=Ln=1<<(ar=br-Ze),je[Ke+(br=Bo&Fr)].g=ar+Ze,je[Ke+br].value=Yi-Ke-br}cn.g=Ii-Ze,cn.value=oi[fi++],yr(je,Yi+(Bo>>Ze),Xn,Ln,cn),Bo=Xi(Bo,Ii)}}return lo!=2*Si[15]-1?0:Zi}(pt,Pt,Wt,ee,xe,ze)}function bn(){this.value=this.g=0}function bi(){this.value=this.g=0}function hi(){this.G=Yt(5,bn),this.H=kt(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Yt(Us,bi)}function cr(pt,Pt,Wt,ee){gt(pt!=null),gt(Pt!=null),gt(2147483648>ee),pt.Ca=254,pt.I=0,pt.b=-8,pt.Ka=0,pt.oa=Pt,pt.pa=Wt,pt.Jd=Pt,pt.Yc=Wt+ee,pt.Zc=4<=ee?Wt+ee-4+1:Wt,$i(pt)}function sr(pt,Pt){for(var Wt=0;0<Pt--;)Wt|=or(pt,128)<<Pt;return Wt}function Vi(pt,Pt){var Wt=sr(pt,Pt);return Wi(pt)?-Wt:Wt}function zi(pt,Pt,Wt,ee){var xe,ze=0;for(gt(pt!=null),gt(Pt!=null),gt(4294967288>ee),pt.Sb=ee,pt.Ra=0,pt.u=0,pt.h=0,4<ee&&(ee=4),xe=0;xe<ee;++xe)ze+=Pt[Wt+xe]<<8*xe;pt.Ra=ze,pt.bb=ee,pt.oa=Pt,pt.pa=Wt}function Gi(pt){for(;8<=pt.u&&pt.bb<pt.Sb;)pt.Ra>>>=8,pt.Ra+=pt.oa[pt.pa+pt.bb]<<il-8>>>0,++pt.bb,pt.u-=8;Gn(pt)&&(pt.h=1,pt.u=0)}function rr(pt,Pt){if(gt(0<=Pt),!pt.h&&Pt<=yc){var Wt=Un(pt)&Th[Pt];return pt.u+=Pt,Gi(pt),Wt}return pt.h=1,pt.u=0}function ao(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function tn(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Un(pt){return pt.Ra>>>(pt.u&il-1)>>>0}function Gn(pt){return gt(pt.bb<=pt.Sb),pt.h||pt.bb==pt.Sb&&pt.u>il}function pi(pt,Pt){pt.u=Pt,pt.h=Gn(pt)}function Oi(pt){pt.u>=$u&&(gt(pt.u>=$u),Gi(pt))}function $i(pt){gt(pt!=null&&pt.oa!=null),pt.pa<pt.Zc?(pt.I=(pt.oa[pt.pa++]|pt.I<<8)>>>0,pt.b+=8):(gt(pt!=null&&pt.oa!=null),pt.pa<pt.Yc?(pt.b+=8,pt.I=pt.oa[pt.pa++]|pt.I<<8):pt.Ka?pt.b=0:(pt.I<<=8,pt.b+=8,pt.Ka=1))}function Wi(pt){return sr(pt,1)}function or(pt,Pt){var Wt=pt.Ca;0>pt.b&&$i(pt);var ee=pt.b,xe=Wt*Pt>>>8,ze=(pt.I>>>ee>xe)+0;for(ze?(Wt-=xe,pt.I-=xe+1<<ee>>>0):Wt=xe+1,ee=Wt,xe=0;256<=ee;)xe+=8,ee>>=8;return ee=7^xe+Jl[ee],pt.b-=ee,pt.Ca=(Wt<<ee)-1,ze}function Mr(pt,Pt,Wt){pt[Pt+0]=Wt>>24&255,pt[Pt+1]=Wt>>16&255,pt[Pt+2]=Wt>>8&255,pt[Pt+3]=Wt>>0&255}function Gr(pt,Pt){return pt[Pt+0]<<0|pt[Pt+1]<<8}function Uo(pt,Pt){return Gr(pt,Pt)|pt[Pt+2]<<16}function Lo(pt,Pt){return Gr(pt,Pt)|Gr(pt,Pt+2)<<16}function Ss(pt,Pt){var Wt=1<<Pt;return gt(pt!=null),gt(0<Pt),pt.X=kt(Wt),pt.X==null?0:(pt.Mb=32-Pt,pt.Xa=Pt,1)}function wr(pt,Pt){gt(pt!=null),gt(Pt!=null),gt(pt.Xa==Pt.Xa),Ct(Pt.X,0,pt.X,0,1<<Pt.Xa)}function _n(){this.X=[],this.Xa=this.Mb=0}function ls(pt,Pt,Wt,ee){gt(Wt!=null),gt(ee!=null);var xe=Wt[0],ze=ee[0];return xe==0&&(xe=(pt*ze+Pt/2)/Pt),ze==0&&(ze=(Pt*xe+pt/2)/pt),0>=xe||0>=ze?0:(Wt[0]=xe,ee[0]=ze,1)}function Jo(pt,Pt){return pt+(1<<Pt)-1>>>Pt}function Rr(pt,Pt){return((4278255360&pt)+(4278255360&Pt)>>>0&4278255360)+((16711935&pt)+(16711935&Pt)>>>0&16711935)>>>0}function So(pt,Pt){li[Pt]=function(Wt,ee,xe,ze,je,Ke,Ze){var cn;for(cn=0;cn<je;++cn){var Xn=li[pt](Ke[Ze+cn-1],xe,ze+cn);Ke[Ze+cn]=Rr(Wt[ee+cn],Xn)}}}function xo(){this.ud=this.hd=this.jd=0}function Yr(pt,Pt){return((4278124286&(pt^Pt))>>>1)+(pt&Pt)>>>0}function ts(pt){return 0<=pt&&256>pt?pt:0>pt?0:255<pt?255:void 0}function ms(pt,Pt){return ts(pt+(pt-Pt+.5>>1))}function cs(pt,Pt,Wt){return Math.abs(Pt-Wt)-Math.abs(pt-Wt)}function Ds(pt,Pt,Wt,ee,xe,ze,je){for(ee=ze[je-1],Wt=0;Wt<xe;++Wt)ze[je+Wt]=ee=Rr(pt[Pt+Wt],ee)}function $o(pt,Pt,Wt,ee,xe){var ze;for(ze=0;ze<Wt;++ze){var je=pt[Pt+ze],Ke=je>>8&255,Ze=16711935&(Ze=(Ze=16711935&je)+((Ke<<16)+Ke));ee[xe+ze]=(4278255360&je)+Ze>>>0}}function ra(pt,Pt){Pt.jd=pt>>0&255,Pt.hd=pt>>8&255,Pt.ud=pt>>16&255}function Bs(pt,Pt,Wt,ee,xe,ze){var je;for(je=0;je<ee;++je){var Ke=Pt[Wt+je],Ze=Ke>>>8,cn=Ke,Xn=255&(Xn=(Xn=Ke>>>16)+((pt.jd<<24>>24)*(Ze<<24>>24)>>>5));cn=255&(cn=(cn=cn+((pt.hd<<24>>24)*(Ze<<24>>24)>>>5))+((pt.ud<<24>>24)*(Xn<<24>>24)>>>5)),xe[ze+je]=(4278255360&Ke)+(Xn<<16)+cn}}function ta(pt,Pt,Wt,ee,xe){li[Pt]=function(ze,je,Ke,Ze,cn,Xn,oi,Ii,fi){for(Ze=oi;Ze<Ii;++Ze)for(oi=0;oi<fi;++oi)cn[Xn++]=xe(Ke[ee(ze[je++])])},li[pt]=function(ze,je,Ke,Ze,cn,Xn,oi){var Ii=8>>ze.b,fi=ze.Ea,Yi=ze.K[0],Zi=ze.w;if(8>Ii)for(ze=(1<<ze.b)-1,Zi=(1<<Ii)-1;je<Ke;++je){var di,Si=0;for(di=0;di<fi;++di)di&ze||(Si=ee(Ze[cn++])),Xn[oi++]=xe(Yi[Si&Zi]),Si>>=Ii}else li["VP8LMapColor"+Wt](Ze,cn,Yi,Zi,Xn,oi,je,Ke,fi)}}function ko(pt,Pt,Wt,ee,xe){for(Wt=Pt+Wt;Pt<Wt;){var ze=pt[Pt++];ee[xe++]=ze>>16&255,ee[xe++]=ze>>8&255,ee[xe++]=ze>>0&255}}function Au(pt,Pt,Wt,ee,xe){for(Wt=Pt+Wt;Pt<Wt;){var ze=pt[Pt++];ee[xe++]=ze>>16&255,ee[xe++]=ze>>8&255,ee[xe++]=ze>>0&255,ee[xe++]=ze>>24&255}}function Ca(pt,Pt,Wt,ee,xe){for(Wt=Pt+Wt;Pt<Wt;){var ze=(je=pt[Pt++])>>16&240|je>>12&15,je=je>>0&240|je>>28&15;ee[xe++]=ze,ee[xe++]=je}}function gh(pt,Pt,Wt,ee,xe){for(Wt=Pt+Wt;Pt<Wt;){var ze=(je=pt[Pt++])>>16&248|je>>13&7,je=je>>5&224|je>>3&31;ee[xe++]=ze,ee[xe++]=je}}function Ho(pt,Pt,Wt,ee,xe){for(Wt=Pt+Wt;Pt<Wt;){var ze=pt[Pt++];ee[xe++]=ze>>0&255,ee[xe++]=ze>>8&255,ee[xe++]=ze>>16&255}}function gl(pt,Pt,Wt,ee,xe,ze){if(ze==0)for(Wt=Pt+Wt;Pt<Wt;)Mr(ee,((ze=pt[Pt++])[0]>>24|ze[1]>>8&65280|ze[2]<<8&16711680|ze[3]<<24)>>>0),xe+=32;else Ct(ee,xe,pt,Pt,Wt)}function AA(pt,Pt){li[Pt][0]=li[pt+"0"],li[Pt][1]=li[pt+"1"],li[Pt][2]=li[pt+"2"],li[Pt][3]=li[pt+"3"],li[Pt][4]=li[pt+"4"],li[Pt][5]=li[pt+"5"],li[Pt][6]=li[pt+"6"],li[Pt][7]=li[pt+"7"],li[Pt][8]=li[pt+"8"],li[Pt][9]=li[pt+"9"],li[Pt][10]=li[pt+"10"],li[Pt][11]=li[pt+"11"],li[Pt][12]=li[pt+"12"],li[Pt][13]=li[pt+"13"],li[Pt][14]=li[pt+"0"],li[Pt][15]=li[pt+"0"]}function Ha(pt){return pt==$l||pt==yA||pt==WA||pt==xg}function ku(){this.eb=[],this.size=this.A=this.fb=0}function oa(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ph(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ku,this.f.kb=new oa,this.sd=null}function oc(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function wl(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function _s(pt){return alert("todo:WebPSamplerProcessPlane"),pt.T}function Ia(pt,Pt){var Wt=pt.T,ee=Pt.ba.f.RGBA,xe=ee.eb,ze=ee.fb+pt.ka*ee.A,je=Oh[Pt.ba.S],Ke=pt.y,Ze=pt.O,cn=pt.f,Xn=pt.N,oi=pt.ea,Ii=pt.W,fi=Pt.cc,Yi=Pt.dc,Zi=Pt.Mc,di=Pt.Nc,Si=pt.ka,ar=pt.ka+pt.T,br=pt.U,Fr=br+1>>1;for(Si==0?je(Ke,Ze,null,null,cn,Xn,oi,Ii,cn,Xn,oi,Ii,xe,ze,null,null,br):(je(Pt.ec,Pt.fc,Ke,Ze,fi,Yi,Zi,di,cn,Xn,oi,Ii,xe,ze-ee.A,xe,ze,br),++Wt);Si+2<ar;Si+=2)fi=cn,Yi=Xn,Zi=oi,di=Ii,Xn+=pt.Rc,Ii+=pt.Rc,ze+=2*ee.A,je(Ke,(Ze+=2*pt.fa)-pt.fa,Ke,Ze,fi,Yi,Zi,di,cn,Xn,oi,Ii,xe,ze-ee.A,xe,ze,br);return Ze+=pt.fa,pt.j+ar<pt.o?(Ct(Pt.ec,Pt.fc,Ke,Ze,br),Ct(Pt.cc,Pt.dc,cn,Xn,Fr),Ct(Pt.Mc,Pt.Nc,oi,Ii,Fr),Wt--):1&ar||je(Ke,Ze,null,null,cn,Xn,oi,Ii,cn,Xn,oi,Ii,xe,ze+ee.A,null,null,br),Wt}function cA(pt,Pt,Wt){var ee=pt.F,xe=[pt.J];if(ee!=null){var ze=pt.U,je=Pt.ba.S,Ke=je==su||je==WA;Pt=Pt.ba.f.RGBA;var Ze=[0],cn=pt.ka;Ze[0]=pt.T,pt.Kb&&(cn==0?--Ze[0]:(--cn,xe[0]-=pt.width),pt.j+pt.ka+pt.T==pt.o&&(Ze[0]=pt.o-pt.j-cn));var Xn=Pt.eb;cn=Pt.fb+cn*Pt.A,pt=$s(ee,xe[0],pt.width,ze,Ze,Xn,cn+(Ke?0:3),Pt.A),gt(Wt==Ze),pt&&Ha(je)&&va(Xn,cn,Ke,ze,Ze,Pt.A)}return 0}function ou(pt){var Pt=pt.ma,Wt=Pt.ba.S,ee=11>Wt,xe=Wt==vl||Wt==Du||Wt==su||Wt==Fu||Wt==12||Ha(Wt);if(Pt.memory=null,Pt.Ib=null,Pt.Jb=null,Pt.Nd=null,!Xh(Pt.Oa,pt,xe?11:12))return 0;if(xe&&Ha(Wt)&&Or(),pt.da)alert("todo:use_scaling");else{if(ee){if(Pt.Ib=_s,pt.Kb){if(Wt=pt.U+1>>1,Pt.memory=kt(pt.U+2*Wt),Pt.memory==null)return 0;Pt.ec=Pt.memory,Pt.fc=0,Pt.cc=Pt.ec,Pt.dc=Pt.fc+pt.U,Pt.Mc=Pt.cc,Pt.Nc=Pt.dc+Wt,Pt.Ib=Ia,Or()}}else alert("todo:EmitYUV");xe&&(Pt.Jb=cA,ee&&ji())}if(ee&&!bg){for(pt=0;256>pt;++pt)Bt[pt]=89858*(pt-128)+yd>>wf,Lt[pt]=-22014*(pt-128)+yd,Ft[pt]=-45773*(pt-128),xt[pt]=113618*(pt-128)+yd>>wf;for(pt=Kc;pt<MA;++pt)Pt=76283*(pt-16)+yd>>wf,te[pt-Kc]=Ou(Pt,255),Pe[pt-Kc]=Ou(Pt+8>>4,15);bg=1}return 1}function dA(pt){var Pt=pt.ma,Wt=pt.U,ee=pt.T;return gt(!(1&pt.ka)),0>=Wt||0>=ee?0:(Wt=Pt.Ib(pt,Pt),Pt.Jb!=null&&Pt.Jb(pt,Pt,Wt),Pt.Dc+=Wt,1)}function Fh(pt){pt.ma.memory=null}function Cs(pt,Pt,Wt,ee){return rr(pt,8)!=47?0:(Pt[0]=rr(pt,14)+1,Wt[0]=rr(pt,14)+1,ee[0]=rr(pt,1),rr(pt,3)!=0?0:!pt.h)}function wu(pt,Pt){if(4>pt)return pt+1;var Wt=pt-2>>1;return(2+(1&pt)<<Wt)+rr(Pt,Wt)+1}function Fl(pt,Pt){return 120<Pt?Pt-120:1<=(Wt=((Wt=jd[Pt-1])>>4)*pt+(8-(15&Wt)))?Wt:1;var Wt}function Gl(pt,Pt,Wt){var ee=Un(Wt),xe=pt[Pt+=255&ee].g-8;return 0<xe&&(pi(Wt,Wt.u+8),ee=Un(Wt),Pt+=pt[Pt].value,Pt+=ee&(1<<xe)-1),pi(Wt,Wt.u+pt[Pt].g),pt[Pt].value}function ho(pt,Pt,Wt){return Wt.g+=pt.g,Wt.value+=pt.value<<Pt>>>0,gt(8>=Wt.g),pt.g}function pl(pt,Pt,Wt){var ee=pt.xc;return gt((Pt=ee==0?0:pt.vc[pt.md*(Wt>>ee)+(Pt>>ee)])<pt.Wb),pt.Ya[Pt]}function Ku(pt,Pt,Wt,ee){var xe=pt.ab,ze=pt.c*Pt,je=pt.C;Pt=je+Pt;var Ke=Wt,Ze=ee;for(ee=pt.Ta,Wt=pt.Ua;0<xe--;){var cn=pt.gc[xe],Xn=je,oi=Pt,Ii=Ke,fi=Ze,Yi=(Ze=ee,Ke=Wt,cn.Ea);switch(gt(Xn<oi),gt(oi<=cn.nc),cn.hc){case 2:wc(Ii,fi,(oi-Xn)*Yi,Ze,Ke);break;case 0:var Zi=Xn,di=oi,Si=Ze,ar=Ke,br=(Ln=cn).Ea;Zi==0&&(LA(Ii,fi,null,null,1,Si,ar),Ds(Ii,fi+1,0,0,br-1,Si,ar+1),fi+=br,ar+=br,++Zi);for(var Fr=1<<Ln.b,Bo=Fr-1,lo=Jo(br,Ln.b),ds=Ln.K,Ln=Ln.w+(Zi>>Ln.b)*lo;Zi<di;){var ya=ds,Ua=Ln,da=1;for(za(Ii,fi,Si,ar-br,1,Si,ar);da<br;){var sa=(da&~Bo)+Fr;sa>br&&(sa=br),(0,ot[ya[Ua++]>>8&15])(Ii,fi+ +da,Si,ar+da-br,sa-da,Si,ar+da),da=sa}fi+=br,ar+=br,++Zi&Bo||(Ln+=lo)}oi!=cn.nc&&Ct(Ze,Ke-Yi,Ze,Ke+(oi-Xn-1)*Yi,Yi);break;case 1:for(Yi=Ii,di=fi,br=(Ii=cn.Ea)-(ar=Ii&~(Si=(fi=1<<cn.b)-1)),Zi=Jo(Ii,cn.b),Fr=cn.K,cn=cn.w+(Xn>>cn.b)*Zi;Xn<oi;){for(Bo=Fr,lo=cn,ds=new xo,Ln=di+ar,ya=di+Ii;di<Ln;)ra(Bo[lo++],ds),ct(ds,Yi,di,fi,Ze,Ke),di+=fi,Ke+=fi;di<ya&&(ra(Bo[lo++],ds),ct(ds,Yi,di,br,Ze,Ke),di+=br,Ke+=br),++Xn&Si||(cn+=Zi)}break;case 3:if(Ii==Ze&&fi==Ke&&0<cn.b){for(di=Ze,Ii=Yi=Ke+(oi-Xn)*Yi-(ar=(oi-Xn)*Jo(cn.Ea,cn.b)),fi=Ze,Si=Ke,Zi=[],ar=(br=ar)-1;0<=ar;--ar)Zi[ar]=fi[Si+ar];for(ar=br-1;0<=ar;--ar)di[Ii+ar]=Zi[ar];Ol(cn,Xn,oi,Ze,Yi,Ze,Ke)}else Ol(cn,Xn,oi,Ii,fi,Ze,Ke)}Ke=ee,Ze=Wt}Ze!=Wt&&Ct(ee,Wt,Ke,Ze,ze)}function PA(pt,Pt){var Wt=pt.V,ee=pt.Ba+pt.c*pt.C,xe=Pt-pt.C;if(gt(Pt<=pt.l.o),gt(16>=xe),0<xe){var ze=pt.l,je=pt.Ta,Ke=pt.Ua,Ze=ze.width;if(Ku(pt,xe,Wt,ee),xe=Ke=[Ke],gt((Wt=pt.C)<(ee=Pt)),gt(ze.v<ze.va),ee>ze.o&&(ee=ze.o),Wt<ze.j){var cn=ze.j-Wt;Wt=ze.j,xe[0]+=cn*Ze}if(Wt>=ee?Wt=0:(xe[0]+=4*ze.v,ze.ka=Wt-ze.j,ze.U=ze.va-ze.v,ze.T=ee-Wt,Wt=1),Wt){if(Ke=Ke[0],11>(Wt=pt.ca).S){var Xn=Wt.f.RGBA,oi=(ee=Wt.S,xe=ze.U,ze=ze.T,cn=Xn.eb,Xn.A),Ii=ze;for(Xn=Xn.fb+pt.Ma*Xn.A;0<Ii--;){var fi=je,Yi=Ke,Zi=xe,di=cn,Si=Xn;switch(ee){case mu:At(fi,Yi,Zi,di,Si);break;case vl:mt(fi,Yi,Zi,di,Si);break;case $l:mt(fi,Yi,Zi,di,Si),va(di,Si,0,Zi,1,0);break;case xc:he(fi,Yi,Zi,di,Si);break;case Du:gl(fi,Yi,Zi,di,Si,1);break;case yA:gl(fi,Yi,Zi,di,Si,1),va(di,Si,0,Zi,1,0);break;case su:gl(fi,Yi,Zi,di,Si,0);break;case WA:gl(fi,Yi,Zi,di,Si,0),va(di,Si,1,Zi,1,0);break;case Fu:Dt(fi,Yi,Zi,di,Si);break;case xg:Dt(fi,Yi,Zi,di,Si),Aa(di,Si,Zi,1,0);break;case Ka:qt(fi,Yi,Zi,di,Si);break;default:gt(0)}Ke+=Ze,Xn+=oi}pt.Ma+=ze}else alert("todo:EmitRescaledRowsYUVA");gt(pt.Ma<=Wt.height)}}pt.C=Pt,gt(pt.C<=pt.i)}function pu(pt){var Pt;if(0<pt.ua)return 0;for(Pt=0;Pt<pt.Wb;++Pt){var Wt=pt.Ya[Pt].G,ee=pt.Ya[Pt].H;if(0<Wt[1][ee[1]+0].g||0<Wt[2][ee[2]+0].g||0<Wt[3][ee[3]+0].g)return 0}return 1}function Su(pt,Pt,Wt,ee,xe,ze){if(pt.Z!=0){var je=pt.qd,Ke=pt.rd;for(gt(eh[pt.Z]!=null);Pt<Wt;++Pt)eh[pt.Z](je,Ke,ee,xe,ee,xe,ze),je=ee,Ke=xe,xe+=ze;pt.qd=je,pt.rd=Ke}}function xu(pt,Pt){var Wt=pt.l.ma,ee=Wt.Z==0||Wt.Z==1?pt.l.j:pt.C;if(ee=pt.C<ee?ee:pt.C,gt(Pt<=pt.l.o),Pt>ee){var xe=pt.l.width,ze=Wt.ca,je=Wt.tb+xe*ee,Ke=pt.V,Ze=pt.Ba+pt.c*ee,cn=pt.gc;gt(pt.ab==1),gt(cn[0].hc==3),Sc(cn[0],ee,Pt,Ke,Ze,ze,je),Su(Wt,ee,Pt,ze,je,xe)}pt.C=pt.Ma=Pt}function Wu(pt,Pt,Wt,ee,xe,ze,je){var Ke=pt.$/ee,Ze=pt.$%ee,cn=pt.m,Xn=pt.s,oi=Wt+pt.$,Ii=oi;xe=Wt+ee*xe;var fi=Wt+ee*ze,Yi=280+Xn.ua,Zi=pt.Pb?Ke:16777216,di=0<Xn.ua?Xn.Wa:null,Si=Xn.wc,ar=oi<fi?pl(Xn,Ze,Ke):null;gt(pt.C<ze),gt(fi<=xe);var br=!1;t:for(;;){for(;br||oi<fi;){var Fr=0;if(Ke>=Zi){var Bo=oi-Wt;gt((Zi=pt).Pb),Zi.wd=Zi.m,Zi.xd=Bo,0<Zi.s.ua&&wr(Zi.s.Wa,Zi.s.vb),Zi=Ke+Vf}if(Ze&Si||(ar=pl(Xn,Ze,Ke)),gt(ar!=null),ar.Qb&&(Pt[oi]=ar.qb,br=!0),!br)if(Oi(cn),ar.jc){Fr=cn,Bo=Pt;var lo=oi,ds=ar.pd[Un(Fr)&Us-1];gt(ar.jc),256>ds.g?(pi(Fr,Fr.u+ds.g),Bo[lo]=ds.value,Fr=0):(pi(Fr,Fr.u+ds.g-256),gt(256<=ds.value),Fr=ds.value),Fr==0&&(br=!0)}else Fr=Gl(ar.G[0],ar.H[0],cn);if(cn.h)break;if(br||256>Fr){if(!br)if(ar.nd)Pt[oi]=(ar.qb|Fr<<8)>>>0;else{if(Oi(cn),br=Gl(ar.G[1],ar.H[1],cn),Oi(cn),Bo=Gl(ar.G[2],ar.H[2],cn),lo=Gl(ar.G[3],ar.H[3],cn),cn.h)break;Pt[oi]=(lo<<24|br<<16|Fr<<8|Bo)>>>0}if(br=!1,++oi,++Ze>=ee&&(Ze=0,++Ke,je!=null&&Ke<=ze&&!(Ke%16)&&je(pt,Ke),di!=null))for(;Ii<oi;)Fr=Pt[Ii++],di.X[(506832829*Fr&4294967295)>>>di.Mb]=Fr}else if(280>Fr){if(Fr=wu(Fr-256,cn),Bo=Gl(ar.G[4],ar.H[4],cn),Oi(cn),Bo=Fl(ee,Bo=wu(Bo,cn)),cn.h)break;if(oi-Wt<Bo||xe-oi<Fr)break t;for(lo=0;lo<Fr;++lo)Pt[oi+lo]=Pt[oi+lo-Bo];for(oi+=Fr,Ze+=Fr;Ze>=ee;)Ze-=ee,++Ke,je!=null&&Ke<=ze&&!(Ke%16)&&je(pt,Ke);if(gt(oi<=xe),Ze&Si&&(ar=pl(Xn,Ze,Ke)),di!=null)for(;Ii<oi;)Fr=Pt[Ii++],di.X[(506832829*Fr&4294967295)>>>di.Mb]=Fr}else{if(!(Fr<Yi))break t;for(br=Fr-280,gt(di!=null);Ii<oi;)Fr=Pt[Ii++],di.X[(506832829*Fr&4294967295)>>>di.Mb]=Fr;Fr=oi,gt(!(br>>>(Bo=di).Xa)),Pt[Fr]=Bo.X[br],br=!0}br||gt(cn.h==Gn(cn))}if(pt.Pb&&cn.h&&oi<xe)gt(pt.m.h),pt.a=5,pt.m=pt.wd,pt.$=pt.xd,0<pt.s.ua&&wr(pt.s.vb,pt.s.Wa);else{if(cn.h)break t;je!=null&&je(pt,Ke>ze?ze:Ke),pt.a=0,pt.$=oi-Wt}return 1}return pt.a=3,0}function Vu(pt){gt(pt!=null),pt.vc=null,pt.yc=null,pt.Ya=null;var Pt=pt.Wa;Pt!=null&&(Pt.X=null),pt.vb=null,gt(pt!=null)}function fl(){var pt=new Od;return pt==null?null:(pt.a=0,pt.xb=wA,AA("Predictor","VP8LPredictors"),AA("Predictor","VP8LPredictors_C"),AA("PredictorAdd","VP8LPredictorsAdd"),AA("PredictorAdd","VP8LPredictorsAdd_C"),wc=$o,ct=Bs,At=ko,mt=Au,Dt=Ca,qt=gh,he=Ho,li.VP8LMapColor32b=wh,li.VP8LMapColor8b=it,pt)}function Yu(pt,Pt,Wt,ee,xe){var ze=1,je=[pt],Ke=[Pt],Ze=ee.m,cn=ee.s,Xn=null,oi=0;t:for(;;){if(Wt)for(;ze&&rr(Ze,1);){var Ii=je,fi=Ke,Yi=ee,Zi=1,di=Yi.m,Si=Yi.gc[Yi.ab],ar=rr(di,2);if(Yi.Oc&1<<ar)ze=0;else{switch(Yi.Oc|=1<<ar,Si.hc=ar,Si.Ea=Ii[0],Si.nc=fi[0],Si.K=[null],++Yi.ab,gt(4>=Yi.ab),ar){case 0:case 1:Si.b=rr(di,3)+2,Zi=Yu(Jo(Si.Ea,Si.b),Jo(Si.nc,Si.b),0,Yi,Si.K),Si.K=Si.K[0];break;case 3:var br,Fr=rr(di,8)+1,Bo=16<Fr?0:4<Fr?1:2<Fr?2:3;if(Ii[0]=Jo(Si.Ea,Bo),Si.b=Bo,br=Zi=Yu(Fr,1,0,Yi,Si.K)){var lo,ds=Fr,Ln=Si,ya=1<<(8>>Ln.b),Ua=kt(ya);if(Ua==null)br=0;else{var da=Ln.K[0],sa=Ln.w;for(Ua[0]=Ln.K[0][0],lo=1;lo<1*ds;++lo)Ua[lo]=Rr(da[sa+lo],Ua[lo-1]);for(;lo<4*ya;++lo)Ua[lo]=0;Ln.K[0]=null,Ln.K[0]=Ua,br=1}}Zi=br;break;case 2:break;default:gt(0)}ze=Zi}}if(je=je[0],Ke=Ke[0],ze&&rr(Ze,1)&&!(ze=1<=(oi=rr(Ze,4))&&11>=oi)){ee.a=3;break t}var Wa;if(Wa=ze)e:{var na,Ns,ql,YA=ee,ju=je,NA=Ke,Il=oi,Mu=Wt,IA=YA.m,nh=YA.s,Sh=[null],Jh=1,Bc=0,wd=md[Il];n:for(;;){if(Mu&&rr(IA,1)){var xh=rr(IA,3)+2,cu=Jo(ju,xh),Zf=Jo(NA,xh),Hd=cu*Zf;if(!Yu(cu,Zf,0,YA,Sh))break n;for(Sh=Sh[0],nh.xc=xh,na=0;na<Hd;++na){var rf=Sh[na]>>8&65535;Sh[na]=rf,rf>=Jh&&(Jh=rf+1)}}if(IA.h)break n;for(Ns=0;5>Ns;++Ns){var au=FA[Ns];!Ns&&0<Il&&(au+=1<<Il),Bc<au&&(Bc=au)}var Wg=Yt(Jh*wd,bn),xp=Jh,Bp=Yt(xp,hi);if(Bp==null)var Jf=null;else gt(65536>=xp),Jf=Bp;var $h=kt(Bc);if(Jf==null||$h==null||Wg==null){YA.a=1;break n}var Vg=Wg;for(na=ql=0;na<Jh;++na){var Wc=Jf[na],ih=Wc.G,SA=Wc.H,jh=0,Va=1,Yg=0;for(Ns=0;5>Ns;++Ns){au=FA[Ns],ih[Ns]=Vg,SA[Ns]=ql,!Ns&&0<Il&&(au+=1<<Il);r:{var $f,Xg=au,Sf=YA,xf=$h,io=Vg,Bf=ql,Cf=0,zd=Sf.m,Cp=rr(zd,1);if(Qt(xf,0,0,Xg),Cp){var Pp=rr(zd,1)+1,Pf=rr(zd,1),u0=rr(zd,Pf==0?1:8);xf[u0]=1,Pp==2&&(xf[u0=rr(zd,8)]=1);var Zg=1}else{var Cc=kt(19),bp=rr(zd,4)+4;if(19<bp){Sf.a=3;var Lg=0;break r}for($f=0;$f<bp;++$f)Cc[vf[$f]]=rr(zd,3);var Is=void 0,qh=void 0,h0=Sf,Jg=Cc,Fg=Xg,qf=xf,tA=0,Vc=h0.m,A0=8,c0=Yt(128,bn);i:for(;yn(c0,0,7,Jg,19);){if(rr(Vc,1)){var Lp=2+2*rr(Vc,3);if((Is=2+rr(Vc,Lp))>Fg)break i}else Is=Fg;for(qh=0;qh<Fg&&Is--;){Oi(Vc);var $g=c0[0+(127&Un(Vc))];pi(Vc,Vc.u+$g.g);var bf=$g.value;if(16>bf)qf[qh++]=bf,bf!=0&&(A0=bf);else{var tm=bf==16,Fp=bf-16,em=Bg[Fp],Ep=rr(Vc,qu[Fp])+em;if(qh+Ep>Fg)break i;for(var Mp=tm?A0:0;0<Ep--;)qf[qh++]=Mp}}tA=1;break i}tA||(h0.a=3),Zg=tA}(Zg=Zg&&!zd.h)&&(Cf=yn(io,Bf,8,xf,Xg)),Zg&&Cf!=0?Lg=Cf:(Sf.a=3,Lg=0)}if(Lg==0)break n;if(Va&&Wf[Ns]==1&&(Va=Vg[ql].g==0),jh+=Vg[ql].g,ql+=Lg,3>=Ns){var of,Np=$h[0];for(of=1;of<au;++of)$h[of]>Np&&(Np=$h[of]);Yg+=Np}}if(Wc.nd=Va,Wc.Qb=0,Va&&(Wc.qb=(ih[3][SA[3]+0].value<<24|ih[1][SA[1]+0].value<<16|ih[2][SA[2]+0].value)>>>0,jh==0&&256>ih[0][SA[0]+0].value&&(Wc.Qb=1,Wc.qb+=ih[0][SA[0]+0].value<<8)),Wc.jc=!Wc.Qb&&6>Yg,Wc.jc){var Ip,Sd=Wc;for(Ip=0;Ip<Us;++Ip){var sf=Ip,xd=Sd.pd[sf],Eg=Sd.G[0][Sd.H[0]+sf];256<=Eg.value?(xd.g=Eg.g+256,xd.value=Eg.value):(xd.g=0,xd.value=0,sf>>=ho(Eg,8,xd),sf>>=ho(Sd.G[1][Sd.H[1]+sf],16,xd),sf>>=ho(Sd.G[2][Sd.H[2]+sf],0,xd),ho(Sd.G[3][Sd.H[3]+sf],24,xd))}}}nh.vc=Sh,nh.Wb=Jh,nh.Ya=Jf,nh.yc=Wg,Wa=1;break e}Wa=0}if(!(ze=Wa)){ee.a=3;break t}if(0<oi){if(cn.ua=1<<oi,!Ss(cn.Wa,oi)){ee.a=1,ze=0;break t}}else cn.ua=0;var tg=ee,d0=je,Uu=Ke,Mg=tg.s,qg=Mg.xc;if(tg.c=d0,tg.i=Uu,Mg.md=Jo(d0,qg),Mg.wc=qg==0?-1:(1<<qg)-1,Wt){ee.xb=Cg;break t}if((Xn=kt(je*Ke))==null){ee.a=1,ze=0;break t}ze=(ze=Wu(ee,Xn,0,je,Ke,Ke,null))&&!Ze.h;break t}return ze?(xe!=null?xe[0]=Xn:(gt(Xn==null),gt(Wt)),ee.$=0,Wt||Vu(cn)):Vu(cn),ze}function sc(pt,Pt){var Wt=pt.c*pt.i,ee=Wt+Pt+16*Pt;return gt(pt.c<=Pt),pt.V=kt(ee),pt.V==null?(pt.Ta=null,pt.Ua=0,pt.a=1,0):(pt.Ta=pt.V,pt.Ua=pt.Ba+Wt+Pt,1)}function Xu(pt,Pt){var Wt=pt.C,ee=Pt-Wt,xe=pt.V,ze=pt.Ba+pt.c*Wt;for(gt(Pt<=pt.l.o);0<ee;){var je=16<ee?16:ee,Ke=pt.l.ma,Ze=pt.l.width,cn=Ze*je,Xn=Ke.ca,oi=Ke.tb+Ze*Wt,Ii=pt.Ta,fi=pt.Ua;Ku(pt,je,xe,ze),ua(Ii,fi,Xn,oi,cn),Su(Ke,Wt,Wt+je,Xn,oi,Ze),ee-=je,xe+=je*pt.c,Wt+=je}gt(Wt==Pt),pt.C=pt.Ma=Pt}function fA(){this.ub=this.yd=this.td=this.Rb=0}function Zu(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function UA(){this.Fb=this.Bb=this.Cb=0,this.Zb=kt(4),this.Lb=kt(4)}function sd(){this.Yb=function(){var pt=[];return function Pt(Wt,ee,xe){for(var ze=xe[ee],je=0;je<ze&&(Wt.push(xe.length>ee+1?[]:0),!(xe.length<ee+1));je++)Pt(Wt[je],ee+1,xe)}(pt,0,[3,11]),pt}()}function El(){this.jb=kt(3),this.Wc=Zt([4,8],sd),this.Xc=Zt([4,17],sd)}function ac(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new kt(4),this.od=new kt(4)}function Kh(){this.ld=this.La=this.dd=this.tc=0}function QA(){this.Na=this.la=0}function ad(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ld(){this.ad=kt(384),this.Za=0,this.Ob=kt(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function kc(){this.uc=this.M=this.Nb=0,this.wa=Array(new Kh),this.Y=0,this.ya=Array(new ld),this.aa=0,this.l=new Bu}function qd(){this.y=kt(16),this.f=kt(8),this.ea=kt(8)}function lc(){this.cb=this.a=0,this.sc="",this.m=new ao,this.Od=new fA,this.Kc=new Zu,this.ed=new ac,this.Qa=new UA,this.Ic=this.$c=this.Aa=0,this.D=new kc,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Yt(8,ao),this.ia=0,this.pb=Yt(4,ad),this.Pa=new El,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new qd),this.Hd=0,this.rb=Array(new QA),this.sb=0,this.wa=Array(new Kh),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ld),this.L=this.aa=0,this.gd=Zt([4,2],Kh),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Bu(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function tf(){var pt=new lc;return pt!=null&&(pt.a=0,pt.sc="OK",pt.cb=0,pt.Xb=0,Nl||(Nl=el)),pt}function Zl(pt,Pt,Wt){return pt.a==0&&(pt.a=Pt,pt.sc=Wt,pt.cb=0),0}function RA(pt,Pt,Wt){return 3<=Wt&&pt[Pt+0]==157&&pt[Pt+1]==1&&pt[Pt+2]==42}function uc(pt,Pt){if(pt==null)return 0;if(pt.a=0,pt.sc="OK",Pt==null)return Zl(pt,2,"null VP8Io passed to VP8GetHeaders()");var Wt=Pt.data,ee=Pt.w,xe=Pt.ha;if(4>xe)return Zl(pt,7,"Truncated header.");var ze=Wt[ee+0]|Wt[ee+1]<<8|Wt[ee+2]<<16,je=pt.Od;if(je.Rb=!(1&ze),je.td=ze>>1&7,je.yd=ze>>4&1,je.ub=ze>>5,3<je.td)return Zl(pt,3,"Incorrect keyframe parameters.");if(!je.yd)return Zl(pt,4,"Frame not displayable.");ee+=3,xe-=3;var Ke=pt.Kc;if(je.Rb){if(7>xe)return Zl(pt,7,"cannot parse picture header");if(!RA(Wt,ee,xe))return Zl(pt,3,"Bad code word");Ke.c=16383&(Wt[ee+4]<<8|Wt[ee+3]),Ke.Td=Wt[ee+4]>>6,Ke.i=16383&(Wt[ee+6]<<8|Wt[ee+5]),Ke.Ud=Wt[ee+6]>>6,ee+=7,xe-=7,pt.za=Ke.c+15>>4,pt.Ub=Ke.i+15>>4,Pt.width=Ke.c,Pt.height=Ke.i,Pt.Da=0,Pt.j=0,Pt.v=0,Pt.va=Pt.width,Pt.o=Pt.height,Pt.da=0,Pt.ib=Pt.width,Pt.hb=Pt.height,Pt.U=Pt.width,Pt.T=Pt.height,Qt((ze=pt.Pa).jb,0,255,ze.jb.length),gt((ze=pt.Qa)!=null),ze.Cb=0,ze.Bb=0,ze.Fb=1,Qt(ze.Zb,0,0,ze.Zb.length),Qt(ze.Lb,0,0,ze.Lb)}if(je.ub>xe)return Zl(pt,7,"bad partition length");cr(ze=pt.m,Wt,ee,je.ub),ee+=je.ub,xe-=je.ub,je.Rb&&(Ke.Ld=Wi(ze),Ke.Kd=Wi(ze)),Ke=pt.Qa;var Ze,cn=pt.Pa;if(gt(ze!=null),gt(Ke!=null),Ke.Cb=Wi(ze),Ke.Cb){if(Ke.Bb=Wi(ze),Wi(ze)){for(Ke.Fb=Wi(ze),Ze=0;4>Ze;++Ze)Ke.Zb[Ze]=Wi(ze)?Vi(ze,7):0;for(Ze=0;4>Ze;++Ze)Ke.Lb[Ze]=Wi(ze)?Vi(ze,6):0}if(Ke.Bb)for(Ze=0;3>Ze;++Ze)cn.jb[Ze]=Wi(ze)?sr(ze,8):255}else Ke.Bb=0;if(ze.Ka)return Zl(pt,3,"cannot parse segment header");if((Ke=pt.ed).zd=Wi(ze),Ke.Tb=sr(ze,6),Ke.wb=sr(ze,3),Ke.Pc=Wi(ze),Ke.Pc&&Wi(ze)){for(cn=0;4>cn;++cn)Wi(ze)&&(Ke.vd[cn]=Vi(ze,6));for(cn=0;4>cn;++cn)Wi(ze)&&(Ke.od[cn]=Vi(ze,6))}if(pt.L=Ke.Tb==0?0:Ke.zd?1:2,ze.Ka)return Zl(pt,3,"cannot parse filter header");var Xn=xe;if(xe=Ze=ee,ee=Ze+Xn,Ke=Xn,pt.Xb=(1<<sr(pt.m,2))-1,Xn<3*(cn=pt.Xb))Wt=7;else{for(Ze+=3*cn,Ke-=3*cn,Xn=0;Xn<cn;++Xn){var oi=Wt[xe+0]|Wt[xe+1]<<8|Wt[xe+2]<<16;oi>Ke&&(oi=Ke),cr(pt.Jc[+Xn],Wt,Ze,oi),Ze+=oi,Ke-=oi,xe+=3}cr(pt.Jc[+cn],Wt,Ze,Ke),Wt=Ze<ee?0:5}if(Wt!=0)return Zl(pt,Wt,"cannot parse partitions");for(Wt=sr(Ze=pt.m,7),xe=Wi(Ze)?Vi(Ze,4):0,ee=Wi(Ze)?Vi(Ze,4):0,Ke=Wi(Ze)?Vi(Ze,4):0,cn=Wi(Ze)?Vi(Ze,4):0,Ze=Wi(Ze)?Vi(Ze,4):0,Xn=pt.Qa,oi=0;4>oi;++oi){if(Xn.Cb){var Ii=Xn.Zb[oi];Xn.Fb||(Ii+=Wt)}else{if(0<oi){pt.pb[oi]=pt.pb[0];continue}Ii=Wt}var fi=pt.pb[oi];fi.Sc[0]=_c[Ou(Ii+xe,127)],fi.Sc[1]=VA[Ou(Ii+0,127)],fi.Eb[0]=2*_c[Ou(Ii+ee,127)],fi.Eb[1]=101581*VA[Ou(Ii+Ke,127)]>>16,8>fi.Eb[1]&&(fi.Eb[1]=8),fi.Qc[0]=_c[Ou(Ii+cn,117)],fi.Qc[1]=VA[Ou(Ii+Ze,127)],fi.lc=Ii+Ze}if(!je.Rb)return Zl(pt,4,"Not a key frame.");for(Wi(ze),je=pt.Pa,Wt=0;4>Wt;++Wt){for(xe=0;8>xe;++xe)for(ee=0;3>ee;++ee)for(Ke=0;11>Ke;++Ke)cn=or(ze,Qd[Wt][xe][ee][Ke])?sr(ze,8):yp[Wt][xe][ee][Ke],je.Wc[Wt][xe].Yb[ee][Ke]=cn;for(xe=0;17>xe;++xe)je.Xc[Wt][xe]=je.Wc[Wt][Xf[xe]]}return pt.kc=Wi(ze),pt.kc&&(pt.Bd=sr(ze,8)),pt.cb=1}function el(pt,Pt,Wt,ee,xe,ze,je){var Ke=Pt[xe].Yb[Wt];for(Wt=0;16>xe;++xe){if(!or(pt,Ke[Wt+0]))return xe;for(;!or(pt,Ke[Wt+1]);)if(Ke=Pt[++xe].Yb[0],Wt=0,xe==16)return 16;var Ze=Pt[xe+1].Yb;if(or(pt,Ke[Wt+2])){var cn=pt,Xn=0;if(or(cn,(Ii=Ke)[(oi=Wt)+3]))if(or(cn,Ii[oi+6])){for(Ke=0,oi=2*(Xn=or(cn,Ii[oi+8]))+(Ii=or(cn,Ii[oi+9+Xn])),Xn=0,Ii=Eu[oi];Ii[Ke];++Ke)Xn+=Xn+or(cn,Ii[Ke]);Xn+=3+(8<<oi)}else or(cn,Ii[oi+7])?(Xn=7+2*or(cn,165),Xn+=or(cn,145)):Xn=5+or(cn,159);else Xn=or(cn,Ii[oi+4])?3+or(cn,Ii[oi+5]):2;Ke=Ze[2]}else Xn=1,Ke=Ze[1];Ze=je+Yf[xe],0>(cn=pt).b&&$i(cn);var oi,Ii=cn.b,fi=(oi=cn.Ca>>1)-(cn.I>>Ii)>>31;--cn.b,cn.Ca+=fi,cn.Ca|=1,cn.I-=(oi+1&fi)<<Ii,ze[Ze]=((Xn^fi)-fi)*ee[(0<xe)+0]}return 16}function Wh(pt){var Pt=pt.rb[pt.sb-1];Pt.la=0,Pt.Na=0,Qt(pt.zc,0,0,pt.zc.length),pt.ja=0}function ud(pt,Pt){if(pt==null)return 0;if(Pt==null)return Zl(pt,2,"NULL VP8Io parameter in VP8Decode().");if(!pt.cb&&!uc(pt,Pt))return 0;if(gt(pt.cb),Pt.ac==null||Pt.ac(Pt)){Pt.ob&&(pt.L=0);var Wt=Fn[pt.L];if(pt.L==2?(pt.yb=0,pt.zb=0):(pt.yb=Pt.v-Wt>>4,pt.zb=Pt.j-Wt>>4,0>pt.yb&&(pt.yb=0),0>pt.zb&&(pt.zb=0)),pt.Va=Pt.o+15+Wt>>4,pt.Hb=Pt.va+15+Wt>>4,pt.Hb>pt.za&&(pt.Hb=pt.za),pt.Va>pt.Ub&&(pt.Va=pt.Ub),0<pt.L){var ee=pt.ed;for(Wt=0;4>Wt;++Wt){var xe;if(pt.Qa.Cb){var ze=pt.Qa.Lb[Wt];pt.Qa.Fb||(ze+=ee.Tb)}else ze=ee.Tb;for(xe=0;1>=xe;++xe){var je=pt.gd[Wt][xe],Ke=ze;if(ee.Pc&&(Ke+=ee.vd[0],xe&&(Ke+=ee.od[0])),0<(Ke=0>Ke?0:63<Ke?63:Ke)){var Ze=Ke;0<ee.wb&&(Ze=4<ee.wb?Ze>>2:Ze>>1)>9-ee.wb&&(Ze=9-ee.wb),1>Ze&&(Ze=1),je.dd=Ze,je.tc=2*Ke+Ze,je.ld=40<=Ke?2:15<=Ke?1:0}else je.tc=0;je.La=xe}}}Wt=0}else Zl(pt,6,"Frame setup failed"),Wt=pt.a;if(Wt=Wt==0){if(Wt){pt.$c=0,0<pt.Aa||(pt.Ic=Ai);t:{Wt=pt.Ic,ee=4*(Ze=pt.za);var cn=32*Ze,Xn=Ze+1,oi=0<pt.L?Ze*(0<pt.Aa?2:1):0,Ii=(pt.Aa==2?2:1)*Ze;if((je=ee+832+(xe=3*(16*Wt+Fn[pt.L])/2*cn)+(ze=pt.Fa!=null&&0<pt.Fa.length?pt.Kc.c*pt.Kc.i:0))!=je)Wt=0;else{if(je>pt.Vb){if(pt.Vb=0,pt.Ec=kt(je),pt.Fc=0,pt.Ec==null){Wt=Zl(pt,1,"no memory during frame initialization.");break t}pt.Vb=je}je=pt.Ec,Ke=pt.Fc,pt.Ac=je,pt.Bc=Ke,Ke+=ee,pt.Gd=Yt(cn,qd),pt.Hd=0,pt.rb=Yt(Xn+1,QA),pt.sb=1,pt.wa=oi?Yt(oi,Kh):null,pt.Y=0,pt.D.Nb=0,pt.D.wa=pt.wa,pt.D.Y=pt.Y,0<pt.Aa&&(pt.D.Y+=Ze),gt(!0),pt.oc=je,pt.pc=Ke,Ke+=832,pt.ya=Yt(Ii,ld),pt.aa=0,pt.D.ya=pt.ya,pt.D.aa=pt.aa,pt.Aa==2&&(pt.D.aa+=Ze),pt.R=16*Ze,pt.B=8*Ze,Ze=(cn=Fn[pt.L])*pt.R,cn=cn/2*pt.B,pt.sa=je,pt.ta=Ke+Ze,pt.qa=pt.sa,pt.ra=pt.ta+16*Wt*pt.R+cn,pt.Ha=pt.qa,pt.Ia=pt.ra+8*Wt*pt.B+cn,pt.$c=0,Ke+=xe,pt.mb=ze?je:null,pt.nb=ze?Ke:null,gt(Ke+ze<=pt.Fc+pt.Vb),Wh(pt),Qt(pt.Ac,pt.Bc,0,ee),Wt=1}}if(Wt){if(Pt.ka=0,Pt.y=pt.sa,Pt.O=pt.ta,Pt.f=pt.qa,Pt.N=pt.ra,Pt.ea=pt.Ha,Pt.Vd=pt.Ia,Pt.fa=pt.R,Pt.Rc=pt.B,Pt.F=null,Pt.J=0,!$a){for(Wt=-255;255>=Wt;++Wt)ka[255+Wt]=0>Wt?-Wt:Wt;for(Wt=-1020;1020>=Wt;++Wt)Bl[1020+Wt]=-128>Wt?-128:127<Wt?127:Wt;for(Wt=-112;112>=Wt;++Wt)$r[112+Wt]=-16>Wt?-16:15<Wt?15:Wt;for(Wt=-255;510>=Wt;++Wt)Qs[255+Wt]=0>Wt?0:255<Wt?255:Wt;$a=1}ue=mf,Me=pf,_e=hd,ri=Ld,ti=Tc,xn=Mh,qi=gc,lr=Ih,Cr=nf,Ur=vh,mo=gd,Xr=Qc,Eo=Td,is=pc,Zr=dc,xs=mA,Ga=bu,Ja=fc,th[0]=Nh,th[1]=Oc,th[2]=dd,th[3]=Nd,th[4]=Cu,th[5]=jc,th[6]=Id,th[7]=Pu,th[8]=fd,th[9]=Uc,vd[0]=Tu,vd[1]=Ed,vd[2]=HA,vd[3]=Ad,vd[4]=nl,vd[5]=Dc,vd[6]=Md,EA[0]=zA,EA[1]=Fd,EA[2]=ef,EA[3]=Sl,EA[4]=pA,EA[5]=Ml,EA[6]=GA,Wt=1}else Wt=0}Wt&&(Wt=function(fi,Yi){for(fi.M=0;fi.M<fi.Va;++fi.M){var Zi,di=fi.Jc[fi.M&fi.Xb],Si=fi.m,ar=fi;for(Zi=0;Zi<ar.za;++Zi){var br=Si,Fr=ar,Bo=Fr.Ac,lo=Fr.Bc+4*Zi,ds=Fr.zc,Ln=Fr.ya[Fr.aa+Zi];if(Fr.Qa.Bb?Ln.$b=or(br,Fr.Pa.jb[0])?2+or(br,Fr.Pa.jb[2]):or(br,Fr.Pa.jb[1]):Ln.$b=0,Fr.kc&&(Ln.Ad=or(br,Fr.Bd)),Ln.Za=!or(br,145)+0,Ln.Za){var ya=Ln.Ob,Ua=0;for(Fr=0;4>Fr;++Fr){var da,sa=ds[0+Fr];for(da=0;4>da;++da){sa=Ud[Bo[lo+da]][sa];for(var Wa=Gg[or(br,sa[0])];0<Wa;)Wa=Gg[2*Wa+or(br,sa[Wa])];sa=-Wa,Bo[lo+da]=sa}Ct(ya,Ua,Bo,lo,4),Ua+=4,ds[0+Fr]=sa}}else sa=or(br,156)?or(br,128)?1:3:or(br,163)?2:0,Ln.Ob[0]=sa,Qt(Bo,lo,sa,4),Qt(ds,0,sa,4);Ln.Dd=or(br,142)?or(br,114)?or(br,183)?1:3:2:0}if(ar.m.Ka)return Zl(fi,7,"Premature end-of-partition0 encountered.");for(;fi.ja<fi.za;++fi.ja){if(ar=di,br=(Si=fi).rb[Si.sb-1],Bo=Si.rb[Si.sb+Si.ja],Zi=Si.ya[Si.aa+Si.ja],lo=Si.kc?Zi.Ad:0)br.la=Bo.la=0,Zi.Za||(br.Na=Bo.Na=0),Zi.Hc=0,Zi.Gc=0,Zi.ia=0;else{var na,Ns;if(br=Bo,Bo=ar,lo=Si.Pa.Xc,ds=Si.ya[Si.aa+Si.ja],Ln=Si.pb[ds.$b],Fr=ds.ad,ya=0,Ua=Si.rb[Si.sb-1],sa=da=0,Qt(Fr,ya,0,384),ds.Za)var ql=0,YA=lo[3];else{Wa=kt(16);var ju=br.Na+Ua.Na;if(ju=Nl(Bo,lo[1],ju,Ln.Eb,0,Wa,0),br.Na=Ua.Na=(0<ju)+0,1<ju)ue(Wa,0,Fr,ya);else{var NA=Wa[0]+3>>3;for(Wa=0;256>Wa;Wa+=16)Fr[ya+Wa]=NA}ql=1,YA=lo[0]}var Il=15&br.la,Mu=15&Ua.la;for(Wa=0;4>Wa;++Wa){var IA=1&Mu;for(NA=Ns=0;4>NA;++NA)Il=Il>>1|(IA=(ju=Nl(Bo,YA,ju=IA+(1&Il),Ln.Sc,ql,Fr,ya))>ql)<<7,Ns=Ns<<2|(3<ju?3:1<ju?2:Fr[ya+0]!=0),ya+=16;Il>>=4,Mu=Mu>>1|IA<<7,da=(da<<8|Ns)>>>0}for(YA=Il,ql=Mu>>4,na=0;4>na;na+=2){for(Ns=0,Il=br.la>>4+na,Mu=Ua.la>>4+na,Wa=0;2>Wa;++Wa){for(IA=1&Mu,NA=0;2>NA;++NA)ju=IA+(1&Il),Il=Il>>1|(IA=0<(ju=Nl(Bo,lo[2],ju,Ln.Qc,0,Fr,ya)))<<3,Ns=Ns<<2|(3<ju?3:1<ju?2:Fr[ya+0]!=0),ya+=16;Il>>=2,Mu=Mu>>1|IA<<5}sa|=Ns<<4*na,YA|=Il<<4<<na,ql|=(240&Mu)<<na}br.la=YA,Ua.la=ql,ds.Hc=da,ds.Gc=sa,ds.ia=43690&sa?0:Ln.ia,lo=!(da|sa)}if(0<Si.L&&(Si.wa[Si.Y+Si.ja]=Si.gd[Zi.$b][Zi.Za],Si.wa[Si.Y+Si.ja].La|=!lo),ar.Ka)return Zl(fi,7,"Premature end-of-file encountered.")}if(Wh(fi),Si=Yi,ar=1,Zi=(di=fi).D,br=0<di.L&&di.M>=di.zb&&di.M<=di.Va,di.Aa==0)t:{if(Zi.M=di.M,Zi.uc=br,zc(di,Zi),ar=1,Zi=(Ns=di.D).Nb,br=(sa=Fn[di.L])*di.R,Bo=sa/2*di.B,Wa=16*Zi*di.R,NA=8*Zi*di.B,lo=di.sa,ds=di.ta-br+Wa,Ln=di.qa,Fr=di.ra-Bo+NA,ya=di.Ha,Ua=di.Ia-Bo+NA,Mu=(Il=Ns.M)==0,da=Il>=di.Va-1,di.Aa==2&&zc(di,Ns),Ns.uc)for(IA=(ju=di).D.M,gt(ju.D.uc),Ns=ju.yb;Ns<ju.Hb;++Ns){ql=Ns,YA=IA;var nh=(Sh=(au=ju).D).Nb;na=au.R;var Sh=Sh.wa[Sh.Y+ql],Jh=au.sa,Bc=au.ta+16*nh*na+16*ql,wd=Sh.dd,xh=Sh.tc;if(xh!=0)if(gt(3<=xh),au.L==1)0<ql&&xs(Jh,Bc,na,xh+4),Sh.La&&Ja(Jh,Bc,na,xh),0<YA&&Zr(Jh,Bc,na,xh+4),Sh.La&&Ga(Jh,Bc,na,xh);else{var cu=au.B,Zf=au.qa,Hd=au.ra+8*nh*cu+8*ql,rf=au.Ha,au=au.Ia+8*nh*cu+8*ql;nh=Sh.ld,0<ql&&(lr(Jh,Bc,na,xh+4,wd,nh),Ur(Zf,Hd,rf,au,cu,xh+4,wd,nh)),Sh.La&&(Xr(Jh,Bc,na,xh,wd,nh),is(Zf,Hd,rf,au,cu,xh,wd,nh)),0<YA&&(qi(Jh,Bc,na,xh+4,wd,nh),Cr(Zf,Hd,rf,au,cu,xh+4,wd,nh)),Sh.La&&(mo(Jh,Bc,na,xh,wd,nh),Eo(Zf,Hd,rf,au,cu,xh,wd,nh))}}if(di.ia&&alert("todo:DitherRow"),Si.put!=null){if(Ns=16*Il,Il=16*(Il+1),Mu?(Si.y=di.sa,Si.O=di.ta+Wa,Si.f=di.qa,Si.N=di.ra+NA,Si.ea=di.Ha,Si.W=di.Ia+NA):(Ns-=sa,Si.y=lo,Si.O=ds,Si.f=Ln,Si.N=Fr,Si.ea=ya,Si.W=Ua),da||(Il-=sa),Il>Si.o&&(Il=Si.o),Si.F=null,Si.J=null,di.Fa!=null&&0<di.Fa.length&&Ns<Il&&(Si.J=Dd(di,Si,Ns,Il-Ns),Si.F=di.mb,Si.F==null&&Si.F.length==0)){ar=Zl(di,3,"Could not decode alpha data.");break t}Ns<Si.j&&(sa=Si.j-Ns,Ns=Si.j,gt(!(1&sa)),Si.O+=di.R*sa,Si.N+=di.B*(sa>>1),Si.W+=di.B*(sa>>1),Si.F!=null&&(Si.J+=Si.width*sa)),Ns<Il&&(Si.O+=Si.v,Si.N+=Si.v>>1,Si.W+=Si.v>>1,Si.F!=null&&(Si.J+=Si.v),Si.ka=Ns-Si.j,Si.U=Si.va-Si.v,Si.T=Il-Ns,ar=Si.put(Si))}Zi+1!=di.Ic||da||(Ct(di.sa,di.ta-br,lo,ds+16*di.R,br),Ct(di.qa,di.ra-Bo,Ln,Fr+8*di.B,Bo),Ct(di.Ha,di.Ia-Bo,ya,Ua+8*di.B,Bo))}if(!ar)return Zl(fi,6,"Output aborted.")}return 1}(pt,Pt)),Pt.bc!=null&&Pt.bc(Pt),Wt&=1}return Wt?(pt.cb=0,Wt):0}function Eh(pt,Pt,Wt,ee,xe){xe=pt[Pt+Wt+32*ee]+(xe>>3),pt[Pt+Wt+32*ee]=-256&xe?0>xe?0:255:xe}function hc(pt,Pt,Wt,ee,xe,ze){Eh(pt,Pt,0,Wt,ee+xe),Eh(pt,Pt,1,Wt,ee+ze),Eh(pt,Pt,2,Wt,ee-ze),Eh(pt,Pt,3,Wt,ee-xe)}function on(pt){return(20091*pt>>16)+pt}function gA(pt,Pt,Wt,ee){var xe,ze=0,je=kt(16);for(xe=0;4>xe;++xe){var Ke=pt[Pt+0]+pt[Pt+8],Ze=pt[Pt+0]-pt[Pt+8],cn=(35468*pt[Pt+4]>>16)-on(pt[Pt+12]),Xn=on(pt[Pt+4])+(35468*pt[Pt+12]>>16);je[ze+0]=Ke+Xn,je[ze+1]=Ze+cn,je[ze+2]=Ze-cn,je[ze+3]=Ke-Xn,ze+=4,Pt++}for(xe=ze=0;4>xe;++xe)Ke=(pt=je[ze+0]+4)+je[ze+8],Ze=pt-je[ze+8],cn=(35468*je[ze+4]>>16)-on(je[ze+12]),Eh(Wt,ee,0,0,Ke+(Xn=on(je[ze+4])+(35468*je[ze+12]>>16))),Eh(Wt,ee,1,0,Ze+cn),Eh(Wt,ee,2,0,Ze-cn),Eh(Wt,ee,3,0,Ke-Xn),ze++,ee+=32}function Mh(pt,Pt,Wt,ee){var xe=pt[Pt+0]+4,ze=35468*pt[Pt+4]>>16,je=on(pt[Pt+4]),Ke=35468*pt[Pt+1]>>16;hc(Wt,ee,0,xe+je,pt=on(pt[Pt+1]),Ke),hc(Wt,ee,1,xe+ze,pt,Ke),hc(Wt,ee,2,xe-ze,pt,Ke),hc(Wt,ee,3,xe-je,pt,Ke)}function pf(pt,Pt,Wt,ee,xe){gA(pt,Pt,Wt,ee),xe&&gA(pt,Pt+16,Wt,ee+4)}function hd(pt,Pt,Wt,ee){Me(pt,Pt+0,Wt,ee,1),Me(pt,Pt+32,Wt,ee+128,1)}function Ld(pt,Pt,Wt,ee){var xe;for(pt=pt[Pt+0]+4,xe=0;4>xe;++xe)for(Pt=0;4>Pt;++Pt)Eh(Wt,ee,Pt,xe,pt)}function Tc(pt,Pt,Wt,ee){pt[Pt+0]&&ri(pt,Pt+0,Wt,ee),pt[Pt+16]&&ri(pt,Pt+16,Wt,ee+4),pt[Pt+32]&&ri(pt,Pt+32,Wt,ee+128),pt[Pt+48]&&ri(pt,Pt+48,Wt,ee+128+4)}function mf(pt,Pt,Wt,ee){var xe,ze=kt(16);for(xe=0;4>xe;++xe){var je=pt[Pt+0+xe]+pt[Pt+12+xe],Ke=pt[Pt+4+xe]+pt[Pt+8+xe],Ze=pt[Pt+4+xe]-pt[Pt+8+xe],cn=pt[Pt+0+xe]-pt[Pt+12+xe];ze[0+xe]=je+Ke,ze[8+xe]=je-Ke,ze[4+xe]=cn+Ze,ze[12+xe]=cn-Ze}for(xe=0;4>xe;++xe)je=(pt=ze[0+4*xe]+3)+ze[3+4*xe],Ke=ze[1+4*xe]+ze[2+4*xe],Ze=ze[1+4*xe]-ze[2+4*xe],cn=pt-ze[3+4*xe],Wt[ee+0]=je+Ke>>3,Wt[ee+16]=cn+Ze>>3,Wt[ee+32]=je-Ke>>3,Wt[ee+48]=cn-Ze>>3,ee+=64}function _l(pt,Pt,Wt){var ee,xe=Pt-32,ze=Es,je=255-pt[xe-1];for(ee=0;ee<Wt;++ee){var Ke,Ze=ze,cn=je+pt[Pt-1];for(Ke=0;Ke<Wt;++Ke)pt[Pt+Ke]=Ze[cn+pt[xe+Ke]];Pt+=32}}function Oc(pt,Pt){_l(pt,Pt,4)}function Fd(pt,Pt){_l(pt,Pt,8)}function Ed(pt,Pt){_l(pt,Pt,16)}function HA(pt,Pt){var Wt;for(Wt=0;16>Wt;++Wt)Ct(pt,Pt+32*Wt,pt,Pt-32,16)}function Ad(pt,Pt){var Wt;for(Wt=16;0<Wt;--Wt)Qt(pt,Pt,pt[Pt-1],16),Pt+=32}function cd(pt,Pt,Wt){var ee;for(ee=0;16>ee;++ee)Qt(Pt,Wt+32*ee,pt,16)}function Tu(pt,Pt){var Wt,ee=16;for(Wt=0;16>Wt;++Wt)ee+=pt[Pt-1+32*Wt]+pt[Pt+Wt-32];cd(ee>>5,pt,Pt)}function nl(pt,Pt){var Wt,ee=8;for(Wt=0;16>Wt;++Wt)ee+=pt[Pt-1+32*Wt];cd(ee>>4,pt,Pt)}function Dc(pt,Pt){var Wt,ee=8;for(Wt=0;16>Wt;++Wt)ee+=pt[Pt+Wt-32];cd(ee>>4,pt,Pt)}function Md(pt,Pt){cd(128,pt,Pt)}function bs(pt,Pt,Wt){return pt+2*Pt+Wt+2>>2}function dd(pt,Pt){var Wt,ee=Pt-32;for(ee=new Uint8Array([bs(pt[ee-1],pt[ee+0],pt[ee+1]),bs(pt[ee+0],pt[ee+1],pt[ee+2]),bs(pt[ee+1],pt[ee+2],pt[ee+3]),bs(pt[ee+2],pt[ee+3],pt[ee+4])]),Wt=0;4>Wt;++Wt)Ct(pt,Pt+32*Wt,ee,0,ee.length)}function Nd(pt,Pt){var Wt=pt[Pt-1],ee=pt[Pt-1+32],xe=pt[Pt-1+64],ze=pt[Pt-1+96];Mr(pt,Pt+0,16843009*bs(pt[Pt-1-32],Wt,ee)),Mr(pt,Pt+32,16843009*bs(Wt,ee,xe)),Mr(pt,Pt+64,16843009*bs(ee,xe,ze)),Mr(pt,Pt+96,16843009*bs(xe,ze,ze))}function Nh(pt,Pt){var Wt,ee=4;for(Wt=0;4>Wt;++Wt)ee+=pt[Pt+Wt-32]+pt[Pt-1+32*Wt];for(ee>>=3,Wt=0;4>Wt;++Wt)Qt(pt,Pt+32*Wt,ee,4)}function Cu(pt,Pt){var Wt=pt[Pt-1+0],ee=pt[Pt-1+32],xe=pt[Pt-1+64],ze=pt[Pt-1-32],je=pt[Pt+0-32],Ke=pt[Pt+1-32],Ze=pt[Pt+2-32],cn=pt[Pt+3-32];pt[Pt+0+96]=bs(ee,xe,pt[Pt-1+96]),pt[Pt+1+96]=pt[Pt+0+64]=bs(Wt,ee,xe),pt[Pt+2+96]=pt[Pt+1+64]=pt[Pt+0+32]=bs(ze,Wt,ee),pt[Pt+3+96]=pt[Pt+2+64]=pt[Pt+1+32]=pt[Pt+0+0]=bs(je,ze,Wt),pt[Pt+3+64]=pt[Pt+2+32]=pt[Pt+1+0]=bs(Ke,je,ze),pt[Pt+3+32]=pt[Pt+2+0]=bs(Ze,Ke,je),pt[Pt+3+0]=bs(cn,Ze,Ke)}function Id(pt,Pt){var Wt=pt[Pt+1-32],ee=pt[Pt+2-32],xe=pt[Pt+3-32],ze=pt[Pt+4-32],je=pt[Pt+5-32],Ke=pt[Pt+6-32],Ze=pt[Pt+7-32];pt[Pt+0+0]=bs(pt[Pt+0-32],Wt,ee),pt[Pt+1+0]=pt[Pt+0+32]=bs(Wt,ee,xe),pt[Pt+2+0]=pt[Pt+1+32]=pt[Pt+0+64]=bs(ee,xe,ze),pt[Pt+3+0]=pt[Pt+2+32]=pt[Pt+1+64]=pt[Pt+0+96]=bs(xe,ze,je),pt[Pt+3+32]=pt[Pt+2+64]=pt[Pt+1+96]=bs(ze,je,Ke),pt[Pt+3+64]=pt[Pt+2+96]=bs(je,Ke,Ze),pt[Pt+3+96]=bs(Ke,Ze,Ze)}function jc(pt,Pt){var Wt=pt[Pt-1+0],ee=pt[Pt-1+32],xe=pt[Pt-1+64],ze=pt[Pt-1-32],je=pt[Pt+0-32],Ke=pt[Pt+1-32],Ze=pt[Pt+2-32],cn=pt[Pt+3-32];pt[Pt+0+0]=pt[Pt+1+64]=ze+je+1>>1,pt[Pt+1+0]=pt[Pt+2+64]=je+Ke+1>>1,pt[Pt+2+0]=pt[Pt+3+64]=Ke+Ze+1>>1,pt[Pt+3+0]=Ze+cn+1>>1,pt[Pt+0+96]=bs(xe,ee,Wt),pt[Pt+0+64]=bs(ee,Wt,ze),pt[Pt+0+32]=pt[Pt+1+96]=bs(Wt,ze,je),pt[Pt+1+32]=pt[Pt+2+96]=bs(ze,je,Ke),pt[Pt+2+32]=pt[Pt+3+96]=bs(je,Ke,Ze),pt[Pt+3+32]=bs(Ke,Ze,cn)}function Pu(pt,Pt){var Wt=pt[Pt+0-32],ee=pt[Pt+1-32],xe=pt[Pt+2-32],ze=pt[Pt+3-32],je=pt[Pt+4-32],Ke=pt[Pt+5-32],Ze=pt[Pt+6-32],cn=pt[Pt+7-32];pt[Pt+0+0]=Wt+ee+1>>1,pt[Pt+1+0]=pt[Pt+0+64]=ee+xe+1>>1,pt[Pt+2+0]=pt[Pt+1+64]=xe+ze+1>>1,pt[Pt+3+0]=pt[Pt+2+64]=ze+je+1>>1,pt[Pt+0+32]=bs(Wt,ee,xe),pt[Pt+1+32]=pt[Pt+0+96]=bs(ee,xe,ze),pt[Pt+2+32]=pt[Pt+1+96]=bs(xe,ze,je),pt[Pt+3+32]=pt[Pt+2+96]=bs(ze,je,Ke),pt[Pt+3+64]=bs(je,Ke,Ze),pt[Pt+3+96]=bs(Ke,Ze,cn)}function Uc(pt,Pt){var Wt=pt[Pt-1+0],ee=pt[Pt-1+32],xe=pt[Pt-1+64],ze=pt[Pt-1+96];pt[Pt+0+0]=Wt+ee+1>>1,pt[Pt+2+0]=pt[Pt+0+32]=ee+xe+1>>1,pt[Pt+2+32]=pt[Pt+0+64]=xe+ze+1>>1,pt[Pt+1+0]=bs(Wt,ee,xe),pt[Pt+3+0]=pt[Pt+1+32]=bs(ee,xe,ze),pt[Pt+3+32]=pt[Pt+1+64]=bs(xe,ze,ze),pt[Pt+3+64]=pt[Pt+2+64]=pt[Pt+0+96]=pt[Pt+1+96]=pt[Pt+2+96]=pt[Pt+3+96]=ze}function fd(pt,Pt){var Wt=pt[Pt-1+0],ee=pt[Pt-1+32],xe=pt[Pt-1+64],ze=pt[Pt-1+96],je=pt[Pt-1-32],Ke=pt[Pt+0-32],Ze=pt[Pt+1-32],cn=pt[Pt+2-32];pt[Pt+0+0]=pt[Pt+2+32]=Wt+je+1>>1,pt[Pt+0+32]=pt[Pt+2+64]=ee+Wt+1>>1,pt[Pt+0+64]=pt[Pt+2+96]=xe+ee+1>>1,pt[Pt+0+96]=ze+xe+1>>1,pt[Pt+3+0]=bs(Ke,Ze,cn),pt[Pt+2+0]=bs(je,Ke,Ze),pt[Pt+1+0]=pt[Pt+3+32]=bs(Wt,je,Ke),pt[Pt+1+32]=pt[Pt+3+64]=bs(ee,Wt,je),pt[Pt+1+64]=pt[Pt+3+96]=bs(xe,ee,Wt),pt[Pt+1+96]=bs(ze,xe,ee)}function ef(pt,Pt){var Wt;for(Wt=0;8>Wt;++Wt)Ct(pt,Pt+32*Wt,pt,Pt-32,8)}function Sl(pt,Pt){var Wt;for(Wt=0;8>Wt;++Wt)Qt(pt,Pt,pt[Pt-1],8),Pt+=32}function Tl(pt,Pt,Wt){var ee;for(ee=0;8>ee;++ee)Qt(Pt,Wt+32*ee,pt,8)}function zA(pt,Pt){var Wt,ee=8;for(Wt=0;8>Wt;++Wt)ee+=pt[Pt+Wt-32]+pt[Pt-1+32*Wt];Tl(ee>>4,pt,Pt)}function Ml(pt,Pt){var Wt,ee=4;for(Wt=0;8>Wt;++Wt)ee+=pt[Pt+Wt-32];Tl(ee>>3,pt,Pt)}function pA(pt,Pt){var Wt,ee=4;for(Wt=0;8>Wt;++Wt)ee+=pt[Pt-1+32*Wt];Tl(ee>>3,pt,Pt)}function GA(pt,Pt){Tl(128,pt,Pt)}function Vh(pt,Pt,Wt){var ee=pt[Pt-Wt],xe=pt[Pt+0],ze=3*(xe-ee)+_a[1020+pt[Pt-2*Wt]-pt[Pt+Wt]],je=nu[112+(ze+4>>3)];pt[Pt-Wt]=Es[255+ee+nu[112+(ze+3>>3)]],pt[Pt+0]=Es[255+xe-je]}function Ac(pt,Pt,Wt,ee){var xe=pt[Pt+0],ze=pt[Pt+Wt];return As[255+pt[Pt-2*Wt]-pt[Pt-Wt]]>ee||As[255+ze-xe]>ee}function cc(pt,Pt,Wt,ee){return 4*As[255+pt[Pt-Wt]-pt[Pt+0]]+As[255+pt[Pt-2*Wt]-pt[Pt+Wt]]<=ee}function kd(pt,Pt,Wt,ee,xe){var ze=pt[Pt-3*Wt],je=pt[Pt-2*Wt],Ke=pt[Pt-Wt],Ze=pt[Pt+0],cn=pt[Pt+Wt],Xn=pt[Pt+2*Wt],oi=pt[Pt+3*Wt];return 4*As[255+Ke-Ze]+As[255+je-cn]>ee?0:As[255+pt[Pt-4*Wt]-ze]<=xe&&As[255+ze-je]<=xe&&As[255+je-Ke]<=xe&&As[255+oi-Xn]<=xe&&As[255+Xn-cn]<=xe&&As[255+cn-Ze]<=xe}function dc(pt,Pt,Wt,ee){var xe=2*ee+1;for(ee=0;16>ee;++ee)cc(pt,Pt+ee,Wt,xe)&&Vh(pt,Pt+ee,Wt)}function mA(pt,Pt,Wt,ee){var xe=2*ee+1;for(ee=0;16>ee;++ee)cc(pt,Pt+ee*Wt,1,xe)&&Vh(pt,Pt+ee*Wt,1)}function bu(pt,Pt,Wt,ee){var xe;for(xe=3;0<xe;--xe)dc(pt,Pt+=4*Wt,Wt,ee)}function fc(pt,Pt,Wt,ee){var xe;for(xe=3;0<xe;--xe)mA(pt,Pt+=4,Wt,ee)}function vA(pt,Pt,Wt,ee,xe,ze,je,Ke){for(ze=2*ze+1;0<xe--;){if(kd(pt,Pt,Wt,ze,je))if(Ac(pt,Pt,Wt,Ke))Vh(pt,Pt,Wt);else{var Ze=pt,cn=Pt,Xn=Wt,oi=Ze[cn-2*Xn],Ii=Ze[cn-Xn],fi=Ze[cn+0],Yi=Ze[cn+Xn],Zi=Ze[cn+2*Xn],di=27*(ar=_a[1020+3*(fi-Ii)+_a[1020+oi-Yi]])+63>>7,Si=18*ar+63>>7,ar=9*ar+63>>7;Ze[cn-3*Xn]=Es[255+Ze[cn-3*Xn]+ar],Ze[cn-2*Xn]=Es[255+oi+Si],Ze[cn-Xn]=Es[255+Ii+di],Ze[cn+0]=Es[255+fi-di],Ze[cn+Xn]=Es[255+Yi-Si],Ze[cn+2*Xn]=Es[255+Zi-ar]}Pt+=ee}}function mh(pt,Pt,Wt,ee,xe,ze,je,Ke){for(ze=2*ze+1;0<xe--;){if(kd(pt,Pt,Wt,ze,je))if(Ac(pt,Pt,Wt,Ke))Vh(pt,Pt,Wt);else{var Ze=pt,cn=Pt,Xn=Wt,oi=Ze[cn-Xn],Ii=Ze[cn+0],fi=Ze[cn+Xn],Yi=nu[112+((Zi=3*(Ii-oi))+4>>3)],Zi=nu[112+(Zi+3>>3)],di=Yi+1>>1;Ze[cn-2*Xn]=Es[255+Ze[cn-2*Xn]+di],Ze[cn-Xn]=Es[255+oi+Zi],Ze[cn+0]=Es[255+Ii-Yi],Ze[cn+Xn]=Es[255+fi-di]}Pt+=ee}}function gc(pt,Pt,Wt,ee,xe,ze){vA(pt,Pt,Wt,1,16,ee,xe,ze)}function Ih(pt,Pt,Wt,ee,xe,ze){vA(pt,Pt,1,Wt,16,ee,xe,ze)}function gd(pt,Pt,Wt,ee,xe,ze){var je;for(je=3;0<je;--je)mh(pt,Pt+=4*Wt,Wt,1,16,ee,xe,ze)}function Qc(pt,Pt,Wt,ee,xe,ze){var je;for(je=3;0<je;--je)mh(pt,Pt+=4,1,Wt,16,ee,xe,ze)}function nf(pt,Pt,Wt,ee,xe,ze,je,Ke){vA(pt,Pt,xe,1,8,ze,je,Ke),vA(Wt,ee,xe,1,8,ze,je,Ke)}function vh(pt,Pt,Wt,ee,xe,ze,je,Ke){vA(pt,Pt,1,xe,8,ze,je,Ke),vA(Wt,ee,1,xe,8,ze,je,Ke)}function Td(pt,Pt,Wt,ee,xe,ze,je,Ke){mh(pt,Pt+4*xe,xe,1,8,ze,je,Ke),mh(Wt,ee+4*xe,xe,1,8,ze,je,Ke)}function pc(pt,Pt,Wt,ee,xe,ze,je,Ke){mh(pt,Pt+4,1,xe,8,ze,je,Ke),mh(Wt,ee+4,1,xe,8,ze,je,Ke)}function kh(){this.ba=new ph,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new wl,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function bA(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Rc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ju(){this.ua=0,this.Wa=new _n,this.vb=new _n,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new hi,this.yc=new bn}function Od(){this.xb=this.a=0,this.l=new Bu,this.ca=new ph,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new tn,this.Pb=0,this.wd=new tn,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ju,this.ab=0,this.gc=Yt(4,Rc),this.Oc=0}function _A(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Bu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function mc(pt,Pt,Wt,ee,xe,ze,je){for(pt=pt==null?0:pt[Pt+0],Pt=0;Pt<je;++Pt)xe[ze+Pt]=pt+Wt[ee+Pt]&255,pt=xe[ze+Pt]}function pd(pt,Pt,Wt,ee,xe,ze,je){var Ke;if(pt==null)mc(null,null,Wt,ee,xe,ze,je);else for(Ke=0;Ke<je;++Ke)xe[ze+Ke]=pt[Pt+Ke]+Wt[ee+Ke]&255}function Yh(pt,Pt,Wt,ee,xe,ze,je){if(pt==null)mc(null,null,Wt,ee,xe,ze,je);else{var Ke,Ze=pt[Pt+0],cn=Ze,Xn=Ze;for(Ke=0;Ke<je;++Ke)cn=Xn+(Ze=pt[Pt+Ke])-cn,Xn=Wt[ee+Ke]+(-256&cn?0>cn?0:255:cn)&255,cn=Ze,xe[ze+Ke]=Xn}}function Dd(pt,Pt,Wt,ee){var xe=Pt.width,ze=Pt.o;if(gt(pt!=null&&Pt!=null),0>Wt||0>=ee||Wt+ee>ze)return null;if(!pt.Cc){if(pt.ga==null){var je;if(pt.ga=new _A,(je=pt.ga==null)||(je=Pt.width*Pt.o,gt(pt.Gb.length==0),pt.Gb=kt(je),pt.Uc=0,pt.Gb==null?je=0:(pt.mb=pt.Gb,pt.nb=pt.Uc,pt.rc=null,je=1),je=!je),!je){je=pt.ga;var Ke=pt.Fa,Ze=pt.P,cn=pt.qc,Xn=pt.mb,oi=pt.nb,Ii=Ze+1,fi=cn-1,Yi=je.l;if(gt(Ke!=null&&Xn!=null&&Pt!=null),eh[0]=null,eh[1]=mc,eh[2]=pd,eh[3]=Yh,je.ca=Xn,je.tb=oi,je.c=Pt.width,je.i=Pt.height,gt(0<je.c&&0<je.i),1>=cn)Pt=0;else if(je.$a=Ke[Ze+0]>>0&3,je.Z=Ke[Ze+0]>>2&3,je.Lc=Ke[Ze+0]>>4&3,Ze=Ke[Ze+0]>>6&3,0>je.$a||1<je.$a||4<=je.Z||1<je.Lc||Ze)Pt=0;else if(Yi.put=dA,Yi.ac=ou,Yi.bc=Fh,Yi.ma=je,Yi.width=Pt.width,Yi.height=Pt.height,Yi.Da=Pt.Da,Yi.v=Pt.v,Yi.va=Pt.va,Yi.j=Pt.j,Yi.o=Pt.o,je.$a)t:{gt(je.$a==1),Pt=fl();e:for(;;){if(Pt==null){Pt=0;break t}if(gt(je!=null),je.mc=Pt,Pt.c=je.c,Pt.i=je.i,Pt.l=je.l,Pt.l.ma=je,Pt.l.width=je.c,Pt.l.height=je.i,Pt.a=0,zi(Pt.m,Ke,Ii,fi),!Yu(je.c,je.i,1,Pt,null)||(Pt.ab==1&&Pt.gc[0].hc==3&&pu(Pt.s)?(je.ic=1,Ke=Pt.c*Pt.i,Pt.Ta=null,Pt.Ua=0,Pt.V=kt(Ke),Pt.Ba=0,Pt.V==null?(Pt.a=1,Pt=0):Pt=1):(je.ic=0,Pt=sc(Pt,je.c)),!Pt))break e;Pt=1;break t}je.mc=null,Pt=0}else Pt=fi>=je.c*je.i;je=!Pt}if(je)return null;pt.ga.Lc!=1?pt.Ga=0:ee=ze-Wt}gt(pt.ga!=null),gt(Wt+ee<=ze);t:{if(Pt=(Ke=pt.ga).c,ze=Ke.l.o,Ke.$a==0){if(Ii=pt.rc,fi=pt.Vc,Yi=pt.Fa,Ze=pt.P+1+Wt*Pt,cn=pt.mb,Xn=pt.nb+Wt*Pt,gt(Ze<=pt.P+pt.qc),Ke.Z!=0)for(gt(eh[Ke.Z]!=null),je=0;je<ee;++je)eh[Ke.Z](Ii,fi,Yi,Ze,cn,Xn,Pt),Ii=cn,fi=Xn,Xn+=Pt,Ze+=Pt;else for(je=0;je<ee;++je)Ct(cn,Xn,Yi,Ze,Pt),Ii=cn,fi=Xn,Xn+=Pt,Ze+=Pt;pt.rc=Ii,pt.Vc=fi}else{if(gt(Ke.mc!=null),Pt=Wt+ee,gt((je=Ke.mc)!=null),gt(Pt<=je.i),je.C>=Pt)Pt=1;else if(Ke.ic||ji(),Ke.ic){Ke=je.V,Ii=je.Ba,fi=je.c;var Zi=je.i,di=(Yi=1,Ze=je.$/fi,cn=je.$%fi,Xn=je.m,oi=je.s,je.$),Si=fi*Zi,ar=fi*Pt,br=oi.wc,Fr=di<ar?pl(oi,cn,Ze):null;gt(di<=Si),gt(Pt<=Zi),gt(pu(oi));e:for(;;){for(;!Xn.h&&di<ar;){if(cn&br||(Fr=pl(oi,cn,Ze)),gt(Fr!=null),Oi(Xn),256>(Zi=Gl(Fr.G[0],Fr.H[0],Xn)))Ke[Ii+di]=Zi,++di,++cn>=fi&&(cn=0,++Ze<=Pt&&!(Ze%16)&&xu(je,Ze));else{if(!(280>Zi)){Yi=0;break e}Zi=wu(Zi-256,Xn);var Bo,lo=Gl(Fr.G[4],Fr.H[4],Xn);if(Oi(Xn),!(di>=(lo=Fl(fi,lo=wu(lo,Xn)))&&Si-di>=Zi)){Yi=0;break e}for(Bo=0;Bo<Zi;++Bo)Ke[Ii+di+Bo]=Ke[Ii+di+Bo-lo];for(di+=Zi,cn+=Zi;cn>=fi;)cn-=fi,++Ze<=Pt&&!(Ze%16)&&xu(je,Ze);di<ar&&cn&br&&(Fr=pl(oi,cn,Ze))}gt(Xn.h==Gn(Xn))}xu(je,Ze>Pt?Pt:Ze);break e}!Yi||Xn.h&&di<Si?(Yi=0,je.a=Xn.h?5:3):je.$=di,Pt=Yi}else Pt=Wu(je,je.V,je.Ba,je.c,je.i,Pt,Xu);if(!Pt){ee=0;break t}}Wt+ee>=ze&&(pt.Cc=1),ee=1}if(!ee)return null;if(pt.Cc&&((ee=pt.ga)!=null&&(ee.mc=null),pt.ga=null,0<pt.Ga))return alert("todo:WebPDequantizeLevels"),null}return pt.nb+Wt*xe}function _t(pt,Pt,Wt,ee,xe,ze){for(;0<xe--;){var je,Ke=pt,Ze=Pt+(Wt?1:0),cn=pt,Xn=Pt+(Wt?0:3);for(je=0;je<ee;++je){var oi=cn[Xn+4*je];oi!=255&&(oi*=32897,Ke[Ze+4*je+0]=Ke[Ze+4*je+0]*oi>>23,Ke[Ze+4*je+1]=Ke[Ze+4*je+1]*oi>>23,Ke[Ze+4*je+2]=Ke[Ze+4*je+2]*oi>>23)}Pt+=ze}}function Ge(pt,Pt,Wt,ee,xe){for(;0<ee--;){var ze;for(ze=0;ze<Wt;++ze){var je=pt[Pt+2*ze+0],Ke=15&(cn=pt[Pt+2*ze+1]),Ze=4369*Ke,cn=(240&cn|cn>>4)*Ze>>16;pt[Pt+2*ze+0]=(240&je|je>>4)*Ze>>16&240|(15&je|je<<4)*Ze>>16>>4&15,pt[Pt+2*ze+1]=240&cn|Ke}Pt+=xe}}function Rn(pt,Pt,Wt,ee,xe,ze,je,Ke){var Ze,cn,Xn=255;for(cn=0;cn<xe;++cn){for(Ze=0;Ze<ee;++Ze){var oi=pt[Pt+Ze];ze[je+4*Ze]=oi,Xn&=oi}Pt+=Wt,je+=Ke}return Xn!=255}function gi(pt,Pt,Wt,ee,xe){var ze;for(ze=0;ze<xe;++ze)Wt[ee+ze]=pt[Pt+ze]>>8}function ji(){va=_t,Aa=Ge,$s=Rn,ua=gi}function fr(pt,Pt,Wt){li[pt]=function(ee,xe,ze,je,Ke,Ze,cn,Xn,oi,Ii,fi,Yi,Zi,di,Si,ar,br){var Fr,Bo=br-1>>1,lo=Ke[Ze+0]|cn[Xn+0]<<16,ds=oi[Ii+0]|fi[Yi+0]<<16;gt(ee!=null);var Ln=3*lo+ds+131074>>2;for(Pt(ee[xe+0],255&Ln,Ln>>16,Zi,di),ze!=null&&(Ln=3*ds+lo+131074>>2,Pt(ze[je+0],255&Ln,Ln>>16,Si,ar)),Fr=1;Fr<=Bo;++Fr){var ya=Ke[Ze+Fr]|cn[Xn+Fr]<<16,Ua=oi[Ii+Fr]|fi[Yi+Fr]<<16,da=lo+ya+ds+Ua+524296,sa=da+2*(ya+ds)>>3;Ln=sa+lo>>1,lo=(da=da+2*(lo+Ua)>>3)+ya>>1,Pt(ee[xe+2*Fr-1],255&Ln,Ln>>16,Zi,di+(2*Fr-1)*Wt),Pt(ee[xe+2*Fr-0],255&lo,lo>>16,Zi,di+(2*Fr-0)*Wt),ze!=null&&(Ln=da+ds>>1,lo=sa+Ua>>1,Pt(ze[je+2*Fr-1],255&Ln,Ln>>16,Si,ar+(2*Fr-1)*Wt),Pt(ze[je+2*Fr+0],255&lo,lo>>16,Si,ar+(2*Fr+0)*Wt)),lo=ya,ds=Ua}1&br||(Ln=3*lo+ds+131074>>2,Pt(ee[xe+br-1],255&Ln,Ln>>16,Zi,di+(br-1)*Wt),ze!=null&&(Ln=3*ds+lo+131074>>2,Pt(ze[je+br-1],255&Ln,Ln>>16,Si,ar+(br-1)*Wt)))}}function Or(){Oh[mu]=Dh,Oh[vl]=wp,Oh[xc]=Rd,Oh[Du]=yf,Oh[su]=as,Oh[Fu]=_g,Oh[Ka]=Sp,Oh[$l]=wp,Oh[yA]=yf,Oh[WA]=as,Oh[xg]=_g}function _o(pt){return pt&~Kg?0>pt?0:255:pt>>Pg}function gs(pt,Pt){return _o((19077*pt>>8)+(26149*Pt>>8)-14234)}function ea(pt,Pt,Wt){return _o((19077*pt>>8)-(6419*Pt>>8)-(13320*Wt>>8)+8708)}function Ks(pt,Pt){return _o((19077*pt>>8)+(33050*Pt>>8)-17685)}function La(pt,Pt,Wt,ee,xe){ee[xe+0]=gs(pt,Wt),ee[xe+1]=ea(pt,Pt,Wt),ee[xe+2]=Ks(pt,Pt)}function ss(pt,Pt,Wt,ee,xe){ee[xe+0]=Ks(pt,Pt),ee[xe+1]=ea(pt,Pt,Wt),ee[xe+2]=gs(pt,Wt)}function ml(pt,Pt,Wt,ee,xe){var ze=ea(pt,Pt,Wt);Pt=ze<<3&224|Ks(pt,Pt)>>3,ee[xe+0]=248&gs(pt,Wt)|ze>>5,ee[xe+1]=Pt}function xl(pt,Pt,Wt,ee,xe){var ze=240&Ks(pt,Pt)|15;ee[xe+0]=240&gs(pt,Wt)|ea(pt,Pt,Wt)>>4,ee[xe+1]=ze}function ma(pt,Pt,Wt,ee,xe){ee[xe+0]=255,La(pt,Pt,Wt,ee,xe+1)}function ja(pt,Pt,Wt,ee,xe){ss(pt,Pt,Wt,ee,xe),ee[xe+3]=255}function Lu(pt,Pt,Wt,ee,xe){La(pt,Pt,Wt,ee,xe),ee[xe+3]=255}function Ou(pt,Pt){return 0>pt?0:pt>Pt?Pt:pt}function yh(pt,Pt,Wt){li[pt]=function(ee,xe,ze,je,Ke,Ze,cn,Xn,oi){for(var Ii=Xn+(-2&oi)*Wt;Xn!=Ii;)Pt(ee[xe+0],ze[je+0],Ke[Ze+0],cn,Xn),Pt(ee[xe+1],ze[je+0],Ke[Ze+0],cn,Xn+Wt),xe+=2,++je,++Ze,Xn+=2*Wt;1&oi&&Pt(ee[xe+0],ze[je+0],Ke[Ze+0],cn,Xn)}}function vc(pt,Pt,Wt){return Wt==0?pt==0?Pt==0?6:5:Pt==0?4:0:Wt}function Hc(pt,Pt,Wt,ee,xe){switch(pt>>>30){case 3:Me(Pt,Wt,ee,xe,0);break;case 2:xn(Pt,Wt,ee,xe);break;case 1:ri(Pt,Wt,ee,xe)}}function zc(pt,Pt){var Wt,ee,xe=Pt.M,ze=Pt.Nb,je=pt.oc,Ke=pt.pc+40,Ze=pt.oc,cn=pt.pc+584,Xn=pt.oc,oi=pt.pc+600;for(Wt=0;16>Wt;++Wt)je[Ke+32*Wt-1]=129;for(Wt=0;8>Wt;++Wt)Ze[cn+32*Wt-1]=129,Xn[oi+32*Wt-1]=129;for(0<xe?je[Ke-1-32]=Ze[cn-1-32]=Xn[oi-1-32]=129:(Qt(je,Ke-32-1,127,21),Qt(Ze,cn-32-1,127,9),Qt(Xn,oi-32-1,127,9)),ee=0;ee<pt.za;++ee){var Ii=Pt.ya[Pt.aa+ee];if(0<ee){for(Wt=-1;16>Wt;++Wt)Ct(je,Ke+32*Wt-4,je,Ke+32*Wt+12,4);for(Wt=-1;8>Wt;++Wt)Ct(Ze,cn+32*Wt-4,Ze,cn+32*Wt+4,4),Ct(Xn,oi+32*Wt-4,Xn,oi+32*Wt+4,4)}var fi=pt.Gd,Yi=pt.Hd+ee,Zi=Ii.ad,di=Ii.Hc;if(0<xe&&(Ct(je,Ke-32,fi[Yi].y,0,16),Ct(Ze,cn-32,fi[Yi].f,0,8),Ct(Xn,oi-32,fi[Yi].ea,0,8)),Ii.Za){var Si=je,ar=Ke-32+16;for(0<xe&&(ee>=pt.za-1?Qt(Si,ar,fi[Yi].y[15],4):Ct(Si,ar,fi[Yi+1].y,0,4)),Wt=0;4>Wt;Wt++)Si[ar+128+Wt]=Si[ar+256+Wt]=Si[ar+384+Wt]=Si[ar+0+Wt];for(Wt=0;16>Wt;++Wt,di<<=2)Si=je,ar=Ke+$e[Wt],th[Ii.Ob[Wt]](Si,ar),Hc(di,Zi,16*+Wt,Si,ar)}else if(Si=vc(ee,xe,Ii.Ob[0]),vd[Si](je,Ke),di!=0)for(Wt=0;16>Wt;++Wt,di<<=2)Hc(di,Zi,16*+Wt,je,Ke+$e[Wt]);for(Wt=Ii.Gc,Si=vc(ee,xe,Ii.Dd),EA[Si](Ze,cn),EA[Si](Xn,oi),di=Zi,Si=Ze,ar=cn,255&(Ii=Wt>>0)&&(170&Ii?_e(di,256,Si,ar):ti(di,256,Si,ar)),Ii=Xn,di=oi,255&(Wt>>=8)&&(170&Wt?_e(Zi,320,Ii,di):ti(Zi,320,Ii,di)),xe<pt.Ub-1&&(Ct(fi[Yi].y,0,je,Ke+480,16),Ct(fi[Yi].f,0,Ze,cn+224,8),Ct(fi[Yi].ea,0,Xn,oi+224,8)),Wt=8*ze*pt.B,fi=pt.sa,Yi=pt.ta+16*ee+16*ze*pt.R,Zi=pt.qa,Ii=pt.ra+8*ee+Wt,di=pt.Ha,Si=pt.Ia+8*ee+Wt,Wt=0;16>Wt;++Wt)Ct(fi,Yi+Wt*pt.R,je,Ke+32*Wt,16);for(Wt=0;8>Wt;++Wt)Ct(Zi,Ii+Wt*pt.B,Ze,cn+32*Wt,8),Ct(di,Si+Wt*pt.B,Xn,oi+32*Wt,8)}}function Gc(pt,Pt,Wt,ee,xe,ze,je,Ke,Ze){var cn=[0],Xn=[0],oi=0,Ii=Ze!=null?Ze.kd:0,fi=Ze!=null?Ze:new bA;if(pt==null||12>Wt)return 7;fi.data=pt,fi.w=Pt,fi.ha=Wt,Pt=[Pt],Wt=[Wt],fi.gb=[fi.gb];t:{var Yi=Pt,Zi=Wt,di=fi.gb;if(gt(pt!=null),gt(Zi!=null),gt(di!=null),di[0]=0,12<=Zi[0]&&!wt(pt,Yi[0],"RIFF")){if(wt(pt,Yi[0]+8,"WEBP")){di=3;break t}var Si=Lo(pt,Yi[0]+4);if(12>Si||4294967286<Si){di=3;break t}if(Ii&&Si>Zi[0]-8){di=7;break t}di[0]=Si,Yi[0]+=12,Zi[0]-=12}di=0}if(di!=0)return di;for(Si=0<fi.gb[0],Wt=Wt[0];;){t:{var ar=pt;Zi=Pt,di=Wt;var br=cn,Fr=Xn,Bo=Yi=[0];if((Ln=oi=[oi])[0]=0,8>di[0])di=7;else{if(!wt(ar,Zi[0],"VP8X")){if(Lo(ar,Zi[0]+4)!=10){di=3;break t}if(18>di[0]){di=7;break t}var lo=Lo(ar,Zi[0]+8),ds=1+Uo(ar,Zi[0]+12);if(2147483648<=ds*(ar=1+Uo(ar,Zi[0]+15))){di=3;break t}Bo!=null&&(Bo[0]=lo),br!=null&&(br[0]=ds),Fr!=null&&(Fr[0]=ar),Zi[0]+=18,di[0]-=18,Ln[0]=1}di=0}}if(oi=oi[0],Yi=Yi[0],di!=0)return di;if(Zi=!!(2&Yi),!Si&&oi)return 3;if(ze!=null&&(ze[0]=!!(16&Yi)),je!=null&&(je[0]=Zi),Ke!=null&&(Ke[0]=0),je=cn[0],Yi=Xn[0],oi&&Zi&&Ze==null){di=0;break}if(4>Wt){di=7;break}if(Si&&oi||!Si&&!oi&&!wt(pt,Pt[0],"ALPH")){Wt=[Wt],fi.na=[fi.na],fi.P=[fi.P],fi.Sa=[fi.Sa];t:{lo=pt,di=Pt,Si=Wt;var Ln=fi.gb;br=fi.na,Fr=fi.P,Bo=fi.Sa,ds=22,gt(lo!=null),gt(Si!=null),ar=di[0];var ya=Si[0];for(gt(br!=null),gt(Bo!=null),br[0]=null,Fr[0]=null,Bo[0]=0;;){if(di[0]=ar,Si[0]=ya,8>ya){di=7;break t}var Ua=Lo(lo,ar+4);if(4294967286<Ua){di=3;break t}var da=8+Ua+1&-2;if(ds+=da,0<Ln&&ds>Ln){di=3;break t}if(!wt(lo,ar,"VP8 ")||!wt(lo,ar,"VP8L")){di=0;break t}if(ya[0]<da){di=7;break t}wt(lo,ar,"ALPH")||(br[0]=lo,Fr[0]=ar+8,Bo[0]=Ua),ar+=da,ya-=da}}if(Wt=Wt[0],fi.na=fi.na[0],fi.P=fi.P[0],fi.Sa=fi.Sa[0],di!=0)break}Wt=[Wt],fi.Ja=[fi.Ja],fi.xa=[fi.xa];t:if(Ln=pt,di=Pt,Si=Wt,br=fi.gb[0],Fr=fi.Ja,Bo=fi.xa,lo=di[0],ar=!wt(Ln,lo,"VP8 "),ds=!wt(Ln,lo,"VP8L"),gt(Ln!=null),gt(Si!=null),gt(Fr!=null),gt(Bo!=null),8>Si[0])di=7;else{if(ar||ds){if(Ln=Lo(Ln,lo+4),12<=br&&Ln>br-12){di=3;break t}if(Ii&&Ln>Si[0]-8){di=7;break t}Fr[0]=Ln,di[0]+=8,Si[0]-=8,Bo[0]=ds}else Bo[0]=5<=Si[0]&&Ln[lo+0]==47&&!(Ln[lo+4]>>5),Fr[0]=Si[0];di=0}if(Wt=Wt[0],fi.Ja=fi.Ja[0],fi.xa=fi.xa[0],Pt=Pt[0],di!=0)break;if(4294967286<fi.Ja)return 3;if(Ke==null||Zi||(Ke[0]=fi.xa?2:1),je=[je],Yi=[Yi],fi.xa){if(5>Wt){di=7;break}Ke=je,Ii=Yi,Zi=ze,pt==null||5>Wt?pt=0:5<=Wt&&pt[Pt+0]==47&&!(pt[Pt+4]>>5)?(Si=[0],Ln=[0],br=[0],zi(Fr=new tn,pt,Pt,Wt),Cs(Fr,Si,Ln,br)?(Ke!=null&&(Ke[0]=Si[0]),Ii!=null&&(Ii[0]=Ln[0]),Zi!=null&&(Zi[0]=br[0]),pt=1):pt=0):pt=0}else{if(10>Wt){di=7;break}Ke=Yi,pt==null||10>Wt||!RA(pt,Pt+3,Wt-3)?pt=0:(Ii=pt[Pt+0]|pt[Pt+1]<<8|pt[Pt+2]<<16,Zi=16383&(pt[Pt+7]<<8|pt[Pt+6]),pt=16383&(pt[Pt+9]<<8|pt[Pt+8]),1&Ii||3<(Ii>>1&7)||!(Ii>>4&1)||Ii>>5>=fi.Ja||!Zi||!pt?pt=0:(je&&(je[0]=Zi),Ke&&(Ke[0]=pt),pt=1))}if(!pt||(je=je[0],Yi=Yi[0],oi&&(cn[0]!=je||Xn[0]!=Yi)))return 3;Ze!=null&&(Ze[0]=fi,Ze.offset=Pt-Ze.w,gt(4294967286>Pt-Ze.w),gt(Ze.offset==Ze.ha-Wt));break}return di==0||di==7&&oi&&Ze==null?(ze!=null&&(ze[0]|=fi.na!=null&&0<fi.na.length),ee!=null&&(ee[0]=je),xe!=null&&(xe[0]=Yi),0):di}function Xh(pt,Pt,Wt){var ee=Pt.width,xe=Pt.height,ze=0,je=0,Ke=ee,Ze=xe;if(Pt.Da=pt!=null&&0<pt.Da,Pt.Da&&(Ke=pt.cd,Ze=pt.bd,ze=pt.v,je=pt.j,11>Wt||(ze&=-2,je&=-2),0>ze||0>je||0>=Ke||0>=Ze||ze+Ke>ee||je+Ze>xe))return 0;if(Pt.v=ze,Pt.j=je,Pt.va=ze+Ke,Pt.o=je+Ze,Pt.U=Ke,Pt.T=Ze,Pt.da=pt!=null&&0<pt.da,Pt.da){if(!ls(Ke,Ze,Wt=[pt.ib],ze=[pt.hb]))return 0;Pt.ib=Wt[0],Pt.hb=ze[0]}return Pt.ob=pt!=null&&pt.ob,Pt.Kb=pt==null||!pt.Sd,Pt.da&&(Pt.ob=Pt.ib<3*ee/4&&Pt.hb<3*xe/4,Pt.Kb=0),1}function KA(pt){if(pt==null)return 2;if(11>pt.S){var Pt=pt.f.RGBA;Pt.fb+=(pt.height-1)*Pt.A,Pt.A=-Pt.A}else Pt=pt.f.kb,pt=pt.height,Pt.O+=(pt-1)*Pt.fa,Pt.fa=-Pt.fa,Pt.N+=(pt-1>>1)*Pt.Ab,Pt.Ab=-Pt.Ab,Pt.W+=(pt-1>>1)*Pt.Db,Pt.Db=-Pt.Db,Pt.F!=null&&(Pt.J+=(pt-1)*Pt.lb,Pt.lb=-Pt.lb);return 0}function Zh(pt,Pt,Wt,ee){if(ee==null||0>=pt||0>=Pt)return 2;if(Wt!=null){if(Wt.Da){var xe=Wt.cd,ze=Wt.bd,je=-2&Wt.v,Ke=-2&Wt.j;if(0>je||0>Ke||0>=xe||0>=ze||je+xe>pt||Ke+ze>Pt)return 2;pt=xe,Pt=ze}if(Wt.da){if(!ls(pt,Pt,xe=[Wt.ib],ze=[Wt.hb]))return 2;pt=xe[0],Pt=ze[0]}}ee.width=pt,ee.height=Pt;t:{var Ze=ee.width,cn=ee.height;if(pt=ee.S,0>=Ze||0>=cn||!(pt>=mu&&13>pt))pt=2;else{if(0>=ee.Rd&&ee.sd==null){je=ze=xe=Pt=0;var Xn=(Ke=Ze*vi[pt])*cn;if(11>pt||(ze=(cn+1)/2*(Pt=(Ze+1)/2),pt==12&&(je=(xe=Ze)*cn)),(cn=kt(Xn+2*ze+je))==null){pt=1;break t}ee.sd=cn,11>pt?((Ze=ee.f.RGBA).eb=cn,Ze.fb=0,Ze.A=Ke,Ze.size=Xn):((Ze=ee.f.kb).y=cn,Ze.O=0,Ze.fa=Ke,Ze.Fd=Xn,Ze.f=cn,Ze.N=0+Xn,Ze.Ab=Pt,Ze.Cd=ze,Ze.ea=cn,Ze.W=0+Xn+ze,Ze.Db=Pt,Ze.Ed=ze,pt==12&&(Ze.F=cn,Ze.J=0+Xn+2*ze),Ze.Tc=je,Ze.lb=xe)}if(Pt=1,xe=ee.S,ze=ee.width,je=ee.height,xe>=mu&&13>xe)if(11>xe)pt=ee.f.RGBA,Pt&=(Ke=Math.abs(pt.A))*(je-1)+ze<=pt.size,Pt&=Ke>=ze*vi[xe],Pt&=pt.eb!=null;else{pt=ee.f.kb,Ke=(ze+1)/2,Xn=(je+1)/2,Ze=Math.abs(pt.fa),cn=Math.abs(pt.Ab);var oi=Math.abs(pt.Db),Ii=Math.abs(pt.lb),fi=Ii*(je-1)+ze;Pt&=Ze*(je-1)+ze<=pt.Fd,Pt&=cn*(Xn-1)+Ke<=pt.Cd,Pt=(Pt&=oi*(Xn-1)+Ke<=pt.Ed)&Ze>=ze&cn>=Ke&oi>=Ke,Pt&=pt.y!=null,Pt&=pt.f!=null,Pt&=pt.ea!=null,xe==12&&(Pt&=Ii>=ze,Pt&=fi<=pt.Tc,Pt&=pt.F!=null)}else Pt=0;pt=Pt?0:2}}return pt!=0||Wt!=null&&Wt.fd&&(pt=KA(ee)),pt}var Us=64,Th=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],yc=24,il=32,$u=8,Jl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];So("Predictor0","PredictorAdd0"),li.Predictor0=function(){return 4278190080},li.Predictor1=function(pt){return pt},li.Predictor2=function(pt,Pt,Wt){return Pt[Wt+0]},li.Predictor3=function(pt,Pt,Wt){return Pt[Wt+1]},li.Predictor4=function(pt,Pt,Wt){return Pt[Wt-1]},li.Predictor5=function(pt,Pt,Wt){return Yr(Yr(pt,Pt[Wt+1]),Pt[Wt+0])},li.Predictor6=function(pt,Pt,Wt){return Yr(pt,Pt[Wt-1])},li.Predictor7=function(pt,Pt,Wt){return Yr(pt,Pt[Wt+0])},li.Predictor8=function(pt,Pt,Wt){return Yr(Pt[Wt-1],Pt[Wt+0])},li.Predictor9=function(pt,Pt,Wt){return Yr(Pt[Wt+0],Pt[Wt+1])},li.Predictor10=function(pt,Pt,Wt){return Yr(Yr(pt,Pt[Wt-1]),Yr(Pt[Wt+0],Pt[Wt+1]))},li.Predictor11=function(pt,Pt,Wt){var ee=Pt[Wt+0];return 0>=cs(ee>>24&255,pt>>24&255,(Pt=Pt[Wt-1])>>24&255)+cs(ee>>16&255,pt>>16&255,Pt>>16&255)+cs(ee>>8&255,pt>>8&255,Pt>>8&255)+cs(255&ee,255&pt,255&Pt)?ee:pt},li.Predictor12=function(pt,Pt,Wt){var ee=Pt[Wt+0];return(ts((pt>>24&255)+(ee>>24&255)-((Pt=Pt[Wt-1])>>24&255))<<24|ts((pt>>16&255)+(ee>>16&255)-(Pt>>16&255))<<16|ts((pt>>8&255)+(ee>>8&255)-(Pt>>8&255))<<8|ts((255&pt)+(255&ee)-(255&Pt)))>>>0},li.Predictor13=function(pt,Pt,Wt){var ee=Pt[Wt-1];return(ms((pt=Yr(pt,Pt[Wt+0]))>>24&255,ee>>24&255)<<24|ms(pt>>16&255,ee>>16&255)<<16|ms(pt>>8&255,ee>>8&255)<<8|ms(pt>>0&255,ee>>0&255))>>>0};var LA=li.PredictorAdd0;li.PredictorAdd1=Ds,So("Predictor2","PredictorAdd2"),So("Predictor3","PredictorAdd3"),So("Predictor4","PredictorAdd4"),So("Predictor5","PredictorAdd5"),So("Predictor6","PredictorAdd6"),So("Predictor7","PredictorAdd7"),So("Predictor8","PredictorAdd8"),So("Predictor9","PredictorAdd9"),So("Predictor10","PredictorAdd10"),So("Predictor11","PredictorAdd11"),So("Predictor12","PredictorAdd12"),So("Predictor13","PredictorAdd13");var za=li.PredictorAdd2;ta("ColorIndexInverseTransform","MapARGB","32b",function(pt){return pt>>8&255},function(pt){return pt}),ta("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(pt){return pt},function(pt){return pt>>8&255});var wc,Ol=li.ColorIndexInverseTransform,wh=li.MapARGB,Sc=li.VP8LColorIndexInverseTransformAlpha,it=li.MapAlpha,ot=li.VP8LPredictorsAdd=[];ot.length=16,(li.VP8LPredictors=[]).length=16,(li.VP8LPredictorsAdd_C=[]).length=16,(li.VP8LPredictors_C=[]).length=16;var ct,At,mt,Dt,qt,he,ue,Me,xn,_e,ri,ti,qi,lr,Cr,Ur,mo,Xr,Eo,is,Zr,xs,Ga,Ja,va,Aa,$s,ua,ka=kt(511),Bl=kt(2041),$r=kt(225),Qs=kt(767),$a=0,_a=Bl,nu=$r,Es=Qs,As=ka,mu=0,vl=1,xc=2,Du=3,su=4,Fu=5,Ka=6,$l=7,yA=8,WA=9,xg=10,qu=[2,3,7],Bg=[3,3,11],FA=[280,256,256,256,40],Wf=[0,1,1,1,0],vf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],jd=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],md=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Vf=8,_c=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],VA=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Nl=null,Eu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Yf=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Gg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],yp=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Ud=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Qd=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Xf=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],vd=[],th=[],EA=[],Cg=1,wA=2,eh=[],Oh=[];fr("UpsampleRgbLinePair",La,3),fr("UpsampleBgrLinePair",ss,3),fr("UpsampleRgbaLinePair",Lu,4),fr("UpsampleBgraLinePair",ja,4),fr("UpsampleArgbLinePair",ma,4),fr("UpsampleRgba4444LinePair",xl,2),fr("UpsampleRgb565LinePair",ml,2);var Dh=li.UpsampleRgbLinePair,Rd=li.UpsampleBgrLinePair,wp=li.UpsampleRgbaLinePair,yf=li.UpsampleBgraLinePair,as=li.UpsampleArgbLinePair,_g=li.UpsampleRgba4444LinePair,Sp=li.UpsampleRgb565LinePair,wf=16,yd=1<<wf-1,Kc=-227,MA=482,Pg=6,Kg=(256<<Pg)-1,bg=0,Bt=kt(256),xt=kt(256),Ft=kt(256),Lt=kt(256),te=kt(MA-Kc),Pe=kt(MA-Kc);yh("YuvToRgbRow",La,3),yh("YuvToBgrRow",ss,3),yh("YuvToRgbaRow",Lu,4),yh("YuvToBgraRow",ja,4),yh("YuvToArgbRow",ma,4),yh("YuvToRgba4444Row",xl,2),yh("YuvToRgb565Row",ml,2);var $e=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Fn=[0,2,8],rn=[8,7,6,4,4,2,2,2,1,1,1,1],Ai=1;this.WebPDecodeRGBA=function(pt,Pt,Wt,ee,xe){var ze=vl,je=new kh,Ke=new ph;je.ba=Ke,Ke.S=ze,Ke.width=[Ke.width],Ke.height=[Ke.height];var Ze=Ke.width,cn=Ke.height,Xn=new oc;if(Xn==null||pt==null)var oi=2;else gt(Xn!=null),oi=Gc(pt,Pt,Wt,Xn.width,Xn.height,Xn.Pd,Xn.Qd,Xn.format,null);if(oi!=0?Ze=0:(Ze!=null&&(Ze[0]=Xn.width[0]),cn!=null&&(cn[0]=Xn.height[0]),Ze=1),Ze){Ke.width=Ke.width[0],Ke.height=Ke.height[0],ee!=null&&(ee[0]=Ke.width),xe!=null&&(xe[0]=Ke.height);t:{if(ee=new Bu,(xe=new bA).data=pt,xe.w=Pt,xe.ha=Wt,xe.kd=1,Pt=[0],gt(xe!=null),((pt=Gc(xe.data,xe.w,xe.ha,null,null,null,Pt,null,xe))==0||pt==7)&&Pt[0]&&(pt=4),(Pt=pt)==0){if(gt(je!=null),ee.data=xe.data,ee.w=xe.w+xe.offset,ee.ha=xe.ha-xe.offset,ee.put=dA,ee.ac=ou,ee.bc=Fh,ee.ma=je,xe.xa){if((pt=fl())==null){je=1;break t}if(function(Ii,fi){var Yi=[0],Zi=[0],di=[0];e:for(;;){if(Ii==null)return 0;if(fi==null)return Ii.a=2,0;if(Ii.l=fi,Ii.a=0,zi(Ii.m,fi.data,fi.w,fi.ha),!Cs(Ii.m,Yi,Zi,di)){Ii.a=3;break e}if(Ii.xb=wA,fi.width=Yi[0],fi.height=Zi[0],!Yu(Yi[0],Zi[0],1,Ii,null))break e;return 1}return gt(Ii.a!=0),0}(pt,ee)){if(ee=(Pt=Zh(ee.width,ee.height,je.Oa,je.ba))==0){e:{ee=pt;n:for(;;){if(ee==null){ee=0;break e}if(gt(ee.s.yc!=null),gt(ee.s.Ya!=null),gt(0<ee.s.Wb),gt((Wt=ee.l)!=null),gt((xe=Wt.ma)!=null),ee.xb!=0){if(ee.ca=xe.ba,ee.tb=xe.tb,gt(ee.ca!=null),!Xh(xe.Oa,Wt,Du)){ee.a=2;break n}if(!sc(ee,Wt.width)||Wt.da)break n;if((Wt.da||Ha(ee.ca.S))&&ji(),11>ee.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ee.ca.f.kb.F!=null&&ji()),ee.Pb&&0<ee.s.ua&&ee.s.vb.X==null&&!Ss(ee.s.vb,ee.s.Wa.Xa)){ee.a=1;break n}ee.xb=0}if(!Wu(ee,ee.V,ee.Ba,ee.c,ee.i,Wt.o,PA))break n;xe.Dc=ee.Ma,ee=1;break e}gt(ee.a!=0),ee=0}ee=!ee}ee&&(Pt=pt.a)}else Pt=pt.a}else{if((pt=new tf)==null){je=1;break t}if(pt.Fa=xe.na,pt.P=xe.P,pt.qc=xe.Sa,uc(pt,ee)){if((Pt=Zh(ee.width,ee.height,je.Oa,je.ba))==0){if(pt.Aa=0,Wt=je.Oa,gt((xe=pt)!=null),Wt!=null){if(0<(Ze=0>(Ze=Wt.Md)?0:100<Ze?255:255*Ze/100)){for(cn=Xn=0;4>cn;++cn)12>(oi=xe.pb[cn]).lc&&(oi.ia=Ze*rn[0>oi.lc?0:oi.lc]>>3),Xn|=oi.ia;Xn&&(alert("todo:VP8InitRandom"),xe.ia=1)}xe.Ga=Wt.Id,100<xe.Ga?xe.Ga=100:0>xe.Ga&&(xe.Ga=0)}ud(pt,ee)||(Pt=pt.a)}}else Pt=pt.a}Pt==0&&je.Oa!=null&&je.Oa.fd&&(Pt=KA(je.ba))}je=Pt}ze=je!=0?null:11>ze?Ke.f.RGBA.eb:Ke.f.kb.y}else ze=null;return ze};var vi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ce(li,Xi){for(var yr="",yn=0;yn<4;yn++)yr+=String.fromCharCode(li[Xi++]);return yr}function Re(li,Xi){return(li[Xi+0]<<0|li[Xi+1]<<8|li[Xi+2]<<16)>>>0}function Qe(li,Xi){return(li[Xi+0]<<0|li[Xi+1]<<8|li[Xi+2]<<16|li[Xi+3]<<24)>>>0}new ne;var en=[0],ce=[0],kn=[],Bn=new ne,jn=yt,an=function(li,Xi){var yr={},yn=0,bn=!1,bi=0,hi=0;if(yr.frames=[],!function(Un,Gn,pi,Oi){for(var $i=0;$i<Oi;$i++)if(Un[Gn+$i]!=pi.charCodeAt($i))return!0;return!1}(li,Xi,"RIFF",4)){for(Qe(li,Xi+=4),Xi+=8;Xi<li.length;){var cr=Ce(li,Xi),sr=Qe(li,Xi+=4);Xi+=4;var Vi=sr+(1&sr);switch(cr){case"VP8 ":case"VP8L":yr.frames[yn]===void 0&&(yr.frames[yn]={}),(rr=yr.frames[yn]).src_off=bn?hi:Xi-8,rr.src_size=bi+sr+8,yn++,bn&&(bn=!1,bi=0,hi=0);break;case"VP8X":(rr=yr.header={}).feature_flags=li[Xi];var zi=Xi+4;rr.canvas_width=1+Re(li,zi),zi+=3,rr.canvas_height=1+Re(li,zi),zi+=3;break;case"ALPH":bn=!0,bi=Vi+8,hi=Xi-8;break;case"ANIM":(rr=yr.header).bgcolor=Qe(li,Xi),zi=Xi+4,rr.loop_count=(ao=li)[(tn=zi)+0]<<0|ao[tn+1]<<8,zi+=2;break;case"ANMF":var Gi,rr;(rr=yr.frames[yn]={}).offset_x=2*Re(li,Xi),Xi+=3,rr.offset_y=2*Re(li,Xi),Xi+=3,rr.width=1+Re(li,Xi),Xi+=3,rr.height=1+Re(li,Xi),Xi+=3,rr.duration=Re(li,Xi),Xi+=3,Gi=li[Xi++],rr.dispose=1&Gi,rr.blend=Gi>>1&1}cr!="ANMF"&&(Xi+=Vi)}var ao,tn;return yr}}(jn,0);an.response=jn,an.rgbaoutput=!0,an.dataurl=!1;var On=an.header?an.header:null,mi=an.frames?an.frames:null;if(On){On.loop_counter=On.loop_count,en=[On.canvas_height],ce=[On.canvas_width];for(var Ui=0;Ui<mi.length&&mi[Ui].blend!=0;Ui++);}var ir=mi[0],Er=Bn.WebPDecodeRGBA(jn,ir.src_off,ir.src_size,ce,en);ir.rgba=Er,ir.imgwidth=ce[0],ir.imgheight=en[0];for(var _i=0;_i<ce[0]*en[0]*4;_i++)kn[_i]=Er[_i];return this.width=ce,this.height=en,this.data=kn,this}(function(yt){var gt=function(){return typeof nn=="function"},wt=function(en,ce,kn,Bn){var jn=4,an=Yt;switch(Bn){case yt.image_compression.FAST:jn=1,an=kt;break;case yt.image_compression.MEDIUM:jn=6,an=Zt;break;case yt.image_compression.SLOW:jn=9,an=ne}en=Ct(en,ce,kn,an);var On=nn(en,{level:jn});return yt.__addimage__.arrayBufferToBinaryString(On)},Ct=function(en,ce,kn,Bn){for(var jn,an,On,mi=en.length/ce,Ui=new Uint8Array(en.length+mi),ir=Re(),Er=0;Er<mi;Er+=1){if(On=Er*ce,jn=en.subarray(On,On+ce),Bn)Ui.set(Bn(jn,kn,an),On+Er);else{for(var _i,li=ir.length,Xi=[];_i<li;_i+=1)Xi[_i]=ir[_i](jn,kn,an);var yr=Qe(Xi.concat());Ui.set(Xi[yr],On+Er)}an=jn}return Ui},Qt=function(en){var ce=Array.apply([],en);return ce.unshift(0),ce},kt=function(en,ce){var kn,Bn=[],jn=en.length;Bn[0]=1;for(var an=0;an<jn;an+=1)kn=en[an-ce]||0,Bn[an+1]=en[an]-kn+256&255;return Bn},Yt=function(en,ce,kn){var Bn,jn=[],an=en.length;jn[0]=2;for(var On=0;On<an;On+=1)Bn=kn&&kn[On]||0,jn[On+1]=en[On]-Bn+256&255;return jn},Zt=function(en,ce,kn){var Bn,jn,an=[],On=en.length;an[0]=3;for(var mi=0;mi<On;mi+=1)Bn=en[mi-ce]||0,jn=kn&&kn[mi]||0,an[mi+1]=en[mi]+256-(Bn+jn>>>1)&255;return an},ne=function(en,ce,kn){var Bn,jn,an,On,mi=[],Ui=en.length;mi[0]=4;for(var ir=0;ir<Ui;ir+=1)Bn=en[ir-ce]||0,jn=kn&&kn[ir]||0,an=kn&&kn[ir-ce]||0,On=Ce(Bn,jn,an),mi[ir+1]=en[ir]-On+256&255;return mi},Ce=function(en,ce,kn){if(en===ce&&ce===kn)return en;var Bn=Math.abs(ce-kn),jn=Math.abs(en-kn),an=Math.abs(en+ce-kn-kn);return Bn<=jn&&Bn<=an?en:jn<=an?ce:kn},Re=function(){return[Qt,kt,Yt,Zt,ne]},Qe=function(en){var ce=en.map(function(kn){return kn.reduce(function(Bn,jn){return Bn+Math.abs(jn)},0)});return ce.indexOf(Math.min.apply(null,ce))};yt.processPNG=function(en,ce,kn,Bn){var jn,an,On,mi,Ui,ir,Er,_i,li,Xi,yr,yn,bn,bi,hi,cr=this.decode.FLATE_DECODE,sr="";if(this.__addimage__.isArrayBuffer(en)&&(en=new Uint8Array(en)),this.__addimage__.isArrayBufferView(en)){if(en=(On=new Kf(en)).imgData,an=On.bits,jn=On.colorSpace,Ui=On.colors,[4,6].indexOf(On.colorType)!==-1){if(On.bits===8){li=(_i=On.pixelBitlength==32?new Uint32Array(On.decodePixels().buffer):On.pixelBitlength==16?new Uint16Array(On.decodePixels().buffer):new Uint8Array(On.decodePixels().buffer)).length,yr=new Uint8Array(li*On.colors),Xi=new Uint8Array(li);var Vi,zi=On.pixelBitlength-On.bits;for(bi=0,hi=0;bi<li;bi++){for(bn=_i[bi],Vi=0;Vi<zi;)yr[hi++]=bn>>>Vi&255,Vi+=On.bits;Xi[bi]=bn>>>Vi&255}}if(On.bits===16){li=(_i=new Uint32Array(On.decodePixels().buffer)).length,yr=new Uint8Array(li*(32/On.pixelBitlength)*On.colors),Xi=new Uint8Array(li*(32/On.pixelBitlength)),yn=On.colors>1,bi=0,hi=0;for(var Gi=0;bi<li;)bn=_i[bi++],yr[hi++]=bn>>>0&255,yn&&(yr[hi++]=bn>>>16&255,bn=_i[bi++],yr[hi++]=bn>>>0&255),Xi[Gi++]=bn>>>16&255;an=8}Bn!==yt.image_compression.NONE&&gt()?(en=wt(yr,On.width*On.colors,On.colors,Bn),Er=wt(Xi,On.width,1,Bn)):(en=yr,Er=Xi,cr=void 0)}if(On.colorType===3&&(jn=this.color_spaces.INDEXED,ir=On.palette,On.transparency.indexed)){var rr=On.transparency.indexed,ao=0;for(bi=0,li=rr.length;bi<li;++bi)ao+=rr[bi];if((ao/=255)===li-1&&rr.indexOf(0)!==-1)mi=[rr.indexOf(0)];else if(ao!==li){for(_i=On.decodePixels(),Xi=new Uint8Array(_i.length),bi=0,li=_i.length;bi<li;bi++)Xi[bi]=rr[_i[bi]];Er=wt(Xi,On.width,1)}}var tn=function(Un){var Gn;switch(Un){case yt.image_compression.FAST:Gn=11;break;case yt.image_compression.MEDIUM:Gn=13;break;case yt.image_compression.SLOW:Gn=14;break;default:Gn=12}return Gn}(Bn);return cr===this.decode.FLATE_DECODE&&(sr="/Predictor "+tn+" "),sr+="/Colors "+Ui+" /BitsPerComponent "+an+" /Columns "+On.width,(this.__addimage__.isArrayBuffer(en)||this.__addimage__.isArrayBufferView(en))&&(en=this.__addimage__.arrayBufferToBinaryString(en)),(Er&&this.__addimage__.isArrayBuffer(Er)||this.__addimage__.isArrayBufferView(Er))&&(Er=this.__addimage__.arrayBufferToBinaryString(Er)),{alias:kn,data:en,index:ce,filter:cr,decodeParameters:sr,transparency:mi,palette:ir,sMask:Er,predictor:tn,width:On.width,height:On.height,bitsPerComponent:an,colorSpace:jn}}}})(so.API),function(yt){yt.processGIF89A=function(gt,wt,Ct,Qt){var kt=new Je(gt),Yt=kt.width,Zt=kt.height,ne=[];kt.decodeAndBlitFrameRGBA(0,ne);var Ce={data:ne,width:Yt,height:Zt},Re=new ff(100).encode(Ce,100);return yt.processJPEG.call(this,Re,wt,Ct,Qt)},yt.processGIF87A=yt.processGIF89A}(so.API),hA.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var yt=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(yt);for(var gt=0;gt<yt;gt++){var wt=this.datav.getUint8(this.pos++,!0),Ct=this.datav.getUint8(this.pos++,!0),Qt=this.datav.getUint8(this.pos++,!0),kt=this.datav.getUint8(this.pos++,!0);this.palette[gt]={red:Qt,green:Ct,blue:wt,quad:kt}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},hA.prototype.parseBGR=function(){this.pos=this.offset;try{var yt="bit"+this.bitPP,gt=this.width*this.height*4;this.data=new Uint8Array(gt),this[yt]()}catch(wt){vo.log("bit decode error:"+wt)}},hA.prototype.bit1=function(){var yt,gt=Math.ceil(this.width/8),wt=gt%4;for(yt=this.height-1;yt>=0;yt--){for(var Ct=this.bottom_up?yt:this.height-1-yt,Qt=0;Qt<gt;Qt++)for(var kt=this.datav.getUint8(this.pos++,!0),Yt=Ct*this.width*4+8*Qt*4,Zt=0;Zt<8&&8*Qt+Zt<this.width;Zt++){var ne=this.palette[kt>>7-Zt&1];this.data[Yt+4*Zt]=ne.blue,this.data[Yt+4*Zt+1]=ne.green,this.data[Yt+4*Zt+2]=ne.red,this.data[Yt+4*Zt+3]=255}wt!==0&&(this.pos+=4-wt)}},hA.prototype.bit4=function(){for(var yt=Math.ceil(this.width/2),gt=yt%4,wt=this.height-1;wt>=0;wt--){for(var Ct=this.bottom_up?wt:this.height-1-wt,Qt=0;Qt<yt;Qt++){var kt=this.datav.getUint8(this.pos++,!0),Yt=Ct*this.width*4+2*Qt*4,Zt=kt>>4,ne=15&kt,Ce=this.palette[Zt];if(this.data[Yt]=Ce.blue,this.data[Yt+1]=Ce.green,this.data[Yt+2]=Ce.red,this.data[Yt+3]=255,2*Qt+1>=this.width)break;Ce=this.palette[ne],this.data[Yt+4]=Ce.blue,this.data[Yt+4+1]=Ce.green,this.data[Yt+4+2]=Ce.red,this.data[Yt+4+3]=255}gt!==0&&(this.pos+=4-gt)}},hA.prototype.bit8=function(){for(var yt=this.width%4,gt=this.height-1;gt>=0;gt--){for(var wt=this.bottom_up?gt:this.height-1-gt,Ct=0;Ct<this.width;Ct++){var Qt=this.datav.getUint8(this.pos++,!0),kt=wt*this.width*4+4*Ct;if(Qt<this.palette.length){var Yt=this.palette[Qt];this.data[kt]=Yt.red,this.data[kt+1]=Yt.green,this.data[kt+2]=Yt.blue,this.data[kt+3]=255}else this.data[kt]=255,this.data[kt+1]=255,this.data[kt+2]=255,this.data[kt+3]=255}yt!==0&&(this.pos+=4-yt)}},hA.prototype.bit15=function(){for(var yt=this.width%3,gt=parseInt("11111",2),wt=this.height-1;wt>=0;wt--){for(var Ct=this.bottom_up?wt:this.height-1-wt,Qt=0;Qt<this.width;Qt++){var kt=this.datav.getUint16(this.pos,!0);this.pos+=2;var Yt=(kt&gt)/gt*255|0,Zt=(kt>>5&gt)/gt*255|0,ne=(kt>>10&gt)/gt*255|0,Ce=kt>>15?255:0,Re=Ct*this.width*4+4*Qt;this.data[Re]=ne,this.data[Re+1]=Zt,this.data[Re+2]=Yt,this.data[Re+3]=Ce}this.pos+=yt}},hA.prototype.bit16=function(){for(var yt=this.width%3,gt=parseInt("11111",2),wt=parseInt("111111",2),Ct=this.height-1;Ct>=0;Ct--){for(var Qt=this.bottom_up?Ct:this.height-1-Ct,kt=0;kt<this.width;kt++){var Yt=this.datav.getUint16(this.pos,!0);this.pos+=2;var Zt=(Yt&gt)/gt*255|0,ne=(Yt>>5&wt)/wt*255|0,Ce=(Yt>>11)/gt*255|0,Re=Qt*this.width*4+4*kt;this.data[Re]=Ce,this.data[Re+1]=ne,this.data[Re+2]=Zt,this.data[Re+3]=255}this.pos+=yt}},hA.prototype.bit24=function(){for(var yt=this.height-1;yt>=0;yt--){for(var gt=this.bottom_up?yt:this.height-1-yt,wt=0;wt<this.width;wt++){var Ct=this.datav.getUint8(this.pos++,!0),Qt=this.datav.getUint8(this.pos++,!0),kt=this.datav.getUint8(this.pos++,!0),Yt=gt*this.width*4+4*wt;this.data[Yt]=kt,this.data[Yt+1]=Qt,this.data[Yt+2]=Ct,this.data[Yt+3]=255}this.pos+=this.width%4}},hA.prototype.bit32=function(){for(var yt=this.height-1;yt>=0;yt--)for(var gt=this.bottom_up?yt:this.height-1-yt,wt=0;wt<this.width;wt++){var Ct=this.datav.getUint8(this.pos++,!0),Qt=this.datav.getUint8(this.pos++,!0),kt=this.datav.getUint8(this.pos++,!0),Yt=this.datav.getUint8(this.pos++,!0),Zt=gt*this.width*4+4*wt;this.data[Zt]=kt,this.data[Zt+1]=Qt,this.data[Zt+2]=Ct,this.data[Zt+3]=Yt}},hA.prototype.getData=function(){return this.data},function(yt){yt.processBMP=function(gt,wt,Ct,Qt){var kt=new hA(gt,!1),Yt=kt.width,Zt=kt.height,ne={data:kt.getData(),width:Yt,height:Zt},Ce=new ff(100).encode(ne,100);return yt.processJPEG.call(this,Ce,wt,Ct,Qt)}}(so.API),uu.prototype.getData=function(){return this.data},function(yt){yt.processWEBP=function(gt,wt,Ct,Qt){var kt=new uu(gt),Yt=kt.width,Zt=kt.height,ne={data:kt.getData(),width:Yt,height:Zt},Ce=new ff(100).encode(ne,100);return yt.processJPEG.call(this,Ce,wt,Ct,Qt)}}(so.API),so.API.processRGBA=function(yt,gt,wt){for(var Ct=yt.data,Qt=Ct.length,kt=new Uint8Array(Qt/4*3),Yt=new Uint8Array(Qt/4),Zt=0,ne=0,Ce=0;Ce<Qt;Ce+=4){var Re=Ct[Ce],Qe=Ct[Ce+1],en=Ct[Ce+2],ce=Ct[Ce+3];kt[Zt++]=Re,kt[Zt++]=Qe,kt[Zt++]=en,Yt[ne++]=ce}var kn=this.__addimage__.arrayBufferToBinaryString(kt);return{alpha:this.__addimage__.arrayBufferToBinaryString(Yt),data:kn,index:gt,alias:wt,colorSpace:"DeviceRGB",bitsPerComponent:8,width:yt.width,height:yt.height}},so.API.setLanguage=function(yt){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[yt]!==void 0&&(this.internal.languageSettings.languageCode=yt,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ba=so.API,od=ba.getCharWidthsArray=function(yt,gt){var wt,Ct,Qt=(gt=gt||{}).font||this.internal.getFont(),kt=gt.fontSize||this.internal.getFontSize(),Yt=gt.charSpace||this.internal.getCharSpace(),Zt=gt.widths?gt.widths:Qt.metadata.Unicode.widths,ne=Zt.fof?Zt.fof:1,Ce=gt.kerning?gt.kerning:Qt.metadata.Unicode.kerning,Re=Ce.fof?Ce.fof:1,Qe=gt.doKerning!==!1,en=0,ce=yt.length,kn=0,Bn=Zt[0]||ne,jn=[];for(wt=0;wt<ce;wt++)Ct=yt.charCodeAt(wt),typeof Qt.metadata.widthOfString=="function"?jn.push((Qt.metadata.widthOfGlyph(Qt.metadata.characterToGlyph(Ct))+Yt*(1e3/kt)||0)/1e3):(en=Qe&&(0,zt.Z)(Ce[Ct])==="object"&&!isNaN(parseInt(Ce[Ct][kn],10))?Ce[Ct][kn]/Re:0,jn.push((Zt[Ct]||Bn)/ne+en)),kn=Ct;return jn},ic=ba.getStringUnitWidth=function(yt,gt){var wt=(gt=gt||{}).fontSize||this.internal.getFontSize(),Ct=gt.font||this.internal.getFont(),Qt=gt.charSpace||this.internal.getCharSpace();return ba.processArabic&&(yt=ba.processArabic(yt)),typeof Ct.metadata.widthOfString=="function"?Ct.metadata.widthOfString(yt,wt,Qt)/wt:od.apply(this,arguments).reduce(function(kt,Yt){return kt+Yt},0)},_h=function(yt,gt,wt,Ct){for(var Qt=[],kt=0,Yt=yt.length,Zt=0;kt!==Yt&&Zt+gt[kt]<wt;)Zt+=gt[kt],kt++;Qt.push(yt.slice(0,kt));var ne=kt;for(Zt=0;kt!==Yt;)Zt+gt[kt]>Ct&&(Qt.push(yt.slice(ne,kt)),Zt=0,ne=kt),Zt+=gt[kt],kt++;return ne!==kt&&Qt.push(yt.slice(ne,kt)),Qt},fo=function(yt,gt,wt){wt||(wt={});var Ct,Qt,kt,Yt,Zt,ne,Ce,Re=[],Qe=[Re],en=wt.textIndent||0,ce=0,kn=0,Bn=yt.split(" "),jn=od.apply(this,[" ",wt])[0];if(ne=wt.lineIndent===-1?Bn[0].length+2:wt.lineIndent||0){var an=Array(ne).join(" "),On=[];Bn.map(function(Ui){(Ui=Ui.split(/\s*\n/)).length>1?On=On.concat(Ui.map(function(ir,Er){return(Er&&ir.length?`
`:"")+ir})):On.push(Ui[0])}),Bn=On,ne=ic.apply(this,[an,wt])}for(kt=0,Yt=Bn.length;kt<Yt;kt++){var mi=0;if(Ct=Bn[kt],ne&&Ct[0]==`
`&&(Ct=Ct.substr(1),mi=1),en+ce+(kn=(Qt=od.apply(this,[Ct,wt])).reduce(function(Ui,ir){return Ui+ir},0))>gt||mi){if(kn>gt){for(Zt=_h.apply(this,[Ct,Qt,gt-(en+ce),gt]),Re.push(Zt.shift()),Re=[Zt.pop()];Zt.length;)Qe.push([Zt.shift()]);kn=Qt.slice(Ct.length-(Re[0]?Re[0].length:0)).reduce(function(Ui,ir){return Ui+ir},0)}else Re=[Ct];Qe.push(Re),en=kn+ne,ce=jn}else Re.push(Ct),en+=ce+kn,ce=jn}return Ce=ne?function(Ui,ir){return(ir?an:"")+Ui.join(" ")}:function(Ui){return Ui.join(" ")},Qe.map(Ce)},ba.splitTextToSize=function(yt,gt,wt){var Ct,Qt=(wt=wt||{}).fontSize||this.internal.getFontSize(),kt=function(Re){if(Re.widths&&Re.kerning)return{widths:Re.widths,kerning:Re.kerning};var Qe=this.internal.getFont(Re.fontName,Re.fontStyle);return Qe.metadata.Unicode?{widths:Qe.metadata.Unicode.widths||{0:1},kerning:Qe.metadata.Unicode.kerning||{}}:{font:Qe.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,wt);Ct=Array.isArray(yt)?yt:String(yt).split(/\r?\n/);var Yt=1*this.internal.scaleFactor*gt/Qt;kt.textIndent=wt.textIndent?1*wt.textIndent*this.internal.scaleFactor/Qt:0,kt.lineIndent=wt.lineIndent;var Zt,ne,Ce=[];for(Zt=0,ne=Ct.length;Zt<ne;Zt++)Ce=Ce.concat(fo.apply(this,[Ct[Zt],Yt,kt]));return Ce},function(yt){yt.__fontmetrics__=yt.__fontmetrics__||{};for(var gt="klmnopqrstuvwxyz",wt={},Ct={},Qt=0;Qt<gt.length;Qt++)wt[gt[Qt]]="0123456789abcdef"[Qt],Ct["0123456789abcdef"[Qt]]=gt[Qt];var kt=function(Qe){return"0x"+parseInt(Qe,10).toString(16)},Yt=yt.__fontmetrics__.compress=function(Qe){var en,ce,kn,Bn,jn=["{"];for(var an in Qe){if(en=Qe[an],isNaN(parseInt(an,10))?ce="'"+an+"'":(an=parseInt(an,10),ce=(ce=kt(an).slice(2)).slice(0,-1)+Ct[ce.slice(-1)]),typeof en=="number")en<0?(kn=kt(en).slice(3),Bn="-"):(kn=kt(en).slice(2),Bn=""),kn=Bn+kn.slice(0,-1)+Ct[kn.slice(-1)];else{if((0,zt.Z)(en)!=="object")throw new Error("Don't know what to do with value type "+(0,zt.Z)(en)+".");kn=Yt(en)}jn.push(ce+kn)}return jn.push("}"),jn.join("")},Zt=yt.__fontmetrics__.uncompress=function(Qe){if(typeof Qe!="string")throw new Error("Invalid argument passed to uncompress.");for(var en,ce,kn,Bn,jn={},an=1,On=jn,mi=[],Ui="",ir="",Er=Qe.length-1,_i=1;_i<Er;_i+=1)(Bn=Qe[_i])=="'"?en?(kn=en.join(""),en=void 0):en=[]:en?en.push(Bn):Bn=="{"?(mi.push([On,kn]),On={},kn=void 0):Bn=="}"?((ce=mi.pop())[0][ce[1]]=On,kn=void 0,On=ce[0]):Bn=="-"?an=-1:kn===void 0?wt.hasOwnProperty(Bn)?(Ui+=wt[Bn],kn=parseInt(Ui,16)*an,an=1,Ui=""):Ui+=Bn:wt.hasOwnProperty(Bn)?(ir+=wt[Bn],On[kn]=parseInt(ir,16)*an,an=1,kn=void 0,ir=""):ir+=Bn;return jn},ne={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Zt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Ce={Unicode:{Courier:ne,"Courier-Bold":ne,"Courier-BoldOblique":ne,"Courier-Oblique":ne,Helvetica:ne,"Helvetica-Bold":ne,"Helvetica-BoldOblique":ne,"Helvetica-Oblique":ne,"Times-Roman":ne,"Times-Bold":ne,"Times-BoldItalic":ne,"Times-Italic":ne}},Re={Unicode:{"Courier-Oblique":Zt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Zt("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Zt("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Zt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Zt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Zt("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Zt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Zt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Zt("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Zt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Zt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Zt("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Zt("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Zt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};yt.events.push(["addFont",function(Qe){var en=Qe.font,ce=Re.Unicode[en.postScriptName];ce&&(en.metadata.Unicode={},en.metadata.Unicode.widths=ce.widths,en.metadata.Unicode.kerning=ce.kerning);var kn=Ce.Unicode[en.postScriptName];kn&&(en.metadata.Unicode.encoding=kn,en.encoding=kn.codePages[0])}])}(so.API),function(yt){var gt=function(wt){for(var Ct=wt.length,Qt=new Uint8Array(Ct),kt=0;kt<Ct;kt++)Qt[kt]=wt.charCodeAt(kt);return Qt};yt.API.events.push(["addFont",function(wt){var Ct=void 0,Qt=wt.font,kt=wt.instance;if(!Qt.isStandardFont){if(kt===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Qt.postScriptName+"').");if(typeof(Ct=kt.existsFileInVFS(Qt.postScriptName)===!1?kt.loadFile(Qt.postScriptName):kt.getFileFromVFS(Qt.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Qt.postScriptName+"').");(function(Yt,Zt){Zt=/^\x00\x01\x00\x00/.test(Zt)?gt(Zt):gt(Xo(Zt)),Yt.metadata=yt.API.TTFFont.open(Zt),Yt.metadata.Unicode=Yt.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Yt.metadata.glyIdsUsed=[0]})(Qt,Ct)}}])}(so),function(yt){function gt(){return(Br.canvg?Promise.resolve(Br.canvg):Kt.e(3754).then(Kt.bind(Kt,63754))).catch(function(wt){return Promise.reject(new Error("Could not load canvg: "+wt))}).then(function(wt){return wt.default?wt.default:wt})}so.API.addSvgAsImage=function(wt,Ct,Qt,kt,Yt,Zt,ne,Ce){if(isNaN(Ct)||isNaN(Qt))throw vo.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(kt)||isNaN(Yt))throw vo.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Re=document.createElement("canvas");Re.width=kt,Re.height=Yt;var Qe=Re.getContext("2d");Qe.fillStyle="#fff",Qe.fillRect(0,0,Re.width,Re.height);var en={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},ce=this;return gt().then(function(kn){return kn.fromString(Qe,wt,en)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(kn){return kn.render(en)}).then(function(){ce.addImage(Re.toDataURL("image/jpeg",1),Ct,Qt,kt,Yt,ne,Ce)})}}(),so.API.putTotalPages=function(yt){var gt,wt=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(gt=new RegExp(yt,"g"),wt=this.internal.getNumberOfPages()):(gt=new RegExp(this.pdfEscape16(yt,this.internal.getFont()),"g"),wt=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ct=1;Ct<=this.internal.getNumberOfPages();Ct++)for(var Qt=0;Qt<this.internal.pages[Ct].length;Qt++)this.internal.pages[Ct][Qt]=this.internal.pages[Ct][Qt].replace(gt,wt);return this},so.API.viewerPreferences=function(yt,gt){var wt;yt=yt||{},gt=gt||!1;var Ct,Qt,kt,Yt={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Zt=Object.keys(Yt),ne=[],Ce=0,Re=0,Qe=0;function en(kn,Bn){var jn,an=!1;for(jn=0;jn<kn.length;jn+=1)kn[jn]===Bn&&(an=!0);return an}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Yt)),this.internal.viewerpreferences.isSubscribed=!1),wt=this.internal.viewerpreferences.configuration,yt==="reset"||gt===!0){var ce=Zt.length;for(Qe=0;Qe<ce;Qe+=1)wt[Zt[Qe]].value=wt[Zt[Qe]].defaultValue,wt[Zt[Qe]].explicitSet=!1}if((0,zt.Z)(yt)==="object"){for(Qt in yt)if(kt=yt[Qt],en(Zt,Qt)&&kt!==void 0){if(wt[Qt].type==="boolean"&&typeof kt=="boolean")wt[Qt].value=kt;else if(wt[Qt].type==="name"&&en(wt[Qt].valueSet,kt))wt[Qt].value=kt;else if(wt[Qt].type==="integer"&&Number.isInteger(kt))wt[Qt].value=kt;else if(wt[Qt].type==="array"){for(Ce=0;Ce<kt.length;Ce+=1)if(Ct=!0,kt[Ce].length===1&&typeof kt[Ce][0]=="number")ne.push(String(kt[Ce]-1));else if(kt[Ce].length>1){for(Re=0;Re<kt[Ce].length;Re+=1)typeof kt[Ce][Re]!="number"&&(Ct=!1);Ct===!0&&ne.push([kt[Ce][0]-1,kt[Ce][1]-1].join(" "))}wt[Qt].value="["+ne.join(" ")+"]"}else wt[Qt].value=wt[Qt].defaultValue;wt[Qt].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var kn,Bn=[];for(kn in wt)wt[kn].explicitSet===!0&&(wt[kn].type==="name"?Bn.push("/"+kn+" /"+wt[kn].value):Bn.push("/"+kn+" "+wt[kn].value));Bn.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Bn.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=wt,this},function(yt){var gt=function(){var Ct='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',Qt=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),kt=unescape(encodeURIComponent(Ct)),Yt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Zt=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ne=unescape(encodeURIComponent("</x:xmpmeta>")),Ce=kt.length+Yt.length+Zt.length+Qt.length+ne.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Ce+" >>"),this.internal.write("stream"),this.internal.write(Qt+kt+Yt+Zt+ne),this.internal.write("endstream"),this.internal.write("endobj")},wt=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};yt.addMetadata=function(Ct,Qt){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ct,namespaceuri:Qt||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",wt),this.internal.events.subscribe("postPutResources",gt)),this}}(so.API),function(yt){var gt=yt.API,wt=gt.pdfEscape16=function(kt,Yt){for(var Zt,ne=Yt.metadata.Unicode.widths,Ce=["","0","00","000","0000"],Re=[""],Qe=0,en=kt.length;Qe<en;++Qe){if(Zt=Yt.metadata.characterToGlyph(kt.charCodeAt(Qe)),Yt.metadata.glyIdsUsed.push(Zt),Yt.metadata.toUnicode[Zt]=kt.charCodeAt(Qe),ne.indexOf(Zt)==-1&&(ne.push(Zt),ne.push([parseInt(Yt.metadata.widthOfGlyph(Zt),10)])),Zt=="0")return Re.join("");Zt=Zt.toString(16),Re.push(Ce[4-Zt.length],Zt)}return Re.join("")},Ct=function(kt){var Yt,Zt,ne,Ce,Re,Qe,en;for(Re=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,ne=[],Qe=0,en=(Zt=Object.keys(kt).sort(function(ce,kn){return ce-kn})).length;Qe<en;Qe++)Yt=Zt[Qe],ne.length>=100&&(Re+=`
`+ne.length+` beginbfchar
`+ne.join(`
`)+`
endbfchar`,ne=[]),kt[Yt]!==void 0&&kt[Yt]!==null&&typeof kt[Yt].toString=="function"&&(Ce=("0000"+kt[Yt].toString(16)).slice(-4),Yt=("0000"+(+Yt).toString(16)).slice(-4),ne.push("<"+Yt+"><"+Ce+">"));return ne.length&&(Re+=`
`+ne.length+` beginbfchar
`+ne.join(`
`)+`
endbfchar
`),Re+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};gt.events.push(["putFont",function(kt){(function(Yt){var Zt=Yt.font,ne=Yt.out,Ce=Yt.newObject,Re=Yt.putStream;if(Zt.metadata instanceof yt.API.TTFFont&&Zt.encoding==="Identity-H"){for(var Qe=Zt.metadata.Unicode.widths,en=Zt.metadata.subset.encode(Zt.metadata.glyIdsUsed,1),ce="",kn=0;kn<en.length;kn++)ce+=String.fromCharCode(en[kn]);var Bn=Ce();Re({data:ce,addLength1:!0,objectId:Bn}),ne("endobj");var jn=Ce();Re({data:Ct(Zt.metadata.toUnicode),addLength1:!0,objectId:jn}),ne("endobj");var an=Ce();ne("<<"),ne("/Type /FontDescriptor"),ne("/FontName /"+zr(Zt.fontName)),ne("/FontFile2 "+Bn+" 0 R"),ne("/FontBBox "+yt.API.PDFObject.convert(Zt.metadata.bbox)),ne("/Flags "+Zt.metadata.flags),ne("/StemV "+Zt.metadata.stemV),ne("/ItalicAngle "+Zt.metadata.italicAngle),ne("/Ascent "+Zt.metadata.ascender),ne("/Descent "+Zt.metadata.decender),ne("/CapHeight "+Zt.metadata.capHeight),ne(">>"),ne("endobj");var On=Ce();ne("<<"),ne("/Type /Font"),ne("/BaseFont /"+zr(Zt.fontName)),ne("/FontDescriptor "+an+" 0 R"),ne("/W "+yt.API.PDFObject.convert(Qe)),ne("/CIDToGIDMap /Identity"),ne("/DW 1000"),ne("/Subtype /CIDFontType2"),ne("/CIDSystemInfo"),ne("<<"),ne("/Supplement 0"),ne("/Registry (Adobe)"),ne("/Ordering ("+Zt.encoding+")"),ne(">>"),ne(">>"),ne("endobj"),Zt.objectNumber=Ce(),ne("<<"),ne("/Type /Font"),ne("/Subtype /Type0"),ne("/ToUnicode "+jn+" 0 R"),ne("/BaseFont /"+zr(Zt.fontName)),ne("/Encoding /"+Zt.encoding),ne("/DescendantFonts ["+On+" 0 R]"),ne(">>"),ne("endobj"),Zt.isAlreadyPutted=!0}})(kt)}]),gt.events.push(["putFont",function(kt){(function(Yt){var Zt=Yt.font,ne=Yt.out,Ce=Yt.newObject,Re=Yt.putStream;if(Zt.metadata instanceof yt.API.TTFFont&&Zt.encoding==="WinAnsiEncoding"){for(var Qe=Zt.metadata.rawData,en="",ce=0;ce<Qe.length;ce++)en+=String.fromCharCode(Qe[ce]);var kn=Ce();Re({data:en,addLength1:!0,objectId:kn}),ne("endobj");var Bn=Ce();Re({data:Ct(Zt.metadata.toUnicode),addLength1:!0,objectId:Bn}),ne("endobj");var jn=Ce();ne("<<"),ne("/Descent "+Zt.metadata.decender),ne("/CapHeight "+Zt.metadata.capHeight),ne("/StemV "+Zt.metadata.stemV),ne("/Type /FontDescriptor"),ne("/FontFile2 "+kn+" 0 R"),ne("/Flags 96"),ne("/FontBBox "+yt.API.PDFObject.convert(Zt.metadata.bbox)),ne("/FontName /"+zr(Zt.fontName)),ne("/ItalicAngle "+Zt.metadata.italicAngle),ne("/Ascent "+Zt.metadata.ascender),ne(">>"),ne("endobj"),Zt.objectNumber=Ce();for(var an=0;an<Zt.metadata.hmtx.widths.length;an++)Zt.metadata.hmtx.widths[an]=parseInt(Zt.metadata.hmtx.widths[an]*(1e3/Zt.metadata.head.unitsPerEm));ne("<</Subtype/TrueType/Type/Font/ToUnicode "+Bn+" 0 R/BaseFont/"+zr(Zt.fontName)+"/FontDescriptor "+jn+" 0 R/Encoding/"+Zt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+yt.API.PDFObject.convert(Zt.metadata.hmtx.widths)+">>"),ne("endobj"),Zt.isAlreadyPutted=!0}})(kt)}]);var Qt=function(kt){var Yt,Zt=kt.text||"",ne=kt.x,Ce=kt.y,Re=kt.options||{},Qe=kt.mutex||{},en=Qe.pdfEscape,ce=Qe.activeFontKey,kn=Qe.fonts,Bn=ce,jn="",an=0,On="",mi=kn[Bn].encoding;if(kn[Bn].encoding!=="Identity-H")return{text:Zt,x:ne,y:Ce,options:Re,mutex:Qe};for(On=Zt,Bn=ce,Array.isArray(Zt)&&(On=Zt[0]),an=0;an<On.length;an+=1)kn[Bn].metadata.hasOwnProperty("cmap")&&(Yt=kn[Bn].metadata.cmap.unicode.codeMap[On[an].charCodeAt(0)]),Yt||On[an].charCodeAt(0)<256&&kn[Bn].metadata.hasOwnProperty("Unicode")?jn+=On[an]:jn+="";var Ui="";return parseInt(Bn.slice(1))<14||mi==="WinAnsiEncoding"?Ui=en(jn,Bn).split("").map(function(ir){return ir.charCodeAt(0).toString(16)}).join(""):mi==="Identity-H"&&(Ui=wt(jn,kn[Bn])),Qe.isHex=!0,{text:Ui,x:ne,y:Ce,options:Re,mutex:Qe}};gt.events.push(["postProcessText",function(kt){var Yt=kt.text||"",Zt=[],ne={text:Yt,x:kt.x,y:kt.y,options:kt.options,mutex:kt.mutex};if(Array.isArray(Yt)){var Ce=0;for(Ce=0;Ce<Yt.length;Ce+=1)Array.isArray(Yt[Ce])&&Yt[Ce].length===3?Zt.push([Qt(Object.assign({},ne,{text:Yt[Ce][0]})).text,Yt[Ce][1],Yt[Ce][2]]):Zt.push(Qt(Object.assign({},ne,{text:Yt[Ce]})).text);kt.text=Zt}else kt.text=Qt(Object.assign({},ne,{text:Yt})).text}])}(so),function(yt){var gt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};yt.existsFileInVFS=function(wt){return gt.call(this),this.internal.vFS[wt]!==void 0},yt.addFileToVFS=function(wt,Ct){return gt.call(this),this.internal.vFS[wt]=Ct,this},yt.getFileFromVFS=function(wt){return gt.call(this),this.internal.vFS[wt]!==void 0?this.internal.vFS[wt]:null}}(so.API),function(yt){yt.__bidiEngine__=yt.prototype.__bidiEngine__=function(Ct){var Qt,kt,Yt,Zt,ne,Ce,Re,Qe=gt,en=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ce=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],kn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Bn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},jn=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],an=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),On=!1,mi=0;this.__bidiEngine__={};var Ui=function(yn){var bn=yn.charCodeAt(),bi=bn>>8,hi=Bn[bi];return hi!==void 0?Qe[256*hi+(255&bn)]:bi===252||bi===253?"AL":an.test(bi)?"L":bi===8?"R":"N"},ir=function(yn){for(var bn,bi=0;bi<yn.length;bi++){if((bn=Ui(yn.charAt(bi)))==="L")return!1;if(bn==="R")return!0}return!1},Er=function(yn,bn,bi,hi){var cr,sr,Vi,zi,Gi=bn[hi];switch(Gi){case"L":case"R":On=!1;break;case"N":case"AN":break;case"EN":On&&(Gi="AN");break;case"AL":On=!0,Gi="R";break;case"WS":Gi="N";break;case"CS":hi<1||hi+1>=bn.length||(cr=bi[hi-1])!=="EN"&&cr!=="AN"||(sr=bn[hi+1])!=="EN"&&sr!=="AN"?Gi="N":On&&(sr="AN"),Gi=sr===cr?sr:"N";break;case"ES":Gi=(cr=hi>0?bi[hi-1]:"B")==="EN"&&hi+1<bn.length&&bn[hi+1]==="EN"?"EN":"N";break;case"ET":if(hi>0&&bi[hi-1]==="EN"){Gi="EN";break}if(On){Gi="N";break}for(Vi=hi+1,zi=bn.length;Vi<zi&&bn[Vi]==="ET";)Vi++;Gi=Vi<zi&&bn[Vi]==="EN"?"EN":"N";break;case"NSM":if(Yt&&!Zt){for(zi=bn.length,Vi=hi+1;Vi<zi&&bn[Vi]==="NSM";)Vi++;if(Vi<zi){var rr=yn[hi],ao=rr>=1425&&rr<=2303||rr===64286;if(cr=bn[Vi],ao&&(cr==="R"||cr==="AL")){Gi="R";break}}}Gi=hi<1||(cr=bn[hi-1])==="B"?"N":bi[hi-1];break;case"B":On=!1,Qt=!0,Gi=mi;break;case"S":kt=!0,Gi="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":On=!1;break;case"BN":Gi="N"}return Gi},_i=function(yn,bn,bi){var hi=yn.split("");return bi&&li(hi,bi,{hiLevel:mi}),hi.reverse(),bn&&bn.reverse(),hi.join("")},li=function(yn,bn,bi){var hi,cr,sr,Vi,zi,Gi=-1,rr=yn.length,ao=0,tn=[],Un=mi?ce:en,Gn=[];for(On=!1,Qt=!1,kt=!1,cr=0;cr<rr;cr++)Gn[cr]=Ui(yn[cr]);for(sr=0;sr<rr;sr++){if(zi=ao,tn[sr]=Er(yn,Gn,tn,sr),hi=240&(ao=Un[zi][kn[tn[sr]]]),ao&=15,bn[sr]=Vi=Un[ao][5],hi>0)if(hi===16){for(cr=Gi;cr<sr;cr++)bn[cr]=1;Gi=-1}else Gi=-1;if(Un[ao][6])Gi===-1&&(Gi=sr);else if(Gi>-1){for(cr=Gi;cr<sr;cr++)bn[cr]=Vi;Gi=-1}Gn[sr]==="B"&&(bn[sr]=0),bi.hiLevel|=Vi}kt&&function(pi,Oi,$i){for(var Wi=0;Wi<$i;Wi++)if(pi[Wi]==="S"){Oi[Wi]=mi;for(var or=Wi-1;or>=0&&pi[or]==="WS";or--)Oi[or]=mi}}(Gn,bn,rr)},Xi=function(yn,bn,bi,hi,cr){if(!(cr.hiLevel<yn)){if(yn===1&&mi===1&&!Qt)return bn.reverse(),void(bi&&bi.reverse());for(var sr,Vi,zi,Gi,rr=bn.length,ao=0;ao<rr;){if(hi[ao]>=yn){for(zi=ao+1;zi<rr&&hi[zi]>=yn;)zi++;for(Gi=ao,Vi=zi-1;Gi<Vi;Gi++,Vi--)sr=bn[Gi],bn[Gi]=bn[Vi],bn[Vi]=sr,bi&&(sr=bi[Gi],bi[Gi]=bi[Vi],bi[Vi]=sr);ao=zi}ao++}}},yr=function(yn,bn,bi){var hi=yn.split(""),cr={hiLevel:mi};return bi||(bi=[]),li(hi,bi,cr),function(sr,Vi,zi){if(zi.hiLevel!==0&&Re)for(var Gi,rr=0;rr<sr.length;rr++)Vi[rr]===1&&(Gi=jn.indexOf(sr[rr]))>=0&&(sr[rr]=jn[Gi+1])}(hi,bi,cr),Xi(2,hi,bn,bi,cr),Xi(1,hi,bn,bi,cr),hi.join("")};return this.__bidiEngine__.doBidiReorder=function(yn,bn,bi){if(function(cr,sr){if(sr)for(var Vi=0;Vi<cr.length;Vi++)sr[Vi]=Vi;Zt===void 0&&(Zt=ir(cr)),Ce===void 0&&(Ce=ir(cr))}(yn,bn),Yt||!ne||Ce)if(Yt&&ne&&Zt^Ce)mi=Zt?1:0,yn=_i(yn,bn,bi);else if(!Yt&&ne&&Ce)mi=Zt?1:0,yn=yr(yn,bn,bi),yn=_i(yn,bn);else if(!Yt||Zt||ne||Ce){if(Yt&&!ne&&Zt^Ce)yn=_i(yn,bn),Zt?(mi=0,yn=yr(yn,bn,bi)):(mi=1,yn=yr(yn,bn,bi),yn=_i(yn,bn));else if(Yt&&Zt&&!ne&&Ce)mi=1,yn=yr(yn,bn,bi),yn=_i(yn,bn);else if(!Yt&&!ne&&Zt^Ce){var hi=Re;Zt?(mi=1,yn=yr(yn,bn,bi),mi=0,Re=!1,yn=yr(yn,bn,bi),Re=hi):(mi=0,yn=yr(yn,bn,bi),yn=_i(yn,bn),mi=1,Re=!1,yn=yr(yn,bn,bi),Re=hi,yn=_i(yn,bn))}}else mi=0,yn=yr(yn,bn,bi);else mi=Zt?1:0,yn=yr(yn,bn,bi);return yn},this.__bidiEngine__.setOptions=function(yn){yn&&(Yt=yn.isInputVisual,ne=yn.isOutputVisual,Zt=yn.isInputRtl,Ce=yn.isOutputRtl,Re=yn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ct),this.__bidiEngine__};var gt=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],wt=new yt.__bidiEngine__({isInputVisual:!0});yt.API.events.push(["postProcessText",function(Ct){var Qt=Ct.text;Ct.x,Ct.y;var kt=Ct.options||{};Ct.mutex,kt.lang;var Yt=[];if(kt.isInputVisual=typeof kt.isInputVisual!="boolean"||kt.isInputVisual,wt.setOptions(kt),Object.prototype.toString.call(Qt)==="[object Array]"){var Zt=0;for(Yt=[],Zt=0;Zt<Qt.length;Zt+=1)Object.prototype.toString.call(Qt[Zt])==="[object Array]"?Yt.push([wt.doBidiReorder(Qt[Zt][0]),Qt[Zt][1],Qt[Zt][2]]):Yt.push([wt.doBidiReorder(Qt[Zt])]);Ct.text=Yt}else Ct.text=wt.doBidiReorder(Qt);wt.setOptions({isInputVisual:!0})}])}(so),so.API.TTFFont=function(){function yt(gt){var wt;if(this.rawData=gt,wt=this.contents=new Lh(gt),this.contents.pos=4,wt.readString(4)==="ttcf")throw new Error("TTCF not supported.");wt.pos=0,this.parse(),this.subset=new tl(this),this.registerTTF()}return yt.open=function(gt){return new yt(gt)},yt.prototype.parse=function(){return this.directory=new gf(this.contents),this.head=new Wo(this),this.name=new Da(this),this.cmap=new _u(this),this.toUnicode={},this.hhea=new sl(this),this.maxp=new fh(this),this.hmtx=new zl(this),this.post=new kl(this),this.os2=new Ts(this),this.loca=new Na(this),this.glyf=new ia(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},yt.prototype.registerTTF=function(){var gt,wt,Ct,Qt,kt;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Yt,Zt,ne,Ce;for(Ce=[],Yt=0,Zt=(ne=this.bbox).length;Yt<Zt;Yt++)gt=ne[Yt],Ce.push(Math.round(gt*this.scaleFactor));return Ce}.call(this),this.stemV=0,this.post.exists?(Ct=255&(Qt=this.post.italic_angle),32768&(wt=Qt>>16)&&(wt=-(1+(65535^wt))),this.italicAngle=+(wt+"."+Ct)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(kt=this.familyClass)===1||kt===2||kt===3||kt===4||kt===5||kt===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},yt.prototype.characterToGlyph=function(gt){var wt;return((wt=this.cmap.unicode)!=null?wt.codeMap[gt]:void 0)||0},yt.prototype.widthOfGlyph=function(gt){var wt;return wt=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(gt).advance*wt},yt.prototype.widthOfString=function(gt,wt,Ct){var Qt,kt,Yt,Zt;for(Yt=0,kt=0,Zt=(gt=""+gt).length;0<=Zt?kt<Zt:kt>Zt;kt=0<=Zt?++kt:--kt)Qt=gt.charCodeAt(kt),Yt+=this.widthOfGlyph(this.characterToGlyph(Qt))+Ct*(1e3/wt)||0;return Yt*(wt/1e3)},yt.prototype.lineHeight=function(gt,wt){var Ct;return wt==null&&(wt=!1),Ct=wt?this.lineGap:0,(this.ascender+Ct-this.decender)/1e3*gt},yt}();var hu,Lh=function(){function yt(gt){this.data=gt!=null?gt:[],this.pos=0,this.length=this.data.length}return yt.prototype.readByte=function(){return this.data[this.pos++]},yt.prototype.writeByte=function(gt){return this.data[this.pos++]=gt},yt.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},yt.prototype.writeUInt32=function(gt){return this.writeByte(gt>>>24&255),this.writeByte(gt>>16&255),this.writeByte(gt>>8&255),this.writeByte(255&gt)},yt.prototype.readInt32=function(){var gt;return(gt=this.readUInt32())>=2147483648?gt-4294967296:gt},yt.prototype.writeInt32=function(gt){return gt<0&&(gt+=4294967296),this.writeUInt32(gt)},yt.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},yt.prototype.writeUInt16=function(gt){return this.writeByte(gt>>8&255),this.writeByte(255&gt)},yt.prototype.readInt16=function(){var gt;return(gt=this.readUInt16())>=32768?gt-65536:gt},yt.prototype.writeInt16=function(gt){return gt<0&&(gt+=65536),this.writeUInt16(gt)},yt.prototype.readString=function(gt){var wt,Ct;for(Ct=[],wt=0;0<=gt?wt<gt:wt>gt;wt=0<=gt?++wt:--wt)Ct[wt]=String.fromCharCode(this.readByte());return Ct.join("")},yt.prototype.writeString=function(gt){var wt,Ct,Qt;for(Qt=[],wt=0,Ct=gt.length;0<=Ct?wt<Ct:wt>Ct;wt=0<=Ct?++wt:--wt)Qt.push(this.writeByte(gt.charCodeAt(wt)));return Qt},yt.prototype.readShort=function(){return this.readInt16()},yt.prototype.writeShort=function(gt){return this.writeInt16(gt)},yt.prototype.readLongLong=function(){var gt,wt,Ct,Qt,kt,Yt,Zt,ne;return gt=this.readByte(),wt=this.readByte(),Ct=this.readByte(),Qt=this.readByte(),kt=this.readByte(),Yt=this.readByte(),Zt=this.readByte(),ne=this.readByte(),128&gt?-1*(72057594037927940*(255^gt)+281474976710656*(255^wt)+1099511627776*(255^Ct)+4294967296*(255^Qt)+16777216*(255^kt)+65536*(255^Yt)+256*(255^Zt)+(255^ne)+1):72057594037927940*gt+281474976710656*wt+1099511627776*Ct+4294967296*Qt+16777216*kt+65536*Yt+256*Zt+ne},yt.prototype.writeLongLong=function(gt){var wt,Ct;return wt=Math.floor(gt/4294967296),Ct=4294967295&gt,this.writeByte(wt>>24&255),this.writeByte(wt>>16&255),this.writeByte(wt>>8&255),this.writeByte(255&wt),this.writeByte(Ct>>24&255),this.writeByte(Ct>>16&255),this.writeByte(Ct>>8&255),this.writeByte(255&Ct)},yt.prototype.readInt=function(){return this.readInt32()},yt.prototype.writeInt=function(gt){return this.writeInt32(gt)},yt.prototype.read=function(gt){var wt,Ct;for(wt=[],Ct=0;0<=gt?Ct<gt:Ct>gt;Ct=0<=gt?++Ct:--Ct)wt.push(this.readByte());return wt},yt.prototype.write=function(gt){var wt,Ct,Qt,kt;for(kt=[],Ct=0,Qt=gt.length;Ct<Qt;Ct++)wt=gt[Ct],kt.push(this.writeByte(wt));return kt},yt}(),gf=function(){var yt;function gt(wt){var Ct,Qt,kt;for(this.scalarType=wt.readInt(),this.tableCount=wt.readShort(),this.searchRange=wt.readShort(),this.entrySelector=wt.readShort(),this.rangeShift=wt.readShort(),this.tables={},Qt=0,kt=this.tableCount;0<=kt?Qt<kt:Qt>kt;Qt=0<=kt?++Qt:--Qt)Ct={tag:wt.readString(4),checksum:wt.readInt(),offset:wt.readInt(),length:wt.readInt()},this.tables[Ct.tag]=Ct}return gt.prototype.encode=function(wt){var Ct,Qt,kt,Yt,Zt,ne,Ce,Re,Qe,en,ce,kn,Bn;for(Bn in ce=Object.keys(wt).length,ne=Math.log(2),Qe=16*Math.floor(Math.log(ce)/ne),Yt=Math.floor(Qe/ne),Re=16*ce-Qe,(Qt=new Lh).writeInt(this.scalarType),Qt.writeShort(ce),Qt.writeShort(Qe),Qt.writeShort(Yt),Qt.writeShort(Re),kt=16*ce,Ce=Qt.pos+kt,Zt=null,kn=[],wt)for(en=wt[Bn],Qt.writeString(Bn),Qt.writeInt(yt(en)),Qt.writeInt(Ce),Qt.writeInt(en.length),kn=kn.concat(en),Bn==="head"&&(Zt=Ce),Ce+=en.length;Ce%4;)kn.push(0),Ce++;return Qt.write(kn),Ct=2981146554-yt(Qt.data),Qt.pos=Zt+8,Qt.writeUInt32(Ct),Qt.data},yt=function(wt){var Ct,Qt,kt,Yt;for(wt=rc.call(wt);wt.length%4;)wt.push(0);for(kt=new Lh(wt),Qt=0,Ct=0,Yt=wt.length;Ct<Yt;Ct=Ct+=4)Qt+=kt.readUInt32();return 4294967295&Qt},gt}(),Ic={}.hasOwnProperty,pa=function(yt,gt){for(var wt in gt)Ic.call(gt,wt)&&(yt[wt]=gt[wt]);function Ct(){this.constructor=yt}return Ct.prototype=gt.prototype,yt.prototype=new Ct,yt.__super__=gt.prototype,yt};hu=function(){function yt(gt){var wt;this.file=gt,wt=this.file.directory.tables[this.tag],this.exists=!!wt,wt&&(this.offset=wt.offset,this.length=wt.length,this.parse(this.file.contents))}return yt.prototype.parse=function(){},yt.prototype.encode=function(){},yt.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},yt}();var Wo=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="head",gt.prototype.parse=function(wt){return wt.pos=this.offset,this.version=wt.readInt(),this.revision=wt.readInt(),this.checkSumAdjustment=wt.readInt(),this.magicNumber=wt.readInt(),this.flags=wt.readShort(),this.unitsPerEm=wt.readShort(),this.created=wt.readLongLong(),this.modified=wt.readLongLong(),this.xMin=wt.readShort(),this.yMin=wt.readShort(),this.xMax=wt.readShort(),this.yMax=wt.readShort(),this.macStyle=wt.readShort(),this.lowestRecPPEM=wt.readShort(),this.fontDirectionHint=wt.readShort(),this.indexToLocFormat=wt.readShort(),this.glyphDataFormat=wt.readShort()},gt.prototype.encode=function(wt){var Ct;return(Ct=new Lh).writeInt(this.version),Ct.writeInt(this.revision),Ct.writeInt(this.checkSumAdjustment),Ct.writeInt(this.magicNumber),Ct.writeShort(this.flags),Ct.writeShort(this.unitsPerEm),Ct.writeLongLong(this.created),Ct.writeLongLong(this.modified),Ct.writeShort(this.xMin),Ct.writeShort(this.yMin),Ct.writeShort(this.xMax),Ct.writeShort(this.yMax),Ct.writeShort(this.macStyle),Ct.writeShort(this.lowestRecPPEM),Ct.writeShort(this.fontDirectionHint),Ct.writeShort(wt),Ct.writeShort(this.glyphDataFormat),Ct.data},gt}(),fu=function(){function yt(gt,wt){var Ct,Qt,kt,Yt,Zt,ne,Ce,Re,Qe,en,ce,kn,Bn,jn,an,On,mi;switch(this.platformID=gt.readUInt16(),this.encodingID=gt.readShort(),this.offset=wt+gt.readInt(),Qe=gt.pos,gt.pos=this.offset,this.format=gt.readUInt16(),this.length=gt.readUInt16(),this.language=gt.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(ne=0;ne<256;++ne)this.codeMap[ne]=gt.readByte();break;case 4:for(ce=gt.readUInt16(),en=ce/2,gt.pos+=6,kt=function(){var Ui,ir;for(ir=[],ne=Ui=0;0<=en?Ui<en:Ui>en;ne=0<=en?++Ui:--Ui)ir.push(gt.readUInt16());return ir}(),gt.pos+=2,Bn=function(){var Ui,ir;for(ir=[],ne=Ui=0;0<=en?Ui<en:Ui>en;ne=0<=en?++Ui:--Ui)ir.push(gt.readUInt16());return ir}(),Ce=function(){var Ui,ir;for(ir=[],ne=Ui=0;0<=en?Ui<en:Ui>en;ne=0<=en?++Ui:--Ui)ir.push(gt.readUInt16());return ir}(),Re=function(){var Ui,ir;for(ir=[],ne=Ui=0;0<=en?Ui<en:Ui>en;ne=0<=en?++Ui:--Ui)ir.push(gt.readUInt16());return ir}(),Qt=(this.length-gt.pos+this.offset)/2,Zt=function(){var Ui,ir;for(ir=[],ne=Ui=0;0<=Qt?Ui<Qt:Ui>Qt;ne=0<=Qt?++Ui:--Ui)ir.push(gt.readUInt16());return ir}(),ne=an=0,mi=kt.length;an<mi;ne=++an)for(jn=kt[ne],Ct=On=kn=Bn[ne];kn<=jn?On<=jn:On>=jn;Ct=kn<=jn?++On:--On)Re[ne]===0?Yt=Ct+Ce[ne]:(Yt=Zt[Re[ne]/2+(Ct-kn)-(en-ne)]||0)!==0&&(Yt+=Ce[ne]),this.codeMap[Ct]=65535&Yt}gt.pos=Qe}return yt.encode=function(gt,wt){var Ct,Qt,kt,Yt,Zt,ne,Ce,Re,Qe,en,ce,kn,Bn,jn,an,On,mi,Ui,ir,Er,_i,li,Xi,yr,yn,bn,bi,hi,cr,sr,Vi,zi,Gi,rr,ao,tn,Un,Gn,pi,Oi,$i,Wi,or,Mr,Gr,Uo;switch(hi=new Lh,Yt=Object.keys(gt).sort(function(Lo,Ss){return Lo-Ss}),wt){case"macroman":for(Bn=0,jn=function(){var Lo=[];for(kn=0;kn<256;++kn)Lo.push(0);return Lo}(),On={0:0},kt={},cr=0,Gi=Yt.length;cr<Gi;cr++)On[or=gt[Qt=Yt[cr]]]==null&&(On[or]=++Bn),kt[Qt]={old:gt[Qt],new:On[gt[Qt]]},jn[Qt]=On[gt[Qt]];return hi.writeUInt16(1),hi.writeUInt16(0),hi.writeUInt32(12),hi.writeUInt16(0),hi.writeUInt16(262),hi.writeUInt16(0),hi.write(jn),{charMap:kt,subtable:hi.data,maxGlyphID:Bn+1};case"unicode":for(bn=[],Qe=[],mi=0,On={},Ct={},an=Ce=null,sr=0,rr=Yt.length;sr<rr;sr++)On[ir=gt[Qt=Yt[sr]]]==null&&(On[ir]=++mi),Ct[Qt]={old:ir,new:On[ir]},Zt=On[ir]-Qt,an!=null&&Zt===Ce||(an&&Qe.push(an),bn.push(Qt),Ce=Zt),an=Qt;for(an&&Qe.push(an),Qe.push(65535),bn.push(65535),yr=2*(Xi=bn.length),li=2*Math.pow(Math.log(Xi)/Math.LN2,2),en=Math.log(li/2)/Math.LN2,_i=2*Xi-li,ne=[],Er=[],ce=[],kn=Vi=0,ao=bn.length;Vi<ao;kn=++Vi){if(yn=bn[kn],Re=Qe[kn],yn===65535){ne.push(0),Er.push(0);break}if(yn-(bi=Ct[yn].new)>=32768)for(ne.push(0),Er.push(2*(ce.length+Xi-kn)),Qt=zi=yn;yn<=Re?zi<=Re:zi>=Re;Qt=yn<=Re?++zi:--zi)ce.push(Ct[Qt].new);else ne.push(bi-yn),Er.push(0)}for(hi.writeUInt16(3),hi.writeUInt16(1),hi.writeUInt32(12),hi.writeUInt16(4),hi.writeUInt16(16+8*Xi+2*ce.length),hi.writeUInt16(0),hi.writeUInt16(yr),hi.writeUInt16(li),hi.writeUInt16(en),hi.writeUInt16(_i),$i=0,tn=Qe.length;$i<tn;$i++)Qt=Qe[$i],hi.writeUInt16(Qt);for(hi.writeUInt16(0),Wi=0,Un=bn.length;Wi<Un;Wi++)Qt=bn[Wi],hi.writeUInt16(Qt);for(Mr=0,Gn=ne.length;Mr<Gn;Mr++)Zt=ne[Mr],hi.writeUInt16(Zt);for(Gr=0,pi=Er.length;Gr<pi;Gr++)Ui=Er[Gr],hi.writeUInt16(Ui);for(Uo=0,Oi=ce.length;Uo<Oi;Uo++)Bn=ce[Uo],hi.writeUInt16(Bn);return{charMap:Ct,subtable:hi.data,maxGlyphID:mi+1}}},yt}(),_u=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="cmap",gt.prototype.parse=function(wt){var Ct,Qt,kt;for(wt.pos=this.offset,this.version=wt.readUInt16(),kt=wt.readUInt16(),this.tables=[],this.unicode=null,Qt=0;0<=kt?Qt<kt:Qt>kt;Qt=0<=kt?++Qt:--Qt)Ct=new fu(wt,this.offset),this.tables.push(Ct),Ct.isUnicode&&this.unicode==null&&(this.unicode=Ct);return!0},gt.encode=function(wt,Ct){var Qt,kt;return Ct==null&&(Ct="macroman"),Qt=fu.encode(wt,Ct),(kt=new Lh).writeUInt16(0),kt.writeUInt16(1),Qt.table=kt.data.concat(Qt.subtable),Qt},gt}(),sl=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="hhea",gt.prototype.parse=function(wt){return wt.pos=this.offset,this.version=wt.readInt(),this.ascender=wt.readShort(),this.decender=wt.readShort(),this.lineGap=wt.readShort(),this.advanceWidthMax=wt.readShort(),this.minLeftSideBearing=wt.readShort(),this.minRightSideBearing=wt.readShort(),this.xMaxExtent=wt.readShort(),this.caretSlopeRise=wt.readShort(),this.caretSlopeRun=wt.readShort(),this.caretOffset=wt.readShort(),wt.pos+=8,this.metricDataFormat=wt.readShort(),this.numberOfMetrics=wt.readUInt16()},gt}(),Ts=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="OS/2",gt.prototype.parse=function(wt){if(wt.pos=this.offset,this.version=wt.readUInt16(),this.averageCharWidth=wt.readShort(),this.weightClass=wt.readUInt16(),this.widthClass=wt.readUInt16(),this.type=wt.readShort(),this.ySubscriptXSize=wt.readShort(),this.ySubscriptYSize=wt.readShort(),this.ySubscriptXOffset=wt.readShort(),this.ySubscriptYOffset=wt.readShort(),this.ySuperscriptXSize=wt.readShort(),this.ySuperscriptYSize=wt.readShort(),this.ySuperscriptXOffset=wt.readShort(),this.ySuperscriptYOffset=wt.readShort(),this.yStrikeoutSize=wt.readShort(),this.yStrikeoutPosition=wt.readShort(),this.familyClass=wt.readShort(),this.panose=function(){var Ct,Qt;for(Qt=[],Ct=0;Ct<10;++Ct)Qt.push(wt.readByte());return Qt}(),this.charRange=function(){var Ct,Qt;for(Qt=[],Ct=0;Ct<4;++Ct)Qt.push(wt.readInt());return Qt}(),this.vendorID=wt.readString(4),this.selection=wt.readShort(),this.firstCharIndex=wt.readShort(),this.lastCharIndex=wt.readShort(),this.version>0&&(this.ascent=wt.readShort(),this.descent=wt.readShort(),this.lineGap=wt.readShort(),this.winAscent=wt.readShort(),this.winDescent=wt.readShort(),this.codePageRange=function(){var Ct,Qt;for(Qt=[],Ct=0;Ct<2;Ct=++Ct)Qt.push(wt.readInt());return Qt}(),this.version>1))return this.xHeight=wt.readShort(),this.capHeight=wt.readShort(),this.defaultChar=wt.readShort(),this.breakChar=wt.readShort(),this.maxContext=wt.readShort()},gt}(),kl=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="post",gt.prototype.parse=function(wt){var Ct,Qt,kt;switch(wt.pos=this.offset,this.format=wt.readInt(),this.italicAngle=wt.readInt(),this.underlinePosition=wt.readShort(),this.underlineThickness=wt.readShort(),this.isFixedPitch=wt.readInt(),this.minMemType42=wt.readInt(),this.maxMemType42=wt.readInt(),this.minMemType1=wt.readInt(),this.maxMemType1=wt.readInt(),this.format){case 65536:break;case 131072:var Yt;for(Qt=wt.readUInt16(),this.glyphNameIndex=[],Yt=0;0<=Qt?Yt<Qt:Yt>Qt;Yt=0<=Qt?++Yt:--Yt)this.glyphNameIndex.push(wt.readUInt16());for(this.names=[],kt=[];wt.pos<this.offset+this.length;)Ct=wt.readByte(),kt.push(this.names.push(wt.readString(Ct)));return kt;case 151552:return Qt=wt.readUInt16(),this.offsets=wt.read(Qt);case 196608:break;case 262144:return this.map=function(){var Zt,ne,Ce;for(Ce=[],Yt=Zt=0,ne=this.file.maxp.numGlyphs;0<=ne?Zt<ne:Zt>ne;Yt=0<=ne?++Zt:--Zt)Ce.push(wt.readUInt32());return Ce}.call(this)}},gt}(),Iu=function(yt,gt){this.raw=yt,this.length=yt.length,this.platformID=gt.platformID,this.encodingID=gt.encodingID,this.languageID=gt.languageID},Da=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="name",gt.prototype.parse=function(wt){var Ct,Qt,kt,Yt,Zt,ne,Ce,Re,Qe,en,ce;for(wt.pos=this.offset,wt.readShort(),Ct=wt.readShort(),ne=wt.readShort(),Qt=[],Yt=0;0<=Ct?Yt<Ct:Yt>Ct;Yt=0<=Ct?++Yt:--Yt)Qt.push({platformID:wt.readShort(),encodingID:wt.readShort(),languageID:wt.readShort(),nameID:wt.readShort(),length:wt.readShort(),offset:this.offset+ne+wt.readShort()});for(Ce={},Yt=Qe=0,en=Qt.length;Qe<en;Yt=++Qe)kt=Qt[Yt],wt.pos=kt.offset,Re=wt.readString(kt.length),Zt=new Iu(Re,kt),Ce[ce=kt.nameID]==null&&(Ce[ce]=[]),Ce[kt.nameID].push(Zt);this.strings=Ce,this.copyright=Ce[0],this.fontFamily=Ce[1],this.fontSubfamily=Ce[2],this.uniqueSubfamily=Ce[3],this.fontName=Ce[4],this.version=Ce[5];try{this.postscriptName=Ce[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(kn){this.postscriptName=Ce[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Ce[7],this.manufacturer=Ce[8],this.designer=Ce[9],this.description=Ce[10],this.vendorUrl=Ce[11],this.designerUrl=Ce[12],this.license=Ce[13],this.licenseUrl=Ce[14],this.preferredFamily=Ce[15],this.preferredSubfamily=Ce[17],this.compatibleFull=Ce[18],this.sampleText=Ce[19]},gt}(),fh=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="maxp",gt.prototype.parse=function(wt){return wt.pos=this.offset,this.version=wt.readInt(),this.numGlyphs=wt.readUInt16(),this.maxPoints=wt.readUInt16(),this.maxContours=wt.readUInt16(),this.maxCompositePoints=wt.readUInt16(),this.maxComponentContours=wt.readUInt16(),this.maxZones=wt.readUInt16(),this.maxTwilightPoints=wt.readUInt16(),this.maxStorage=wt.readUInt16(),this.maxFunctionDefs=wt.readUInt16(),this.maxInstructionDefs=wt.readUInt16(),this.maxStackElements=wt.readUInt16(),this.maxSizeOfInstructions=wt.readUInt16(),this.maxComponentElements=wt.readUInt16(),this.maxComponentDepth=wt.readUInt16()},gt}(),zl=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="hmtx",gt.prototype.parse=function(wt){var Ct,Qt,kt,Yt,Zt,ne,Ce;for(wt.pos=this.offset,this.metrics=[],Ct=0,ne=this.file.hhea.numberOfMetrics;0<=ne?Ct<ne:Ct>ne;Ct=0<=ne?++Ct:--Ct)this.metrics.push({advance:wt.readUInt16(),lsb:wt.readInt16()});for(kt=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Re,Qe;for(Qe=[],Ct=Re=0;0<=kt?Re<kt:Re>kt;Ct=0<=kt?++Re:--Re)Qe.push(wt.readInt16());return Qe}(),this.widths=function(){var Re,Qe,en,ce;for(ce=[],Re=0,Qe=(en=this.metrics).length;Re<Qe;Re++)Yt=en[Re],ce.push(Yt.advance);return ce}.call(this),Qt=this.widths[this.widths.length-1],Ce=[],Ct=Zt=0;0<=kt?Zt<kt:Zt>kt;Ct=0<=kt?++Zt:--Zt)Ce.push(this.widths.push(Qt));return Ce},gt.prototype.forGlyph=function(wt){return wt in this.metrics?this.metrics[wt]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[wt-this.metrics.length]}},gt}(),rc=[].slice,ia=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="glyf",gt.prototype.parse=function(){return this.cache={}},gt.prototype.glyphFor=function(wt){var Ct,Qt,kt,Yt,Zt,ne,Ce,Re,Qe,en;return wt in this.cache?this.cache[wt]:(Yt=this.file.loca,Ct=this.file.contents,Qt=Yt.indexOf(wt),(kt=Yt.lengthOf(wt))===0?this.cache[wt]=null:(Ct.pos=this.offset+Qt,Zt=(ne=new Lh(Ct.read(kt))).readShort(),Re=ne.readShort(),en=ne.readShort(),Ce=ne.readShort(),Qe=ne.readShort(),this.cache[wt]=Zt===-1?new qs(ne,Re,en,Ce,Qe):new gu(ne,Zt,Re,en,Ce,Qe),this.cache[wt]))},gt.prototype.encode=function(wt,Ct,Qt){var kt,Yt,Zt,ne,Ce;for(Zt=[],Yt=[],ne=0,Ce=Ct.length;ne<Ce;ne++)kt=wt[Ct[ne]],Yt.push(Zt.length),kt&&(Zt=Zt.concat(kt.encode(Qt)));return Yt.push(Zt.length),{table:Zt,offsets:Yt}},gt}(),gu=function(){function yt(gt,wt,Ct,Qt,kt,Yt){this.raw=gt,this.numberOfContours=wt,this.xMin=Ct,this.yMin=Qt,this.xMax=kt,this.yMax=Yt,this.compound=!1}return yt.prototype.encode=function(){return this.raw.data},yt}(),qs=function(){function yt(gt,wt,Ct,Qt,kt){var Yt,Zt;for(this.raw=gt,this.xMin=wt,this.yMin=Ct,this.xMax=Qt,this.yMax=kt,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Yt=this.raw;Zt=Yt.readShort(),this.glyphOffsets.push(Yt.pos),this.glyphIDs.push(Yt.readUInt16()),32&Zt;)Yt.pos+=1&Zt?4:2,128&Zt?Yt.pos+=8:64&Zt?Yt.pos+=4:8&Zt&&(Yt.pos+=2)}return yt.prototype.encode=function(){var gt,wt,Ct;for(wt=new Lh(rc.call(this.raw.data)),gt=0,Ct=this.glyphIDs.length;gt<Ct;++gt)wt.pos=this.glyphOffsets[gt];return wt.data},yt}(),Na=function(yt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return pa(gt,hu),gt.prototype.tag="loca",gt.prototype.parse=function(wt){var Ct,Qt;return wt.pos=this.offset,Ct=this.file.head.indexToLocFormat,this.offsets=Ct===0?function(){var kt,Yt;for(Yt=[],Qt=0,kt=this.length;Qt<kt;Qt+=2)Yt.push(2*wt.readUInt16());return Yt}.call(this):function(){var kt,Yt;for(Yt=[],Qt=0,kt=this.length;Qt<kt;Qt+=4)Yt.push(wt.readUInt32());return Yt}.call(this)},gt.prototype.indexOf=function(wt){return this.offsets[wt]},gt.prototype.lengthOf=function(wt){return this.offsets[wt+1]-this.offsets[wt]},gt.prototype.encode=function(wt,Ct){for(var Qt=new Uint32Array(this.offsets.length),kt=0,Yt=0,Zt=0;Zt<Qt.length;++Zt)if(Qt[Zt]=kt,Yt<Ct.length&&Ct[Yt]==Zt){++Yt,Qt[Zt]=kt;var ne=this.offsets[Zt],Ce=this.offsets[Zt+1]-ne;Ce>0&&(kt+=Ce)}for(var Re=new Array(4*Qt.length),Qe=0;Qe<Qt.length;++Qe)Re[4*Qe+3]=255&Qt[Qe],Re[4*Qe+2]=(65280&Qt[Qe])>>8,Re[4*Qe+1]=(16711680&Qt[Qe])>>16,Re[4*Qe]=(4278190080&Qt[Qe])>>24;return Re},gt}(),tl=function(){function yt(gt){this.font=gt,this.subset={},this.unicodes={},this.next=33}return yt.prototype.generateCmap=function(){var gt,wt,Ct,Qt,kt;for(wt in Qt=this.font.cmap.tables[0].codeMap,gt={},kt=this.subset)Ct=kt[wt],gt[wt]=Qt[Ct];return gt},yt.prototype.glyphsFor=function(gt){var wt,Ct,Qt,kt,Yt,Zt,ne;for(Qt={},Yt=0,Zt=gt.length;Yt<Zt;Yt++)Qt[kt=gt[Yt]]=this.font.glyf.glyphFor(kt);for(kt in wt=[],Qt)(Ct=Qt[kt])!=null&&Ct.compound&&wt.push.apply(wt,Ct.glyphIDs);if(wt.length>0)for(kt in ne=this.glyphsFor(wt))Ct=ne[kt],Qt[kt]=Ct;return Qt},yt.prototype.encode=function(gt,wt){var Ct,Qt,kt,Yt,Zt,ne,Ce,Re,Qe,en,ce,kn,Bn,jn,an;for(Qt in Ct=_u.encode(this.generateCmap(),"unicode"),Yt=this.glyphsFor(gt),ce={0:0},an=Ct.charMap)ce[(ne=an[Qt]).old]=ne.new;for(kn in en=Ct.maxGlyphID,Yt)kn in ce||(ce[kn]=en++);return Re=function(On){var mi,Ui;for(mi in Ui={},On)Ui[On[mi]]=mi;return Ui}(ce),Qe=Object.keys(Re).sort(function(On,mi){return On-mi}),Bn=function(){var On,mi,Ui;for(Ui=[],On=0,mi=Qe.length;On<mi;On++)Zt=Qe[On],Ui.push(Re[Zt]);return Ui}(),kt=this.font.glyf.encode(Yt,Bn,ce),Ce=this.font.loca.encode(kt.offsets,Bn),jn={cmap:this.font.cmap.raw(),glyf:kt.table,loca:Ce,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(wt)},this.font.os2.exists&&(jn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(jn)},yt}();so.API.PDFObject=function(){var yt;function gt(){}return yt=function(wt,Ct){return(Array(Ct+1).join("0")+wt).slice(-Ct)},gt.convert=function(wt){var Ct,Qt,kt,Yt;if(Array.isArray(wt))return"["+function(){var Zt,ne,Ce;for(Ce=[],Zt=0,ne=wt.length;Zt<ne;Zt++)Ct=wt[Zt],Ce.push(gt.convert(Ct));return Ce}().join(" ")+"]";if(typeof wt=="string")return"/"+wt;if(wt!=null&&wt.isString)return"("+wt+")";if(wt instanceof Date)return"(D:"+yt(wt.getUTCFullYear(),4)+yt(wt.getUTCMonth(),2)+yt(wt.getUTCDate(),2)+yt(wt.getUTCHours(),2)+yt(wt.getUTCMinutes(),2)+yt(wt.getUTCSeconds(),2)+"Z)";if({}.toString.call(wt)==="[object Object]"){for(Qt in kt=["<<"],wt)Yt=wt[Qt],kt.push("/"+Qt+" "+gt.convert(Yt));return kt.push(">>"),kt.join(`
`)}return""+wt},gt}()},17115:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{ZP:function(){return Ie}});var zt=Kt(72071),ke=Kt(59301),Oe=Kt(47273),Cn=0,Be=(0,Oe.Z)();function vn(){var ge;return Be?(ge=Cn,Cn+=1):ge="TEST_OR_SSR",ge}function Ie(ge){var ye=ke.useState(),Nt=(0,zt.Z)(ye,2),se=Nt[0],oe=Nt[1];return ke.useEffect(function(){oe("rc_select_".concat(vn()))},[]),ge||se}},77861:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Ac:function(){return Vt},Xo:function(){return Co},Wx:function(){return gr},ZP:function(){return Jn},lk:function(){return Mt}});var zt=Kt(96663),ke=Kt(19127),Oe=Kt(90493),Cn=Kt(44127),Be=Kt(72071),vn=Kt(6620),Ie=Kt(20135),ge=Kt(18929),ye=Kt(48736),Nt=Kt(59301),se=Kt(92310),oe=Kt.n(se),me=Kt(34280),Ut=Kt(49658),et=Kt(10228),nt=Kt(8654),ht=function(we){var qe=we.className,In=we.customizeIcon,ui=we.customizeIconProps,Pi=we.onMouseDown,Fe=we.onClick,Qn=we.children,Ei;return typeof In=="function"?Ei=In(ui):Ei=In,Nt.createElement("span",{className:qe,onMouseDown:function(Sn){Sn.preventDefault(),Pi&&Pi(Sn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Fe,"aria-hidden":!0},Ei!==void 0?Ei:Nt.createElement("span",{className:oe()(qe.split(/\s+/).map(function(Ar){return"".concat(Ar,"-icon")}))},Qn))},at=ht;function ft(He,we,qe,In,ui){var Pi=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Fe=arguments.length>6?arguments[6]:void 0,Qn=arguments.length>7?arguments[7]:void 0,Ei=Nt.useMemo(function(){if((0,Ie.Z)(In)==="object")return In.clearIcon;if(ui)return ui},[In,ui]),Ar=Nt.useMemo(function(){return!!(!Pi&&In&&(qe.length||Fe)&&!(Qn==="combobox"&&Fe===""))},[In,Pi,qe.length,Fe,Qn]);return{allowClear:Ar,clearIcon:Nt.createElement(at,{className:"".concat(He,"-clear"),onMouseDown:we,customizeIcon:Ei},"\xD7")}}var vt=Nt.createContext(null);function Mt(){return Nt.useContext(vt)}function Rt(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,we=Nt.useState(!1),qe=(0,Be.Z)(we,2),In=qe[0],ui=qe[1],Pi=Nt.useRef(null),Fe=function(){window.clearTimeout(Pi.current)};Nt.useEffect(function(){return Fe},[]);var Qn=function(Ar,Sn){Fe(),Pi.current=window.setTimeout(function(){ui(Ar),Sn&&Sn()},He)};return[In,Qn,Fe]}function Gt(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,we=Nt.useRef(null),qe=Nt.useRef(null);Nt.useEffect(function(){return function(){window.clearTimeout(qe.current)}},[]);function In(ui){(ui||we.current===null)&&(we.current=ui),window.clearTimeout(qe.current),qe.current=window.setTimeout(function(){we.current=null},He)}return[function(){return we.current},In]}function $t(He,we,qe,In){var ui=Nt.useRef(null);ui.current={open:we,triggerOpen:qe,customizedTrigger:In},Nt.useEffect(function(){function Pi(Fe){var Qn;if(!((Qn=ui.current)!==null&&Qn!==void 0&&Qn.customizedTrigger)){var Ei=Fe.target;Ei.shadowRoot&&Fe.composed&&(Ei=Fe.composedPath()[0]||Ei),ui.current.open&&He().filter(function(Ar){return Ar}).every(function(Ar){return!Ar.contains(Ei)&&Ar!==Ei})&&ui.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Pi),function(){return window.removeEventListener("mousedown",Pi)}},[])}var ae=Kt(26112),ve=Kt(11780),fe=function(we,qe){var In,ui,Pi=we.prefixCls,Fe=we.id,Qn=we.inputElement,Ei=we.disabled,Ar=we.tabIndex,Sn=we.autoFocus,$n=we.autoComplete,xr=we.editable,dr=we.activeDescendantId,Dr=we.value,tr=we.maxLength,vr=we.onKeyDown,ur=we.onMouseDown,kr=we.onChange,Ao=we.onPaste,Oo=we.onCompositionStart,Kn=we.onCompositionEnd,Vo=we.open,rs=we.attrs,Po=Qn||Nt.createElement("input",null),zn=Po,Hi=zn.ref,pr=zn.props,jr=pr.onKeyDown,Ir=pr.onChange,co=pr.onMouseDown,Io=pr.onCompositionStart,oo=pr.onCompositionEnd,eo=pr.style;return(0,ye.Kp)(!("maxLength"in Po.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Po=Nt.cloneElement(Po,(0,Cn.Z)((0,Cn.Z)((0,Cn.Z)({type:"search"},pr),{},{id:Fe,ref:(0,nt.sQ)(qe,Hi),disabled:Ei,tabIndex:Ar,autoComplete:$n||"off",autoFocus:Sn,className:oe()("".concat(Pi,"-selection-search-input"),(In=Po)===null||In===void 0||(ui=In.props)===null||ui===void 0?void 0:ui.className),role:"combobox","aria-label":"Search","aria-expanded":Vo||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Fe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Fe,"_list"),"aria-activedescendant":Vo?dr:void 0},rs),{},{value:xr?Dr:"",maxLength:tr,readOnly:!xr,unselectable:xr?null:"on",style:(0,Cn.Z)((0,Cn.Z)({},eo),{},{opacity:xr?null:0}),onKeyDown:function(ai){vr(ai),jr&&jr(ai)},onMouseDown:function(ai){ur(ai),co&&co(ai)},onChange:function(ai){kr(ai),Ir&&Ir(ai)},onCompositionStart:function(ai){Oo(ai),Io&&Io(ai)},onCompositionEnd:function(ai){Kn(ai),oo&&oo(ai)},onPaste:Ao})),Po},Ye=Nt.forwardRef(fe);Ye.displayName="Input";var De=Ye;function hn(He){return Array.isArray(He)?He:He!==void 0?[He]:[]}var Ue=typeof window!="undefined"&&window.document&&window.document.documentElement,Pn=Ue;function qn(He){return He!=null}function un(He){return!He&&He!==0}function fn(He){return["string","number"].includes((0,Ie.Z)(He))}function mn(He){var we=void 0;return He&&(fn(He.title)?we=He.title.toString():fn(He.label)&&(we=He.label.toString())),we}function pe(He,we){Pn?Nt.useLayoutEffect(He,we):Nt.useEffect(He,we)}function Xt(He){var we;return(we=He.key)!==null&&we!==void 0?we:He.value}var Ve=function(we){we.preventDefault(),we.stopPropagation()},Vn=function(we){var qe=we.id,In=we.prefixCls,ui=we.values,Pi=we.open,Fe=we.searchValue,Qn=we.autoClearSearchValue,Ei=we.inputRef,Ar=we.placeholder,Sn=we.disabled,$n=we.mode,xr=we.showSearch,dr=we.autoFocus,Dr=we.autoComplete,tr=we.activeDescendantId,vr=we.tabIndex,ur=we.removeIcon,kr=we.maxTagCount,Ao=we.maxTagTextLength,Oo=we.maxTagPlaceholder,Kn=Oo===void 0?function(zo){return"+ ".concat(zo.length," ...")}:Oo,Vo=we.tagRender,rs=we.onToggleOpen,Po=we.onRemove,zn=we.onInputChange,Hi=we.onInputPaste,pr=we.onInputKeyDown,jr=we.onInputMouseDown,Ir=we.onInputCompositionStart,co=we.onInputCompositionEnd,Io=Nt.useRef(null),oo=(0,Nt.useState)(0),eo=(0,Be.Z)(oo,2),Br=eo[0],ai=eo[1],vo=(0,Nt.useState)(!1),ei=(0,Be.Z)(vo,2),Qo=ei[0],Vs=ei[1],Xo="".concat(In,"-selection"),Js=Pi||$n==="multiple"&&Qn===!1||$n==="tags"?Fe:"",ks=$n==="tags"||$n==="multiple"&&Qn===!1||xr&&(Pi||Qo);pe(function(){ai(Io.current.scrollWidth)},[Js]);function no(zo,Hs,Qa,Ra,hl){return Nt.createElement("span",{className:oe()("".concat(Xo,"-item"),(0,Oe.Z)({},"".concat(Xo,"-item-disabled"),Qa)),title:mn(zo)},Nt.createElement("span",{className:"".concat(Xo,"-item-content")},Hs),Ra&&Nt.createElement(at,{className:"".concat(Xo,"-item-remove"),onMouseDown:Ve,onClick:hl,customizeIcon:ur},"\xD7"))}function ro(zo,Hs,Qa,Ra,hl){var Do=function(os){Ve(os),rs(!Pi)};return Nt.createElement("span",{onMouseDown:Do},Vo({label:Hs,value:zo,disabled:Qa,closable:Ra,onClose:hl}))}function Go(zo){var Hs=zo.disabled,Qa=zo.label,Ra=zo.value,hl=!Sn&&!Hs,Do=Qa;if(typeof Ao=="number"&&(typeof Qa=="string"||typeof Qa=="number")){var yo=String(Do);yo.length>Ao&&(Do="".concat(yo.slice(0,Ao),"..."))}var os=function(Ps){Ps&&Ps.stopPropagation(),Po(zo)};return typeof Vo=="function"?ro(Ra,Do,Hs,hl,os):no(zo,Do,Hs,hl,os)}function Ro(zo){var Hs=typeof Kn=="function"?Kn(zo):Kn;return no({title:Hs},Hs,!1)}var Ji=Nt.createElement("div",{className:"".concat(Xo,"-search"),style:{width:Br},onFocus:function(){Vs(!0)},onBlur:function(){Vs(!1)}},Nt.createElement(De,{ref:Ei,open:Pi,prefixCls:In,id:qe,inputElement:null,disabled:Sn,autoFocus:dr,autoComplete:Dr,editable:ks,activeDescendantId:tr,value:Js,onKeyDown:pr,onMouseDown:jr,onChange:zn,onPaste:Hi,onCompositionStart:Ir,onCompositionEnd:co,tabIndex:vr,attrs:(0,ae.Z)(we,!0)}),Nt.createElement("span",{ref:Io,className:"".concat(Xo,"-search-mirror"),"aria-hidden":!0},Js,"\xA0")),re=Nt.createElement(ve.Z,{prefixCls:"".concat(Xo,"-overflow"),data:ui,renderItem:Go,renderRest:Ro,suffix:Ji,itemKey:Xt,maxCount:kr});return Nt.createElement(Nt.Fragment,null,re,!ui.length&&!Js&&Nt.createElement("span",{className:"".concat(Xo,"-placeholder")},Ar))},si=Vn,An=function(we){var qe=we.inputElement,In=we.prefixCls,ui=we.id,Pi=we.inputRef,Fe=we.disabled,Qn=we.autoFocus,Ei=we.autoComplete,Ar=we.activeDescendantId,Sn=we.mode,$n=we.open,xr=we.values,dr=we.placeholder,Dr=we.tabIndex,tr=we.showSearch,vr=we.searchValue,ur=we.activeValue,kr=we.maxLength,Ao=we.onInputKeyDown,Oo=we.onInputMouseDown,Kn=we.onInputChange,Vo=we.onInputPaste,rs=we.onInputCompositionStart,Po=we.onInputCompositionEnd,zn=we.title,Hi=Nt.useState(!1),pr=(0,Be.Z)(Hi,2),jr=pr[0],Ir=pr[1],co=Sn==="combobox",Io=co||tr,oo=xr[0],eo=vr||"";co&&ur&&!jr&&(eo=ur),Nt.useEffect(function(){co&&Ir(!1)},[co,ur]);var Br=Sn!=="combobox"&&!$n&&!tr?!1:!!eo,ai=zn===void 0?mn(oo):zn,vo=function(){if(oo)return null;var Qo=Br?{visibility:"hidden"}:void 0;return Nt.createElement("span",{className:"".concat(In,"-selection-placeholder"),style:Qo},dr)};return Nt.createElement(Nt.Fragment,null,Nt.createElement("span",{className:"".concat(In,"-selection-search")},Nt.createElement(De,{ref:Pi,prefixCls:In,id:ui,open:$n,inputElement:qe,disabled:Fe,autoFocus:Qn,autoComplete:Ei,editable:Io,activeDescendantId:Ar,value:eo,onKeyDown:Ao,onMouseDown:Oo,onChange:function(Qo){Ir(!0),Kn(Qo)},onPaste:Vo,onCompositionStart:rs,onCompositionEnd:Po,tabIndex:Dr,attrs:(0,ae.Z)(we,!0),maxLength:co?kr:void 0})),!co&&oo?Nt.createElement("span",{className:"".concat(In,"-selection-item"),title:ai,style:Br?{visibility:"hidden"}:void 0},oo.label):null,vo())},Nn=An;function Yn(He){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(He)}var Ci=function(we,qe){var In=(0,Nt.useRef)(null),ui=(0,Nt.useRef)(!1),Pi=we.prefixCls,Fe=we.open,Qn=we.mode,Ei=we.showSearch,Ar=we.tokenWithEnter,Sn=we.autoClearSearchValue,$n=we.onSearch,xr=we.onSearchSubmit,dr=we.onToggleOpen,Dr=we.onInputKeyDown,tr=we.domRef;Nt.useImperativeHandle(qe,function(){return{focus:function(){In.current.focus()},blur:function(){In.current.blur()}}});var vr=Gt(0),ur=(0,Be.Z)(vr,2),kr=ur[0],Ao=ur[1],Oo=function(eo){var Br=eo.which;(Br===et.Z.UP||Br===et.Z.DOWN)&&eo.preventDefault(),Dr&&Dr(eo),Br===et.Z.ENTER&&Qn==="tags"&&!ui.current&&!Fe&&(xr==null||xr(eo.target.value)),Yn(Br)&&dr(!0)},Kn=function(){Ao(!0)},Vo=(0,Nt.useRef)(null),rs=function(eo){$n(eo,!0,ui.current)!==!1&&dr(!0)},Po=function(){ui.current=!0},zn=function(eo){ui.current=!1,Qn!=="combobox"&&rs(eo.target.value)},Hi=function(eo){var Br=eo.target.value;if(Ar&&Vo.current&&/[\r\n]/.test(Vo.current)){var ai=Vo.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Br=Br.replace(ai,Vo.current)}Vo.current=null,rs(Br)},pr=function(eo){var Br=eo.clipboardData,ai=Br.getData("text");Vo.current=ai},jr=function(eo){var Br=eo.target;if(Br!==In.current){var ai=document.body.style.msTouchAction!==void 0;ai?setTimeout(function(){In.current.focus()}):In.current.focus()}},Ir=function(eo){var Br=kr();eo.target!==In.current&&!Br&&Qn!=="combobox"&&eo.preventDefault(),(Qn!=="combobox"&&(!Ei||!Br)||!Fe)&&(Fe&&Sn!==!1&&$n("",!0,!1),dr())},co={inputRef:In,onInputKeyDown:Oo,onInputMouseDown:Kn,onInputChange:Hi,onInputPaste:pr,onInputCompositionStart:Po,onInputCompositionEnd:zn},Io=Qn==="multiple"||Qn==="tags"?Nt.createElement(si,(0,zt.Z)({},we,co)):Nt.createElement(Nn,(0,zt.Z)({},we,co));return Nt.createElement("div",{ref:tr,className:"".concat(Pi,"-selector"),onClick:jr,onMouseDown:Ir},Io)},Mi=Nt.forwardRef(Ci);Mi.displayName="Selector";var Ri=Mi,Te=Kt(35593),ci=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ki=function(we){var qe=we===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:qe,adjustY:1},htmlRegion:"scroll"}}},Dn=function(we,qe){var In=we.prefixCls,ui=we.disabled,Pi=we.visible,Fe=we.children,Qn=we.popupElement,Ei=we.animation,Ar=we.transitionName,Sn=we.dropdownStyle,$n=we.dropdownClassName,xr=we.direction,dr=xr===void 0?"ltr":xr,Dr=we.placement,tr=we.builtinPlacements,vr=we.dropdownMatchSelectWidth,ur=we.dropdownRender,kr=we.dropdownAlign,Ao=we.getPopupContainer,Oo=we.empty,Kn=we.getTriggerDOMNode,Vo=we.onPopupVisibleChange,rs=we.onPopupMouseEnter,Po=(0,vn.Z)(we,ci),zn="".concat(In,"-dropdown"),Hi=Qn;ur&&(Hi=ur(Qn));var pr=Nt.useMemo(function(){return tr||ki(vr)},[tr,vr]),jr=Ei?"".concat(zn,"-").concat(Ei):Ar,Ir=typeof vr=="number",co=Nt.useMemo(function(){return Ir?null:vr===!1?"minWidth":"width"},[vr,Ir]),Io=Sn;Ir&&(Io=(0,Cn.Z)((0,Cn.Z)({},Io),{},{width:vr}));var oo=Nt.useRef(null);return Nt.useImperativeHandle(qe,function(){return{getPopupElement:function(){return oo.current}}}),Nt.createElement(Te.Z,(0,zt.Z)({},Po,{showAction:Vo?["click"]:[],hideAction:Vo?["click"]:[],popupPlacement:Dr||(dr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:pr,prefixCls:zn,popupTransitionName:jr,popup:Nt.createElement("div",{ref:oo,onMouseEnter:rs},Hi),stretch:co,popupAlign:kr,popupVisible:Pi,getPopupContainer:Ao,popupClassName:oe()($n,(0,Oe.Z)({},"".concat(zn,"-empty"),Oo)),popupStyle:Io,getTriggerDOMNode:Kn,onPopupVisibleChange:Vo}),Fe)},yi=Nt.forwardRef(Dn);yi.displayName="SelectTrigger";var En=yi,gn=Kt(4537);function Ne(He,we){var qe=He.key,In;return"value"in He&&(In=He.value),qe!=null?qe:In!==void 0?In:"rc-index-key-".concat(we)}function Xe(He,we){var qe=He||{},In=qe.label,ui=qe.value,Pi=qe.options,Fe=qe.groupLabel,Qn=In||(we?"children":"label");return{label:Qn,value:ui||"value",options:Pi||"options",groupLabel:Fe||Qn}}function wn(He){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=we.fieldNames,In=we.childrenAsData,ui=[],Pi=Xe(qe,!1),Fe=Pi.label,Qn=Pi.value,Ei=Pi.options,Ar=Pi.groupLabel;function Sn($n,xr){$n.forEach(function(dr){if(xr||!(Ei in dr)){var Dr=dr[Qn];ui.push({key:Ne(dr,ui.length),groupOption:xr,data:dr,label:dr[Fe],value:Dr})}else{var tr=dr[Ar];tr===void 0&&In&&(tr=dr.label),ui.push({key:Ne(dr,ui.length),group:!0,data:dr,label:tr}),Sn(dr[Ei],!0)}})}return Sn(He,!1),ui}function sn(He){var we=(0,Cn.Z)({},He);return"props"in we||Object.defineProperty(we,"props",{get:function(){return(0,ye.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),we}}),we}function Wn(He,we){if(!we||!we.length)return null;var qe=!1;function In(Pi,Fe){var Qn=(0,gn.Z)(Fe),Ei=Qn[0],Ar=Qn.slice(1);if(!Ei)return[Pi];var Sn=Pi.split(Ei);return qe=qe||Sn.length>1,Sn.reduce(function($n,xr){return[].concat((0,ke.Z)($n),(0,ke.Z)(In(xr,Ar)))},[]).filter(function($n){return $n})}var ui=In(He,we);return qe?ui:null}var Hn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Jt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function It(He){return He==="tags"||He==="multiple"}var bt=Nt.forwardRef(function(He,we){var qe,In,ui=He.id,Pi=He.prefixCls,Fe=He.className,Qn=He.showSearch,Ei=He.tagRender,Ar=He.direction,Sn=He.omitDomProps,$n=He.displayValues,xr=He.onDisplayValuesChange,dr=He.emptyOptions,Dr=He.notFoundContent,tr=Dr===void 0?"Not Found":Dr,vr=He.onClear,ur=He.mode,kr=He.disabled,Ao=He.loading,Oo=He.getInputElement,Kn=He.getRawInputElement,Vo=He.open,rs=He.defaultOpen,Po=He.onDropdownVisibleChange,zn=He.activeValue,Hi=He.onActiveValueChange,pr=He.activeDescendantId,jr=He.searchValue,Ir=He.autoClearSearchValue,co=He.onSearch,Io=He.onSearchSplit,oo=He.tokenSeparators,eo=He.allowClear,Br=He.suffixIcon,ai=He.clearIcon,vo=He.OptionList,ei=He.animation,Qo=He.transitionName,Vs=He.dropdownStyle,Xo=He.dropdownClassName,Js=He.dropdownMatchSelectWidth,ks=He.dropdownRender,no=He.dropdownAlign,ro=He.placement,Go=He.builtinPlacements,Ro=He.getPopupContainer,Ji=He.showAction,re=Ji===void 0?[]:Ji,zo=He.onFocus,Hs=He.onBlur,Qa=He.onKeyUp,Ra=He.onKeyDown,hl=He.onMouseDown,Do=(0,vn.Z)(He,Hn),yo=It(ur),os=(Qn!==void 0?Qn:yo)||ur==="combobox",wo=(0,Cn.Z)({},Do);Jt.forEach(function(ns){delete wo[ns]}),Sn==null||Sn.forEach(function(ns){delete wo[ns]});var Ps=Nt.useState(!1),Pl=(0,Be.Z)(Ps,2),Hr=Pl[0],zr=Pl[1];Nt.useEffect(function(){zr((0,Ut.Z)())},[]);var Ni=Nt.useRef(null),to=Nt.useRef(null),hs=Nt.useRef(null),zs=Nt.useRef(null),Gs=Nt.useRef(null),so=Rt(),Ls=(0,Be.Z)(so,3),Xa=Ls[0],Ul=Ls[1],Ta=Ls[2];Nt.useImperativeHandle(we,function(){var ns,Xs;return{focus:(ns=zs.current)===null||ns===void 0?void 0:ns.focus,blur:(Xs=zs.current)===null||Xs===void 0?void 0:Xs.blur,scrollTo:function(qa){var Ma;return(Ma=Gs.current)===null||Ma===void 0?void 0:Ma.scrollTo(qa)}}});var qo=Nt.useMemo(function(){var ns;if(ur!=="combobox")return jr;var Xs=(ns=$n[0])===null||ns===void 0?void 0:ns.value;return typeof Xs=="string"||typeof Xs=="number"?String(Xs):""},[jr,ur,$n]),Mn=ur==="combobox"&&typeof Oo=="function"&&Oo()||null,ca=typeof Kn=="function"&&Kn(),tc=(0,nt.x1)(to,ca==null||(qe=ca.props)===null||qe===void 0?void 0:qe.ref),Vl=Nt.useState(!1),aA=(0,Be.Z)(Vl,2),Oa=aA[0],ec=aA[1];(0,me.Z)(function(){ec(!0)},[]);var Al=(0,ge.Z)(!1,{defaultValue:rs,value:Vo}),ps=(0,Be.Z)(Al,2),Ys=ps[0],lA=ps[1],jo=Oa?Ys:!1,Fs=!tr&&dr;(kr||Fs&&jo&&ur==="combobox")&&(jo=!1);var Zo=Fs?!1:jo,mr=Nt.useCallback(function(ns){var Xs=ns!==void 0?ns:!jo;kr||(lA(Xs),jo!==Xs&&(Po==null||Po(Xs)))},[kr,jo,lA,Po]),cl=Nt.useMemo(function(){return(oo||[]).some(function(ns){return[`
`,`\r
`].includes(ns)})},[oo]),dl=function(Xs,eu,qa){var Ma=!0,ga=Xs;Hi==null||Hi(null);var Zs=qa?null:Wn(Xs,oo);return ur!=="combobox"&&Zs&&(ga="",Io==null||Io(Zs),mr(!1),Ma=!1),co&&qo!==ga&&co(ga,{source:eu?"typing":"effect"}),Ma},lu=function(Xs){!Xs||!Xs.trim()||co(Xs,{source:"submit"})};Nt.useEffect(function(){!jo&&!yo&&ur!=="combobox"&&dl("",!1,!1)},[jo]),Nt.useEffect(function(){Ys&&kr&&lA(!1),kr&&Ul(!1)},[kr]);var ch=Gt(),bh=(0,Be.Z)(ch,2),nr=bh[0],Pa=bh[1],Za=function(Xs){var eu=nr(),qa=Xs.which;if(qa===et.Z.ENTER&&(ur!=="combobox"&&Xs.preventDefault(),jo||mr(!0)),Pa(!!qo),qa===et.Z.BACKSPACE&&!eu&&yo&&!qo&&$n.length){for(var Ma=(0,ke.Z)($n),ga=null,Zs=Ma.length-1;Zs>=0;Zs-=1){var Ba=Ma[Zs];if(!Ba.disabled){Ma.splice(Zs,1),ga=Ba;break}}ga&&xr(Ma,{type:"remove",values:[ga]})}for(var ol=arguments.length,Gh=new Array(ol>1?ol-1:0),yu=1;yu<ol;yu++)Gh[yu-1]=arguments[yu];if(jo&&Gs.current){var ba;(ba=Gs.current).onKeyDown.apply(ba,[Xs].concat(Gh))}Ra==null||Ra.apply(void 0,[Xs].concat(Gh))},bl=function(Xs){for(var eu=arguments.length,qa=new Array(eu>1?eu-1:0),Ma=1;Ma<eu;Ma++)qa[Ma-1]=arguments[Ma];if(jo&&Gs.current){var ga;(ga=Gs.current).onKeyUp.apply(ga,[Xs].concat(qa))}Qa==null||Qa.apply(void 0,[Xs].concat(qa))},zu=function(Xs){var eu=$n.filter(function(qa){return qa!==Xs});xr(eu,{type:"remove",values:[Xs]})},Ql=Nt.useRef(!1),bo=function(){Ul(!0),kr||(zo&&!Ql.current&&zo.apply(void 0,arguments),re.includes("focus")&&mr(!0)),Ql.current=!0},fa=function(){Ul(!1,function(){Ql.current=!1,mr(!1)}),!kr&&(qo&&(ur==="tags"?co(qo,{source:"submit"}):ur==="multiple"&&co("",{source:"blur"})),Hs&&Hs.apply(void 0,arguments))},Ea=[];Nt.useEffect(function(){return function(){Ea.forEach(function(ns){return clearTimeout(ns)}),Ea.splice(0,Ea.length)}},[]);var Yl=function(Xs){var eu,qa=Xs.target,Ma=(eu=hs.current)===null||eu===void 0?void 0:eu.getPopupElement();if(Ma&&Ma.contains(qa)){var ga=setTimeout(function(){var Gh=Ea.indexOf(ga);if(Gh!==-1&&Ea.splice(Gh,1),Ta(),!Hr&&!Ma.contains(document.activeElement)){var yu;(yu=zs.current)===null||yu===void 0||yu.focus()}});Ea.push(ga)}for(var Zs=arguments.length,Ba=new Array(Zs>1?Zs-1:0),ol=1;ol<Zs;ol++)Ba[ol-1]=arguments[ol];hl==null||hl.apply(void 0,[Xs].concat(Ba))},Rl=Nt.useState({}),vu=(0,Be.Z)(Rl,2),tu=vu[1];function Hl(){tu({})}var Ll;ca&&(Ll=function(Xs){mr(Xs)}),$t(function(){var ns;return[Ni.current,(ns=hs.current)===null||ns===void 0?void 0:ns.getPopupElement()]},Zo,mr,!!ca);var uo=Nt.useMemo(function(){return(0,Cn.Z)((0,Cn.Z)({},He),{},{notFoundContent:tr,open:jo,triggerOpen:Zo,id:ui,showSearch:os,multiple:yo,toggleOpen:mr})},[He,tr,Zo,jo,ui,os,yo,mr]),id=!!Br||Ao,Xl;id&&(Xl=Nt.createElement(at,{className:oe()("".concat(Pi,"-arrow"),(0,Oe.Z)({},"".concat(Pi,"-arrow-loading"),Ao)),customizeIcon:Br,customizeIconProps:{loading:Ao,searchValue:qo,open:jo,focused:Xa,showSearch:os}}));var Nc=function(){var Xs;vr==null||vr(),(Xs=zs.current)===null||Xs===void 0||Xs.focus(),xr([],{type:"clear",values:$n}),dl("",!1,!1)},dh=ft(Pi,Nc,$n,eo,ai,kr,qo,ur),uA=dh.allowClear,xa=dh.clearIcon,Gu=Nt.createElement(vo,{ref:Gs}),rd=oe()(Pi,Fe,(In={},(0,Oe.Z)(In,"".concat(Pi,"-focused"),Xa),(0,Oe.Z)(In,"".concat(Pi,"-multiple"),yo),(0,Oe.Z)(In,"".concat(Pi,"-single"),!yo),(0,Oe.Z)(In,"".concat(Pi,"-allow-clear"),eo),(0,Oe.Z)(In,"".concat(Pi,"-show-arrow"),id),(0,Oe.Z)(In,"".concat(Pi,"-disabled"),kr),(0,Oe.Z)(In,"".concat(Pi,"-loading"),Ao),(0,Oe.Z)(In,"".concat(Pi,"-open"),jo),(0,Oe.Z)(In,"".concat(Pi,"-customize-input"),Mn),(0,Oe.Z)(In,"".concat(Pi,"-show-search"),os),In)),jA=Nt.createElement(En,{ref:hs,disabled:kr,prefixCls:Pi,visible:Zo,popupElement:Gu,animation:ei,transitionName:Qo,dropdownStyle:Vs,dropdownClassName:Xo,direction:Ar,dropdownMatchSelectWidth:Js,dropdownRender:ks,dropdownAlign:no,placement:ro,builtinPlacements:Go,getPopupContainer:Ro,empty:dr,getTriggerDOMNode:function(){return to.current},onPopupVisibleChange:Ll,onPopupMouseEnter:Hl},ca?Nt.cloneElement(ca,{ref:tc}):Nt.createElement(Ri,(0,zt.Z)({},He,{domRef:to,prefixCls:Pi,inputElement:Mn,ref:zs,id:ui,showSearch:os,autoClearSearchValue:Ir,mode:ur,activeDescendantId:pr,tagRender:Ei,values:$n,open:jo,onToggleOpen:mr,activeValue:zn,searchValue:qo,onSearch:dl,onSearchSubmit:lu,onRemove:zu,tokenWithEnter:cl}))),nc;return ca?nc=jA:nc=Nt.createElement("div",(0,zt.Z)({className:rd},wo,{ref:Ni,onMouseDown:Yl,onKeyDown:Za,onKeyUp:bl,onFocus:bo,onBlur:fa}),Xa&&!jo&&Nt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat($n.map(function(ns){var Xs=ns.label,eu=ns.value;return["number","string"].includes((0,Ie.Z)(Xs))?Xs:eu}).join(", "))),jA,Xl,uA&&xa),Nt.createElement(vt.Provider,{value:uo},nc)}),Vt=bt,le=function(He,we){var qe=Nt.useRef({values:new Map,options:new Map}),In=Nt.useMemo(function(){var Pi=qe.current,Fe=Pi.values,Qn=Pi.options,Ei=He.map(function($n){if($n.label===void 0){var xr;return(0,Cn.Z)((0,Cn.Z)({},$n),{},{label:(xr=Fe.get($n.value))===null||xr===void 0?void 0:xr.label})}return $n}),Ar=new Map,Sn=new Map;return Ei.forEach(function($n){Ar.set($n.value,$n),Sn.set($n.value,we.get($n.value)||Qn.get($n.value))}),qe.current.values=Ar,qe.current.options=Sn,Ei},[He,we]),ui=Nt.useCallback(function(Pi){return we.get(Pi)||qe.current.options.get(Pi)},[we]);return[In,ui]};function Ot(He,we){return hn(He).join("").toUpperCase().includes(we)}var be=function(He,we,qe,In,ui){return Nt.useMemo(function(){if(!qe||In===!1)return He;var Pi=we.options,Fe=we.label,Qn=we.value,Ei=[],Ar=typeof In=="function",Sn=qe.toUpperCase(),$n=Ar?In:function(dr,Dr){return ui?Ot(Dr[ui],Sn):Dr[Pi]?Ot(Dr[Fe!=="children"?Fe:"label"],Sn):Ot(Dr[Qn],Sn)},xr=Ar?function(dr){return sn(dr)}:function(dr){return dr};return He.forEach(function(dr){if(dr[Pi]){var Dr=$n(qe,xr(dr));if(Dr)Ei.push(dr);else{var tr=dr[Pi].filter(function(vr){return $n(qe,xr(vr))});tr.length&&Ei.push((0,Cn.Z)((0,Cn.Z)({},dr),{},(0,Oe.Z)({},Pi,tr)))}return}$n(qe,xr(dr))&&Ei.push(dr)}),Ei},[He,In,ui,qe,we])},pn=Kt(17115),Zn=Kt(11592),ii=["children","value"],wi=["children"];function Nr(He){var we=He,qe=we.key,In=we.props,ui=In.children,Pi=In.value,Fe=(0,vn.Z)(In,ii);return(0,Cn.Z)({key:qe,value:Pi!==void 0?Pi:qe,children:ui},Fe)}function _r(He){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Zn.Z)(He).map(function(qe,In){if(!Nt.isValidElement(qe)||!qe.type)return null;var ui=qe,Pi=ui.type.isSelectOptGroup,Fe=ui.key,Qn=ui.props,Ei=Qn.children,Ar=(0,vn.Z)(Qn,wi);return we||!Pi?Nr(qe):(0,Cn.Z)((0,Cn.Z)({key:"__RC_SELECT_GRP__".concat(Fe===null?In:Fe,"__"),label:Fe},Ar),{},{options:_r(Ei)})}).filter(function(qe){return qe})}function Tr(He,we,qe,In,ui){return Nt.useMemo(function(){var Pi=He,Fe=!He;Fe&&(Pi=_r(we));var Qn=new Map,Ei=new Map,Ar=function(xr,dr,Dr){Dr&&typeof Dr=="string"&&xr.set(dr[Dr],dr)};function Sn($n){for(var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dr=0;dr<$n.length;dr+=1){var Dr=$n[dr];!Dr[qe.options]||xr?(Qn.set(Dr[qe.value],Dr),Ar(Ei,Dr,qe.label),Ar(Ei,Dr,In),Ar(Ei,Dr,ui)):Sn(Dr[qe.options],!0)}}return Sn(Pi),{options:Pi,valueOptions:Qn,labelOptions:Ei}},[He,we,qe,In,ui])}function po(He){var we=Nt.useRef();we.current=He;var qe=Nt.useCallback(function(){return we.current.apply(we,arguments)},[]);return qe}var To=function(){return null};To.isSelectOptGroup=!0;var Co=To,Kr=function(){return null};Kr.isSelectOption=!0;var gr=Kr,Wr=Kt(80547),Vr=Kt(2738),No=Kt(45680),us=Nt.createContext(null),Os=us;function Ms(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Fo=["disabled","title","children","style","className"];function jt(He){return typeof He=="string"||typeof He=="number"}var la=function(we,qe){var In=Mt(),ui=In.prefixCls,Pi=In.id,Fe=In.open,Qn=In.multiple,Ei=In.mode,Ar=In.searchValue,Sn=In.toggleOpen,$n=In.notFoundContent,xr=In.onPopupScroll,dr=Nt.useContext(Os),Dr=dr.flattenOptions,tr=dr.onActiveValue,vr=dr.defaultActiveFirstOption,ur=dr.onSelect,kr=dr.menuItemSelectedIcon,Ao=dr.rawValues,Oo=dr.fieldNames,Kn=dr.virtual,Vo=dr.direction,rs=dr.listHeight,Po=dr.listItemHeight,zn="".concat(ui,"-item"),Hi=(0,Wr.Z)(function(){return Dr},[Fe,Dr],function(no,ro){return ro[0]&&no[1]!==ro[1]}),pr=Nt.useRef(null),jr=function(ro){ro.preventDefault()},Ir=function(ro){pr.current&&pr.current.scrollTo(typeof ro=="number"?{index:ro}:ro)},co=function(ro){for(var Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ro=Hi.length,Ji=0;Ji<Ro;Ji+=1){var re=(ro+Ji*Go+Ro)%Ro,zo=Hi[re],Hs=zo.group,Qa=zo.data;if(!Hs&&!Qa.disabled)return re}return-1},Io=Nt.useState(function(){return co(0)}),oo=(0,Be.Z)(Io,2),eo=oo[0],Br=oo[1],ai=function(ro){var Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Br(ro);var Ro={source:Go?"keyboard":"mouse"},Ji=Hi[ro];if(!Ji){tr(null,-1,Ro);return}tr(Ji.value,ro,Ro)};(0,Nt.useEffect)(function(){ai(vr!==!1?co(0):-1)},[Hi.length,Ar]);var vo=Nt.useCallback(function(no){return Ao.has(no)&&Ei!=="combobox"},[Ei,(0,ke.Z)(Ao).toString(),Ao.size]);(0,Nt.useEffect)(function(){var no=setTimeout(function(){if(!Qn&&Fe&&Ao.size===1){var Go=Array.from(Ao)[0],Ro=Hi.findIndex(function(Ji){var re=Ji.data;return re.value===Go});Ro!==-1&&(ai(Ro),Ir(Ro))}});if(Fe){var ro;(ro=pr.current)===null||ro===void 0||ro.scrollTo(void 0)}return function(){return clearTimeout(no)}},[Fe,Ar,Dr.length]);var ei=function(ro){ro!==void 0&&ur(ro,{selected:!Ao.has(ro)}),Qn||Sn(!1)};if(Nt.useImperativeHandle(qe,function(){return{onKeyDown:function(ro){var Go=ro.which,Ro=ro.ctrlKey;switch(Go){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var Ji=0;if(Go===et.Z.UP?Ji=-1:Go===et.Z.DOWN?Ji=1:Ms()&&Ro&&(Go===et.Z.N?Ji=1:Go===et.Z.P&&(Ji=-1)),Ji!==0){var re=co(eo+Ji,Ji);Ir(re),ai(re,!0)}break}case et.Z.ENTER:{var zo=Hi[eo];zo&&!zo.data.disabled?ei(zo.value):ei(void 0),Fe&&ro.preventDefault();break}case et.Z.ESC:Sn(!1),Fe&&ro.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ro){Ir(ro)}}}),Hi.length===0)return Nt.createElement("div",{role:"listbox",id:"".concat(Pi,"_list"),className:"".concat(zn,"-empty"),onMouseDown:jr},$n);var Qo=Object.keys(Oo).map(function(no){return Oo[no]}),Vs=function(ro){return ro.label};function Xo(no,ro){var Go=no.group;return{role:Go?"presentation":"option",id:"".concat(Pi,"_list_").concat(ro)}}var Js=function(ro){var Go=Hi[ro];if(!Go)return null;var Ro=Go.data||{},Ji=Ro.value,re=Go.group,zo=(0,ae.Z)(Ro,!0),Hs=Vs(Go);return Go?Nt.createElement("div",(0,zt.Z)({"aria-label":typeof Hs=="string"&&!re?Hs:null},zo,{key:ro},Xo(Go,ro),{"aria-selected":vo(Ji)}),Ji):null},ks={role:"listbox",id:"".concat(Pi,"_list")};return Nt.createElement(Nt.Fragment,null,Kn&&Nt.createElement("div",(0,zt.Z)({},ks,{style:{height:0,width:0,overflow:"hidden"}}),Js(eo-1),Js(eo),Js(eo+1)),Nt.createElement(No.Z,{itemKey:"key",ref:pr,data:Hi,height:rs,itemHeight:Po,fullHeight:!1,onMouseDown:jr,onScroll:xr,virtual:Kn,direction:Vo,innerProps:Kn?null:ks},function(no,ro){var Go,Ro=no.group,Ji=no.groupOption,re=no.data,zo=no.label,Hs=no.value,Qa=re.key;if(Ro){var Ra,hl=(Ra=re.title)!==null&&Ra!==void 0?Ra:jt(zo)?zo.toString():void 0;return Nt.createElement("div",{className:oe()(zn,"".concat(zn,"-group")),title:hl},zo!==void 0?zo:Qa)}var Do=re.disabled,yo=re.title,os=re.children,wo=re.style,Ps=re.className,Pl=(0,vn.Z)(re,Fo),Hr=(0,Vr.Z)(Pl,Qo),zr=vo(Hs),Ni="".concat(zn,"-option"),to=oe()(zn,Ni,Ps,(Go={},(0,Oe.Z)(Go,"".concat(Ni,"-grouped"),Ji),(0,Oe.Z)(Go,"".concat(Ni,"-active"),eo===ro&&!Do),(0,Oe.Z)(Go,"".concat(Ni,"-disabled"),Do),(0,Oe.Z)(Go,"".concat(Ni,"-selected"),zr),Go)),hs=Vs(no),zs=!kr||typeof kr=="function"||zr,Gs=typeof hs=="number"?hs:hs||Hs,so=jt(Gs)?Gs.toString():void 0;return yo!==void 0&&(so=yo),Nt.createElement("div",(0,zt.Z)({},(0,ae.Z)(Hr),Kn?{}:Xo(no,ro),{"aria-selected":zr,className:to,title:so,onMouseMove:function(){eo===ro||Do||ai(ro)},onClick:function(){Do||ei(Hs)},style:wo}),Nt.createElement("div",{className:"".concat(Ni,"-content")},Gs),Nt.isValidElement(kr)||zr,zs&&Nt.createElement(at,{className:"".concat(zn,"-option-state"),customizeIcon:kr,customizeIconProps:{isSelected:zr}},zr?"\u2713":null))}))},fs=Nt.forwardRef(la);fs.displayName="OptionList";var vs=fs;function Ws(He){var we=He.mode,qe=He.options,In=He.children,ui=He.backfill,Pi=He.allowClear,Fe=He.placeholder,Qn=He.getInputElement,Ei=He.showSearch,Ar=He.onSearch,Sn=He.defaultOpen,$n=He.autoFocus,xr=He.labelInValue,dr=He.value,Dr=He.inputValue,tr=He.optionLabelProp,vr=isMultiple(we),ur=Ei!==void 0?Ei:vr||we==="combobox",kr=qe||convertChildrenToData(In);if(warning(we!=="tags"||kr.every(function(Vo){return!Vo.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),we==="tags"||we==="combobox"){var Ao=kr.some(function(Vo){return Vo.options?Vo.options.some(function(rs){return typeof("value"in rs?rs.value:rs.key)=="number"}):typeof("value"in Vo?Vo.value:Vo.key)=="number"});warning(!Ao,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(we!=="combobox"||!tr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(we==="combobox"||!ui,"`backfill` only works with `combobox` mode."),warning(we==="combobox"||!Qn,"`getInputElement` only work with `combobox` mode."),noteOnce(we!=="combobox"||!Qn||!Pi||!Fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ar&&!ur&&we!=="combobox"&&we!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Sn||$n,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),dr!=null){var Oo=toArray(dr);warning(!xr||Oo.every(function(Vo){return _typeof(Vo)==="object"&&("key"in Vo||"value"in Vo)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!vr||Array.isArray(dr),"`value` should be array when `mode` is `multiple` or `tags`")}if(In){var Kn=null;toNodeArray(In).some(function(Vo){if(!React.isValidElement(Vo)||!Vo.type)return!1;var rs=Vo,Po=rs.type;if(Po.isSelectOption)return!1;if(Po.isSelectOptGroup){var zn=toNodeArray(Vo.props.children).every(function(Hi){return!React.isValidElement(Hi)||!Vo.type||Hi.type.isSelectOption?!0:(Kn=Hi.type,!1)});return!zn}return Kn=Po,!0}),Kn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Kn.displayName||Kn.name||Kn,"`.")),warning(Dr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Fa(He,we){if(He){var qe=function In(ui){for(var Pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe=0;Fe<ui.length;Fe++){var Qn=ui[Fe];if(Qn[we==null?void 0:we.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Pi&&Array.isArray(Qn[we==null?void 0:we.options])&&In(Qn[we==null?void 0:we.options],!0))break}};qe(He)}}var Sa=null,Pr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Lr=["inputValue"];function ln(He){return!He||(0,Ie.Z)(He)!=="object"}var nn=Nt.forwardRef(function(He,we){var qe=He.id,In=He.mode,ui=He.prefixCls,Pi=ui===void 0?"rc-select":ui,Fe=He.backfill,Qn=He.fieldNames,Ei=He.inputValue,Ar=He.searchValue,Sn=He.onSearch,$n=He.autoClearSearchValue,xr=$n===void 0?!0:$n,dr=He.onSelect,Dr=He.onDeselect,tr=He.dropdownMatchSelectWidth,vr=tr===void 0?!0:tr,ur=He.filterOption,kr=He.filterSort,Ao=He.optionFilterProp,Oo=He.optionLabelProp,Kn=He.options,Vo=He.children,rs=He.defaultActiveFirstOption,Po=He.menuItemSelectedIcon,zn=He.virtual,Hi=He.direction,pr=He.listHeight,jr=pr===void 0?200:pr,Ir=He.listItemHeight,co=Ir===void 0?20:Ir,Io=He.value,oo=He.defaultValue,eo=He.labelInValue,Br=He.onChange,ai=(0,vn.Z)(He,Pr),vo=(0,pn.ZP)(qe),ei=It(In),Qo=!!(!Kn&&Vo),Vs=Nt.useMemo(function(){return ur===void 0&&In==="combobox"?!1:ur},[ur,In]),Xo=Nt.useMemo(function(){return Xe(Qn,Qo)},[JSON.stringify(Qn),Qo]),Js=(0,ge.Z)("",{value:Ar!==void 0?Ar:Ei,postState:function(Fs){return Fs||""}}),ks=(0,Be.Z)(Js,2),no=ks[0],ro=ks[1],Go=Tr(Kn,Vo,Xo,Ao,Oo),Ro=Go.valueOptions,Ji=Go.labelOptions,re=Go.options,zo=Nt.useCallback(function(jo){var Fs=hn(jo);return Fs.map(function(Zo){var mr,cl,dl,lu,ch;if(ln(Zo))mr=Zo;else{var bh;dl=Zo.key,cl=Zo.label,mr=(bh=Zo.value)!==null&&bh!==void 0?bh:dl}var nr=Ro.get(mr);if(nr){var Pa;if(cl===void 0&&(cl=nr==null?void 0:nr[Oo||Xo.label]),dl===void 0&&(dl=(Pa=nr==null?void 0:nr.key)!==null&&Pa!==void 0?Pa:mr),lu=nr==null?void 0:nr.disabled,ch=nr==null?void 0:nr.title,0)var Za}return{label:cl,value:mr,key:dl,disabled:lu,title:ch}})},[Xo,Oo,Ro]),Hs=(0,ge.Z)(oo,{value:Io}),Qa=(0,Be.Z)(Hs,2),Ra=Qa[0],hl=Qa[1],Do=Nt.useMemo(function(){var jo,Fs=zo(Ra);return In==="combobox"&&un((jo=Fs[0])===null||jo===void 0?void 0:jo.value)?[]:Fs},[Ra,zo,In]),yo=le(Do,Ro),os=(0,Be.Z)(yo,2),wo=os[0],Ps=os[1],Pl=Nt.useMemo(function(){if(!In&&wo.length===1){var jo=wo[0];if(jo.value===null&&(jo.label===null||jo.label===void 0))return[]}return wo.map(function(Fs){var Zo;return(0,Cn.Z)((0,Cn.Z)({},Fs),{},{label:(Zo=Fs.label)!==null&&Zo!==void 0?Zo:Fs.value})})},[In,wo]),Hr=Nt.useMemo(function(){return new Set(wo.map(function(jo){return jo.value}))},[wo]);Nt.useEffect(function(){if(In==="combobox"){var jo,Fs=(jo=wo[0])===null||jo===void 0?void 0:jo.value;ro(qn(Fs)?String(Fs):"")}},[wo]);var zr=po(function(jo,Fs){var Zo,mr=Fs!=null?Fs:jo;return Zo={},(0,Oe.Z)(Zo,Xo.value,jo),(0,Oe.Z)(Zo,Xo.label,mr),Zo}),Ni=Nt.useMemo(function(){if(In!=="tags")return re;var jo=(0,ke.Z)(re),Fs=function(mr){return Ro.has(mr)};return(0,ke.Z)(wo).sort(function(Zo,mr){return Zo.value<mr.value?-1:1}).forEach(function(Zo){var mr=Zo.value;Fs(mr)||jo.push(zr(mr,Zo.label))}),jo},[zr,re,Ro,wo,In]),to=be(Ni,Xo,no,Vs,Ao),hs=Nt.useMemo(function(){return In!=="tags"||!no||to.some(function(jo){return jo[Ao||"value"]===no})||to.some(function(jo){return jo[Xo.value]===no})?to:[zr(no)].concat((0,ke.Z)(to))},[zr,Ao,In,to,no,Xo]),zs=Nt.useMemo(function(){return kr?(0,ke.Z)(hs).sort(function(jo,Fs){return kr(jo,Fs)}):hs},[hs,kr]),Gs=Nt.useMemo(function(){return wn(zs,{fieldNames:Xo,childrenAsData:Qo})},[zs,Xo,Qo]),so=function(Fs){var Zo=zo(Fs);if(hl(Zo),Br&&(Zo.length!==wo.length||Zo.some(function(dl,lu){var ch;return((ch=wo[lu])===null||ch===void 0?void 0:ch.value)!==(dl==null?void 0:dl.value)}))){var mr=eo?Zo:Zo.map(function(dl){return dl.value}),cl=Zo.map(function(dl){return sn(Ps(dl.value))});Br(ei?mr:mr[0],ei?cl:cl[0])}},Ls=Nt.useState(null),Xa=(0,Be.Z)(Ls,2),Ul=Xa[0],Ta=Xa[1],qo=Nt.useState(0),Mn=(0,Be.Z)(qo,2),ca=Mn[0],tc=Mn[1],Vl=rs!==void 0?rs:In!=="combobox",aA=Nt.useCallback(function(jo,Fs){var Zo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mr=Zo.source,cl=mr===void 0?"keyboard":mr;tc(Fs),Fe&&In==="combobox"&&jo!==null&&cl==="keyboard"&&Ta(String(jo))},[Fe,In]),Oa=function(Fs,Zo,mr){var cl=function(){var Ql,bo=Ps(Fs);return[eo?{label:bo==null?void 0:bo[Xo.label],value:Fs,key:(Ql=bo==null?void 0:bo.key)!==null&&Ql!==void 0?Ql:Fs}:Fs,sn(bo)]};if(Zo&&dr){var dl=cl(),lu=(0,Be.Z)(dl,2),ch=lu[0],bh=lu[1];dr(ch,bh)}else if(!Zo&&Dr&&mr!=="clear"){var nr=cl(),Pa=(0,Be.Z)(nr,2),Za=Pa[0],bl=Pa[1];Dr(Za,bl)}},ec=po(function(jo,Fs){var Zo,mr=ei?Fs.selected:!0;mr?Zo=ei?[].concat((0,ke.Z)(wo),[jo]):[jo]:Zo=wo.filter(function(cl){return cl.value!==jo}),so(Zo),Oa(jo,mr),In==="combobox"?Ta(""):(!It||xr)&&(ro(""),Ta(""))}),Al=function(Fs,Zo){so(Fs);var mr=Zo.type,cl=Zo.values;(mr==="remove"||mr==="clear")&&cl.forEach(function(dl){Oa(dl.value,!1,mr)})},ps=function(Fs,Zo){if(ro(Fs),Ta(null),Zo.source==="submit"){var mr=(Fs||"").trim();if(mr){var cl=Array.from(new Set([].concat((0,ke.Z)(Hr),[mr])));so(cl),Oa(mr,!0),ro("")}return}Zo.source!=="blur"&&(In==="combobox"&&so(Fs),Sn==null||Sn(Fs))},Ys=function(Fs){var Zo=Fs;In!=="tags"&&(Zo=Fs.map(function(cl){var dl=Ji.get(cl);return dl==null?void 0:dl.value}).filter(function(cl){return cl!==void 0}));var mr=Array.from(new Set([].concat((0,ke.Z)(Hr),(0,ke.Z)(Zo))));so(mr),mr.forEach(function(cl){Oa(cl,!0)})},lA=Nt.useMemo(function(){var jo=zn!==!1&&vr!==!1;return(0,Cn.Z)((0,Cn.Z)({},Go),{},{flattenOptions:Gs,onActiveValue:aA,defaultActiveFirstOption:Vl,onSelect:ec,menuItemSelectedIcon:Po,rawValues:Hr,fieldNames:Xo,virtual:jo,direction:Hi,listHeight:jr,listItemHeight:co,childrenAsData:Qo})},[Go,Gs,aA,Vl,ec,Po,Hr,Xo,zn,vr,jr,co,Qo]);return Nt.createElement(Os.Provider,{value:lA},Nt.createElement(Vt,(0,zt.Z)({},ai,{id:vo,prefixCls:Pi,ref:we,omitDomProps:Lr,mode:In,displayValues:Pl,onDisplayValuesChange:Al,direction:Hi,searchValue:no,onSearch:ps,autoClearSearchValue:xr,onSearchSplit:Ys,dropdownMatchSelectWidth:vr,OptionList:vs,emptyOptions:!Gs.length,activeValue:Ul,activeDescendantId:"".concat(vo,"_list_").concat(ca)})))}),Ae=nn;Ae.Option=gr,Ae.OptGroup=Co;var Tn=Ae,Jn=Tn},9296:function(Fi,Ti,Kt){"use strict";Kt.r(Ti),Kt.d(Ti,{ResizableTextArea:function(){return Ye},default:function(){return un}});var zt=Kt(96663),ke=Kt(44127),Oe=Kt(90493),Cn=Kt(20135),Be=Kt(72071),vn=Kt(6620),Ie=Kt(19127),ge=Kt(92310),ye=Kt.n(ge),Nt=Kt(93681),se=Kt(5643),oe=Kt(18929),me=Kt(59301),Ut=Kt(29301),et=Kt(34280),nt=Kt(16089),ht=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,at=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ft={},vt;function Mt(fn){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=fn.getAttribute("id")||fn.getAttribute("data-reactid")||fn.getAttribute("name");if(mn&&ft[pe])return ft[pe];var Xt=window.getComputedStyle(fn),Ve=Xt.getPropertyValue("box-sizing")||Xt.getPropertyValue("-moz-box-sizing")||Xt.getPropertyValue("-webkit-box-sizing"),Vn=parseFloat(Xt.getPropertyValue("padding-bottom"))+parseFloat(Xt.getPropertyValue("padding-top")),si=parseFloat(Xt.getPropertyValue("border-bottom-width"))+parseFloat(Xt.getPropertyValue("border-top-width")),An=at.map(function(Yn){return"".concat(Yn,":").concat(Xt.getPropertyValue(Yn))}).join(";"),Nn={sizingStyle:An,paddingSize:Vn,borderSize:si,boxSizing:Ve};return mn&&pe&&(ft[pe]=Nn),Nn}function Rt(fn){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vt||(vt=document.createElement("textarea"),vt.setAttribute("tab-index","-1"),vt.setAttribute("aria-hidden","true"),document.body.appendChild(vt)),fn.getAttribute("wrap")?vt.setAttribute("wrap",fn.getAttribute("wrap")):vt.removeAttribute("wrap");var Ve=Mt(fn,mn),Vn=Ve.paddingSize,si=Ve.borderSize,An=Ve.boxSizing,Nn=Ve.sizingStyle;vt.setAttribute("style","".concat(Nn,";").concat(ht)),vt.value=fn.value||fn.placeholder||"";var Yn=void 0,Ci=void 0,Mi,Ri=vt.scrollHeight;if(An==="border-box"?Ri+=si:An==="content-box"&&(Ri-=Vn),pe!==null||Xt!==null){vt.value=" ";var Te=vt.scrollHeight-Vn;pe!==null&&(Yn=Te*pe,An==="border-box"&&(Yn=Yn+Vn+si),Ri=Math.max(Yn,Ri)),Xt!==null&&(Ci=Te*Xt,An==="border-box"&&(Ci=Ci+Vn+si),Mi=Ri>Ci?"":"hidden",Ri=Math.min(Ci,Ri))}var ci={height:Ri,overflowY:Mi,resize:"none"};return Yn&&(ci.minHeight=Yn),Ci&&(ci.maxHeight=Ci),ci}var Gt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$t=0,ae=1,ve=2,fe=me.forwardRef(function(fn,mn){var pe=fn,Xt=pe.prefixCls,Ve=pe.onPressEnter,Vn=pe.defaultValue,si=pe.value,An=pe.autoSize,Nn=pe.onResize,Yn=pe.className,Ci=pe.style,Mi=pe.disabled,Ri=pe.onChange,Te=pe.onInternalAutoSize,ci=(0,vn.Z)(pe,Gt),ki=(0,oe.Z)(Vn,{value:si,postState:function(Co){return Co!=null?Co:""}}),Dn=(0,Be.Z)(ki,2),yi=Dn[0],En=Dn[1],gn=function(Co){En(Co.target.value),Ri==null||Ri(Co)},Ne=me.useRef();me.useImperativeHandle(mn,function(){return{textArea:Ne.current}});var Xe=me.useMemo(function(){return An&&(0,Cn.Z)(An)==="object"?[An.minRows,An.maxRows]:[]},[An]),wn=(0,Be.Z)(Xe,2),sn=wn[0],Wn=wn[1],Hn=!!An,Jt=function(){try{if(document.activeElement===Ne.current){var Co=Ne.current,Kr=Co.selectionStart,gr=Co.selectionEnd,Wr=Co.scrollTop;Ne.current.setSelectionRange(Kr,gr),Ne.current.scrollTop=Wr}}catch(Vr){}},It=me.useState(ve),bt=(0,Be.Z)(It,2),Vt=bt[0],le=bt[1],Ot=me.useState(),be=(0,Be.Z)(Ot,2),pn=be[0],Zn=be[1],ii=function(){le($t)};(0,et.Z)(function(){Hn&&ii()},[si,sn,Wn,Hn]),(0,et.Z)(function(){if(Vt===$t)le(ae);else if(Vt===ae){var To=Rt(Ne.current,!1,sn,Wn);le(ve),Zn(To)}else Jt()},[Vt]);var wi=me.useRef(),Nr=function(){nt.Z.cancel(wi.current)},_r=function(Co){Vt===ve&&(Nn==null||Nn(Co),An&&(Nr(),wi.current=(0,nt.Z)(function(){ii()})))};me.useEffect(function(){return Nr},[]);var Tr=Hn?pn:null,po=(0,ke.Z)((0,ke.Z)({},Ci),Tr);return(Vt===$t||Vt===ae)&&(po.overflowY="hidden",po.overflowX="hidden"),me.createElement(Ut.Z,{onResize:_r,disabled:!(An||Nn)},me.createElement("textarea",(0,zt.Z)({},ci,{ref:Ne,style:po,className:ye()(Xt,Yn,(0,Oe.Z)({},"".concat(Xt,"-disabled"),Mi)),disabled:Mi,value:yi,onChange:gn})))}),Ye=fe,De=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function hn(fn,mn){return(0,Ie.Z)(fn||"").slice(0,mn).join("")}function Ue(fn,mn,pe,Xt){var Ve=pe;return fn?Ve=hn(pe,Xt):(0,Ie.Z)(mn||"").length<pe.length&&(0,Ie.Z)(pe||"").length>Xt&&(Ve=mn),Ve}var Pn=me.forwardRef(function(fn,mn){var pe,Xt=fn.defaultValue,Ve=fn.value,Vn=fn.onFocus,si=fn.onBlur,An=fn.onChange,Nn=fn.allowClear,Yn=fn.maxLength,Ci=fn.onCompositionStart,Mi=fn.onCompositionEnd,Ri=fn.suffix,Te=fn.prefixCls,ci=Te===void 0?"rc-textarea":Te,ki=fn.classes,Dn=fn.showCount,yi=fn.className,En=fn.style,gn=fn.disabled,Ne=fn.hidden,Xe=fn.classNames,wn=fn.styles,sn=fn.onResize,Wn=(0,vn.Z)(fn,De),Hn=(0,oe.Z)(Xt,{value:Ve,defaultValue:Xt}),Jt=(0,Be.Z)(Hn,2),It=Jt[0],bt=Jt[1],Vt=(0,me.useRef)(null),le=me.useState(!1),Ot=(0,Be.Z)(le,2),be=Ot[0],pn=Ot[1],Zn=me.useState(!1),ii=(0,Be.Z)(Zn,2),wi=ii[0],Nr=ii[1],_r=me.useRef(),Tr=me.useRef(0),po=me.useState(null),To=(0,Be.Z)(po,2),Co=To[0],Kr=To[1],gr=function(){var ln;(ln=Vt.current)===null||ln===void 0||ln.textArea.focus()};(0,me.useImperativeHandle)(mn,function(){return{resizableTextArea:Vt.current,focus:gr,blur:function(){var ln;(ln=Vt.current)===null||ln===void 0||ln.textArea.blur()}}}),(0,me.useEffect)(function(){pn(function(Lr){return!gn&&Lr})},[gn]);var Wr=Number(Yn)>0,Vr=function(ln){Nr(!0),_r.current=It,Tr.current=ln.currentTarget.selectionStart,Ci==null||Ci(ln)},No=function(ln){Nr(!1);var nn=ln.currentTarget.value;if(Wr){var Ae,Tn=Tr.current>=Yn+1||Tr.current===((Ae=_r.current)===null||Ae===void 0?void 0:Ae.length);nn=Ue(Tn,_r.current,nn,Yn)}nn!==It&&(bt(nn),(0,se.rJ)(ln.currentTarget,ln,An,nn)),Mi==null||Mi(ln)},us=function(ln){var nn=ln.target.value;if(!wi&&Wr){var Ae=ln.target.selectionStart>=Yn+1||ln.target.selectionStart===nn.length||!ln.target.selectionStart;nn=Ue(Ae,It,nn,Yn)}bt(nn),(0,se.rJ)(ln.currentTarget,ln,An,nn)},Os=function(ln){var nn=Wn.onPressEnter,Ae=Wn.onKeyDown;ln.key==="Enter"&&nn&&nn(ln),Ae==null||Ae(ln)},Ms=function(ln){pn(!0),Vn==null||Vn(ln)},Fo=function(ln){pn(!1),si==null||si(ln)},jt=function(ln){var nn;bt(""),gr(),(0,se.rJ)((nn=Vt.current)===null||nn===void 0?void 0:nn.textArea,ln,An)},la=(0,se.D7)(It);!wi&&Wr&&Ve==null&&(la=hn(la,Yn));var fs=Ri,vs;if(Dn){var Ws=(0,Ie.Z)(la).length;(0,Cn.Z)(Dn)==="object"?vs=Dn.formatter({value:la,count:Ws,maxLength:Yn}):vs="".concat(Ws).concat(Wr?" / ".concat(Yn):""),fs=me.createElement(me.Fragment,null,fs,me.createElement("span",{className:ye()("".concat(ci,"-data-count"),Xe==null?void 0:Xe.count),style:wn==null?void 0:wn.count},vs))}var Fa=function(ln){var nn;sn==null||sn(ln),(nn=Vt.current)!==null&&nn!==void 0&&nn.textArea.style.height&&Kr(!0)},Sa=!Wn.autoSize&&!Dn&&!Nn,Pr=me.createElement(Nt.BaseInput,{value:la,allowClear:Nn,handleReset:jt,suffix:fs,prefixCls:ci,classes:{affixWrapper:ye()(ki==null?void 0:ki.affixWrapper,(pe={},(0,Oe.Z)(pe,"".concat(ci,"-show-count"),Dn),(0,Oe.Z)(pe,"".concat(ci,"-textarea-allow-clear"),Nn),pe))},disabled:gn,focused:be,className:yi,style:(0,ke.Z)((0,ke.Z)({},En),Co&&!Sa?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof vs=="string"?vs:void 0}},hidden:Ne,inputElement:me.createElement(Ye,(0,zt.Z)({},Wn,{onKeyDown:Os,onChange:us,onFocus:Ms,onBlur:Fo,onCompositionStart:Vr,onCompositionEnd:No,className:Xe==null?void 0:Xe.textarea,style:(0,ke.Z)((0,ke.Z)({},wn==null?void 0:wn.textarea),{},{resize:En==null?void 0:En.resize}),disabled:gn,prefixCls:ci,onResize:Fa,ref:Vt}))});return Pr}),qn=Pn,un=qn},45680:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ki}});var zt=Kt(96663),ke=Kt(20135),Oe=Kt(44127),Cn=Kt(90493),Be=Kt(72071),vn=Kt(6620),Ie=Kt(92310),ge=Kt.n(Ie),ye=Kt(29301),Nt=Kt(70425),se=Kt(34280),oe=Kt(59301),me=Kt(4676),Ut=oe.forwardRef(function(Dn,yi){var En=Dn.height,gn=Dn.offsetY,Ne=Dn.offsetX,Xe=Dn.children,wn=Dn.prefixCls,sn=Dn.onInnerResize,Wn=Dn.innerProps,Hn=Dn.rtl,Jt=Dn.extra,It={},bt={display:"flex",flexDirection:"column"};return gn!==void 0&&(It={height:En,position:"relative",overflow:"hidden"},bt=(0,Oe.Z)((0,Oe.Z)({},bt),{},(0,Cn.Z)((0,Cn.Z)((0,Cn.Z)((0,Cn.Z)((0,Cn.Z)({transform:"translateY(".concat(gn,"px)")},Hn?"marginRight":"marginLeft",-Ne),"position","absolute"),"left",0),"right",0),"top",0))),oe.createElement("div",{style:It},oe.createElement(ye.Z,{onResize:function(le){var Ot=le.offsetHeight;Ot&&sn&&sn()}},oe.createElement("div",(0,zt.Z)({style:bt,className:ge()((0,Cn.Z)({},"".concat(wn,"-holder-inner"),wn)),ref:yi},Wn),Xe,Jt)))});Ut.displayName="Filler";var et=Ut;function nt(Dn){var yi=Dn.children,En=Dn.setRef,gn=oe.useCallback(function(Ne){En(Ne)},[]);return oe.cloneElement(yi,{ref:gn})}function ht(Dn,yi,En,gn,Ne,Xe,wn,sn){var Wn=sn.getKey;return Dn.slice(yi,En+1).map(function(Hn,Jt){var It=yi+Jt,bt=wn(Hn,It,{style:{width:gn},offsetX:Ne}),Vt=Wn(Hn);return oe.createElement(nt,{key:Vt,setRef:function(Ot){return Xe(Hn,Ot)}},bt)})}function at(Dn,yi,En,gn){var Ne=En-Dn,Xe=yi-En,wn=Math.min(Ne,Xe)*2;if(gn<=wn){var sn=Math.floor(gn/2);return gn%2?En+sn+1:En-sn}return Ne>Xe?En-(gn-Xe):En+(gn-Ne)}function ft(Dn,yi,En){var gn=Dn.length,Ne=yi.length,Xe,wn;if(gn===0&&Ne===0)return null;gn<Ne?(Xe=Dn,wn=yi):(Xe=yi,wn=Dn);var sn={__EMPTY_ITEM__:!0};function Wn(le){return le!==void 0?En(le):sn}for(var Hn=null,Jt=Math.abs(gn-Ne)!==1,It=0;It<wn.length;It+=1){var bt=Wn(Xe[It]),Vt=Wn(wn[It]);if(bt!==Vt){Hn=It,Jt=Jt||bt!==Wn(wn[It+1]);break}}return Hn===null?null:{index:Hn,multiple:Jt}}function vt(Dn,yi,En){var gn=oe.useState(Dn),Ne=(0,Be.Z)(gn,2),Xe=Ne[0],wn=Ne[1],sn=oe.useState(null),Wn=(0,Be.Z)(sn,2),Hn=Wn[0],Jt=Wn[1];return oe.useEffect(function(){var It=ft(Xe||[],Dn||[],yi);(It==null?void 0:It.index)!==void 0&&(En==null||En(It.index),Jt(Dn[It.index])),wn(Dn)},[Dn]),[Hn]}var Mt=Kt(16089),Rt=(typeof navigator=="undefined"?"undefined":(0,ke.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Gt=Rt,$t=function(Dn,yi,En,gn){var Ne=(0,oe.useRef)(!1),Xe=(0,oe.useRef)(null);function wn(){clearTimeout(Xe.current),Ne.current=!0,Xe.current=setTimeout(function(){Ne.current=!1},50)}var sn=(0,oe.useRef)({top:Dn,bottom:yi,left:En,right:gn});return sn.current.top=Dn,sn.current.bottom=yi,sn.current.left=En,sn.current.right=gn,function(Wn,Hn){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,It=Wn?Hn<0&&sn.current.left||Hn>0&&sn.current.right:Hn<0&&sn.current.top||Hn>0&&sn.current.bottom;return Jt&&It?(clearTimeout(Xe.current),Ne.current=!1):(!It||Ne.current)&&wn(),!Ne.current&&It}};function ae(Dn,yi,En,gn,Ne,Xe,wn){var sn=(0,oe.useRef)(0),Wn=(0,oe.useRef)(null),Hn=(0,oe.useRef)(null),Jt=(0,oe.useRef)(!1),It=$t(yi,En,gn,Ne);function bt(Zn,ii){if(Mt.Z.cancel(Wn.current),!It(!1,ii)){var wi=Zn;if(!wi._virtualHandled)wi._virtualHandled=!0;else return;sn.current+=ii,Hn.current=ii,Gt||wi.preventDefault(),Wn.current=(0,Mt.Z)(function(){var Nr=Jt.current?10:1;wn(sn.current*Nr,!1),sn.current=0})}}function Vt(Zn,ii){wn(ii,!0),Gt||Zn.preventDefault()}var le=(0,oe.useRef)(null),Ot=(0,oe.useRef)(null);function be(Zn){if(Dn){Mt.Z.cancel(Ot.current),Ot.current=(0,Mt.Z)(function(){le.current=null},2);var ii=Zn.deltaX,wi=Zn.deltaY,Nr=Zn.shiftKey,_r=ii,Tr=wi;(le.current==="sx"||!le.current&&Nr&&wi&&!ii)&&(_r=wi,Tr=0,le.current="sx");var po=Math.abs(_r),To=Math.abs(Tr);le.current===null&&(le.current=Xe&&po>To?"x":"y"),le.current==="y"?bt(Zn,Tr):Vt(Zn,_r)}}function pn(Zn){Dn&&(Jt.current=Zn.detail===Hn.current)}return[be,pn]}function ve(Dn,yi,En,gn){var Ne=oe.useMemo(function(){return[new Map,[]]},[Dn,En.id,gn]),Xe=(0,Be.Z)(Ne,2),wn=Xe[0],sn=Xe[1],Wn=function(Jt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jt,bt=wn.get(Jt),Vt=wn.get(It);if(bt===void 0||Vt===void 0)for(var le=Dn.length,Ot=sn.length;Ot<le;Ot+=1){var be,pn=Dn[Ot],Zn=yi(pn);wn.set(Zn,Ot);var ii=(be=En.get(Zn))!==null&&be!==void 0?be:gn;if(sn[Ot]=(sn[Ot-1]||0)+ii,Zn===Jt&&(bt=Ot),Zn===It&&(Vt=Ot),bt!==void 0&&Vt!==void 0)break}return{top:sn[bt-1]||0,bottom:sn[Vt]}};return Wn}var fe=Kt(52884),Ye=Kt(95727),De=function(){function Dn(){(0,fe.Z)(this,Dn),(0,Cn.Z)(this,"maps",void 0),(0,Cn.Z)(this,"id",0),(0,Cn.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ye.Z)(Dn,[{key:"set",value:function(En,gn){this.maps[En]=gn,this.id+=1,this.diffKeys.add(En)}},{key:"get",value:function(En){return this.maps[En]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Dn}(),hn=De;function Ue(Dn){var yi=parseFloat(Dn);return isNaN(yi)?0:yi}function Pn(Dn,yi,En){var gn=oe.useState(0),Ne=(0,Be.Z)(gn,2),Xe=Ne[0],wn=Ne[1],sn=(0,oe.useRef)(new Map),Wn=(0,oe.useRef)(new hn),Hn=(0,oe.useRef)(0);function Jt(){Hn.current+=1}function It(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Jt();var le=function(){var pn=!1;sn.current.forEach(function(Zn,ii){if(Zn&&Zn.offsetParent){var wi=Zn.offsetHeight,Nr=getComputedStyle(Zn),_r=Nr.marginTop,Tr=Nr.marginBottom,po=Ue(_r),To=Ue(Tr),Co=wi+po+To;Wn.current.get(ii)!==Co&&(Wn.current.set(ii,Co),pn=!0)}}),pn&&wn(function(Zn){return Zn+1})};if(Vt)le();else{Hn.current+=1;var Ot=Hn.current;Promise.resolve().then(function(){Ot===Hn.current&&le()})}}function bt(Vt,le){var Ot=Dn(Vt),be=sn.current.get(Ot);le?(sn.current.set(Ot,le),It()):sn.current.delete(Ot),!be!=!le&&(le?yi==null||yi(Vt):En==null||En(Vt))}return(0,oe.useEffect)(function(){return Jt},[]),[bt,It,Wn.current,Xe]}var qn=14/15;function un(Dn,yi,En){var gn=(0,oe.useRef)(!1),Ne=(0,oe.useRef)(0),Xe=(0,oe.useRef)(0),wn=(0,oe.useRef)(null),sn=(0,oe.useRef)(null),Wn,Hn=function(Vt){if(gn.current){var le=Math.ceil(Vt.touches[0].pageX),Ot=Math.ceil(Vt.touches[0].pageY),be=Ne.current-le,pn=Xe.current-Ot,Zn=Math.abs(be)>Math.abs(pn);Zn?Ne.current=le:Xe.current=Ot;var ii=En(Zn,Zn?be:pn,!1,Vt);ii&&Vt.preventDefault(),clearInterval(sn.current),ii&&(sn.current=setInterval(function(){Zn?be*=qn:pn*=qn;var wi=Math.floor(Zn?be:pn);(!En(Zn,wi,!0)||Math.abs(wi)<=.1)&&clearInterval(sn.current)},16))}},Jt=function(){gn.current=!1,Wn()},It=function(Vt){Wn(),Vt.touches.length===1&&!gn.current&&(gn.current=!0,Ne.current=Math.ceil(Vt.touches[0].pageX),Xe.current=Math.ceil(Vt.touches[0].pageY),wn.current=Vt.target,wn.current.addEventListener("touchmove",Hn,{passive:!1}),wn.current.addEventListener("touchend",Jt,{passive:!0}))};Wn=function(){wn.current&&(wn.current.removeEventListener("touchmove",Hn),wn.current.removeEventListener("touchend",Jt))},(0,se.Z)(function(){return Dn&&yi.current.addEventListener("touchstart",It,{passive:!0}),function(){var bt;(bt=yi.current)===null||bt===void 0||bt.removeEventListener("touchstart",It),Wn(),clearInterval(sn.current)}},[Dn])}function fn(Dn){return Math.floor(Math.pow(Dn,.5))}function mn(Dn,yi){var En="touches"in Dn?Dn.touches[0]:Dn;return En[yi?"pageX":"pageY"]-window[yi?"scrollX":"scrollY"]}function pe(Dn,yi,En){oe.useEffect(function(){var gn=yi.current;if(Dn&&gn){var Ne=!1,Xe,wn,sn=function(){Mt.Z.cancel(Xe)},Wn=function bt(){sn(),Xe=(0,Mt.Z)(function(){En(wn),bt()})},Hn=function(Vt){if(!(Vt.target.draggable||Vt.button!==0)){var le=Vt;le._virtualHandled||(le._virtualHandled=!0,Ne=!0)}},Jt=function(){Ne=!1,sn()},It=function(Vt){if(Ne){var le=mn(Vt,!1),Ot=gn.getBoundingClientRect(),be=Ot.top,pn=Ot.bottom;if(le<=be){var Zn=be-le;wn=-fn(Zn),Wn()}else if(le>=pn){var ii=le-pn;wn=fn(ii),Wn()}else sn()}};return gn.addEventListener("mousedown",Hn),gn.ownerDocument.addEventListener("mouseup",Jt),gn.ownerDocument.addEventListener("mousemove",It),function(){gn.removeEventListener("mousedown",Hn),gn.ownerDocument.removeEventListener("mouseup",Jt),gn.ownerDocument.removeEventListener("mousemove",It),sn()}}},[Dn])}var Xt=10;function Ve(Dn,yi,En,gn,Ne,Xe,wn,sn){var Wn=oe.useRef(),Hn=oe.useState(null),Jt=(0,Be.Z)(Hn,2),It=Jt[0],bt=Jt[1];return(0,se.Z)(function(){if(It&&It.times<Xt){if(!Dn.current){bt(function(Fo){return(0,Oe.Z)({},Fo)});return}Xe();var Vt=It.targetAlign,le=It.originAlign,Ot=It.index,be=It.offset,pn=Dn.current.clientHeight,Zn=!1,ii=Vt,wi=null;if(pn){for(var Nr=Vt||le,_r=0,Tr=0,po=0,To=Math.min(yi.length-1,Ot),Co=0;Co<=To;Co+=1){var Kr=Ne(yi[Co]);Tr=_r;var gr=En.get(Kr);po=Tr+(gr===void 0?gn:gr),_r=po}for(var Wr=Nr==="top"?be:pn-be,Vr=To;Vr>=0;Vr-=1){var No=Ne(yi[Vr]),us=En.get(No);if(us===void 0){Zn=!0;break}if(Wr-=us,Wr<=0)break}switch(Nr){case"top":wi=Tr-be;break;case"bottom":wi=po-pn+be;break;default:{var Os=Dn.current.scrollTop,Ms=Os+pn;Tr<Os?ii="top":po>Ms&&(ii="bottom")}}wi!==null&&wn(wi),wi!==It.lastTop&&(Zn=!0)}Zn&&bt((0,Oe.Z)((0,Oe.Z)({},It),{},{times:It.times+1,targetAlign:ii,lastTop:wi}))}},[It,Dn.current]),function(Vt){if(Vt==null){sn();return}if(Mt.Z.cancel(Wn.current),typeof Vt=="number")wn(Vt);else if(Vt&&(0,ke.Z)(Vt)==="object"){var le,Ot=Vt.align;"index"in Vt?le=Vt.index:le=yi.findIndex(function(Zn){return Ne(Zn)===Vt.key});var be=Vt.offset,pn=be===void 0?0:be;bt({times:0,index:le,offset:pn,originAlign:Ot})}}}var Vn=oe.forwardRef(function(Dn,yi){var En=Dn.prefixCls,gn=Dn.rtl,Ne=Dn.scrollOffset,Xe=Dn.scrollRange,wn=Dn.onStartMove,sn=Dn.onStopMove,Wn=Dn.onScroll,Hn=Dn.horizontal,Jt=Dn.spinSize,It=Dn.containerSize,bt=Dn.style,Vt=Dn.thumbStyle,le=Dn.showScrollBar,Ot=oe.useState(!1),be=(0,Be.Z)(Ot,2),pn=be[0],Zn=be[1],ii=oe.useState(null),wi=(0,Be.Z)(ii,2),Nr=wi[0],_r=wi[1],Tr=oe.useState(null),po=(0,Be.Z)(Tr,2),To=po[0],Co=po[1],Kr=!gn,gr=oe.useRef(),Wr=oe.useRef(),Vr=oe.useState(le),No=(0,Be.Z)(Vr,2),us=No[0],Os=No[1],Ms=oe.useRef(),Fo=function(){le===!0||le===!1||(clearTimeout(Ms.current),Os(!0),Ms.current=setTimeout(function(){Os(!1)},3e3))},jt=Xe-It||0,la=It-Jt||0,fs=oe.useMemo(function(){if(Ne===0||jt===0)return 0;var Ae=Ne/jt;return Ae*la},[Ne,jt,la]),vs=function(Tn){Tn.stopPropagation(),Tn.preventDefault()},Ws=oe.useRef({top:fs,dragging:pn,pageY:Nr,startTop:To});Ws.current={top:fs,dragging:pn,pageY:Nr,startTop:To};var Fa=function(Tn){Zn(!0),_r(mn(Tn,Hn)),Co(Ws.current.top),wn(),Tn.stopPropagation(),Tn.preventDefault()};oe.useEffect(function(){var Ae=function(we){we.preventDefault()},Tn=gr.current,Jn=Wr.current;return Tn.addEventListener("touchstart",Ae,{passive:!1}),Jn.addEventListener("touchstart",Fa,{passive:!1}),function(){Tn.removeEventListener("touchstart",Ae),Jn.removeEventListener("touchstart",Fa)}},[]);var Sa=oe.useRef();Sa.current=jt;var Pr=oe.useRef();Pr.current=la,oe.useEffect(function(){if(pn){var Ae,Tn=function(we){var qe=Ws.current,In=qe.dragging,ui=qe.pageY,Pi=qe.startTop;Mt.Z.cancel(Ae);var Fe=gr.current.getBoundingClientRect(),Qn=It/(Hn?Fe.width:Fe.height);if(In){var Ei=(mn(we,Hn)-ui)*Qn,Ar=Pi;!Kr&&Hn?Ar-=Ei:Ar+=Ei;var Sn=Sa.current,$n=Pr.current,xr=$n?Ar/$n:0,dr=Math.ceil(xr*Sn);dr=Math.max(dr,0),dr=Math.min(dr,Sn),Ae=(0,Mt.Z)(function(){Wn(dr,Hn)})}},Jn=function(){Zn(!1),sn()};return window.addEventListener("mousemove",Tn,{passive:!0}),window.addEventListener("touchmove",Tn,{passive:!0}),window.addEventListener("mouseup",Jn,{passive:!0}),window.addEventListener("touchend",Jn,{passive:!0}),function(){window.removeEventListener("mousemove",Tn),window.removeEventListener("touchmove",Tn),window.removeEventListener("mouseup",Jn),window.removeEventListener("touchend",Jn),Mt.Z.cancel(Ae)}}},[pn]),oe.useEffect(function(){return Fo(),function(){clearTimeout(Ms.current)}},[Ne]),oe.useImperativeHandle(yi,function(){return{delayHidden:Fo}});var Lr="".concat(En,"-scrollbar"),ln={position:"absolute",visibility:us?null:"hidden"},nn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Hn?(ln.height=8,ln.left=0,ln.right=0,ln.bottom=0,nn.height="100%",nn.width=Jt,Kr?nn.left=fs:nn.right=fs):(ln.width=8,ln.top=0,ln.bottom=0,Kr?ln.right=0:ln.left=0,nn.width="100%",nn.height=Jt,nn.top=fs),oe.createElement("div",{ref:gr,className:ge()(Lr,(0,Cn.Z)((0,Cn.Z)((0,Cn.Z)({},"".concat(Lr,"-horizontal"),Hn),"".concat(Lr,"-vertical"),!Hn),"".concat(Lr,"-visible"),us)),style:(0,Oe.Z)((0,Oe.Z)({},ln),bt),onMouseDown:vs,onMouseMove:Fo},oe.createElement("div",{ref:Wr,className:ge()("".concat(Lr,"-thumb"),(0,Cn.Z)({},"".concat(Lr,"-thumb-moving"),pn)),style:(0,Oe.Z)((0,Oe.Z)({},nn),Vt),onMouseDown:Fa}))}),si=Vn,An=20;function Nn(){var Dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,En=Dn/yi*Dn;return isNaN(En)&&(En=0),En=Math.max(En,An),Math.floor(En)}var Yn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ci=[],Mi={overflowY:"auto",overflowAnchor:"none"};function Ri(Dn,yi){var En=Dn.prefixCls,gn=En===void 0?"rc-virtual-list":En,Ne=Dn.className,Xe=Dn.height,wn=Dn.itemHeight,sn=Dn.fullHeight,Wn=sn===void 0?!0:sn,Hn=Dn.style,Jt=Dn.data,It=Dn.children,bt=Dn.itemKey,Vt=Dn.virtual,le=Dn.direction,Ot=Dn.scrollWidth,be=Dn.component,pn=be===void 0?"div":be,Zn=Dn.onScroll,ii=Dn.onVirtualScroll,wi=Dn.onVisibleChange,Nr=Dn.innerProps,_r=Dn.extraRender,Tr=Dn.styles,po=Dn.showScrollBar,To=po===void 0?"optional":po,Co=(0,vn.Z)(Dn,Yn),Kr=oe.useCallback(function(Do){return typeof bt=="function"?bt(Do):Do==null?void 0:Do[bt]},[bt]),gr=Pn(Kr,null,null),Wr=(0,Be.Z)(gr,4),Vr=Wr[0],No=Wr[1],us=Wr[2],Os=Wr[3],Ms=!!(Vt!==!1&&Xe&&wn),Fo=oe.useMemo(function(){return Object.values(us.maps).reduce(function(Do,yo){return Do+yo},0)},[us.id,us.maps]),jt=Ms&&Jt&&(Math.max(wn*Jt.length,Fo)>Xe||!!Ot),la=le==="rtl",fs=ge()(gn,(0,Cn.Z)({},"".concat(gn,"-rtl"),la),Ne),vs=Jt||Ci,Ws=(0,oe.useRef)(),Fa=(0,oe.useRef)(),Sa=(0,oe.useRef)(),Pr=(0,oe.useState)(0),Lr=(0,Be.Z)(Pr,2),ln=Lr[0],nn=Lr[1],Ae=(0,oe.useState)(0),Tn=(0,Be.Z)(Ae,2),Jn=Tn[0],He=Tn[1],we=(0,oe.useState)(!1),qe=(0,Be.Z)(we,2),In=qe[0],ui=qe[1],Pi=function(){ui(!0)},Fe=function(){ui(!1)},Qn={getKey:Kr};function Ei(Do){nn(function(yo){var os;typeof Do=="function"?os=Do(yo):os=Do;var wo=co(os);return Ws.current.scrollTop=wo,wo})}var Ar=(0,oe.useRef)({start:0,end:vs.length}),Sn=(0,oe.useRef)(),$n=vt(vs,Kr),xr=(0,Be.Z)($n,1),dr=xr[0];Sn.current=dr;var Dr=oe.useMemo(function(){if(!Ms)return{scrollHeight:void 0,start:0,end:vs.length-1,offset:void 0};if(!jt){var Do;return{scrollHeight:((Do=Fa.current)===null||Do===void 0?void 0:Do.offsetHeight)||0,start:0,end:vs.length-1,offset:void 0}}for(var yo=0,os,wo,Ps,Pl=vs.length,Hr=0;Hr<Pl;Hr+=1){var zr=vs[Hr],Ni=Kr(zr),to=us.get(Ni),hs=yo+(to===void 0?wn:to);hs>=ln&&os===void 0&&(os=Hr,wo=yo),hs>ln+Xe&&Ps===void 0&&(Ps=Hr),yo=hs}return os===void 0&&(os=0,wo=0,Ps=Math.ceil(Xe/wn)),Ps===void 0&&(Ps=vs.length-1),Ps=Math.min(Ps+1,vs.length-1),{scrollHeight:yo,start:os,end:Ps,offset:wo}},[jt,Ms,ln,vs,Os,Xe]),tr=Dr.scrollHeight,vr=Dr.start,ur=Dr.end,kr=Dr.offset;Ar.current.start=vr,Ar.current.end=ur,oe.useLayoutEffect(function(){var Do=us.getRecord();if(Do.size===1){var yo=Array.from(Do)[0],os=vs[vr];if(os){var wo=Kr(os);if(wo===yo){var Ps=us.get(yo),Pl=Ps-wn;Ei(function(Hr){return Hr+Pl})}}}us.resetRecord()},[tr]);var Ao=oe.useState({width:0,height:Xe}),Oo=(0,Be.Z)(Ao,2),Kn=Oo[0],Vo=Oo[1],rs=function(yo){Vo({width:yo.offsetWidth,height:yo.offsetHeight})},Po=(0,oe.useRef)(),zn=(0,oe.useRef)(),Hi=oe.useMemo(function(){return Nn(Kn.width,Ot)},[Kn.width,Ot]),pr=oe.useMemo(function(){return Nn(Kn.height,tr)},[Kn.height,tr]),jr=tr-Xe,Ir=(0,oe.useRef)(jr);Ir.current=jr;function co(Do){var yo=Do;return Number.isNaN(Ir.current)||(yo=Math.min(yo,Ir.current)),yo=Math.max(yo,0),yo}var Io=ln<=0,oo=ln>=jr,eo=Jn<=0,Br=Jn>=Ot,ai=$t(Io,oo,eo,Br),vo=function(){return{x:la?-Jn:Jn,y:ln}},ei=(0,oe.useRef)(vo()),Qo=(0,Nt.useEvent)(function(Do){if(ii){var yo=(0,Oe.Z)((0,Oe.Z)({},vo()),Do);(ei.current.x!==yo.x||ei.current.y!==yo.y)&&(ii(yo),ei.current=yo)}});function Vs(Do,yo){var os=Do;yo?((0,me.flushSync)(function(){He(os)}),Qo()):Ei(os)}function Xo(Do){var yo=Do.currentTarget.scrollTop;yo!==ln&&Ei(yo),Zn==null||Zn(Do),Qo()}var Js=function(yo){var os=yo,wo=Ot?Ot-Kn.width:0;return os=Math.max(os,0),os=Math.min(os,wo),os},ks=(0,Nt.useEvent)(function(Do,yo){yo?((0,me.flushSync)(function(){He(function(os){var wo=os+(la?-Do:Do);return Js(wo)})}),Qo()):Ei(function(os){var wo=os+Do;return wo})}),no=ae(Ms,Io,oo,eo,Br,!!Ot,ks),ro=(0,Be.Z)(no,2),Go=ro[0],Ro=ro[1];un(Ms,Ws,function(Do,yo,os,wo){var Ps=wo;return ai(Do,yo,os)?!1:!Ps||!Ps._virtualHandled?(Ps&&(Ps._virtualHandled=!0),Go({preventDefault:function(){},deltaX:Do?yo:0,deltaY:Do?0:yo}),!0):!1}),pe(jt,Ws,function(Do){Ei(function(yo){return yo+Do})}),(0,se.Z)(function(){function Do(os){var wo=Io&&os.detail<0,Ps=oo&&os.detail>0;Ms&&!wo&&!Ps&&os.preventDefault()}var yo=Ws.current;return yo.addEventListener("wheel",Go,{passive:!1}),yo.addEventListener("DOMMouseScroll",Ro,{passive:!0}),yo.addEventListener("MozMousePixelScroll",Do,{passive:!1}),function(){yo.removeEventListener("wheel",Go),yo.removeEventListener("DOMMouseScroll",Ro),yo.removeEventListener("MozMousePixelScroll",Do)}},[Ms,Io,oo]),(0,se.Z)(function(){if(Ot){var Do=Js(Jn);He(Do),Qo({x:Do})}},[Kn.width,Ot]);var Ji=function(){var yo,os;(yo=Po.current)===null||yo===void 0||yo.delayHidden(),(os=zn.current)===null||os===void 0||os.delayHidden()},re=Ve(Ws,vs,us,wn,Kr,function(){return No(!0)},Ei,Ji);oe.useImperativeHandle(yi,function(){return{nativeElement:Sa.current,getScrollInfo:vo,scrollTo:function(yo){function os(wo){return wo&&(0,ke.Z)(wo)==="object"&&("left"in wo||"top"in wo)}os(yo)?(yo.left!==void 0&&He(Js(yo.left)),re(yo.top)):re(yo)}}}),(0,se.Z)(function(){if(wi){var Do=vs.slice(vr,ur+1);wi(Do,vs)}},[vr,ur,vs]);var zo=ve(vs,Kr,us,wn),Hs=_r==null?void 0:_r({start:vr,end:ur,virtual:jt,offsetX:Jn,offsetY:kr,rtl:la,getSize:zo}),Qa=ht(vs,vr,ur,Ot,Jn,Vr,It,Qn),Ra=null;Xe&&(Ra=(0,Oe.Z)((0,Cn.Z)({},Wn?"height":"maxHeight",Xe),Mi),Ms&&(Ra.overflowY="hidden",Ot&&(Ra.overflowX="hidden"),In&&(Ra.pointerEvents="none")));var hl={};return la&&(hl.dir="rtl"),oe.createElement("div",(0,zt.Z)({ref:Sa,style:(0,Oe.Z)((0,Oe.Z)({},Hn),{},{position:"relative"}),className:fs},hl,Co),oe.createElement(ye.Z,{onResize:rs},oe.createElement(pn,{className:"".concat(gn,"-holder"),style:Ra,ref:Ws,onScroll:Xo,onMouseEnter:Ji},oe.createElement(et,{prefixCls:gn,height:tr,offsetX:Jn,offsetY:kr,scrollWidth:Ot,onInnerResize:No,ref:Fa,innerProps:Nr,rtl:la,extra:Hs},Qa))),jt&&tr>Xe&&oe.createElement(si,{ref:Po,prefixCls:gn,scrollOffset:ln,scrollRange:tr,rtl:la,onScroll:Vs,onStartMove:Pi,onStopMove:Fe,spinSize:pr,containerSize:Kn.height,style:Tr==null?void 0:Tr.verticalScrollBar,thumbStyle:Tr==null?void 0:Tr.verticalScrollBarThumb,showScrollBar:To}),jt&&Ot>Kn.width&&oe.createElement(si,{ref:zn,prefixCls:gn,scrollOffset:Jn,scrollRange:Ot,rtl:la,onScroll:Vs,onStartMove:Pi,onStopMove:Fe,spinSize:Hi,containerSize:Kn.width,horizontal:!0,style:Tr==null?void 0:Tr.horizontalScrollBar,thumbStyle:Tr==null?void 0:Tr.horizontalScrollBarThumb,showScrollBar:To}))}var Te=oe.forwardRef(Ri);Te.displayName="List";var ci=Te,ki=ci},93314:function(Fi){"use strict";Fi.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(Fi){"use strict";Fi.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Fi){"use strict";Fi.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Fi){"use strict";Fi.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Fi,Ti,Kt){"use strict";Kt.d(Ti,{Z:function(){return ge}});const zt=ye=>typeof ye=="object"&&ye!=null&&ye.nodeType===1,ke=(ye,Nt)=>(!Nt||ye!=="hidden")&&ye!=="visible"&&ye!=="clip",Oe=(ye,Nt)=>{if(ye.clientHeight<ye.scrollHeight||ye.clientWidth<ye.scrollWidth){const se=getComputedStyle(ye,null);return ke(se.overflowY,Nt)||ke(se.overflowX,Nt)||(oe=>{const me=(Ut=>{if(!Ut.ownerDocument||!Ut.ownerDocument.defaultView)return null;try{return Ut.ownerDocument.defaultView.frameElement}catch(et){return null}})(oe);return!!me&&(me.clientHeight<oe.scrollHeight||me.clientWidth<oe.scrollWidth)})(ye)}return!1},Cn=(ye,Nt,se,oe,me,Ut,et,nt)=>Ut<ye&&et>Nt||Ut>ye&&et<Nt?0:Ut<=ye&&nt<=se||et>=Nt&&nt>=se?Ut-ye-oe:et>Nt&&nt<se||Ut<ye&&nt>se?et-Nt+me:0,Be=ye=>{const Nt=ye.parentElement;return Nt==null?ye.getRootNode().host||null:Nt},vn=(ye,Nt)=>{var se,oe,me,Ut;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ht,boundary:at,skipOverflowHiddenElements:ft}=Nt,vt=typeof at=="function"?at:si=>si!==at;if(!zt(ye))throw new TypeError("Invalid target");const Mt=document.scrollingElement||document.documentElement,Rt=[];let Gt=ye;for(;zt(Gt)&&vt(Gt);){if(Gt=Be(Gt),Gt===Mt){Rt.push(Gt);break}Gt!=null&&Gt===document.body&&Oe(Gt)&&!Oe(document.documentElement)||Gt!=null&&Oe(Gt,ft)&&Rt.push(Gt)}const $t=(oe=(se=window.visualViewport)==null?void 0:se.width)!=null?oe:innerWidth,ae=(Ut=(me=window.visualViewport)==null?void 0:me.height)!=null?Ut:innerHeight,{scrollX:ve,scrollY:fe}=window,{height:Ye,width:De,top:hn,right:Ue,bottom:Pn,left:qn}=ye.getBoundingClientRect(),{top:un,right:fn,bottom:mn,left:pe}=(si=>{const An=window.getComputedStyle(si);return{top:parseFloat(An.scrollMarginTop)||0,right:parseFloat(An.scrollMarginRight)||0,bottom:parseFloat(An.scrollMarginBottom)||0,left:parseFloat(An.scrollMarginLeft)||0}})(ye);let Xt=nt==="start"||nt==="nearest"?hn-un:nt==="end"?Pn+mn:hn+Ye/2-un+mn,Ve=ht==="center"?qn+De/2-pe+fn:ht==="end"?Ue+fn:qn-pe;const Vn=[];for(let si=0;si<Rt.length;si++){const An=Rt[si],{height:Nn,width:Yn,top:Ci,right:Mi,bottom:Ri,left:Te}=An.getBoundingClientRect();if(et==="if-needed"&&hn>=0&&qn>=0&&Pn<=ae&&Ue<=$t&&(An===Mt&&!Oe(An)||hn>=Ci&&Pn<=Ri&&qn>=Te&&Ue<=Mi))return Vn;const ci=getComputedStyle(An),ki=parseInt(ci.borderLeftWidth,10),Dn=parseInt(ci.borderTopWidth,10),yi=parseInt(ci.borderRightWidth,10),En=parseInt(ci.borderBottomWidth,10);let gn=0,Ne=0;const Xe="offsetWidth"in An?An.offsetWidth-An.clientWidth-ki-yi:0,wn="offsetHeight"in An?An.offsetHeight-An.clientHeight-Dn-En:0,sn="offsetWidth"in An?An.offsetWidth===0?0:Yn/An.offsetWidth:0,Wn="offsetHeight"in An?An.offsetHeight===0?0:Nn/An.offsetHeight:0;if(Mt===An)gn=nt==="start"?Xt:nt==="end"?Xt-ae:nt==="nearest"?Cn(fe,fe+ae,ae,Dn,En,fe+Xt,fe+Xt+Ye,Ye):Xt-ae/2,Ne=ht==="start"?Ve:ht==="center"?Ve-$t/2:ht==="end"?Ve-$t:Cn(ve,ve+$t,$t,ki,yi,ve+Ve,ve+Ve+De,De),gn=Math.max(0,gn+fe),Ne=Math.max(0,Ne+ve);else{gn=nt==="start"?Xt-Ci-Dn:nt==="end"?Xt-Ri+En+wn:nt==="nearest"?Cn(Ci,Ri,Nn,Dn,En+wn,Xt,Xt+Ye,Ye):Xt-(Ci+Nn/2)+wn/2,Ne=ht==="start"?Ve-Te-ki:ht==="center"?Ve-(Te+Yn/2)+Xe/2:ht==="end"?Ve-Mi+yi+Xe:Cn(Te,Mi,Yn,ki,yi+Xe,Ve,Ve+De,De);const{scrollLeft:Hn,scrollTop:Jt}=An;gn=Wn===0?0:Math.max(0,Math.min(Jt+gn/Wn,An.scrollHeight-Nn/Wn+wn)),Ne=sn===0?0:Math.max(0,Math.min(Hn+Ne/sn,An.scrollWidth-Yn/sn+Xe)),Xt+=Jt-gn,Ve+=Hn-Ne}Vn.push({el:An,top:gn,left:Ne})}return Vn},Ie=ye=>ye===!1?{block:"end",inline:"nearest"}:(Nt=>Nt===Object(Nt)&&Object.keys(Nt).length!==0)(ye)?ye:{block:"start",inline:"nearest"};function ge(ye,Nt){if(!ye.isConnected||!(me=>{let Ut=me;for(;Ut&&Ut.parentNode;){if(Ut.parentNode===document)return!0;Ut=Ut.parentNode instanceof ShadowRoot?Ut.parentNode.host:Ut.parentNode}return!1})(ye))return;const se=(me=>{const Ut=window.getComputedStyle(me);return{top:parseFloat(Ut.scrollMarginTop)||0,right:parseFloat(Ut.scrollMarginRight)||0,bottom:parseFloat(Ut.scrollMarginBottom)||0,left:parseFloat(Ut.scrollMarginLeft)||0}})(ye);if((me=>typeof me=="object"&&typeof me.behavior=="function")(Nt))return Nt.behavior(vn(ye,Nt));const oe=typeof Nt=="boolean"||Nt==null?void 0:Nt.behavior;for(const{el:me,top:Ut,left:et}of vn(ye,Ie(Nt))){const nt=Ut-se.top+se.bottom,ht=et-se.left+se.right;me.scroll({top:nt,left:ht,behavior:oe})}}}}]);