|
|
(self.webpackChunk=self.webpackChunk||[]).push([[67],{40001:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(It,xe){return Le.createElement(Se.Z,(0,Kt.Z)({},It,{ref:xe,icon:xn}))},je=Le.forwardRef(We),de=je},73331:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(It,xe){return Le.createElement(Se.Z,(0,Kt.Z)({},It,{ref:xe,icon:xn}))},je=Le.forwardRef(We),de=je},15277:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(It,xe){return Le.createElement(Se.Z,(0,Kt.Z)({},It,{ref:xe,icon:xn}))},je=Le.forwardRef(We),de=je},33853:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(It,xe){return Le.createElement(Se.Z,(0,Kt.Z)({},It,{ref:xe,icon:xn}))},je=Le.forwardRef(We),de=je},61485:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(It,xe){return Le.createElement(Se.Z,(0,Kt.Z)({},It,{ref:xe,icon:xn}))},je=Le.forwardRef(We),de=je},38819:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(It,xe){return Le.createElement(Se.Z,(0,Kt.Z)({},It,{ref:xe,icon:xn}))},je=Le.forwardRef(We),de=je},47472:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(It,xe){return Le.createElement(Se.Z,(0,Kt.Z)({},It,{ref:xe,icon:xn}))},je=Le.forwardRef(We),de=je},78780:function(){"use strict"},19136:function(){"use strict"},11570:function(Ci,Ii){"use strict";Ii.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},13669:function(Ci,Ii){"use strict";Ii.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"}},29277:function(){"use strict";function Ci(Qt,et,nt,ht){nt===void 0&&(nt=0),ht===void 0&&(ht=1/0),this._name=Qt,this._defaultValue=et,this._minimum=nt,this._maximum=ht}Object.defineProperty(Ci.prototype,"name",{get:function(){return this._name},set:function(Qt){if(typeof Qt!="string"||Qt==="")throw new Error("Shape name must be a valid string.");this._name=Qt}}),Object.defineProperty(Ci.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Qt){if(typeof Qt!="number"||isNaN(Qt))throw new Error("The default value must be a real number, not: "+Qt);this._defaultValue=Qt}}),Object.defineProperty(Ci.prototype,"minimum",{get:function(){return this._minimum},set:function(Qt){if(typeof Qt!="number"||isNaN(Qt))throw new Error("Minimum must be a real number, not: "+Qt);this._minimum=Qt}}),Object.defineProperty(Ci.prototype,"maximum",{get:function(){return this._maximum},set:function(Qt){if(typeof Qt!="number"||isNaN(Qt))throw new Error("Maximum must be a real number, not: "+Qt);this._maximum=Qt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Qt,et){var nt=go.Shape._FigureParameters[Qt];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Qt,et,nt){if(!(nt instanceof Ci))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[Qt];ht||(ht=[],go.Shape._FigureParameters[Qt]=ht),ht[et]=nt};var Ii=[];function Yt(Qt,et){var nt=Ii.pop();return nt===void 0?new go.Point(Qt,et):(nt.x=Qt,nt.y=et,nt)}function Kt(){var Qt=Ii.pop();return Qt===void 0?new go.Point:Qt}function Le(Qt){Ii.push(Qt)}function Te(Qt,et,nt,ht,at,ft,vt,Nt,Rt){Rt||(Rt=new go.Point);var Gt=Qt-nt,$t=at-vt,se=NaN,me=NaN;if(Gt===0)if($t===0)Qt===nt&&(se=Qt,me=et);else{var ce=(ft-Nt)/$t,Xe=ft-ce*at;se=Qt,me=ce*se+Xe}else if($t===0){var De=(et-ht)/Gt,ln=et-De*Qt;se=at,me=De*se+ln}else{var De=(et-ht)/Gt,ce=(ft-Nt)/$t,ln=et-De*Qt,Xe=ft-ce*at;se=(Xe-ln)/(De-ce),me=De*se+ln}return Rt.x=se,Rt.y=me,Rt}function xn(Qt,et,nt,ht,at,ft,vt,Nt,Rt,Gt,$t,se,me,ce){var Xe=1-Rt,De=Rt,ln=Qt*Xe+nt*De,Oe=et*Xe+ht*De,mn=nt*Xe+at*De,Kn=ht*Xe+ft*De,sn=at*Xe+vt*De,gn=ft*Xe+Nt*De,pn=ln*Xe+mn*De,fe=Oe*Xe+Kn*De,Zt=mn*Xe+sn*De,Ye=Kn*Xe+gn*De,Gn=pn*Xe+Zt*De,ri=fe*Xe+Ye*De;Gt.x=ln,Gt.y=Oe,$t.x=pn,$t.y=fe,se.x=Gn,se.y=ri,me.x=Zt,me.y=Ye,ce.x=sn,ce.y=gn}var Se=new go.Spot(.156,.156),We=new go.Spot(.844,.844),je=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ci("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var at=ht*je,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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=Se,at.spot2=We,at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Line1",function(Qt,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(Qt,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(Qt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,je*et,0,et,(1-je)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Qt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,je*nt,(1-je)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Qt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,je*nt,je*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Qt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-je)*et,0,0,(1-je)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Qt,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(Qt,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(Qt,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(Qt,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 Ci("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Qt,et,nt){var ht=Qt?Qt.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 Ci("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Qt,et,nt){var ht=Qt?Qt.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 Ci("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Qt,et,nt){var ht=Qt?Qt.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 Ci("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Qt,et,nt){var ht=Qt?Qt.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 Ci("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Qt,et,nt){var ht=Qt?Qt.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 de=[];function ve(){var Qt=de.pop();return Qt===void 0?[]:Qt}function It(Qt){Qt.length=0,de.push(Qt)}function xe(Qt){for(var et=ve(),nt=.5,ht=.5,at=Math.PI*1.5,ft=0,vt=0;vt<Qt;vt++)ft=2*Math.PI/Qt*vt+at,et[vt]=new go.Point(ht+nt*Math.cos(ft),ht+nt*Math.sin(ft));return et.push(et[0]),et}function ee(Qt){var et=ge(Qt),nt=ve();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 It(et),nt}function ge(Qt){for(var et=xe(Qt),nt=ve(),ht=Math.floor(et.length/2),at=et.length-1,ft=Qt%2===0?2:1,vt=0;vt<at;vt++){var Nt=et[vt],Rt=et[vt+1],Gt=et[(ht+vt-1)%at],$t=et[(ht+vt+ft)%at];nt[vt*2]=Nt,nt[vt*2+1]=Te(Nt.x,Nt.y,Gt.x,Gt.y,Rt.x,Rt.y,$t.x,$t.y,new go.Point)}return nt[nt.length]=nt[0],It(et),nt}go.Shape.defineFigureGenerator("Pentagon",function(Qt,et,nt){var ht=xe(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()),It(ht),at.spot1=new go.Spot(.2,.22),at.spot2=new go.Spot(.8,.9),at}),go.Shape.defineFigureGenerator("Hexagon",function(Qt,et,nt){var ht=xe(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()),It(ht),at.spot1=new go.Spot(.07,.25),at.spot2=new go.Spot(.93,.75),at}),go.Shape.defineFigureGenerator("Heptagon",function(Qt,et,nt){var ht=xe(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()),It(ht),at.spot1=new go.Spot(.2,.15),at.spot2=new go.Spot(.8,.85),at}),go.Shape.defineFigureGenerator("Octagon",function(Qt,et,nt){var ht=xe(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()),It(ht),at.spot1=new go.Spot(.15,.15),at.spot2=new go.Spot(.85,.85),at}),go.Shape.defineFigureGenerator("Nonagon",function(Qt,et,nt){var ht=xe(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()),It(ht),at.spot1=new go.Spot(.17,.13),at.spot2=new go.Spot(.82,.82),at}),go.Shape.defineFigureGenerator("Decagon",function(Qt,et,nt){var ht=xe(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()),It(ht),at.spot1=new go.Spot(.16,.16),at.spot2=new go.Spot(.84,.84),at}),go.Shape.defineFigureGenerator("Dodecagon",function(Qt,et,nt){var ht=xe(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()),It(ht),at.spot1=new go.Spot(.16,.16),at.spot2=new go.Spot(.84,.84),at}),go.Shape.defineFigureGenerator("FivePointedStar",function(Qt,et,nt){var ht=ge(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()),It(ht),at.spot1=new go.Spot(.266,.333),at.spot2=new go.Spot(.733,.733),at}),go.Shape.defineFigureGenerator("SixPointedStar",function(Qt,et,nt){var ht=ge(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()),It(ht),at.spot1=new go.Spot(.17,.25),at.spot2=new go.Spot(.83,.75),at}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Qt,et,nt){var ht=ge(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()),It(ht),at.spot1=new go.Spot(.222,.277),at.spot2=new go.Spot(.777,.666),at}),go.Shape.defineFigureGenerator("EightPointedStar",function(Qt,et,nt){var ht=ge(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()),It(ht),at.spot1=new go.Spot(.25,.25),at.spot2=new go.Spot(.75,.75),at}),go.Shape.defineFigureGenerator("NinePointedStar",function(Qt,et,nt){var ht=ge(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()),It(ht),at.spot1=new go.Spot(.222,.277),at.spot2=new go.Spot(.777,.666),at}),go.Shape.defineFigureGenerator("TenPointedStar",function(Qt,et,nt){var ht=ge(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()),It(ht),at.spot1=new go.Spot(.281,.261),at.spot2=new go.Spot(.723,.748),at}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Qt,et,nt){var ht=ee(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(),It(ht),at.spot1=new go.Spot(.222,.277),at.spot2=new go.Spot(.777,.777),at}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Qt,et,nt){var ht=ee(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(),It(ht),at.spot1=new go.Spot(.17,.222),at.spot2=new go.Spot(.833,.777),at}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Qt,et,nt){var ht=ee(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(),It(ht),at.spot1=new go.Spot(.222,.222),at.spot2=new go.Spot(.777,.777),at}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Qt,et,nt){var ht=ee(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(),It(ht),at.spot1=new go.Spot(.222,.222),at.spot2=new go.Spot(.777,.777),at}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Qt,et,nt){var ht=ee(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(),It(ht),at.spot1=new go.Spot(.222,.222),at.spot2=new go.Spot(.777,.777),at}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Qt,et,nt){var ht=ee(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(),It(ht),at.spot1=new go.Spot(.222,.222),at.spot2=new go.Spot(.777,.777),at}),go.Shape.setFigureParameter("FramedRectangle",0,new Ci("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ci("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN,at=Qt?Qt.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 Ci("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Qt,et,nt){var ht=Qt?Qt.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 Nt=Math.max(at-ht,0);return Nt>0&&(vt.add(new go.PathSegment(go.PathSegment.Move,et/2+Nt,et/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,at,at,Nt,Nt).close())),ft.spot1=Se,ft.spot2=We,ft.defaultStretch=go.GraphObject.Uniform,ft}),go.Shape.defineFigureGenerator("Cloud",function(Qt,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(Qt,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 Ci("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ci("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN,at=Qt?Qt.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(at)&&(at=315);var ft=ht%360;ft<0&&(ft+=360);var vt=at%360,Nt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(Nt,Nt).add(new go.PathSegment(go.PathSegment.Arc,ft,vt,Nt,Nt,Nt,Nt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Qt,et,nt){var ht=je/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 Ci("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Qt,et,nt){var ht=Qt?Qt.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 Ci("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Qt,et,nt){var ht=Qt?Qt.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 Ci("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Qt,et,nt){var ht=Qt?Qt.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,Nt=Math.atan2(nt,et),Rt=ht-Math.min(Math.cos(Nt)*ht/2,ft),Gt=ht-Math.min(Math.sin(Nt)*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 Ci("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Qt,et,nt){var ht=Qt?Qt.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 Ci("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Qt,et,nt){var ht=Qt?Qt.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 Ci("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Qt,et,nt){var ht=Qt?Qt.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(Qt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,je*et,0,et,(.5-je/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+je/2)*nt,je*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Qt,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(Qt,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(Qt,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(Qt,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,Nt=0,Rt=ft*je;return at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+ft+Nt)*nt,(.5-ft+vt)*et,(.5+Rt+Nt)*nt,(.5-Rt+vt)*et,(.5+ft+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ft+vt)*et,(.5+Nt)*nt,(.5+Rt+vt)*et,(.5+ft+Nt)*nt,(.5+ft+vt)*et,(.5+Rt+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-ft+Nt)*nt,(1-.5+ft+vt)*et,(.5-Rt+Nt)*nt,(.5+Rt+vt)*et,(.5-ft+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Rt+vt)*et,(.5-ft+Nt)*nt,(.5-ft+vt+.05)*et,(.5-Rt+Nt-.02)*nt)),ft=.2,vt=0,Nt=-.3,Rt=ft*je,at.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ft+vt)*et,(.5+Nt)*nt,(.5+Rt+vt)*et,(.5+ft+Nt)*nt,(.5+ft+vt)*et,(.5+Rt+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-ft+Nt)*nt,(1-.5+ft+vt)*et,(.5-Rt+Nt)*nt,(.5+Rt+vt)*et,(.5-ft+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ft+vt)*et,(.5+Nt)*nt,(.5-Rt+vt)*et,(.5-ft+Nt)*nt,(.5-ft+vt)*et,(.5-Rt+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Rt+vt)*et,(.5+ft+Nt)*nt,(.5-ft+vt)*et,(.5+Rt+Nt)*nt,(.5-Rt+vt)*et,(.5+ft+Nt)*nt)),ft=.2,vt=-.3,Nt=0,Rt=ft*je,at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-ft+Nt)*nt,(1-.5+ft+vt-.05)*et,(.5-Rt+Nt-.02)*nt,(.5+Rt+vt)*et,(.5-ft+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ft+vt)*et,(.5+Nt)*nt,(.5-Rt+vt)*et,(.5-ft+Nt)*nt,(.5-ft+vt)*et,(.5-Rt+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+ft+Nt)*nt,(.5-ft+vt)*et,(.5+Rt+Nt)*nt,(.5-Rt+vt)*et,(.5+ft+Nt)*nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Rt+vt)*et,(.5+ft+Nt)*nt,(.5+ft+vt)*et,(.5+Rt+Nt)*nt).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Qt,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,Nt=.25;return at.add(new go.PathSegment(go.PathSegment.Move,(vt+ft)*et,Nt*nt)),at.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*vt,nt*Nt,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)),Nt=.75,at=new go.PathFigure((vt+ft)*et,Nt*nt,!0),ht.add(at),at.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*vt,nt*Nt,ft*et,ft*et).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=je*.5,ft=.5,vt=.5,Nt=.5,Rt=new go.PathFigure(vt*et,(Nt-ft)*nt);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Nt*nt,(vt-at)*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+ft)*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Nt*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-ft)*nt,(vt+ft)*et,(Nt-at)*nt,(vt+at)*et,(Nt-ft)*nt)),ft=.4,at=je*.4;var Gt=Kt(),$t=Kt(),se=Kt(),me=Kt();xn(vt,Nt-ft,vt+at,Nt-ft,vt+ft,Nt-at,vt+ft,Nt,.42,Gt,$t,se,me,me);var ce=Kt(),Xe=Kt(),De=Kt();xn(vt,Nt-ft,vt+at,Nt-ft,vt+ft,Nt-at,vt+ft,Nt,.58,me,me,De,ce,Xe);var ln=Kt(),Oe=Kt(),mn=Kt();xn(vt,Nt+ft,vt-at,Nt+ft,vt-ft,Nt+at,vt-ft,Nt,.42,ln,Oe,mn,me,me);var Kn=Kt(),sn=Kt(),gn=Kt();return xn(vt,Nt+ft,vt-at,Nt+ft,vt-ft,Nt+at,vt-ft,Nt,.58,me,me,gn,Kn,sn),Rt.add(new go.PathSegment(go.PathSegment.Move,gn.x*et,gn.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Nt*nt,Kn.x*et,Kn.y*nt,sn.x*et,sn.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,se.x*et,se.y*nt,Gt.x*et,Gt.y*nt,$t.x*et,$t.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Line,gn.x*et,gn.y*nt).close()),Rt.add(new go.PathSegment(go.PathSegment.Move,mn.x*et,mn.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,Nt*nt,ce.x*et,ce.y*nt,Xe.x*et,Xe.y*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,mn.x*et,mn.y*nt,ln.x*et,ln.y*nt,Oe.x*et,Oe.y*nt).close()),Le(Gt),Le($t),Le(se),Le(me),Le(ce),Le(Xe),Le(De),Le(ln),Le(Oe),Le(mn),Le(Kn),Le(sn),Le(gn),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Qt,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 Ci("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Qt,et,nt){var ht=Qt?Qt.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=je*.4,ft=.4,vt=.5,Nt=.5,Rt=Kt(),Gt=Kt(),$t=Kt(),se=Kt(),me=new go.PathFigure((vt-ft)*et,Nt*nt,!1);ht.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt)),xn(vt,Nt-ft,vt+at,Nt-ft,vt+ft,Nt-at,vt+ft,Nt,.44,$t,se,Gt,Rt,Rt),me.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*et,Gt.y*nt,$t.x*et,$t.y*nt,se.x*et,se.y*nt));var ce=Yt(Gt.x,Gt.y);xn(vt,Nt-ft,vt+at,Nt-ft,vt+ft,Nt-at,vt+ft,Nt,.56,Rt,Rt,Gt,$t,se);var Xe=Yt(Gt.x,Gt.y);me.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*et,ce.y*.1*nt)),me.add(new go.PathSegment(go.PathSegment.Line,.85*et,ce.y*.1*nt)),me.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),me.add(new go.PathSegment(go.PathSegment.Line,et,0)),me.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),me.add(new go.PathSegment(go.PathSegment.Line,(Xe.x*.1+.9)*et,.15*nt)),me.add(new go.PathSegment(go.PathSegment.Line,(Xe.x*.1+.9)*et,(Xe.y*.1+.05*.9)*nt)),me.add(new go.PathSegment(go.PathSegment.Line,Xe.x*et,Xe.y*nt)),me.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Nt*nt,$t.x*et,$t.y*nt,se.x*et,se.y*nt)),me.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt)),me.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Nt*nt,(vt-at)*et,(Nt+ft)*nt,(vt-ft)*et,(Nt+at)*nt)),ft=.35,at=je*.35;var De=new go.PathFigure(vt*et,(Nt-ft)*nt,!1);ht.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Nt*nt,(vt-at)*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt)),De.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+ft)*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+ft)*nt)),De.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Nt*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),De.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-ft)*nt,(vt+ft)*et,(Nt-at)*nt,(vt+at)*et,(Nt-ft)*nt));var ln=new go.PathFigure((vt-ft)*et,Nt*nt,!1);return ht.add(ln),Le(Rt),Le(Gt),Le($t),Le(se),Le(ce),Le(Xe),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(Qt,et,nt){var ht=new go.Geometry,at=.375,ft=0,vt=-.125,Nt=at*je,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+Nt+ft)*et,(.5+at+vt)*nt,(.5+at+ft)*et,(.5+Nt+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ft)*et,(.5-at+vt)*nt,(1-.5+at+ft)*et,(.5-Nt+vt)*nt,(.5+Nt+ft)*et,(.5-at+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+vt)*nt,(.5-Nt+ft)*et,(.5-at+vt)*nt,(.5-at+ft)*et,(.5-Nt+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ft)*et,(.5+at+vt)*nt,(.5-at+ft)*et,(.5+Nt+vt)*nt,(.5-Nt+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,Nt=at*je;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+Nt+vt)*nt,(.5+Nt+ft)*et,(.5+at+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+vt)*nt,(.5-Nt+ft)*et,(.5+at+vt)*nt,(.5-at+ft)*et,(.5+Nt+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ft)*et,(.5-at+vt)*nt,(.5-at+ft)*et,(.5-Nt+vt)*nt,(.5-Nt+ft)*et,(.5-at+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+at+ft)*et,(.5+vt)*nt,(.5+Nt+ft)*et,(.5-at+vt)*nt,(1-.5+at+ft)*et,(.5-Nt+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(Qt,et,nt){var ht=Qt?Qt.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(Qt,et,nt){var ht=Qt?Qt.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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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 Ci("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ci("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=Qt?Qt.parameter2:NaN;isNaN(at)&&(at=.3);var ft=(1-ht)*et,vt=(.5-at/2)*nt,Nt=(.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,Nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,Nt).close()),Rt.spot1=new go.Spot(0,vt/nt);var $t=Te(0,Nt/nt,1,Nt/nt,ft/et,1,1,.5,Kt());return Rt.spot2=new go.Spot($t.x,$t.y),Le($t),Rt}),go.Shape.setFigureParameter("Arrow2",0,new Ci("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ci("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=30),ht>et&&(ht=et);var at=Qt?Qt.parameter2:NaN;isNaN(at)&&(at=30),at=Math.min(at,nt/2);var ft=et-ht,vt=(nt-at)/2,Nt=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,Nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,Nt).close()),Rt.spot1=new go.Spot(0,vt/nt);var $t=Te(0,Nt/nt,1,Nt/nt,ft/et,1,1,.5,Kt());return Rt.spot2=new go.Spot($t.x,$t.y),Le($t),Rt}),go.Shape.defineFigureGenerator("Chevron",function(Qt,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(Qt,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 Ci("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,vt=new go.Geometry,Nt=new go.PathFigure(et,.5*nt,!0);vt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,.3*et,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Rt=Te(0,.5,.3,0,0,at/nt,.1,at/nt,Kt());return vt.spot1=new go.Spot(Rt.x,Rt.y),Rt=Te(.7,1,1,.5,0,ft/nt,1,ft/nt,Rt),vt.spot2=new go.Spot(Rt.x,Rt.y),Le(Rt),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ci("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ci("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=40);var at=Qt?Qt.parameter2:NaN;isNaN(at)&&(at=100);var ft=(nt-ht)/2,vt=ft+ht,Nt=(nt-at)/2,Rt=Nt+at;(ht>nt||at>nt)&&(at>ht?(ht=ht*nt/at,ft=(nt-ht)/2,vt=ft+ht,Nt=0,Rt=nt):(ft=0,vt=nt,Nt=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,Nt)),$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,Nt).close());var se=Te(0,.5,.3,Nt/nt,0,ft/nt,1,ft/nt,Kt());return Gt.spot1=new go.Spot(se.x,se.y),se=Te(.7,Rt/nt,1,.5,0,vt/nt,1,vt/nt,se),Gt.spot2=new go.Spot(se.x,se.y),Le(se),Gt}),go.Shape.setFigureParameter("IBeamArrow",0,new Ci("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=.3);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,vt=new go.Geometry,Nt=new go.PathFigure(et,.5*nt,!0);vt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*et,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(0,at/nt);var Rt=Te(.7,1,1,.5,0,ft/nt,1,ft/nt,Kt());return vt.spot2=new go.Spot(Rt.x,Rt.y),Le(Rt),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ci("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ci("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=40);var at=Qt?Qt.parameter2:NaN;isNaN(at)&&(at=100);var ft=(nt-ht)/2,vt=ft+ht,Nt=(nt-at)/2,Rt=Nt+at;(ht>nt||at>nt)&&(at>ht?(ht=ht*nt/at,ft=(nt-ht)/2,vt=ft+ht,Nt=0,Rt=nt):(ft=0,vt=nt,Nt=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,Nt)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*et,Nt)),$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,Nt).close()),Gt.spot1=new go.Spot(0,ft/nt);var se=Te(.7,Rt/nt,1,.5,0,vt/nt,1,vt/nt,Kt());return Gt.spot2=new go.Spot(se.x,se.y),Le(se),Gt}),go.Shape.setFigureParameter("Pointer",0,new Ci("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Qt,et,nt){var ht=Qt?Qt.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=Te(.2,.65,1,.65,0,1,1,.5,Kt());return at.spot2=new go.Spot(vt.x,vt.y),Le(vt),at}),go.Shape.setFigureParameter("RoundedPointer",0,new Ci("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Qt,et,nt){var ht=Qt?Qt.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=Te(0,.65,1,.65,0,1,1,.5,Kt());return at.spot2=new go.Spot(vt.x,vt.y),Le(vt),at}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ci("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=.4);var at=(.5-ht/2)*nt,ft=(.5+ht/2)*nt,vt=new go.Geometry,Nt=new go.PathFigure(et,.5*nt,!0);vt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,.3);var Rt=Te(.7,1,1,.5,0,ft/nt,1,ft/nt,Kt());return vt.spot2=new go.Spot(Rt.x,Rt.y),Le(Rt),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ci("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Qt,et,nt){var ht=Qt?Qt.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,Nt=new go.PathFigure(et,.5*nt,!0);vt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,at/nt);var Rt=Te(.7,1,1,.5,0,ft/nt,1,ft/nt,Kt());return vt.spot2=new go.Spot(Rt.x,Rt.y),Le(Rt),vt}),go.Shape.setFigureParameter("SquareArrow",0,new Ci("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Qt,et,nt){var ht=Qt?Qt.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(Qt,et,nt){var ht=new go.Geometry,at=je*.5,ft=je*.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(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var at=new go.Geometry,ft=je*.5,vt=new go.PathFigure(0,ht,!0);at.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,je*ht,(.5-ft)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ht,(.5+ft)*et,0,1*et,je*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-je*ht,(.5+ft)*et,1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-ft)*et,1*nt,0,nt-je*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var Nt=new go.PathFigure(et,ht,!1);return at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ht,1*et,2*ht-je*ht,(.5+ft)*et,2*ht)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-ft)*et,2*ht,0,2*ht-je*ht)),at.spot1=new go.Spot(0,0,0,2*ht),at.spot2=new go.Spot(1,1),at}),go.Shape.defineFigureGenerator("Cylinder2",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var at=new go.Geometry,ft=je*.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,je*ht,(.5-ft)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,(.5+ft)*et,0,et,je*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-je*ht,(.5+ft)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-ft)*et,nt,0,nt-je*ht));var Nt=new go.PathFigure(0,nt-ht,!1);return at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ht,0,nt-ht-je*ht,(.5-ft)*et,nt-2*ht)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ht,(.5+ft)*et,nt-2*ht,et,nt-ht-je*ht)),at.spot1=new go.Spot(0,0),at.spot2=new go.Spot(1,1,0,-2*ht),at}),go.Shape.defineFigureGenerator("Cylinder3",function(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var at=new go.Geometry,ft=je*.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-je*ht,0,et,(.5-ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+ft)*nt,et-je*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,je*ht,nt,0,(.5+ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-ft)*nt,je*ht,0));var Nt=new go.PathFigure(ht,0,!1);return at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*nt,ht+je*ht,0,2*ht,(.5-ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ht,nt,2*ht,(.5+ft)*nt,ht+je*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(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var at=new go.Geometry,ft=je*.5,vt=new go.PathFigure(et-ht,0,!0);at.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-je*ht,0,et,(.5-ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+ft)*nt,et-je*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,je*ht,nt,0,(.5+ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-ft)*nt,je*ht,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0));var Nt=new go.PathFigure(et-ht,0,!1);return at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ht,.5*nt,et-ht-je*ht,0,et-2*ht,(.5-ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et-2*ht,(.5+ft)*nt,et-ht-je*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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=.2,ft=.1,vt=je*at,Nt=je*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+Nt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-ft)*nt,(Rt-at)*et,(Gt-Nt)*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-Nt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt+ft)*nt,(Rt+at)*et,(Gt+Nt)*nt,(Rt+vt)*et,(Gt+ft)*nt));var se=.05,me=je*se;Rt=.05,Gt=.25;var ce=new go.PathFigure(.5*et,.2*nt,!0);return ht.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Rt=.95,Gt=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+se)*et,Gt*nt,(Rt+me)*et,(Gt-se)*nt,(Rt+se)*et,(Gt-me)*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),se=.025,me=je*se,Rt=.825,Gt=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-se)*nt,(Rt+se)*et,(Gt-me)*nt,(Rt+me)*et,(Gt-se)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-se)*et,Gt*nt,(Rt-me)*et,(Gt-se)*nt,(Rt-se)*et,(Gt-me)*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),se=.05,me=je*se,Rt=.5,Gt=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-se)*nt,(Rt+se)*et,(Gt-me)*nt,(Rt+me)*et,(Gt-se)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-se)*et,Gt*nt,(Rt-me)*et,(Gt-se)*nt,(Rt-se)*et,(Gt-me)*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),se=.025,me=je*se,Rt=.175,Gt=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-se)*nt,(Rt+se)*et,(Gt-me)*nt,(Rt+me)*et,(Gt-se)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-se)*et,Gt*nt,(Rt-me)*et,(Gt-se)*nt,(Rt-se)*et,(Gt-me)*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),se=.05,me=je*se,Rt=.05,Gt=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-se)*nt,(Rt-se)*et,(Gt-me)*nt,(Rt-me)*et,(Gt-se)*nt)),ce.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 Ci("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Qt,et,nt){var ht=Qt?Qt.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,et,nt){var ht=new go.Geometry,at=je*.5,ft=je*.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 Nt=new go.PathFigure(et,.1*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+ft)*nt,(.5+at)*et,.2*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-at)*et,.2*nt,0,(.1+ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+ft)*nt,(.5+at)*et,.3*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-at)*et,.3*nt,0,(.2+ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+ft)*nt,(.5+at)*et,.4*nt)),Nt.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=je*.5,ft=je*.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 Nt=new go.PathFigure(et,.1*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+ft)*nt,(.5+at)*et,.2*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-at)*et,.2*nt,0,(.1+ft)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+ft)*nt,(.5+at)*et,.3*nt)),Nt.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.parameter1:NaN;isNaN(at)?at=.2:at<.15&&(at=.15);var ft=je*.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 Nt=new go.PathFigure(0,at*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et,at*nt)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.parameter1:NaN,ft=Qt?Qt.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 Nt=new go.PathFigure(at*et,0,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,at*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,0,ft*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,et,ft*nt)),ht}),go.Shape.defineFigureGenerator("Junction",function(Qt,et,nt){var ht=new go.Geometry,at=1/Math.SQRT2,ft=(1-1/Math.SQRT2)/2,vt=je*.5,Nt=.5,Rt=new go.PathFigure(et,Nt*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,nt,et,(Nt+vt)*nt,(Nt+vt)*et,nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,0,Nt*nt,(Nt-vt)*et,nt,0,(Nt+vt)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,0,0,(Nt-vt)*nt,(Nt-vt)*et,0)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,et,Nt*nt,(Nt+vt)*et,0,et,(Nt-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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=je*.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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 Nt=new go.PathFigure(.5*at*et,at*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*at)*et,at*nt)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=je*.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 Nt=new go.PathFigure(et,.5*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.parameter1:NaN,ft=Qt?Qt.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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.parameter1:NaN,ft=Qt?Qt.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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=Qt?Qt.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(Qt,et,nt){var ht=new go.Geometry,at=je*.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=je*.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 Nt=new go.PathFigure(et,ft*nt,!1);ht.add(Nt),Nt.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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=je*.1,ft=.1,vt=.9,Nt=.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,Nt*nt,!0);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Nt*nt,(vt-at)*et,(Nt+ft)*nt,(vt-ft)*et,(Nt+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Nt*nt,(vt+at)*et,(Nt-ft)*nt,(vt+ft)*et,(Nt-at)*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Qt,et,nt){var ht=new go.Geometry,at=je*.5,ft=je*.4,vt=je*.1,Nt=.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 se=new go.PathFigure((Rt+Nt)*et,Gt*nt,!0);return ht.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt+Nt)*nt,(Rt+Nt)*et,(Gt+vt)*nt,(Rt+vt)*et,(Gt+Nt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Nt)*et,Gt*nt,(Rt-vt)*et,(Gt+Nt)*nt,(Rt-Nt)*et,(Gt+vt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-Nt)*nt,(Rt-Nt)*et,(Gt-vt)*nt,(Rt-vt)*et,(Gt-Nt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Nt)*et,Gt*nt,(Rt+vt)*et,(Gt-Nt)*nt,(Rt+Nt)*et,(Gt-vt)*nt)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Qt,et,nt){var ht=new go.Geometry,at=.5,ft=je*at,vt=0,Nt=.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,(Nt+ft)*nt,(vt+ft)*et,(Nt+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,(Nt-at)*nt,.7*et,(Nt-ft)*nt)),at=.1,ft=je*.1,vt=.9,Nt=.5;var Gt=new go.PathFigure((vt-at)*et,Nt*nt,!0);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Nt*nt,(vt+ft)*et,(Nt-at)*nt,(vt+at)*et,(Nt-ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Nt*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+ft)*nt)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Qt,et,nt){var ht=new go.Geometry,at=.5,ft=je*at,vt=0,Nt=.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,(Nt-at)*nt,.8*et,(Nt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(Nt+ft)*nt,(vt+ft+ft)*et,(Nt+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(Qt,et,nt){var ht=new go.Geometry,at=.5,ft=je*at,vt=.2,Nt=.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,(Nt+ft)*nt,(vt+ft)*et,(Nt+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,(Nt-at)*nt,.7*et,(Nt-ft)*nt)),at=.1,ft=je*.1,vt=.9,Nt=.5;var $t=new go.PathFigure((vt-at)*et,Nt*nt,!0);return ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Nt*nt,(vt+ft)*et,(Nt-at)*nt,(vt+at)*et,(Nt-ft)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Nt*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+ft)*nt)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Qt,et,nt){var ht=new go.Geometry,at=.5,ft=je*at,vt=.2,Nt=.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,(Nt-at)*nt,.9*et,(Nt-ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=je*.1,ft=.1,vt=.1,Nt=.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(Qt,et,nt){var ht=new go.Geometry,at=je*.5,ft=.5,vt=.5,Nt=.5,Rt=new go.PathFigure((vt-ft)*et,Nt*nt,!1);return ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Nt*nt,(vt+at)*et,(Nt-ft)*nt,(vt+ft)*et,(Nt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Nt*nt,(vt-at)*et,(Nt+ft)*nt,(vt-ft)*et,(Nt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Move,(vt-ft+.1)*et,Nt*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft-.1)*et,Nt*nt,vt*et,(Nt-ft)*nt,vt*et,(Nt+ft)*nt)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=et,ft=nt;et=et*.38,nt=nt*.6;var vt=je*.8,Nt=.8,Rt=0,Gt=.5,$t=(at-et)/2,se=(ft-nt)/2,me=new go.PathFigure(Rt*et+$t,(Gt+Nt)*nt+se,!0);ht.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Nt)*et+$t,Gt*nt+se,(Rt-vt)*et+$t,(Gt+Nt)*nt+se,(Rt-Nt)*et+$t,(Gt+vt)*nt+se)),me.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Nt)*nt+se,(Rt-Nt)*et+$t,(Gt-vt)*nt+se,(Rt-vt)*et+$t,(Gt-Nt)*nt+se)),me.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Nt+vt*.5)*et+$t,Gt*nt+se,Rt*et+$t,(Gt-Nt)*nt+se,(Rt-Nt+vt*.5)*et+$t,(Gt-vt)*nt+se)),me.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Nt)*nt+se,(Rt-Nt+vt*.5)*et+$t,(Gt+vt)*nt+se,Rt*et+$t,(Gt+Nt)*nt+se).close()),vt=je*.4,Nt=.4,Rt=.2,Gt=.5;var ce=new go.PathFigure(Rt*et+$t,(Gt+Nt)*nt+se,!0);ht.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Nt)*et+$t,Gt*nt+se,(Rt-vt)*et+$t,(Gt+Nt)*nt+se,(Rt-Nt)*et+$t,(Gt+vt)*nt+se)),ce.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Nt)*nt+se,(Rt-Nt)*et+$t,(Gt-vt)*nt+se,(Rt-vt)*et+$t,(Gt-Nt)*nt+se)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Nt+vt*.5)*et+$t,Gt*nt+se,Rt*et+$t,(Gt-Nt)*nt+se,(Rt-Nt+vt*.5)*et+$t,(Gt-vt)*nt+se)),ce.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Nt)*nt+se,(Rt-Nt+vt*.5)*et+$t,(Gt+vt)*nt+se,Rt*et+$t,(Gt+Nt)*nt+se).close()),vt=je*.2,Nt=.2,Rt=.5,Gt=.5;var Xe=new go.PathFigure((Rt-Nt)*et+$t,Gt*nt+se,!0);ht.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Nt)*nt+se,(Rt-Nt)*et+$t,(Gt-vt)*nt+se,(Rt-vt)*et+$t,(Gt-Nt)*nt+se)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Nt)*et+$t,Gt*nt+se,(Rt+vt)*et+$t,(Gt-Nt)*nt+se,(Rt+Nt)*et+$t,(Gt-vt)*nt+se)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Nt)*nt+se,(Rt+Nt)*et+$t,(Gt+vt)*nt+se,(Rt+vt)*et+$t,(Gt+Nt)*nt+se)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Nt)*et+$t,Gt*nt+se,(Rt-vt)*et+$t,(Gt+Nt)*nt+se,(Rt-Nt)*et+$t,(Gt+vt)*nt+se)),vt=je*.4,Nt=.4,Rt=.8,Gt=.5;var De=new go.PathFigure(Rt*et+$t,(Gt-Nt)*nt+se,!0);ht.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Nt)*et+$t,Gt*nt+se,(Rt+vt)*et+$t,(Gt-Nt)*nt+se,(Rt+Nt)*et+$t,(Gt-vt)*nt+se)),De.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Nt)*nt+se,(Rt+Nt)*et+$t,(Gt+vt)*nt+se,(Rt+vt)*et+$t,(Gt+Nt)*nt+se)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Nt-vt*.5)*et+$t,Gt*nt+se,Rt*et+$t,(Gt+Nt)*nt+se,(Rt+Nt-vt*.5)*et+$t,(Gt+vt)*nt+se)),De.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Nt)*nt+se,(Rt+Nt-vt*.5)*et+$t,(Gt-vt)*nt+se,Rt*et+$t,(Gt-Nt)*nt+se).close()),vt=je*.8,Nt=.8,Rt=1,Gt=.5;var ln=new go.PathFigure(Rt*et+$t,(Gt-Nt)*nt+se,!0);return ht.add(ln),ln.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Nt)*et+$t,Gt*nt+se,(Rt+vt)*et+$t,(Gt-Nt)*nt+se,(Rt+Nt)*et+$t,(Gt-vt)*nt+se)),ln.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt+Nt)*nt+se,(Rt+Nt)*et+$t,(Gt+vt)*nt+se,(Rt+vt)*et+$t,(Gt+Nt)*nt+se)),ln.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Nt-vt*.5)*et+$t,Gt*nt+se,Rt*et+$t,(Gt+Nt)*nt+se,(Rt+Nt-vt*.5)*et+$t,(Gt+vt)*nt+se)),ln.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et+$t,(Gt-Nt)*nt+se,(Rt+Nt-vt*.5)*et+$t,(Gt-vt)*nt+se,Rt*et+$t,(Gt-Nt)*nt+se).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Qt,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(Qt,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 Nt=new go.PathFigure(0,.5*nt,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Power",function(Qt,et,nt){var ht=new go.Geometry,at=je*.4,ft=.4,vt=.5,Nt=.5,Rt=Kt(),Gt=Kt(),$t=Kt(),se=Kt();xn(vt,Nt-ft,vt+at,Nt-ft,vt+ft,Nt-at,vt+ft,Nt,.5,Rt,Rt,Gt,$t,se);var me=Yt(Gt.x,Gt.y),ce=new go.PathFigure(Gt.x*et,Gt.y*nt,!0);ht.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Nt*nt,$t.x*et,$t.y*nt,se.x*et,se.y*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Nt*nt,(vt-at)*et,(Nt+ft)*nt,(vt-ft)*et,(Nt+at)*nt)),xn(vt-ft,Nt,vt-ft,Nt-at,vt-at,Nt-ft,vt,Nt-ft,.5,$t,se,Gt,Rt,Rt),ce.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*et,Gt.y*nt,$t.x*et,$t.y*nt,se.x*et,se.y*nt)),at=je*.3,ft=.3,xn(vt-ft,Nt,vt-ft,Nt-at,vt-at,Nt-ft,vt,Nt-ft,.5,$t,se,Gt,Rt,Rt),ce.add(new go.PathSegment(go.PathSegment.Line,Gt.x*et,Gt.y*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(vt-ft)*et,Nt*nt,se.x*et,se.y*nt,$t.x*et,$t.y*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+ft)*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+ft)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(vt+ft)*et,Nt*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),xn(vt,Nt-ft,vt+at,Nt-ft,vt+ft,Nt-at,vt+ft,Nt,.5,Rt,Rt,Gt,$t,se),ce.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*et,Gt.y*nt,se.x*et,se.y*nt,$t.x*et,$t.y*nt).close());var ce=new go.PathFigure(.45*et,0,!0);return ht.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),Le(Rt),Le(Gt),Le($t),Le(se),Le(me),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Qt,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,Nt,Rt){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+Nt)*et,(.8+Rt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+Nt)*et,(.5+Rt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+Nt)*et,(.5+Rt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+Nt)*et,(.8+Rt)*nt).close())}return ft(at,0,0),ft(at,.4,0),ft(at,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=.5,ft=0,vt=0,Nt=at*je,Rt=.4*Math.SQRT2/2+.5,Gt=.5-.5*Math.SQRT2/2,$t=1,se=.5,me=.5,ce=0,Xe=new go.PathFigure(Rt*et,(1-Gt)*nt,!1);return ht.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,se*nt,$t*et,.7*nt,$t*et,se*nt)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ft)*et,(ce+ft)*nt,(.5+at+ft)*et,(.5-Nt+ft)*nt,(.5+Nt+ft)*et,(.5-at+ft)*nt)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-at+ft)*et,(.5+vt)*nt,(.5-Nt+ft)*et,(.5-at+vt)*nt,(.5-at+ft)*et,(.5-Nt+vt)*nt)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ft)*et,.9*nt,(.5-at+ft)*et,(.5+Nt+vt)*nt,(.5-Nt+ft)*et,.9*nt)),Xe.add(new go.PathSegment(go.PathSegment.Move,(.25+ft)*et,.8*nt)),Xe.add(new go.PathSegment(go.PathSegment.Line,(.35+ft)*et,.9*nt)),Xe.add(new go.PathSegment(go.PathSegment.Line,(.2+ft)*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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,Nt=.5,Rt=vt,Gt=Math.PI/4,$t=4*(1-Math.cos(Gt))/(3*Math.sin(Gt)),se=$t*.5,me=vt,ce=vt,Xe=$t*me,De=$t*ce;ft.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-me)*et,Rt*nt,(Nt-(Xe+me)/2)*et,(Rt+(ce+De)/2)*nt,(Nt-me)*et,(Rt+De)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Rt-ce)*nt,(Nt-me)*et,(Rt-De)*nt,(Nt-Xe)*et,(Rt-ce)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+me)*et,Rt*nt,(Nt+Xe)*et,(Rt-ce)*nt,(Nt+me)*et,(Rt-De)*nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(Nt+me)*et,(Rt+De)*nt,(Nt+(Xe+me)/2)*et,(Rt+(ce+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 ln=new go.PathFigure(.2*et,nt,!1);ht.add(ln),ln.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var Oe=new go.PathFigure(.8*et,nt,!1);return ht.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=.5,ft=je*.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 Nt=new go.PathFigure(at*et,0,!1);return ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,at*et,.15*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,at*et,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,at*et,.85*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,0,at*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.15*et,at*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,et,at*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*et,at*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,at*et,at*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),Nt.add(new go.PathSegment(go.PathSegment.Move,at*et,at*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Package",function(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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,Nt=je*.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-Nt)*nt,(Rt-Nt)*et,(Gt-vt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+vt)*et,Gt*nt,(Rt+Nt)*et,(Gt-vt)*nt,(Rt+vt)*et,(Gt-Nt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt+vt)*nt,(Rt+vt)*et,(Gt+Nt)*nt,(Rt+Nt)*et,(Gt+vt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-vt)*et,Gt*nt,(Rt-Nt)*et,(Gt+vt)*nt,(Rt-vt)*et,(Gt+Nt)*nt).close()),vt=.1,Nt=je*.1,Rt=.8,Gt=.9;var se=new go.PathFigure((Rt-vt)*et,Gt*nt,!0);return ht.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt-vt)*nt,(Rt-vt)*et,(Gt-Nt)*nt,(Rt-Nt)*et,(Gt-vt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+vt)*et,Gt*nt,(Rt+Nt)*et,(Gt-vt)*nt,(Rt+vt)*et,(Gt-Nt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Gt+vt)*nt,(Rt+vt)*et,(Gt+Nt)*nt,(Rt+Nt)*et,(Gt+vt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-vt)*et,Gt*nt,(Rt-Nt)*et,(Gt+vt)*nt,(Rt-vt)*et,(Gt+Nt)*nt).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Qt,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(Qt,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 Nt=new go.PathFigure(.5*et,.7*nt,!1);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Rt=.1,Gt=je*.1,$t=.1,se=.9,me=new go.PathFigure(($t-Rt)*et,se*nt,!0);ht.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,(se-Rt)*nt,($t-Rt)*et,(se-Gt)*nt,($t-Gt)*et,(se-Rt)*nt)),me.add(new go.PathSegment(go.PathSegment.Bezier,($t+Rt)*et,se*nt,($t+Gt)*et,(se-Rt)*nt,($t+Rt)*et,(se-Gt)*nt)),me.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,(se+Rt)*nt,($t+Rt)*et,(se+Gt)*nt,($t+Gt)*et,(se+Rt)*nt)),me.add(new go.PathSegment(go.PathSegment.Bezier,($t-Rt)*et,se*nt,($t-Gt)*et,(se+Rt)*nt,($t-Rt)*et,(se+Gt)*nt)),Rt=.1,Gt=je*.1,$t=.4,se=.9;var ce=new go.PathFigure(($t-Rt)*et,se*nt,!0);return ht.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,(se-Rt)*nt,($t-Rt)*et,(se-Gt)*nt,($t-Gt)*et,(se-Rt)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,($t+Rt)*et,se*nt,($t+Gt)*et,(se-Rt)*nt,($t+Rt)*et,(se-Gt)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,$t*et,(se+Rt)*nt,($t+Rt)*et,(se+Gt)*nt,($t+Gt)*et,(se+Rt)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,($t-Rt)*et,se*nt,($t-Gt)*et,(se+Rt)*nt,($t-Rt)*et,(se+Gt)*nt)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Qt,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,se=je*.05,me=.175,ce=.95,Nt=new go.PathFigure((me-$t)*et,ce*nt,!0);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,me*et,(ce-$t)*nt,(me-$t)*et,(ce-se)*nt,(me-se)*et,(ce-$t)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(me+$t)*et,ce*nt,(me+se)*et,(ce-$t)*nt,(me+$t)*et,(ce-se)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,me*et,(ce+$t)*nt,(me+$t)*et,(ce+se)*nt,(me+se)*et,(ce+$t)*nt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(me-$t)*et,ce*nt,(me-se)*et,(ce+$t)*nt,(me-$t)*et,(ce+se)*nt));var $t=.05,se=je*.05,me=.375,ce=.95,Rt=new go.PathFigure((me-$t)*et,ce*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,me*et,(ce-$t)*nt,(me-$t)*et,(ce-se)*nt,(me-se)*et,(ce-$t)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(me+$t)*et,ce*nt,(me+se)*et,(ce-$t)*nt,(me+$t)*et,(ce-se)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,me*et,(ce+$t)*nt,(me+$t)*et,(ce+se)*nt,(me+se)*et,(ce+$t)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(me-$t)*et,ce*nt,(me-se)*et,(ce+$t)*nt,(me-$t)*et,(ce+se)*nt));var $t=.05,se=je*.05,me=.625,ce=.95,Gt=new go.PathFigure((me-$t)*et,ce*nt,!0);ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,me*et,(ce-$t)*nt,(me-$t)*et,(ce-se)*nt,(me-se)*et,(ce-$t)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(me+$t)*et,ce*nt,(me+se)*et,(ce-$t)*nt,(me+$t)*et,(ce-se)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,me*et,(ce+$t)*nt,(me+$t)*et,(ce+se)*nt,(me+se)*et,(ce+$t)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(me-$t)*et,ce*nt,(me-se)*et,(ce+$t)*nt,(me-$t)*et,(ce+se)*nt));var $t=.05,se=je*.05,me=.825,ce=.95,Xe=new go.PathFigure((me-$t)*et,ce*nt,!0);ht.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*et,(ce-$t)*nt,(me-$t)*et,(ce-se)*nt,(me-se)*et,(ce-$t)*nt)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+$t)*et,ce*nt,(me+se)*et,(ce-$t)*nt,(me+$t)*et,(ce-se)*nt)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*et,(ce+$t)*nt,(me+$t)*et,(ce+se)*nt,(me+se)*et,(ce+$t)*nt)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-$t)*et,ce*nt,(me-se)*et,(ce+$t)*nt,(me-$t)*et,(ce+se)*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(Qt,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 Nt=.05,Rt=je*.05,Gt=.35,$t=.775,se=new go.PathFigure((Gt-Nt)*et,$t*nt,!0);return ht.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,($t-Nt)*nt,(Gt-Nt)*et,($t-Rt)*nt,(Gt-Rt)*et,($t-Nt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Nt)*et,$t*nt,(Gt+Rt)*et,($t-Nt)*nt,(Gt+Nt)*et,($t-Rt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,($t+Nt)*nt,(Gt+Nt)*et,($t+Rt)*nt,(Gt+Rt)*et,($t+Nt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Nt)*et,$t*nt,(Gt-Rt)*et,($t+Nt)*nt,(Gt-Nt)*et,($t+Rt)*nt).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=.3,ft=je*.3,vt=.5,Nt=.7,Rt=new go.PathFigure((vt-at)*et,Nt*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Nt*nt,(vt+ft)*et,(Nt-at)*nt,(vt+at)*et,(Nt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Nt*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+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(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=.5,ft=je*.5,vt=.5,Nt=.5,Rt=new go.PathFigure((vt-at)*et,Nt*nt,!0);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Nt*nt,(vt+ft)*et,(Nt-at)*nt,(vt+at)*et,(Nt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Nt*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=.5,ft=je*.5,vt=.5,Nt=.5,Rt=new go.PathFigure((vt-at)*et,Nt*nt,!1);ht.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Nt*nt,(vt+ft)*et,(Nt-at)*nt,(vt+at)*et,(Nt-ft)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Nt*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+ft)*nt).close()),at=.05,ft=je*.05,vt=.5,Nt=.8;var Gt=new go.PathFigure((vt-at)*et,Nt*nt,!1);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt-at)*nt,(vt-at)*et,(Nt-ft)*nt,(vt-ft)*et,(Nt-at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+at)*et,Nt*nt,(vt+ft)*et,(Nt-at)*nt,(vt+at)*et,(Nt-ft)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Nt+at)*nt,(vt+at)*et,(Nt+ft)*nt,(vt+ft)*et,(Nt+at)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-at)*et,Nt*nt,(vt-ft)*et,(Nt+at)*nt,(vt-at)*et,(Nt+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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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 Nt=new go.PathFigure(.678*et,.85*nt,!1);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),Nt.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(Qt,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(Qt,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 Nt=new go.PathFigure(et*.612,nt,!0);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),Nt.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(Qt,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 Nt=new go.PathFigure(et*.055,.18*nt,!0);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),Nt.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(Qt,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(Qt,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(Qt,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 Nt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),Nt.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(Qt,et,nt){var ht=new go.Geometry,at=8,ft=at*je,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 Nt=new go.PathFigure(et*.83,0,!1);ht.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),Nt.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(Qt,et,nt){var ht=Qt?Qt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var at=ht*je,ft=nt*.8,vt=new go.Geometry,Nt=new go.PathFigure(ht,0,!0);return vt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-at,0,et,at)),Nt.add(new go.PathSegment(go.PathSegment.Line,et,ft-ht)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,ft,et,ft-at,et-at,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ft)),Nt.add(new go.PathSegment(go.PathSegment.Line,ht,ft)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft-ht,at,ft,0,ft-at)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),Nt.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(Qt,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(Qt,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(Qt,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(Qt,et,nt){var ht=new go.Geometry,at=15,ft=at*je,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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(Qt,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")},5559: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 Ci={},Ii="5.0",Yt={},Kt=null,Le=!1,Te=!1,xn=null,Se=!1,We=null,je=null,de=0;de<arguments.length;de++){var ve=arguments[de];if(ve!==null)switch(typeof ve){case"number":Ii=ve.toFixed(1);break;case"string":ve.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ii=ve:xn=ve;break;case"object":typeof ve.is3D!="undefined"?Kt=ve:Yt=ve;break;case"boolean":Le=ve,Te=!0;break}}Kt===null&&(Kt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Yt.material_id!==void 0&&!Te&&(Le=!0)),xn!==null&&Yt.id===void 0&&(Yt.id=xn);var It="",xe="",ee=!1,ge=null,Qt=null,et=null,nt=!1,ht=null,at=null,ft=null,vt=null,Nt=null;Yt.height!==void 0&&(Yt.height=Math.round(Yt.height)),Yt.width!==void 0&&(Yt.width=Math.round(Yt.width));var Rt=function(cn){return parseFloat(cn)>4?parseFloat(cn):5};Ci.setHTML5Codebase=function(cn,In){je=cn,Ye(cn,In)},Ci.setJavaCodebase=Ci.setJavaCodebaseVersion=Ci.isCompiledInstalled=Ci.setPreCompiledScriptPath=Ci.setPreCompiledResourcePath=function(){},Ci.setHTML5CodebaseVersion=function(cn,In){var Wn=parseFloat(cn);if(Wn!==NaN&&Wn<5){console.log("The GeoGebra HTML5 codebase version "+Wn+" is deprecated. Using version latest instead.");return}We=cn,Zt(cn,In)},Ci.getHTML5CodebaseVersion=function(){return Qt},Ci.getParameters=function(){return Yt},Ci.setFontsCSSURL=function(cn){vt=cn},Ci.setGiacJSURL=function(cn){},Ci.setJNLPFile=function(cn){It=cn},Ci.setJNLPBaseDir=function(cn){},Ci.inject=function(){function cn(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var In="auto",Wn=Yt.id,xi,pi=!1,zi=0;zi<arguments.length;zi++){var Ie=arguments[zi];typeof Ie=="string"?(Ie=Ie.toLowerCase(),Ie.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?In=Ie:Wn=arguments[zi]):typeof Ie=="boolean"?pi=Ie:Ie instanceof HTMLElement&&(xi=Ie)}Ai();function Ai(){if(!Se){setTimeout(Ai,200);return}In=pn(In);var Ti=xi||document.getElementById(Wn);if(!Ti){console.log("possibly bug on ajax loading? ");return}if(Ci.removeExistingApplet(Ti,!1),Yt.width===void 0&&Ti.clientWidth&&(Yt.width=Ti.clientWidth),Yt.height===void 0&&Ti.clientHeight&&(Yt.height=Ti.clientHeight),!(Yt.width&&Yt.height)&&In==="html5"&&(delete Yt.width,delete Yt.height),ge=In,In==="screenshot")Oe(Ti,Yt);else{var ue=!1;Yt.hasOwnProperty("playButton")&&Yt.playButton||Yt.hasOwnProperty("clickToLoad")&&Yt.clickToLoad?ue=!0:Yt.hasOwnProperty("playButtonAutoDecide")&&Yt.playButtonAutoDecide&&(ue=(!Gt()||cn())&&$t()),ue?(ge="screenshot",Kn(Ti,Yt,pi,In)):ln(Ti,Yt,pi)}}};function Gt(){try{return window.self!==window.top}catch(cn){return!0}}function $t(){return Yt.hasOwnProperty("screenshotGenerator")&&Yt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ci.getViews=function(){return Kt},Ci.isJavaInstalled=function(){return!1};var se=function(cn){var In=function(zi){var Ie=JSON.parse(zi),Ai=function(Tt){return Tt.type=="G"||Tt.type=="E"},Ti=Ie.elements?Ie.elements.filter(Ai)[0]:Ie;if(!Ti||!Ti.url){Wn();return}Yt.fileName=Ti.url,me(Ti.settings||{}),Kt.is3D=!0;var ue="https://www.geogebra.org/images/";Ci.setPreviewImage(ht||Ti.previewUrl,ue+"GeoGebra_loading.png",ue+"applet_play.png"),cn()},Wn=function(){Yt.onError&&Yt.onError(),Gn("Error: Fetching material (id "+Yt.material_id+") failed.",Yt)},xi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",pi="/materials/"+Yt.material_id+"?scope=basic";ce("https://"+xi+"/api/proxy.php?path="+encodeURIComponent(pi),In,Wn)};function me(cn){var In=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Wn){cn[Wn]=!!cn[Wn]}),In.forEach(function(Wn){Yt[Wn]===void 0&&cn[Wn]!==void 0&&(Yt[Wn]=cn[Wn])}),Yt.showToolBarHelp===void 0&&(Yt.showToolBarHelp=Yt.showToolBar)}function ce(cn,In,Wn){var xi=new XMLHttpRequest;xi.open("GET",cn),xi.onload=function(){In(xi.responseText)},xi.onerror=Wn,xi.send()}Ci.isHTML5Installed=function(){return!0},Ci.getLoadedAppletType=function(){return ge},Ci.setPreviewImage=function(cn,In,Wn){ht=cn,at=In,ft=Wn},Ci.removeExistingApplet=function(cn,In){var Wn;typeof cn=="string"&&(cn=document.getElementById(cn)),ge=null;var xi=null;for(Wn=0;Wn<cn.childNodes.length;Wn++){var pi=cn.childNodes[Wn],zi=pi.className;zi==="applet_screenshot"?In?(pi.style.display="block",ge="screenshot"):pi.style.display="none":zi!=="applet_scaler prerender"&&(cn.removeChild(pi),xi=zi&&zi.indexOf("appletParameters")!=-1?pi.id:null,Wn--)}var Ie=Yt.id!==void 0?Yt.id:xi,Ai=window[Ie];Ai&&typeof Ai.getBase64=="function"&&(Ai.remove(),window[Ie]=null)},Ci.refreshHitPoints=function(){if(Rt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var cn=Ci.getAppletObject();return cn&&typeof cn.recalculateEnvironments=="function"?(cn.recalculateEnvironments(),!0):!1},Ci.startAnimation=function(){var cn=Ci.getAppletObject();return cn&&typeof cn.startAnimation=="function"?(cn.startAnimation(),!0):!1},Ci.stopAnimation=function(){var cn=Ci.getAppletObject();return cn&&typeof cn.stopAnimation=="function"?(cn.stopAnimation(),!0):!1},Ci.getAppletObject=function(){var cn=Yt.id!==void 0?Yt.id:"ggbApplet";return window[cn]},Ci.resize=function(){};var Xe=function(cn,In,Wn){var xi=document.createElement("param");xi.setAttribute("name",In),xi.setAttribute("value",Wn),cn.appendChild(xi)},De=function(cn){return cn&&cn!=="false"},ln=function(cn,In,Wn){Rt(Qt)<=4.2&&(Wn=!0);var xi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Qt||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(xi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var pi=document.createElement("div");pi.classList.add("appletParameters","notranslate");var zi=In.width,Ie=In.height;if(In.disableAutoScale=In.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():In.disableAutoScale,In.width!==void 0)if(Rt(Qt)<=4.4)De(In.showToolBar)&&(In.height-=7),De(In.showAlgebraInput)&&(In.height-=37),In.width<605&&De(In.showToolBar)&&(In.width=605,zi=605);else{var Ai=100;(De(In.showToolBar)||De(In.showMenuBar))&&(In.hasOwnProperty("customToolBar")&&(In.customToolbar=In.customToolBar),Ai=De(In.showMenuBar)?245:155),zi<Ai&&(In.width=Ai,zi=Ai)}pi.style.border="none",pi.style.display="inline-block";for(var Ti in In)In.hasOwnProperty(Ti)&&Ti!=="appletOnLoad"&&pi.setAttribute("data-param-"+Ti,In[Ti]);vt&&pi.setAttribute("data-param-fontscssurl",vt),Ci.resize=function(){GGBAppletUtils.responsiveResize(cn,In)},window.addEventListener("resize",function(Bn){Ci.resize()});var ue=typeof In.appletOnLoad=="function"?In.appletOnLoad:function(){};if(!Wn&&In.width!==void 0){In.hasOwnProperty("showSplash")||pi.setAttribute("data-param-showSplash","false");var Tt=cn.querySelector(".applet_scaler.prerender"),Ct=Tt!==null;if(Ct)var zt=Tt.querySelector(".ggb_preview");else{var zt=gn(zi,Ie,In.borderColor,!1);Tt=document.createElement("div"),Tt.className="applet_scaler",Tt.style.position="relative",Tt.style.display="block",Tt.style.width=zi+"px",Tt.style.height=Ie+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Tt,"66%"),Rt(Qt)>=5?(In.appletOnLoad=function(Bn){var Vn=cn.querySelector(".ggb_preview");Vn&&Vn.parentNode.removeChild(Vn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Tt),window.GGBT_wsf_view&&$(window).trigger("resize"),ue(Bn)},Ct||Tt.appendChild(zt)):pi.appendChild(zt),Tt.appendChild(pi),Ct||cn.appendChild(Tt),setTimeout(function(){Ci.resize()},1)}else{var Ht=document.createElement("div");Ht.className="applet_scaler",Ht.style.position="relative",Ht.style.display="block",Ht.appendChild(pi),cn.appendChild(Ht),In.appletOnLoad=function(Bn){Ci.resize(),ue(Bn)}}function Mt(Bn,Vn){Vn&&typeof Vn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bn,Vn.appletOnLoad):renderGGBElement(Bn),Gn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Vn)}function be(Bn,Vn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bn,params:Vn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(bi){Mt(bi.article,bi.params)}),html5AppletsToProcess=null)},Rt(Qt)<5&&(Bn.className+=" geogebraweb")):Mt(Bn,Vn)}if(xi){scriptLoadStarted=!0;for(var Ge=0;Ge<pi.childNodes.length;Ge++){var vn=pi.childNodes[Ge].tagName;vn==="TABLE"&&(pi.removeChild(pi.childNodes[Ge]),Ge--)}if(ggbHTML5LoadedScript!==null){var Fn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Fn!=null&&Fn.parentNode.removeChild(Fn)}var An=document.createElement("script"),kn=function(){be(pi,In)};An.src=xe+et,ggbHTML5LoadedCodebaseIsWebSimple=nt,ggbHTML5LoadedCodebaseVersion=Qt,ggbHTML5LoadedScript=An.src,Gn("GeoGebra HTML5 codebase loaded: '"+xe+"'.",In),!je&&(!We||We=="5.0")?(nt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),kn()):xe.requirejs?__webpack_require__.e(777).then(function(){var Bn=[__webpack_require__(70777)];kn.apply(null,Bn)}.bind(this)).catch(__webpack_require__.oe):(An.onload=kn,cn.appendChild(An))}else be(pi,In);In.height=Ie,In.width=zi},Oe=function(cn,In,Wn){var xi=gn(In.width,In.height,In.borderColor,Wn),pi=document.createElement("div");pi.style.position="relative",pi.style.display="block",pi.style.width=In.width+"px",pi.style.height=In.height+"px",pi.className="applet_screenshot applet_scaler"+(Wn?" applet_screenshot_play":""),pi.appendChild(xi);var zi=GGBAppletUtils.getScale(In,cn,Wn);Wn?(cn.appendChild(sn()),window.GGBT_wsf_view||(cn.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pi,"66%"),cn.appendChild(pi),zi!==1&&!isNaN(zi)&&(GGBAppletUtils.scaleElement(pi,zi),pi.style.width=In.width+"px",pi.style.height=In.height+"px",pi.parentNode.style.width=In.width*zi+"px",pi.parentNode.style.height=In.height*zi+"px"),Ci.resize=function(){mn(cn,xi,pi,Wn)},window.addEventListener("resize",function(Ie){Ci.resize()}),Ci.resize()};function mn(cn,In,Wn,xi){if(cn.contains(In)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(cn.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(cn)}var pi=GGBAppletUtils.getScale(Yt,cn,xi);Wn.parentNode!==null&&(!isNaN(pi)&&pi!==1?(GGBAppletUtils.scaleElement(Wn,pi),Wn.parentNode.style.width=Yt.width*pi+"px",Wn.parentNode.style.height=Yt.height*pi+"px"):(GGBAppletUtils.scaleElement(Wn,1),Wn.parentNode.style.width=Yt.width+"px",Wn.parentNode.style.height=Yt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(cn),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ci.onExitFullscreen=function(cn,In){In.appendChild(cn)};var Kn=function(cn,In,Wn,xi){Oe(cn,In,!0);for(var pi=function(){var Ai=[];for(Ie=0;Ie<cn.childNodes.length;Ie++)Ai.push(cn.childNodes[Ie]);if(window.GGBT_wsf_view){var Ti=window.GGBT_wsf_view.renderFullScreen(cn,In.id),ue=document.getElementById("fullscreencontainer"),Tt=jQuery(cn).find(".fullscreencontent");Tt.length>0?(Ti.remove(),Tt.attr("id","fullscreencontent").show(),jQuery(ue).append(Tt),window.dispatchEvent(new Event("resize"))):ln(Ti,In,!1),window.GGBT_wsf_view.launchFullScreen(ue)}else ge=xi,ln(cn,In,!1);if(!window.GGBT_wsf_view)for(Ie=0;Ie<Ai.length;Ie++)cn.removeChild(Ai[Ie])},zi=cn.getElementsByClassName("ggb_preview_play"),Ie=0;Ie<zi.length;Ie++)zi[Ie].addEventListener("click",pi,!1),zi[Ie].addEventListener("ontouchstart",pi,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(cn),$t()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},sn=function(){var cn=document.createElement("div");if(cn.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var In='.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");}',Wn=document.createElement("style");Wn.styleSheet?Wn.styleSheet.cssText=In:Wn.appendChild(document.createTextNode(In)),document.getElementsByTagName("head")[0].appendChild(Wn)}return cn},gn=function(cn,In,Wn,xi){var pi=document.createElement("div");pi.className="ggb_preview",pi.style.position="absolute",pi.style.zIndex="90",pi.style.width=cn-2+"px",pi.style.height=In-2+"px",pi.style.top="0px",pi.style.left="0px",pi.style.overflow="hidden",pi.style.backgroundColor="white";var zi="lightgrey";Wn!==void 0&&(Wn==="none"?zi="transparent":zi=Wn),pi.style.border="1px solid "+zi;var Ie=document.createElement("img");if(Ie.style.position="relative",Ie.style.zIndex="1000",Ie.style.top="-1px",Ie.style.left="-1px",ht!==null&&Ie.setAttribute("src",ht),Ie.style.opacity=.7,at!==null){var Ai,Ti,ue;if(!xi){Ai=document.createElement("img"),Ai.style.position="absolute",Ai.style.zIndex="1001",Ai.style.opacity=1,Ie.style.opacity=.3,Ti=360,Ti>cn/4*3&&(Ti=cn/4*3),ue=Ti/5.8,Ai.setAttribute("src",at),Ai.setAttribute("width",Ti),Ai.setAttribute("height",ue);var Tt=(cn-Ti)/2,Ct=(In-ue)/2;Ai.style.left=Tt+"px",Ai.style.top=Ct+"px",pi.appendChild(Ai)}}return pi.appendChild(Ie),pi},pn=function(cn){return cn=cn.toLowerCase(),cn==="html5"||cn==="screenshot"?cn:"html5"},fe=["web","webSimple","web3d","tablet","tablet3d","phone"],Zt=function(cn,In){if(Qt=cn,In){Ye(Qt,!0);return}var Wn=!Le;if(Wn){var xi=Rt(Qt);!isNaN(xi)&&xi<4.4&&(Wn=!1)}var pi,zi;window.location.protocol.substr(0,4)==="http"?pi=window.location.protocol:pi="http:";var Ie=Qt.indexOf("//");Ie>0?zi=Qt:Ie===0?zi=pi+Qt:zi="https://www.geogebra.org/apps/5.2.814.0/";for(var Ai in fe)if(Qt.slice(fe[Ai].length*-1)===fe[Ai]||Qt.slice((fe[Ai].length+1)*-1)===fe[Ai]+"/"){Ye(zi,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Wn&&!Kt.is3D&&!Kt.AV&&!Kt.SV&&!Kt.CV&&!Kt.EV2&&!Kt.CP&&!Kt.PC&&!Kt.DA&&!Kt.FI&&!Kt.PV&&!De(Yt.showToolBar)&&!De(Yt.showMenuBar)&&!De(Yt.showAlgebraInput)&&!De(Yt.enableRightClick)&&(!Yt.appName||Yt.appName=="classic")?zi+="webSimple/":zi+="web3d/",Ye(zi,!1)},Ye=function(cn,In){if(cn.requirejs){xe=cn;return}cn.slice(-1)!=="/"&&(cn+="/"),xe=cn,In===null&&(In=cn.indexOf("http")===-1),ee=In,et="web.nocache.js",nt=!1;var Wn=xe.split("/");Wn.length>1&&(!In&&Wn[Wn.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):fe.indexOf(Wn[Wn.length-2])>=0&&(et=Wn[Wn.length-2]+".nocache.js")),Wn=cn.split("/"),Qt=Wn[Wn.length-3],Qt.substr(0,4)==="test"?Qt=Qt.substr(4,1)+"."+Qt.substr(5,1):(Qt.substr(0,3)==="war"||Qt.substr(0,4)==="beta")&&(Qt="5.0");var xi=parseFloat(Qt);xi!==NaN&&xi<5&&cn.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+xi+" is deprecated. Using version latest instead."),Zt("5.0",In))},Gn=function(cn,In){window.console&&window.console.log&&(!In||typeof In.showLogging=="undefined"||In.showLogging&&In.showLogging!=="false")&&console.log(cn)};Yt.material_id!==void 0?se(ri):ri();function ri(){var cn=Ii;We!==null?cn=We:parseFloat(cn)<5&&(cn="5.0"),Zt(cn,!1),je!==null&&Ye(je,ee),Se=!0}return Ci},GGBAppletUtils=function(){"use strict";function Ci(){return window.GGBT_wsf_edit!==void 0}function Ii(Se,We){We!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+We+","+We+")",Se.style.webkitTransform="scale("+We+","+We+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function Yt(Se,We,je,de,ve,It){var xe=null;if(It!=null&&It!="")for(var ee=Se.parentNode;ee!=null;)if((" "+ee.className+" ").indexOf(" "+It+" ")>-1){xe=ee;break}else ee=ee.parentNode;var ge=0,Qt=0,et=0,nt=0,ht=0,at=0,ft=0;if(xe)ge=xe.offsetWidth,Qt=Math.max(de?xe.offsetWidth:0,xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Qt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=ge):(ge=window.innerWidth,Qt=window.innerHeight,et=window.innerWidth),Se){var vt=Se.getBoundingClientRect();vt.left>0&&vt.left<=ge&&(ve===void 0||!ve)&&(document.dir==="rtl"?(ht=ge-vt.width-vt.left,at=et<=480?10:30):(at=vt.left,ht=et<=480?10:30),nt=at+ht)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Nt=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,ft=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,ft=40)}}return Se&&((je===void 0||!je)&&We>0&&We+nt<ge?ge=We:ge-=nt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je===void 0||!je)&&(Qt-=ft)),{width:ge,height:Qt}}function Kt(Se,We,je,de,ve){if(Se.isScreenshoGenerator)return 1;var It=de!==void 0&&de,xe=Se.noScaleMargin!=null&&Se.noScaleMargin,ee=function(Nt){return Nt&&Nt!=="false"},ge=ee(Se.autoHeight),Qt=Yt(We,Se.width,je,ge,It&&window.GGBT_wsf_view||xe,ve),et=parseInt(Qt.width),nt=Se.width,ht=Se.height;if(nt===void 0){var at=We.querySelector(".appletParameters");at&&(nt=at.offsetWidth,ht=at.offsetHeight)}var ft=et/nt,vt=It?1:Qt.height/ht;return je!==void 0&&!je&&(ft=Math.min(1,ft),vt=Math.min(1,vt)),Math.min(ft,vt)}function Le(Se,We,je){var de=1,ve,It=!1;if(Se.hasOwnProperty("allowUpscale")&&(It=Se.allowUpscale),Se.hasOwnProperty("scale")&&(de=parseFloat(Se.scale),(isNaN(de)||de===null||de===0)&&(de=1),de>1&&(It=!0)),We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(It=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))ve=Kt(Se,We,It,je,Se.scaleContainerClass);else return de;return It&&(!Se.hasOwnProperty("scale")||de===1)?ve:Math.min(de,ve)}function Te(Se){var We=Math.min(window.innerWidth,document.documentElement.clientWidth),je=Math.min(window.innerHeight,document.documentElement.clientHeight),de=Se.getBoundingClientRect(),ve=(We-de.width)/2,It=(je-de.height)/2;It<0&&(It=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ve<40?Se.style.left="40px":Se.style.left=ve+"px",Se.style.top=It+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(It<40?Se.style.top="40px":Se.style.top=It+"px",Se.style.left=ve+"px")}function xn(Se,We){var je=Se.querySelector(".appletParameters");if(je){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(We.id!==je.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(je.parentElement&&/fullscreen/.test(je.parentElement.className))return;var de=Le(We,Se);Ci()&&je.setAttribute("data-param-scale",de);for(var ve=null,It=0;It<Se.childNodes.length;It++)if(Se.childNodes[It].className!==void 0&&Se.childNodes[It].className.match(/^applet_scaler/)){ve=Se.childNodes[It];break}if(ve!==null&&ve.querySelector(".noscale")!==null)return;var xe=We.id!==void 0?We.id:"ggbApplet",ee=window[xe];(ee==null||!ee.recalculateEnvironments)&&ve!==null&&!ve.className.match(/fullscreen/)&&(ve.parentNode.style.transform="",!isNaN(de)&&de!==1?(ve.parentNode.style.width=We.width*de+"px",ve.parentNode.style.height=We.height*de+"px",Ii(ve,de)):(Ii(ve,1),ve.parentNode.style.width=We.width+"px",ve.parentNode.style.height=We.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Te(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(je).parents(".content-added-content"))}}return{responsiveResize:xn,isFlexibleWorksheetEditor:Ci,positionCenter:Te,getScale:Le,scaleElement:Ii}}();__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 Ci=n.location.search;return Ci.indexOf(J)!=-1||Ci.indexOf(K)!=-1}function q(Ci,Ii){}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(Ci){var Ii=s[L].bindings;s[L].bindings=function(){for(var Yt=Ii?Ii():{},Kt=Ci[webModule.__softPermutationId],Le=O;Le<Kt.length;Le++){var Te=Kt[Le];Yt[Te[O]]=Te[P]}return Yt}};var t;function u(){return v(),t}function v(){if(!t){var Ci=o.createElement(Q);if(Ci.id=L,Ci.style.cssText=R+S,Ci.tabIndex=-1,o.body.appendChild(Ci),t=Ci.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ii=document.compatMode==U?V:W;t.write(Ii+X),t.close()}}}function w(Ci){function Ii(Kt){function Le(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Te=Le();if(Te){Kt();return}function xn(){if(!Te){if(!Le())return;Te=!0,Kt(),o.removeEventListener&&o.removeEventListener(Z,xn,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,xn,!1);var Se=setInterval(function(){xn()},$)}function Yt(Kt){var Le=u(),Te=Le.body,xn=Le.createElement(_);xn.language=ab,xn.crossOrigin=W,xn.src=Kt,webModule.__errFn&&(xn.onerror=function(){webModule.__errFn(L,new Error(bb+Kt))}),Te.appendChild(xn)}Ii(function(){Yt(Ci)})}webModule.__startLoadingFragment=function(Ci){return C(Ci)},webModule.__installRunAsyncCode=function(Ci){var Ii=u(),Yt=Ii.body,Kt=Ii.createElement(_);Kt.language=ab,Kt.text=Ci,Yt.appendChild(Kt),Yt.removeChild(Kt)};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(Ci){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ci){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ci){var Ii=c[Ci];return Ii==null?null:Ii},r=d,webModule.__errFn=e}function B(){function Ci(Se){var We=Se.lastIndexOf(rb);We==-1&&(We=Se.length);var je=Se.indexOf(sb);je==-1&&(je=Se.length);var de=Se.lastIndexOf(tb,Math.min(je,We));return de>=O?Se.substring(O,de+P):W}function Ii(Se){if(!Se.match(/^\w+:\/\//)){var We=o.createElement(ub);We.src=Se+vb,Se=Ci(We.src)}return Se}function Yt(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function Kt(){for(var Se=o.getElementsByTagName(_),We=O;We<Se.length;++We)if(Se[We].src.indexOf(xb)!=-1)return Ci(Se[We].src);return W}function Le(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function Te(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var xn=Yt();return xn==W&&(xn=Kt()),xn==W&&(xn=Le()),xn==W&&Te()&&(xn=Ci(o.location.href)),xn=Ii(xn),xn}function C(Ci){return Ci.match(/^\//)||Ci.match(/^[a-zA-Z]+:\/\//)?Ci:webModule.__moduleBase+Ci}function D(){var Ci=[],Ii=O,Yt=[],Kt=[];function Le(Se){var We=Kt[Se](),je=Yt[Se];if(We in je)return We;var de=[];for(var ve in je)de[je[ve]]=ve;throw r&&r(Se,de,We),null}if(__gwt_isKnownPropertyValue=function(Se,We){return We in Yt[Se]},webModule.__getPropMap=function(){var Se={};for(var We in Yt)Yt.hasOwnProperty(We)&&(Se[We]=Le(We));return Se},webModule.__computePropValue=Le,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Te;try{Te=Cb;var xn=Te.indexOf(Db);xn!=-1&&(Ii=parseInt(Te.substring(xn+P),$),Te=Te.substring(O,xn))}catch(Se){}return webModule.__softPermutationId=Ii,C(Te+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})()},49291:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Ax:function(){return xn},Ds:function(){return Se},KI:function(){return je},SI:function(){return Te},f1:function(){return Le}});var Kt=Yt(38446);function Le(de){let ve=!0;if(de.length>0){for(let It=0;It<de.length;It++)if(de[It].compile_success==0||!de[It].compile_success){ve=!1;break}}else ve=!1;return ve}function Te(de,ve=""){let It=[];for(let xe=0;xe<de.length;xe++){let ee=de[xe],ge=ve?`${ve}/${ee.name}`:`${ee.name}`;It.push({title:ee.name,type:ee.type,isLeaf:ee.type!=="tree",key:ge})}return It}function xn(de,ve,It){for(let xe=0;xe<de.length;xe++){let ee=de[xe];if(ee.key===ve){ee.children=It;break}ee.children&&xn(ee.children,ve,It)}return de}function Se(de,ve,It){let xe;return function(){let ee=this,ge=arguments,Qt=function(){xe=null,It||de.apply(ee,ge)},et=It&&!xe;clearTimeout(xe),xe=setTimeout(Qt,ve),et&&de.apply(ee,ge)}}const We=!0,je=Kt.Z.API_SERVER},14573:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return xe}});var Kt=Yt(59301),Le={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Te=Yt(92310),xn=Yt.n(Te),Se=Yt(71418),We=Yt(2859),je=Yt(7660),de=Yt(88230),ve=(ee,ge,Qt)=>new Promise((et,nt)=>{var ht=vt=>{try{ft(Qt.next(vt))}catch(Nt){nt(Nt)}},at=vt=>{try{ft(Qt.throw(vt))}catch(Nt){nt(Nt)}},ft=vt=>vt.done?et(vt.value):Promise.resolve(vt.value).then(ht,at);ft((Qt=Qt.apply(ee,ge)).next())}),xe=({data:ee,className:ge,fullWidth:Qt,style:et={},onClose:nt,onOk:ht,showFullTools:at,noAssociationId:ft})=>{const vt=(0,Kt.useRef)(null),Nt=(0,Kt.useRef)(null),Rt=(0,Kt.useRef)(null),Gt=(0,Kt.useRef)(null),[$t,se]=(0,Kt.useState)(!1),[me,ce]=(0,Kt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Kt.useEffect)(()=>{Rt.current||(Rt.current=document.createElement("style"),document.head.appendChild(Rt.current)),ee!=null&&ee.visible?(document.body.setAttribute("data-custom","y-hidden"),Rt.current.innerHTML=" html { overflow-y: hidden; }",ee!=null&&ee.src&&Xe()):(document.body.removeAttribute("data-custom"),Rt.current&&(document.head.removeChild(Rt.current),Rt.current=null))},[ee==null?void 0:ee.visible]);const Xe=()=>ve(void 0,null,function*(){se(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const mn=yield(0,de.ZJ)(ee==null?void 0:ee.src);vt.current.src="",vt.current.src=mn,vt.current.onload=function(){Oe()},se(!1),ce("")}),De=mn=>ve(void 0,null,function*(){se(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Kn=yield(0,je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ee.title,file:mn.dataUrl}});Kn!=null&&Kn.id&&!ft?(yield(0,je.ZP)(`/api/attachments/${ee.id}/add_subitem.json`,{method:"post",body:{subitem_id:Kn==null?void 0:Kn.id,settings:JSON.stringify(mn.state)}})).status===0&&ht():Kn!=null&&Kn.id&&ht(Kn),se(!1),ce("")}),ln=()=>{const mn=document.querySelector('a[href="https://markerjs.com/"]');mn&&mn.parentNode&&(mn.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(sn=>{const gn=document.querySelector(sn.name);gn&&gn.setAttribute("title",sn.title)})},Oe=()=>{Nt.current=new We.hP(vt.current),Nt.current.targetRoot=Gt.current,Nt.current.addEventListener("render",De),Nt.current.addEventListener("beforeclose",nt),at&&(Nt.current.availableMarkerTypes=Nt.current.ALL_MARKER_TYPES,Nt.current.uiStyleSettings.redoButtonVisible=!0,Nt.current.uiStyleSettings.notesButtonVisible=!0,Nt.current.uiStyleSettings.zoomButtonVisible=!0,Nt.current.uiStyleSettings.zoomOutButtonVisible=!0,Nt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Nt.current.uiStyleSettings,Nt.current.show(),ee!=null&&ee.snapshotData&&Nt.current.restoreState(ee.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ln()},300)};return Kt.createElement(Kt.Fragment,null,(ee==null?void 0:ee.visible)&&Kt.createElement(Se.Z,{spinning:$t,tip:me,style:{position:"absolute"}},Kt.createElement("div",{ref:Gt,className:xn()(Le.imageDimensions,ge,Qt?Le.fullWidth:""),style:et},Kt.createElement("img",{className:Le.img,ref:vt}))))}},46531:function(Ci,Ii,Yt){"use strict";var Kt=Yt(59301),Le=Yt(95237),Te=Yt(43604),xn=Yt(99313),Se=Yt(3113),We=Yt(99325),je=Yt(11570),de=Yt(48136),ve=Yt(59301);const It=(0,Kt.forwardRef)(({callback:xe,showSaveButton:ee,value:ge=""},Qt)=>{const et=(0,Kt.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=Nt=>{et.current.setValue(et.current.getValue()+" "+Nt.value+" ")},ft=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ve.createElement(Le.Z,{className:je.Z.lists,gutter:[10,10]},nt.map((Nt,Rt)=>ve.createElement(Te.Z,{flex:"110px",className:je.Z.item},ve.createElement("div",null,ve.createElement(We.Z,{value:`$$${Nt.value}$$`}),Nt.name),ve.createElement("div",{className:je.Z.children},Nt.children.map((Gt,$t)=>ve.createElement("div",{key:$t},ve.createElement("h1",null,Gt.name),ve.createElement(Le.Z,{gutter:[10,10]},Gt.data.map((se,me)=>ve.createElement(Te.Z,{key:me,onClick:()=>at(se),className:je.Z.diamond},ve.createElement(We.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ve.createElement(Le.Z,{className:je.Z.lists,gutter:[10,10]},ht.map((Nt,Rt)=>ve.createElement(Te.Z,{flex:"110px",className:je.Z.item},ve.createElement("div",null,ve.createElement(We.Z,{value:"`$$"+Nt.value+"$$`"}),Nt.name),ve.createElement("div",{className:je.Z.children},Nt.children.map((Gt,$t)=>ve.createElement("div",{key:$t},Gt.name&&ve.createElement("h1",null,Gt.name),ve.createElement(Le.Z,{gutter:[10,10]},Gt.data.map((se,me)=>ve.createElement(Te.Z,{key:me,onClick:()=>at(se),className:je.Z.diamond},ve.createElement(We.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],vt=()=>{var Nt=document.createElement("div");Nt.innerHTML=et.current.getValue();var Rt=Nt.innerText;return xe&&xe(Rt),Rt};return(0,Kt.useImperativeHandle)(Qt,()=>({getData:vt})),ve.createElement("div",{className:je.Z.mathWrap},ve.createElement(xn.default,{defaultActiveKey:"1",items:ft}),ve.createElement("math-field",{locale:"zh_cn",className:je.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},ge||""),ee&&ve.createElement("div",{className:je.Z.button},ve.createElement(Se.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ii.Z=It},57816:function(Ci,Ii,Yt){"use strict";var Kt=Yt(59301),Le=Yt(93314),Te=Yt(3113),xn=Object.defineProperty,Se=Object.defineProperties,We=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,It=(Qt,et,nt)=>et in Qt?xn(Qt,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Qt[et]=nt,xe=(Qt,et)=>{for(var nt in et||(et={}))de.call(et,nt)&&It(Qt,nt,et[nt]);if(je)for(var nt of je(et))ve.call(et,nt)&&It(Qt,nt,et[nt]);return Qt},ee=(Qt,et)=>Se(Qt,We(et));const ge=({img:Qt,buttonProps:et={},styles:nt={},customText:ht,ButtonText:at,ButtonClick:ft,Buttonclass:vt,ButtonTwo:Nt,imgStyles:Rt,loading:Gt=!1})=>Kt.createElement("section",{className:"tc animated fadeIn",style:xe(xe({},{color:"#999",margin:"100px auto",visibility:Gt?"hidden":"visible"}),nt)},Kt.createElement("img",{src:Qt||Le,style:ee(xe({},Rt),{pointerEvents:"none",userSelect:"none"})}),Kt.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),at&&Kt.createElement(Te.ZP,xe({className:vt,onClick:ft},et),at),Nt&&Nt);Ii.Z=ge},90853:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return vt}});var Kt=Yt(59301),Le={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Te=Yt(3113),xn=Yt(70557),Se=Yt(57800),We=Yt(6848),je=Yt(88230),de=Yt(30897),ve=Yt(57816),It=Yt(38446),xe=Yt(89282),ee=Yt(59301),ge=Object.defineProperty,Qt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(Nt,Rt,Gt)=>Rt in Nt?ge(Nt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Nt[Rt]=Gt,at=(Nt,Rt)=>{for(var Gt in Rt||(Rt={}))et.call(Rt,Gt)&&ht(Nt,Gt,Rt[Gt]);if(Qt)for(var Gt of Qt(Rt))nt.call(Rt,Gt)&&ht(Nt,Gt,Rt[Gt]);return Nt},ft=(Nt,Rt,Gt)=>new Promise(($t,se)=>{var me=De=>{try{Xe(Gt.next(De))}catch(ln){se(ln)}},ce=De=>{try{Xe(Gt.throw(De))}catch(ln){se(ln)}},Xe=De=>De.done?$t(De.value):Promise.resolve(De.value).then(me,ce);Xe((Gt=Gt.apply(Nt,Rt)).next())}),vt=({editOffice:Nt="view",data:Rt,theme:Gt,type:$t,filename:se,monacoEditor:me,className:ce,style:Xe,close:De,onClose:ln,hasMask:Oe,disabledDownload:mn,onImgDimensions:Kn,showNodata:sn,recordInfo:gn})=>{const[pn,fe]=(0,Kt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,Ye]=(0,Kt.useState)(""),[Gn,ri]=(0,Kt.useState)(),cn=window.ENV==="build"?"/react/build":"",In=location.host.startsWith("localhost")?It.Z.PROXY_SERVER:It.Z.API_SERVER,xi=10*(1024*1024),pi=(0,Kt.useRef)();Rt!=null&&Rt.startsWith("/api")&&$t!=="txt"&&(Rt=It.Z.API_SERVER+Rt);const zi=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();se&&me&&(me.filename=se),(0,Kt.useEffect)(()=>{var ue,Tt;const Ct=(Tt=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:Tt.split(";");Ct==null||Ct.map(zt=>{let Ht=zt.split("=");Ht[0]==="_educoder_session"&&Ye(Ht[1])})},[]),(0,Kt.useEffect)(()=>{$t==="office"&&(Rt.indexOf("bigfilescdn.")>-1||Rt.indexOf("bigfiles1")>-1?ri({url:Rt,fileType:zi(Rt),model:Rt.indexOf("model=edit")?"edit":"view"}):Ie())},[$t,Rt]);const Ie=()=>ft(void 0,null,function*(){console.log("data:",Rt);let ue=Rt;Rt.startsWith("http")||(ue=location.origin+ue);let Tt=new URL(ue).pathname.split("/").pop();const Ct=yield(0,de.gJ)({attachment_id:Tt});Ct.url=In+Ct.url,ri(Ct)}),Ai=()=>{if(Rt.startsWith("http")||Rt.startsWith("blob:")){Ti();return}(0,je.Sv)(se||"educoder",Rt,se)},Ti=()=>{gn&&(0,xe.fc)({id:gn==null?void 0:gn.id,watch_type:1,course_id:gn==null?void 0:gn.course_id}),(0,je.Nd)(se||"educoder",decodeURIComponent(Rt))};return ee.createElement("div",{style:at({},Xe||{}),className:`${Oe&&Le.bgBlack} ${$t?Le.wrp:"hide"}`},De&&ee.createElement("div",{className:Le.close,ref:pi},!!Kn&&ee.createElement(We.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>pi.current},ee.createElement("span",{onClick:()=>{ln(),Kn()}},ee.createElement("i",{className:"icon-yulanpizhu"}))),!mn&&ee.createElement(We.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>pi.current},ee.createElement("span",{onClick:Ti},ee.createElement("i",{className:"icon-quxiaozhiding"}))),ee.createElement(We.Z,{title:"\u5173\u95ED",getPopupContainer:()=>pi.current},ee.createElement("span",{className:"",onClick:ln},ee.createElement("i",{className:"icon-guanbi1"})))),ee.createElement("div",{className:`${Le[ce]} ${ce} ${Le.monaco} ${$t==="txt"?"show":"hide"}`},$t==="txt"&&ee.createElement(ee.Fragment,null,ee.createElement(Se.ZP,at({},me)))),$t==="audio"&&ee.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"&&ee.createElement(ee.Fragment,null,(Rt==null?void 0:Rt.indexOf("http"))>-1?ee.createElement("video",{controls:!0,src:`${Rt}`,autoPlay:!0}):ee.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Rt}`,autoPlay:!0})),$t==="office"&&Gn&&ee.createElement("iframe",{src:`${cn}/office.html?key=${Gn.key}&url=${btoa(Gn.url)}&callbackUrl=${In+(Gn.callbackUrl||"")}&fileType=${Gn.fileType}&title=${Gn.title||""}&model=${Nt}&officeServer=${It.Z.ONLYOFFICE}&disabledDownload=${!!mn}`}),$t==="html"&&ee.createElement("iframe",{src:Rt+"&disposition=inline"}),$t==="pdf"&&ee.createElement("iframe",{src:`${cn}/js/pdfview/index.html?filename=${se||"educoder.pdf"}&url=${encodeURIComponent(Rt)}&disabledDownload=${!!mn}`}),$t==="image"&&ee.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")&&ee.createElement(ee.Fragment,null,sn?ee.createElement(ve.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ee.createElement(Te.ZP,{icon:ee.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ai,disabled:mn},"\u4E0B\u8F7D")}):ee.createElement(Te.ZP,{type:"primary",size:"middle",onClick:Ai,disabled:mn},ee.createElement(xn.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},99325:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{z:function(){return $t},Z:function(){return se}});var Kt=Yt(59301),Le=Yt(2878),Te=Yt(85187),xn=Yt(64018),Se=Yt(40846),We=Yt(38446),je=Yt(88230),de=Yt(15342),ve=Yt(1012),It=Yt(90853),xe=Yt(59301),ge=({html:me})=>{const ce=(0,Kt.useRef)(null),Xe=(0,Kt.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,Kt.useEffect)(()=>{const ln=ce.current.attachShadow({mode:"open"});Xe.current=document.createElement("div"),Xe.current.className="markdown-body",Xe.current.innerHTML=me,ln.appendChild(Xe.current);const Oe=document.createElement("style");return Oe.textContent=De,ln.appendChild(Oe),()=>{ln.innerHTML=""}},[]),(0,Kt.useEffect)(()=>{Xe.current&&(Xe.current.innerHTML=me)},[me]),xe.createElement("div",{ref:ce})},Qt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,at=(me,ce,Xe)=>ce in me?Qt(me,ce,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):me[ce]=Xe,ft=(me,ce)=>{for(var Xe in ce||(ce={}))nt.call(ce,Xe)&&at(me,Xe,ce[Xe]);if(et)for(var Xe of et(ce))ht.call(ce,Xe)&&at(me,Xe,ce[Xe]);return me};const vt="@\u2581\u2581@",Nt="@\u2581@",Rt=/<pre[^>]*>/g;function Gt(me){let ce=document.createElement("div");return ce.innerHTML=me,ce.childNodes.length===0?"":ce.childNodes[0].nodeValue}const $t=(me,ce)=>{me=me||"";const Xe=/(?: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,ln=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Oe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ce?me.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Xe,(mn,Kn,sn,gn,pn,fe,Zt)=>{const Ye=Kn||gn||fe,Gn=sn||pn||Zt||"?";return We.Z.API_SERVER+"/api/attachments/"+Ye+Gn+"&t="+(0,je.Jn)(Ye,Date.now())+(mn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(me=me.replace(Oe,(mn,Kn,sn,gn,pn,fe,Zt)=>{const Ye=Kn||gn||fe,Gn=sn||pn||Zt||"?";return We.Z.API_SERVER+"/attachments/download/"+Ye+Gn+"&t="+(0,je.Jn)(Ye,Date.now())+(mn.indexOf(")")>-1?")":"&")}).replace(Xe,(mn,Kn,sn,gn,pn,fe,Zt)=>{const Ye=Kn||gn||fe,Gn=sn||pn||Zt||"?";return We.Z.API_SERVER+"/api/attachments/"+Ye+Gn+"&t="+(0,je.Jn)(Ye,Date.now())+(mn.indexOf(")")>-1?")":"&")}).replace(De,(mn,Kn,sn,gn,pn)=>{const fe=Kn||gn,Zt=sn||pn||"";return'"'+We.Z.API_SERVER+"/api/attachments/"+fe+Zt+fe+Zt+"&t="+(0,je.Jn)(fe,Date.now())}).replace(ln,(mn,Kn,sn,gn,pn)=>{const fe=Kn||gn,Zt=sn||pn||"";return"("+We.Z.API_SERVER+"/files/uploads/"+fe+Zt+fe+Zt+"&t="+(0,je.Jn)(fe,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,`
|
|
|
`),me)};var se=({value:me="",className:ce,showTextOnly:Xe,showLines:De,style:ln={},stylesPrev:Oe={},highlightKeywords:mn,showProgramFill:Kn,isProgramFill:sn,disabledFill:gn=!1,programFillValue:pn,onFillChange:fe=Gn=>{},onFillBlur:Zt=()=>{},onFillFocus:Ye=()=>{}})=>{let Gn=String(me);const[ri,cn]=(0,Kt.useState)(""),[In,Wn]=(0,Kt.useState)("office"),[xi,pi]=(0,Kt.useState)([]),zi=(0,Kt.useRef)("a"+(0,ve.Z)()),Ie={},Ai=(An,kn,Bn)=>{const Vn=document.createElement(An===Nt?"input":"textarea");Vn.style.width="100%",Vn.style.height=An===Nt?"40px":"151px",Vn.rows=5,Vn.spellcheck=!1,Vn.name="edu-program-fill",Vn.placeholder="\u8BF7\u8F93\u5165",Vn.dataset.id=kn;const bi=Object.keys(Ie).length;return Ie[bi]=Vn,`<span class="edu-program-fill-wrap ${An===Nt?"":"show"}" style="width:${An===Nt?"400px":"100%"}" title=${Bn||""}><span>${Vn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ti(An){return An=An.replace(/!\[.*?\]\(.*?\)/g,""),An=An.replace(/\[.*?\]\(.*?\)/g,""),An=An.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),An=An.replace(/<embed.*?>/g,""),An=An.replace(/<img.*?>/g,""),An=An.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),An=An.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),An=An.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),An=An.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),An}const ue=An=>An.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(kn,Bn){let Vn=Bn.replace(/(\n|\r)/g,"").split("}"),bi=[];return Vn.map(Pn=>{Pn!=""&&bi.push(`.${zi.current} ${Pn}`)}),`<style>${bi.join("}")}</style>`}),Tt=(0,Kt.useMemo)(()=>{try{const Vn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,bi=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Pn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,an=/\(\/attachments\/download\//g;Gn=Gn.replace(an,"("+We.Z.API_SERVER+"/attachments/download/").replace(Vn,"("+We.Z.API_SERVER+"/api/attachments/").replace(bi,'"'+We.Z.API_SERVER+"/api/attachments/").replace(Pn,'"'+We.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(Vn){}if(Kn){let Vn=-1;return Gn=Gn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(bi,Pn,an){var ei;return++Vn,Ai(bi,Vn,(ei=pn==null?void 0:pn[Vn])==null?void 0:ei.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ue(Gn||"")}</pre>`}let An=ue(Gn);An=(0,Te.ZP)(An);const kn=(0,Te.ez)();Gn.match(/\[TOC\]/)&&(An=An.replace("<p>[TOC]</p>",(0,Te.Qv)()),(0,Te.Iy)()),An=An.replace(/(__special_katext_id_\d+__)/g,(Vn,bi)=>{const{type:Pn,expression:an}=kn[bi];return(0,de.renderToString)(Gt(an)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),An=An.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Te.AL)();const Bn=document.createElement("div");if(Bn.innerHTML=An,Xe)return Bn.innerText;if(mn){const Vn=mn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Mt(Bn,Vn),Bn.innerHTML}return setTimeout(()=>vn(),500),Bn.innerHTML},[Gn,mn]);(0,Kt.useEffect)(()=>{be.current&&be.current.querySelectorAll(["input","textarea"]).forEach(kn=>{kn.oninput=Ct,kn.onblur=zt,kn.onfocus=Ht})},[xi]),(0,Kt.useEffect)(()=>{var An,kn,Bn,Vn,bi;if(pn!=null&&pn.length)try{const Pn=be.current.querySelectorAll(".edu-program-fill-score"),an=be.current.querySelectorAll('[name="edu-program-fill"]');for(const[ei,Ui]of an.entries())Ui.value=((An=pn==null?void 0:pn[ei])==null?void 0:An.value)||"",((kn=pn==null?void 0:pn[ei])==null?void 0:kn.type)==="warning"?Ui.className="program-fill-warning":((Bn=pn==null?void 0:pn[ei])==null?void 0:Bn.type)==="success"?Ui.className="program-fill-success":Ui.className="";for(const[ei,Ui]of Pn.entries())Ui.innerHTML=(Vn=pn==null?void 0:pn[ei])!=null&&Vn.score?`${(bi=pn==null?void 0:pn[ei])==null?void 0:bi.score}\u5206`:"";pi(pn)}catch(Pn){console.log(Pn,"error")}},[pn]);const Ct=An=>{xi[An.target.dataset.id]=xi[An.target.dataset.id]||{},xi[An.target.dataset.id].value=An.target.value,pi([...xi]),fe(xi,An.target.dataset.id)},zt=An=>{xi[An.target.dataset.id]=xi[An.target.dataset.id]||{},xi[An.target.dataset.id].value=An.target.value,pi([...xi]),Zt(xi,An.target.dataset.id)},Ht=An=>{xi[An.target.dataset.id]=xi[An.target.dataset.id]||{},xi[An.target.dataset.id].value=An.target.value,pi([...xi]),Ye(xi,An.target.dataset.id)};function Mt(An,kn){return An.childNodes.forEach(Bn=>{var Vn;if(Bn.childNodes.length>0)Mt(Bn,kn);else if(Bn.nodeName!=="IMG")if(Bn.innerHTML)Bn.innerHTML=(Vn=Bn.innerHTML)==null?void 0:Vn.replace(new RegExp(kn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const bi=document.createElement("span");bi.innerHTML=Bn.textContent.replace(new RegExp(kn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Bn.replaceWith(bi)}})}const be=(0,Kt.useRef)();Te.jb.WebkitLineClamp=De,De&&(ln=ft(ft({},ln),Te.jb));function Ge(An){let kn=An.target;if(kn.tagName.toUpperCase()==="A"){let Bn=kn.getAttribute("href");if(Bn.indexOf("office")>-1)An.preventDefault(),cn(Bn),Wn("office");else if(Bn.indexOf("application/pdf")>-1)An.preventDefault(),cn(Bn),Wn("pdf");else if(Bn.indexOf("text/html")>-1)An.preventDefault(),cn(Bn),Wn("html");else if(Bn.startsWith("#")){An.preventDefault();let Vn=document.getElementById(Bn.replace("#",""));Vn&&Vn.scrollIntoView(!0)}}}const vn=()=>{var An;const kn=(An=be.current)==null?void 0:An.querySelectorAll("video");kn==null||kn.forEach(Bn=>{if(Bn.oncontextmenu=()=>!1,Bn.src.indexOf(".m3u8")>-1&&!Bn.canPlayType("application/vnd.apple.mpegurl")){if(Se.ZP.isSupported()){var Vn=new Se.ZP;Vn.loadSource(Bn.src),Vn.attachMedia(Bn)}}})};(0,Kt.useEffect)(()=>{if(be.current&&Tt&&Tt.match(Rt)&&window.PR.prettyPrint(),be.current)return be.current.addEventListener("click",Ge),()=>{var An;(An=be.current)==null||An.removeEventListener("click",Ge),(0,Te.AL)(),(0,Te.Iy)()}},[Tt,be.current,Ge]),(0,Kt.useEffect)(()=>{var An;const kn=Bn=>{Bn.preventDefault(),Bn.clipboardData.setData("text",window.getSelection().toString())};return(An=be.current)==null||An.addEventListener("copy",kn),()=>{var Bn;(Bn=be.current)==null||Bn.removeEventListener("copy",kn)}},[be.current]);const Fn=An=>/<style[\s\S]*?>/i.test(An||"");return Kt.createElement(Kt.Fragment,null,Xe&&Kt.createElement("div",{ref:be},Tt),!Xe&&!Fn(Tt)&&Kt.createElement("div",{ref:be,style:ft({},ln),className:`${ce||""} ${gn?"disabled-fill":""} markdown-body ${zi.current}`,dangerouslySetInnerHTML:{__html:Tt}}),!Xe&&Fn(Tt)&&Kt.createElement(ge,{html:Tt}),Kt.createElement(It.Z,{close:!0,data:ri,type:ri!=null&&ri.length?In:"",style:ft({},Oe),onClose:()=>cn("")}))}},73278:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{h:function(){return Nt}});var Kt=Yt(59301),Le=Yt(57809),Te=Yt(78241),xn=Yt(3113),Se=Yt(89780),We=Yt.n(Se),je=Yt(78780),de=Yt(19136),ve=Object.defineProperty,It=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,et=(Rt,Gt,$t)=>Gt in Rt?ve(Rt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Rt[Gt]=$t,nt=(Rt,Gt)=>{for(var $t in Gt||(Gt={}))ge.call(Gt,$t)&&et(Rt,$t,Gt[$t]);if(ee)for(var $t of ee(Gt))Qt.call(Gt,$t)&&et(Rt,$t,Gt[$t]);return Rt},ht=(Rt,Gt)=>It(Rt,xe(Gt));const at=Le.default.Option,ft={labelCol:{span:4},wrapperCol:{span:20}},vt={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"]};Ii.Z=({callback:Rt,onCancel:Gt})=>{const[$t,se]=(0,Kt.useState)("python");function me(Xe){se(vt[Xe][1])}function ce(Xe){Rt(Xe)}return Kt.createElement(Te.default,ht(nt({},ft),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),Kt.createElement(Te.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Kt.createElement(Le.default,{getPopupContainer:Xe=>Xe.parentNode,onChange:me},Object.keys(vt).map(Xe=>Kt.createElement(at,{key:Xe,value:Xe},vt[Xe][0])))),Kt.createElement(Te.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Kt.createElement(Nt,{mode:$t})),Kt.createElement("div",{className:"flex-container flex-end"},Kt.createElement(xn.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Kt.createElement(xn.ZP,{type:"ghost",onClick:Gt},"\u53D6\u6D88")))};function Nt({value:Rt,onChange:Gt,mode:$t,options:se={}}){const me=(0,Kt.useRef)(),[ce,Xe]=(0,Kt.useState)();return(0,Kt.useEffect)(()=>{if(ce){let De=function(ln){const Oe=ln.getValue();Gt&&Gt(Oe)};return ce.on("change",De),()=>{ce.off("change",De)}}},[ce,Gt]),(0,Kt.useEffect)(()=>{ce&&ce.setOption("mode",$t)},[ce,$t]),(0,Kt.useEffect)(()=>{ce&&(Rt!==ce.getValue()||Rt==="")&&setTimeout(()=>{ce.setValue(Rt||"")},300)},[ce,Rt]),(0,Kt.useEffect)(()=>{if(me.current&&!ce){const De=We().fromTextArea(me.current,nt({mode:$t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Xe(De)}},[me.current,ce]),Kt.createElement("div",{className:"my-codemirror-container"},Kt.createElement("textarea",{ref:me}))}},64726:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Fr}});var Kt=Yt(59301),Le=Yt(89780),Te=Yt.n(Le),xn=Yt(76374),Se=Yt(78780),We=Yt(6313),je=Yt(25717),de=Yt(99498),ve=Yt(25419),It=Yt(67549),xe=Yt(99325),ee=({value:dn="",className:nn,showTextOnly:he,showLines:Un,style:Yn={}})=>{const Qe=(0,Kt.useMemo)(()=>"",[dn]);return Kt.createElement(Kt.Fragment,null,Kt.createElement("div",{dangerouslySetInnerHTML:{__html:Qe}}))},ge=Yt(59301),Qt=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,vt=(dn,nn,he)=>nn in dn?Qt(dn,nn,{enumerable:!0,configurable:!0,writable:!0,value:he}):dn[nn]=he,Nt=(dn,nn)=>{for(var he in nn||(nn={}))at.call(nn,he)&&vt(dn,he,nn[he]);if(ht)for(var he of ht(nn))ft.call(nn,he)&&vt(dn,he,nn[he]);return dn},Rt=(dn,nn)=>et(dn,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:dn,title:nn,icon:he,actionName:Un,className:Yn="",children:Qe}){function ye(){dn(Un)}return ge.createElement("a",{title:nn,className:Yn,onClick:ye},ge.createElement("i",{className:`${he}`}),Qe)}var se=({watch:dn,showNullButton:nn,showNullProgramButton:he,onActionCallback:Un,fullScreen:Yn,insertTemp:Qe,hidetoolBar:ye,extraUse:qe})=>{const Mn=[...Gt,{title:`${dn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${dn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ge.createElement("ul",{className:"markdown-toolbar-container"},!ye&&Mn.map((li,Si)=>ge.createElement("li",{key:Si},li.actionName?ge.createElement($t,Rt(Nt({},li),{onActionCallback:Un})):ge.createElement("span",{className:"v-line"}))),nn?ge.createElement("li",null,ge.createElement($t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Un},ge.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,he?ge.createElement(ge.Fragment,null,ge.createElement("li",null,ge.createElement($t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Un},ge.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ge.createElement("li",null,ge.createElement($t,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Un},ge.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Qe&&ge.createElement("li",null,ge.createElement($t,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qe}`,onActionCallback:Un},ge.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),qe&&ge.createElement("li",null,qe),ge.createElement("li",{className:"btn-full-screen"},ge.createElement($t,{icon:`${Yn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Yn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Un})))},me=Yt(19647),ce=Yt(78241),Xe=Yt(92832),De=Yt(3113),ln=Object.defineProperty,Oe=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,pn=(dn,nn,he)=>nn in dn?ln(dn,nn,{enumerable:!0,configurable:!0,writable:!0,value:he}):dn[nn]=he,fe=(dn,nn)=>{for(var he in nn||(nn={}))sn.call(nn,he)&&pn(dn,he,nn[he]);if(Kn)for(var he of Kn(nn))gn.call(nn,he)&&pn(dn,he,nn[he]);return dn},Zt=(dn,nn)=>Oe(dn,mn(nn));const Ye={labelCol:{span:4},wrapperCol:{span:20}};var Gn=({callback:dn,onCancel:nn})=>{function he(Un){dn(Un)}return Kt.createElement(ce.default,Zt(fe({},Ye),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:he,style:{width:500}}),Kt.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Kt.createElement(Xe.default,null)),Kt.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Kt.createElement(Xe.default,null)),Kt.createElement("div",{className:"flex-container flex-end"},Kt.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Kt.createElement(De.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},ri=Yt(73278),cn=Yt(56030),In=Yt(43418),Wn=Yt(95237),xi=Yt(14573),pi=Yt(59301),zi=({callback:dn,onCancel:nn})=>{const he=document.createElement("canvas"),Un=he.getContext("2d");he.width=1e3,he.height=800,Un.fillStyle="#ffffff",Un.fillRect(0,0,he.width,he.height);const Yn=he.toDataURL("image/png");return pi.createElement(In.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},pi.createElement(Wn.Z,{style:{height:"100vh"}},pi.createElement(xi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Yn,visible:!0,title:String(Date.now())},onOk:Qe=>{dn({src:Qe.url})},onClose:nn})))},Ie=Yt(12378);function Ai(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ai,go.CommandHandler),Ai.prototype.canAlignSelection=function(){var dn=this.diagram;return!(dn===null||dn.isReadOnly||dn.isModelReadOnly||dn.selection.count<2)},Ai.prototype.alignLeft=function(){var dn=this.diagram;dn.startTransaction("aligning left");var nn=1/0;dn.selection.each(function(he){he instanceof go.Link||(nn=Math.min(he.position.x,nn))}),dn.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(nn,he.position.y))}),dn.commitTransaction("aligning left")},Ai.prototype.alignRight=function(){var dn=this.diagram;dn.startTransaction("aligning right");var nn=-1/0;dn.selection.each(function(he){if(!(he instanceof go.Link)){var Un=he.actualBounds.x+he.actualBounds.width;nn=Math.max(Un,nn)}}),dn.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(nn-he.actualBounds.width,he.position.y))}),dn.commitTransaction("aligning right")},Ai.prototype.alignTop=function(){var dn=this.diagram;dn.startTransaction("alignTop");var nn=1/0;dn.selection.each(function(he){he instanceof go.Link||(nn=Math.min(he.position.y,nn))}),dn.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.position.x,nn))}),dn.commitTransaction("alignTop")},Ai.prototype.alignBottom=function(){var dn=this.diagram;dn.startTransaction("aligning bottom");var nn=-1/0;dn.selection.each(function(he){if(!(he instanceof go.Link)){var Un=he.actualBounds.y+he.actualBounds.height;nn=Math.max(Un,nn)}}),dn.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.actualBounds.x,nn-he.actualBounds.height))}),dn.commitTransaction("aligning bottom")},Ai.prototype.alignCenterX=function(){var dn=this.diagram,nn=dn.selection.first();if(nn){dn.startTransaction("aligning Center X");var he=nn.actualBounds.x+nn.actualBounds.width/2;dn.selection.each(function(Un){Un instanceof go.Link||Un.move(new go.Point(he-Un.actualBounds.width/2,Un.actualBounds.y))}),dn.commitTransaction("aligning Center X")}},Ai.prototype.alignCenterY=function(){var dn=this.diagram,nn=dn.selection.first();if(nn){dn.startTransaction("aligning Center Y");var he=nn.actualBounds.y+nn.actualBounds.height/2;dn.selection.each(function(Un){Un instanceof go.Link||Un.move(new go.Point(Un.actualBounds.x,he-Un.actualBounds.height/2))}),dn.commitTransaction("aligning Center Y")}},Ai.prototype.alignColumn=function(dn){var nn=this.diagram;nn.startTransaction("align Column"),dn===void 0&&(dn=0),dn=parseFloat(dn);var he=new Array;nn.selection.each(function(qe){qe instanceof go.Link||he.push(qe)});for(var Un=0;Un<he.length-1;Un++){var Yn=he[Un],Qe=Yn.actualBounds.y+Yn.actualBounds.height+dn,ye=he[Un+1];ye.move(new go.Point(Yn.actualBounds.x,Qe))}nn.commitTransaction("align Column")},Ai.prototype.alignRow=function(dn){dn===void 0&&(dn=0),dn=parseFloat(dn);var nn=this.diagram;nn.startTransaction("align Row");var he=new Array;nn.selection.each(function(qe){qe instanceof go.Link||he.push(qe)});for(var Un=0;Un<he.length-1;Un++){var Yn=he[Un],Qe=Yn.actualBounds.x+Yn.actualBounds.width+dn,ye=he[Un+1];ye.move(new go.Point(Qe,Yn.actualBounds.y))}nn.commitTransaction("align Row")},Ai.prototype.canRotate=function(dn){var nn=this.diagram;return!(nn===null||nn.isReadOnly||nn.isModelReadOnly||nn.selection.count<1)},Ai.prototype.rotate=function(dn){dn===void 0&&(dn=90);var nn=this.diagram;nn.startTransaction("rotate "+dn.toString());var nn=this.diagram;nn.selection.each(function(he){he instanceof go.Link||he instanceof go.Group||(he.angle+=dn)}),nn.commitTransaction("rotate "+dn.toString())},Ai.prototype.pullToFront=function(){var dn=this.diagram;dn.startTransaction("pullToFront");var nn=new go.Map;dn.selection.each(function(he){nn.set(he.layer,0)}),nn.iteratorKeys.each(function(he){var Un=0;he.parts.each(function(Yn){if(!Yn.isSelected){var Qe=Yn.zOrder;isNaN(Qe)?Yn.zOrder=0:Un=Math.max(Un,Qe)}}),nn.set(he,Un)}),dn.selection.each(function(he){Ai._assignZOrder(he,nn.get(he.layer)+1)}),dn.commitTransaction("pullToFront")},Ai.prototype.pushToBack=function(){var dn=this.diagram;dn.startTransaction("pushToBack");var nn=new go.Map;dn.selection.each(function(he){nn.set(he.layer,0)}),nn.iteratorKeys.each(function(he){var Un=0;he.parts.each(function(Yn){if(!Yn.isSelected){var Qe=Yn.zOrder;isNaN(Qe)?Yn.zOrder=0:Un=Math.min(Un,Qe)}}),nn.set(he,Un)}),dn.selection.each(function(he){Ai._assignZOrder(he,nn.get(he.layer)-1-Ai._findGroupDepth(he))}),dn.commitTransaction("pushToBack")},Ai._assignZOrder=function(dn,nn,he){he===void 0&&(he=dn),dn.layer===he.layer&&(dn.zOrder=nn),dn instanceof go.Group&&dn.memberParts.each(function(Un){Ai._assignZOrder(Un,nn+1,he)})},Ai._findGroupDepth=function(dn){if(dn instanceof go.Group){var nn=0;return dn.memberParts.each(function(he){nn=Math.max(nn,Ai._findGroupDepth(he))}),nn+1}else return 0},Ai.prototype.doKeyDown=function(){var dn=this.diagram;if(dn!==null){var nn=dn.lastInput;if(nn.key==="Up"||nn.key==="Down"||nn.key==="Left"||nn.key==="Right"){var he=this.arrowKeyBehavior;if(he==="none")return;if(he==="select"){this._arrowKeySelect();return}else if(he==="move"){this._arrowKeyMove();return}else if(he==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ai.prototype._getAllParts=function(){var dn=new Array;return this.diagram.nodes.each(function(nn){dn.push(nn)}),this.diagram.parts.each(function(nn){dn.push(nn)}),dn},Ai.prototype._arrowKeyMove=function(){var dn=this.diagram,nn=dn.lastInput,he=0,Un=0;if(nn.control||nn.meta)he=1,Un=1;else if(dn.grid!==null){var Yn=dn.grid.gridCellSize;Un=Yn.width,he=Yn.height}dn.startTransaction("arrowKeyMove"),dn.selection.each(function(Qe){nn.key==="Up"?Qe.move(new go.Point(Qe.actualBounds.x,Qe.actualBounds.y-he)):nn.key==="Down"?Qe.move(new go.Point(Qe.actualBounds.x,Qe.actualBounds.y+he)):nn.key==="Left"?Qe.move(new go.Point(Qe.actualBounds.x-Un,Qe.actualBounds.y)):nn.key==="Right"&&Qe.move(new go.Point(Qe.actualBounds.x+Un,Qe.actualBounds.y))}),dn.commitTransaction("arrowKeyMove")},Ai.prototype._arrowKeySelect=function(){var dn=this.diagram,nn=dn.lastInput,he=null;nn.key==="Up"?he=this._findNearestPartTowards(270):nn.key==="Down"?he=this._findNearestPartTowards(90):nn.key==="Left"?he=this._findNearestPartTowards(180):nn.key==="Right"&&(he=this._findNearestPartTowards(0)),he!==null&&(nn.shift?he.isSelected=!0:nn.control||nn.meta?he.isSelected=!he.isSelected:dn.select(he))},Ai.prototype._findNearestPartTowards=function(dn){var nn=this.diagram.selection.first();if(nn===null)return null;for(var he=nn.actualBounds.center,Un=this._getAllParts(),Yn=1/0,Qe=nn,ye=0;ye<Un.length;ye++){var qe=Un[ye];if(qe!==nn&&qe.canSelect()){var Mn=qe.actualBounds.center,li=he.directionPoint(Mn),Si=this._angleCloseness(li,dn);if(Si<=45){var Fe=he.distanceSquaredPoint(Mn);Fe*=1+Math.sin(Si*Math.PI/180),Fe<Yn&&(Yn=Fe,Qe=qe)}}}return Qe},Ai.prototype._angleCloseness=function(dn,nn){return Math.min(Math.abs(nn-dn),Math.min(Math.abs(nn+360-dn),Math.abs(nn-360-dn)))},Ai.prototype._arrowKeyTree=function(){var dn=this.diagram,nn=dn.selection.first();if(nn instanceof go.Node){var he=dn.lastInput;if(he.key==="Right"){if(!nn.isTreeLeaf)if(!nn.isTreeExpanded)dn.commandHandler.canExpandTree(nn)&&dn.commandHandler.expandTree(nn);else{var Un=this._sortTreeChildrenByY(nn).first();Un!==null&&dn.select(Un)}}else if(he.key==="Left")if(!nn.isTreeLeaf&&nn.isTreeExpanded)dn.commandHandler.canCollapseTree(nn)&&dn.commandHandler.collapseTree(nn);else{var Yn=nn.findTreeParentNode();Yn!==null&&dn.select(Yn)}else if(he.key==="Up"){var Yn=nn.findTreeParentNode();if(Yn!==null){var Qe=this._sortTreeChildrenByY(Yn),ye=Qe.indexOf(nn);if(ye>0){for(var qe=Qe.elt(ye-1);qe!==null&&qe.isTreeExpanded&&!qe.isTreeLeaf;){var Mn=this._sortTreeChildrenByY(qe);qe=Mn.last()}qe!==null&&dn.select(qe)}else dn.select(Yn)}}else if(he.key==="Down")if(nn.isTreeExpanded&&!nn.isTreeLeaf){var Un=this._sortTreeChildrenByY(nn).first();Un!==null&&dn.select(Un)}else for(;nn!==null;){var Yn=nn.findTreeParentNode();if(Yn===null)break;var Qe=this._sortTreeChildrenByY(Yn),ye=Qe.indexOf(nn);if(ye<Qe.length-1){dn.select(Qe.elt(ye+1));break}else nn=Yn}var li=dn.selection.first();li!==null&&dn.scrollToRect(li.actualBounds)}},Ai.prototype._sortTreeChildrenByY=function(dn){var nn=new go.List().addAll(dn.findTreeChildrenNodes());return nn.sort(function(he,Un){var Yn=he.location,Qe=Un.location;return Yn.y<Qe.y?-1:Yn.y>Qe.y?1:Yn.x<Qe.x?-1:Yn.x>Qe.x?1:0}),nn},Ai.prototype.copyToClipboard=function(dn){go.CommandHandler.prototype.copyToClipboard.call(this,dn),this._lastPasteOffset.set(this.pasteOffset)},Ai.prototype.pasteFromClipboard=function(){var dn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(dn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),dn},Object.defineProperty(Ai.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(dn){if(dn!=="move"&&dn!=="select"&&dn!=="scroll"&&dn!=="tree"&&dn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+dn);this._arrowKeyBehavior=dn}}),Object.defineProperty(Ai.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(dn){if(!(dn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+dn);this._pasteOffset.set(dn)}});var Ti=Ai,ue=Yt(29277),Tt=Yt(43604),Ct=Yt(7660),zt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ht=Yt(73898),Mt=Yt(59301),be=(dn,nn,he)=>new Promise((Un,Yn)=>{var Qe=Mn=>{try{qe(he.next(Mn))}catch(li){Yn(li)}},ye=Mn=>{try{qe(he.throw(Mn))}catch(li){Yn(li)}},qe=Mn=>Mn.done?Un(Mn.value):Promise.resolve(Mn.value).then(Qe,ye);qe((he=he.apply(dn,nn)).next())});function Ge({onCancel:dn,callback:nn}){let he=(0,Kt.useRef)(),Un=(0,Kt.useRef)(),Yn=(0,Kt.useRef)(),Qe=(0,Kt.useRef)(!1);const ye=(0,Kt.useRef)(!1),[qe,Mn]=(0,Kt.useState)(0);function li(){const Fe=Ie.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"};he.current=new Ie.S0(Un.current,{padding:20,grid:Fe(Ie.s_,"Grid",Fe(Ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Fe(Ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Gi=>{var wr=Gi.diagram.commandHandler.addTopLevelParts(Gi.diagram.selection,!0);wr||Gi.diagram.currentTool.doCancel()},commandHandler:Fe(Ti),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Gi=>{var wr=Gi.subject;wr.location=wr.location.copy().snapToGridPoint(Gi.diagram.grid.gridOrigin,Gi.diagram.grid.gridCellSize),setTimeout(()=>{Gi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Gi=>{var wr=Gi.subject;setTimeout(()=>{Gi.diagram.commandHandler.editTextBlock()})},LinkRelinked:Gi=>{var wr=Gi.parameter.part;wr.invalidateConnectedLinks();var Dr=Gi.subject;Gi.diagram.toolManager.linkingTool.isForwards?Dr.toNode.invalidateConnectedLinks():Dr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),he.current.nodeTemplate=Fe(Ie.NB,"Auto",{locationSpot:Ie.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ie.$u(120,60),minSize:new Ie.$u(40,40),resizable:!0,resizeCellSize:new Ie.$u(10,10),rotatable:!0},new Ie.KX("location","loc",Ie.E9.parse).makeTwoWay(Ie.E9.stringify),new Ie.KX("desiredSize","size",Ie.$u.parse).makeTwoWay(Ie.$u.stringify),Fe(Ie.bn,{name:"SHAPE",fill:Qn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ie.z6.AllSides,toSpot:Ie.z6.AllSides},new Ie.KX("figure"),new Ie.KX("fill"),new Ie.KX("stroke","borderColor"),new Ie.KX("strokeWidth","thickness"),new Ie.KX("strokeDashArray","dash")),Fe(Ie.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Fe(Ie.al,{margin:1,textAlign:"center",overflow:Ie.al.OverflowEllipsis,editable:!0},new Ie.KX("text").makeTwoWay(),new Ie.KX("stroke","color"))),he.current.nodeTemplate.toolTip=Fe("ToolTip",Fe(Ie.s_,"Vertical",{maxSize:new Ie.$u(200,NaN)},Fe(Ie.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ie.KX("text")),Fe(Ie.al,{font:"10pt sans-serif",textAlign:"center"},new Ie.KX("text","details"))));function Ni(Gi,wr){var Dr=(Mr,ao)=>{Mr.handled=!0,Mr.diagram.model.commit(Uo=>{var lo=ao.part.adornedPart,$r=new Ie.E9().setRectSpot(lo.actualBounds,Gi);$r.subtract(lo.location),$r.scale(2,2),$r.x+=Math.sign($r.x)*130,$r.y+=Math.sign($r.y)*130,$r.add(lo.location),$r.snapToGridPoint(Mr.diagram.grid.gridOrigin,Mr.diagram.grid.gridCellSize);var br=Uo.copyNodeData(lo.data);Uo.setGroupKeyForNodeData(br,Uo.getGroupKeyForNodeData(lo.data)),Uo.addNodeData(br);var ni={from:lo.key,to:Uo.getKeyForNodeData(br)};Uo.addLinkData(ni);var So=Mr.diagram.findNodeForData(br);So.location=$r,Mr.diagram.select(So),setTimeout(()=>{Mr.diagram.commandHandler.editTextBlock()},20)})};return Fe(Ie.bn,{figure:wr,alignment:Gi,alignmentFocus:Gi.opposite(),width:Gi.equals(Ie.z6.Top)||Gi.equals(Ie.z6.Bottom)?25:18,height:Gi.equals(Ie.z6.Top)||Gi.equals(Ie.z6.Bottom)?18:25,fill:"orange",stroke:Qn.white,strokeWidth:4,mouseEnter:(Mr,ao)=>ao.fill="dodgerblue",mouseLeave:(Mr,ao)=>ao.fill="orange",isActionable:!0,click:Dr,contextClick:Dr})}function lr(Gi){return Fe(Ie.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:(wr,Dr)=>Dr.fill="dodgerblue",mouseLeave:(wr,Dr)=>Dr.fill="orange",click:(wr,Dr)=>{wr.diagram.commandHandler.showContextMenu(Dr.part.adornedPart)}},Gi||{})}he.current.nodeTemplate.selectionAdornmentTemplate=Fe(Ie.uz,"Spot",Fe(Ie.Vm,{padding:10}),Ni(Ie.z6.Top,"TriangleUp"),Ni(Ie.z6.Left,"TriangleLeft"),Ni(Ie.z6.Right,"TriangleRight"),Ni(Ie.z6.Bottom,"TriangleDown"),lr({alignment:new Ie.z6(.75,0)}));function wn(Gi,wr){return(Dr,Mr)=>{Dr.handled=!0,Dr.diagram.model.commit(ao=>{ao.set(Mr.part.adornedPart.data,Gi,wr)})}}function Jn(Gi,wr){return wr||(wr="color"),Fe(Ie.bn,{width:16,height:16,stroke:"lightgray",fill:Gi,margin:1,background:"transparent",mouseEnter:(Dr,Mr)=>Mr.stroke="dodgerblue",mouseLeave:(Dr,Mr)=>Mr.stroke="lightgray",click:wn(wr,Gi),contextClick:wn(wr,Gi)})}function Br(){return[Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",Jn(Qn.white,"fill"),Jn(Qn.beige,"fill"),Jn(Qn.extralightblue,"fill"),Jn(Qn.extralightred,"fill"))),Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",Jn(Qn.lightgray,"fill"),Jn(Qn.lightgreen,"fill"),Jn(Qn.lightblue,"fill"),Jn(Qn.lightred,"fill")))]}function vr(){return[Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",Jn(Qn.black),Jn(Qn.green),Jn(Qn.blue),Jn(Qn.red))),Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",Jn(Qn.white),Jn(Qn.magenta),Jn(Qn.purple),Jn(Qn.orange)))]}function Tr(Gi,wr){return wr||(wr="thickness"),Fe(Ie.bn,"LineH",{width:16,height:16,strokeWidth:Gi,margin:1,background:"transparent",mouseEnter:(Dr,Mr)=>Mr.background="dodgerblue",mouseLeave:(Dr,Mr)=>Mr.background="transparent",click:wn(wr,Gi),contextClick:wn(wr,Gi)})}function nr(Gi,wr){return wr||(wr="dash"),Fe(Ie.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Gi,margin:1,background:"transparent",mouseEnter:(Dr,Mr)=>Mr.background="dodgerblue",mouseLeave:(Dr,Mr)=>Mr.background="transparent",click:wn(wr,Gi),contextClick:wn(wr,Gi)})}function yr(){return[Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",Tr(1),Tr(2),Tr(3),Tr(4))),Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",nr(null),nr([2,4]),nr([4,4])))]}function ar(Gi,wr){return wr||(wr="figure"),Fe(Ie.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Gi,margin:1,background:"transparent",mouseEnter:(Dr,Mr)=>Mr.fill="dodgerblue",mouseLeave:(Dr,Mr)=>Mr.fill="lightgray",click:wn(wr,Gi),contextClick:wn(wr,Gi)})}he.current.nodeTemplate.contextMenu=Fe("ContextMenu",Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",ar("Rectangle"),ar("RoundedRectangle"),ar("Ellipse"),ar("Diamond"))),Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",ar("Parallelogram2"),ar("ManualOperation"),ar("Procedure"),ar("Cylinder1"))),Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",ar("Terminator"),ar("CreateRequest"),ar("Document"),ar("TriangleDown"))),Br(),vr(),yr()),he.current.groupTemplate=Fe(Ie.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ie.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Gi,wr)=>{var Dr=wr.addMembers(wr.diagram.selection,!0);Dr||wr.diagram.currentTool.doCancel()},avoidable:!1},new Ie.KX("location","loc",Ie.E9.parse).makeTwoWay(Ie.E9.stringify),Fe(Ie.s_,"Auto",{name:"BODY"},Fe(Ie.bn,{parameter1:10,fill:Qn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ie.z6.AllSides,toSpot:Ie.z6.AllSides},new Ie.KX("fill"),new Ie.KX("stroke","color"),new Ie.KX("strokeWidth","thickness"),new Ie.KX("strokeDashArray","dash")),Fe(Ie.Vm,{background:"transparent",margin:20})),Fe(Ie.al,{alignment:Ie.z6.Top,alignmentFocus:Ie.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ie.KX("text"),new Ie.KX("stroke","color"))),he.current.groupTemplate.selectionAdornmentTemplate=Fe(Ie.uz,"Spot",Fe(Ie.s_,"Auto",Fe(Ie.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Fe(Ie.Vm,{margin:1.5})),lr({alignment:Ie.z6.TopRight,alignmentFocus:Ie.z6.BottomRight})),he.current.groupTemplate.contextMenu=Fe("ContextMenu",Br(),vr(),yr()),he.current.linkTemplate=Fe(Ie.rU,{layerName:"Foreground",routing:Ie.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ie.KX("fromSpot","fromSpot",Ie.z6.parse),new Ie.KX("toSpot","toSpot",Ie.z6.parse),new Ie.KX("fromShortLength","dir",Gi=>Gi>=1?10:0),new Ie.KX("toShortLength","dir",Gi=>Gi>=1?10:0),new Ie.KX("points").makeTwoWay(),Fe(Ie.bn,{strokeWidth:2},new Ie.KX("stroke","color"),new Ie.KX("strokeWidth","thickness"),new Ie.KX("strokeDashArray","dash")),Fe(Ie.bn,{segmentIndex:0,segmentOffset:new Ie.E9(15,0),segmentOrientation:Ie.rU.OrientAlong,alignmentFocus:Ie.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ie.KX("fill","color"),new Ie.KX("visible","dir",Gi=>Gi===1)),Fe(Ie.bn,{segmentIndex:-1,segmentOffset:new Ie.E9(-10,6),segmentOrientation:Ie.rU.OrientPlus90,alignmentFocus:Ie.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ie.KX("fill","color"),new Ie.KX("visible","dir",Gi=>Gi>=1),new Ie.KX("width","thickness",Gi=>7+3*Gi),new Ie.KX("height","thickness",Gi=>7+3*Gi),new Ie.KX("segmentOffset","thickness",Gi=>new Ie.E9(-15,4+1.5*Gi))),Fe(Ie.bn,{segmentIndex:0,segmentOffset:new Ie.E9(15,-6),segmentOrientation:Ie.rU.OrientMinus90,alignmentFocus:Ie.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ie.KX("fill","color"),new Ie.KX("visible","dir",Gi=>Gi===2),new Ie.KX("width","thickness",Gi=>7+3*Gi),new Ie.KX("height","thickness",Gi=>7+3*Gi),new Ie.KX("segmentOffset","thickness",Gi=>new Ie.E9(-15,4+1.5*Gi))),Fe(Ie.al,{alignmentFocus:new Ie.z6(0,1,-4,0),editable:!0},new Ie.KX("text").makeTwoWay(),new Ie.KX("stroke","color"))),he.current.linkTemplate.selectionAdornmentTemplate=Fe(Ie.uz,Fe(Ie.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Er(2)},new Ie.KX("pathPattern","thickness",Er)),lr({alignmentFocus:new Ie.z6(0,0,-6,-4)}));function Er(Gi){return Fe(Ie.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Gi+4).toString()+" H3"})}function co(Gi){var wr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Gi===0?wr="M0 0 M16 16 M0 8 L16 8":Gi===2&&(wr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Fe(Ie.bn,{geometryString:wr,margin:2,background:"transparent",mouseEnter:(Dr,Mr)=>Mr.background="dodgerblue",mouseLeave:(Dr,Mr)=>Mr.background="transparent",click:wn("dir",Gi),contextClick:wn("dir",Gi)})}function jo(Gi){var wr=(Dr,Mr)=>{Dr.handled=!0,Dr.diagram.model.commit(ao=>{var Uo=Mr.part.adornedPart;ao.set(Uo.data,Gi?"toSpot":"fromSpot",Ie.z6.stringify(Ie.z6.AllSides)),(Gi?Uo.toNode:Uo.fromNode).invalidateConnectedLinks()})};return Fe(Ie.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Dr,Mr)=>Mr.background="dodgerblue",mouseLeave:(Dr,Mr)=>Mr.background="transparent",click:wr,contextClick:wr})}function Xn(Gi,wr){var Dr=0,Mr=Ie.z6.RightSide;Gi.equals(Ie.z6.Top)?(Dr=270,Mr=Ie.z6.TopSide):Gi.equals(Ie.z6.Left)?(Dr=180,Mr=Ie.z6.LeftSide):Gi.equals(Ie.z6.Bottom)&&(Dr=90,Mr=Ie.z6.BottomSide),wr||(Dr-=180);var ao=(Uo,lo)=>{Uo.handled=!0,Uo.diagram.model.commit($r=>{var br=lo.part.adornedPart;$r.set(br.data,wr?"toSpot":"fromSpot",Ie.z6.stringify(Mr)),(wr?br.toNode:br.fromNode).invalidateConnectedLinks()})};return Fe(Ie.bn,{alignment:Gi,alignmentFocus:Gi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Dr,background:"transparent",mouseEnter:(Uo,lo)=>lo.background="dodgerblue",mouseLeave:(Uo,lo)=>lo.background="transparent",click:ao,contextClick:ao})}he.current.linkTemplate.contextMenu=Fe("ContextMenu",vr(),yr(),Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",co(0),co(1),co(2))),Fe("ContextMenuButton",Fe(Ie.s_,"Horizontal",Fe(Ie.s_,"Spot",jo(!1),Xn(Ie.z6.Top,!1),Xn(Ie.z6.Left,!1),Xn(Ie.z6.Right,!1),Xn(Ie.z6.Bottom,!1)),Fe(Ie.s_,"Spot",{margin:new Ie.Zt(0,0,0,2)},jo(!0),Xn(Ie.z6.Top,!0),Xn(Ie.z6.Left,!0),Xn(Ie.z6.Right,!0),Xn(Ie.z6.Bottom,!0)))));const Oo=`{ "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 as=["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 Eo(Gi){return console.log("shapeName:",Gi),as.indexOf(Gi)>=0}var zn=new Ie.YI(Yn.current,{maxSelectionCount:1,linkTemplate:Fe(Ie.rU,{locationSpot:Ie.z6.Center,selectionAdornmentTemplate:Fe(Ie.uz,"Link",{locationSpot:Ie.z6.Center},Fe(Ie.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Fe(Ie.bn,{toArrow:"Standard",stroke:null}))},{routing:Ie.rU.AvoidsNodes,curve:Ie.rU.JumpOver,corner:5,toShortLength:4},new Ie.KX("points"),Fe(Ie.bn,{isPanelMain:!0,strokeWidth:2}),Fe(Ie.bn,{toArrow:"Standard",stroke:null})),model:new Ie.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ie.bn.getFigureGenerators().toArray().map(Gi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Gi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return he.current.addDiagramListener("TextEdited",function(Gi){var wr;const Dr=Gi.subject.part;var Mr=(wr=document.activeElement)==null?void 0:wr.value;typeof Mr=="string"&&Mr.trim()===""&&he.current.model.commit(function(ao){ao.set(Dr.data,"text","\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}),zn.nodeTemplate=Fe(Ie.NB,"Auto",{locationSpot:Ie.z6.Center},new Ie.KX("location","location",Ie.E9.parse).makeTwoWay(Ie.E9.stringify),Fe(Ie.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 Ie.KX("stroke").makeTwoWay(),new Ie.KX("fill").makeTwoWay(),new Ie.KX("figure")),Fe(Ie.al,{margin:new Ie.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ie.$u(16,16),maxSize:new Ie.$u(10,NaN),textAlign:"center",editable:!0},new Ie.KX("key").makeTwoWay())),setTimeout(()=>{he.current.grid=Fe(Ie.s_,"Grid",Fe(Ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Fe(Ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),he.current.grid.visible=!0,he.current.grid.gridCellStroke="darkgray",he.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=he.current,he.current}const Si=()=>be(this,null,function*(){var Fe,Qn=he.current.makeImage();const Ni=yield(0,Ct.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Qn.src,file_data:JSON.stringify({login:(Fe=(0,Ht.eY)())==null?void 0:Fe.login,data:JSON.parse(he.current.model.toJson())})}});nn({src:Ni.url})});return(0,Kt.useEffect)(()=>(setTimeout(()=>{li()},500),Mn(qe+1),()=>{he.current=null}),[]),Mt.createElement("div",{ref:ye,className:Qe.current?`${zt.maxH60} body-overflow-initial`:"body-overflow-initial"},Mt.createElement(In.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!qe,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Mt.createElement(Wn.Z,null,Mt.createElement(Tt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Mt.createElement(Tt.Z,{onClick:()=>{var Fe,Qn,Ni=he.current.selection.first();if(Qe.current=!Qe.current,document.activeElement&&Ni){let lr=(Qn=(Fe=document.activeElement)==null?void 0:Fe.value)==null?void 0:Qn.trim();typeof lr=="string"&&he.current.model.commit(function(wn){wn.set(Ni.data,"text",lr||"\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}Mn(qe+1)}},Mt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:dn},Mt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:zt.flowChartWrp},Mt.createElement("div",{style:{display:"flex",height:"100%"}},Mt.createElement("div",{style:{width:"300px",height:"100%"}},Mt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Mt.createElement("div",{style:{height:"calc(100% - 50px)"},className:zt.myPaletteDiv,ref:Yn})),Mt.createElement("div",{style:{flex:1,position:"relative"}},Mt.createElement("div",{ref:Un,style:{height:"80vh"}}))),Mt.createElement("div",{className:"tr"},Mt.createElement(De.ZP,{size:"large",onClick:Si,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var vn=Ge,Fn=Yt(5112),An=Yt(5871);const kn=Fn.ZP.Group,Bn={margin:"0 8px"};var Vn=({callback:dn,onCancel:nn})=>{function he(Un){dn(Un)}return Kt.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:he},Kt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Kt.createElement("span",{style:Bn},"\u5355\u5143\u683C\u6570\uFF1A"),Kt.createElement("span",{style:Bn},"\u884C\u6570"),Kt.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Kt.createElement(An.Z,null)),Kt.createElement("span",{style:Bn},"\u5217\u6570"),Kt.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Kt.createElement(An.Z,null))),Kt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Kt.createElement("span",{style:Bn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Kt.createElement(ce.default.Item,{name:"align"},Kt.createElement(kn,null,Kt.createElement(Fn.ZP,{value:"default"},Kt.createElement("i",{className:"fa fa-align-justify"})),Kt.createElement(Fn.ZP,{value:"left"},Kt.createElement("i",{className:"fa fa-align-left"})),Kt.createElement(Fn.ZP,{value:"center"},Kt.createElement("i",{className:"fa fa-align-center"})),Kt.createElement(Fn.ZP,{value:"right"},Kt.createElement("i",{className:"fa fa-align-right"}))))),Kt.createElement("div",{className:"flex-container flex-end"},Kt.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Kt.createElement(De.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},bi=Yt(78673),Pn=Yt(5559),an=Yt.n(Pn),Ui=(0,Kt.forwardRef)(({use3d:dn,width:nn,height:he,callback:Un,showSaveButton:Yn},Qe)=>{const ye=(0,Kt.useRef)(),qe=(0,Kt.useRef)(),[Mn,li]=(0,Kt.useState)(!1),Si=(0,Kt.useRef)({id:ye,appName:"graphing",width:nn||1e3,height:he||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Kt.useEffect)(()=>{qe.current=new(an())(Si.current,!0),window.onload=function(){qe.current.inject("applet_container")}},[]);const Fe=()=>{var Qn=window.ggbApplet.getPNGBase64(1,!0,72);return Un&&Un(Qn),Qn};return(0,Kt.useEffect)(()=>{Si.current.appName=Mn?"3D":"graphing",qe.current.inject("applet_container")},[Mn]),(0,Kt.useEffect)(()=>{li(dn)},[dn]),(0,Kt.useImperativeHandle)(Qe,()=>({getImgData:Fe})),Kt.createElement(Kt.Fragment,null,Kt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ye}),Kt.createElement(Wn.Z,{align:"middle"},Kt.createElement(Tt.Z,{flex:1},Kt.createElement(bi.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Mn,onChange:Qn=>li(Qn)})),Kt.createElement(Tt.Z,null,Kt.createElement(De.ZP,{size:"large",onClick:Fe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Pi=Yt(46531),sr=Yt(8591);const Or="link",Ao="upload-image",po="add-flowchart",Zr="draw-image",Ho="add-flowchart",Co="code-block",Jr="add-table",hr="------------",to={default:hr,left:`:${hr}`,center:`:${hr}:`,right:`${hr}:`};var oo=Yt(50505);function Jo(){}let Ns=0;const ys=1e4,Xs="\u2581",vo="@\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`,os=["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 _s(dn){return/^\d+$/.test(dn)?`${dn}px`:dn}const ca=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",fa={[ca+"-B"]:"bold",[ca+"-I"]:"italic"},Pr={[Or]:"\u6DFB\u52A0\u94FE\u63A5",[Co]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ao]:"\u6DFB\u52A0\u56FE\u7247",[Zr]:"\u6DFB\u52A0\u753B\u56FE",[po]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Jr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Fr=({defaultValue:dn="",onChange:nn,width:he="100%",height:Un=400,miniToolbar:Yn=!1,isFocus:Qe=!1,watch:ye,insertTemp:qe,mode:Mn="markdown",id:li="markdown-editor-id",showResizeBar:Si=!1,noStorage:Fe=!1,showNullButton:Qn=!1,showNullProgramButton:Ni=!1,hidetoolBar:lr=!1,fullScreen:wn=!1,onBlur:Jn,onCMBeforeChange:Br,onFullScreen:vr,className:Tr="",disablePaste:nr=!1,disabled:yr=!1,disabledFill:ar=!1,placeholder:Er="",values:co="",extraUse:jo})=>{const[Xn,Oo]=(0,Kt.useState)(null),[as,Eo]=(0,Kt.useState)(dn),[zn,Gi]=(0,Kt.useState)(ye),[wr,Dr]=(0,Kt.useState)(wn),[Mr,ao]=(0,Kt.useState)(""),[Uo,lo]=(0,Kt.useState)(0),[$r,br]=(0,Kt.useState)(Un),[ni,So]=(0,Kt.useState)(!1),[qn,Go]=(0,Kt.useState)(0),[Ds,qo]=(0,Kt.useState)(0),ea=(0,Kt.useRef)(),Bs=(0,Kt.useRef)(),io=(0,Kt.useRef)(),uo=(0,Kt.useRef)();(0,Kt.useEffect)(()=>{const Rr=window.scrollY||window.pageYOffset;Eo(co),Xn==null||Xn.setValue(co),window.scrollTo(0,Rr)},[co]),(0,Kt.useEffect)(()=>{vr==null||vr(wr)},[wr]),(0,Kt.useEffect)(()=>{if(ea.current){let Rr=function(Li,eo){var cs;if(nr){eo.preventDefault();return}const Es=eo.clipboardData;if(Es){const Rs=Es.types.toString(),ho=Es.items;if(Rs==="Files"||Es.types.indexOf("Files")>-1){if(eo.preventDefault(),Mn=="stex")return;try{let Cs=ho[1];((cs=ho[0])==null?void 0:cs.kind)==="file"&&(Cs=ho[0]);const Wa=Cs.getAsFile(),_l=Wa.name.split(".").pop();(0,cn.I)(Wa,ja=>{var ns,Nn,ua;ja.id?((ns=Wa==null?void 0:Wa.type)==null?void 0:ns.indexOf("image"))>-1?jr.replaceSelection(`<img width="100%" src="/api/attachments/${ja.id}?type=${ja.content_type})" alt="" />`):((Nn=Wa==null?void 0:Wa.type)==null?void 0:Nn.indexOf("video"))>-1?jr.replaceSelection(`<video width="100%" controls src="/api/attachments/${ja.id}"></video>`):((ua=Wa==null?void 0:Wa.type)==null?void 0:ua.indexOf("pdf"))>-1?jr.replaceSelection(`<a href="/api/attachments/${ja.id}?type=${Wa.type}&disposition=inline" target="_blank">${Wa.name}</a>`):os.includes(_l)?jr.replaceSelection(`<a href="/api/attachments/${ja.id}?type=office&disposition=inline" target="_blank">${Wa.name}</a>`):jr.replaceSelection(`[${Wa.name}](/api/attachments/${ja.id}?type=${ja.content_type})`):(ja==null?void 0:ja.status)===401&&(document.location.href="/user/login")})}catch(Cs){sr.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const jr=Te().fromTextArea(ea.current,{mode:Mn,lineNumbers:!Yn,lineWrapping:!0,value:dn,autoCloseTags:!0,autoCloseBrackets:!0});return jr.on("keyup",function(Li,eo){eo.keyCode===8&&(Li.getValue()==""?jr.setOption("placeholder",Er):jr.setOption("placeholder",null))}),jr.on("keydown",function(Li,eo){if(eo.keyCode===8){var cs=Qo(Li);cs&&eo.preventDefault()}}),Qe&&jr.focus(),jr.on("paste",Rr),yr&&jr.on("beforeChange",function(Li,eo){(eo.origin==="paste"||eo.origin==="+input")&&eo.cancel()}),Oo(jr),()=>{jr.off("paste",Rr)}}},[]);const Yo=(0,Kt.useCallback)(()=>{if(Bs.current)try{}catch(Rr){console.log(Rr,"---- to set md editor body height")}},[$r,Bs,wr]);(0,Kt.useEffect)(()=>{function Rr(){let jr=new xn.Z(Li=>{for(let eo of Li)(eo.target.offsetHeight>0||eo.target.offsetWidth>0)&&(Yo(),Xn.setSize("100%","100%"),Xn.refresh())});return jr.observe(ea.current.parentElement),jr}if(Xn){const jr=Rr();return()=>{var Li,eo;(Li=ea.current)!=null&&Li.parentElement&&jr.unobserve((eo=ea.current)==null?void 0:eo.parentElement)}}},[Xn,Yo]),(0,Kt.useEffect)(()=>{if(Xn){let Rr=[];for(const[jr,Li]of Object.entries(fa)){let eo={[jr]:()=>{Zi(Li)}};Rr.push(eo),Xn.addKeyMap(eo)}return()=>{for(let jr of Rr)Xn.removeKeyMap(jr)}}},[Xn]),(0,Kt.useEffect)(()=>{wn!==wr&&Dr(wn)},[wn]),(0,oo.Z)(()=>{if(!Fe&&Uo>0){let Rr=new Date().getTime(),jr=window.sessionStorage.getItem(li);Rr>=Uo+ys&&(!jr||jr!==as)&&(window.sessionStorage.setItem(li,as),So(!0))}},ys),(0,Kt.useEffect)(()=>{Gi(ye)},[Xn,ye]),(0,Kt.useEffect)(()=>{Xn&&Qe&&Xn.focus()},[Xn,Qe]),(0,Kt.useEffect)(()=>{if(zn&&Xn){let Rr=function(Li){let eo=Li.target;if(uo.current){let cs=eo.scrollTop/eo.scrollHeight;uo.current.scrollTop=uo.current.scrollHeight*cs}};const jr=Xn.getScrollerElement();return jr.addEventListener("scroll",Rr),()=>{jr.removeEventListener("scroll",Rr)}}},[Xn,zn]),(0,Kt.useEffect)(()=>{if(Xn&&Br){let Rr=function(jr,Li){Br(jr,Li)};return Xn.on("beforeChange",Rr),()=>{Xn.off("beforeChange",Rr)}}},[Xn,Br]),(0,Kt.useEffect)(()=>{if(Xn&&Jn){let Rr=function(){Jn(Xn.getValue())};return Xn.on("blur",Rr),()=>{Xn.off("blur",Rr)}}},[Xn,Jn]);function Qo(Rr,jr){var Li=Rr.getDoc(),eo=Li.getCursor(),cs=Li.getLine(eo.line),Es=cs.charAt(eo.ch-1),Rs=cs.lastIndexOf("@\u2581@",eo.ch),ho=cs.lastIndexOf("@\u2581\u2581@",eo.ch),Cs=Rs>ho?Rs:ho,Wa=Rs>ho?3:4;if(vo.indexOf(Es)===-1)return null;if(console.log("change1:",jr,Rr,cs,eo,Cs,Rs,ho,Es),Cs>=0&&eo.ch-Cs<5){var _l=Cs+Wa;return Li.replaceRange("",{line:eo.line,ch:Cs},{line:eo.line,ch:_l}),{line:eo.line,ch:_l}}return null}(0,Kt.useEffect)(()=>{if(Xn){let Rr=function(jr,Li){const eo=jr.getValue();Eo(eo),lo(new Date().getTime()),jr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nn&&(Ni?nn(eo,To(eo)):nn(eo))};return Xn.on("change",Rr),()=>{Xn.off("change",Rr)}}},[Xn,nn]),(0,Kt.useEffect)(()=>{if(Xn)if(dn==null)Xn.setValue(""),Eo("");else{const Rr=window.scrollY||window.pageYOffset;dn!==Xn.getValue()&&(Xn.setValue(dn),Eo(dn),Xn.setCursor(yr?1:Xn.lineCount(),0),window.scrollTo(0,Rr))}},[Xn,dn]);const Zi=(0,Kt.useCallback)(Rr=>{const jr=Xn.getCursor(),Li=Xn.getSelection();let eo=Li.split(`
|
|
|
`);switch(Rr){case"bold":return Xn.replaceSelection("**"+Li+"**"),Li===""&&Xn.setCursor(jr.line,jr.ch+2),Xn.focus();case"italic":return Xn.replaceSelection("*"+Li+"*"),Li===""&&Xn.setCursor(jr.line,jr.ch+1),Xn.focus();case"code":return Xn.replaceSelection("`"+Li+"`"),Li===""&&Xn.setCursor(jr.line,jr.ch+1),Xn.focus();case"inline-latex":return ao("inline-latex"),Xn.focus();case"latex":return Xn.replaceSelection("```latex\n"+Li+"\n```"),Xn.setCursor(jr.line+1,Li.length+1),Xn.focus();case"line-break":return Xn.replaceSelection(`<br/>
|
|
|
`),Xn.focus();case"list-ul":return Li===""?Xn.replaceSelection("- "+Li):Xn.replaceSelection(eo.map(cs=>cs===""?"":`- ${cs}`).join(`
|
|
|
`)),Xn.focus();case"list-ol":return Li===""?Xn.replaceSelection("1. "+Li):Xn.replaceSelection(eo.map((cs,Es)=>cs===""?"":`${Es+1}. ${cs}`).join(`
|
|
|
`)),Xn.focus();case"add-null-ch":return Li===""&&Xn.setCursor(jr.line,jr.ch),Xn.replaceSelection(Xs),Xn.focus();case"add-signal":return Li===""&&Xn.setCursor(jr.line,jr.ch),Xn.replaceSelection(jt),Xn.focus();case"add-multiple":return Li===""&&Xn.setCursor(jr.line,jr.ch),Xn.replaceSelection(vo),Xn.focus();case"inster-template-1":return Li===""&&Xn.setCursor(jr.line,jr.ch),Xn.replaceSelection(la),Xn.focus();case"eraser":return Xn.setValue(""),Xn.focus();case"trigger-watch":return Gi(!zn),Xn.focus();case"trigger-full-screen":return Dr(!wr),Xn.focus();case Or:ao(Or);return;case Co:ao(Co);return;case Ao:ao(Ao);return;case Zr:ao(Zr);return;case"maths-latex":ao("maths-latex");return;case po:ao(po);return;case Jr:ao(Jr);return;default:throw new Error}},[Xn,zn,wr]),oe=(0,Kt.useCallback)((Rr,jr)=>{var Li,eo,cs,Es,Rs,ho;switch(ao(""),Mr){case Or:const{title:ns,link:Nn}=Rr;return Xn.replaceSelection(`[${ns}](${Nn})`),Xn.focus();case Co:const{language:ua,content:Ac}=Rr;return Xn.replaceSelection(["```"+ua,Ac,"```"].join(`
|
|
|
`)),Xn.focus();case"maths-latex":for(var Cs=atob(Rr),Wa=new Uint8Array(Cs.length),_l=0;_l<Cs.length;_l++)Wa[_l]=Cs.charCodeAt(_l);var ja=new Blob([Wa],{type:"image/png"});(0,cn.I)(ja,Do=>{Do.id?Xn.replaceSelection(``):(Do==null?void 0:Do.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Xn.replaceSelection("`$$"+Rr+"$$`");break;case Ao:case Zr:case Ho:const{src:$l,alt:nA}=Rr,Va=jr,cc=(cs=(eo=(Li=Va==null?void 0:Va.name)==null?void 0:Li.split("."))==null?void 0:eo.pop)==null?void 0:cs.call(eo);return((Es=Va==null?void 0:Va.type)==null?void 0:Es.indexOf("image"))>-1||!(Va!=null&&Va.type)?Va.align||Va.width?Xn.replaceSelection(`<p style="text-align:${Va.align||"initial"}"><img width="${Va.width?Va.width+"%":"initial"}" src="${$l}" alt="${nA||""}" /></p>`):Xn.replaceSelection(`<img width="100%" src="${$l}" alt="${nA||""}" />`):((Rs=Va==null?void 0:Va.type)==null?void 0:Rs.indexOf("video"))>-1?Xn.replaceSelection(`<video width="100%" controls src="${$l}"></video>`):((ho=Va==null?void 0:Va.type)==null?void 0:ho.indexOf("pdf"))>-1?Xn.replaceSelection(`<a href="${$l}?type=${Va.type}&disposition=inline" target="_blank">${Va.name}</a>`):os.includes(cc)?Xn.replaceSelection(`<a href="${$l}?type=office&disposition=inline" target="_blank">${Va.name}</a>`):Xn.replaceSelection(`[${Va.name}](${$l})`),Xn.focus();case Jr:const{row:Al,col:fs,align:Gs}=Rr;let iA=`
|
|
|
`;for(let Do=0;Do<Al;Do++){let Ps=[],es=[];for(let Sr=0;Sr<fs;Sr++)Do===1&&es.push(to[Gs]),Ps.push(" ");Do===1&&(iA+=`| ${es.join(" | ")} |
|
|
|
`),iA+=`| ${Ps.join(fs===1?"":" | ")} |
|
|
|
`}return Xn.replaceSelection(iA+`
|
|
|
`),Xn.focus();default:throw new Error}},[Xn,Mr]),zo=(0,Kt.useMemo)(()=>{switch(Mr){case Or:return Kt.createElement(Gn,{callback:oe,onCancel:Qs});case Co:return Kt.createElement(ri.Z,{callback:oe,onCancel:Qs});case Ao:return Kt.createElement(cn.Z,{callback:oe,onCancel:Qs});case po:return Kt.createElement(vn,{callback:oe,onCancel:Qs});case Jr:return Kt.createElement(Vn,{callback:oe,onCancel:Qs});case"maths-latex":return Kt.createElement(Ui,{showSaveButton:!0,callback:oe});case"inline-latex":return Kt.createElement(Pi.Z,{showSaveButton:!0,callback:oe});default:return null}},[Mr]);function Qs(){ao("")}(0,Kt.useEffect)(()=>{if(io.current){let Rr=function(Rs){cs=!0,Es=Rs.pageY},jr=function(){cs=!1},Li=function(Rs){if(cs){let ho=Rs.pageY-Es;ho<0&&(ho=0),ho>300&&(ho=300);let Cs=Un+ho+"px";br(Cs)}},eo=io.current,cs=!1,Es=0;return eo.addEventListener("mousedown",Rr),document.addEventListener("mousemove",Li),document.addEventListener("mouseup",jr),()=>{eo.removeEventListener("mousedown",Rr),document.removeEventListener("mousemove",Li),document.removeEventListener("mouseup",jr)}}},[Xn,io]),(0,Kt.useEffect)(()=>{br(Un)},[Un]);const _a=_s(he),hl=_s($r),Ka={width:_a,height:hl},ml=(0,Kt.useMemo)(()=>{if(Uo){let Rr=new Date(Uo),jr=Rr.getHours(),Li=Rr.getMinutes(),eo=Rr.getSeconds();return jr=jr<10?"0"+jr:jr,Li=Li<10?"0"+Li:Li,eo=eo<10?"0"+eo:eo,`${jr}:${Li}:${eo}`}return 0},[Uo]),To=Rr=>{const jr=[];if(Ni){let Li=-1;Rr=Rr.replace(/(@▁▁@|@▁@)/g,function(eo,cs,Es){jr.push({multiLine:eo!==jt})})}return jr};function Po(){window.sessionStorage.removeItem(li),So(!1),lo(0)}function _r(){So(!1),lo(0),Xn.setValue(window.sessionStorage.getItem(li))}(0,Kt.useEffect)(()=>{Pr[Mr]&&Mr!==Zr&&Mr!==po&&setTimeout(()=>{const Rr=document.getElementsByClassName("markdown-popup-form")[0],jr=window.innerWidth/2-Rr.offsetWidth/2,Li=window.innerHeight/2-Rr.offsetHeight/2;Go(jr),qo(Li)},0)},[Mr]);const As=Rr=>{Rr.preventDefault();const jr=Rr.clientX-qn,Li=Rr.clientY-Ds;document.body.onmousemove=eo=>{let cs=eo.clientX-jr,Es=eo.clientY-Li;const Rs=document.getElementsByClassName("markdown-popup-form")[0],ho=window.innerWidth-Rs.offsetWidth,Cs=window.innerHeight-Rs.offsetHeight;cs=Math.max(0,Math.min(cs,ho)),Es=Math.max(0,Math.min(Es,Cs)),da(eo.clientX,eo.clientY,jr,Li)&&(Go(cs),qo(Es))},document.body.onmouseup=function(){document.body.onmousemove=null}},da=(Rr,jr,Li,eo)=>{const cs=document.body.clientHeight,Es=document.body.clientWidth;return Rr<20&&Li>Rr||Rr>Es-20&&Li<Rr||jr<20&&eo>jr||jr>cs-20&&eo<jr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Kt.createElement(Kt.Fragment,null,Kt.createElement("div",{className:"markdown-editor-wrapper",ref:Bs},Kt.createElement("div",{className:`markdown-editor-container ${Tr} ${zn?"on-preview":""} ${Yn?"mini":""} ${wr?"full-screen":""}`,style:Ka},Kt.createElement(se,{insertTemp:qe,watch:zn,fullScreen:wr,showNullButton:Qn,showNullProgramButton:Ni,onActionCallback:Zi,hidetoolBar:lr,extraUse:jo}),Kt.createElement("div",{className:"markdown-editor-body"},Kt.createElement("div",{className:"codemirror-container"},Kt.createElement("textarea",{ref:ea,placeholder:Er})),zn?Kt.createElement("div",{ref:uo,className:"preview-container"},Mn==="stex"&&Kt.createElement(ee,{value:as}),Mn!=="stex"&&Kt.createElement(xe.Z,{disabledFill:ar,showProgramFill:Ni,value:as})):null))),Si?Kt.createElement("a",{ref:io,className:"editor-resize"}):null,Mr===Zr&&Kt.createElement(zi,{callback:oe,onCancel:Qs}),Mr===po&&Kt.createElement(vn,{callback:oe,onCancel:Qs}),Kt.createElement(me.Z,null,Pr[Mr]&&Mr!==Zr&&Mr!==po?Kt.createElement(In.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:qn,top:Ds},title:Kt.createElement("div",{style:{cursor:"move"},onMouseDown:As},Pr[Mr]),open:!0,onCancel:Qs,footer:null,destroyOnClose:!0,width:Mr===po?"1200px":null,height:Mr===po?"80vh":null,className:"markdown-popup-form"},zo):null))}},56030:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Gt},I:function(){return se}});var Kt=Yt(78241),Le=Yt(8591),Te=Yt(92832),xn=Yt(81327),Se=Yt(5871),We=Yt(5112),je=Yt(3113),de=Yt(49291),ve=Yt(59301),It=Yt(59301),xe=Object.defineProperty,ee=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(me,ce,Xe)=>ce in me?xe(me,ce,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):me[ce]=Xe,at=(me,ce)=>{for(var Xe in ce||(ce={}))et.call(ce,Xe)&&ht(me,Xe,ce[Xe]);if(Qt)for(var Xe of Qt(ce))nt.call(ce,Xe)&&ht(me,Xe,ce[Xe]);return me},ft=(me,ce)=>ee(me,ge(ce));const{useForm:vt}=Kt.default,Nt={width:280,marginRight:10},Rt={labelCol:{span:5},wrapperCol:{span:19}};var Gt=({callback:me,onCancel:ce})=>{const[Xe]=vt();let De=(0,ve.useRef)();function ln(Kn){De.current.width=Xe.getFieldValue("width"),De.current.align=Xe.getFieldValue("align"),me(Kn,De.current)}function Oe(Kn,sn){if(Kn.status===-1){Le.ZP.error(Kn.message);return}Xe.setFieldsValue({src:`/api/attachments/${Kn.id}`,type:sn.type})}function mn(Kn){let sn=Kn.target.files[0];De.current=sn,se(sn,Oe)}return It.createElement(Kt.default,ft(at({form:Xe},Rt),{className:"upload-image-panel",onFinish:ln,style:{width:470,overflow:"hidden"}}),It.createElement(Kt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},It.createElement("div",{className:"flex-container"},It.createElement(Kt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},It.createElement(Te.default,{style:Nt})),It.createElement($t,{onFileChange:mn}))),It.createElement(Kt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},It.createElement(Te.default,{style:{width:264}})),It.createElement(Kt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},It.createElement(xn.Z,null,It.createElement(Kt.default.Item,{name:"width",style:{margin:0}},It.createElement(Se.Z,{style:{width:264}})),It.createElement("span",{className:"ml8"},"%"))),It.createElement(Kt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},It.createElement(We.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"}]})),It.createElement("aside",null,It.createElement(Kt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},It.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),It.createElement(je.ZP,{type:"default",onClick:ce},"\u53D6\u6D88"))))};function $t({onFileChange:me}){return It.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",It.createElement("input",{type:"file",onChange:me}))}function se(me,ce){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");let Xe=new FormData;Xe.append("editormd-image-file",me),Xe.append("file_param_name","editormd-image-file"),Xe.append("byxhr","true");var De=new window.XMLHttpRequest;De.withCredentials=!0,De.addEventListener("load",function(ln){ce(JSON.parse(ln.target.responseText),me)},!1),De.addEventListener("error",function(ln){console.error(ln)},!1),De.open("POST",`${de.KI}/api/attachments.json`),De.send(Xe)}},19647:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Te}});var Kt=Yt(59301),Le=Yt(4676);class Te extends Kt.Component{constructor(Se){super(Se);const We=window.document;this.node=We.createElement("div"),We.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,Le.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},57800:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{SV:function(){return be},ZP:function(){return Mt}});var Kt=Yt(59301),Le=Yt(76374);const Te={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"]},xn={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"]},Se={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(`
|
|
|
`)}]},We={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(`
|
|
|
`)}]},je={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 de=Yt(7947),ve=Yt.n(de),It=Object.defineProperty,xe=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(Ge,vn,Fn)=>vn in Ge?It(Ge,vn,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):Ge[vn]=Fn,ht=(Ge,vn)=>{for(var Fn in vn||(vn={}))Qt.call(vn,Fn)&&nt(Ge,Fn,vn[Fn]);if(ge)for(var Fn of ge(vn))et.call(vn,Fn)&&nt(Ge,Fn,vn[Fn]);return Ge},at=(Ge,vn)=>xe(Ge,ee(vn)),ft=(Ge,vn,Fn)=>new Promise((An,kn)=>{var Bn=Pn=>{try{bi(Fn.next(Pn))}catch(an){kn(an)}},Vn=Pn=>{try{bi(Fn.throw(Pn))}catch(an){kn(an)}},bi=Pn=>Pn.done?An(Pn.value):Promise.resolve(Pn.value).then(Bn,Vn);bi((Fn=Fn.apply(Ge,vn)).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"]}},Nt=(Ge,vn)=>vn.map(Fn=>({label:Fn,kind:Ge.languages.CompletionItemKind.Keyword,insertText:Fn})),Rt=Ge=>Object.keys(vt.tables).map(vn=>({label:vn,kind:Ge.languages.CompletionItemKind.Variable,insertText:vn})),Gt=(Ge,vn)=>{const Fn=vt.tables[Ge];return Fn?Fn.map(An=>({label:An,kind:vn.languages.CompletionItemKind.Field,insertText:An})):[]};function $t(Ge,vn,Fn,An,kn){let Bn=vn.getWordUntilPosition(Fn),Vn={startLineNumber:Fn.lineNumber,endLineNumber:Fn.lineNumber,startColumn:Bn.startColumn,endColumn:Bn.endColumn},bi=An.map(Pn=>({label:Pn,kind:Ge.languages.CompletionItemKind.Keyword,insertText:Pn,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn}));return kn.map(Pn=>{bi.push(at(ht({},Pn),{range:Vn}))}),bi}var se=Ge=>{vt.languages.map(kn=>(Ge.languages.registerDocumentFormattingEditProvider(kn,{provideDocumentFormattingEdits(Bn,Vn,bi){return ft(this,null,function*(){const Pn=ve()(Bn.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:Bn.getFullModelRange(),text:Pn}]})}}),kn));const vn=Se.quickKey.map(kn=>({label:kn.label,kind:Ge.languages.CompletionItemKind.Method,insertText:kn.content,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Fn=We.quickKey.map(kn=>({label:kn.label,kind:Ge.languages.CompletionItemKind.Method,insertText:kn.content,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet})),An=xn.quickKey.map(kn=>({label:kn.label,kind:Ge.languages.CompletionItemKind.Method,insertText:kn.content,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ge.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(kn,Bn){var Vn=kn.getWordUntilPosition(Bn),bi={startLineNumber:Bn.lineNumber,endLineNumber:Bn.lineNumber,startColumn:Vn.startColumn,endColumn:Vn.endColumn},Pn=kn.getLineContent(Bn.lineNumber).substring(Vn.startColumn-2,Vn.endColumn);return{suggestions:[...Se.keywords.map(an=>({label:an,kind:Ge.languages.CompletionItemKind.Function,documentation:an,insertText:an,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi})),...Se.quickKey.map(an=>({label:an.label,kind:Ge.languages.CompletionItemKind.Function,documentation:an.content,insertText:Pn.startsWith("#")?an.content.replace(/#/,""):an.content,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi}))]}}}),Ge.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(kn,Bn){var Vn=kn.getWordUntilPosition(Bn),bi={startLineNumber:Bn.lineNumber,endLineNumber:Bn.lineNumber,startColumn:Vn.startColumn,endColumn:Vn.endColumn};return{suggestions:[...Te.keywords.map(Pn=>({label:Pn,kind:Ge.languages.CompletionItemKind.Function,documentation:Pn,insertText:Pn,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi}))]}}}),Ge.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(kn,Bn){var Vn=kn.getWordUntilPosition(Bn),bi={startLineNumber:Bn.lineNumber,endLineNumber:Bn.lineNumber,startColumn:Vn.startColumn,endColumn:Vn.endColumn},Pn=kn.getLineContent(Bn.lineNumber).substring(Vn.startColumn-2,Vn.endColumn);return{suggestions:[...xn.keywords.map(an=>({label:an,kind:Ge.languages.CompletionItemKind.Function,documentation:an,insertText:an,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi})),...xn.quickKey.map(an=>({label:an.label,kind:Ge.languages.CompletionItemKind.Function,documentation:an.content,insertText:Pn.startsWith("#")?an.content.replace(/#/,""):an.content,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi}))]}}}),Ge.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(kn,Bn){var Vn=kn.getWordUntilPosition(Bn),bi={startLineNumber:Bn.lineNumber,endLineNumber:Bn.lineNumber,startColumn:Vn.startColumn,endColumn:Vn.endColumn},Pn=kn.getLineContent(Bn.lineNumber).substring(Vn.startColumn-2,Vn.endColumn);return{suggestions:[...je.keywords.map(an=>({label:an,kind:Ge.languages.CompletionItemKind.Function,documentation:an,insertText:an,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi})),...je.quickKey.map(an=>({label:an.label,kind:Ge.languages.CompletionItemKind.Function,documentation:an.content,insertText:Pn.startsWith("#")?an.content.replace(/#/,""):an.content,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi}))]}}}),Ge.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(kn,Bn){var Vn=kn.getWordUntilPosition(Bn),bi={startLineNumber:Bn.lineNumber,endLineNumber:Bn.lineNumber,startColumn:Vn.startColumn,endColumn:Vn.endColumn},Pn=kn.getLineContent(Bn.lineNumber).substring(Vn.startColumn-2,Vn.endColumn);return{suggestions:[...We.keywords.map(an=>({label:an,kind:Ge.languages.CompletionItemKind.Function,documentation:an,insertText:an,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi})),...We.quickKey.map(an=>({label:an.label,kind:Ge.languages.CompletionItemKind.Function,documentation:an.content,insertText:Pn.startsWith("#")?an.content.replace(/#/,""):an.content,insertTextRules:Ge.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:bi}))]}}})};const me="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ce=Object.defineProperty,Xe=(Ge,vn,Fn)=>vn in Ge?ce(Ge,vn,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):Ge[vn]=Fn,De=(Ge,vn,Fn)=>Xe(Ge,typeof vn!="symbol"?vn+"":vn,Fn);const ln=class yw{constructor(vn,Fn,An){this.placeholder=vn,this.editor=Fn,this.monaco=An,Fn.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(ln,"ID","editor.widget.placeholderHint");var mn=ln,Kn=Yt(96236),sn=Yt(8591),gn=Yt(6848),pn=Yt(89392),fe=Yt(50484),Zt=Yt(56102),Ye=Object.defineProperty,Gn=Object.defineProperties,ri=Object.getOwnPropertyDescriptors,cn=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,xi=(Ge,vn,Fn)=>vn in Ge?Ye(Ge,vn,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):Ge[vn]=Fn,pi=(Ge,vn)=>{for(var Fn in vn||(vn={}))In.call(vn,Fn)&&xi(Ge,Fn,vn[Fn]);if(cn)for(var Fn of cn(vn))Wn.call(vn,Fn)&&xi(Ge,Fn,vn[Fn]);return Ge},zi=(Ge,vn)=>Gn(Ge,ri(vn)),Ie=(Ge,vn)=>{var Fn={};for(var An in Ge)In.call(Ge,An)&&vn.indexOf(An)<0&&(Fn[An]=Ge[An]);if(Ge!=null&&cn)for(var An of cn(Ge))vn.indexOf(An)<0&&Wn.call(Ge,An)&&(Fn[An]=Ge[An]);return Fn},Ai=(Ge,vn,Fn)=>new Promise((An,kn)=>{var Bn=Pn=>{try{bi(Fn.next(Pn))}catch(an){kn(an)}},Vn=Pn=>{try{bi(Fn.throw(Pn))}catch(an){kn(an)}},bi=Pn=>Pn.done?An(Pn.value):Promise.resolve(Pn.value).then(Bn,Vn);bi((Fn=Fn.apply(Ge,vn)).next())});function Ti(Ge){return/^\d+$/.test(Ge)?`${Ge}px`:Ge}function ue(){}let Tt=!1;const Ct={"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 zt(Ge=[]){let vn=Ge;if(Array.isArray(Ge)){for(let Fn=0;Fn<Ge.length;Fn++){let An=Ct[Ge[Fn]];if(An)return An}return vn[0]}return Ct[vn]||vn}let Ht=null;var Mt=Ge=>{var vn=Ge,{width:Fn="100%",height:An="100%",value:kn,language:Bn="javascript",style:Vn={},options:bi={},overrideServices:Pn={},theme:an="vs-dark",onEditBlur:ei,isCopy:Ui=!1,onSave:Pi,autoHeight:sr=!1,forbidCopy:Or=!1,onChange:Ao=ue,editorDidMount:po=ue,onFocus:Zr=ue,onBreakPoint:Ho=ue,breakPointValue:Co=[],filename:Jr="educoder.txt",errorLine:hr,errorContent:to="",highlightLine:oo,openBreakPoint:Jo=!1,placeholder:Ns=""}=vn,ys=Ie(vn,["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 Xs=(0,Kt.useRef)(),vo=(0,Kt.useRef)({}),jt=(0,Kt.useRef)(),la=(0,Kt.useRef)(),os=(0,Kt.useRef)([]),_s=(0,Kt.useRef)(!1),Ss=(0,Kt.useRef)(),ca=(0,Kt.useRef)(),fa=(0,Kt.useRef)(!1),[Pr,Fr]=(0,Kt.useState)(!1);function dn(){let wn;return Xs.current&&(wn=new Le.Z(Jn=>{for(let Br of Jn)(Br.target.offsetHeight>0||Br.target.offsetWidth>0)&&vo.current.instance.layout()}),wn.observe(Xs.current)),wn}function nn(){sn.ZP.warning({content:decodeURIComponent(me),key:"monaco-editor-tip"})}const he=()=>{let wn=vo.current.instance;if(kn!=null&&wn&&Pr){const Jn=wn.getModel();Jn&&kn!==Jn.getValue()&&(Tt=!0,Jn.setValue(kn),wn.layout(),Tt=!1)}};(0,Kt.useEffect)(()=>{const wn=fe.Z.subscribe("formatDocument",Jn=>{var Br;let vr=vo.current.instance;(Br=vr==null?void 0:vr.getAction)==null||Br.call(vr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Jn=>{Ao(Jn)},wn},[]),(0,Kt.useEffect)(()=>{var wn;let Jn=vo.current.instance;la.current&&clearTimeout(la.current),la.current=setTimeout(()=>{he()},500),kn&&(kn!=null&&kn.length)&&((wn=Jn==null?void 0:Jn.updateOptions)==null||wn.call(Jn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(kn.split(/\r\n|\r|\n/g).length))+3,5)}))},[kn,Pr,vo.current]),(0,Kt.useEffect)(()=>{if(hr&&vo.current&&vo.current.instance){let Jn=vo.current.instance;Jn.changeViewZones(function(Br){var vr=document.createElement("div");vr.style.padding="10px 20px",vr.style.width="calc(100% - 20px)",vr.className="my-error-line-wrp",vr.innerHTML=to,Br.addZone({afterLineNumber:hr||11,heightInLines:3,domNode:vr})});var wn={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}};Jn.addOverlayWidget(wn),Jn.revealPositionInCenter({lineNumber:20,column:1})}},[hr,vo.current,Pr]);const Un=(wn="",Jn)=>{if(!wn||wn.trim()==="")return!0;const vr=vo.current.instance.getModel().getLineTokens(Jn);let Tr=!1;for(let nr=0;nr<2;nr++)vr.getStandardTokenType(nr)===1&&(Tr=!0);return Tr};(0,Kt.useEffect)(()=>{var wn;const Jn=(wn=vo.current)==null?void 0:wn.instance;if(Jn&&Pr&&Or){const Br=Jn.onDidBlurEditorWidget(()=>{fa.current=!1}),vr=Jn.onDidFocusEditorText(()=>{fa.current=!0});return()=>{Br.dispose(),vr.dispose()}}},[vo.current,Pr,Or]),(0,Kt.useEffect)(()=>{var wn;if((wn=vo.current)!=null&&wn.instance&&Pr&&Jo){let Jn=vo.current.instance,Br=Jn.getModel();if(!Br)return;(()=>{var Eo;let zn=[],Gi=[];const wr=Br.getAllDecorations();for(let Mr of wr)Mr.options.className==="highlighted-line"&&(zn.push((Eo=Mr==null?void 0:Mr.range)==null?void 0:Eo.startLineNumber),Gi.push(Mr==null?void 0:Mr.id));if(oo===zn[0])return;Br.deltaDecorations(Gi,[]);const Dr=Br.getLineCount();oo&&oo<=Dr&&(Jn.deltaDecorations([],[{range:new Ht.Range(oo,1,oo,Br.getLineMaxColumn(oo)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Jn.revealLineInCenter(oo))})();const Tr=(Eo=!1)=>{var zn;let Gi=[],wr=[];const Dr=Br.getAllDecorations();for(let Mr of Dr)Mr.options.linesDecorationsClassName==="breakpoints-select"&&(Gi.push((zn=Mr==null?void 0:Mr.range)==null?void 0:zn.startLineNumber),wr.push(Mr==null?void 0:Mr.id));if(Eo)return{lines:Gi,ids:wr};Ho(Gi)},nr=Eo=>Ai(void 0,null,function*(){let zn={range:new Ht.Range(Eo,1,Eo,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Br.deltaDecorations([],[zn]),Tr()}),yr=Eo=>Ai(void 0,null,function*(){let zn=[];const Gi=Jn.getLineDecorations(Eo);for(let wr of Gi)wr.options.linesDecorationsClassName==="breakpoints-select"&&zn.push(wr.id);yield Br.deltaDecorations(zn,[]),Tr()}),ar=Eo=>{let zn=Jn.getLineDecorations(Eo);for(let Gi of zn)if(Gi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,pn.isEqual)(Co,Tr(!0).lines)){Br.deltaDecorations(Tr(!0).ids,[]);const Eo=Co.map(zn=>({range:new Ht.Range(zn,1,zn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Br.deltaDecorations([],Eo)}const Er=Jn.onDidChangeModelContent(Eo=>{let zn=Jn.getPosition();if(zn){let Gi=zn.lineNumber;clearTimeout(ca.current),ca.current=setTimeout(()=>{Un(Br.getLineContent(Gi),Gi)?yr(Gi):ar(Gi)?(yr(Gi),nr(Gi)):Tr()},100)}}),co=Jn.onMouseDown(Eo=>{var zn,Gi,wr;if(Eo.target.detail&&((wr=(Gi=(zn=Eo.target)==null?void 0:zn.element)==null?void 0:Gi.className)!=null&&wr.includes("line-numbers"))){let Dr=Eo.target.position.lineNumber;if(Un(Br.getLineContent(Dr),Dr))return;ar(Dr)?yr(Dr):nr(Dr)}}),jo=Eo=>{let zn={range:new Ht.Range(Eo,1,Eo,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};os.current=Jn.deltaDecorations(os.current,[zn])},Xn=()=>{os.current=Jn.deltaDecorations(os.current,[])},Oo=Jn.onMouseMove(Eo=>{var zn,Gi,wr;if(Xn(),Eo.target.detail&&((wr=(Gi=(zn=Eo.target)==null?void 0:zn.element)==null?void 0:Gi.className)!=null&&wr.includes("line-numbers"))){let Dr=Eo.target.position.lineNumber;if(Un(Br.getLineContent(Dr),Dr))return;jo(Dr)}}),as=Jn.onMouseLeave(()=>{Xn()});return()=>{Er.dispose(),co.dispose(),Oo.dispose(),as.dispose()}}},[vo.current,Pr,Co,oo,Jo,Bn]),(0,Kt.useEffect)(()=>{var wn;(wn=vo.current)!=null&&wn.instance&&Jo&&vo.current.instance.setPosition({lineNumber:0,column:0})},[oo]);function Yn(){let wn=vo.current.instance;if(wn){const Jn=wn.getSelection(),Br=vo.current.pastePos||{},vr=new Ht.Range(Br.startLineNumber||Jn.endLineNumber,Br.startColumn||Jn.endColumn,Br.endLineNumber||Jn.endLineNumber,Br.endColumn||Jn.endColumn);setTimeout(()=>{wn.executeEdits("",[{range:vr,text:""}])},300)}}function Qe(wn){(window.navigator.platform.match("Mac")?wn.metaKey:wn.ctrlKey)&&wn.keyCode==83&&(wn.preventDefault(),Pi())}const ye=()=>{if(sr&&vo.current.instance){const wn=vo.current.instance.getContentHeight();Ni(wn<An?An:wn)}else Ni(An)};function qe(wn){var Jn=document.createEvent("MouseEvents");Jn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),wn.dispatchEvent(Jn)}const Mn=wn=>{if(!fa.current)return;const{keyCode:Jn,ctrlKey:Br,metaKey:vr,target:Tr,type:nr}=wn;return(nr==="paste"||(Jn===67||Jn===86)&&(vr||Br))&&Tr.nodeName==="TEXTAREA"&&(nn(),wn.preventDefault()),!1};function li(wn,Jn){var Br=window.URL||window.webkitURL||window,vr=new Blob([Jn]),Tr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Tr.href=Br.createObjectURL(vr),Tr.download=wn,qe(Tr)}(0,Kt.useEffect)(()=>{ye()},[ye]),(0,Kt.useEffect)(()=>{Xs.current&&!Pr&&Promise.all([Yt.e(8909),Yt.e(6894)]).then(Yt.bind(Yt,71448)).then(wn=>{try{Ht=wn,vo.current.instance=Ht.editor.create(Xs.current,{value:kn,language:zt(Bn),theme:an,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Pn);const Jn=vo.current.instance;let Tr=[...Kn.BH._menuItems].find(Er=>Er[0]._debugName=="EditorContext")[1],nr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],yr=(Er,co)=>{var jo,Xn;let Oo=Er._first;do co.includes((Xn=(jo=Oo.element)==null?void 0:jo.command)==null?void 0:Xn.id)&&Er._remove(Oo);while(Oo=Oo.next)};if(po(Jn,Ht),setTimeout(()=>{ye(),vo.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{li(Jr||"educoder.txt",Jn.getValue())}})},500),vo.current.subscription=Jn.onDidChangeModelContent(Er=>{_s.current?clearTimeout(Ss.current):(ye(),Ao(Jn.getValue(),Er)),Ss.current=setTimeout(()=>{_s.current=!1},500)}),window.Monaco||se(Ht,zt(Bn)),Or&&(yr(Tr,nr),Xs.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Mn),window.removeEventListener("paste",Mn),window.addEventListener("keydown",Mn),window.addEventListener("paste",Mn)),window.Monaco=Ht,ei&&Jn.onDidBlurEditorWidget(()=>{ei(Jn.getValue())}),Zr&&Jn.onDidFocusEditorText(()=>{Zr(Jn.getValue())}),Or)try{Jn.onDidPaste(Er=>{const co=Jn.getSelection(),jo=vo.current.pastePos||{},Xn=new Ht.Range(jo.startLineNumber||co.endLineNumber,jo.startColumn||co.endColumn,jo.endLineNumber||co.endLineNumber,jo.endColumn||co.endColumn);Jn.executeEdits("",[{range:Er.range,text:""}])})}catch(Er){}let ar=dn();return Ns&&typeof Ns=="string"&&new mn(Ns,Jn,Ht),Fr(!0),()=>{const Er=vo.current.instance;Er.dispose();const co=Er.getModel();co&&co.dispose(),vo.current.subscription&&vo.current.subscription.dispose(),ar.unobserve(Xs.current)}}catch(Jn){}})},[]),(0,Kt.useEffect)(()=>{if(vo.current.instance&&Pr)return document.addEventListener("keydown",Qe,!1),()=>{document.removeEventListener("keydown",Qe)}},[Pi,Pr]),(0,Kt.useEffect)(()=>{let wn=vo.current.instance;if(wn&&Pr){let Jn=zt(Bn);Ht.editor.setModelLanguage(wn.getModel(),Jn)}},[Bn,Pr]),(0,Kt.useEffect)(()=>{vo.current.instance&&Pr&&Ht.editor.setTheme(an)},[an,Pr]),(0,Kt.useEffect)(()=>{let wn=vo.current.instance;jt.current=bi,wn&&Pr&&(wn.updateOptions(pi({},bi)),setTimeout(()=>{wn.getModel().updateOptions(pi({},bi))},200))},[JSON.stringify(bi),Pr]),(0,Kt.useEffect)(()=>{let wn=vo.current.instance;wn&&Pr&&wn.layout()},[Fn,An,Pr]);const[Si,Fe]=(0,Kt.useState)(Ti(Fn)),[Qn,Ni]=(0,Kt.useState)(Ti(An)),lr=zi(pi({},Vn),{width:Si,height:Qn,position:"relative"});return Kt.createElement("div",{className:"my-monaco-editor",ref:Xs,style:lr},Ui&&Kt.createElement(Zt.CopyToClipboard,{text:kn,onCopy:()=>sn.ZP.success("\u590D\u5236\u6210\u529F")},Kt.createElement(gn.Z,{title:"\u590D\u5236\u4EE3\u7801"},Kt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Kt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function be({width:Ge="100%",height:vn="100%",original:Fn,modified:An,language:kn,options:Bn={}}){const Vn=(0,Kt.useRef)(),[bi,Pn]=(0,Kt.useState)(null);function an(sr){let Or;return Vn.current&&(Or=new Le.Z(Ao=>{for(let po of Ao)(po.target.offsetHeight>0||po.target.offsetWidth>0)&&sr.layout()}),Or.observe(Vn.current)),Or}(0,Kt.useEffect)(()=>(Vn.current&&Promise.all([Yt.e(8909),Yt.e(9404)]).then(Yt.bind(Yt,2550)).then(sr=>{Ht=sr;const Or=Ht.editor.createDiffEditor(Vn.current,zi(pi({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},Bn),{wordWrap:!0}));Pn(Or);let Ao=an(Or);return()=>{Or.dispose();const po=Or.getModel();po&&po.dispose(),Ao.unobserve(Vn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Kt.useEffect)(()=>{bi&&bi.setModel({original:Ht.editor.createModel(Fn,kn),modified:Ht.editor.createModel(An,kn)})},[Fn,An,kn,bi]);const ei=Ti(Ge),Ui=Ti(vn),Pi={width:ei,height:Ui};return Kt.createElement("div",{className:"my-diff-editor",ref:Vn,style:Pi})}},15965:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{jL:function(){return Se},w9:function(){return In},QD:function(){return Ao},cQ:function(){return Zt},op:function(){return an},O5:function(){return fa},_b:function(){return hr},t7:function(){return at},Gi:function(){return Ai},YG:function(){return zi},qp:function(){return xe},vr:function(){return Ho},qE:function(){return Pi},Je:function(){return Nt},wb:function(){return Kn},cq:function(){return Ht},tp:function(){return Qt}});var Kt=Yt(59301),Le={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"},Te="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==",Se=({dataSource:Pr=[],img:Fr,imgWidth:dn=346,title:nn,sunTitle:he,bannerExtraContent:Un})=>Kt.createElement("div",{className:Le.banner},Kt.createElement("div",{className:Le.content},Kt.createElement("aside",null,Kt.createElement("p",null,Kt.createElement("b",null,nn),Kt.createElement("span",null,he)),Pr.length>0&&Kt.createElement("div",{className:Le.btns},Pr.map((Yn,Qe)=>Kt.createElement("div",{key:Qe,onClick:Yn.click},Yn.name,Yn.sign?Kt.createElement("img",{src:Te,width:39}):null))),Un),Fr&&Kt.createElement("img",{style:{marginTop:33,marginRight:38},src:Fr,width:dn}))),We={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"},je=Yt(92310),de=Yt.n(je),ve=Yt(89392),xe=({dataSource:Pr=[],value:Fr,onChange:dn,onTitleChange:nn,className:he,title:Un,titleWidth:Yn=41,style:Qe={},fontColor:ye="#6A7283",showCount:qe})=>{const[Mn,li]=(0,Kt.useState)(0),[Si,Fe]=(0,Kt.useState)(!1),Qn=(0,Kt.useRef)(null),Ni=(0,Kt.useRef)(null);return(0,Kt.useEffect)(()=>{var lr;Pr.length!==0&&(((lr=Qn==null?void 0:Qn.current)==null?void 0:lr.clientHeight)>97?li(1):li(0)),Pr.length===0&&li(0),Fe(!1)},[Pr]),Kt.createElement("div",{className:de()(We.row,he),style:Qe},Kt.createElement("div",{onClick:(0,ve.throttle)(()=>nn==null?void 0:nn(),2e3),style:{width:Yn,marginTop:Si?12:4},className:`${We.title} ${nn?"current":""}`},Un),Kt.createElement("div",{className:Si?`${We.tagsWrap} ${We.tagsBorderWrap}`:We.tagsWrap},Kt.createElement("div",{className:We.bar,ref:Ni,style:Mn>0?{height:Mn===1?97:"auto",overflow:Mn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Kt.createElement("div",{className:We.tag,ref:Qn},Pr==null?void 0:Pr.map(lr=>Kt.createElement("span",{onClick:()=>dn(lr.id),key:lr.id,style:{color:ye},className:Fr===lr.id?We.active:""},Kt.createElement("span",{title:lr.name,className:We.name},lr.name),!!qe&&Kt.createElement("span",{className:We.num},lr.count))))),!!Mn&&Kt.createElement(Kt.Fragment,null,Mn===1?Kt.createElement("div",{onClick:()=>{var lr;li(2),((lr=Qn==null?void 0:Qn.current)==null?void 0:lr.clientHeight)>245?Fe(!0):Fe(!1)},className:We.action},"\u5C55\u5F00",Kt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Kt.createElement("div",{onClick:()=>{Ni.current.scrollTop=0,li(1),Fe(!1)},className:We.action},"\u6536\u8D77",Kt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ee={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"},Qt=({dataSource:Pr=[],value:Fr,onChange:dn,className:nn,style:he={}})=>Kt.createElement("div",{style:he,className:de()(ee.tabs,nn)},Pr.map(Un=>Kt.createElement("span",{onClick:()=>dn(Un.id),className:Fr===Un.id?ee.active:"",key:Un.id},Un.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=Yt(92832),at=({dataSource:Pr=[],value:Fr="",onChange:dn,onInputChange:nn=()=>{},className:he,style:Un={},placeholder:Yn,allowClear:Qe=!1})=>{var ye;const[qe,Mn]=(0,Kt.useState)(""),[li,Si]=(0,Kt.useState)("");(0,Kt.useEffect)(()=>{var Ni;let lr=Fr;(Ni=JSON.stringify(Fr))!=null&&Ni.includes("{")&&(Mn(Fr.id),lr=Fr.value||"");try{Si(decodeURIComponent(lr||""))}catch(wn){Si(decodeURIComponent(lr||""))}},[Fr]);const Fe=()=>{dn(encodeURIComponent(li),qe||null)},Qn=Ni=>{Ni!==qe&&(Mn(Ni),dn(encodeURIComponent(li),Ni))};return Kt.createElement("div",{className:de()(et.input,he),style:Un},!!Pr.length&&Kt.createElement("div",{className:et.dropdown},Kt.createElement("div",{className:et.text},(ye=Pr.find(Ni=>Ni.id===qe))==null?void 0:ye.name,Kt.createElement("i",{className:"iconfont icon-zhankai4"}),Kt.createElement("b",{className:et.b1}),Kt.createElement("b",{className:et.b2})),Kt.createElement("div",{className:et.menu},Pr.map((Ni,lr)=>Kt.createElement("div",{key:lr,onClick:()=>Qn(Ni.id)},Ni.name)))),Kt.createElement(nt.default,{onPressEnter:Fe,value:li,onChange:Ni=>{Si(Ni.target.value),nn(encodeURIComponent(Ni.target.value),qe||null)},bordered:!1,placeholder:Yn}),Kt.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"},Nt=({value:Pr,onChange:Fr,className:dn,total:nn,pageSize:he,style:Un={}})=>{const Yn=Pr<2,Qe=Pr>=Math.ceil(nn/he);return nn<=he?Kt.createElement(Kt.Fragment,null):Kt.createElement("div",{className:de()(ft.quickPager,dn),style:Un},Kt.createElement("div",{onClick:()=>{Yn||Fr(Pr-1,"prev")},className:Yn?ft.disabled:""},"\u4E0A\u4E00\u9875"),Kt.createElement("div",{onClick:()=>{Qe||Fr(Pr+1,"next")},className:Qe?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=Yt(71418),$t=Yt(6848),se=Yt(13570),me=Yt(38446),ce=Yt(88230),Xe=Yt(96908),De=Yt(57177),ln=Yt(81378),Oe=Yt(57816),Kn=({className:Pr,dataSource:Fr=[],col:dn=4,right:nn,bottom:he=23,precision:Un=0,wrapWidth:Yn=1200,trackEventItems:Qe,loading:ye})=>{const qe=Math.floor((Yn-(dn-1)*nn)/dn);return Kt.createElement(Gt.Z,{spinning:ye},Kt.createElement("div",{className:de()(Rt.list,Pr)},!!Fr.length&&Fr.map((Mn,li)=>{const{name:Si,id:Fe,identifier:Qn,power:Ni,cover_image_id:lr,pic:wn}=Mn;return Kt.createElement("div",{className:Rt.wrap,key:Fe,style:{width:qe,marginRight:(1+li)%dn===0?0:nn+Un,marginBottom:he}},Kt.createElement("a",{target:"_blank",href:`/shixuns/${Qn}/challenges`,className:Rt.li,onClick:Jn=>{Jn.preventDefault(),Qe&&(0,ce.L9)([Qe]),Ni&&(0,ce.xg)(`/shixuns/${Qn}/challenges`)}},Kt.createElement("div",{className:Rt.img},Kt.createElement("img",{className:Rt.cover,src:`${wn}`}),Mn.is_jupyter&&Kt.createElement("img",{className:Rt.sign,src:Xe}),Mn.is_jupyter_lab&&Kt.createElement("img",{className:Rt.sign,src:De}),Mn.is_unity_3d&&Kt.createElement("img",{className:Rt.sign,src:ln})),Kt.createElement("div",{className:Rt.name},Kt.createElement($t.Z,{title:Si||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Kt.createElement("span",{className:Rt.e},Si||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Kt.createElement("div",{className:Rt.tags},Kt.createElement($t.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Kt.createElement("span",null,Kt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Kt.createElement("span",null,Mn.challenges_count))),!!Mn.myshixuns_count&&Kt.createElement($t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Kt.createElement("span",null,Kt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Kt.createElement("span",null,Mn.myshixuns_count))),Kt.createElement($t.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Kt.createElement("span",null,Kt.createElement("span",null,Mn.level))),Kt.createElement("div",{className:Rt.rate},Kt.createElement(se.Z,{allowHalf:!0,disabled:!0,defaultValue:Mn.score_info}),Kt.createElement("span",null,"\xA0",Mn.score_info?`${Mn.score_info}\u5206`:"5\u5206")))),!Ni&&Kt.createElement("div",{className:Rt.lockWrap},Kt.createElement("img",{src:`${me.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Kt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Fr.length&&Kt.createElement(Oe.Z,null)))},sn={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"},gn=Yt(73898),pn=Yt(59301),Zt=({className:Pr,dataSource:Fr=[],col:dn=4,right:nn,bottom:he=23,precision:Un=0,wrapWidth:Yn=1200,trackEventItems:Qe,loading:ye,onRemove:qe=()=>{},isCurrent:Mn=!0,showAlias:li=!1})=>{const Si=Math.floor((Yn-(dn-1)*nn)/dn),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 pn.createElement(Gt.Z,{spinning:ye},pn.createElement("div",{className:de()(sn.list,Pr)},!!(Fr!=null&&Fr.length)&&(Fr==null?void 0:Fr.map((Qn,Ni)=>{var lr;const{name:wn,id:Jn,identifier:Br,featured:vr,school_name:Tr,image_url:nr,excellent:yr,is_plan:ar}=Qn;return pn.createElement("div",{key:Jn,className:sn.wrap,style:{width:Si,marginRight:(1+Ni)%dn===0?0:nn+Un,marginBottom:he}},pn.createElement("a",{className:sn.li,onClick:Er=>{Er.preventDefault(),Er.stopPropagation(),Qe&&(0,ce.L9)([Qe]),(0,ce.xg)(`/paths/${Br}`)}},pn.createElement("div",{className:sn.img},pn.createElement("img",{className:sn.cover,src:`${nr}`}),Mn&&(0,gn.bg)()&&(Qn==null?void 0:Qn.studying)&&pn.createElement("div",{className:`${sn.movebq} user-path-items`,onClick:Er=>{Er.stopPropagation(),qe(Qn)}},pn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),pn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(lr=Qn==null?void 0:Qn.subject_tags)==null?void 0:lr.map((Er,co)=>{var jo,Xn;if(co===0){const as=(jo=Fe.find(Eo=>Eo.name==Er))==null?void 0:jo.swimg;return pn.createElement("img",{className:sn.sign,src:as,style:{left:"-4px"}})}const Oo=(Xn=Fe.find(as=>as.name==Er))==null?void 0:Xn.ptimg;return pn.createElement("img",{className:sn.sign,src:Oo,style:{left:`${48+52*(co-1)+2*co}px`}})}),pn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Qn==null?void 0:Qn.excellent)&&pn.createElement("div",{className:sn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),pn.createElement("div",{className:sn.name},pn.createElement($t.Z,{title:li&&(Qn!=null&&Qn.excellent_alias_name)?pn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${wn}`,pn.createElement("br",null),pn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Qn==null?void 0:Qn.excellent_alias_name}`)):wn},pn.createElement("span",{className:sn.e},li&&(Qn==null?void 0:Qn.excellent_alias_name)||wn))),pn.createElement($t.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Tr}`},pn.createElement("div",{className:sn.unit},pn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Tr)),pn.createElement("div",{className:sn.tags},pn.createElement("div",null,pn.createElement($t.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},pn.createElement("span",null,pn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),pn.createElement("span",null,Qn.stages_count))),pn.createElement($t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},pn.createElement("span",null,pn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),pn.createElement("span",null,Qn.members_count)))))))})),!Fr.length&&pn.createElement(Oe.Z,null)))},Ye={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"},Gn="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",ri=Yt(59301),In=({className:Pr,dataSource:Fr=[],col:dn=4,right:nn,bottom:he=23,precision:Un=0,wrapWidth:Yn=1200,trackEventItems:Qe,loading:ye,handleVery:qe=()=>{}})=>{const Mn=Math.floor((Yn-(dn-1)*nn)/dn);return ri.createElement(Gt.Z,{spinning:ye},ri.createElement("div",{className:de()(Ye.list,Pr)},!!Fr.length&&Fr.map((li,Si)=>{const{subject_identifier:Fe,id:Qn,identifier:Ni,power:lr}=li,wn=li.is_public!=0&&li.is_public;return ri.createElement("div",{className:Ye.wrap,key:Qn,style:{width:Mn,marginRight:(1+Si)%dn===0?0:nn+Un,marginBottom:he}},ri.createElement("a",{className:Ye.li,onClick:Jn=>{Jn.preventDefault(),qe(li==null?void 0:li.first_category_url)}},ri.createElement("div",{className:Ye.top},ri.createElement($t.Z,{title:li.name},ri.createElement("div",{className:Ye.name},li.name)),ri.createElement("img",{className:Ye.img,src:me.Z.IMG_SERVER+"/images/"+li.avatar_url}),ri.createElement("div",{className:Ye.text,title:li.creator},li.creator),Fe&&ri.createElement("div",{className:Ye.btns},ri.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ri.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),wn&&ri.createElement("div",{className:Ye.sign},"\u516C\u5F00")),ri.createElement("div",{className:Ye.bottom},li.visits>0&&ri.createElement($t.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ri.createElement("span",null,ri.createElement("i",{className:"iconfont icon-liulanyan"}),ri.createElement("span",null,li.visits))),li.course_members_count>0&&ri.createElement($t.Z,{title:"\u6210\u5458",placement:"bottom"},ri.createElement("span",null,ri.createElement("i",{className:"iconfont icon-chengyuan"}),li.course_members_count)),li.tasks_count>0&&ri.createElement($t.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ri.createElement("span",null,ri.createElement("i",{className:"iconfont icon-zuoye"}),li.tasks_count)),li.is_end?ri.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ri.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!li.is_accessible&&ri.createElement("div",{className:Ye.lockWrap},ri.createElement("img",{src:`${me.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ri.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Fr.length&&ri.createElement(Oe.Z,null)))},Wn={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"},xi=Yt(24459),zi=({dataSource:Pr=[],value:Fr,onChange:dn,className:nn,style:he={},tabBarExtraContent:Un})=>Kt.createElement("div",{className:de()(Wn.tabs,nn),style:he},Kt.createElement("div",{className:Wn.tabsWrap},Pr.map((Yn,Qe)=>!(Yn!=null&&Yn.hide)&&Kt.createElement("aside",{className:Wn.tab,onClick:()=>{dn(Yn.id),Yn.link&&xi.history.push(Yn.link)},key:Qe},Kt.createElement("div",{className:Fr===Yn.id?Wn.active:""},Yn.name),(Yn==null?void 0:Yn.resetCount)==null&&(Yn==null?void 0:Yn.total)!==void 0&&Kt.createElement("span",null,"\uFF08",Yn==null?void 0:Yn.total,"\uFF09"),(Yn==null?void 0:Yn.resetCount)!==void 0&&(Yn==null?void 0:Yn.total)!==void 0&&Kt.createElement($t.Z,{title:(Yn==null?void 0:Yn.tip)!=null?Yn==null?void 0:Yn.tip:""},Kt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Kt.createElement("span",{style:{color:"#000"}},Yn==null?void 0:Yn.resetCount),"/",Kt.createElement("span",null,Yn==null?void 0:Yn.total),"\uFF09"))))),Kt.createElement("div",{className:Wn.tabBar},Un)),Ai=({className:Pr,style:Fr={},children:dn})=>Kt.createElement("div",{className:de()(Pr),style:Fr},dn),Ti={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"},ue=Yt(38854),Tt=Yt(20834);const Ct=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ht=({sortValue:Pr,dropValue:Fr,className:dn,onSort:nn,onDrop:he,dataSource:Un=Ct})=>{var Yn;return Kt.createElement("div",{className:de()(Ti.orderWrap,dn)},Kt.createElement(ue.Z,{dropdownRender:()=>Kt.createElement(Tt.default,null,Un.map((Qe,ye)=>Kt.createElement(Tt.default.Item,{key:ye,onClick:()=>he(Qe.id)},Qe.name)))},Kt.createElement("span",{className:Ti.orderTextWrap},(Yn=Un.find(Qe=>Fr===Qe.id))==null?void 0:Yn.name)),Kt.createElement("span",{className:Ti.orderIconWrap},Kt.createElement("span",{className:Ti.orderAsc},Kt.createElement("i",{className:Pr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ti.cursorPointer} ${Ti.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ti.cursorPointer}`,onClick:()=>nn(Pr==="asc"?"desc":"asc")})),Kt.createElement("span",{className:Ti.orderDesc},Kt.createElement("i",{className:Pr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ti.cursorPointer} ${Ti.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ti.cursorPointer}`,onClick:()=>nn(Pr==="asc"?"desc":"asc")}))))},Mt={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"},be=Yt(3113),Ge=Object.defineProperty,vn=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,kn=(Pr,Fr,dn)=>Fr in Pr?Ge(Pr,Fr,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Pr[Fr]=dn,Bn=(Pr,Fr)=>{for(var dn in Fr||(Fr={}))Fn.call(Fr,dn)&&kn(Pr,dn,Fr[dn]);if(vn)for(var dn of vn(Fr))An.call(Fr,dn)&&kn(Pr,dn,Fr[dn]);return Pr},Vn=(Pr,Fr)=>{var dn={};for(var nn in Pr)Fn.call(Pr,nn)&&Fr.indexOf(nn)<0&&(dn[nn]=Pr[nn]);if(Pr!=null&&vn)for(var nn of vn(Pr))Fr.indexOf(nn)<0&&An.call(Pr,nn)&&(dn[nn]=Pr[nn]);return dn},bi=(Pr,Fr,dn)=>new Promise((nn,he)=>{var Un=ye=>{try{Qe(dn.next(ye))}catch(qe){he(qe)}},Yn=ye=>{try{Qe(dn.throw(ye))}catch(qe){he(qe)}},Qe=ye=>ye.done?nn(ye.value):Promise.resolve(ye.value).then(Un,Yn);Qe((dn=dn.apply(Pr,Fr)).next())}),an=Pr=>{var Fr=Pr,{className:dn,style:nn,children:he,loading:Un=!1,openLoading:Yn,onClick:Qe=()=>{},size:ye="middle",shape:qe="round"}=Fr,Mn=Vn(Fr,["className","style","children","loading","openLoading","onClick","size","shape"]);const[li,Si]=(0,Kt.useState)(!1);return Kt.createElement(be.ZP,Bn({onClick:(0,ve.throttle)(Fe=>bi(void 0,null,function*(){Yn&&Si(!0);try{yield Qe(Fe)}catch(Qn){console.log("error",Qn)}Yn&&Si(!1)}),2e3,{leading:!0,trailing:!1}),className:de()(Mt.btn,Mt[`${ye}-${qe}`],dn),style:nn,size:ye,shape:qe,loading:li||Un},Mn),he)},ei={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"},Pi=({className:Pr,style:Fr,children:dn=null,onClick:nn,title:he})=>Kt.createElement("div",{className:de()(ei.head,Pr),style:Fr},Kt.createElement("span",{className:"primary-hover",onClick:nn},Kt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Kt.createElement("b",{title:he},he),Kt.createElement("div",{className:ei.node},dn)),sr={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"},Ao=({confirmShow:Pr=!0,confirmTitle:Fr,confirmClick:dn,cancelShow:nn=!0,cancelTitle:he,cancelClick:Un,className:Yn,style:Qe,confirmLoading:ye=!1})=>Kt.createElement("div",{className:de()(sr.btns,Yn),style:Qe},Pr&&Kt.createElement(be.ZP,{loading:ye,onClick:dn,type:"primary",className:sr.confirm},Fr),nn&&Kt.createElement(be.ZP,{onClick:Un,className:sr.cancel},he)),po={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"},Ho=({className:Pr,style:Fr={},LeftContent:dn,children:nn,RightContent:he})=>Kt.createElement("div",{className:de()(po.fixedBottom,Pr),style:Fr},Kt.createElement("div",{className:po.wrap},Kt.createElement("div",{className:po.left},dn),Kt.createElement("div",{className:po.center},nn),Kt.createElement("div",{className:po.right},he))),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"},hr=({className:Pr,style:Fr={},dataSource:dn=[]})=>Kt.createElement("div",{className:de()(Co.crumbs,Pr),style:Fr},dn.map((nn,he)=>he<dn.length-1?Kt.createElement(Kt.Fragment,{key:he},nn.path||nn.onClick?Kt.createElement("span",{className:Co.hover,onClick:nn!=null&&nn.onClick?nn.onClick:()=>xi.history.push(nn.path)},nn.name):Kt.createElement("span",null,nn.name),Kt.createElement("span",null,"\xA0",">","\xA0")):Kt.createElement("span",{key:he,style:{color:"#5F6368"}},nn.name))),to=Yt(31797),oo=Object.defineProperty,Jo=Object.defineProperties,Ns=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,Xs=Object.prototype.hasOwnProperty,vo=Object.prototype.propertyIsEnumerable,jt=(Pr,Fr,dn)=>Fr in Pr?oo(Pr,Fr,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Pr[Fr]=dn,la=(Pr,Fr)=>{for(var dn in Fr||(Fr={}))Xs.call(Fr,dn)&&jt(Pr,dn,Fr[dn]);if(ys)for(var dn of ys(Fr))vo.call(Fr,dn)&&jt(Pr,dn,Fr[dn]);return Pr},os=(Pr,Fr)=>Jo(Pr,Ns(Fr)),_s=(Pr,Fr)=>{var dn={};for(var nn in Pr)Xs.call(Pr,nn)&&Fr.indexOf(nn)<0&&(dn[nn]=Pr[nn]);if(Pr!=null&&ys)for(var nn of ys(Pr))Fr.indexOf(nn)<0&&vo.call(Pr,nn)&&(dn[nn]=Pr[nn]);return dn};const{Countdown:Ss}=to.default;var fa=Pr=>{var Fr=Pr,{onChange:dn}=Fr,nn=_s(Fr,["onChange"]);const[he,Un]=(0,Kt.useState)(null);(0,Kt.useEffect)(()=>{typeof he=="number"&&he>=0&&dn(he)},[he]);const Yn=Qe=>{const ye=Math.floor(Qe/1e3);Un(ye)};return Kt.createElement(Ss,os(la({},nn),{onChange:Yn}))}},50505:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Le}});var Kt=Yt(59301);function Le(Te,xn){const Se=(0,Kt.useRef)();(0,Kt.useEffect)(()=>{Se.current=Te}),(0,Kt.useEffect)(()=>{function We(){Se.current()}if(xn!==null){let je=setInterval(We,xn);return()=>clearInterval(je)}},[xn])}},80496:function(Ci,Ii,Yt){"use strict";Yt.r(Ii),Yt.d(Ii,{default:function(){return zi}});var Kt=Yt(59301),Le=Yt(8591),Te=Yt(43418),xn=Yt(71418),Se=Yt(60324),We=Yt(5112),je=Yt(81327),de={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"},ve=Yt(7660),It=Yt(24459),xe=Yt(88230),ee=Yt(38446),ge=Yt(13669),Qt=Yt(61186),et=Yt.n(Qt),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=Yt(64726),at=Yt(99325),ft=Yt(56102),vt=Yt(44164),Nt=Yt.n(vt),Rt=(Ie,Ai,Ti)=>new Promise((ue,Tt)=>{var Ct=Mt=>{try{Ht(Ti.next(Mt))}catch(be){Tt(be)}},zt=Mt=>{try{Ht(Ti.throw(Mt))}catch(be){Tt(be)}},Ht=Mt=>Mt.done?ue(Mt.value):Promise.resolve(Mt.value).then(Ct,zt);Ht((Ti=Ti.apply(Ie,Ai)).next())});const Gt=Ie=>{const Ai=/```[a-z]*\n([\s\S]*?)```/g;return Ie.replace(Ai,(Ti,ue)=>`<code>${ue.trim()}</code>`)},$t=(Ie,Ai,Ti)=>{const ue={markdown:"text/markdown",html:"text/html"},Tt=new Blob([Ie],{type:ue[Ti]}),Ct=URL.createObjectURL(Tt),zt=document.createElement("a");zt.href=Ct,zt.download=Ai,zt.click(),URL.revokeObjectURL(Ct)},se=Ie=>et()(Ie).format("YYYY-MM-DD HH:mm:ss"),me=(Ie,Ai,Ti)=>Ie.map((ue,Tt)=>`
|
|
|
${Tt!==0?`
|
|
|
<div class="message">
|
|
|
<p class="user-name">${Ai}<span class="timestamp">${se(ue.updated_at)}</span></p>
|
|
|
<pre class="code">${Gt(ue.question)}</pre>
|
|
|
</div>`:""}
|
|
|
<div class="message">
|
|
|
<p class="user-name">${Ti}<span class="timestamp">${se(ue.updated_at)}</span></p>
|
|
|
<pre class="code">${Gt(ue.answer)}</pre>
|
|
|
</div>
|
|
|
`).join(""),ce=(Ie,Ai,Ti)=>Ie.map((ue,Tt)=>`${Tt!==0?`${Ai}
|
|
|
${se(ue.updated_at)}
|
|
|
${ue.question}
|
|
|
|
|
|
`:""}${Ti}
|
|
|
${se(ue.updated_at)}
|
|
|
${ue.answer}
|
|
|
|
|
|
`).join(""),Xe=(Ie,Ai)=>Rt(void 0,null,function*(){const Ti=me(Ie.data,Ie.my_user_name,Ie.user_name),ue=ce(Ie.data,Ie.my_user_name,Ie.user_name),Tt=`export-id-${String(Math.random()).slice(-6)}`,Ct=`
|
|
|
<!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=${Tt}>
|
|
|
${Ti}
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>
|
|
|
`;if(Ai.key==="html")$t(Ct,`\u4E0E${Ie.user_name}\u5BF9\u8BDD\u5185\u5BB9.html`,"html");else if(Ai.key==="markdown")$t(ue,`\u4E0E${Ie.user_name}\u5BF9\u8BDD\u5185\u5BB9.md`,"markdown");else if(Ai.key==="pdf"){const zt=Te.default.info({icon:null,width:460,title:"\u63D0\u793A",content:"\u6B63\u5728\u5BFC\u51FAPDF\u4E2D...",maskClosable:!1,keyboard:!1,okButtonProps:{style:{display:"none"}}}),Ht=document.createElement("div");Ht.innerHTML=Ct.replaceAll("box-shadow","// box-shadow"),document.body.appendChild(Ht);const Mt=document.getElementById(Tt);if(!Mt){console.error("PDF \u5143\u7D20\u672A\u627E\u5230");return}Mt.style.width="auto",Mt.style.height="auto",Mt.style.position="initial";const be={html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1},jsPDF:{unit:"in",format:"letter",orientation:"portrait"},pagebreak:{mode:["avoid-all"]}};Nt()().set(be).from(Mt).toPdf().get("pdf").save(`\u4E0E${Ie.user_name}\u5BF9\u8BDD\u5185\u5BB9.pdf`).finally(()=>{zt.destroy(),document.body.removeChild(Ht)})}});var De={cursor:"cursor___XqlqI"},Oe=({text:Ie,open:Ai=!1,onTextChange:Ti})=>{const[ue,Tt]=(0,Kt.useState)(""),[Ct,zt]=(0,Kt.useState)(0),[Ht,Mt]=(0,Kt.useState)(!0);return(0,Kt.useEffect)(()=>{if(Ai)if(Ct<Ie.length){Mt(!1);const be=setTimeout(()=>{Tt(Ge=>Ge+Ie[Ct]),zt(Ct+1),Ti()},50);return()=>clearTimeout(be)}else Mt(!0),Ti();else Tt(Ie),zt(0),Mt(!0)},[Ct,Ie,Ai]),Kt.createElement(at.Z,{value:ue+(Ht?"":`<span class='${De.cursor}'></span>`)})},mn={menuWrap:"menuWrap___GDodS",menuMask:"menuMask___dldKr",menu:"menu___OrkS3",itemTwo:"itemTwo___gOXTT",item:"item___XhZWJ",itemDisabled:"itemDisabled___pRoiI",menuWrapRight:"menuWrapRight___Tgo4N"},Kn=Yt(15965),sn=Yt(92310),gn=Yt.n(sn),fe=({disabled:Ie=!1,recoverDisabled:Ai=!1,onFileType:Ti,onRecover:ue,onEmpty:Tt})=>{const[Ct,zt]=(0,Kt.useState)(!1),[Ht,Mt]=(0,Kt.useState)(!1),be=(0,Kt.useRef)(null),Ge=[{key:"html",label:"\u5BFC\u51FA\u6210HTML"},{key:"markdown",label:"\u5BFC\u51FA\u6210Markdown"},{key:"pdf",label:"\u5BFC\u51FA\u6210PDF"}],vn=()=>{if(!Ie){if(be.current){const Fn=be.current.getBoundingClientRect(),An=window.innerWidth-Fn.right;Mt(An>300)}zt(!0)}};return console.log(Ht),Kt.createElement("div",{ref:be,className:gn()(mn.menuWrap,Ht&&mn.menuWrapRight),onMouseEnter:vn,onMouseLeave:()=>zt(!1)},Kt.createElement(Kn.op,{disabled:Ie},Kt.createElement("i",{className:"iconfont icon-gengduo6 font12 mr5"}),"\u66F4\u591A\u64CD\u4F5C"),Kt.createElement("div",{className:mn.menuMask,style:{display:Ct?"block":"none"}},Kt.createElement("div",{className:mn.menu},Kt.createElement("div",{className:mn.itemOne},Kt.createElement("div",{className:mn.item,style:{cursor:"auto"}},Kt.createElement("span",null,"\u5BFC\u51FA\u5BF9\u8BDD"),Kt.createElement("div",{className:mn.itemTwo},Ge.map(Fn=>Kt.createElement("div",{key:Fn.key,onClick:()=>{zt(!1),Ti(Fn)},className:mn.item},Fn.label)))),Ai?Kt.createElement("div",{className:mn.itemDisabled},"\u6062\u590D\u5BF9\u8BDD"):Kt.createElement("div",{onClick:Fn=>{zt(!1),ue(Fn)},className:mn.item},"\u6062\u590D\u5BF9\u8BDD"),Kt.createElement("div",{onClick:Fn=>{zt(!1),Tt(Fn)},className:mn.item},"\u6E05\u7A7A\u5BF9\u8BDD")))))},Zt=Yt(59301),Ye=Object.defineProperty,Gn=Object.getOwnPropertySymbols,ri=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,In=(Ie,Ai,Ti)=>Ai in Ie?Ye(Ie,Ai,{enumerable:!0,configurable:!0,writable:!0,value:Ti}):Ie[Ai]=Ti,Wn=(Ie,Ai)=>{for(var Ti in Ai||(Ai={}))ri.call(Ai,Ti)&&In(Ie,Ti,Ai[Ti]);if(Gn)for(var Ti of Gn(Ai))cn.call(Ai,Ti)&&In(Ie,Ti,Ai[Ti]);return Ie},xi=(Ie,Ai,Ti)=>new Promise((ue,Tt)=>{var Ct=Mt=>{try{Ht(Ti.next(Mt))}catch(be){Tt(be)}},zt=Mt=>{try{Ht(Ti.throw(Mt))}catch(be){Tt(be)}},Ht=Mt=>Mt.done?ue(Mt.value):Promise.resolve(Mt.value).then(Ct,zt);Ht((Ti=Ti.apply(Ie,Ai)).next())}),zi=({})=>{var Ie,Ai,Ti,ue;const{id:Tt,position:Ct}=(0,xe.oP)(),[zt,Ht]=(0,Kt.useState)(!0),[Mt,be]=(0,Kt.useState)(!1),Ge=(0,Kt.useRef)("bottomRight"),vn=(0,Kt.useRef)();let[Fn,An]=(0,Kt.useState)({});const[kn,Bn]=(0,Kt.useState)(Number(Tt)),[Vn,bi]=(0,Kt.useState)([]),[Pn,an]=(0,Kt.useState)(1),[ei,Ui]=(0,Kt.useState)(Number(Ct)),Pi=(0,Kt.useRef)(Number(Ct)),[sr,Or]=(0,Kt.useState)([]),[Ao,po]=(0,Kt.useState)(!1),[Zr,Ho]=(0,Kt.useState)(!0),Co=(0,Kt.useRef)(null),Jr=(0,Kt.useRef)(1),[hr,to]=(0,Kt.useState)({});let[oo,Jo]=(0,Kt.useState)("");const[Ns,ys]=(0,Kt.useState)(!1),[Xs,vo]=(0,Kt.useState)(!1),[jt]=(0,It.useSearchParams)();(0,Kt.useEffect)(()=>((0,It.getDvaApp)()._store.dispatch({type:"globalSetting/footerToggle",payload:!1}),()=>{(0,It.getDvaApp)()._store.dispatch({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,Kt.useEffect)(()=>{la()},[]),(0,Kt.useEffect)(()=>{Co.current.scrollTop=Co.current.scrollHeight},[Pn]),(0,Kt.useEffect)(()=>{const qe=document.getElementById("wechat_QR_code_ids");return qe.classList.add("hide"),()=>{qe.classList.remove("hide")}},[]);const la=()=>xi(void 0,null,function*(){var qe,Mn;const li=yield(0,ve.ZP)("/api/chats.json",{method:"post",body:{to_user_id:Tt}});if((li==null?void 0:li.status)===0){const Si=yield(0,ve.ZP)("/api/chats.json",{method:"get",params:{to_user_id:Tt,challenge_id:Number(Ct)||""}});if(Si!=null&&Si.data){Ho(!1),bi((Si==null?void 0:Si.data)||[]);const Fe=(Mn=(qe=Si==null?void 0:Si.data)==null?void 0:qe.find(Qn=>Qn.to_user_id===Number(Tt)))==null?void 0:Mn.id;Bn(Fe),os(Fe),Ss(Fe,Ct)}}}),os=qe=>xi(void 0,null,function*(){const Mn=yield(0,ve.ZP)("/api/chats/challenge_list.json",{method:"get",params:{id:qe,challenge_id:ei||""}});Mn!=null&&Mn.challenges&&Or([{id:0,subject:"\u5168\u90E8"},...Mn.challenges])}),_s=(qe,Mn)=>xi(void 0,null,function*(){const li=yield(0,ve.ZP)("/api/chats.json",{method:"get",params:{to_user_id:qe,challenge_id:Mn||""}});li!=null&&li.data&&bi((li==null?void 0:li.data)||[]),Ho(!1)}),Ss=(qe,Mn,li)=>xi(void 0,null,function*(){var Si;Ht(!0);const Fe=yield(0,ve.ZP)(`/api/chats/${qe}.json`,{method:"get",params:{challenge_id:Number(Mn)||""}});if(Fe!=null&&Fe.data){li&&(Fe.data[Fe.data.length-1].open=!0),to(Wn({},Fe)||{}),po(!0),be(!1);const Qn=(Si=Vn==null?void 0:Vn.find(Ni=>Ni.id===qe))==null?void 0:Si.to_user_id;window.location.host==="gpt.educoder.net"?jt.get("homeworkId")?It.history.replace(`/chatgpt?id=0&position=0&homeworkId=${jt.get("homeworkId")}`):It.history.replace("/chatgpt?id=0&position=0"):jt.get("homeworkId")?It.history.replace(`/chatgpt?id=${Qn||Tt}&position=${Mn}&homeworkId=${jt.get("homeworkId")}`):It.history.replace(`/chatgpt?id=${Qn||Tt}&position=${Mn}`),li&&(an(Math.random()),_s(Qn,Mn))}Ht(!1)}),ca=qe=>{var Mn;Jo(qe),(Mn=qe==null?void 0:qe.trim())==null||Mn.length},fa=qe=>{Jr.current=Jr.current+1,Bn(qe),Ui(0),Jo(""),be(!1),Ss(qe,0),os(qe)},Pr=()=>xi(void 0,null,function*(){var qe;if(oo.trim().length===0){Le.ZP.error("\u4E0D\u80FD\u8F93\u5165\u7EAF\u7A7A\u683C");return}if(!oo){Le.ZP.warning("\u8BF7\u8F93\u5165\u4F60\u8981\u95EE\u7684\u95EE\u9898");return}be(!0);const Mn=et()().format("YYYY-MM-DDTHH:mm:ss.SSSZ"),li=Wn({},hr);(qe=li==null?void 0:li.data)==null||qe.push({id:0,updated_at:Mn,question:oo,answer:Zt.createElement("div",{className:de.animation},"\u8001\u5E08\u6B63\u5728\u56DE\u7B54\u4E2D\uFF0C\u8BF7\u7A0D\u540E")}),to(li),an(Pn+1),Jo(""),Jr.current=Jr.current+1;const Si=Jr.current,Fe=yield(0,ve.ZP)("/api/chats/get_answer",{method:"post",body:{chat_id:kn,to_user_id:Tt,question:oo,challenge_id:ei||"",time:Mn}});Si===Jr.current&&(Fe==null?void 0:Fe.status)===0&&Ss(kn,ei,!0)}),Fr=()=>{Ss(kn,ei),_s(Tt,ei),ys(!1)},dn=(qe,Mn,li="")=>xi(void 0,null,function*(){Ht(!0);let Si={};jt.get("homeworkId")?Si={id:qe,satisfied:Mn,content:li,homework_common_id:jt.get("homeworkId")}:Si={id:qe,satisfied:Mn,content:li};const Fe=yield(0,ve.ZP)("/api/chats/praise.json",{method:"post",body:Si});(Fe==null?void 0:Fe.status)===0&&Ss(kn,ei)}),nn=qe=>{qe.shiftKey&&qe.keyCode===13||qe.keyCode===13&&(qe.preventDefault(),Pr())},he=qe=>xi(void 0,null,function*(){Te.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:()=>xi(void 0,null,function*(){(yield(0,ve.ZP)("/api/chats/delete_one.json",{method:"delete",body:{id:qe}})).status===0&&(Le.ZP.success("\u5220\u9664\u6210\u529F"),Ss(kn,ei))})})}),Un=()=>xi(void 0,null,function*(){Ht(!0),Jr.current=Jr.current+1,(yield(0,ve.ZP)("/api/chats/stop_one.json",{method:"delete",body:{challenge_id:ei,id:kn}})).status===0&&Ss(kn,ei),Ht(!1)}),Yn=[`\u8BF7${hr==null?void 0:hr.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"],Qe=qe=>{Xe(hr,qe)},ye=()=>{};return Zt.createElement("div",{className:de.wrap},Zt.createElement("div",{className:de.head},Zt.createElement("b",null,"\u5B9E\u8BAD >"),"\u6559\u5B66\u8F85\u5BFC\uFF08beta\u7248\u672C\uFF09"),Zt.createElement("div",{className:de.content},Zt.createElement(xn.Z,{spinning:Zr},Zt.createElement("div",{className:de.left,onClick:()=>{vo(!1)}},Zt.createElement("div",{className:de.title},Zt.createElement("span",null,"\u95EE\u7B54\u5217\u8868"),Zt.createElement("div",{className:gn()(de.add,Mt&&de.disabledElement),onClick:()=>xi(void 0,null,function*(){if(Mt)return;Ho(!0);const qe=yield(0,ve.ZP)("/api/chats.json",{method:"post",body:{to_user_id:Tt,new_chat:!0}});if(qe.status===0){const Mn=qe==null?void 0:qe.id;if(Mn===kn){Le.ZP.warning("\u5F53\u524D\u5DF2\u7ECF\u5728\u65B0\u5BF9\u8BDD\u7A97\u53E3"),Ho(!1);return}yield _s(-1,0),Bn(Mn),Ui(0),yield Ss(Mn,0)}Ho(!1)})})),Zt.createElement("div",{className:de.leftBar},Vn.map(qe=>Zt.createElement("div",{key:qe.id,onClick:()=>fa(qe.id),className:`${de.li} ${qe.id===kn?de.active:""}`},qe!=null&&qe.avatar?Zt.createElement("img",{src:`${ee.Z.IMG_SERVER}/images/${qe==null?void 0:qe.avatar}`}):Zt.createElement("img",{src:nt}),Zt.createElement("aside",null,Zt.createElement("p",null,Zt.createElement("b",{title:qe.user_name},qe.user_name),Zt.createElement("span",null,qe.time)),Zt.createElement("div",null,qe.last_message))))))),Zt.createElement("div",{className:de.right},Ao&&Zt.createElement("div",{className:de.title,onClick:()=>{vo(!1)}},Zt.createElement("section",{className:de.center},Zt.createElement("span",null,"\u4E0E",hr==null?void 0:hr.user_name,"\u8001\u5E08\u6C9F\u901A\u4E2D\u2026"),Zt.createElement("div",{className:de.tabs},Zt.createElement("i",{className:"iconfont icon-lianjie3"}),Zt.createElement("span",null,"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A",hr!=null&&hr.challenge_name?`${(Ai=(Ie=hr==null?void 0:hr.data[0])==null?void 0:Ie.shixun)==null?void 0:Ai.name} \u5B9E\u8BAD---\u7B2C${hr==null?void 0:hr.challenge_position}\u5173`:"\u5168\u90E8"),Zt.createElement("span",{onClick:()=>{Mt||(Pi.current=ei,ys(!0))},className:gn()(de.cut,Mt&&de.disabledElement)},"\u5207\u6362")),Zt.createElement(fe,{disabled:Mt,recoverDisabled:!(hr!=null&&hr.can_recycle),onFileType:Qe,onRecover:()=>xi(void 0,null,function*(){Ht(!0),(yield(0,ve.ZP)("/api/chats/recycle.json",{method:"post",body:{challenge_id:ei,id:kn}})).status===0&&(Le.ZP.success("\u6062\u590D\u5BF9\u8BDD\u6210\u529F"),_s(Tt,ei),Ss(kn,ei)),Ht(!1)}),onEmpty:()=>{Te.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:()=>xi(void 0,null,function*(){(yield(0,ve.ZP)("/api/chats/clean.json",{method:"delete",body:{challenge_id:ei,id:kn}})).status===0&&(Le.ZP.success("\u6E05\u7A7A\u5BF9\u8BDD\u6210\u529F"),_s(Tt,ei),Ss(kn,ei))})})}}))),Zt.createElement("div",{onClick:()=>{vo(!1)},className:de.rightBar,ref:Co},Zt.createElement(xn.Z,{spinning:zt},!((Ti=hr==null?void 0:hr.data)!=null&&Ti.length)&&Zt.createElement("div",{className:de.empty}),(ue=hr==null?void 0:hr.data)==null?void 0:ue.map((qe,Mn)=>{var li,Si,Fe;return Zt.createElement(Kt.Fragment,{key:Mn},!!qe.question&&Zt.createElement("div",{className:de.li},Zt.createElement("img",{src:`${ee.Z.IMG_SERVER}/images/${hr==null?void 0:hr.my_avatar}`,style:{borderRadius:"50%",width:56,height:56}}),Zt.createElement("aside",null,Zt.createElement("p",null,Zt.createElement("b",null,hr.my_user_name),Zt.createElement("span",null,et()(qe.updated_at).format("YYYY-MM-DD HH:mm"))),Zt.createElement(at.Z,{value:qe.question}),Zt.createElement("div",{className:de.action},Zt.createElement(ft.CopyToClipboard,{text:qe.question,onCopy:()=>Le.ZP.success("\u5185\u5BB9\u5DF2\u590D\u5236\u5230\u7C98\u8D34\u677F\u4E2D")},Zt.createElement("div",{className:de.tagBtn},Zt.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236")),!Mt&&Zt.createElement("div",{onClick:()=>he(qe.id),className:de.tagBtn},Zt.createElement("i",{className:"iconfont icon-shanchu8"}),"\u5220\u9664")))),!!qe.answer&&Zt.createElement("div",{style:Mn===0?{borderTop:0}:{},className:`${de.li} ${de.active}`},hr!=null&&hr.avatar?Zt.createElement("img",{src:`${ee.Z.IMG_SERVER}/images/${hr==null?void 0:hr.avatar}`,style:{borderRadius:"50%",width:56,height:56}}):Zt.createElement("img",{src:nt,style:{borderRadius:"50%",width:56,height:56}}),Zt.createElement("aside",null,Zt.createElement("p",null,Zt.createElement("div",{style:{display:"flex"}},Zt.createElement("b",{style:{marginRight:"20px"}},hr.user_name),(li=qe.shixun)!=null&&li.name?Zt.createElement("span",{style:{display:"flex",alignItems:"center"}},"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A",(Si=qe.shixun)==null?void 0:Si.name," \u5B9E\u8BAD---\u7B2C",(Fe=qe.challenge)==null?void 0:Fe.position,"\u5173"):Zt.createElement("span",{style:{display:"flex",alignItems:"center"}},"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A\u5168\u90E8")),Zt.createElement("span",null,et()(qe.updated_at).format("YYYY-MM-DD HH:mm"))),qe.id===0?qe.answer:Zt.createElement(Oe,{onTextChange:ye,open:!!(qe!=null&&qe.open),text:qe.answer}),qe.id===0&&Zt.createElement("div",{className:de.action},Zt.createElement("div",{onClick:Un,className:de.tagBtn},Zt.createElement("i",{className:"iconfont icon-tingzhishengcheng"}),"\u505C\u6B62\u751F\u6210")),(qe==null?void 0:qe.id)!==0&&Zt.createElement("div",{className:de.action},!!qe.question&&Zt.createElement(Zt.Fragment,null,Zt.createElement("div",{onClick:()=>{oo=qe.question,Pr()},className:de.tagBtn},Zt.createElement("i",{className:"iconfont icon-zhongxinshengcheng"}),"\u91CD\u65B0\u751F\u6210"),Zt.createElement(ft.CopyToClipboard,{text:qe.answer,onCopy:()=>Le.ZP.success("\u5185\u5BB9\u5DF2\u590D\u5236\u5230\u7C98\u8D34\u677F\u4E2D")},Zt.createElement("div",{className:de.tagBtn},Zt.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236")),!Mt&&Zt.createElement("div",{onClick:()=>he(qe.id),className:de.tagBtn},Zt.createElement("i",{className:"iconfont icon-shanchu8"}),"\u5220\u9664")),Zt.createElement("span",{style:{marginLeft:"auto"},onClick:()=>{dn(qe.id,qe.satisfied===1?-1:1)},className:`mr30 ${qe.satisfied===1?de.actActive:""}`},Zt.createElement("i",{className:"iconfont icon-yijiejue"}),"\u5DF2\u89E3\u51B3"),Zt.createElement(Se.Z,{autoAdjustOverflow:!1,destroyTooltipOnHide:!0,open:Fn[Mn],getPopupContainer:Qn=>Qn,placement:Ge.current,content:Zt.createElement("div",{className:de.box,onMouseLeave:Qn=>{clearTimeout(vn.current),Fn[Mn]=!1,An(Wn({},Fn))},onMouseOver:()=>{clearTimeout(vn.current)}},Zt.createElement("p",null,"\u62B1\u6B49\u8BA9\u4F60\u5931\u671B\u4E86\uFF0C\u8BF7\u7EE7\u7EED\u5C1D\u8BD5\uFF1A"),Yn.map((Qn,Ni)=>{const lr=Qn===qe.content;return Zt.createElement("div",{onClick:()=>{dn(qe.id,lr?-1:0,lr?"":Qn)},className:lr?de.hot:"",key:Qn},Qn)}))},Zt.createElement("span",{onMouseOver:Qn=>{clearTimeout(vn.current),window.innerHeight-Qn.target.getBoundingClientRect().top<350?Ge.current="topRight":Ge.current="bottomRight",Fn={},Fn[Mn]=!0,An(Wn({},Fn))},onMouseOut:Qn=>{vn.current=setTimeout(()=>{clearTimeout(vn.current),Fn[Mn]=!1,An(Wn({},Fn))},800)},className:`${de.unsolved} ${qe.satisfied===0?de.actActive:""}`},Zt.createElement("i",{className:"iconfont icon-weijiejuezhengchang"}),"\u672A\u89E3\u51B3"))))))}))),Ao&&Zt.createElement("div",{className:de.answers},!Xs&&Zt.createElement("div",{className:de.open_md,onClick:()=>{vo(!0)}},"\u8BF7\u8F93\u5165\u4F60\u7684\u95EE\u9898"),Zt.createElement("div",{className:Xs?"md_container":"md_container hide",style:{marginTop:20}},Zt.createElement(ht.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:oo,height:240,width:1e3,onChange:ca,className:de.md_editor}),Zt.createElement("div",{className:de.tip_container,style:{display:"flex"},onClick:()=>{vo(!1)}},Zt.createElement("div",{className:de.btn_send,onClick:Pr},"\u53D1\u9001")))))),Zt.createElement(Te.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,onCancel:()=>{Ui(Pi.current),ys(!1)},onOk:Fr,open:Ns,wrapClassName:ge.Z.CustomCss,title:"\u66F4\u6362\u5173\u8054",width:"666px"},Zt.createElement("div",null,Zt.createElement(We.ZP.Group,{value:ei,onChange:qe=>Ui(qe.target.value)},Zt.createElement(je.Z,{direction:"vertical"},sr==null?void 0:sr.map(qe=>{var Mn;return Zt.createElement(We.ZP,{key:qe.id,value:qe.id},qe.id===0?qe.subject:`${(Mn=qe.shixun)==null?void 0:Mn.name} \u5B9E\u8BAD---\u7B2C${qe==null?void 0:qe.challenge_position}\u5173`)}))))))}},85187:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{AL:function(){return Nt},Iy:function(){return xe},Qv:function(){return Qt},ez:function(){return vt},jb:function(){return ee}});var Kt=Yt(32834),Le=Yt.n(Kt),Te=Yt(11690),xn=Yt.n(Te);let Se=1;function We(me,ce){const Xe=me.match(/^(\s+)(?:```)/);if(Xe===null)return ce;const De=Xe[1];return ce.split(`
|
|
|
`).map(ln=>{const Oe=ln.match(/^\s+/);if(Oe===null)return ln;const[mn]=Oe;return mn.length>=De.length?ln.slice(De.length):ln}).join(`
|
|
|
`)}let je=[],de=["<ul>"];const ve=new(Le()).Renderer,It=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function xe(){je.length=0,de=["<ul>"]}const ee={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ge(me,ce,Xe,De){if(ce>=me.length||me[ce].level<=Xe)return ce;var ln=me[ce];De.push("<li><a href='#"+Se+ln.anchor+"'>"+ln.text+"</a>"),ce++;var Oe=[];return ce=ge(me,ce,ln.level,Oe),Oe.length>0&&(De.push("<ul>"),Oe.forEach(function(mn){De.push(mn)}),De.push("</ul>")),De.push("</li>"),ce=ge(me,ce,Xe,De),ce}function Qt(){return ge(je,0,0,de),de.push("</ul>"),de.join("")}const et={heading(me){const ce=It.exec(me);if(Se+=1,ce)return{type:"heading",raw:ce[0],depth:ce[1].length,text:ce[2]}},fences(me){const ce=this.rules.block.fences.exec(me);if(ce){const Xe=ce[0];let De=We(Xe,ce[3]||"");const ln=ce[2]?ce[2].trim():ce[2];if(["latex","katex","math"].indexOf(ln)>=0){const Oe=at(),mn=De;De=Oe,ft[Oe]={type:"block",expression:mn}}return{type:"code",raw:Xe,lang:ln,text:De}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const at=()=>`__special_katext_id_${ht++}__`;let ft={};function vt(){return ft}function Nt(){ht=0,ft={}}function Rt(me){return me=me.replace(nt,(ce,Xe)=>{const De=at();return ft[De]={type:"inline",expression:Xe},De}),me}const Gt=ve.listitem;ve.listitem=function(me){return Gt(Rt(me))};const $t=ve.paragraph;ve.paragraph=function(me){return $t(Rt(me))};const se=ve.tablecell;ve.tablecell=function(me,ce){return se(Rt(me),ce)},ve.code=function(me,ce,Xe){const De=(ce||"").match(/\S*/)[0];return De?["latex","katex","math"].indexOf(De)>=0?`<p class='editormd-tex'>${me}</p>`:`<pre class="prettyprint linenums"><code class="language-${ce}">${Xe?me:(0,Te.escape)(me,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Xe?me:(0,Te.escape)(me,!0))+"</code></pre>"},ve.heading=function(me,ce,Xe){let De=this.options.headerPrefix+Xe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return je.push({anchor:De,level:ce,text:me}),"<h"+ce+' id="'+Se+De+'">'+me+"</h"+ce+">"},Le().setOptions({silent:!0,gfm:!0,pedantic:!1}),Le().use({tokenizer:et,renderer:ve}),Ii.ZP=Le()},77578:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Kt}});const Kt=Le=>Le?typeof Le=="function"?Le():Le:null},56762:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Le}});var Kt=Yt(59301);function Le(){const[,Te]=Kt.useReducer(xn=>xn+1,0);return Te}},93891:function(Ci,Ii,Yt){"use strict";var Kt=Yt(59301),Le=Yt(36355),Te=Yt(64165);const xn=Se=>{const{componentName:We}=Se,{getPrefixCls:je}=(0,Kt.useContext)(Le.E_),de=je("empty");switch(We){case"Table":case"List":return Kt.createElement(Te.Z,{image:Te.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Kt.createElement(Te.Z,{image:Te.Z.PRESENTED_IMAGE_SIMPLE,className:`${de}-small`});default:return Kt.createElement(Te.Z,null)}};Ii.Z=xn},91857:function(Ci,Ii,Yt){"use strict";var Kt=Yt(59301),Le=Yt(38819),Te=Yt(92310),xn=Yt.n(Te),Se=Yt(31561),We=Yt(70425),je=Yt(18929),de=Yt(2738),ve=Yt(79676),It=Yt(53487),xe=Yt(92343),ee=Yt(36355),ge=Yt(20834),Qt=Yt(40875),et=Yt(88088),nt=Yt(47211);const ht=null,at=Rt=>{const{menu:Gt,arrow:$t,prefixCls:se,children:me,trigger:ce,disabled:Xe,dropdownRender:De,getPopupContainer:ln,overlayClassName:Oe,rootClassName:mn,open:Kn,onOpenChange:sn,visible:gn,onVisibleChange:pn,mouseEnterDelay:fe=.15,mouseLeaveDelay:Zt=.1,autoAdjustOverflow:Ye=!0,placement:Gn="",overlay:ri,transitionName:cn}=Rt,{getPopupContainer:In,getPrefixCls:Wn,direction:xi}=Kt.useContext(ee.E_),pi=Kt.useMemo(()=>{const Bn=Wn();return cn!==void 0?cn:Gn.includes("top")?`${Bn}-slide-down`:`${Bn}-slide-up`},[Wn,Gn,cn]),zi=Kt.useMemo(()=>Gn?Gn.includes("Center")?Gn.slice(0,Gn.indexOf("Center")):Gn:xi==="rtl"?"bottomRight":"bottomLeft",[Gn,xi]),Ie=Wn("dropdown",se),[Ai,Ti]=(0,nt.Z)(Ie),[,ue]=(0,et.Z)(),Tt=Kt.Children.only(me),Ct=(0,xe.Tm)(Tt,{className:xn()(`${Ie}-trigger`,{[`${Ie}-rtl`]:xi==="rtl"},Tt.props.className),disabled:Xe}),zt=Xe?[]:ce;let Ht;zt&&zt.includes("contextMenu")&&(Ht=!0);const[Mt,be]=(0,je.Z)(!1,{value:Kn!=null?Kn:gn}),Ge=(0,We.useEvent)(Bn=>{sn==null||sn(Bn),pn==null||pn(Bn),be(Bn)}),vn=xn()(Oe,mn,Ti,{[`${Ie}-rtl`]:xi==="rtl"}),Fn=(0,ve.Z)({arrowPointAtCenter:typeof $t=="object"&&$t.pointAtCenter,autoAdjustOverflow:Ye,offset:ue.marginXXS,arrowWidth:$t?ue.sizePopupArrow:0,borderRadius:ue.borderRadius}),An=Kt.useCallback(()=>{be(!1)},[]),kn=()=>{let Bn;return Gt!=null&&Gt.items?Bn=Kt.createElement(ge.default,Object.assign({},Gt)):typeof ri=="function"?Bn=ri():Bn=ri,De&&(Bn=De(Bn)),Bn=Kt.Children.only(typeof Bn=="string"?Kt.createElement("span",null,Bn):Bn),Kt.createElement(Qt.J,{prefixCls:`${Ie}-menu`,expandIcon:Kt.createElement("span",{className:`${Ie}-menu-submenu-arrow`},Kt.createElement(Le.Z,{className:`${Ie}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:An,validator:Vn=>{let{mode:bi}=Vn}},Bn)};return Ai(Kt.createElement(Se.Z,Object.assign({alignPoint:Ht},(0,de.Z)(Rt,["rootClassName"]),{mouseEnterDelay:fe,mouseLeaveDelay:Zt,visible:Mt,builtinPlacements:Fn,arrow:!!$t,overlayClassName:vn,prefixCls:Ie,getPopupContainer:ln||In,transitionName:pi,trigger:zt,overlay:kn,placement:zi,onVisibleChange:Ge}),Ct))};function ft(Rt){return Object.assign(Object.assign({},Rt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const vt=(0,It.Z)(at,"dropdown",Rt=>Rt,ft),Nt=Rt=>Kt.createElement(vt,Object.assign({},Rt),Kt.createElement("span",null));at._InternalPanelDoNotUseOrYouWillBeFired=Nt,Ii.Z=at},38854:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return et}});var Kt=Yt(91857),Le=Yt(92310),Te=Yt.n(Le),xn=Yt(59301),Se=Yt(18785),We=Yt(3113),je=Yt(36355),de=Yt(81327),ve=Yt(33234),It=Yt(47211),xe=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 ee=nt=>{const{getPopupContainer:ht,getPrefixCls:at,direction:ft}=xn.useContext(je.E_),{prefixCls:vt,type:Nt="default",danger:Rt,disabled:Gt,loading:$t,onClick:se,htmlType:me,children:ce,className:Xe,menu:De,arrow:ln,autoFocus:Oe,overlay:mn,trigger:Kn,align:sn,open:gn,onOpenChange:pn,placement:fe,getPopupContainer:Zt,href:Ye,icon:Gn=xn.createElement(Se.Z,null),title:ri,buttonsRender:cn=kn=>kn,mouseEnterDelay:In,mouseLeaveDelay:Wn,overlayClassName:xi,overlayStyle:pi,destroyPopupOnHide:zi,dropdownRender:Ie}=nt,Ai=xe(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"]),Ti=at("dropdown",vt),ue=`${Ti}-button`,[Tt,Ct]=(0,It.Z)(Ti),zt={menu:De,arrow:ln,autoFocus:Oe,align:sn,disabled:Gt,trigger:Gt?[]:Kn,onOpenChange:pn,getPopupContainer:Zt||ht,mouseEnterDelay:In,mouseLeaveDelay:Wn,overlayClassName:xi,overlayStyle:pi,destroyPopupOnHide:zi,dropdownRender:Ie},{compactSize:Ht,compactItemClassnames:Mt}=(0,ve.ri)(Ti,ft),be=Te()(ue,Mt,Xe,Ct);"overlay"in nt&&(zt.overlay=mn),"open"in nt&&(zt.open=gn),"placement"in nt?zt.placement=fe:zt.placement=ft==="rtl"?"bottomLeft":"bottomRight";const Ge=xn.createElement(We.ZP,{type:Nt,danger:Rt,disabled:Gt,loading:$t,onClick:se,htmlType:me,href:Ye,title:ri},ce),vn=xn.createElement(We.ZP,{type:Nt,danger:Rt,icon:Gn}),[Fn,An]=cn([Ge,vn]);return Tt(xn.createElement(de.Z.Compact,Object.assign({className:be,size:Ht,block:!0},Ai),Fn,xn.createElement(Kt.Z,Object.assign({},zt),An)))};ee.__ANT_BUTTON=!0;var ge=ee;const Qt=Kt.Z;Qt.Button=ge;var et=Qt},47211:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return xe}});var Kt=Yt(17313),Le=Yt(13826),Te=Yt(92899),xn=Yt(29878),Se=Yt(19447),We=Yt(83116),je=Yt(37613),ve=ee=>{const{componentCls:ge,menuCls:Qt,colorError:et,colorTextLightSolid:nt}=ee,ht=`${Qt}-item`;return{[`${ge}, ${ge}-menu-submenu`]:{[`${Qt} ${ht}`]:{[`&${ht}-danger:not(${ht}-disabled)`]:{color:et,"&:hover":{color:nt,backgroundColor:et}}}}}};const It=ee=>{const{componentCls:ge,menuCls:Qt,zIndexPopup:et,dropdownArrowDistance:nt,sizePopupArrow:ht,antCls:at,iconCls:ft,motionDurationMid:vt,dropdownPaddingVertical:Nt,fontSize:Rt,dropdownEdgeChildPadding:Gt,colorTextDisabled:$t,fontSizeIcon:se,controlPaddingHorizontal:me,colorBgElevated:ce}=ee;return[{[ge]:Object.assign(Object.assign({},(0,Kt.Wf)(ee)),{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:se}},[`${ge}-wrap`]:{position:"relative",[`${at}-btn > ${ft}-down`]:{fontSize:se},[`${ft}-down::before`]:{transition:`transform ${vt}`}},[`${ge}-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${ge}-placement-bottomLeft,
|
|
|
&${at}-slide-down-appear${at}-slide-down-appear-active${ge}-placement-bottomLeft,
|
|
|
&${at}-slide-down-enter${at}-slide-down-enter-active${ge}-placement-bottom,
|
|
|
&${at}-slide-down-appear${at}-slide-down-appear-active${ge}-placement-bottom,
|
|
|
&${at}-slide-down-enter${at}-slide-down-enter-active${ge}-placement-bottomRight,
|
|
|
&${at}-slide-down-appear${at}-slide-down-appear-active${ge}-placement-bottomRight`]:{animationName:Le.fJ},[`&${at}-slide-up-enter${at}-slide-up-enter-active${ge}-placement-topLeft,
|
|
|
&${at}-slide-up-appear${at}-slide-up-appear-active${ge}-placement-topLeft,
|
|
|
&${at}-slide-up-enter${at}-slide-up-enter-active${ge}-placement-top,
|
|
|
&${at}-slide-up-appear${at}-slide-up-appear-active${ge}-placement-top,
|
|
|
&${at}-slide-up-enter${at}-slide-up-enter-active${ge}-placement-topRight,
|
|
|
&${at}-slide-up-appear${at}-slide-up-appear-active${ge}-placement-topRight`]:{animationName:Le.Qt},[`&${at}-slide-down-leave${at}-slide-down-leave-active${ge}-placement-bottomLeft,
|
|
|
&${at}-slide-down-leave${at}-slide-down-leave-active${ge}-placement-bottom,
|
|
|
&${at}-slide-down-leave${at}-slide-down-leave-active${ge}-placement-bottomRight`]:{animationName:Le.Uw},[`&${at}-slide-up-leave${at}-slide-up-leave-active${ge}-placement-topLeft,
|
|
|
&${at}-slide-up-leave${at}-slide-up-leave-active${ge}-placement-top,
|
|
|
&${at}-slide-up-leave${at}-slide-up-leave-active${ge}-placement-topRight`]:{animationName:Le.ly}})},(0,Se.ZP)(ee,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ge} ${Qt}`]:{position:"relative",margin:0},[`${Qt}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ge}, ${ge}-menu-submenu`]:{[Qt]:Object.assign(Object.assign({padding:Gt,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:ee.borderRadiusLG,outline:"none",boxShadow:ee.boxShadowSecondary},(0,Kt.Qy)(ee)),{[`${Qt}-item-group-title`]:{padding:`${Nt}px ${me}px`,color:ee.colorTextDescription,transition:`all ${vt}`},[`${Qt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Qt}-item-icon`]:{minWidth:Rt,marginInlineEnd:ee.marginXS,fontSize:ee.fontSizeSM},[`${Qt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${vt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Qt}-item, ${Qt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Nt}px ${me}px`,color:ee.colorText,fontWeight:"normal",fontSize:Rt,lineHeight:ee.lineHeight,cursor:"pointer",transition:`all ${vt}`,borderRadius:ee.borderRadiusSM,"&:hover, &-active":{backgroundColor:ee.controlItemBgHover}},(0,Kt.Qy)(ee)),{"&-selected":{color:ee.colorPrimary,backgroundColor:ee.controlItemBgActive,"&:hover, &-active":{backgroundColor:ee.controlItemBgActiveHover}},"&-disabled":{color:$t,cursor:"not-allowed","&:hover":{color:$t,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ee.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ee.colorSplit},[`${ge}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ee.paddingXS,[`${ge}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ee.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Qt}-item-group-list`]:{margin:`0 ${ee.marginXS}px`,padding:0,listStyle:"none"},[`${Qt}-submenu-title`]:{paddingInlineEnd:me+ee.fontSizeSM},[`${Qt}-submenu-vertical`]:{position:"relative"},[`${Qt}-submenu${Qt}-submenu-disabled ${ge}-menu-submenu-title`]:{[`&, ${ge}-menu-submenu-arrow-icon`]:{color:$t,backgroundColor:ce,cursor:"not-allowed"}},[`${Qt}-submenu-selected ${ge}-menu-submenu-title`]:{color:ee.colorPrimary}})}},[(0,Le.oN)(ee,"slide-up"),(0,Le.oN)(ee,"slide-down"),(0,Te.Fm)(ee,"move-up"),(0,Te.Fm)(ee,"move-down"),(0,xn._y)(ee,"zoom-big")]]};var xe=(0,We.Z)("Dropdown",(ee,ge)=>{let{rootPrefixCls:Qt}=ge;const{marginXXS:et,sizePopupArrow:nt,controlHeight:ht,fontSize:at,lineHeight:ft,paddingXXS:vt,componentCls:Nt,borderRadiusLG:Rt}=ee,Gt=(ht-at*ft)/2,{dropdownArrowOffset:$t}=(0,Se.fS)({contentRadius:Rt}),se=(0,je.TS)(ee,{menuCls:`${Nt}-menu`,rootPrefixCls:Qt,dropdownArrowDistance:nt/2+et,dropdownArrowOffset:$t,dropdownPaddingVertical:Gt,dropdownEdgeChildPadding:vt});return[It(se),ve(se)]},ee=>({zIndexPopup:ee.zIndexPopupBase+50}))},64165:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return vt}});var Kt=Yt(92310),Le=Yt.n(Kt),Te=Yt(59301),xn=Yt(36355),Se=Yt(9763),We=Yt(64993),je=Yt(88088),ve=()=>{const[,Nt]=(0,je.Z)(),Gt=new We.C(Nt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Te.createElement("svg",{style:Gt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("g",{fill:"none",fillRule:"evenodd"},Te.createElement("g",{transform:"translate(24 31.67)"},Te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Te.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"}),Te.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)"}),Te.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"}),Te.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"})),Te.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"}),Te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},xe=()=>{const[,Nt]=(0,je.Z)(),{colorFill:Rt,colorFillTertiary:Gt,colorFillQuaternary:$t,colorBgContainer:se}=Nt,{borderColor:me,shadowColor:ce,contentColor:Xe}=(0,Te.useMemo)(()=>({borderColor:new We.C(Rt).onBackground(se).toHexShortString(),shadowColor:new We.C(Gt).onBackground(se).toHexShortString(),contentColor:new We.C($t).onBackground(se).toHexShortString()}),[Rt,Gt,$t,se]);return Te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Te.createElement("ellipse",{fill:ce,cx:"32",cy:"33",rx:"32",ry:"7"}),Te.createElement("g",{fillRule:"nonzero",stroke:me},Te.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"}),Te.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:Xe}))))},ee=Yt(83116),ge=Yt(37613);const Qt=Nt=>{const{componentCls:Rt,margin:Gt,marginXS:$t,marginXL:se,fontSize:me,lineHeight:ce}=Nt;return{[Rt]:{marginInline:$t,fontSize:me,lineHeight:ce,textAlign:"center",[`${Rt}-image`]:{height:Nt.emptyImgHeight,marginBottom:$t,opacity:Nt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Rt}-description`]:{color:Nt.colorText},[`${Rt}-footer`]:{marginTop:Gt},"&-normal":{marginBlock:se,color:Nt.colorTextDisabled,[`${Rt}-description`]:{color:Nt.colorTextDisabled},[`${Rt}-image`]:{height:Nt.emptyImgHeightMD}},"&-small":{marginBlock:$t,color:Nt.colorTextDisabled,[`${Rt}-image`]:{height:Nt.emptyImgHeightSM}}}}};var et=(0,ee.Z)("Empty",Nt=>{const{componentCls:Rt,controlHeightLG:Gt}=Nt,$t=(0,ge.TS)(Nt,{emptyImgCls:`${Rt}-img`,emptyImgHeight:Gt*2.5,emptyImgHeightMD:Gt,emptyImgHeightSM:Gt*.875});return[Qt($t)]}),nt=function(Nt,Rt){var Gt={};for(var $t in Nt)Object.prototype.hasOwnProperty.call(Nt,$t)&&Rt.indexOf($t)<0&&(Gt[$t]=Nt[$t]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,$t=Object.getOwnPropertySymbols(Nt);se<$t.length;se++)Rt.indexOf($t[se])<0&&Object.prototype.propertyIsEnumerable.call(Nt,$t[se])&&(Gt[$t[se]]=Nt[$t[se]]);return Gt};const ht=Te.createElement(ve,null),at=Te.createElement(xe,null),ft=Nt=>{var{className:Rt,rootClassName:Gt,prefixCls:$t,image:se=ht,description:me,children:ce,imageStyle:Xe,style:De}=Nt,ln=nt(Nt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Oe,direction:mn,empty:Kn}=Te.useContext(xn.E_),sn=Oe("empty",$t),[gn,pn]=et(sn),[fe]=(0,Se.Z)("Empty"),Zt=typeof me!="undefined"?me:fe==null?void 0:fe.description,Ye=typeof Zt=="string"?Zt:"empty";let Gn=null;return typeof se=="string"?Gn=Te.createElement("img",{alt:Ye,src:se}):Gn=se,gn(Te.createElement("div",Object.assign({className:Le()(pn,sn,Kn==null?void 0:Kn.className,{[`${sn}-normal`]:se===at,[`${sn}-rtl`]:mn==="rtl"},Rt,Gt),style:Object.assign(Object.assign({},Kn==null?void 0:Kn.style),De)},ln),Te.createElement("div",{className:`${sn}-image`,style:Xe},Gn),Zt&&Te.createElement("div",{className:`${sn}-description`},Zt),ce&&Te.createElement("div",{className:`${sn}-footer`},ce)))};ft.PRESENTED_IMAGE_DEFAULT=ht,ft.PRESENTED_IMAGE_SIMPLE=at;var vt=ft},78241:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{default:function(){return nn}});var Kt=Yt(26407),Le=Yt(92310),Te=Yt.n(Le),xn=Yt(77900),Se=Yt(59301),We=Yt(62892),je=Yt(32441);function de(he){const[Un,Yn]=Se.useState(he);return Se.useEffect(()=>{const Qe=setTimeout(()=>{Yn(he)},he.length?0:10);return()=>{clearTimeout(Qe)}},[he]),Un}var ve=Yt(17313),It=Yt(29878),xe=Yt(8378),ee=Yt(37613),ge=Yt(83116),et=he=>{const{componentCls:Un}=he,Yn=`${Un}-show-help`,Qe=`${Un}-show-help-item`;return{[Yn]:{transition:`opacity ${he.motionDurationSlow} ${he.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Qe]:{overflow:"hidden",transition:`height ${he.motionDurationSlow} ${he.motionEaseInOut},
|
|
|
opacity ${he.motionDurationSlow} ${he.motionEaseInOut},
|
|
|
transform ${he.motionDurationSlow} ${he.motionEaseInOut} !important`,[`&${Qe}-appear, &${Qe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Qe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const nt=he=>({legend:{display:"block",width:"100%",marginBottom:he.marginLG,padding:0,color:he.colorTextDescription,fontSize:he.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${he.lineWidth}px ${he.lineType} ${he.colorBorder}`},label:{fontSize:he.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 ${he.controlOutlineWidth}px ${he.controlOutline}`},output:{display:"block",paddingTop:15,color:he.colorText,fontSize:he.fontSize,lineHeight:he.lineHeight}}),ht=(he,Un)=>{const{formItemCls:Yn}=he;return{[Yn]:{[`${Yn}-label > label`]:{height:Un},[`${Yn}-control-input`]:{minHeight:Un}}}},at=he=>{const{componentCls:Un}=he;return{[he.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(he)),nt(he)),{[`${Un}-text`]:{display:"inline-block",paddingInlineEnd:he.paddingSM},"&-small":Object.assign({},ht(he,he.controlHeightSM)),"&-large":Object.assign({},ht(he,he.controlHeightLG))})}},ft=he=>{const{formItemCls:Un,iconCls:Yn,componentCls:Qe,rootPrefixCls:ye,labelRequiredMarkColor:qe,labelColor:Mn,labelFontSize:li,labelHeight:Si,labelColonMarginInlineStart:Fe,labelColonMarginInlineEnd:Qn,itemMarginBottom:Ni}=he;return{[Un]:Object.assign(Object.assign({},(0,ve.Wf)(he)),{marginBottom:Ni,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${ye}-row`]:{display:"none"},"&-has-warning":{[`${Un}-split`]:{color:he.colorError}},"&-has-error":{[`${Un}-split`]:{color:he.colorWarning}},[`${Un}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${he.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Si,color:Mn,fontSize:li,[`> ${Yn}`]:{fontSize:he.fontSize,verticalAlign:"top"},[`&${Un}-required:not(${Un}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:he.marginXXS,color:qe,fontSize:he.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Qe}-hide-required-mark &`]:{display:"none"}},[`${Un}-optional`]:{display:"inline-block",marginInlineStart:he.marginXXS,color:he.colorTextDescription,[`${Qe}-hide-required-mark &`]:{display:"none"}},[`${Un}-tooltip`]:{color:he.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:he.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Fe,marginInlineEnd:Qn},[`&${Un}-no-colon::after`]:{content:'"\\a0"'}}},[`${Un}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ye}-col-'"]):not([class*="' ${ye}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:he.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Un]:{"&-explain, &-extra":{clear:"both",color:he.colorTextDescription,fontSize:he.fontSize,lineHeight:he.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:he.controlHeightSM,transition:`color ${he.motionDurationMid} ${he.motionEaseOut}`},"&-explain":{"&-error":{color:he.colorError},"&-warning":{color:he.colorWarning}}},[`&-with-help ${Un}-explain`]:{height:"auto",opacity:1},[`${Un}-feedback-icon`]:{fontSize:he.fontSize,textAlign:"center",visibility:"visible",animationName:It.kr,animationDuration:he.motionDurationMid,animationTimingFunction:he.motionEaseOutBack,pointerEvents:"none","&-success":{color:he.colorSuccess},"&-error":{color:he.colorError},"&-warning":{color:he.colorWarning},"&-validating":{color:he.colorPrimary}}})}},vt=he=>{const{componentCls:Un,formItemCls:Yn}=he;return{[`${Un}-horizontal`]:{[`${Yn}-label`]:{flexGrow:0},[`${Yn}-control`]:{flex:"1 1 0",minWidth:0},[`${Yn}-label[class$='-24'], ${Yn}-label[class*='-24 ']`]:{[`& + ${Yn}-control`]:{minWidth:"unset"}}}}},Nt=he=>{const{componentCls:Un,formItemCls:Yn}=he;return{[`${Un}-inline`]:{display:"flex",flexWrap:"wrap",[Yn]:{flex:"none",marginInlineEnd:he.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Yn}-label,
|
|
|
> ${Yn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Yn}-label`]:{flex:"none"},[`${Un}-text`]:{display:"inline-block"},[`${Yn}-has-feedback`]:{display:"inline-block"}}}}},Rt=he=>({padding:he.verticalLabelPadding,margin:he.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Gt=he=>{const{componentCls:Un,formItemCls:Yn,rootPrefixCls:Qe}=he;return{[`${Yn} ${Yn}-label`]:Rt(he),[Un]:{[Yn]:{flexWrap:"wrap",[`${Yn}-label, ${Yn}-control`]:{[`&:not([class*=" ${Qe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},$t=he=>{const{componentCls:Un,formItemCls:Yn,rootPrefixCls:Qe}=he;return{[`${Un}-vertical`]:{[Yn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Un}-item-control`]:{width:"100%"}}},[`${Un}-vertical ${Yn}-label,
|
|
|
.${Qe}-col-24${Yn}-label,
|
|
|
.${Qe}-col-xl-24${Yn}-label`]:Rt(he),[`@media (max-width: ${he.screenXSMax}px)`]:[Gt(he),{[Un]:{[`.${Qe}-col-xs-24${Yn}-label`]:Rt(he)}}],[`@media (max-width: ${he.screenSMMax}px)`]:{[Un]:{[`.${Qe}-col-sm-24${Yn}-label`]:Rt(he)}},[`@media (max-width: ${he.screenMDMax}px)`]:{[Un]:{[`.${Qe}-col-md-24${Yn}-label`]:Rt(he)}},[`@media (max-width: ${he.screenLGMax}px)`]:{[Un]:{[`.${Qe}-col-lg-24${Yn}-label`]:Rt(he)}}}},se=(he,Un)=>(0,ee.TS)(he,{formItemCls:`${he.componentCls}-item`,rootPrefixCls:Un});var me=(0,ge.Z)("Form",(he,Un)=>{let{rootPrefixCls:Yn}=Un;const Qe=se(he,Yn);return[at(Qe),ft(Qe),et(Qe),vt(Qe),Nt(Qe),$t(Qe),(0,xe.Z)(Qe),It.kr]},he=>({labelRequiredMarkColor:he.colorError,labelColor:he.colorTextHeading,labelFontSize:he.fontSize,labelHeight:he.controlHeight,labelColonMarginInlineStart:he.marginXXS/2,labelColonMarginInlineEnd:he.marginXS,itemMarginBottom:he.marginLG,verticalLabelPadding:`0 0 ${he.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ce=[];function Xe(he,Un,Yn){let Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof he=="string"?he:`${Un}-${Qe}`,error:he,errorStatus:Yn}}var ln=he=>{let{help:Un,helpStatus:Yn,errors:Qe=ce,warnings:ye=ce,className:qe,fieldId:Mn,onVisibleChanged:li}=he;const{prefixCls:Si}=Se.useContext(je.Rk),Fe=`${Si}-item-explain`,[,Qn]=me(Si),Ni=(0,Se.useMemo)(()=>(0,We.Z)(Si),[Si]),lr=de(Qe),wn=de(ye),Jn=Se.useMemo(()=>Un!=null?[Xe(Un,"help",Yn)]:[].concat((0,Kt.Z)(lr.map((vr,Tr)=>Xe(vr,"error","error",Tr))),(0,Kt.Z)(wn.map((vr,Tr)=>Xe(vr,"warning","warning",Tr)))),[Un,Yn,lr,wn]),Br={};return Mn&&(Br.id=`${Mn}_help`),Se.createElement(xn.default,{motionDeadline:Ni.motionDeadline,motionName:`${Si}-show-help`,visible:!!Jn.length,onVisibleChanged:li},vr=>{const{className:Tr,style:nr}=vr;return Se.createElement("div",Object.assign({},Br,{className:Te()(Fe,Tr,qe,Qn),style:nr,role:"alert"}),Se.createElement(xn.CSSMotionList,Object.assign({keys:Jn},(0,We.Z)(Si),{motionName:`${Si}-show-help-item`,component:!1}),yr=>{const{key:ar,error:Er,errorStatus:co,className:jo,style:Xn}=yr;return Se.createElement("div",{key:ar,className:Te()(jo,{[`${Fe}-${co}`]:co}),style:Xn},Er)}))})},Oe=Yt(95013),mn=Yt(36355),Kn=Yt(1684),sn=Yt(52946),gn=Yt(19716),pn=Yt(16722);const fe=["parentNode"],Zt="form_item";function Ye(he){return he===void 0||he===!1?[]:Array.isArray(he)?he:[he]}function Gn(he,Un){if(!he.length)return;const Yn=he.join("_");return Un?`${Un}_${Yn}`:fe.includes(Yn)?`${Zt}_${Yn}`:Yn}function ri(he,Un,Yn,Qe,ye,qe){let Mn=Qe;return qe!==void 0?Mn=qe:Yn.validating?Mn="validating":he.length?Mn="error":Un.length?Mn="warning":(Yn.touched||ye&&Yn.validated)&&(Mn="success"),Mn}function cn(he){return Ye(he).join("_")}function In(he){const[Un]=(0,Oe.useForm)(),Yn=Se.useRef({}),Qe=Se.useMemo(()=>he!=null?he:Object.assign(Object.assign({},Un),{__INTERNAL__:{itemRef:ye=>qe=>{const Mn=cn(ye);qe?Yn.current[Mn]=qe:delete Yn.current[Mn]}},scrollToField:function(ye){let qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Mn=Ye(ye),li=Gn(Mn,Qe.__INTERNAL__.name),Si=li?document.getElementById(li):null;Si&&(0,pn.Z)(Si,Object.assign({scrollMode:"if-needed",block:"nearest"},qe))},getFieldInstance:ye=>{const qe=cn(ye);return Yn.current[qe]}}),[he,Un]);return[Qe]}var Wn=Yt(28726),xi=function(he,Un){var Yn={};for(var Qe in he)Object.prototype.hasOwnProperty.call(he,Qe)&&Un.indexOf(Qe)<0&&(Yn[Qe]=he[Qe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Qe=Object.getOwnPropertySymbols(he);ye<Qe.length;ye++)Un.indexOf(Qe[ye])<0&&Object.prototype.propertyIsEnumerable.call(he,Qe[ye])&&(Yn[Qe[ye]]=he[Qe[ye]]);return Yn};const pi=(he,Un)=>{const Yn=Se.useContext(Kn.Z),{getPrefixCls:Qe,direction:ye,form:qe}=Se.useContext(mn.E_),{prefixCls:Mn,className:li,rootClassName:Si,size:Fe,disabled:Qn=Yn,form:Ni,colon:lr,labelAlign:wn,labelWrap:Jn,labelCol:Br,wrapperCol:vr,hideRequiredMark:Tr,layout:nr="horizontal",scrollToFirstError:yr,requiredMark:ar,onFinishFailed:Er,name:co,style:jo,feedbackIcons:Xn}=he,Oo=xi(he,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),as=(0,gn.Z)(Fe),Eo=Se.useContext(Wn.Z),zn=(0,Se.useMemo)(()=>ar!==void 0?ar:qe&&qe.requiredMark!==void 0?qe.requiredMark:!Tr,[Tr,ar,qe]),Gi=lr!=null?lr:qe==null?void 0:qe.colon,wr=Qe("form",Mn),[Dr,Mr]=me(wr),ao=Te()(wr,`${wr}-${nr}`,{[`${wr}-hide-required-mark`]:zn===!1,[`${wr}-rtl`]:ye==="rtl",[`${wr}-${as}`]:as},Mr,qe==null?void 0:qe.className,li,Si),[Uo]=In(Ni),{__INTERNAL__:lo}=Uo;lo.name=co;const $r=(0,Se.useMemo)(()=>({name:co,labelAlign:wn,labelCol:Br,labelWrap:Jn,wrapperCol:vr,vertical:nr==="vertical",colon:Gi,requiredMark:zn,itemRef:lo.itemRef,form:Uo,feedbackIcons:Xn}),[co,wn,Br,vr,nr,Gi,zn,Uo,Xn]);Se.useImperativeHandle(Un,()=>Uo);const br=(So,qn)=>{if(So){let Go={block:"nearest"};typeof So=="object"&&(Go=So),Uo.scrollToField(qn,Go)}},ni=So=>{if(Er==null||Er(So),So.errorFields.length){const qn=So.errorFields[0].name;if(yr!==void 0){br(yr,qn);return}qe&&qe.scrollToFirstError!==void 0&&br(qe.scrollToFirstError,qn)}};return Dr(Se.createElement(Kn.n,{disabled:Qn},Se.createElement(sn.q,{size:as},Se.createElement(je.RV,Object.assign({},{validateMessages:Eo}),Se.createElement(je.q3.Provider,{value:$r},Se.createElement(Oe.default,Object.assign({id:co},Oo,{name:co,onFinishFailed:ni,form:Uo,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),jo),className:ao})))))))};var Ie=Se.forwardRef(pi),Ai=Yt(41799),Ti=Yt(8654),ue=Yt(92343),Tt=Yt(11592);function Ct(he){if(typeof he=="function")return he;const Un=(0,Tt.Z)(he);return Un.length<=1?Un[0]:Un}const zt=()=>{const{status:he,errors:Un=[],warnings:Yn=[]}=(0,Se.useContext)(je.aM);return{status:he,errors:Un,warnings:Yn}};zt.Context=je.aM;var Ht=zt,Mt=Yt(16089);function be(he){const[Un,Yn]=Se.useState(he),Qe=(0,Se.useRef)(null),ye=(0,Se.useRef)([]),qe=(0,Se.useRef)(!1);Se.useEffect(()=>(qe.current=!1,()=>{qe.current=!0,Mt.Z.cancel(Qe.current),Qe.current=null}),[]);function Mn(li){qe.current||(Qe.current===null&&(ye.current=[],Qe.current=(0,Mt.Z)(()=>{Qe.current=null,Yn(Si=>{let Fe=Si;return ye.current.forEach(Qn=>{Fe=Qn(Fe)}),Fe})})),ye.current.push(li))}return[Un,Mn]}function Ge(){const{itemRef:he}=Se.useContext(je.q3),Un=Se.useRef({});function Yn(Qe,ye){const qe=ye&&typeof ye=="object"&&ye.ref,Mn=Qe.join("_");return(Un.current.name!==Mn||Un.current.originRef!==qe)&&(Un.current.name=Mn,Un.current.originRef=qe,Un.current.ref=(0,Ti.sQ)(he(Qe),qe)),Un.current.ref}return Yn}var vn=Yt(29194),Fn=Yt(34280),An=Yt(2738),kn=Yt(27382),Bn=Yt(37028);const Vn=he=>{const{formItemCls:Un}=he;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Un}-control`]:{display:"flex"}}}};var bi=(0,ge.b)(["Form","item-item"],(he,Un)=>{let{rootPrefixCls:Yn}=Un;const Qe=se(he,Yn);return[Vn(Qe)]}),an=he=>{const{prefixCls:Un,status:Yn,wrapperCol:Qe,children:ye,errors:qe,warnings:Mn,_internalItemRender:li,extra:Si,help:Fe,fieldId:Qn,marginBottom:Ni,onErrorVisibleChanged:lr}=he,wn=`${Un}-item`,Jn=Se.useContext(je.q3),Br=Qe||Jn.wrapperCol||{},vr=Te()(`${wn}-control`,Br.className),Tr=Se.useMemo(()=>Object.assign({},Jn),[Jn]);delete Tr.labelCol,delete Tr.wrapperCol;const nr=Se.createElement("div",{className:`${wn}-control-input`},Se.createElement("div",{className:`${wn}-control-input-content`},ye)),yr=Se.useMemo(()=>({prefixCls:Un,status:Yn}),[Un,Yn]),ar=Ni!==null||qe.length||Mn.length?Se.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Se.createElement(je.Rk.Provider,{value:yr},Se.createElement(ln,{fieldId:Qn,errors:qe,warnings:Mn,help:Fe,helpStatus:Yn,className:`${wn}-explain-connected`,onVisibleChanged:lr})),!!Ni&&Se.createElement("div",{style:{width:0,height:Ni}})):null,Er={};Qn&&(Er.id=`${Qn}_extra`);const co=Si?Se.createElement("div",Object.assign({},Er,{className:`${wn}-extra`}),Si):null,jo=li&&li.mark==="pro_table_render"&&li.render?li.render(he,{input:nr,errorList:ar,extra:co}):Se.createElement(Se.Fragment,null,nr,ar,co);return Se.createElement(je.q3.Provider,{value:Tr},Se.createElement(Bn.Z,Object.assign({},Br,{className:vr}),jo),Se.createElement(bi,{prefixCls:Un}))},ei=Yt(61485),Ui=Yt(31724),Pi=Yt(9763),sr=Yt(6848),Or=function(he,Un){var Yn={};for(var Qe in he)Object.prototype.hasOwnProperty.call(he,Qe)&&Un.indexOf(Qe)<0&&(Yn[Qe]=he[Qe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Qe=Object.getOwnPropertySymbols(he);ye<Qe.length;ye++)Un.indexOf(Qe[ye])<0&&Object.prototype.propertyIsEnumerable.call(he,Qe[ye])&&(Yn[Qe[ye]]=he[Qe[ye]]);return Yn};function Ao(he){return he?typeof he=="object"&&!Se.isValidElement(he)?he:{title:he}:null}var Zr=he=>{let{prefixCls:Un,label:Yn,htmlFor:Qe,labelCol:ye,labelAlign:qe,colon:Mn,required:li,requiredMark:Si,tooltip:Fe}=he;var Qn;const[Ni]=(0,Pi.Z)("Form"),{vertical:lr,labelAlign:wn,labelCol:Jn,labelWrap:Br,colon:vr}=Se.useContext(je.q3);if(!Yn)return null;const Tr=ye||Jn||{},nr=qe||wn,yr=`${Un}-item-label`,ar=Te()(yr,nr==="left"&&`${yr}-left`,Tr.className,{[`${yr}-wrap`]:!!Br});let Er=Yn;const co=Mn===!0||vr!==!1&&Mn!==!1;co&&!lr&&typeof Yn=="string"&&Yn.trim()!==""&&(Er=Yn.replace(/[:|:]\s*$/,""));const Xn=Ao(Fe);if(Xn){const{icon:zn=Se.createElement(ei.Z,null)}=Xn,Gi=Or(Xn,["icon"]),wr=Se.createElement(sr.Z,Object.assign({},Gi),Se.cloneElement(zn,{className:`${Un}-item-tooltip`,title:""}));Er=Se.createElement(Se.Fragment,null,Er,wr)}const Oo=Si==="optional",as=typeof Si=="function";as?Er=Si(Er,{required:!!li}):Oo&&!li&&(Er=Se.createElement(Se.Fragment,null,Er,Se.createElement("span",{className:`${Un}-item-optional`,title:""},(Ni==null?void 0:Ni.optional)||((Qn=Ui.Z.Form)===null||Qn===void 0?void 0:Qn.optional))));const Eo=Te()({[`${Un}-item-required`]:li,[`${Un}-item-required-mark-optional`]:Oo||as,[`${Un}-item-no-colon`]:!co});return Se.createElement(Bn.Z,Object.assign({},Tr,{className:ar}),Se.createElement("label",{htmlFor:Qe,className:Eo,title:typeof Yn=="string"?Yn:""},Er))},Ho=Yt(29679),Co=Yt(19248),Jr=Yt(96512),hr=Yt(58617);const to={success:Ho.Z,warning:Jr.Z,error:Co.Z,validating:hr.Z};function oo(he){let{children:Un,errors:Yn,warnings:Qe,hasFeedback:ye,validateStatus:qe,prefixCls:Mn,meta:li,noStyle:Si}=he;const Fe=`${Mn}-item`,{feedbackIcons:Qn}=Se.useContext(je.q3),Ni=ri(Yn,Qe,li,null,!!ye,qe),{isFormItemInput:lr,status:wn}=Se.useContext(je.aM),Jn=Se.useMemo(()=>{var Br;let vr;if(ye){const yr=ye!==!0&&ye.icons||Qn,ar=Ni&&((Br=yr==null?void 0:yr({status:Ni,errors:Yn,warnings:Qe}))===null||Br===void 0?void 0:Br[Ni]),Er=Ni&&to[Ni];vr=ar!==!1&&Er?Se.createElement("span",{className:Te()(`${Fe}-feedback-icon`,`${Fe}-feedback-icon-${Ni}`)},ar||Se.createElement(Er,null)):null}let Tr=!0,nr=Ni||"";return Si&&(Tr=lr,nr=(Ni!=null?Ni:wn)||""),{status:nr,errors:Yn,warnings:Qe,hasFeedback:!!ye,feedbackIcon:vr,isFormItemInput:Tr}},[Ni,ye,Si,lr,wn]);return Se.createElement(je.aM.Provider,{value:Jn},Un)}var Jo=function(he,Un){var Yn={};for(var Qe in he)Object.prototype.hasOwnProperty.call(he,Qe)&&Un.indexOf(Qe)<0&&(Yn[Qe]=he[Qe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Qe=Object.getOwnPropertySymbols(he);ye<Qe.length;ye++)Un.indexOf(Qe[ye])<0&&Object.prototype.propertyIsEnumerable.call(he,Qe[ye])&&(Yn[Qe[ye]]=he[Qe[ye]]);return Yn};function Ns(he){const{prefixCls:Un,className:Yn,rootClassName:Qe,style:ye,help:qe,errors:Mn,warnings:li,validateStatus:Si,meta:Fe,hasFeedback:Qn,hidden:Ni,children:lr,fieldId:wn,required:Jn,isRequired:Br,onSubItemMetaChange:vr}=he,Tr=Jo(he,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),nr=`${Un}-item`,{requiredMark:yr}=Se.useContext(je.q3),ar=Se.useRef(null),Er=de(Mn),co=de(li),jo=qe!=null,Xn=!!(jo||Mn.length||li.length),Oo=!!ar.current&&(0,vn.Z)(ar.current),[as,Eo]=Se.useState(null);(0,Fn.Z)(()=>{if(Xn&&ar.current){const Mr=getComputedStyle(ar.current);Eo(parseInt(Mr.marginBottom,10))}},[Xn,Oo]);const zn=Mr=>{Mr||Eo(null)},wr=function(){let Mr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ao=Mr?Er:Fe.errors,Uo=Mr?co:Fe.warnings;return ri(ao,Uo,Fe,"",!!Qn,Si)}(),Dr=Te()(nr,Yn,Qe,{[`${nr}-with-help`]:jo||Er.length||co.length,[`${nr}-has-feedback`]:wr&&Qn,[`${nr}-has-success`]:wr==="success",[`${nr}-has-warning`]:wr==="warning",[`${nr}-has-error`]:wr==="error",[`${nr}-is-validating`]:wr==="validating",[`${nr}-hidden`]:Ni});return Se.createElement("div",{className:Dr,style:ye,ref:ar},Se.createElement(kn.Z,Object.assign({className:`${nr}-row`},(0,An.Z)(Tr,["_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"])),Se.createElement(Zr,Object.assign({htmlFor:wn},he,{requiredMark:yr,required:Jn!=null?Jn:Br,prefixCls:Un})),Se.createElement(an,Object.assign({},he,Fe,{errors:Er,warnings:co,prefixCls:Un,status:wr,help:qe,marginBottom:as,onErrorVisibleChanged:zn}),Se.createElement(je.qI.Provider,{value:vr},Se.createElement(oo,{prefixCls:Un,meta:Fe,errors:Fe.errors,warnings:Fe.warnings,hasFeedback:Qn,validateStatus:wr},lr)))),!!as&&Se.createElement("div",{className:`${nr}-margin-offset`,style:{marginBottom:-as}}))}const ys="__SPLIT__",Xs=null,vo=Se.memo(he=>{let{children:Un}=he;return Un},(he,Un)=>he.value===Un.value&&he.update===Un.update&&he.childProps.length===Un.childProps.length&&he.childProps.every((Yn,Qe)=>Yn===Un.childProps[Qe]));function jt(he){return he!=null}function la(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function os(he){const{name:Un,noStyle:Yn,className:Qe,dependencies:ye,prefixCls:qe,shouldUpdate:Mn,rules:li,children:Si,required:Fe,label:Qn,messageVariables:Ni,trigger:lr="onChange",validateTrigger:wn,hidden:Jn,help:Br}=he,{getPrefixCls:vr}=Se.useContext(mn.E_),{name:Tr}=Se.useContext(je.q3),nr=Ct(Si),yr=typeof nr=="function",ar=Se.useContext(je.qI),{validateTrigger:Er}=Se.useContext(Oe.FieldContext),co=wn!==void 0?wn:Er,jo=jt(Un),Xn=vr("form",qe),[Oo,as]=me(Xn),Eo=Se.useContext(Oe.ListContext),zn=Se.useRef(),[Gi,wr]=be({}),[Dr,Mr]=(0,Ai.Z)(()=>la()),ao=qn=>{const Go=Eo==null?void 0:Eo.getKey(qn.name);if(Mr(qn.destroy?la():qn,!0),Yn&&Br!==!1&&ar){let Ds=qn.name;if(qn.destroy)Ds=zn.current||Ds;else if(Go!==void 0){const[qo,ea]=Go;Ds=[qo].concat((0,Kt.Z)(ea)),zn.current=Ds}ar(qn,Ds)}},Uo=(qn,Go)=>{wr(Ds=>{const qo=Object.assign({},Ds),Bs=[].concat((0,Kt.Z)(qn.name.slice(0,-1)),(0,Kt.Z)(Go)).join(ys);return qn.destroy?delete qo[Bs]:qo[Bs]=qn,qo})},[lo,$r]=Se.useMemo(()=>{const qn=(0,Kt.Z)(Dr.errors),Go=(0,Kt.Z)(Dr.warnings);return Object.values(Gi).forEach(Ds=>{qn.push.apply(qn,(0,Kt.Z)(Ds.errors||[])),Go.push.apply(Go,(0,Kt.Z)(Ds.warnings||[]))}),[qn,Go]},[Gi,Dr.errors,Dr.warnings]),br=Ge();function ni(qn,Go,Ds){return Yn&&!Jn?Se.createElement(oo,{prefixCls:Xn,hasFeedback:he.hasFeedback,validateStatus:he.validateStatus,meta:Dr,errors:lo,warnings:$r,noStyle:!0},qn):Se.createElement(Ns,Object.assign({key:"row"},he,{className:Te()(Qe,as),prefixCls:Xn,fieldId:Go,isRequired:Ds,errors:lo,warnings:$r,meta:Dr,onSubItemMetaChange:Uo}),qn)}if(!jo&&!yr&&!ye)return Oo(ni(nr));let So={};return typeof Qn=="string"?So.label=Qn:Un&&(So.label=String(Un)),Ni&&(So=Object.assign(Object.assign({},So),Ni)),Oo(Se.createElement(Oe.Field,Object.assign({},he,{messageVariables:So,trigger:lr,validateTrigger:co,onMetaChange:ao}),(qn,Go,Ds)=>{const qo=Ye(Un).length&&Go?Go.name:[],ea=Gn(qo,Tr),Bs=Fe!==void 0?Fe:!!(li&&li.some(Yo=>{if(Yo&&typeof Yo=="object"&&Yo.required&&!Yo.warningOnly)return!0;if(typeof Yo=="function"){const Qo=Yo(Ds);return Qo&&Qo.required&&!Qo.warningOnly}return!1})),io=Object.assign({},qn);let uo=null;if(Array.isArray(nr)&&jo)uo=nr;else if(!(yr&&(!(Mn||ye)||jo))){if(!(ye&&!yr&&!jo))if((0,ue.l$)(nr)){const Yo=Object.assign(Object.assign({},nr.props),io);if(Yo.id||(Yo.id=ea),Br||lo.length>0||$r.length>0||he.extra){const oe=[];(Br||lo.length>0)&&oe.push(`${ea}_help`),he.extra&&oe.push(`${ea}_extra`),Yo["aria-describedby"]=oe.join(" ")}lo.length>0&&(Yo["aria-invalid"]="true"),Bs&&(Yo["aria-required"]="true"),(0,Ti.Yr)(nr)&&(Yo.ref=br(qo,nr)),new Set([].concat((0,Kt.Z)(Ye(lr)),(0,Kt.Z)(Ye(co)))).forEach(oe=>{Yo[oe]=function(){for(var zo,Qs,_a,hl,Ka,ml=arguments.length,To=new Array(ml),Po=0;Po<ml;Po++)To[Po]=arguments[Po];(_a=io[oe])===null||_a===void 0||(zo=_a).call.apply(zo,[io].concat(To)),(Ka=(hl=nr.props)[oe])===null||Ka===void 0||(Qs=Ka).call.apply(Qs,[hl].concat(To))}});const Zi=[Yo["aria-required"],Yo["aria-invalid"],Yo["aria-describedby"]];uo=Se.createElement(vo,{value:io[he.valuePropName||"value"],update:nr,childProps:Zi},(0,ue.Tm)(nr,Yo))}else yr&&(Mn||ye)&&!jo?uo=nr(Ds):uo=nr}return ni(uo,ea,Bs)}))}const _s=os;_s.useStatus=Ht;var Ss=_s,ca=function(he,Un){var Yn={};for(var Qe in he)Object.prototype.hasOwnProperty.call(he,Qe)&&Un.indexOf(Qe)<0&&(Yn[Qe]=he[Qe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Qe=Object.getOwnPropertySymbols(he);ye<Qe.length;ye++)Un.indexOf(Qe[ye])<0&&Object.prototype.propertyIsEnumerable.call(he,Qe[ye])&&(Yn[Qe[ye]]=he[Qe[ye]]);return Yn},Pr=he=>{var{prefixCls:Un,children:Yn}=he,Qe=ca(he,["prefixCls","children"]);const{getPrefixCls:ye}=Se.useContext(mn.E_),qe=ye("form",Un),Mn=Se.useMemo(()=>({prefixCls:qe,status:"error"}),[qe]);return Se.createElement(Oe.List,Object.assign({},Qe),(li,Si,Fe)=>Se.createElement(je.Rk.Provider,{value:Mn},Yn(li.map(Qn=>Object.assign(Object.assign({},Qn),{fieldKey:Qn.key})),Si,{errors:Fe.errors,warnings:Fe.warnings})))};function Fr(){const{form:he}=(0,Se.useContext)(je.q3);return he}const dn=Ie;dn.Item=Ss,dn.List=Pr,dn.ErrorList=ln,dn.useForm=In,dn.useFormInstance=Fr,dn.useWatch=Oe.useWatch,dn.Provider=je.RV,dn.create=()=>{};var nn=dn},9432:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return ft},n:function(){return ht}});var Kt=Yt(19248),Le=Yt(92310),Te=Yt.n(Le),xn=Yt(93681),Se=Yt(8654),We=Yt(59301),je=Yt(19080),de=Yt(36355),ve=Yt(1684),It=Yt(19716),xe=Yt(32441),ee=Yt(33234),ge=Yt(59412),Qt=Yt(9937);function et(vt){return!!(vt.prefix||vt.suffix||vt.allowClear)}var nt=function(vt,Nt){var Rt={};for(var Gt in vt)Object.prototype.hasOwnProperty.call(vt,Gt)&&Nt.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++)Nt.indexOf(Gt[$t])<0&&Object.prototype.propertyIsEnumerable.call(vt,Gt[$t])&&(Rt[Gt[$t]]=vt[Gt[$t]]);return Rt};function ht(vt,Nt){if(!vt)return;vt.focus(Nt);const{cursor:Rt}=Nt||{};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,We.forwardRef)((vt,Nt)=>{var Rt;const{prefixCls:Gt,bordered:$t=!0,status:se,size:me,disabled:ce,onBlur:Xe,onFocus:De,suffix:ln,allowClear:Oe,addonAfter:mn,addonBefore:Kn,className:sn,style:gn,styles:pn,rootClassName:fe,onChange:Zt,classNames:Ye}=vt,Gn=nt(vt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ri,direction:cn,input:In}=We.useContext(de.E_),Wn=ri("input",Gt),xi=(0,We.useRef)(null),[pi,zi]=(0,Qt.ZP)(Wn),{compactSize:Ie,compactItemClassnames:Ai}=(0,ee.ri)(Wn,cn),Ti=(0,It.Z)(bi=>{var Pn;return(Pn=me!=null?me:Ie)!==null&&Pn!==void 0?Pn:bi}),ue=We.useContext(ve.Z),Tt=ce!=null?ce:ue,{status:Ct,hasFeedback:zt,feedbackIcon:Ht}=(0,We.useContext)(xe.aM),Mt=(0,je.F)(Ct,se),be=et(vt)||!!zt,Ge=(0,We.useRef)(be);(0,We.useEffect)(()=>{var bi;be&&Ge.current,Ge.current=be},[be]);const vn=(0,ge.Z)(xi,!0),Fn=bi=>{vn(),Xe==null||Xe(bi)},An=bi=>{vn(),De==null||De(bi)},kn=bi=>{vn(),Zt==null||Zt(bi)},Bn=(zt||ln)&&We.createElement(We.Fragment,null,ln,zt&&Ht);let Vn;return typeof Oe=="object"&&(Oe!=null&&Oe.clearIcon)?Vn=Oe:Oe&&(Vn={clearIcon:We.createElement(Kt.Z,null)}),pi(We.createElement(xn.default,Object.assign({ref:(0,Se.sQ)(Nt,xi),prefixCls:Wn,autoComplete:In==null?void 0:In.autoComplete},Gn,{disabled:Tt,onBlur:Fn,onFocus:An,style:Object.assign(Object.assign({},In==null?void 0:In.style),gn),styles:Object.assign(Object.assign({},In==null?void 0:In.styles),pn),suffix:Bn,allowClear:Vn,className:Te()(sn,fe,Ai,In==null?void 0:In.className),onChange:kn,addonAfter:mn&&We.createElement(ee.BR,null,We.createElement(xe.Ux,{override:!0,status:!0},mn)),addonBefore:Kn&&We.createElement(ee.BR,null,We.createElement(xe.Ux,{override:!0,status:!0},Kn)),classNames:Object.assign(Object.assign(Object.assign({},Ye),In==null?void 0:In.classNames),{input:Te()({[`${Wn}-sm`]:Ti==="small",[`${Wn}-lg`]:Ti==="large",[`${Wn}-rtl`]:cn==="rtl",[`${Wn}-borderless`]:!$t},!be&&(0,je.Z)(Wn,Mt),Ye==null?void 0:Ye.input,(Rt=In==null?void 0:In.classNames)===null||Rt===void 0?void 0:Rt.input,zi)}),classes:{affixWrapper:Te()({[`${Wn}-affix-wrapper-sm`]:Ti==="small",[`${Wn}-affix-wrapper-lg`]:Ti==="large",[`${Wn}-affix-wrapper-rtl`]:cn==="rtl",[`${Wn}-affix-wrapper-borderless`]:!$t},(0,je.Z)(`${Wn}-affix-wrapper`,Mt,zt),zi),wrapper:Te()({[`${Wn}-group-rtl`]:cn==="rtl"},zi),group:Te()({[`${Wn}-group-wrapper-sm`]:Ti==="small",[`${Wn}-group-wrapper-lg`]:Ti==="large",[`${Wn}-group-wrapper-rtl`]:cn==="rtl",[`${Wn}-group-wrapper-disabled`]:Tt},(0,je.Z)(`${Wn}-group-wrapper`,Mt,zt),zi)}})))})},1643:function(Ci,Ii,Yt){"use strict";var Kt=Yt(19248),Le=Yt(92310),Te=Yt.n(Le),xn=Yt(9296),Se=Yt(59301),We=Yt(19080),je=Yt(36355),de=Yt(1684),ve=Yt(19716),It=Yt(32441),xe=Yt(9432),ee=Yt(9937),ge=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 Qt=(0,Se.forwardRef)((et,nt)=>{const{prefixCls:ht,bordered:at=!0,size:ft,disabled:vt,status:Nt,allowClear:Rt,showCount:Gt,classNames:$t,rootClassName:se,className:me}=et,ce=ge(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Xe,direction:De}=Se.useContext(je.E_),ln=(0,ve.Z)(ft),Oe=Se.useContext(de.Z),mn=vt!=null?vt:Oe,{status:Kn,hasFeedback:sn,feedbackIcon:gn}=Se.useContext(It.aM),pn=(0,We.F)(Kn,Nt),fe=Se.useRef(null);Se.useImperativeHandle(nt,()=>{var cn;return{resizableTextArea:(cn=fe.current)===null||cn===void 0?void 0:cn.resizableTextArea,focus:In=>{var Wn,xi;(0,xe.n)((xi=(Wn=fe.current)===null||Wn===void 0?void 0:Wn.resizableTextArea)===null||xi===void 0?void 0:xi.textArea,In)},blur:()=>{var In;return(In=fe.current)===null||In===void 0?void 0:In.blur()}}});const Zt=Xe("input",ht);let Ye;typeof Rt=="object"&&(Rt!=null&&Rt.clearIcon)?Ye=Rt:Rt&&(Ye={clearIcon:Se.createElement(Kt.Z,null)});const[Gn,ri]=(0,ee.ZP)(Zt);return Gn(Se.createElement(xn.default,Object.assign({},ce,{disabled:mn,allowClear:Ye,className:Te()(me,se),classes:{affixWrapper:Te()(`${Zt}-textarea-affix-wrapper`,{[`${Zt}-affix-wrapper-rtl`]:De==="rtl",[`${Zt}-affix-wrapper-borderless`]:!at,[`${Zt}-affix-wrapper-sm`]:ln==="small",[`${Zt}-affix-wrapper-lg`]:ln==="large",[`${Zt}-textarea-show-count`]:Gt},(0,We.Z)(`${Zt}-affix-wrapper`,pn),ri)},classNames:Object.assign(Object.assign({},$t),{textarea:Te()({[`${Zt}-borderless`]:!at,[`${Zt}-sm`]:ln==="small",[`${Zt}-lg`]:ln==="large"},(0,We.Z)(Zt,pn),ri,$t==null?void 0:$t.textarea)}),prefixCls:Zt,suffix:sn&&Se.createElement("span",{className:`${Zt}-textarea-suffix`},gn),showCount:Gt,ref:fe})))});Ii.Z=Qt},59412:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Le}});var Kt=Yt(59301);function Le(Te,xn){const Se=(0,Kt.useRef)([]),We=()=>{Se.current.push(setTimeout(()=>{var je,de,ve,It;!((je=Te.current)===null||je===void 0)&&je.input&&((de=Te.current)===null||de===void 0?void 0:de.input.getAttribute("type"))==="password"&&(!((ve=Te.current)===null||ve===void 0)&&ve.input.hasAttribute("value"))&&((It=Te.current)===null||It===void 0||It.input.removeAttribute("value"))}))};return(0,Kt.useEffect)(()=>(xn&&We(),()=>Se.current.forEach(je=>{je&&clearTimeout(je)})),[]),We}},92832:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{default:function(){return ln}});var Kt=Yt(92310),Le=Yt.n(Kt),Te=Yt(59301),xn=Yt(36355),Se=Yt(32441),We=Yt(9937),de=Oe=>{const{getPrefixCls:mn,direction:Kn}=(0,Te.useContext)(xn.E_),{prefixCls:sn,className:gn}=Oe,pn=mn("input-group",sn),fe=mn("input"),[Zt,Ye]=(0,We.ZP)(fe),Gn=Le()(pn,{[`${pn}-lg`]:Oe.size==="large",[`${pn}-sm`]:Oe.size==="small",[`${pn}-compact`]:Oe.compact,[`${pn}-rtl`]:Kn==="rtl"},Ye,gn),ri=(0,Te.useContext)(Se.aM),cn=(0,Te.useMemo)(()=>Object.assign(Object.assign({},ri),{isFormItemInput:!1}),[ri]);return Zt(Te.createElement("span",{className:Gn,style:Oe.style,onMouseEnter:Oe.onMouseEnter,onMouseLeave:Oe.onMouseLeave,onFocus:Oe.onFocus,onBlur:Oe.onBlur},Te.createElement(Se.aM.Provider,{value:cn},Oe.children)))},ve=Yt(9432),It=Yt(73331),xe=Yt(15277),ee=Yt(2738),ge=Yt(8654),Qt=Yt(59412),et=function(Oe,mn){var Kn={};for(var sn in Oe)Object.prototype.hasOwnProperty.call(Oe,sn)&&mn.indexOf(sn)<0&&(Kn[sn]=Oe[sn]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,sn=Object.getOwnPropertySymbols(Oe);gn<sn.length;gn++)mn.indexOf(sn[gn])<0&&Object.prototype.propertyIsEnumerable.call(Oe,sn[gn])&&(Kn[sn[gn]]=Oe[sn[gn]]);return Kn};const nt=Oe=>Oe?Te.createElement(xe.Z,null):Te.createElement(It.Z,null),ht={click:"onClick",hover:"onMouseOver"};var ft=Te.forwardRef((Oe,mn)=>{const{visibilityToggle:Kn=!0}=Oe,sn=typeof Kn=="object"&&Kn.visible!==void 0,[gn,pn]=(0,Te.useState)(()=>sn?Kn.visible:!1),fe=(0,Te.useRef)(null);Te.useEffect(()=>{sn&&pn(Kn.visible)},[sn,Kn]);const Zt=(0,Qt.Z)(fe),Ye=()=>{const{disabled:Tt}=Oe;Tt||(gn&&Zt(),pn(Ct=>{var zt;const Ht=!Ct;return typeof Kn=="object"&&((zt=Kn.onVisibleChange)===null||zt===void 0||zt.call(Kn,Ht)),Ht}))},Gn=Tt=>{const{action:Ct="click",iconRender:zt=nt}=Oe,Ht=ht[Ct]||"",Mt=zt(gn),be={[Ht]:Ye,className:`${Tt}-icon`,key:"passwordIcon",onMouseDown:Ge=>{Ge.preventDefault()},onMouseUp:Ge=>{Ge.preventDefault()}};return Te.cloneElement(Te.isValidElement(Mt)?Mt:Te.createElement("span",null,Mt),be)},{className:ri,prefixCls:cn,inputPrefixCls:In,size:Wn}=Oe,xi=et(Oe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:pi}=Te.useContext(xn.E_),zi=pi("input",In),Ie=pi("input-password",cn),Ai=Kn&&Gn(Ie),Ti=Le()(Ie,ri,{[`${Ie}-${Wn}`]:!!Wn}),ue=Object.assign(Object.assign({},(0,ee.Z)(xi,["suffix","iconRender","visibilityToggle"])),{type:gn?"text":"password",className:Ti,prefixCls:zi,suffix:Ai});return Wn&&(ue.size=Wn),Te.createElement(ve.Z,Object.assign({ref:(0,ge.sQ)(mn,fe)},ue))}),vt=Yt(47472),Nt=Yt(92343),Rt=Yt(3113),Gt=Yt(19716),$t=Yt(33234),se=function(Oe,mn){var Kn={};for(var sn in Oe)Object.prototype.hasOwnProperty.call(Oe,sn)&&mn.indexOf(sn)<0&&(Kn[sn]=Oe[sn]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,sn=Object.getOwnPropertySymbols(Oe);gn<sn.length;gn++)mn.indexOf(sn[gn])<0&&Object.prototype.propertyIsEnumerable.call(Oe,sn[gn])&&(Kn[sn[gn]]=Oe[sn[gn]]);return Kn},ce=Te.forwardRef((Oe,mn)=>{const{prefixCls:Kn,inputPrefixCls:sn,className:gn,size:pn,suffix:fe,enterButton:Zt=!1,addonAfter:Ye,loading:Gn,disabled:ri,onSearch:cn,onChange:In,onCompositionStart:Wn,onCompositionEnd:xi}=Oe,pi=se(Oe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:zi,direction:Ie}=Te.useContext(xn.E_),Ai=Te.useRef(!1),Ti=zi("input-search",Kn),ue=zi("input",sn),{compactSize:Tt}=(0,$t.ri)(Ti,Ie),Ct=(0,Gt.Z)(an=>{var ei;return(ei=pn!=null?pn:Tt)!==null&&ei!==void 0?ei:an}),zt=Te.useRef(null),Ht=an=>{an&&an.target&&an.type==="click"&&cn&&cn(an.target.value,an,{source:"clear"}),In&&In(an)},Mt=an=>{var ei;document.activeElement===((ei=zt.current)===null||ei===void 0?void 0:ei.input)&&an.preventDefault()},be=an=>{var ei,Ui;cn&&cn((Ui=(ei=zt.current)===null||ei===void 0?void 0:ei.input)===null||Ui===void 0?void 0:Ui.value,an,{source:"input"})},Ge=an=>{Ai.current||Gn||be(an)},vn=typeof Zt=="boolean"?Te.createElement(vt.Z,null):null,Fn=`${Ti}-button`;let An;const kn=Zt||{},Bn=kn.type&&kn.type.__ANT_BUTTON===!0;Bn||kn.type==="button"?An=(0,Nt.Tm)(kn,Object.assign({onMouseDown:Mt,onClick:an=>{var ei,Ui;(Ui=(ei=kn==null?void 0:kn.props)===null||ei===void 0?void 0:ei.onClick)===null||Ui===void 0||Ui.call(ei,an),be(an)},key:"enterButton"},Bn?{className:Fn,size:Ct}:{})):An=Te.createElement(Rt.ZP,{className:Fn,type:Zt?"primary":void 0,size:Ct,disabled:ri,key:"enterButton",onMouseDown:Mt,onClick:be,loading:Gn,icon:vn},Zt),Ye&&(An=[An,(0,Nt.Tm)(Ye,{key:"addonAfter"})]);const Vn=Le()(Ti,{[`${Ti}-rtl`]:Ie==="rtl",[`${Ti}-${Ct}`]:!!Ct,[`${Ti}-with-button`]:!!Zt},gn),bi=an=>{Ai.current=!0,Wn==null||Wn(an)},Pn=an=>{Ai.current=!1,xi==null||xi(an)};return Te.createElement(ve.Z,Object.assign({ref:(0,ge.sQ)(zt,mn),onPressEnter:Ge},pi,{size:Ct,onCompositionStart:bi,onCompositionEnd:Pn,prefixCls:ue,addonAfter:An,suffix:fe,onChange:Ht,className:Vn,disabled:ri}))}),Xe=Yt(1643);const De=ve.Z;De.Group=de,De.Search=ce,De.TextArea=Xe.Z,De.Password=ft;var ln=De},45818:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{D:function(){return vt},Z:function(){return Gt}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(se,me){return Le.createElement(Se.Z,(0,Kt.Z)({},se,{ref:me,icon:xn}))},je=Le.forwardRef(We),de=je,ve=Yt(33853),It=Yt(38819),xe=Yt(92310),ee=Yt.n(xe),ge=Yt(2738),et=$t=>!isNaN(parseFloat($t))&&isFinite($t),nt=Yt(36355),ht=Yt(84966),at=function($t,se){var me={};for(var ce in $t)Object.prototype.hasOwnProperty.call($t,ce)&&se.indexOf(ce)<0&&(me[ce]=$t[ce]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,ce=Object.getOwnPropertySymbols($t);Xe<ce.length;Xe++)se.indexOf(ce[Xe])<0&&Object.prototype.propertyIsEnumerable.call($t,ce[Xe])&&(me[ce[Xe]]=$t[ce[Xe]]);return me};const ft={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},vt=Le.createContext({}),Nt=(()=>{let $t=0;return function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $t+=1,`${se}${$t}`}})();var Gt=Le.forwardRef(($t,se)=>{const{prefixCls:me,className:ce,trigger:Xe,children:De,defaultCollapsed:ln=!1,theme:Oe="dark",style:mn={},collapsible:Kn=!1,reverseArrow:sn=!1,width:gn=200,collapsedWidth:pn=80,zeroWidthTriggerStyle:fe,breakpoint:Zt,onCollapse:Ye,onBreakpoint:Gn}=$t,ri=at($t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:cn}=(0,Le.useContext)(ht.Gs),[In,Wn]=(0,Le.useState)("collapsed"in $t?$t.collapsed:ln),[xi,pi]=(0,Le.useState)(!1);(0,Le.useEffect)(()=>{"collapsed"in $t&&Wn($t.collapsed)},[$t.collapsed]);const zi=(Ct,zt)=>{"collapsed"in $t||Wn(Ct),Ye==null||Ye(Ct,zt)},Ie=(0,Le.useRef)();Ie.current=Ct=>{pi(Ct.matches),Gn==null||Gn(Ct.matches),In!==Ct.matches&&zi(Ct.matches,"responsive")},(0,Le.useEffect)(()=>{function Ct(Ht){return Ie.current(Ht)}let zt;if(typeof window!="undefined"){const{matchMedia:Ht}=window;if(Ht&&Zt&&Zt in ft){zt=Ht(`(max-width: ${ft[Zt]})`);try{zt.addEventListener("change",Ct)}catch(Mt){zt.addListener(Ct)}Ct(zt)}}return()=>{try{zt==null||zt.removeEventListener("change",Ct)}catch(Ht){zt==null||zt.removeListener(Ct)}}},[Zt]),(0,Le.useEffect)(()=>{const Ct=Nt("ant-sider-");return cn.addSider(Ct),()=>cn.removeSider(Ct)},[]);const Ai=()=>{zi(!In,"clickTrigger")},{getPrefixCls:Ti}=(0,Le.useContext)(nt.E_),ue=()=>{const Ct=Ti("layout-sider",me),zt=(0,ge.Z)(ri,["collapsed"]),Ht=In?pn:gn,Mt=et(Ht)?`${Ht}px`:String(Ht),be=parseFloat(String(pn||0))===0?Le.createElement("span",{onClick:Ai,className:ee()(`${Ct}-zero-width-trigger`,`${Ct}-zero-width-trigger-${sn?"right":"left"}`),style:fe},Xe||Le.createElement(de,null)):null,Fn={expanded:sn?Le.createElement(It.Z,null):Le.createElement(ve.Z,null),collapsed:sn?Le.createElement(ve.Z,null):Le.createElement(It.Z,null)}[In?"collapsed":"expanded"],An=Xe!==null?be||Le.createElement("div",{className:`${Ct}-trigger`,onClick:Ai,style:{width:Mt}},Xe||Fn):null,kn=Object.assign(Object.assign({},mn),{flex:`0 0 ${Mt}`,maxWidth:Mt,minWidth:Mt,width:Mt}),Bn=ee()(Ct,`${Ct}-${Oe}`,{[`${Ct}-collapsed`]:!!In,[`${Ct}-has-trigger`]:Kn&&Xe!==null&&!be,[`${Ct}-below`]:!!xi,[`${Ct}-zero-width`]:parseFloat(Mt)===0},ce);return Le.createElement("aside",Object.assign({className:Bn},zt,{style:kn,ref:se}),Le.createElement("div",{className:`${Ct}-children`},De),Kn||xi&&be?An:null)},Tt=Le.useMemo(()=>({siderCollapsed:In}),[In]);return Le.createElement(vt.Provider,{value:Tt},ue())})},84966:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{VY:function(){return vt},$_:function(){return ft},h4:function(){return at},Gs:function(){return ge},ZP:function(){return Nt}});var Kt=Yt(26407),Le=Yt(92310),Te=Yt.n(Le),xn=Yt(2738),Se=Yt(59301),We=Yt(36355),je=Yt(83116),ve=Rt=>{const{componentCls:Gt,bodyBg:$t,lightSiderBg:se,lightTriggerBg:me,lightTriggerColor:ce}=Rt;return{[`${Gt}-sider-light`]:{background:se,[`${Gt}-sider-trigger`]:{color:ce,background:me},[`${Gt}-sider-zero-width-trigger`]:{color:ce,background:me,border:`1px solid ${$t}`,borderInlineStart:0}}}};const It=Rt=>{const{antCls:Gt,componentCls:$t,colorText:se,triggerColor:me,footerBg:ce,triggerBg:Xe,headerHeight:De,headerPadding:ln,headerColor:Oe,footerPadding:mn,triggerHeight:Kn,zeroTriggerHeight:sn,zeroTriggerWidth:gn,motionDurationMid:pn,motionDurationSlow:fe,fontSize:Zt,borderRadius:Ye,bodyBg:Gn,headerBg:ri,siderBg:cn}=Rt;return{[$t]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Gn,"&, *":{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:cn,transition:`all ${pn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Gt}-menu${Gt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Kn},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Kn,color:me,lineHeight:`${Kn}px`,textAlign:"center",background:Xe,cursor:"pointer",transition:`all ${pn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-gn,zIndex:1,width:gn,height:sn,color:me,fontSize:Rt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:cn,borderStartStartRadius:0,borderStartEndRadius:Ye,borderEndEndRadius:Ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${fe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${fe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-gn,borderStartStartRadius:Ye,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ye}}}}},ve(Rt)),{"&-rtl":{direction:"rtl"}}),[`${$t}-header`]:{height:De,padding:ln,color:Oe,lineHeight:`${De}px`,background:ri,[`${Gt}-menu`]:{lineHeight:"inherit"}},[`${$t}-footer`]:{padding:mn,color:se,fontSize:Zt,background:ce},[`${$t}-content`]:{flex:"auto",minHeight:0}}};var xe=(0,je.Z)("Layout",Rt=>[It(Rt)],Rt=>{const{colorBgLayout:Gt,controlHeight:$t,controlHeightLG:se,colorText:me,controlHeightSM:ce,marginXXS:Xe,colorTextLightSolid:De,colorBgContainer:ln}=Rt,Oe=se*1.25;return{colorBgHeader:"#001529",colorBgBody:Gt,colorBgTrigger:"#002140",bodyBg:Gt,headerBg:"#001529",headerHeight:$t*2,headerPadding:`0 ${Oe}px`,headerColor:me,footerPadding:`${ce}px ${Oe}px`,footerBg:Gt,siderBg:"#001529",triggerHeight:se+Xe*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:se,zeroTriggerHeight:se,lightSiderBg:ln,lightTriggerBg:ln,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ee=function(Rt,Gt){var $t={};for(var se in Rt)Object.prototype.hasOwnProperty.call(Rt,se)&&Gt.indexOf(se)<0&&($t[se]=Rt[se]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,se=Object.getOwnPropertySymbols(Rt);me<se.length;me++)Gt.indexOf(se[me])<0&&Object.prototype.propertyIsEnumerable.call(Rt,se[me])&&($t[se[me]]=Rt[se[me]]);return $t};const ge=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Qt(Rt){let{suffixCls:Gt,tagName:$t,displayName:se}=Rt;return me=>Se.forwardRef((Xe,De)=>Se.createElement(me,Object.assign({ref:De,suffixCls:Gt,tagName:$t},Xe)))}const et=Se.forwardRef((Rt,Gt)=>{const{prefixCls:$t,suffixCls:se,className:me,tagName:ce}=Rt,Xe=ee(Rt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=Se.useContext(We.E_),ln=De("layout",$t),[Oe,mn]=xe(ln),Kn=se?`${ln}-${se}`:ln;return Oe(Se.createElement(ce,Object.assign({className:Te()($t||Kn,me,mn),ref:Gt},Xe)))}),nt=Se.forwardRef((Rt,Gt)=>{const{direction:$t}=Se.useContext(We.E_),[se,me]=Se.useState([]),{prefixCls:ce,className:Xe,rootClassName:De,children:ln,hasSider:Oe,tagName:mn,style:Kn}=Rt,sn=ee(Rt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),gn=(0,xn.Z)(sn,["suffixCls"]),{getPrefixCls:pn,layout:fe}=Se.useContext(We.E_),Zt=pn("layout",ce),[Ye,Gn]=xe(Zt),ri=Te()(Zt,{[`${Zt}-has-sider`]:typeof Oe=="boolean"?Oe:se.length>0,[`${Zt}-rtl`]:$t==="rtl"},fe==null?void 0:fe.className,Xe,De,Gn),cn=Se.useMemo(()=>({siderHook:{addSider:In=>{me(Wn=>[].concat((0,Kt.Z)(Wn),[In]))},removeSider:In=>{me(Wn=>Wn.filter(xi=>xi!==In))}}}),[]);return Ye(Se.createElement(ge.Provider,{value:cn},Se.createElement(mn,Object.assign({ref:Gt,className:ri,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),Kn)},gn),ln)))}),ht=Qt({tagName:"div",displayName:"Layout"})(nt),at=Qt({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ft=Qt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),vt=Qt({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var Nt=ht},40875:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{J:function(){return We}});var Kt=Yt(59301),Le=Yt(33234),Te=Yt(70425),xn=function(je,de){var ve={};for(var It in je)Object.prototype.hasOwnProperty.call(je,It)&&de.indexOf(It)<0&&(ve[It]=je[It]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,It=Object.getOwnPropertySymbols(je);xe<It.length;xe++)de.indexOf(It[xe])<0&&Object.prototype.propertyIsEnumerable.call(je,It[xe])&&(ve[It[xe]]=je[It[xe]]);return ve};const Se=Kt.createContext(null),We=Kt.forwardRef((je,de)=>{const{children:ve}=je,It=xn(je,["children"]),xe=Kt.useContext(Se),ee=Kt.useMemo(()=>Object.assign(Object.assign({},xe),It),[xe,It.prefixCls,It.mode,It.selectable]);return Kt.createElement(Se.Provider,{value:ee},Kt.createElement(Le.BR,null,(0,Te.supportNodeRef)(ve)?Kt.cloneElement(ve,{ref:de}):ve))});Ii.Z=Se},20834:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{default:function(){return Tt}});var Kt=Yt(15285),Le=Yt(59301),Te=Yt(45818),xn=Yt(92310),Se=Yt.n(xn),We=Yt(36355),je=function(Ct,zt){var Ht={};for(var Mt in Ct)Object.prototype.hasOwnProperty.call(Ct,Mt)&&zt.indexOf(Mt)<0&&(Ht[Mt]=Ct[Mt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,Mt=Object.getOwnPropertySymbols(Ct);be<Mt.length;be++)zt.indexOf(Mt[be])<0&&Object.prototype.propertyIsEnumerable.call(Ct,Mt[be])&&(Ht[Mt[be]]=Ct[Mt[be]]);return Ht},ve=Ct=>{const{prefixCls:zt,className:Ht,dashed:Mt}=Ct,be=je(Ct,["prefixCls","className","dashed"]),{getPrefixCls:Ge}=Le.useContext(We.E_),vn=Ge("menu",zt),Fn=Se()({[`${vn}-item-divider-dashed`]:!!Mt},Ht);return Le.createElement(Kt.iz,Object.assign({className:Fn},be))},It=Yt(11592),xe=Yt(2738),ee=Yt(6848),ge=Yt(92343),et=(0,Le.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ht=Ct=>{var zt;const{className:Ht,children:Mt,icon:be,title:Ge,danger:vn}=Ct,{prefixCls:Fn,firstLevel:An,direction:kn,disableMenuItemTitleTooltip:Bn,inlineCollapsed:Vn}=Le.useContext(et),bi=sr=>{const Or=Le.createElement("span",{className:`${Fn}-title-content`},Mt);return(!be||(0,ge.l$)(Mt)&&Mt.type==="span")&&Mt&&sr&&An&&typeof Mt=="string"?Le.createElement("div",{className:`${Fn}-inline-collapsed-noicon`},Mt.charAt(0)):Or},{siderCollapsed:Pn}=Le.useContext(Te.D);let an=Ge;typeof Ge=="undefined"?an=An?Mt:"":Ge===!1&&(an="");const ei={title:an};!Pn&&!Vn&&(ei.title=null,ei.open=!1);const Ui=(0,It.Z)(Mt).length;let Pi=Le.createElement(Kt.ck,Object.assign({},(0,xe.Z)(Ct,["title","icon","danger"]),{className:Se()({[`${Fn}-item-danger`]:vn,[`${Fn}-item-only-child`]:(be?Ui+1:Ui)===1},Ht),title:typeof Ge=="string"?Ge:void 0}),(0,ge.Tm)(be,{className:Se()((0,ge.l$)(be)?(zt=be.props)===null||zt===void 0?void 0:zt.className:"",`${Fn}-item-icon`)}),bi(Vn));return Bn||(Pi=Le.createElement(ee.Z,Object.assign({},ei,{placement:kn==="rtl"?"left":"right",overlayClassName:`${Fn}-inline-collapsed-tooltip`}),Pi)),Pi},ft=Ct=>{var zt;const{popupClassName:Ht,icon:Mt,title:be,theme:Ge}=Ct,vn=Le.useContext(et),{prefixCls:Fn,inlineCollapsed:An,theme:kn}=vn,Bn=(0,Kt.Xl)();let Vn;if(!Mt)Vn=An&&!Bn.length&&be&&typeof be=="string"?Le.createElement("div",{className:`${Fn}-inline-collapsed-noicon`},be.charAt(0)):Le.createElement("span",{className:`${Fn}-title-content`},be);else{const Pn=(0,ge.l$)(be)&&be.type==="span";Vn=Le.createElement(Le.Fragment,null,(0,ge.Tm)(Mt,{className:Se()((0,ge.l$)(Mt)?(zt=Mt.props)===null||zt===void 0?void 0:zt.className:"",`${Fn}-item-icon`)}),Pn?be:Le.createElement("span",{className:`${Fn}-title-content`},be))}const bi=Le.useMemo(()=>Object.assign(Object.assign({},vn),{firstLevel:!1}),[vn]);return Le.createElement(et.Provider,{value:bi},Le.createElement(Kt.Wd,Object.assign({},(0,xe.Z)(Ct,["icon"]),{title:Vn,popupClassName:Se()(Fn,Ht,`${Fn}-${Ge||kn}`)})))},vt=Yt(18785),Nt=Yt(70425),Rt=Yt(62892),Gt=Yt(40875),$t=function(Ct,zt){var Ht={};for(var Mt in Ct)Object.prototype.hasOwnProperty.call(Ct,Mt)&&zt.indexOf(Mt)<0&&(Ht[Mt]=Ct[Mt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,Mt=Object.getOwnPropertySymbols(Ct);be<Mt.length;be++)zt.indexOf(Mt[be])<0&&Object.prototype.propertyIsEnumerable.call(Ct,Mt[be])&&(Ht[Mt[be]]=Ct[Mt[be]]);return Ht};function se(Ct){return(Ct||[]).map((zt,Ht)=>{if(zt&&typeof zt=="object"){const Mt=zt,{label:be,children:Ge,key:vn,type:Fn}=Mt,An=$t(Mt,["label","children","key","type"]),kn=vn!=null?vn:`tmp-${Ht}`;return Ge||Fn==="group"?Fn==="group"?Le.createElement(Kt.BW,Object.assign({key:kn},An,{title:be}),se(Ge)):Le.createElement(ft,Object.assign({key:kn},An,{title:be}),se(Ge)):Fn==="divider"?Le.createElement(ve,Object.assign({key:kn},An)):Le.createElement(ht,Object.assign({key:kn},An),be)}return null}).filter(zt=>zt)}function me(Ct){return Le.useMemo(()=>Ct&&se(Ct),[Ct])}var ce=Yt(64993),Xe=Yt(17313),De=Yt(8378),ln=Yt(13826),Oe=Yt(29878),mn=Yt(83116),Kn=Yt(37613),gn=Ct=>{const{componentCls:zt,motionDurationSlow:Ht,horizontalLineHeight:Mt,colorSplit:be,lineWidth:Ge,lineType:vn,itemPaddingInline:Fn}=Ct;return{[`${zt}-horizontal`]:{lineHeight:Mt,border:0,borderBottom:`${Ge}px ${vn} ${be}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${zt}-item, ${zt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Fn},[`> ${zt}-item:hover,
|
|
|
> ${zt}-item-active,
|
|
|
> ${zt}-submenu ${zt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${zt}-item, ${zt}-submenu-title`]:{transition:[`border-color ${Ht}`,`background ${Ht}`].join(",")},[`${zt}-submenu-arrow`]:{display:"none"}}}},fe=Ct=>{let{componentCls:zt,menuArrowOffset:Ht}=Ct;return{[`${zt}-rtl`]:{direction:"rtl"},[`${zt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${zt}-rtl${zt}-vertical,
|
|
|
${zt}-submenu-rtl ${zt}-vertical`]:{[`${zt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ht})`},"&::after":{transform:`rotate(45deg) translateY(${Ht})`}}}}};const Zt=Ct=>Object.assign({},(0,Xe.oN)(Ct));var Gn=(Ct,zt)=>{const{componentCls:Ht,itemColor:Mt,itemSelectedColor:be,groupTitleColor:Ge,itemBg:vn,subMenuItemBg:Fn,itemSelectedBg:An,activeBarHeight:kn,activeBarWidth:Bn,activeBarBorderWidth:Vn,motionDurationSlow:bi,motionEaseInOut:Pn,motionEaseOut:an,itemPaddingInline:ei,motionDurationMid:Ui,itemHoverColor:Pi,lineType:sr,colorSplit:Or,itemDisabledColor:Ao,dangerItemColor:po,dangerItemHoverColor:Zr,dangerItemSelectedColor:Ho,dangerItemActiveBg:Co,dangerItemSelectedBg:Jr,itemHoverBg:hr,itemActiveBg:to,menuSubMenuBg:oo,horizontalItemSelectedColor:Jo,horizontalItemSelectedBg:Ns,horizontalItemBorderRadius:ys,horizontalItemHoverBg:Xs,popupBg:vo}=Ct;return{[`${Ht}-${zt}, ${Ht}-${zt} > ${Ht}`]:{color:Mt,background:vn,[`&${Ht}-root:focus-visible`]:Object.assign({},Zt(Ct)),[`${Ht}-item-group-title`]:{color:Ge},[`${Ht}-submenu-selected`]:{[`> ${Ht}-submenu-title`]:{color:be}},[`${Ht}-item-disabled, ${Ht}-submenu-disabled`]:{color:`${Ao} !important`},[`${Ht}-item:not(${Ht}-item-selected):not(${Ht}-submenu-selected)`]:{[`&:hover, > ${Ht}-submenu-title:hover`]:{color:Pi}},[`&:not(${Ht}-horizontal)`]:{[`${Ht}-item:not(${Ht}-item-selected)`]:{"&:hover":{backgroundColor:hr},"&:active":{backgroundColor:to}},[`${Ht}-submenu-title`]:{"&:hover":{backgroundColor:hr},"&:active":{backgroundColor:to}}},[`${Ht}-item-danger`]:{color:po,[`&${Ht}-item:hover`]:{[`&:not(${Ht}-item-selected):not(${Ht}-submenu-selected)`]:{color:Zr}},[`&${Ht}-item:active`]:{background:Co}},[`${Ht}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ht}-item-selected`]:{color:be,[`&${Ht}-item-danger`]:{color:Ho},"a, a:hover":{color:"inherit"}},[`& ${Ht}-item-selected`]:{backgroundColor:An,[`&${Ht}-item-danger`]:{backgroundColor:Jr}},[`${Ht}-item, ${Ht}-submenu-title`]:{[`&:not(${Ht}-item-disabled):focus-visible`]:Object.assign({},Zt(Ct))},[`&${Ht}-submenu > ${Ht}`]:{backgroundColor:oo},[`&${Ht}-popup > ${Ht}`]:{backgroundColor:vo},[`&${Ht}-horizontal`]:Object.assign(Object.assign({},zt==="dark"?{borderBottom:0}:{}),{[`> ${Ht}-item, > ${Ht}-submenu`]:{top:Vn,marginTop:-Vn,marginBottom:0,borderRadius:ys,"&::after":{position:"absolute",insetInline:ei,bottom:0,borderBottom:`${kn}px solid transparent`,transition:`border-color ${bi} ${Pn}`,content:'""'},"&:hover, &-active, &-open":{background:Xs,"&::after":{borderBottomWidth:kn,borderBottomColor:Jo}},"&-selected":{color:Jo,backgroundColor:Ns,"&:hover":{backgroundColor:Ns},"&::after":{borderBottomWidth:kn,borderBottomColor:Jo}}}}),[`&${Ht}-root`]:{[`&${Ht}-inline, &${Ht}-vertical`]:{borderInlineEnd:`${Vn}px ${sr} ${Or}`}},[`&${Ht}-inline`]:{[`${Ht}-sub${Ht}-inline`]:{background:Fn},[`${Ht}-item, ${Ht}-submenu-title`]:Vn&&Bn?{width:`calc(100% + ${Vn}px)`}:{},[`${Ht}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Bn}px solid ${be}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ui} ${an}`,`opacity ${Ui} ${an}`].join(","),content:'""'},[`&${Ht}-item-danger`]:{"&::after":{borderInlineEndColor:Ho}}},[`${Ht}-selected, ${Ht}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ui} ${Pn}`,`opacity ${Ui} ${Pn}`].join(",")}}}}}};const ri=Ct=>{const{componentCls:zt,itemHeight:Ht,itemMarginInline:Mt,padding:be,menuArrowSize:Ge,marginXS:vn,itemMarginBlock:Fn}=Ct,An=be+Ge+vn;return{[`${zt}-item`]:{position:"relative",overflow:"hidden"},[`${zt}-item, ${zt}-submenu-title`]:{height:Ht,lineHeight:`${Ht}px`,paddingInline:be,overflow:"hidden",textOverflow:"ellipsis",marginInline:Mt,marginBlock:Fn,width:`calc(100% - ${Mt*2}px)`},[`> ${zt}-item,
|
|
|
> ${zt}-submenu > ${zt}-submenu-title`]:{height:Ht,lineHeight:`${Ht}px`},[`${zt}-item-group-list ${zt}-submenu-title,
|
|
|
${zt}-submenu-title`]:{paddingInlineEnd:An}}};var In=Ct=>{const{componentCls:zt,iconCls:Ht,itemHeight:Mt,colorTextLightSolid:be,dropdownWidth:Ge,controlHeightLG:vn,motionDurationMid:Fn,motionEaseOut:An,paddingXL:kn,itemMarginInline:Bn,fontSizeLG:Vn,motionDurationSlow:bi,paddingXS:Pn,boxShadowSecondary:an,collapsedWidth:ei,collapsedIconSize:Ui}=Ct,Pi={height:Mt,lineHeight:`${Mt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[zt]:{"&-inline, &-vertical":Object.assign({[`&${zt}-root`]:{boxShadow:"none"}},ri(Ct))},[`${zt}-submenu-popup`]:{[`${zt}-vertical`]:Object.assign(Object.assign({},ri(Ct)),{boxShadow:an})}},{[`${zt}-submenu-popup ${zt}-vertical${zt}-sub`]:{minWidth:Ge,maxHeight:`calc(100vh - ${vn*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${zt}-inline`]:{width:"100%",[`&${zt}-root`]:{[`${zt}-item, ${zt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${bi}`,`background ${bi}`,`padding ${Fn} ${An}`].join(","),[`> ${zt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${zt}-sub${zt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${zt}-submenu > ${zt}-submenu-title`]:Pi,[`& ${zt}-item-group-title`]:{paddingInlineStart:kn}},[`${zt}-item`]:Pi}},{[`${zt}-inline-collapsed`]:{width:ei,[`&${zt}-root`]:{[`${zt}-item, ${zt}-submenu ${zt}-submenu-title`]:{[`> ${zt}-inline-collapsed-noicon`]:{fontSize:Vn,textAlign:"center"}}},[`> ${zt}-item,
|
|
|
> ${zt}-item-group > ${zt}-item-group-list > ${zt}-item,
|
|
|
> ${zt}-item-group > ${zt}-item-group-list > ${zt}-submenu > ${zt}-submenu-title,
|
|
|
> ${zt}-submenu > ${zt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Vn/2}px - ${Bn}px)`,textOverflow:"clip",[`
|
|
|
${zt}-submenu-arrow,
|
|
|
${zt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${zt}-item-icon, ${Ht}`]:{margin:0,fontSize:Ui,lineHeight:`${Mt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${zt}-item-icon, ${Ht}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${zt}-item-icon, ${Ht}`]:{display:"none"},"a, a:hover":{color:be}},[`${zt}-item-group-title`]:Object.assign(Object.assign({},Xe.vS),{paddingInline:Pn})}}]};const Wn=Ct=>{const{componentCls:zt,motionDurationSlow:Ht,motionDurationMid:Mt,motionEaseInOut:be,motionEaseOut:Ge,iconCls:vn,iconSize:Fn,iconMarginInlineEnd:An}=Ct;return{[`${zt}-item, ${zt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ht}`,`background ${Ht}`,`padding ${Ht} ${be}`].join(","),[`${zt}-item-icon, ${vn}`]:{minWidth:Fn,fontSize:Fn,transition:[`font-size ${Mt} ${Ge}`,`margin ${Ht} ${be}`,`color ${Ht}`].join(","),"+ span":{marginInlineStart:An,opacity:1,transition:[`opacity ${Ht} ${be}`,`margin ${Ht}`,`color ${Ht}`].join(",")}},[`${zt}-item-icon`]:Object.assign({},(0,Xe.Ro)()),[`&${zt}-item-only-child`]:{[`> ${vn}, > ${zt}-item-icon`]:{marginInlineEnd:0}}},[`${zt}-item-disabled, ${zt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${zt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},xi=Ct=>{const{componentCls:zt,motionDurationSlow:Ht,motionEaseInOut:Mt,borderRadius:be,menuArrowSize:Ge,menuArrowOffset:vn}=Ct;return{[`${zt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ct.margin,width:Ge,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ht} ${Mt}, opacity ${Ht}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ge*.6,height:Ge*.15,backgroundColor:"currentcolor",borderRadius:be,transition:[`background ${Ht} ${Mt}`,`transform ${Ht} ${Mt}`,`top ${Ht} ${Mt}`,`color ${Ht} ${Mt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${vn})`},"&::after":{transform:`rotate(-45deg) translateY(${vn})`}}}}},pi=Ct=>{const{antCls:zt,componentCls:Ht,fontSize:Mt,motionDurationSlow:be,motionDurationMid:Ge,motionEaseInOut:vn,paddingXS:Fn,padding:An,colorSplit:kn,lineWidth:Bn,zIndexPopup:Vn,borderRadiusLG:bi,subMenuItemBorderRadius:Pn,menuArrowSize:an,menuArrowOffset:ei,lineType:Ui,menuPanelMaskInset:Pi,groupTitleLineHeight:sr,groupTitleFontSize:Or}=Ct;return[{"":{[`${Ht}`]:Object.assign(Object.assign({},(0,Xe.dF)()),{"&-hidden":{display:"none"}})},[`${Ht}-submenu-hidden`]:{display:"none"}},{[Ht]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(Ct)),(0,Xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Mt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${be} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ht}-item`]:{flex:"none"}},[`${Ht}-item, ${Ht}-submenu, ${Ht}-submenu-title`]:{borderRadius:Ct.itemBorderRadius},[`${Ht}-item-group-title`]:{padding:`${Fn}px ${An}px`,fontSize:Or,lineHeight:sr,transition:`all ${be}`},[`&-horizontal ${Ht}-submenu`]:{transition:[`border-color ${be} ${vn}`,`background ${be} ${vn}`].join(",")},[`${Ht}-submenu, ${Ht}-submenu-inline`]:{transition:[`border-color ${be} ${vn}`,`background ${be} ${vn}`,`padding ${Ge} ${vn}`].join(",")},[`${Ht}-submenu ${Ht}-sub`]:{cursor:"initial",transition:[`background ${be} ${vn}`,`padding ${be} ${vn}`].join(",")},[`${Ht}-title-content`]:{transition:`color ${be}`},[`${Ht}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ht}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:kn,borderStyle:Ui,borderWidth:0,borderTopWidth:Bn,marginBlock:Bn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Wn(Ct)),{[`${Ht}-item-group`]:{[`${Ht}-item-group-list`]:{margin:0,padding:0,[`${Ht}-item, ${Ht}-submenu-title`]:{paddingInline:`${Mt*2}px ${An}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Vn,borderRadius:bi,boxShadow:"none",transformOrigin:"0 0",[`&${Ht}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Pi}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Pi},"\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:Ct.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ct.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ct.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ct.paddingXS},[`> ${Ht}`]:Object.assign(Object.assign(Object.assign({borderRadius:bi},Wn(Ct)),xi(Ct)),{[`${Ht}-item, ${Ht}-submenu > ${Ht}-submenu-title`]:{borderRadius:Pn},[`${Ht}-submenu-title::after`]:{transition:`transform ${be} ${vn}`}})}}),xi(Ct)),{[`&-inline-collapsed ${Ht}-submenu-arrow,
|
|
|
&-inline ${Ht}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ei})`},"&::after":{transform:`rotate(45deg) translateX(-${ei})`}},[`${Ht}-submenu-open${Ht}-submenu-inline > ${Ht}-submenu-title > ${Ht}-submenu-arrow`]:{transform:`translateY(-${an*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ei})`},"&::before":{transform:`rotate(45deg) translateX(${ei})`}}})},{[`${zt}-layout-header`]:{[Ht]:{lineHeight:"inherit"}}}]};var zi=(Ct,zt)=>(0,mn.Z)("Menu",Mt=>{if(zt===!1)return[];const{colorBgElevated:be,colorPrimary:Ge,colorTextLightSolid:vn,controlHeightLG:Fn,fontSize:An,darkItemColor:kn,darkDangerItemColor:Bn,darkItemBg:Vn,darkSubMenuItemBg:bi,darkItemSelectedColor:Pn,darkItemSelectedBg:an,darkDangerItemSelectedBg:ei,darkItemHoverBg:Ui,darkGroupTitleColor:Pi,darkItemHoverColor:sr,darkItemDisabledColor:Or,darkDangerItemHoverColor:Ao,darkDangerItemSelectedColor:po,darkDangerItemActiveBg:Zr}=Mt,Ho=An/7*5,Co=(0,Kn.TS)(Mt,{menuArrowSize:Ho,menuHorizontalHeight:Fn*1.15,menuArrowOffset:`${Ho*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:be}),Jr=(0,Kn.TS)(Co,{itemColor:kn,itemHoverColor:sr,groupTitleColor:Pi,itemSelectedColor:Pn,itemBg:Vn,popupBg:Vn,subMenuItemBg:bi,itemActiveBg:"transparent",itemSelectedBg:an,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ui,itemDisabledColor:Or,dangerItemColor:Bn,dangerItemHoverColor:Ao,dangerItemSelectedColor:po,dangerItemActiveBg:Zr,dangerItemSelectedBg:ei,menuSubMenuBg:bi,horizontalItemSelectedColor:vn,horizontalItemSelectedBg:Ge});return[pi(Co),gn(Co),In(Co),Gn(Co,"light"),Gn(Jr,"dark"),fe(Co),(0,De.Z)(Co),(0,ln.oN)(Co,"slide-up"),(0,ln.oN)(Co,"slide-down"),(0,Oe._y)(Co,"zoom-big")]},Mt=>{const{colorPrimary:be,colorError:Ge,colorTextDisabled:vn,colorErrorBg:Fn,colorText:An,colorTextDescription:kn,colorBgContainer:Bn,colorFillAlter:Vn,colorFillContent:bi,lineWidth:Pn,lineWidthBold:an,controlItemBgActive:ei,colorBgTextHover:Ui,controlHeightLG:Pi,lineHeight:sr,colorBgElevated:Or,marginXXS:Ao,padding:po,fontSize:Zr,controlHeightSM:Ho,fontSizeLG:Co,colorTextLightSolid:Jr,colorErrorHover:hr}=Mt,to=new ce.C(Jr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Mt.zIndexPopupBase+50,radiusItem:Mt.borderRadiusLG,itemBorderRadius:Mt.borderRadiusLG,radiusSubMenuItem:Mt.borderRadiusSM,subMenuItemBorderRadius:Mt.borderRadiusSM,colorItemText:An,itemColor:An,colorItemTextHover:An,itemHoverColor:An,colorItemTextHoverHorizontal:be,horizontalItemHoverColor:be,colorGroupTitle:kn,groupTitleColor:kn,colorItemTextSelected:be,itemSelectedColor:be,colorItemTextSelectedHorizontal:be,horizontalItemSelectedColor:be,colorItemBg:Bn,itemBg:Bn,colorItemBgHover:Ui,itemHoverBg:Ui,colorItemBgActive:bi,itemActiveBg:ei,colorSubItemBg:Vn,subMenuItemBg:Vn,colorItemBgSelected:ei,itemSelectedBg:ei,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:an,activeBarHeight:an,colorActiveBarBorderSize:Pn,activeBarBorderWidth:Pn,colorItemTextDisabled:vn,itemDisabledColor:vn,colorDangerItemText:Ge,dangerItemColor:Ge,colorDangerItemTextHover:Ge,dangerItemHoverColor:Ge,colorDangerItemTextSelected:Ge,dangerItemSelectedColor:Ge,colorDangerItemBgActive:Fn,dangerItemActiveBg:Fn,colorDangerItemBgSelected:Fn,dangerItemSelectedBg:Fn,itemMarginInline:Mt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pi,groupTitleLineHeight:sr,collapsedWidth:Pi*2,popupBg:Or,itemMarginBlock:Ao,itemPaddingInline:po,horizontalLineHeight:`${Pi*1.15}px`,iconSize:Zr,iconMarginInlineEnd:Ho-Zr,collapsedIconSize:Co,groupTitleFontSize:Zr,darkItemDisabledColor:new ce.C(Jr).setAlpha(.25).toRgbString(),darkItemColor:to,darkDangerItemColor:Ge,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Jr,darkItemSelectedBg:be,darkDangerItemSelectedBg:Ge,darkItemHoverBg:"transparent",darkGroupTitleColor:to,darkItemHoverColor:Jr,darkDangerItemHoverColor:hr,darkDangerItemSelectedColor:Jr,darkDangerItemActiveBg:Ge}},{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"]]})(Ct),Ie=function(Ct,zt){var Ht={};for(var Mt in Ct)Object.prototype.hasOwnProperty.call(Ct,Mt)&&zt.indexOf(Mt)<0&&(Ht[Mt]=Ct[Mt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,Mt=Object.getOwnPropertySymbols(Ct);be<Mt.length;be++)zt.indexOf(Mt[be])<0&&Object.prototype.propertyIsEnumerable.call(Ct,Mt[be])&&(Ht[Mt[be]]=Ct[Mt[be]]);return Ht},Ti=(0,Le.forwardRef)((Ct,zt)=>{var Ht,Mt;const be=Le.useContext(Gt.Z),Ge=be||{},{getPrefixCls:vn,getPopupContainer:Fn,direction:An,menu:kn}=Le.useContext(We.E_),Bn=vn(),{prefixCls:Vn,className:bi,style:Pn,theme:an="light",expandIcon:ei,_internalDisableMenuItemTitleTooltip:Ui,inlineCollapsed:Pi,siderCollapsed:sr,items:Or,children:Ao,rootClassName:po,mode:Zr,selectable:Ho,onClick:Co,overflowedIndicatorPopupClassName:Jr}=Ct,hr=Ie(Ct,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),to=(0,xe.Z)(hr,["collapsedWidth"]),oo=me(Or)||Ao;(Ht=Ge.validator)===null||Ht===void 0||Ht.call(Ge,{mode:Zr});const Jo=(0,Nt.useEvent)(function(){var fa;Co==null||Co.apply(void 0,arguments),(fa=Ge.onClick)===null||fa===void 0||fa.call(Ge)}),Ns=Ge.mode||Zr,ys=Ho!=null?Ho:Ge.selectable,Xs=Le.useMemo(()=>sr!==void 0?sr:Pi,[Pi,sr]),vo={horizontal:{motionName:`${Bn}-slide-up`},inline:(0,Rt.Z)(Bn),other:{motionName:`${Bn}-zoom-big`}},jt=vn("menu",Vn||Ge.prefixCls),[la,os]=zi(jt,!be),_s=Se()(`${jt}-${an}`,kn==null?void 0:kn.className,bi);let Ss;if(typeof ei=="function")Ss=ei;else if(ei===null||ei===!1)Ss=null;else if(Ge.expandIcon===null||Ge.expandIcon===!1)Ss=null;else{const fa=ei!=null?ei:Ge.expandIcon;Ss=(0,ge.Tm)(fa,{className:Se()(`${jt}-submenu-expand-icon`,(0,ge.l$)(fa)?(Mt=fa.props)===null||Mt===void 0?void 0:Mt.className:"")})}const ca=Le.useMemo(()=>({prefixCls:jt,inlineCollapsed:Xs||!1,direction:An,firstLevel:!0,theme:an,mode:Ns,disableMenuItemTitleTooltip:Ui}),[jt,Xs,An,Ui,an]);return la(Le.createElement(Gt.Z.Provider,{value:null},Le.createElement(et.Provider,{value:ca},Le.createElement(Kt.ZP,Object.assign({getPopupContainer:Fn,overflowedIndicator:Le.createElement(vt.Z,null),overflowedIndicatorPopupClassName:Se()(jt,`${jt}-${an}`,Jr),mode:Ns,selectable:ys,onClick:Jo},to,{inlineCollapsed:Xs,style:Object.assign(Object.assign({},kn==null?void 0:kn.style),Pn),className:_s,prefixCls:jt,direction:An,defaultMotions:vo,expandIcon:Ss,ref:zt,rootClassName:Se()(po,os)}),oo))))});const ue=(0,Le.forwardRef)((Ct,zt)=>{const Ht=(0,Le.useRef)(null),Mt=Le.useContext(Te.D);return(0,Le.useImperativeHandle)(zt,()=>({menu:Ht.current,focus:be=>{var Ge;(Ge=Ht.current)===null||Ge===void 0||Ge.focus(be)}})),Le.createElement(Ti,Object.assign({ref:Ht},Ct,Mt))});ue.Item=ht,ue.SubMenu=ft,ue.Divider=ve,ue.ItemGroup=Kt.BW;var Tt=ue},39722:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{t5:function(){return It}});var Kt=Yt(92310),Le=Yt.n(Kt),Te=Yt(55477),xn=Yt(59301),Se=Yt(36355),We=Yt(77578),je=Yt(17356),de=function(ee,ge){var Qt={};for(var et in ee)Object.prototype.hasOwnProperty.call(ee,et)&&ge.indexOf(et)<0&&(Qt[et]=ee[et]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(ee);nt<et.length;nt++)ge.indexOf(et[nt])<0&&Object.prototype.propertyIsEnumerable.call(ee,et[nt])&&(Qt[et[nt]]=ee[et[nt]]);return Qt};const ve=(ee,ge,Qt)=>{if(!(!ge&&!Qt))return xn.createElement(xn.Fragment,null,ge&&xn.createElement("div",{className:`${ee}-title`},(0,We.Z)(ge)),xn.createElement("div",{className:`${ee}-inner-content`},(0,We.Z)(Qt)))},It=ee=>{const{hashId:ge,prefixCls:Qt,className:et,style:nt,placement:ht="top",title:at,content:ft,children:vt}=ee;return xn.createElement("div",{className:Le()(ge,Qt,`${Qt}-pure`,`${Qt}-placement-${ht}`,et),style:nt},xn.createElement("div",{className:`${Qt}-arrow`}),xn.createElement(Te.G,Object.assign({},ee,{className:ge,prefixCls:Qt}),vt||ve(Qt,at,ft)))},xe=ee=>{const{prefixCls:ge}=ee,Qt=de(ee,["prefixCls"]),{getPrefixCls:et}=xn.useContext(Se.E_),nt=et("popover",ge),[ht,at]=(0,je.Z)(nt);return ht(xn.createElement(It,Object.assign({},Qt,{prefixCls:nt,hashId:at})))};Ii.ZP=xe},60324:function(Ci,Ii,Yt){"use strict";var Kt=Yt(92310),Le=Yt.n(Kt),Te=Yt(59301),xn=Yt(77578),Se=Yt(62892),We=Yt(36355),je=Yt(6848),de=Yt(39722),ve=Yt(17356),It=function(ge,Qt){var et={};for(var nt in ge)Object.prototype.hasOwnProperty.call(ge,nt)&&Qt.indexOf(nt)<0&&(et[nt]=ge[nt]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,nt=Object.getOwnPropertySymbols(ge);ht<nt.length;ht++)Qt.indexOf(nt[ht])<0&&Object.prototype.propertyIsEnumerable.call(ge,nt[ht])&&(et[nt[ht]]=ge[nt[ht]]);return et};const xe=ge=>{let{title:Qt,content:et,prefixCls:nt}=ge;return Te.createElement(Te.Fragment,null,Qt&&Te.createElement("div",{className:`${nt}-title`},(0,xn.Z)(Qt)),Te.createElement("div",{className:`${nt}-inner-content`},(0,xn.Z)(et)))},ee=Te.forwardRef((ge,Qt)=>{const{prefixCls:et,title:nt,content:ht,overlayClassName:at,placement:ft="top",trigger:vt="hover",mouseEnterDelay:Nt=.1,mouseLeaveDelay:Rt=.1,overlayStyle:Gt={}}=ge,$t=It(ge,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:se}=Te.useContext(We.E_),me=se("popover",et),[ce,Xe]=(0,ve.Z)(me),De=se(),ln=Le()(at,Xe);return ce(Te.createElement(je.Z,Object.assign({placement:ft,trigger:vt,mouseEnterDelay:Nt,mouseLeaveDelay:Rt,overlayStyle:Gt},$t,{prefixCls:me,overlayClassName:ln,ref:Qt,overlay:nt||ht?Te.createElement(xe,{prefixCls:me,title:nt,content:ht}):null,transitionName:(0,Se.m)(De,"zoom-big",$t.transitionName),"data-popover-inject":!0})))});ee._InternalPanelDoNotUseOrYouWillBeFired=de.ZP,Ii.Z=ee},17356:function(Ci,Ii,Yt){"use strict";var Kt=Yt(17313),Le=Yt(29878),Te=Yt(19447),xn=Yt(33166),Se=Yt(83116),We=Yt(37613);const je=It=>{const{componentCls:xe,popoverColor:ee,minWidth:ge,fontWeightStrong:Qt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:ht,borderRadiusLG:at,zIndexPopup:ft,marginXS:vt,colorBgElevated:Nt,popoverBg:Rt}=It;return[{[xe]:Object.assign(Object.assign({},(0,Kt.Wf)(It)),{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":Nt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${xe}-content`]:{position:"relative"},[`${xe}-inner`]:{backgroundColor:Rt,backgroundClip:"padding-box",borderRadius:at,boxShadow:nt,padding:et},[`${xe}-title`]:{minWidth:ge,marginBottom:vt,color:ht,fontWeight:Qt},[`${xe}-inner-content`]:{color:ee}})},(0,Te.ZP)(It,{colorBg:"var(--antd-arrow-background-color)"}),{[`${xe}-pure`]:{position:"relative",maxWidth:"none",margin:It.sizePopupArrow,display:"inline-block",[`${xe}-content`]:{display:"inline-block"}}}]},de=It=>{const{componentCls:xe}=It;return{[xe]:xn.i.map(ee=>{const ge=It[`${ee}6`];return{[`&${xe}-${ee}`]:{"--antd-arrow-background-color":ge,[`${xe}-inner`]:{backgroundColor:ge},[`${xe}-arrow`]:{background:"transparent"}}}})}},ve=It=>{const{componentCls:xe,lineWidth:ee,lineType:ge,colorSplit:Qt,paddingSM:et,controlHeight:nt,fontSize:ht,lineHeight:at,padding:ft}=It,vt=nt-Math.round(ht*at),Nt=vt/2,Rt=vt/2-ee,Gt=ft;return{[xe]:{[`${xe}-inner`]:{padding:0},[`${xe}-title`]:{margin:0,padding:`${Nt}px ${Gt}px ${Rt}px`,borderBottom:`${ee}px ${ge} ${Qt}`},[`${xe}-inner-content`]:{padding:`${et}px ${Gt}px`}}}};Ii.Z=(0,Se.Z)("Popover",It=>{const{colorBgElevated:xe,colorText:ee,wireframe:ge}=It,Qt=(0,We.TS)(It,{popoverPadding:12,popoverBg:xe,popoverColor:ee});return[je(Qt),de(Qt),ge&&ve(Qt),(0,Le._y)(Qt,"zoom-big")]},It=>({width:177,minWidth:177,zIndexPopup:It.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Zt}});var Kt=Yt(92413),Le=Yt(59301),Te={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"},xn=Te,Se=Yt(7657),We=function(Gn,ri){return Le.createElement(Se.Z,(0,Kt.Z)({},Gn,{ref:ri,icon:xn}))},je=Le.forwardRef(We),de=je,ve=Yt(92310),It=Yt.n(ve),xe=Yt(400),ee=Yt(33606),ge=Yt(37061),Qt=Yt(18929),et=Yt(10228),nt=Yt(26112);function ht(Ye,Gn){var ri=Ye.disabled,cn=Ye.prefixCls,In=Ye.character,Wn=Ye.characterRender,xi=Ye.index,pi=Ye.count,zi=Ye.value,Ie=Ye.allowHalf,Ai=Ye.focused,Ti=Ye.onHover,ue=Ye.onClick,Tt=function(Fn){Ti(Fn,xi)},Ct=function(Fn){ue(Fn,xi)},zt=function(Fn){Fn.keyCode===et.Z.ENTER&&ue(Fn,xi)},Ht=xi+1,Mt=new Set([cn]);zi===0&&xi===0&&Ai?Mt.add("".concat(cn,"-focused")):Ie&&zi+.5>=Ht&&zi<Ht?(Mt.add("".concat(cn,"-half")),Mt.add("".concat(cn,"-active")),Ai&&Mt.add("".concat(cn,"-focused"))):(Ht<=zi?Mt.add("".concat(cn,"-full")):Mt.add("".concat(cn,"-zero")),Ht===zi&&Ai&&Mt.add("".concat(cn,"-focused")));var be=typeof In=="function"?In(Ye):In,Ge=Le.createElement("li",{className:It()(Array.from(Mt)),ref:Gn},Le.createElement("div",{onClick:ri?null:Ct,onKeyDown:ri?null:zt,onMouseMove:ri?null:Tt,role:"radio","aria-checked":zi>xi?"true":"false","aria-posinset":xi+1,"aria-setsize":pi,tabIndex:ri?-1:0},Le.createElement("div",{className:"".concat(cn,"-first")},be),Le.createElement("div",{className:"".concat(cn,"-second")},be)));return Wn&&(Ge=Wn(Ge,Ye)),Ge}var at=Le.forwardRef(ht);function ft(){var Ye=Le.useRef({});function Gn(cn){return Ye.current[cn]}function ri(cn){return function(In){Ye.current[cn]=In}}return[Gn,ri]}function vt(Ye){var Gn=Ye.pageXOffset,ri="scrollLeft";if(typeof Gn!="number"){var cn=Ye.document;Gn=cn.documentElement[ri],typeof Gn!="number"&&(Gn=cn.body[ri])}return Gn}function Nt(Ye){var Gn,ri,cn=Ye.ownerDocument,In=cn.body,Wn=cn&&cn.documentElement,xi=Ye.getBoundingClientRect();return Gn=xi.left,ri=xi.top,Gn-=Wn.clientLeft||In.clientLeft||0,ri-=Wn.clientTop||In.clientTop||0,{left:Gn,top:ri}}function Rt(Ye){var Gn=Nt(Ye),ri=Ye.ownerDocument,cn=ri.defaultView||ri.parentWindow;return Gn.left+=vt(cn),Gn.left}var Gt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function $t(Ye,Gn){var ri,cn=Ye.prefixCls,In=cn===void 0?"rc-rate":cn,Wn=Ye.className,xi=Ye.defaultValue,pi=Ye.value,zi=Ye.count,Ie=zi===void 0?5:zi,Ai=Ye.allowHalf,Ti=Ai===void 0?!1:Ai,ue=Ye.allowClear,Tt=ue===void 0?!0:ue,Ct=Ye.character,zt=Ct===void 0?"\u2605":Ct,Ht=Ye.characterRender,Mt=Ye.disabled,be=Ye.direction,Ge=be===void 0?"ltr":be,vn=Ye.tabIndex,Fn=vn===void 0?0:vn,An=Ye.autoFocus,kn=Ye.onHoverChange,Bn=Ye.onChange,Vn=Ye.onFocus,bi=Ye.onBlur,Pn=Ye.onKeyDown,an=Ye.onMouseLeave,ei=(0,ge.Z)(Ye,Gt),Ui=ft(),Pi=(0,ee.Z)(Ui,2),sr=Pi[0],Or=Pi[1],Ao=Le.useRef(null),po=function(){if(!Mt){var ye;(ye=Ao.current)===null||ye===void 0||ye.focus()}};Le.useImperativeHandle(Gn,function(){return{focus:po,blur:function(){if(!Mt){var ye;(ye=Ao.current)===null||ye===void 0||ye.blur()}}}});var Zr=(0,Qt.Z)(xi||0,{value:pi}),Ho=(0,ee.Z)(Zr,2),Co=Ho[0],Jr=Ho[1],hr=(0,Qt.Z)(null),to=(0,ee.Z)(hr,2),oo=to[0],Jo=to[1],Ns=function(ye,qe){var Mn=Ge==="rtl",li=ye+1;if(Ti){var Si=sr(ye),Fe=Rt(Si),Qn=Si.clientWidth;(Mn&&qe-Fe>Qn/2||!Mn&&qe-Fe<Qn/2)&&(li-=.5)}return li},ys=function(ye){Jr(ye),Bn==null||Bn(ye)},Xs=Le.useState(!1),vo=(0,ee.Z)(Xs,2),jt=vo[0],la=vo[1],os=function(){la(!0),Vn==null||Vn()},_s=function(){la(!1),bi==null||bi()},Ss=Le.useState(null),ca=(0,ee.Z)(Ss,2),fa=ca[0],Pr=ca[1],Fr=function(ye,qe){var Mn=Ns(qe,ye.pageX);Mn!==oo&&(Pr(Mn),Jo(null)),kn==null||kn(Mn)},dn=function(ye){Mt||(Pr(null),Jo(null),kn==null||kn(void 0)),ye&&(an==null||an(ye))},nn=function(ye,qe){var Mn=Ns(qe,ye.pageX),li=!1;Tt&&(li=Mn===Co),dn(),ys(li?0:Mn),Jo(li?Mn:null)},he=function(ye){var qe=ye.keyCode,Mn=Ge==="rtl",li=Co;qe===et.Z.RIGHT&&li<Ie&&!Mn?(Ti?li+=.5:li+=1,ys(li),ye.preventDefault()):qe===et.Z.LEFT&&li>0&&!Mn||qe===et.Z.RIGHT&&li>0&&Mn?(Ti?li-=.5:li-=1,ys(li),ye.preventDefault()):qe===et.Z.LEFT&&li<Ie&&Mn&&(Ti?li+=.5:li+=1,ys(li),ye.preventDefault()),Pn==null||Pn(ye)};Le.useEffect(function(){An&&!Mt&&po()},[]);var Un=new Array(Ie).fill(0).map(function(Qe,ye){return Le.createElement(at,{ref:Or(ye),index:ye,count:Ie,disabled:Mt,prefixCls:"".concat(In,"-star"),allowHalf:Ti,value:fa===null?Co:fa,onClick:nn,onHover:Fr,key:Qe||ye,character:zt,characterRender:Ht,focused:jt})}),Yn=It()(In,Wn,(ri={},(0,xe.Z)(ri,"".concat(In,"-disabled"),Mt),(0,xe.Z)(ri,"".concat(In,"-rtl"),Ge==="rtl"),ri));return Le.createElement("ul",(0,Kt.Z)({className:Yn,onMouseLeave:dn,tabIndex:Mt?-1:Fn,onFocus:Mt?null:os,onBlur:Mt?null:_s,onKeyDown:Mt?null:he,ref:Ao,role:"radiogroup"},(0,nt.Z)(ei,{aria:!0,data:!0,attr:!0})),Un)}var se=Le.forwardRef($t),me=se,ce=Yt(36355),Xe=Yt(6848),De=Yt(17313),ln=Yt(83116),Oe=Yt(37613);const mn=Ye=>{const{componentCls:Gn}=Ye;return{[`${Gn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ye.marginXS},"> div":{transition:`all ${Ye.motionDurationMid}, outline 0s`,"&:hover":{transform:Ye.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ye.lineWidth}px dashed ${Ye.starColor}`,transform:Ye.starHoverScale}},"&-first, &-second":{color:Ye.starBg,transition:`all ${Ye.motionDurationMid}`,userSelect:"none",[Ye.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Gn}-star-first, &-half ${Gn}-star-second`]:{opacity:1},[`&-half ${Gn}-star-first, &-full ${Gn}-star-second`]:{color:"inherit"}}}},Kn=Ye=>({[`&-rtl${Ye.componentCls}`]:{direction:"rtl"}}),sn=Ye=>{const{componentCls:Gn}=Ye;return{[Gn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(Ye)),{display:"inline-block",margin:0,padding:0,color:Ye.starColor,fontSize:Ye.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Gn} ${Gn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),mn(Ye)),{[`+ ${Gn}-text`]:{display:"inline-block",marginInlineStart:Ye.marginXS,fontSize:Ye.fontSize}}),Kn(Ye))}};var gn=(0,ln.Z)("Rate",Ye=>{const Gn=(0,Oe.TS)(Ye,{});return[sn(Gn)]},Ye=>({starColor:Ye.yellow6,starSize:Ye.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ye.colorFillContent})),pn=function(Ye,Gn){var ri={};for(var cn in Ye)Object.prototype.hasOwnProperty.call(Ye,cn)&&Gn.indexOf(cn)<0&&(ri[cn]=Ye[cn]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,cn=Object.getOwnPropertySymbols(Ye);In<cn.length;In++)Gn.indexOf(cn[In])<0&&Object.prototype.propertyIsEnumerable.call(Ye,cn[In])&&(ri[cn[In]]=Ye[cn[In]]);return ri},Zt=Le.forwardRef((Ye,Gn)=>{const{prefixCls:ri,className:cn,rootClassName:In,style:Wn,tooltips:xi,character:pi=Le.createElement(de,null)}=Ye,zi=pn(Ye,["prefixCls","className","rootClassName","style","tooltips","character"]),Ie=(Mt,be)=>{let{index:Ge}=be;return xi?Le.createElement(Xe.Z,{title:xi[Ge]},Mt):Mt},{getPrefixCls:Ai,direction:Ti,rate:ue}=Le.useContext(ce.E_),Tt=Ai("rate",ri),[Ct,zt]=gn(Tt),Ht=Object.assign(Object.assign({},ue==null?void 0:ue.style),Wn);return Ct(Le.createElement(me,Object.assign({ref:Gn,character:pi,characterRender:Ie},zi,{className:It()(cn,In,zt,ue==null?void 0:ue.className),style:Ht,prefixCls:Tt,direction:Ti})))})},57809:function(Ci,Ii,Yt){"use strict";var Kt=Yt(92310),Le=Yt.n(Kt),Te=Yt(77861),xn=Yt(2738),Se=Yt(59301),We=Yt(53487),je=Yt(62892),de=Yt(19080),ve=Yt(36355),It=Yt(1684),xe=Yt(93891),ee=Yt(19716),ge=Yt(32441),Qt=Yt(33234),et=Yt(14154),nt=Yt(58582),ht=Yt(84443),at=Yt(66339),ft=function($t,se){var me={};for(var ce in $t)Object.prototype.hasOwnProperty.call($t,ce)&&se.indexOf(ce)<0&&(me[ce]=$t[ce]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,ce=Object.getOwnPropertySymbols($t);Xe<ce.length;Xe++)se.indexOf(ce[Xe])<0&&Object.prototype.propertyIsEnumerable.call($t,ce[Xe])&&(me[ce[Xe]]=$t[ce[Xe]]);return me};const vt="SECRET_COMBOBOX_MODE_DO_NOT_USE",Nt=($t,se)=>{var me,{prefixCls:ce,bordered:Xe=!0,className:De,rootClassName:ln,getPopupContainer:Oe,popupClassName:mn,dropdownClassName:Kn,listHeight:sn=256,placement:gn,listItemHeight:pn=24,size:fe,disabled:Zt,notFoundContent:Ye,status:Gn,builtinPlacements:ri,dropdownMatchSelectWidth:cn,popupMatchSelectWidth:In,direction:Wn,style:xi,allowClear:pi}=$t,zi=ft($t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ie,getPrefixCls:Ai,renderEmpty:Ti,direction:ue,virtual:Tt,popupMatchSelectWidth:Ct,popupOverflow:zt,select:Ht}=Se.useContext(ve.E_),Mt=Ai("select",ce),be=Ai(),Ge=Wn!=null?Wn:ue,{compactSize:vn,compactItemClassnames:Fn}=(0,Qt.ri)(Mt,Ge),[An,kn]=(0,et.Z)(Mt),Bn=Se.useMemo(()=>{const{mode:vo}=zi;if(vo!=="combobox")return vo===vt?"combobox":vo},[zi.mode]),Vn=Bn==="multiple"||Bn==="tags",bi=(0,ht.Z)(zi.suffixIcon,zi.showArrow),Pn=(me=In!=null?In:cn)!==null&&me!==void 0?me:Ct,{status:an,hasFeedback:ei,isFormItemInput:Ui,feedbackIcon:Pi}=Se.useContext(ge.aM),sr=(0,de.F)(an,Gn);let Or;Ye!==void 0?Or=Ye:Bn==="combobox"?Or=null:Or=(Ti==null?void 0:Ti("Select"))||Se.createElement(xe.Z,{componentName:"Select"});const{suffixIcon:Ao,itemIcon:po,removeIcon:Zr,clearIcon:Ho}=(0,at.Z)(Object.assign(Object.assign({},zi),{multiple:Vn,hasFeedback:ei,feedbackIcon:Pi,showSuffixIcon:bi,prefixCls:Mt,showArrow:zi.showArrow,componentName:"Select"})),Co=pi===!0?{clearIcon:Ho}:pi,Jr=(0,xn.Z)(zi,["suffixIcon","itemIcon"]),hr=Le()(mn||Kn,{[`${Mt}-dropdown-${Ge}`]:Ge==="rtl"},ln,kn),to=(0,ee.Z)(vo=>{var jt;return(jt=fe!=null?fe:vn)!==null&&jt!==void 0?jt:vo}),oo=Se.useContext(It.Z),Jo=Zt!=null?Zt:oo,Ns=Le()({[`${Mt}-lg`]:to==="large",[`${Mt}-sm`]:to==="small",[`${Mt}-rtl`]:Ge==="rtl",[`${Mt}-borderless`]:!Xe,[`${Mt}-in-form-item`]:Ui},(0,de.Z)(Mt,sr,ei),Fn,Ht==null?void 0:Ht.className,De,ln,kn),ys=Se.useMemo(()=>gn!==void 0?gn:Ge==="rtl"?"bottomRight":"bottomLeft",[gn,Ge]),Xs=(0,nt.Z)(ri,zt);return An(Se.createElement(Te.ZP,Object.assign({ref:se,virtual:Tt,showSearch:Ht==null?void 0:Ht.showSearch},Jr,{style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),xi),dropdownMatchSelectWidth:Pn,builtinPlacements:Xs,transitionName:(0,je.m)(be,"slide-up",zi.transitionName),listHeight:sn,listItemHeight:pn,mode:Bn,prefixCls:Mt,placement:ys,direction:Ge,suffixIcon:Ao,menuItemSelectedIcon:po,removeIcon:Zr,allowClear:Co,notFoundContent:Or,className:Ns,getPopupContainer:Oe||Ie,dropdownClassName:hr,disabled:Jo})))},Rt=Se.forwardRef(Nt),Gt=(0,We.Z)(Rt);Rt.SECRET_COMBOBOX_MODE_DO_NOT_USE=vt,Rt.Option=Te.Wx,Rt.OptGroup=Te.Xo,Rt._InternalPanelDoNotUseOrYouWillBeFired=Gt,Ii.default=Rt},14154:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Rt}});var Kt=Yt(17313),Le=Yt(74207),Te=Yt(37613),xn=Yt(83116),Se=Yt(13826),We=Yt(92899);const je=Gt=>{const{optionHeight:$t,optionFontSize:se,optionLineHeight:me,optionPadding:ce}=Gt;return{position:"relative",display:"block",minHeight:$t,padding:ce,color:Gt.colorText,fontWeight:"normal",fontSize:se,lineHeight:me,boxSizing:"border-box"}};var ve=Gt=>{const{antCls:$t,componentCls:se}=Gt,me=`${se}-item`,ce=`&${$t}-slide-up-enter${$t}-slide-up-enter-active`,Xe=`&${$t}-slide-up-appear${$t}-slide-up-appear-active`,De=`&${$t}-slide-up-leave${$t}-slide-up-leave-active`,ln=`${se}-dropdown-placement-`;return[{[`${se}-dropdown`]:Object.assign(Object.assign({},(0,Kt.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,[`
|
|
|
${ce}${ln}bottomLeft,
|
|
|
${Xe}${ln}bottomLeft
|
|
|
`]:{animationName:Se.fJ},[`
|
|
|
${ce}${ln}topLeft,
|
|
|
${Xe}${ln}topLeft,
|
|
|
${ce}${ln}topRight,
|
|
|
${Xe}${ln}topRight
|
|
|
`]:{animationName:Se.Qt},[`${De}${ln}bottomLeft`]:{animationName:Se.Uw},[`
|
|
|
${De}${ln}topLeft,
|
|
|
${De}${ln}topRight
|
|
|
`]:{animationName:Se.ly},"&-hidden":{display:"none"},[`${me}`]:Object.assign(Object.assign({},je(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"},Kt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${me}-option-disabled)`]:{backgroundColor:Gt.optionActiveBg},[`&-selected:not(${me}-option-disabled)`]:{color:Gt.optionSelectedColor,fontWeight:Gt.optionSelectedFontWeight,backgroundColor:Gt.optionSelectedBg,[`${me}-option-state`]:{color:Gt.colorPrimary}},"&-disabled":{[`&${me}-option-selected`]:{backgroundColor:Gt.colorBgContainerDisabled},color:Gt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Gt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Se.oN)(Gt,"slide-up"),(0,Se.oN)(Gt,"slide-down"),(0,We.Fm)(Gt,"move-up"),(0,We.Fm)(Gt,"move-down")]};const It=2,xe=Gt=>{let{controlHeightSM:$t,controlHeight:se,lineWidth:me}=Gt;const ce=(se-$t)/2-me,Xe=Math.ceil(ce/2);return[ce,Xe]};function ee(Gt,$t){const{componentCls:se,iconCls:me}=Gt,ce=`${se}-selection-overflow`,Xe=Gt.multipleSelectItemHeight,[De]=xe(Gt),ln=$t?`${se}-${$t}`:"";return{[`${se}-multiple${ln}`]:{fontSize:Gt.fontSize,[ce]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${se}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${De-It}px ${It*2}px`,borderRadius:Gt.borderRadius,[`${se}-show-search&`]:{cursor:"text"},[`${se}-disabled&`]:{background:Gt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${It}px 0`,lineHeight:`${Xe}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${se}-show-arrow ${se}-selector,
|
|
|
&${se}-allow-clear ${se}-selector
|
|
|
`]:{paddingInlineEnd:Gt.fontSizeIcon+Gt.controlPaddingHorizontal},[`${se}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Xe,marginTop:It,marginBottom:It,lineHeight:`${Xe-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:It*2,paddingInlineStart:Gt.paddingXS,paddingInlineEnd:Gt.paddingXS/2,[`${se}-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,Kt.Ro)()),{display:"inline-flex",alignItems:"center",color:Gt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${me}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Gt.colorIconHover}})},[`${ce}-item + ${ce}-item`]:{[`${se}-selection-search`]:{marginInlineStart:0}},[`${se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Gt.inputPaddingHorizontalBase-De,"\n &-input,\n &-mirror\n ":{height:Xe,fontFamily:Gt.fontFamily,lineHeight:`${Xe}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"}},[`${se}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Gt.inputPaddingHorizontalBase,insetInlineEnd:Gt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Gt.motionDurationSlow}`}}}}var Qt=Gt=>{const{componentCls:$t}=Gt,se=(0,Te.TS)(Gt,{controlHeight:Gt.controlHeightSM,multipleSelectItemHeight:Gt.controlHeightXS,borderRadius:Gt.borderRadiusSM,borderRadiusSM:Gt.borderRadiusXS}),me=(0,Te.TS)(Gt,{fontSize:Gt.fontSizeLG,controlHeight:Gt.controlHeightLG,multipleSelectItemHeight:Gt.multipleItemHeightLG,borderRadius:Gt.borderRadiusLG,borderRadiusSM:Gt.borderRadius}),[,ce]=xe(Gt);return[ee(Gt),ee(se,"sm"),{[`${$t}-multiple${$t}-sm`]:{[`${$t}-selection-placeholder`]:{insetInline:Gt.controlPaddingHorizontalSM-Gt.lineWidth},[`${$t}-selection-search`]:{marginInlineStart:ce}}},ee(me,"lg")]};function et(Gt,$t){const{componentCls:se,inputPaddingHorizontalBase:me,borderRadius:ce}=Gt,Xe=Gt.controlHeight-Gt.lineWidth*2,De=Math.ceil(Gt.fontSize*1.25),ln=$t?`${se}-${$t}`:"";return{[`${se}-single${ln}`]:{fontSize:Gt.fontSize,[`${se}-selector`]:Object.assign(Object.assign({},(0,Kt.Wf)(Gt)),{display:"flex",borderRadius:ce,[`${se}-selection-search`]:{position:"absolute",top:0,insetInlineStart:me,insetInlineEnd:me,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${se}-selection-item,
|
|
|
${se}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Xe}px`,transition:`all ${Gt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Xe}px`}},[`${se}-selection-item`]:{position:"relative",userSelect:"none"},[`${se}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${se}-selection-item:after`,`${se}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${se}-show-arrow ${se}-selection-item,
|
|
|
&${se}-show-arrow ${se}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:De},[`&${se}-open ${se}-selection-item`]:{color:Gt.colorTextPlaceholder},[`&:not(${se}-customize-input)`]:{[`${se}-selector`]:{width:"100%",height:Gt.controlHeight,padding:`0 ${me}px`,[`${se}-selection-search-input`]:{height:Xe},"&:after":{lineHeight:`${Xe}px`}}},[`&${se}-customize-input`]:{[`${se}-selector`]:{"&:after":{display:"none"},[`${se}-selection-search`]:{position:"static",width:"100%"},[`${se}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${me}px`,"&:after":{display:"none"}}}}}}}function nt(Gt){const{componentCls:$t}=Gt,se=Gt.controlPaddingHorizontalSM-Gt.lineWidth;return[et(Gt),et((0,Te.TS)(Gt,{controlHeight:Gt.controlHeightSM,borderRadius:Gt.borderRadiusSM}),"sm"),{[`${$t}-single${$t}-sm`]:{[`&:not(${$t}-customize-input)`]:{[`${$t}-selection-search`]:{insetInlineStart:se,insetInlineEnd:se},[`${$t}-selector`]:{padding:`0 ${se}px`},[`&${$t}-show-arrow ${$t}-selection-search`]:{insetInlineEnd:se+Gt.fontSize*1.5},[`
|
|
|
&${$t}-show-arrow ${$t}-selection-item,
|
|
|
&${$t}-show-arrow ${$t}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Gt.fontSize*1.5}}}},et((0,Te.TS)(Gt,{controlHeight:Gt.singleItemHeightLG,fontSize:Gt.fontSizeLG,borderRadius:Gt.borderRadiusLG}),"lg")]}const ht=Gt=>{const{componentCls:$t,selectorBg:se}=Gt;return{position:"relative",backgroundColor:se,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 se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:me,borderHoverColor:ce,outlineColor:Xe,antCls:De}=$t,ln=se?{[`${me}-selector`]:{borderColor:ce}}:{};return{[Gt]:{[`&:not(${me}-disabled):not(${me}-customize-input):not(${De}-pagination-size-changer)`]:Object.assign(Object.assign({},ln),{[`${me}-focused& ${me}-selector`]:{borderColor:ce,boxShadow:`0 0 0 ${$t.controlOutlineWidth}px ${Xe}`,outline:0},[`&:hover ${me}-selector`]:{borderColor:ce}})}}},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:se,iconCls:me}=Gt;return{[$t]:Object.assign(Object.assign({},(0,Kt.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"},Kt.vS),[`${$t}-selection-placeholder`]:Object.assign(Object.assign({},Kt.vS),{flex:1,color:Gt.colorTextPlaceholder,pointerEvents:"none"}),[`${$t}-arrow`]:Object.assign(Object.assign({},(0,Kt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,height:Gt.fontSizeIcon,marginTop:-Gt.fontSizeIcon/2,color:Gt.colorTextQuaternary,fontSize:Gt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[me]:{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:se,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:se+Gt.fontSize+Gt.paddingXS}}}},Nt=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),Qt(Gt),ve(Gt),{[`${$t}-rtl`]:{direction:"rtl"}},at($t,(0,Te.TS)(Gt,{borderHoverColor:Gt.colorPrimaryHover,outlineColor:Gt.controlOutline})),at(`${$t}-status-error`,(0,Te.TS)(Gt,{borderHoverColor:Gt.colorErrorHover,outlineColor:Gt.colorErrorOutline}),!0),at(`${$t}-status-warning`,(0,Te.TS)(Gt,{borderHoverColor:Gt.colorWarningHover,outlineColor:Gt.colorWarningOutline}),!0),(0,Le.c)(Gt,{borderElCls:`${$t}-selector`,focusElCls:`${$t}-focused`})]};var Rt=(0,xn.Z)("Select",(Gt,$t)=>{let{rootPrefixCls:se}=$t;const me=(0,Te.TS)(Gt,{rootPrefixCls:se,inputPaddingHorizontalBase:Gt.paddingSM-1,multipleSelectItemHeight:Gt.multipleItemHeight});return[Nt(me)]},Gt=>{const{fontSize:$t,lineHeight:se,controlHeight:me,controlPaddingHorizontal:ce,zIndexPopupBase:Xe,colorText:De,fontWeightStrong:ln,controlItemBgActive:Oe,controlItemBgHover:mn,colorBgContainer:Kn,colorFillSecondary:sn,controlHeightLG:gn,controlHeightSM:pn,colorBgContainerDisabled:fe,colorTextDisabled:Zt}=Gt;return{zIndexPopup:Xe+50,optionSelectedColor:De,optionSelectedFontWeight:ln,optionSelectedBg:Oe,optionActiveBg:mn,optionPadding:`${(me-$t*se)/2}px ${ce}px`,optionFontSize:$t,optionLineHeight:se,optionHeight:me,selectorBg:Kn,clearBg:Kn,singleItemHeightLG:gn,multipleItemBg:sn,multipleItemBorderColor:"transparent",multipleItemHeight:pn,multipleItemHeightLG:me,multipleSelectorBgDisabled:fe,multipleItemColorDisabled:Zt,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Le}});const Kt=Te=>{const Se={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Te==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Se),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Se),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Se),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Se),{points:["br","tr"],offset:[0,-4]})}};function Le(Te,xn){return Te||Kt(xn)}},84443:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return Kt}});function Kt(Le,Te){return Te!==void 0?Te:Le!==null}},66339:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});var Kt=Yt(40001),Le=Yt(19248),Te=Yt(99267),xn=Yt(84105),Se=Yt(58617),We=Yt(47472),je=Yt(59301);function de(ve){let{suffixIcon:It,clearIcon:xe,menuItemSelectedIcon:ee,removeIcon:ge,loading:Qt,multiple:et,hasFeedback:nt,prefixCls:ht,showSuffixIcon:at,feedbackIcon:ft,showArrow:vt,componentName:Nt}=ve;const Rt=xe!=null?xe:je.createElement(Le.Z,null),Gt=ce=>It===null&&!nt&&!vt?null:je.createElement(je.Fragment,null,at!==!1&&ce,nt&&ft);let $t=null;if(It!==void 0)$t=Gt(It);else if(Qt)$t=Gt(je.createElement(Se.Z,{spin:!0}));else{const ce=`${ht}-suffix`;$t=Xe=>{let{open:De,showSearch:ln}=Xe;return Gt(De&&ln?je.createElement(We.Z,{className:ce}):je.createElement(xn.Z,{className:ce}))}}let se=null;ee!==void 0?se=ee:et?se=je.createElement(Kt.Z,null):se=null;let me=null;return ge!==void 0?me=ge:me=je.createElement(Te.Z,null),{clearIcon:Rt,suffixIcon:$t,itemIcon:se,removeIcon:me}}},61621:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return zt}});var Kt=Yt(92310),Le=Yt.n(Kt),Te=Yt(59301),xn=Yt(36355),Se=Yt(2738),je=Ht=>{const{prefixCls:Mt,className:be,style:Ge,size:vn,shape:Fn}=Ht,An=Le()({[`${Mt}-lg`]:vn==="large",[`${Mt}-sm`]:vn==="small"}),kn=Le()({[`${Mt}-circle`]:Fn==="circle",[`${Mt}-square`]:Fn==="square",[`${Mt}-round`]:Fn==="round"}),Bn=Te.useMemo(()=>typeof vn=="number"?{width:vn,height:vn,lineHeight:`${vn}px`}:{},[vn]);return Te.createElement("span",{className:Le()(Mt,An,kn,be),style:Object.assign(Object.assign({},Bn),Ge)})},de=Yt(93083),ve=Yt(83116),It=Yt(37613);const xe=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ee=Ht=>({height:Ht,lineHeight:`${Ht}px`}),ge=Ht=>Object.assign({width:Ht},ee(Ht)),Qt=Ht=>({background:Ht.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:xe,animationDuration:Ht.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=Ht=>Object.assign({width:Ht*5,minWidth:Ht*5},ee(Ht)),nt=Ht=>{const{skeletonAvatarCls:Mt,gradientFromColor:be,controlHeight:Ge,controlHeightLG:vn,controlHeightSM:Fn}=Ht;return{[`${Mt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:be},ge(Ge)),[`${Mt}${Mt}-circle`]:{borderRadius:"50%"},[`${Mt}${Mt}-lg`]:Object.assign({},ge(vn)),[`${Mt}${Mt}-sm`]:Object.assign({},ge(Fn))}},ht=Ht=>{const{controlHeight:Mt,borderRadiusSM:be,skeletonInputCls:Ge,controlHeightLG:vn,controlHeightSM:Fn,gradientFromColor:An}=Ht;return{[`${Ge}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:An,borderRadius:be},et(Mt)),[`${Ge}-lg`]:Object.assign({},et(vn)),[`${Ge}-sm`]:Object.assign({},et(Fn))}},at=Ht=>Object.assign({width:Ht},ee(Ht)),ft=Ht=>{const{skeletonImageCls:Mt,imageSizeBase:be,gradientFromColor:Ge,borderRadiusSM:vn}=Ht;return{[`${Mt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ge,borderRadius:vn},at(be*2)),{[`${Mt}-path`]:{fill:"#bfbfbf"},[`${Mt}-svg`]:Object.assign(Object.assign({},at(be)),{maxWidth:be*4,maxHeight:be*4}),[`${Mt}-svg${Mt}-svg-circle`]:{borderRadius:"50%"}}),[`${Mt}${Mt}-circle`]:{borderRadius:"50%"}}},vt=(Ht,Mt,be)=>{const{skeletonButtonCls:Ge}=Ht;return{[`${be}${Ge}-circle`]:{width:Mt,minWidth:Mt,borderRadius:"50%"},[`${be}${Ge}-round`]:{borderRadius:Mt}}},Nt=Ht=>Object.assign({width:Ht*2,minWidth:Ht*2},ee(Ht)),Rt=Ht=>{const{borderRadiusSM:Mt,skeletonButtonCls:be,controlHeight:Ge,controlHeightLG:vn,controlHeightSM:Fn,gradientFromColor:An}=Ht;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:An,borderRadius:Mt,width:Ge*2,minWidth:Ge*2},Nt(Ge))},vt(Ht,Ge,be)),{[`${be}-lg`]:Object.assign({},Nt(vn))}),vt(Ht,vn,`${be}-lg`)),{[`${be}-sm`]:Object.assign({},Nt(Fn))}),vt(Ht,Fn,`${be}-sm`))},Gt=Ht=>{const{componentCls:Mt,skeletonAvatarCls:be,skeletonTitleCls:Ge,skeletonParagraphCls:vn,skeletonButtonCls:Fn,skeletonInputCls:An,skeletonImageCls:kn,controlHeight:Bn,controlHeightLG:Vn,controlHeightSM:bi,gradientFromColor:Pn,padding:an,marginSM:ei,borderRadius:Ui,titleHeight:Pi,blockRadius:sr,paragraphLiHeight:Or,controlHeightXS:Ao,paragraphMarginTop:po}=Ht;return{[`${Mt}`]:{display:"table",width:"100%",[`${Mt}-header`]:{display:"table-cell",paddingInlineEnd:an,verticalAlign:"top",[`${be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pn},ge(Bn)),[`${be}-circle`]:{borderRadius:"50%"},[`${be}-lg`]:Object.assign({},ge(Vn)),[`${be}-sm`]:Object.assign({},ge(bi))},[`${Mt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ge}`]:{width:"100%",height:Pi,background:Pn,borderRadius:sr,[`+ ${vn}`]:{marginBlockStart:bi}},[`${vn}`]:{padding:0,"> li":{width:"100%",height:Or,listStyle:"none",background:Pn,borderRadius:sr,"+ li":{marginBlockStart:Ao}}},[`${vn}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Mt}-content`]:{[`${Ge}, ${vn} > li`]:{borderRadius:Ui}}},[`${Mt}-with-avatar ${Mt}-content`]:{[`${Ge}`]:{marginBlockStart:ei,[`+ ${vn}`]:{marginBlockStart:po}}},[`${Mt}${Mt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Rt(Ht)),nt(Ht)),ht(Ht)),ft(Ht)),[`${Mt}${Mt}-block`]:{width:"100%",[`${Fn}`]:{width:"100%"},[`${An}`]:{width:"100%"}},[`${Mt}${Mt}-active`]:{[`
|
|
|
${Ge},
|
|
|
${vn} > li,
|
|
|
${be},
|
|
|
${Fn},
|
|
|
${An},
|
|
|
${kn}
|
|
|
`]:Object.assign({},Qt(Ht))}}};var $t=(0,ve.Z)("Skeleton",Ht=>{const{componentCls:Mt}=Ht,be=(0,It.TS)(Ht,{skeletonAvatarCls:`${Mt}-avatar`,skeletonTitleCls:`${Mt}-title`,skeletonParagraphCls:`${Mt}-paragraph`,skeletonButtonCls:`${Mt}-button`,skeletonInputCls:`${Mt}-input`,skeletonImageCls:`${Mt}-image`,imageSizeBase:Ht.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ht.gradientFromColor} 25%, ${Ht.gradientToColor} 37%, ${Ht.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Gt(be)]},Ht=>{const{colorFillContent:Mt,colorFill:be}=Ht,Ge=Mt,vn=be;return{color:Ge,colorGradientEnd:vn,gradientFromColor:Ge,gradientToColor:vn,titleHeight:Ht.controlHeight/2,blockRadius:Ht.borderRadiusSM,paragraphMarginTop:Ht.marginLG+Ht.marginXXS,paragraphLiHeight:Ht.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),me=Ht=>{const{prefixCls:Mt,className:be,rootClassName:Ge,active:vn,shape:Fn="circle",size:An="default"}=Ht,{getPrefixCls:kn}=Te.useContext(xn.E_),Bn=kn("skeleton",Mt),[Vn,bi]=$t(Bn),Pn=(0,Se.Z)(Ht,["prefixCls","className"]),an=Le()(Bn,`${Bn}-element`,{[`${Bn}-active`]:vn},be,Ge,bi);return Vn(Te.createElement("div",{className:an},Te.createElement(je,Object.assign({prefixCls:`${Bn}-avatar`,shape:Fn,size:An},Pn))))},Xe=Ht=>{const{prefixCls:Mt,className:be,rootClassName:Ge,active:vn,block:Fn=!1,size:An="default"}=Ht,{getPrefixCls:kn}=Te.useContext(xn.E_),Bn=kn("skeleton",Mt),[Vn,bi]=$t(Bn),Pn=(0,Se.Z)(Ht,["prefixCls"]),an=Le()(Bn,`${Bn}-element`,{[`${Bn}-active`]:vn,[`${Bn}-block`]:Fn},be,Ge,bi);return Vn(Te.createElement("div",{className:an},Te.createElement(je,Object.assign({prefixCls:`${Bn}-button`,size:An},Pn))))};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 Oe=Ht=>{const{prefixCls:Mt,className:be,rootClassName:Ge,style:vn,active:Fn}=Ht,{getPrefixCls:An}=Te.useContext(xn.E_),kn=An("skeleton",Mt),[Bn,Vn]=$t(kn),bi=Le()(kn,`${kn}-element`,{[`${kn}-active`]:Fn},be,Ge,Vn);return Bn(Te.createElement("div",{className:bi},Te.createElement("div",{className:Le()(`${kn}-image`,be),style:vn},Te.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${kn}-image-svg`},Te.createElement("path",{d:De,className:`${kn}-image-path`})))))},Kn=Ht=>{const{prefixCls:Mt,className:be,rootClassName:Ge,active:vn,block:Fn,size:An="default"}=Ht,{getPrefixCls:kn}=Te.useContext(xn.E_),Bn=kn("skeleton",Mt),[Vn,bi]=$t(Bn),Pn=(0,Se.Z)(Ht,["prefixCls"]),an=Le()(Bn,`${Bn}-element`,{[`${Bn}-active`]:vn,[`${Bn}-block`]:Fn},be,Ge,bi);return Vn(Te.createElement("div",{className:an},Te.createElement(je,Object.assign({prefixCls:`${Bn}-input`,size:An},Pn))))},sn=Yt(92413),gn={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"},pn=gn,fe=Yt(7657),Zt=function(Mt,be){return Te.createElement(fe.Z,(0,sn.Z)({},Mt,{ref:be,icon:pn}))},Ye=Te.forwardRef(Zt),Gn=Ye,cn=Ht=>{const{prefixCls:Mt,className:be,rootClassName:Ge,style:vn,active:Fn,children:An}=Ht,{getPrefixCls:kn}=Te.useContext(xn.E_),Bn=kn("skeleton",Mt),[Vn,bi]=$t(Bn),Pn=Le()(Bn,`${Bn}-element`,{[`${Bn}-active`]:Fn},bi,be,Ge),an=An!=null?An:Te.createElement(Gn,null);return Vn(Te.createElement("div",{className:Pn},Te.createElement("div",{className:Le()(`${Bn}-image`,be),style:vn},an)))},In=Yt(26407),xi=Ht=>{const Mt=kn=>{const{width:Bn,rows:Vn=2}=Ht;if(Array.isArray(Bn))return Bn[kn];if(Vn-1===kn)return Bn},{prefixCls:be,className:Ge,style:vn,rows:Fn}=Ht,An=(0,In.Z)(Array(Fn)).map((kn,Bn)=>Te.createElement("li",{key:Bn,style:{width:Mt(Bn)}}));return Te.createElement("ul",{className:Le()(be,Ge),style:vn},An)},zi=Ht=>{let{prefixCls:Mt,className:be,width:Ge,style:vn}=Ht;return Te.createElement("h3",{className:Le()(Mt,be),style:Object.assign({width:Ge},vn)})};function Ie(Ht){return Ht&&typeof Ht=="object"?Ht:{}}function Ai(Ht,Mt){return Ht&&!Mt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ti(Ht,Mt){return!Ht&&Mt?{width:"38%"}:Ht&&Mt?{width:"50%"}:{}}function ue(Ht,Mt){const be={};return(!Ht||!Mt)&&(be.width="61%"),!Ht&&Mt?be.rows=3:be.rows=2,be}const Tt=Ht=>{const{prefixCls:Mt,loading:be,className:Ge,rootClassName:vn,style:Fn,children:An,avatar:kn=!1,title:Bn=!0,paragraph:Vn=!0,active:bi,round:Pn}=Ht,{getPrefixCls:an,direction:ei,skeleton:Ui}=Te.useContext(xn.E_),Pi=an("skeleton",Mt),[sr,Or]=$t(Pi);if(be||!("loading"in Ht)){const Ao=!!kn,po=!!Bn,Zr=!!Vn;let Ho;if(Ao){const hr=Object.assign(Object.assign({prefixCls:`${Pi}-avatar`},Ai(po,Zr)),Ie(kn));Ho=Te.createElement("div",{className:`${Pi}-header`},Te.createElement(je,Object.assign({},hr)))}let Co;if(po||Zr){let hr;if(po){const oo=Object.assign(Object.assign({prefixCls:`${Pi}-title`},Ti(Ao,Zr)),Ie(Bn));hr=Te.createElement(zi,Object.assign({},oo))}let to;if(Zr){const oo=Object.assign(Object.assign({prefixCls:`${Pi}-paragraph`},ue(Ao,po)),Ie(Vn));to=Te.createElement(xi,Object.assign({},oo))}Co=Te.createElement("div",{className:`${Pi}-content`},hr,to)}const Jr=Le()(Pi,{[`${Pi}-with-avatar`]:Ao,[`${Pi}-active`]:bi,[`${Pi}-rtl`]:ei==="rtl",[`${Pi}-round`]:Pn},Ui==null?void 0:Ui.className,Ge,vn,Or);return sr(Te.createElement("div",{className:Jr,style:Object.assign(Object.assign({},Ui==null?void 0:Ui.style),Fn)},Ho,Co))}return typeof An!="undefined"?An:null};Tt.Button=Xe,Tt.Avatar=me,Tt.Input=Kn,Tt.Image=Oe,Tt.Node=cn;var Ct=Tt,zt=Ct},81327:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return ht}});var Kt=Yt(59301),Le=Yt(92310),Te=Yt.n(Le),xn=Yt(11592),Se=Yt(36355),We=Yt(33234);const je=Kt.createContext({latestIndex:0}),de=je.Provider;var It=at=>{let{className:ft,index:vt,children:Nt,split:Rt,style:Gt}=at;const{latestIndex:$t}=Kt.useContext(je);return Nt==null?null:Kt.createElement(Kt.Fragment,null,Kt.createElement("div",{className:ft,style:Gt},Nt),vt<$t&&Rt&&Kt.createElement("span",{className:`${ft}-split`},Rt))},xe=Yt(2856);function ee(at){return["small","middle","large"].includes(at)}function ge(at){return at?typeof at=="number"&&!Number.isNaN(at):!1}var Qt=function(at,ft){var vt={};for(var Nt in at)Object.prototype.hasOwnProperty.call(at,Nt)&&ft.indexOf(Nt)<0&&(vt[Nt]=at[Nt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Nt=Object.getOwnPropertySymbols(at);Rt<Nt.length;Rt++)ft.indexOf(Nt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(at,Nt[Rt])&&(vt[Nt[Rt]]=at[Nt[Rt]]);return vt};const nt=Kt.forwardRef((at,ft)=>{var vt,Nt;const{getPrefixCls:Rt,space:Gt,direction:$t}=Kt.useContext(Se.E_),{size:se=(Gt==null?void 0:Gt.size)||"small",align:me,className:ce,rootClassName:Xe,children:De,direction:ln="horizontal",prefixCls:Oe,split:mn,style:Kn,wrap:sn=!1,classNames:gn,styles:pn}=at,fe=Qt(at,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Zt,Ye]=Array.isArray(se)?se:[se,se],Gn=ee(Ye),ri=ee(Zt),cn=ge(Ye),In=ge(Zt),Wn=(0,xn.Z)(De,{keepEmpty:!0}),xi=me===void 0&&ln==="horizontal"?"center":me,pi=Rt("space",Oe),[zi,Ie]=(0,xe.Z)(pi),Ai=Te()(pi,Gt==null?void 0:Gt.className,Ie,`${pi}-${ln}`,{[`${pi}-rtl`]:$t==="rtl",[`${pi}-align-${xi}`]:xi,[`${pi}-gap-row-${Ye}`]:Gn,[`${pi}-gap-col-${Zt}`]:ri},ce,Xe),Ti=Te()(`${pi}-item`,(vt=gn==null?void 0:gn.item)!==null&&vt!==void 0?vt:(Nt=Gt==null?void 0:Gt.classNames)===null||Nt===void 0?void 0:Nt.item);let ue=0;const Tt=Wn.map((Ht,Mt)=>{var be,Ge;Ht!=null&&(ue=Mt);const vn=Ht&&Ht.key||`${Ti}-${Mt}`;return Kt.createElement(It,{className:Ti,key:vn,index:Mt,split:mn,style:(be=pn==null?void 0:pn.item)!==null&&be!==void 0?be:(Ge=Gt==null?void 0:Gt.styles)===null||Ge===void 0?void 0:Ge.item},Ht)}),Ct=Kt.useMemo(()=>({latestIndex:ue}),[ue]);if(Wn.length===0)return null;const zt={};return sn&&(zt.flexWrap="wrap"),!ri&&In&&(zt.columnGap=Zt),!Gn&&cn&&(zt.rowGap=Ye),zi(Kt.createElement("div",Object.assign({ref:ft,className:Ai,style:Object.assign(Object.assign(Object.assign({},zt),Gt==null?void 0:Gt.style),Kn)},fe),Kt.createElement(de,{value:Ct},Tt)))});nt.Compact=We.ZP;var ht=nt},31797:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{default:function(){return $t}});var Kt=Yt(59301),Le=Yt(56762),Te=Yt(92343),xn=Yt(92310),Se=Yt.n(xn),We=Yt(36355),je=Yt(61621),ve=se=>{const{value:me,formatter:ce,precision:Xe,decimalSeparator:De,groupSeparator:ln="",prefixCls:Oe}=se;let mn;if(typeof ce=="function")mn=ce(me);else{const Kn=String(me),sn=Kn.match(/^(-?)(\d*)(\.(\d+))?$/);if(!sn||Kn==="-")mn=Kn;else{const gn=sn[1];let pn=sn[2]||"0",fe=sn[4]||"";pn=pn.replace(/\B(?=(\d{3})+(?!\d))/g,ln),typeof Xe=="number"&&(fe=fe.padEnd(Xe,"0").slice(0,Xe>0?Xe:0)),fe&&(fe=`${De}${fe}`),mn=[Kt.createElement("span",{key:"int",className:`${Oe}-content-value-int`},gn,pn),fe&&Kt.createElement("span",{key:"decimal",className:`${Oe}-content-value-decimal`},fe)]}}return Kt.createElement("span",{className:`${Oe}-content-value`},mn)},It=Yt(17313),xe=Yt(83116),ee=Yt(37613);const ge=se=>{const{componentCls:me,marginXXS:ce,padding:Xe,colorTextDescription:De,titleFontSize:ln,colorTextHeading:Oe,contentFontSize:mn,fontFamily:Kn}=se;return{[`${me}`]:Object.assign(Object.assign({},(0,It.Wf)(se)),{[`${me}-title`]:{marginBottom:ce,color:De,fontSize:ln},[`${me}-skeleton`]:{paddingTop:Xe},[`${me}-content`]:{color:Oe,fontSize:mn,fontFamily:Kn,[`${me}-content-value`]:{display:"inline-block",direction:"ltr"},[`${me}-content-prefix, ${me}-content-suffix`]:{display:"inline-block"},[`${me}-content-prefix`]:{marginInlineEnd:ce},[`${me}-content-suffix`]:{marginInlineStart:ce}}})}};var Qt=(0,xe.Z)("Statistic",se=>{const me=(0,ee.TS)(se,{});return[ge(me)]},se=>{const{fontSizeHeading3:me,fontSize:ce}=se;return{titleFontSize:ce,contentFontSize:me}}),nt=se=>{const{prefixCls:me,className:ce,rootClassName:Xe,style:De,valueStyle:ln,value:Oe=0,title:mn,valueRender:Kn,prefix:sn,suffix:gn,loading:pn=!1,onMouseEnter:fe,onMouseLeave:Zt,decimalSeparator:Ye=".",groupSeparator:Gn=","}=se,{getPrefixCls:ri,direction:cn,statistic:In}=Kt.useContext(We.E_),Wn=ri("statistic",me),[xi,pi]=Qt(Wn),zi=Kt.createElement(ve,Object.assign({decimalSeparator:Ye,groupSeparator:Gn,prefixCls:Wn},se,{value:Oe})),Ie=Se()(Wn,{[`${Wn}-rtl`]:cn==="rtl"},In==null?void 0:In.className,ce,Xe,pi);return xi(Kt.createElement("div",{className:Ie,style:Object.assign(Object.assign({},In==null?void 0:In.style),De),onMouseEnter:fe,onMouseLeave:Zt},mn&&Kt.createElement("div",{className:`${Wn}-title`},mn),Kt.createElement(je.Z,{paragraph:!1,loading:pn,className:`${Wn}-skeleton`},Kt.createElement("div",{style:ln,className:`${Wn}-content`},sn&&Kt.createElement("span",{className:`${Wn}-content-prefix`},sn),Kn?Kn(zi):zi,gn&&Kt.createElement("span",{className:`${Wn}-content-suffix`},gn)))))};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(se,me){let ce=se;const Xe=/\[[^\]]*]/g,De=(me.match(Xe)||[]).map(Kn=>Kn.slice(1,-1)),ln=me.replace(Xe,"[]"),Oe=ht.reduce((Kn,sn)=>{let[gn,pn]=sn;if(Kn.includes(gn)){const fe=Math.floor(ce/pn);return ce-=fe*pn,Kn.replace(new RegExp(`${gn}+`,"g"),Zt=>{const Ye=Zt.length;return fe.toString().padStart(Ye,"0")})}return Kn},ln);let mn=0;return Oe.replace(Xe,()=>{const Kn=De[mn];return mn+=1,Kn})}function ft(se,me){const{format:ce=""}=me,Xe=new Date(se).getTime(),De=Date.now(),ln=Math.max(Xe-De,0);return at(ln,ce)}const vt=1e3/30;function Nt(se){return new Date(se).getTime()}const Rt=se=>{const{value:me,format:ce="HH:mm:ss",onChange:Xe,onFinish:De}=se,ln=(0,Le.Z)(),Oe=Kt.useRef(null),mn=()=>{De==null||De(),Oe.current&&(clearInterval(Oe.current),Oe.current=null)},Kn=()=>{const pn=Nt(me);pn>=Date.now()&&(Oe.current=setInterval(()=>{ln(),Xe==null||Xe(pn-Date.now()),pn<Date.now()&&mn()},vt))};Kt.useEffect(()=>(Kn(),()=>{Oe.current&&(clearInterval(Oe.current),Oe.current=null)}),[me]);const sn=(pn,fe)=>ft(pn,Object.assign(Object.assign({},fe),{format:ce})),gn=pn=>(0,Te.Tm)(pn,{title:void 0});return Kt.createElement(nt,Object.assign({},se,{valueRender:gn,formatter:sn}))};var Gt=Kt.memo(Rt);nt.Countdown=Gt;var $t=nt},78673:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return ln}});var Kt=Yt(58617),Le=Yt(92310),Te=Yt.n(Le),xn=Yt(92413),Se=Yt(400),We=Yt(33606),je=Yt(37061),de=Yt(59301),ve=Yt(18929),It=Yt(10228),xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ee=de.forwardRef(function(Oe,mn){var Kn,sn=Oe.prefixCls,gn=sn===void 0?"rc-switch":sn,pn=Oe.className,fe=Oe.checked,Zt=Oe.defaultChecked,Ye=Oe.disabled,Gn=Oe.loadingIcon,ri=Oe.checkedChildren,cn=Oe.unCheckedChildren,In=Oe.onClick,Wn=Oe.onChange,xi=Oe.onKeyDown,pi=(0,je.Z)(Oe,xe),zi=(0,ve.Z)(!1,{value:fe,defaultValue:Zt}),Ie=(0,We.Z)(zi,2),Ai=Ie[0],Ti=Ie[1];function ue(Ht,Mt){var be=Ai;return Ye||(be=Ht,Ti(be),Wn==null||Wn(be,Mt)),be}function Tt(Ht){Ht.which===It.Z.LEFT?ue(!1,Ht):Ht.which===It.Z.RIGHT&&ue(!0,Ht),xi==null||xi(Ht)}function Ct(Ht){var Mt=ue(!Ai,Ht);In==null||In(Mt,Ht)}var zt=Te()(gn,pn,(Kn={},(0,Se.Z)(Kn,"".concat(gn,"-checked"),Ai),(0,Se.Z)(Kn,"".concat(gn,"-disabled"),Ye),Kn));return de.createElement("button",(0,xn.Z)({},pi,{type:"button",role:"switch","aria-checked":Ai,disabled:Ye,className:zt,ref:mn,onKeyDown:Tt,onClick:Ct}),Gn,de.createElement("span",{className:"".concat(gn,"-inner")},de.createElement("span",{className:"".concat(gn,"-inner-checked")},ri),de.createElement("span",{className:"".concat(gn,"-inner-unchecked")},cn)))});ee.displayName="Switch";var ge=ee,Qt=Yt(14088),et=Yt(36355),nt=Yt(1684),ht=Yt(19716),at=Yt(64993),ft=Yt(17313),vt=Yt(83116),Nt=Yt(37613);const Rt=Oe=>{const{componentCls:mn,trackHeightSM:Kn,trackPadding:sn,trackMinWidthSM:gn,innerMinMarginSM:pn,innerMaxMarginSM:fe,handleSizeSM:Zt}=Oe,Ye=`${mn}-inner`;return{[mn]:{[`&${mn}-small`]:{minWidth:gn,height:Kn,lineHeight:`${Kn}px`,[`${mn}-inner`]:{paddingInlineStart:fe,paddingInlineEnd:pn,[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+sn*2}px - ${fe*2}px)`,marginInlineEnd:`calc(100% - ${Zt+sn*2}px + ${fe*2}px)`},[`${Ye}-unchecked`]:{marginTop:-Kn,marginInlineStart:0,marginInlineEnd:0}},[`${mn}-handle`]:{width:Zt,height:Zt},[`${mn}-loading-icon`]:{top:(Zt-Oe.switchLoadingIconSize)/2,fontSize:Oe.switchLoadingIconSize},[`&${mn}-checked`]:{[`${mn}-inner`]:{paddingInlineStart:pn,paddingInlineEnd:fe,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+sn*2}px + ${fe*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+sn*2}px - ${fe*2}px)`}},[`${mn}-handle`]:{insetInlineStart:`calc(100% - ${Zt+sn}px)`}},[`&:not(${mn}-disabled):active`]:{[`&:not(${mn}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:Oe.marginXXS/2,marginInlineEnd:-Oe.marginXXS/2}},[`&${mn}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:-Oe.marginXXS/2,marginInlineEnd:Oe.marginXXS/2}}}}}}},Gt=Oe=>{const{componentCls:mn,handleSize:Kn}=Oe;return{[mn]:{[`${mn}-loading-icon${Oe.iconCls}`]:{position:"relative",top:(Kn-Oe.fontSize)/2,color:Oe.switchLoadingIconColor,verticalAlign:"top"},[`&${mn}-checked ${mn}-loading-icon`]:{color:Oe.switchColor}}}},$t=Oe=>{const{componentCls:mn,motion:Kn,trackPadding:sn,handleBg:gn,handleShadow:pn,handleSize:fe}=Oe,Zt=`${mn}-handle`;return{[mn]:{[Zt]:{position:"absolute",top:sn,insetInlineStart:sn,width:fe,height:fe,transition:`all ${Oe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:gn,borderRadius:fe/2,boxShadow:pn,transition:`all ${Oe.switchDuration} ease-in-out`,content:'""'}},[`&${mn}-checked ${Zt}`]:{insetInlineStart:`calc(100% - ${fe+sn}px)`},[`&:not(${mn}-disabled):active`]:Kn?{[`${Zt}::before`]:{insetInlineEnd:Oe.switchHandleActiveInset,insetInlineStart:0},[`&${mn}-checked ${Zt}::before`]:{insetInlineEnd:0,insetInlineStart:Oe.switchHandleActiveInset}}:{}}}},se=Oe=>{const{componentCls:mn,trackHeight:Kn,trackPadding:sn,innerMinMargin:gn,innerMaxMargin:pn,handleSize:fe}=Oe,Zt=`${mn}-inner`;return{[mn]:{[Zt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:pn,paddingInlineEnd:gn,transition:`padding-inline-start ${Oe.switchDuration} ease-in-out, padding-inline-end ${Oe.switchDuration} ease-in-out`,[`${Zt}-checked, ${Zt}-unchecked`]:{display:"block",color:Oe.colorTextLightSolid,fontSize:Oe.fontSizeSM,transition:`margin-inline-start ${Oe.switchDuration} ease-in-out, margin-inline-end ${Oe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Zt}-checked`]:{marginInlineStart:`calc(-100% + ${fe+sn*2}px - ${pn*2}px)`,marginInlineEnd:`calc(100% - ${fe+sn*2}px + ${pn*2}px)`},[`${Zt}-unchecked`]:{marginTop:-Kn,marginInlineStart:0,marginInlineEnd:0}},[`&${mn}-checked ${Zt}`]:{paddingInlineStart:gn,paddingInlineEnd:pn,[`${Zt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Zt}-unchecked`]:{marginInlineStart:`calc(100% - ${fe+sn*2}px + ${pn*2}px)`,marginInlineEnd:`calc(-100% + ${fe+sn*2}px - ${pn*2}px)`}},[`&:not(${mn}-disabled):active`]:{[`&:not(${mn}-checked) ${Zt}`]:{[`${Zt}-unchecked`]:{marginInlineStart:sn*2,marginInlineEnd:-sn*2}},[`&${mn}-checked ${Zt}`]:{[`${Zt}-checked`]:{marginInlineStart:-sn*2,marginInlineEnd:sn*2}}}}}},me=Oe=>{const{componentCls:mn,trackHeight:Kn,trackMinWidth:sn}=Oe;return{[mn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Oe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:sn,height:Kn,lineHeight:`${Kn}px`,verticalAlign:"middle",background:Oe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${mn}-disabled)`]:{background:Oe.colorTextTertiary}}),(0,ft.Qy)(Oe)),{[`&${mn}-checked`]:{background:Oe.switchColor,[`&:hover:not(${mn}-disabled)`]:{background:Oe.colorPrimaryHover}},[`&${mn}-loading, &${mn}-disabled`]:{cursor:"not-allowed",opacity:Oe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${mn}-rtl`]:{direction:"rtl"}})}};var ce=(0,vt.Z)("Switch",Oe=>{const mn=(0,Nt.TS)(Oe,{switchDuration:Oe.motionDurationMid,switchColor:Oe.colorPrimary,switchDisabledOpacity:Oe.opacityLoading,switchLoadingIconSize:Oe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Oe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[me(mn),se(mn),$t(mn),Gt(mn),Rt(mn)]},Oe=>{const{fontSize:mn,lineHeight:Kn,controlHeight:sn,colorWhite:gn}=Oe,pn=mn*Kn,fe=sn/2,Zt=2,Ye=pn-Zt*2,Gn=fe-Zt*2;return{trackHeight:pn,trackHeightSM:fe,trackMinWidth:Ye*2+Zt*4,trackMinWidthSM:Gn*2+Zt*2,trackPadding:Zt,handleBg:gn,handleSize:Ye,handleSizeSM:Gn,handleShadow:`0 2px 4px 0 ${new at.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ye/2,innerMaxMargin:Ye+Zt+Zt*2,innerMinMarginSM:Gn/2,innerMaxMarginSM:Gn+Zt+Zt*2}}),Xe=function(Oe,mn){var Kn={};for(var sn in Oe)Object.prototype.hasOwnProperty.call(Oe,sn)&&mn.indexOf(sn)<0&&(Kn[sn]=Oe[sn]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,sn=Object.getOwnPropertySymbols(Oe);gn<sn.length;gn++)mn.indexOf(sn[gn])<0&&Object.prototype.propertyIsEnumerable.call(Oe,sn[gn])&&(Kn[sn[gn]]=Oe[sn[gn]]);return Kn};const De=de.forwardRef((Oe,mn)=>{const{prefixCls:Kn,size:sn,disabled:gn,loading:pn,className:fe,rootClassName:Zt,style:Ye}=Oe,Gn=Xe(Oe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ri,direction:cn,switch:In}=de.useContext(et.E_),Wn=de.useContext(nt.Z),xi=(gn!=null?gn:Wn)||pn,pi=ri("switch",Kn),zi=de.createElement("div",{className:`${pi}-handle`},pn&&de.createElement(Kt.Z,{className:`${pi}-loading-icon`})),[Ie,Ai]=ce(pi),Ti=(0,ht.Z)(sn),ue=Te()(In==null?void 0:In.className,{[`${pi}-small`]:Ti==="small",[`${pi}-loading`]:pn,[`${pi}-rtl`]:cn==="rtl"},fe,Zt,Ai),Tt=Object.assign(Object.assign({},In==null?void 0:In.style),Ye);return Ie(de.createElement(Qt.Z,{component:"Switch"},de.createElement(ge,Object.assign({},Gn,{prefixCls:pi,className:ue,style:Tt,disabled:xi,ref:mn,loadingIcon:zi}))))});De.__ANT_SWITCH=!0;var ln=De},99498:function(Ci,Ii,Yt){(function(Kt){Kt(Yt(89780))})(function(Kt){Kt.defineOption("placeholder","",function(de,ve,It){var xe=It&&It!=Kt.Init;if(ve&&!xe)de.on("blur",Se),de.on("change",We),de.on("swapDoc",We),Kt.on(de.getInputField(),"compositionupdate",de.state.placeholderCompose=function(){xn(de)}),We(de);else if(!ve&&xe){de.off("blur",Se),de.off("change",We),de.off("swapDoc",We),Kt.off(de.getInputField(),"compositionupdate",de.state.placeholderCompose),Le(de);var ee=de.getWrapperElement();ee.className=ee.className.replace(" CodeMirror-empty","")}ve&&!de.hasFocus()&&Se(de)});function Le(de){de.state.placeholder&&(de.state.placeholder.parentNode.removeChild(de.state.placeholder),de.state.placeholder=null)}function Te(de){Le(de);var ve=de.state.placeholder=document.createElement("pre");ve.style.cssText="height: 0; overflow: visible",ve.style.direction=de.getOption("direction"),ve.className="CodeMirror-placeholder CodeMirror-line-like";var It=de.getOption("placeholder");typeof It=="string"&&(It=document.createTextNode(It)),ve.appendChild(It),de.display.lineSpace.insertBefore(ve,de.display.lineSpace.firstChild)}function xn(de){setTimeout(function(){var ve=!1,It=de.getInputField();It.nodeName=="TEXTAREA"?ve=!It.value:de.lineCount()==1&&(ve=!/[^\u200b]/.test(It.querySelector(".CodeMirror-line").textContent)),ve?Te(de):Le(de)},20)}function Se(de){je(de)&&Te(de)}function We(de){var ve=de.getWrapperElement(),It=je(de);ve.className=ve.className.replace(" CodeMirror-empty","")+(It?" CodeMirror-empty":""),It?Te(de):Le(de)}function je(de){return de.lineCount()===1&&de.getLine(0)===""}})},25717:function(Ci,Ii,Yt){(function(Kt){Kt(Yt(89780))})(function(Kt){var Le={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Te=Kt.Pos;Kt.defineOption("autoCloseBrackets",!1,function(et,nt,ht){ht&&ht!=Kt.Init&&(et.removeKeyMap(Se),et.state.closeBrackets=null),nt&&(We(xn(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(Se))});function xn(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:Le[nt]}var Se={Backspace:ve,Enter:It};function We(et){for(var nt=0;nt<et.length;nt++){var ht=et.charAt(nt),at="'"+ht+"'";Se[at]||(Se[at]=je(ht))}}We(Le.pairs+"`");function je(et){return function(nt){return ee(nt,et)}}function de(et){var nt=et.state.closeBrackets;if(!nt||nt.override)return nt;var ht=et.getModeAt(et.getCursor());return ht.closeBrackets||nt}function ve(et){var nt=de(et);if(!nt||et.getOption("disableInput"))return Kt.Pass;for(var ht=xn(nt,"pairs"),at=et.listSelections(),ft=0;ft<at.length;ft++){if(!at[ft].empty())return Kt.Pass;var vt=ge(et,at[ft].head);if(!vt||ht.indexOf(vt)%2!=0)return Kt.Pass}for(var ft=at.length-1;ft>=0;ft--){var Nt=at[ft].head;et.replaceRange("",Te(Nt.line,Nt.ch-1),Te(Nt.line,Nt.ch+1),"+delete")}}function It(et){var nt=de(et),ht=nt&&xn(nt,"explode");if(!ht||et.getOption("disableInput"))return Kt.Pass;for(var at=et.listSelections(),ft=0;ft<at.length;ft++){if(!at[ft].empty())return Kt.Pass;var vt=ge(et,at[ft].head);if(!vt||ht.indexOf(vt)%2!=0)return Kt.Pass}et.operation(function(){var Nt=et.lineSeparator()||`
|
|
|
`;et.replaceSelection(Nt+Nt,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 xe(et){var nt=Kt.cmpPos(et.anchor,et.head)>0;return{anchor:new Te(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new Te(et.head.line,et.head.ch+(nt?1:-1))}}function ee(et,nt){var ht=de(et);if(!ht||et.getOption("disableInput"))return Kt.Pass;var at=xn(ht,"pairs"),ft=at.indexOf(nt);if(ft==-1)return Kt.Pass;for(var vt=xn(ht,"closeBefore"),Nt=xn(ht,"triples"),Rt=at.charAt(ft+1)==nt,Gt=et.listSelections(),$t=ft%2==0,se,me=0;me<Gt.length;me++){var ce=Gt[me],Xe=ce.head,De,ln=et.getRange(Xe,Te(Xe.line,Xe.ch+1));if($t&&!ce.empty())De="surround";else if((Rt||!$t)&&ln==nt)Rt&&Qt(et,Xe)?De="both":Nt.indexOf(nt)>=0&&et.getRange(Xe,Te(Xe.line,Xe.ch+3))==nt+nt+nt?De="skipThree":De="skip";else if(Rt&&Xe.ch>1&&Nt.indexOf(nt)>=0&&et.getRange(Te(Xe.line,Xe.ch-2),Xe)==nt+nt){if(Xe.ch>2&&/\bstring/.test(et.getTokenTypeAt(Te(Xe.line,Xe.ch-2))))return Kt.Pass;De="addFour"}else if(Rt){var Oe=Xe.ch==0?" ":et.getRange(Te(Xe.line,Xe.ch-1),Xe);if(!Kt.isWordChar(ln)&&Oe!=nt&&!Kt.isWordChar(Oe))De="both";else return Kt.Pass}else if($t&&(ln.length===0||/\s/.test(ln)||vt.indexOf(ln)>-1))De="both";else return Kt.Pass;if(!se)se=De;else if(se!=De)return Kt.Pass}var mn=ft%2?at.charAt(ft-1):nt,Kn=ft%2?nt:at.charAt(ft+1);et.operation(function(){if(se=="skip")et.execCommand("goCharRight");else if(se=="skipThree")for(var sn=0;sn<3;sn++)et.execCommand("goCharRight");else if(se=="surround"){for(var gn=et.getSelections(),sn=0;sn<gn.length;sn++)gn[sn]=mn+gn[sn]+Kn;et.replaceSelections(gn,"around"),gn=et.listSelections().slice();for(var sn=0;sn<gn.length;sn++)gn[sn]=xe(gn[sn]);et.setSelections(gn)}else se=="both"?(et.replaceSelection(mn+Kn,null),et.triggerElectric(mn+Kn),et.execCommand("goCharLeft")):se=="addFour"&&(et.replaceSelection(mn+mn+mn+mn,"before"),et.execCommand("goCharRight"))})}function ge(et,nt){var ht=et.getRange(Te(nt.line,nt.ch-1),Te(nt.line,nt.ch+1));return ht.length==2?ht:null}function Qt(et,nt){var ht=et.getTokenAt(Te(nt.line,nt.ch+1));return/\bstring/.test(ht.type)&&ht.start==nt.ch&&(nt.ch==0||!/\bstring/.test(et.getTokenTypeAt(nt)))}})},6313:function(Ci,Ii,Yt){(function(Kt){Kt(Yt(89780),Yt(32855))})(function(Kt){Kt.defineOption("autoCloseTags",!1,function(ve,It,xe){if(xe!=Kt.Init&&xe&&ve.removeKeyMap("autoCloseTags"),!!It){var ee={name:"autoCloseTags"};(typeof It!="object"||It.whenClosing!==!1)&&(ee["'/'"]=function(ge){return We(ge)}),(typeof It!="object"||It.whenOpening!==!1)&&(ee["'>'"]=function(ge){return xn(ge)}),ve.addKeyMap(ee)}});var Le=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Te=["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 xn(ve){if(ve.getOption("disableInput"))return Kt.Pass;for(var It=ve.listSelections(),xe=[],ee=ve.getOption("autoCloseTags"),ge=0;ge<It.length;ge++){if(!It[ge].empty())return Kt.Pass;var Qt=It[ge].head,et=ve.getTokenAt(Qt),nt=Kt.innerMode(ve.getMode(),et.state),ht=nt.state,at=nt.mode.xmlCurrentTag&&nt.mode.xmlCurrentTag(ht),ft=at&&at.name;if(!ft)return Kt.Pass;var vt=nt.mode.configuration=="html",Nt=typeof ee=="object"&&ee.dontCloseTags||vt&&Le,Rt=typeof ee=="object"&&ee.indentTags||vt&&Te;et.end>Qt.ch&&(ft=ft.slice(0,ft.length-et.end+Qt.ch));var Gt=ft.toLowerCase();if(!ft||et.type=="string"&&(et.end!=Qt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&at.close||et.string.indexOf("/")==Qt.ch-et.start-1||Nt&&je(Nt,Gt)>-1||de(ve,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ht)||[],ft,Qt,!0))return Kt.Pass;var $t=typeof ee=="object"&&ee.emptyTags;if($t&&je($t,ft)>-1){xe[ge]={text:"/>",newPos:Kt.Pos(Qt.line,Qt.ch+2)};continue}var se=Rt&&je(Rt,Gt)>-1;xe[ge]={indent:se,text:">"+(se?`
|
|
|
|
|
|
`:"")+"</"+ft+">",newPos:se?Kt.Pos(Qt.line+1,0):Kt.Pos(Qt.line,Qt.ch+1)}}for(var me=typeof ee=="object"&&ee.dontIndentOnAutoClose,ge=It.length-1;ge>=0;ge--){var ce=xe[ge];ve.replaceRange(ce.text,It[ge].head,It[ge].anchor,"+insert");var Xe=ve.listSelections().slice(0);Xe[ge]={head:ce.newPos,anchor:ce.newPos},ve.setSelections(Xe),!me&&ce.indent&&(ve.indentLine(ce.newPos.line,null,!0),ve.indentLine(ce.newPos.line+1,null,!0))}}function Se(ve,It){for(var xe=ve.listSelections(),ee=[],ge=It?"/":"</",Qt=ve.getOption("autoCloseTags"),et=typeof Qt=="object"&&Qt.dontIndentOnSlash,nt=0;nt<xe.length;nt++){if(!xe[nt].empty())return Kt.Pass;var ht=xe[nt].head,at=ve.getTokenAt(ht),ft=Kt.innerMode(ve.getMode(),at.state),vt=ft.state;if(It&&(at.type=="string"||at.string.charAt(0)!="<"||at.start!=ht.ch-1))return Kt.Pass;var Nt,Rt=ft.mode.name!="xml"&&ve.getMode().name=="htmlmixed";if(Rt&&ft.mode.name=="javascript")Nt=ge+"script";else if(Rt&&ft.mode.name=="css")Nt=ge+"style";else{var Gt=ft.mode.xmlCurrentContext&&ft.mode.xmlCurrentContext(vt);if(!Gt||Gt.length&&de(ve,Gt,Gt[Gt.length-1],ht))return Kt.Pass;Nt=ge+Gt[Gt.length-1]}ve.getLine(ht.line).charAt(at.end)!=">"&&(Nt+=">"),ee[nt]=Nt}if(ve.replaceSelections(ee),xe=ve.listSelections(),!et)for(var nt=0;nt<xe.length;nt++)(nt==xe.length-1||xe[nt].head.line<xe[nt+1].head.line)&&ve.indentLine(xe[nt].head.line)}function We(ve){return ve.getOption("disableInput")?Kt.Pass:Se(ve,!0)}Kt.commands.closeTag=function(ve){return Se(ve)};function je(ve,It){if(ve.indexOf)return ve.indexOf(It);for(var xe=0,ee=ve.length;xe<ee;++xe)if(ve[xe]==It)return xe;return-1}function de(ve,It,xe,ee,ge){if(!Kt.scanForClosingTag)return!1;var Qt=Math.min(ve.lastLine()+1,ee.line+500),et=Kt.scanForClosingTag(ve,ee,null,Qt);if(!et||et.tag!=xe)return!1;for(var nt=ge?1:0,ht=It.length-1;ht>=0&&It[ht]==xe;ht--)++nt;ee=et.to;for(var ht=1;ht<nt;ht++){var at=Kt.scanForClosingTag(ve,ee,null,Qt);if(!at||at.tag!=xe)return!1;ee=at.to}return!0}})},32855:function(Ci,Ii,Yt){(function(Kt){Kt(Yt(89780))})(function(Kt){"use strict";var Le=Kt.Pos;function Te(ht,at){return ht.line-at.line||ht.ch-at.ch}var xn="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",Se=xn+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",We=new RegExp("<(/?)(["+xn+"]["+Se+"]*)","g");function je(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 de(ht,at){var ft=ht.cm.getTokenTypeAt(Le(ht.line,at));return ft&&/\btag\b/.test(ft)}function ve(ht){if(!(ht.line>=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function It(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function xe(ht){for(;;){var at=ht.text.indexOf(">",ht.ch);if(at==-1){if(ve(ht))continue;return}if(!de(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 ee(ht){for(;;){var at=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(at==-1){if(It(ht))continue;return}if(!de(ht,at+1)){ht.ch=at;continue}We.lastIndex=at,ht.ch=at;var ft=We.exec(ht.text);if(ft&&ft.index==at)return ft}}function ge(ht){for(;;){We.lastIndex=ht.ch;var at=We.exec(ht.text);if(!at){if(ve(ht))continue;return}if(!de(ht,at.index+1)){ht.ch=at.index+1;continue}return ht.ch=at.index+at[0].length,at}}function Qt(ht){for(;;){var at=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(at==-1){if(It(ht))continue;return}if(!de(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=ge(ht),Nt,Rt=ht.line,Gt=ht.ch-(vt?vt[0].length:0);if(!vt||!(Nt=xe(ht)))return;if(Nt!="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:Le(Rt,Gt),to:Le(ht.line,ht.ch)}}else ft.push(vt[2])}}function nt(ht,at){for(var ft=[];;){var vt=Qt(ht);if(!vt)return;if(vt=="selfClose"){ee(ht);continue}var Nt=ht.line,Rt=ht.ch,Gt=ee(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:Le(ht.line,ht.ch),to:Le(Nt,Rt)}}}}Kt.registerHelper("fold","xml",function(ht,at){for(var ft=new je(ht,at.line,0);;){var vt=ge(ft);if(!vt||ft.line!=at.line)return;var Nt=xe(ft);if(!Nt)return;if(!vt[1]&&Nt!="selfClose"){var Rt=Le(ft.line,ft.ch),Gt=et(ft,vt[2]);return Gt&&Te(Gt.from,Rt)>0?{from:Rt,to:Gt.from}:null}}}),Kt.findMatchingTag=function(ht,at,ft){var vt=new je(ht,at.line,at.ch,ft);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Nt=xe(vt),Rt=Nt&&Le(vt.line,vt.ch),Gt=Nt&&ee(vt);if(!(!Nt||!Gt||Te(vt,at)>0)){var $t={from:Le(vt.line,vt.ch),to:Rt,tag:Gt[2]};return Nt=="selfClose"?{open:$t,close:null,at:"open"}:Gt[1]?{open:nt(vt,Gt[2]),close:$t,at:"close"}:(vt=new je(ht,Rt.line,Rt.ch,ft),{open:$t,close:et(vt,Gt[2]),at:"open"})}}},Kt.findEnclosingTag=function(ht,at,ft,vt){for(var Nt=new je(ht,at.line,at.ch,ft);;){var Rt=nt(Nt,vt);if(!Rt)break;var Gt=new je(ht,at.line,at.ch,ft),$t=et(Gt,Rt.tag);if($t)return{open:Rt,close:$t}}},Kt.scanForClosingTag=function(ht,at,ft,vt){var Nt=new je(ht,at.line,at.ch,vt?{from:0,to:vt}:null);return et(Nt,ft)}})},89780:function(Ci){(function(Ii,Yt){Ci.exports=Yt()})(this,function(){"use strict";var Ii=navigator.userAgent,Yt=navigator.platform,Kt=/gecko\/\d/i.test(Ii),Le=/MSIE \d/.test(Ii),Te=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ii),xn=/Edge\/(\d+)/.exec(Ii),Se=Le||Te||xn,We=Se&&(Le?document.documentMode||6:+(xn||Te)[1]),je=!xn&&/WebKit\//.test(Ii),de=je&&/Qt\/\d+\.\d+/.test(Ii),ve=!xn&&/Chrome\//.test(Ii),It=/Opera\//.test(Ii),xe=/Apple Computer/.test(navigator.vendor),ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ii),ge=/PhantomJS/.test(Ii),Qt=!xn&&/AppleWebKit/.test(Ii)&&/Mobile\/\w+/.test(Ii),et=/Android/.test(Ii),nt=Qt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ii),ht=Qt||/Mac/.test(Yt),at=/\bCrOS\b/.test(Ii),ft=/win/i.test(Yt),vt=It&&Ii.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(It=!1,je=!0);var Nt=ht&&(de||It&&(vt==null||vt<12.11)),Rt=Kt||Se&&We>=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 se(it){for(var ot=it.childNodes.length;ot>0;--ot)it.removeChild(it.firstChild);return it}function me(it,ot){return se(it).appendChild(ot)}function ce(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 Xe(it,ot,ct,At){var mt=ce(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 ln(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 Oe(){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 mn(it,ot){var ct=it.className;Gt(ot).test(ct)||(it.className+=(ct?" ":"")+ot)}function Kn(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 sn=function(it){it.select()};Qt?sn=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Se&&(sn=function(it){try{it.select()}catch(ot){}});function gn(it){var ot=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,ot)}}function pn(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 fe(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 le=it.indexOf(" ",Dt);if(le<0||le>=ot)return qt+(ot-Dt);qt+=le-Dt,qt+=ct-qt%ct,Dt=le+1}}var Zt=function(){this.id=null,this.f=null,this.time=0,this.handler=gn(this.onTimeout,this)};Zt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Zt.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 Ye(it,ot){for(var ct=0;ct<it.length;++ct)if(it[ct]==ot)return ct;return-1}var Gn=50,ri={toString:function(){return"CodeMirror.Pass"}},cn={scroll:!1},In={origin:"*mouse"},Wn={origin:"+move"};function xi(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 pi=[""];function zi(it){for(;pi.length<=it;)pi.push(Ie(pi)+" ");return pi[it]}function Ie(it){return it[it.length-1]}function Ai(it,ot){for(var ct=[],At=0;At<it.length;At++)ct[At]=ot(it[At],At);return ct}function Ti(it,ot,ct){for(var At=0,mt=ct(ot);At<it.length&&ct(it[At])<=mt;)At++;it.splice(At,0,ot)}function ue(){}function Tt(it,ot){var ct;return Object.create?ct=Object.create(it):(ue.prototype=it,ct=new ue),ot&&pn(ot,ct),ct}var Ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function zt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Ct.test(it))}function Ht(it,ot){return ot?ot.source.indexOf("\\w")>-1&&zt(it)?!0:ot.test(it):zt(it)}function Mt(it){for(var ot in it)if(it.hasOwnProperty(ot)&&it[ot])return!1;return!0}var be=/[\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 Ge(it){return it.charCodeAt(0)>=768&&be.test(it)}function vn(it,ot,ct){for(;(ct<0?ot>0:ot<it.length)&&Ge(it.charAt(ot));)ot+=ct;return ot}function Fn(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 An(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 kn=null;function Bn(it,ot,ct){var At;kn=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:kn=mt),Dt.from==ot&&(Dt.from!=Dt.to&&ct!="before"?At=mt:kn=mt)}return At!=null?At:kn}var Vn=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ot="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(Ne){return Ne<=247?it.charAt(Ne):1424<=Ne&&Ne<=1524?"R":1536<=Ne&&Ne<=1785?ot.charAt(Ne-1536):1774<=Ne&&Ne<=2220?"r":8192<=Ne&&Ne<=8203?"w":Ne==8204?"b":"L"}var At=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,mt=/[stwN]/,Dt=/[LRr]/,qt=/[Lb1n]/,le=/[1n]/;function ae(Ne,bn,ze){this.level=Ne,this.from=bn,this.to=ze}return function(Ne,bn){var ze=bn=="ltr"?"L":"R";if(Ne.length==0||bn=="ltr"&&!At.test(Ne))return!1;for(var oi=Ne.length,Zn=[],Yi=0;Yi<oi;++Yi)Zn.push(ct(Ne.charCodeAt(Yi)));for(var or=0,Lr=ze;or<oi;++or){var Ur=Zn[or];Ur=="m"?Zn[or]=Lr:Lr=Ur}for(var yo=0,Wr=ze;yo<oi;++yo){var Mo=Zn[yo];Mo=="1"&&Wr=="r"?Zn[yo]="n":Dt.test(Mo)&&(Wr=Mo,Mo=="r"&&(Zn[yo]="R"))}for(var is=1,Vr=Zn[0];is<oi-1;++is){var ws=Zn[is];ws=="+"&&Vr=="1"&&Zn[is+1]=="1"?Zn[is]="1":ws==","&&Vr==Zn[is+1]&&(Vr=="1"||Vr=="n")&&(Zn[is]=Vr),Vr=ws}for(var Ma=0;Ma<oi;++Ma){var Ql=Zn[Ma];if(Ql==",")Zn[Ma]="N";else if(Ql=="%"){var va=void 0;for(va=Ma+1;va<oi&&Zn[va]=="%";++va);for(var Ll=Ma&&Zn[Ma-1]=="!"||va<oi&&Zn[va]=="1"?"1":"N",Zs=Ma;Zs<va;++Zs)Zn[Zs]=Ll;Ma=va-1}}for(var Hs=0,Ca=ze;Hs<oi;++Hs){var Pa=Zn[Hs];Ca=="L"&&Pa=="1"?Zn[Hs]="L":Dt.test(Pa)&&(Ca=Pa)}for(var Hr=0;Hr<oi;++Hr)if(mt.test(Zn[Hr])){var zs=void 0;for(zs=Hr+1;zs<oi&&mt.test(Zn[zs]);++zs);for(var Qa=(Hr?Zn[Hr-1]:ze)=="L",Ra=(zs<oi?Zn[zs]:ze)=="L",gu=Qa==Ra?Qa?"L":"R":ze,ta=Hr;ta<zs;++ta)Zn[ta]=gu;Hr=zs-1}for(var hs=[],Fl,wl=0;wl<oi;)if(qt.test(Zn[wl])){var MA=wl;for(++wl;wl<oi&&qt.test(Zn[wl]);++wl);hs.push(new ae(0,MA,wl))}else{var Ph=wl,pu=hs.length,Nu=bn=="rtl"?1:0;for(++wl;wl<oi&&Zn[wl]!="L";++wl);for(var Ha=Ph;Ha<wl;)if(le.test(Zn[Ha])){Ph<Ha&&(hs.splice(pu,0,new ae(1,Ph,Ha)),pu+=Nu);var au=Ha;for(++Ha;Ha<wl&&le.test(Zn[Ha]);++Ha);hs.splice(pu,0,new ae(2,au,Ha)),pu+=Nu,Ph=Ha}else++Ha;Ph<wl&&hs.splice(pu,0,new ae(1,Ph,wl))}return bn=="ltr"&&(hs[0].level==1&&(Fl=Ne.match(/^\s+/))&&(hs[0].from=Fl[0].length,hs.unshift(new ae(0,0,Fl[0].length))),Ie(hs).level==1&&(Fl=Ne.match(/\s+$/))&&(Ie(hs).to-=Fl[0].length,hs.push(new ae(0,oi-Fl[0].length,oi)))),bn=="rtl"?hs.reverse():hs}}();function bi(it,ot){var ct=it.order;return ct==null&&(ct=it.order=Vn(it.text,ot)),ct}var Pn=[],an=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]||Pn).concat(ct)}};function ei(it,ot){return it._handlers&&it._handlers[ot]||Pn}function Ui(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=Ye(mt,ct);Dt>-1&&(At[ot]=mt.slice(0,Dt).concat(mt.slice(Dt+1)))}}}function Pi(it,ot){var ct=ei(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 sr(it,ot,ct){return typeof ot=="string"&&(ot={type:ot,preventDefault:function(){this.defaultPrevented=!0}}),Pi(it,ct||ot.type,it,ot),Co(ot)||ot.codemirrorIgnore}function Or(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)Ye(ct,ot[At])==-1&&ct.push(ot[At])}function Ao(it,ot){return ei(it,ot).length>0}function po(it){it.prototype.on=function(ot,ct){an(this,ot,ct)},it.prototype.off=function(ot,ct){Ui(this,ot,ct)}}function Zr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Ho(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Co(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Jr(it){Zr(it),Ho(it)}function hr(it){return it.target||it.srcElement}function to(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 oo=function(){if(Se&&We<9)return!1;var it=ce("div");return"draggable"in it||"dragDrop"in it}(),Jo;function Ns(it){if(Jo==null){var ot=ce("span","\u200B");me(it,ce("span",[ot,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Jo=ot.offsetWidth<=1&&ot.offsetHeight>2&&!(Se&&We<8))}var ct=Jo?ce("span","\u200B"):ce("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var ys;function Xs(it){if(ys!=null)return ys;var ot=me(it,document.createTextNode("A\u062EA")),ct=De(ot,0,1).getBoundingClientRect(),At=De(ot,1,2).getBoundingClientRect();return se(it),!ct||ct.left==ct.right?!1:ys=At.right-ct.right<3}var vo=`
|
|
|
|
|
|
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=ce("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),os=null;function _s(it){if(os!=null)return os;var ot=me(it,ce("span","x")),ct=ot.getBoundingClientRect(),At=De(ot,0,1).getBoundingClientRect();return os=Math.abs(ct.left-At.left)>1}var Ss={},ca={};function fa(it,ot){arguments.length>2&&(ot.dependencies=Array.prototype.slice.call(arguments,2)),Ss[it]=ot}function Pr(it,ot){ca[it]=ot}function Fr(it){if(typeof it=="string"&&ca.hasOwnProperty(it))it=ca[it];else if(it&&typeof it.name=="string"&&ca.hasOwnProperty(it.name)){var ot=ca[it.name];typeof ot=="string"&&(ot={name:ot}),it=Tt(ot,it),it.name=ot.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Fr("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Fr("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function dn(it,ot){ot=Fr(ot);var ct=Ss[ot.name];if(!ct)return dn(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 he(it,ot){var ct=nn.hasOwnProperty(it)?nn[it]:nn[it]={};pn(ot,ct)}function Un(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 Yn(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 Qe(it,ot,ct){return it.startState?it.startState(ot,ct):!0}var ye=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};ye.prototype.eol=function(){return this.pos>=this.string.length},ye.prototype.sol=function(){return this.pos==this.lineStart},ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ye.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},ye.prototype.eatWhile=function(it){for(var ot=this.pos;this.eat(it););return this.pos>ot},ye.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},ye.prototype.skipToEnd=function(){this.pos=this.string.length},ye.prototype.skipTo=function(it){var ot=this.string.indexOf(it,this.pos);if(ot>-1)return this.pos=ot,!0},ye.prototype.backUp=function(it){this.pos-=it},ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=fe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?fe(this.string,this.lineStart,this.tabSize):0)},ye.prototype.indentation=function(){return fe(this.string,null,this.tabSize)-(this.lineStart?fe(this.string,this.lineStart,this.tabSize):0)},ye.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)}},ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},ye.prototype.hideFirstChars=function(it,ot){this.lineStart+=it;try{return ot()}finally{this.lineStart-=it}},ye.prototype.lookAhead=function(it){var ot=this.lineOracle;return ot&&ot.lookAhead(it)},ye.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 Mn(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 li(it,ot,ct){var At=[];return it.iter(ot,ct,function(mt){At.push(mt.text)}),At}function Si(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=Ye(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 le=it.lines[qt],ae=le.height;if(ot<ae)break;ot-=ae}return ct+qt}function Ni(it,ot){return ot>=it.first&&ot<it.first+it.size}function lr(it,ot){return String(it.lineNumberFormatter(ot+it.firstLineNumber))}function wn(it,ot,ct){if(ct===void 0&&(ct=null),!(this instanceof wn))return new wn(it,ot,ct);this.line=it,this.ch=ot,this.sticky=ct}function Jn(it,ot){return it.line-ot.line||it.ch-ot.ch}function Br(it,ot){return it.sticky==ot.sticky&&Jn(it,ot)==0}function vr(it){return wn(it.line,it.ch)}function Tr(it,ot){return Jn(it,ot)<0?ot:it}function nr(it,ot){return Jn(it,ot)<0?it:ot}function yr(it,ot){return Math.max(it.first,Math.min(ot,it.first+it.size-1))}function ar(it,ot){if(ot.line<it.first)return wn(it.first,0);var ct=it.first+it.size-1;return ot.line>ct?wn(ct,qe(it,ct).text.length):Er(ot,qe(it,ot.line).text.length)}function Er(it,ot){var ct=it.ch;return ct==null||ct>ot?wn(it.line,ot):ct<0?wn(it.line,0):it}function co(it,ot){for(var ct=[],At=0;At<ot.length;At++)ct[At]=ar(it,ot[At]);return ct}var jo=function(it,ot){this.state=it,this.lookAhead=ot},Xn=function(it,ot,ct,At){this.state=ot,this.doc=it,this.line=ct,this.maxLookAhead=At||0,this.baseTokens=null,this.baseTokenPos=1};Xn.prototype.lookAhead=function(it){var ot=this.doc.getLine(this.line+it);return ot!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),ot},Xn.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}},Xn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xn.fromSaved=function(it,ot,ct){return ot instanceof jo?new Xn(it,Un(it.mode,ot.state),ct,ot.lookAhead):new Xn(it,Un(it.mode,ot),ct)},Xn.prototype.save=function(it){var ot=it!==!1?Un(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new jo(ot,this.maxLookAhead):ot};function Oo(it,ot,ct,At){var mt=[it.state.modeGen],Dt={};Uo(it,ot.text,it.doc.mode,ct,function(Ne,bn){return mt.push(Ne,bn)},Dt,At);for(var qt=ct.state,le=function(Ne){ct.baseTokens=mt;var bn=it.state.overlays[Ne],ze=1,oi=0;ct.state=!0,Uo(it,ot.text,bn.mode,ct,function(Zn,Yi){for(var or=ze;oi<Zn;){var Lr=mt[ze];Lr>Zn&&mt.splice(ze,1,Zn,mt[ze+1],Lr),ze+=2,oi=Math.min(Zn,Lr)}if(Yi)if(bn.opaque)mt.splice(or,ze-or,Zn,"overlay "+Yi),ze=or+2;else for(;or<ze;or+=2){var Ur=mt[or+1];mt[or+1]=(Ur?Ur+" ":"")+"overlay "+Yi}},Dt),ct.state=qt,ct.baseTokens=null,ct.baseTokenPos=1},ae=0;ae<it.state.overlays.length;++ae)le(ae);return{styles:mt,classes:Dt.bgClass||Dt.textClass?Dt:null}}function as(it,ot,ct){if(!ot.styles||ot.styles[0]!=it.state.modeGen){var At=Eo(it,Fe(ot)),mt=ot.text.length>it.options.maxHighlightLength&&Un(it.doc.mode,At.state),Dt=Oo(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 Eo(it,ot,ct){var At=it.doc,mt=it.display;if(!At.mode.startState)return new Xn(At,!0,ot);var Dt=lo(it,ot,ct),qt=Dt>At.first&&qe(At,Dt-1).stateAfter,le=qt?Xn.fromSaved(At,qt,Dt):new Xn(At,Qe(At.mode),Dt);return At.iter(Dt,ot,function(ae){zn(it,ae.text,le);var Ne=le.line;ae.stateAfter=Ne==ot-1||Ne%5==0||Ne>=mt.viewFrom&&Ne<mt.viewTo?le.save():null,le.nextLine()}),ct&&(At.modeFrontier=le.line),le}function zn(it,ot,ct,At){var mt=it.doc.mode,Dt=new ye(ot,it.options.tabSize,ct);for(Dt.start=Dt.pos=At||0,ot==""&&Gi(mt,ct.state);!Dt.eol();)wr(mt,Dt,ct.state),Dt.start=Dt.pos}function Gi(it,ot){if(it.blankLine)return it.blankLine(ot);if(it.innerMode){var ct=Yn(it,ot);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function wr(it,ot,ct,At){for(var mt=0;mt<10;mt++){At&&(At[0]=Yn(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 Dr=function(it,ot,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=ot||null,this.state=ct};function Mr(it,ot,ct,At){var mt=it.doc,Dt=mt.mode,qt;ot=ar(mt,ot);var le=qe(mt,ot.line),ae=Eo(it,ot.line,ct),Ne=new ye(le.text,it.options.tabSize,ae),bn;for(At&&(bn=[]);(At||Ne.pos<ot.ch)&&!Ne.eol();)Ne.start=Ne.pos,qt=wr(Dt,Ne,ae.state),At&&bn.push(new Dr(Ne,qt,Un(mt.mode,ae.state)));return At?bn:new Dr(Ne,qt,ae.state)}function ao(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 Uo(it,ot,ct,At,mt,Dt,qt){var le=ct.flattenSpans;le==null&&(le=it.options.flattenSpans);var ae=0,Ne=null,bn=new ye(ot,it.options.tabSize,At),ze,oi=it.options.addModeClass&&[null];for(ot==""&&ao(Gi(ct,At.state),Dt);!bn.eol();){if(bn.pos>it.options.maxHighlightLength?(le=!1,qt&&zn(it,ot,At,bn.pos),bn.pos=ot.length,ze=null):ze=ao(wr(ct,bn,At.state,oi),Dt),oi){var Zn=oi[0].name;Zn&&(ze="m-"+(ze?Zn+" "+ze:Zn))}if(!le||Ne!=ze){for(;ae<bn.start;)ae=Math.min(bn.start,ae+5e3),mt(ae,Ne);Ne=ze}bn.start=bn.pos}for(;ae<bn.pos;){var Yi=Math.min(bn.pos,ae+5e3);mt(Yi,Ne),ae=Yi}}function lo(it,ot,ct){for(var At,mt,Dt=it.doc,qt=ct?-1:ot-(it.doc.mode.innerMode?1e3:100),le=ot;le>qt;--le){if(le<=Dt.first)return Dt.first;var ae=qe(Dt,le-1),Ne=ae.stateAfter;if(Ne&&(!ct||le+(Ne instanceof jo?Ne.lookAhead:0)<=Dt.modeFrontier))return le;var bn=fe(ae.text,null,it.options.tabSize);(mt==null||At>bn)&&(mt=le-1,At=bn)}return mt}function $r(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 jo)||At+mt.lookAhead<ot)){ct=At+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var br=!1,ni=!1;function So(){br=!0}function qn(){ni=!0}function Go(it,ot,ct){this.marker=it,this.from=ot,this.to=ct}function Ds(it,ot){if(it)for(var ct=0;ct<it.length;++ct){var At=it[ct];if(At.marker==ot)return At}}function qo(it,ot){for(var ct,At=0;At<it.length;++At)it[At]!=ot&&(ct||(ct=[])).push(it[At]);return ct}function ea(it,ot){it.markedSpans=it.markedSpans?it.markedSpans.concat([ot]):[ot],ot.marker.attachLine(it)}function Bs(it,ot,ct){var At;if(it)for(var mt=0;mt<it.length;++mt){var Dt=it[mt],qt=Dt.marker,le=Dt.from==null||(qt.inclusiveLeft?Dt.from<=ot:Dt.from<ot);if(le||Dt.from==ot&&qt.type=="bookmark"&&(!ct||!Dt.marker.insertLeft)){var ae=Dt.to==null||(qt.inclusiveRight?Dt.to>=ot:Dt.to>ot);(At||(At=[])).push(new Go(qt,Dt.from,ae?null:Dt.to))}}return At}function io(it,ot,ct){var At;if(it)for(var mt=0;mt<it.length;++mt){var Dt=it[mt],qt=Dt.marker,le=Dt.to==null||(qt.inclusiveRight?Dt.to>=ot:Dt.to>ot);if(le||Dt.from==ot&&qt.type=="bookmark"&&(!ct||Dt.marker.insertLeft)){var ae=Dt.from==null||(qt.inclusiveLeft?Dt.from<=ot:Dt.from<ot);(At||(At=[])).push(new Go(qt,ae?null:Dt.from-ot,Dt.to==null?null:Dt.to-ot))}}return At}function uo(it,ot){if(ot.full)return null;var ct=Ni(it,ot.from.line)&&qe(it,ot.from.line).markedSpans,At=Ni(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=Jn(ot.from,ot.to)==0,le=Bs(ct,mt,qt),ae=io(At,Dt,qt),Ne=ot.text.length==1,bn=Ie(ot.text).length+(Ne?mt:0);if(le)for(var ze=0;ze<le.length;++ze){var oi=le[ze];if(oi.to==null){var Zn=Ds(ae,oi.marker);Zn?Ne&&(oi.to=Zn.to==null?null:Zn.to+bn):oi.to=mt}}if(ae)for(var Yi=0;Yi<ae.length;++Yi){var or=ae[Yi];if(or.to!=null&&(or.to+=bn),or.from==null){var Lr=Ds(le,or.marker);Lr||(or.from=bn,Ne&&(le||(le=[])).push(or))}else or.from+=bn,Ne&&(le||(le=[])).push(or)}le&&(le=Yo(le)),ae&&ae!=le&&(ae=Yo(ae));var Ur=[le];if(!Ne){var yo=ot.text.length-2,Wr;if(yo>0&&le)for(var Mo=0;Mo<le.length;++Mo)le[Mo].to==null&&(Wr||(Wr=[])).push(new Go(le[Mo].marker,null,null));for(var is=0;is<yo;++is)Ur.push(Wr);Ur.push(ae)}return Ur}function Yo(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 Qo(it,ot,ct){var At=null;if(it.iter(ot.line,ct.line+1,function(Zn){if(Zn.markedSpans)for(var Yi=0;Yi<Zn.markedSpans.length;++Yi){var or=Zn.markedSpans[Yi].marker;or.readOnly&&(!At||Ye(At,or)==-1)&&(At||(At=[])).push(or)}}),!At)return null;for(var mt=[{from:ot,to:ct}],Dt=0;Dt<At.length;++Dt)for(var qt=At[Dt],le=qt.find(0),ae=0;ae<mt.length;++ae){var Ne=mt[ae];if(!(Jn(Ne.to,le.from)<0||Jn(Ne.from,le.to)>0)){var bn=[ae,1],ze=Jn(Ne.from,le.from),oi=Jn(Ne.to,le.to);(ze<0||!qt.inclusiveLeft&&!ze)&&bn.push({from:Ne.from,to:le.from}),(oi>0||!qt.inclusiveRight&&!oi)&&bn.push({from:le.to,to:Ne.to}),mt.splice.apply(mt,bn),ae+=bn.length-3}}return mt}function Zi(it){var ot=it.markedSpans;if(ot){for(var ct=0;ct<ot.length;++ct)ot[ct].marker.detachLine(it);it.markedSpans=null}}function oe(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 Qs(it){return it.inclusiveRight?1:0}function _a(it,ot){var ct=it.lines.length-ot.lines.length;if(ct!=0)return ct;var At=it.find(),mt=ot.find(),Dt=Jn(At.from,mt.from)||zo(it)-zo(ot);if(Dt)return-Dt;var qt=Jn(At.to,mt.to)||Qs(it)-Qs(ot);return qt||ot.id-it.id}function hl(it,ot){var ct=ni&&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||_a(At,mt.marker)<0)&&(At=mt.marker);return At}function Ka(it){return hl(it,!0)}function ml(it){return hl(it,!1)}function To(it,ot){var ct=ni&&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||_a(At,Dt.marker)<0)&&(At=Dt.marker)}return At}function Po(it,ot,ct,At,mt){var Dt=qe(it,ot),qt=ni&&Dt.markedSpans;if(qt)for(var le=0;le<qt.length;++le){var ae=qt[le];if(ae.marker.collapsed){var Ne=ae.marker.find(0),bn=Jn(Ne.from,ct)||zo(ae.marker)-zo(mt),ze=Jn(Ne.to,At)||Qs(ae.marker)-Qs(mt);if(!(bn>=0&&ze<=0||bn<=0&&ze>=0)&&(bn<=0&&(ae.marker.inclusiveRight&&mt.inclusiveLeft?Jn(Ne.to,ct)>=0:Jn(Ne.to,ct)>0)||bn>=0&&(ae.marker.inclusiveRight&&mt.inclusiveLeft?Jn(Ne.from,At)<=0:Jn(Ne.from,At)<0)))return!0}}}function _r(it){for(var ot;ot=Ka(it);)it=ot.find(-1,!0).line;return it}function As(it){for(var ot;ot=ml(it);)it=ot.find(1,!0).line;return it}function da(it){for(var ot,ct;ot=ml(it);)it=ot.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Rr(it,ot){var ct=qe(it,ot),At=_r(ct);return ct==At?ot:Fe(At)}function jr(it,ot){if(ot>it.lastLine())return ot;var ct=qe(it,ot),At;if(!Li(it,ct))return ot;for(;At=ml(ct);)ct=At.find(1,!0).line;return Fe(ct)+1}function Li(it,ot){var ct=ni&&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&&eo(it,ot,At))return!0}}}function eo(it,ot,ct){if(ct.to==null){var At=ct.marker.find(1,!0);return eo(it,At.line,Ds(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)&&eo(it,ot,mt))return!0}function cs(it){it=_r(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 le=Dt.children[qt];if(le==ct)break;ot+=le.height}return ot}function Es(it){if(it.height==0)return 0;for(var ot=it.text.length,ct,At=it;ct=Ka(At);){var mt=ct.find(0,!0);At=mt.from.line,ot+=mt.from.ch-mt.to.ch}for(At=it;ct=ml(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 Rs(it){var ot=it.display,ct=it.doc;ot.maxLine=qe(ct,ct.first),ot.maxLineLength=Es(ot.maxLine),ot.maxLineChanged=!0,ct.iter(function(At){var mt=Es(At);mt>ot.maxLineLength&&(ot.maxLineLength=mt,ot.maxLine=At)})}var ho=function(it,ot,ct){this.text=it,oe(this,ot),this.height=ct?ct(this):1};ho.prototype.lineNo=function(){return Fe(this)},po(ho);function Cs(it,ot,ct,At){it.text=ot,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Zi(it),oe(it,ct);var mt=At?At(it):1;mt!=it.height&&Si(it,mt)}function Wa(it){it.parent=null,Zi(it)}var _l={},ja={};function ns(it,ot){if(!it||/^\s*$/.test(it))return null;var ct=ot.addModeClass?ja:_l;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function Nn(it,ot){var ct=Xe("span",null,null,je?"padding-right: .1px":null),At={pre:Xe("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=Ac,Xs(it.display.measure)&&(qt=bi(Dt,it.doc.direction))&&(At.addToken=nA(At.addToken,qt)),At.map=[];var le=ot!=it.display.externalMeasured&&Fe(Dt);cc(Dt,At,as(it,Dt,le)),Dt.styleClasses&&(Dt.styleClasses.bgClass&&(At.bgClass=Kn(Dt.styleClasses.bgClass,At.bgClass||"")),Dt.styleClasses.textClass&&(At.textClass=Kn(Dt.styleClasses.textClass,At.textClass||""))),At.map.length==0&&At.map.push(0,0,At.content.appendChild(Ns(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(je){var ae=At.content.lastChild;(/\bcm-tab\b/.test(ae.className)||ae.querySelector&&ae.querySelector(".cm-tab"))&&(At.content.className="cm-tab-wrap-hack")}return Pi(it,"renderLine",it,ot.line,At.pre),At.pre.className&&(At.textClass=Kn(At.pre.className,At.textClass||"")),At}function ua(it){var ot=ce("span","\u2022","cm-invalidchar");return ot.title="\\u"+it.charCodeAt(0).toString(16),ot.setAttribute("aria-label",ot.title),ot}function Ac(it,ot,ct,At,mt,Dt,qt){if(ot){var le=it.splitSpaces?$l(ot,it.trailingSpace):ot,ae=it.cm.state.specialChars,Ne=!1,bn;if(!ae.test(ot))it.col+=ot.length,bn=document.createTextNode(le),it.map.push(it.pos,it.pos+ot.length,bn),Se&&We<9&&(Ne=!0),it.pos+=ot.length;else{bn=document.createDocumentFragment();for(var ze=0;;){ae.lastIndex=ze;var oi=ae.exec(ot),Zn=oi?oi.index-ze:ot.length-ze;if(Zn){var Yi=document.createTextNode(le.slice(ze,ze+Zn));Se&&We<9?bn.appendChild(ce("span",[Yi])):bn.appendChild(Yi),it.map.push(it.pos,it.pos+Zn,Yi),it.col+=Zn,it.pos+=Zn}if(!oi)break;ze+=Zn+1;var or=void 0;if(oi[0]==" "){var Lr=it.cm.options.tabSize,Ur=Lr-it.col%Lr;or=bn.appendChild(ce("span",zi(Ur),"cm-tab")),or.setAttribute("role","presentation"),or.setAttribute("cm-text"," "),it.col+=Ur}else oi[0]=="\r"||oi[0]==`
|
|
|
`?(or=bn.appendChild(ce("span",oi[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),or.setAttribute("cm-text",oi[0]),it.col+=1):(or=it.cm.options.specialCharPlaceholder(oi[0]),or.setAttribute("cm-text",oi[0]),Se&&We<9?bn.appendChild(ce("span",[or])):bn.appendChild(or),it.col+=1);it.map.push(it.pos,it.pos+1,or),it.pos++}}if(it.trailingSpace=le.charCodeAt(ot.length-1)==32,ct||At||mt||Ne||Dt||qt){var yo=ct||"";At&&(yo+=At),mt&&(yo+=mt);var Wr=ce("span",[bn],yo,Dt);if(qt)for(var Mo in qt)qt.hasOwnProperty(Mo)&&Mo!="style"&&Mo!="class"&&Wr.setAttribute(Mo,qt[Mo]);return it.content.appendChild(Wr)}it.content.appendChild(bn)}}function $l(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 nA(it,ot){return function(ct,At,mt,Dt,qt,le,ae){mt=mt?mt+" cm-force-border":"cm-force-border";for(var Ne=ct.pos,bn=Ne+At.length;;){for(var ze=void 0,oi=0;oi<ot.length&&(ze=ot[oi],!(ze.to>Ne&&ze.from<=Ne));oi++);if(ze.to>=bn)return it(ct,At,mt,Dt,qt,le,ae);it(ct,At.slice(0,ze.to-Ne),mt,Dt,null,le,ae),Dt=null,At=At.slice(ze.to-Ne),Ne=ze.to}}}function Va(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 cc(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]),ns(ct[qt+1],ot.cm.options));return}for(var le=mt.length,ae=0,Ne=1,bn="",ze,oi,Zn=0,Yi,or,Lr,Ur,yo;;){if(Zn==ae){Yi=or=Lr=oi="",yo=null,Ur=null,Zn=1/0;for(var Wr=[],Mo=void 0,is=0;is<At.length;++is){var Vr=At[is],ws=Vr.marker;if(ws.type=="bookmark"&&Vr.from==ae&&ws.widgetNode)Wr.push(ws);else if(Vr.from<=ae&&(Vr.to==null||Vr.to>ae||ws.collapsed&&Vr.to==ae&&Vr.from==ae)){if(Vr.to!=null&&Vr.to!=ae&&Zn>Vr.to&&(Zn=Vr.to,or=""),ws.className&&(Yi+=" "+ws.className),ws.css&&(oi=(oi?oi+";":"")+ws.css),ws.startStyle&&Vr.from==ae&&(Lr+=" "+ws.startStyle),ws.endStyle&&Vr.to==Zn&&(Mo||(Mo=[])).push(ws.endStyle,Vr.to),ws.title&&((yo||(yo={})).title=ws.title),ws.attributes)for(var Ma in ws.attributes)(yo||(yo={}))[Ma]=ws.attributes[Ma];ws.collapsed&&(!Ur||_a(Ur.marker,ws)<0)&&(Ur=Vr)}else Vr.from>ae&&Zn>Vr.from&&(Zn=Vr.from)}if(Mo)for(var Ql=0;Ql<Mo.length;Ql+=2)Mo[Ql+1]==Zn&&(or+=" "+Mo[Ql]);if(!Ur||Ur.from==ae)for(var va=0;va<Wr.length;++va)Va(ot,0,Wr[va]);if(Ur&&(Ur.from||0)==ae){if(Va(ot,(Ur.to==null?le+1:Ur.to)-ae,Ur.marker,Ur.from==null),Ur.to==null)return;Ur.to==ae&&(Ur=!1)}}if(ae>=le)break;for(var Ll=Math.min(le,Zn);;){if(bn){var Zs=ae+bn.length;if(!Ur){var Hs=Zs>Ll?bn.slice(0,Ll-ae):bn;ot.addToken(ot,Hs,ze?ze+Yi:Yi,Lr,ae+Hs.length==Zn?or:"",oi,yo)}if(Zs>=Ll){bn=bn.slice(Ll-ae),ae=Ll;break}ae=Zs,Lr=""}bn=mt.slice(Dt,Dt=ct[Ne++]),ze=ns(ct[Ne++],ot.cm.options)}}}function Al(it,ot,ct){this.line=ot,this.rest=da(ot),this.size=this.rest?Fe(Ie(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=Li(it,ot)}function fs(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 Gs=null;function iA(it){Gs?Gs.ops.push(it):it.ownsGroup=Gs={ops:[it],delayedCallbacks:[]}}function Do(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 Ps(it,ot){var ct=it.ownsGroup;if(ct)try{Do(ct)}finally{Gs=null,ot(ct)}}var es=null;function Sr(it,ot){var ct=ei(it,ot);if(ct.length){var At=Array.prototype.slice.call(arguments,2),mt;Gs?mt=Gs.delayedCallbacks:es?mt=es:(mt=es=[],setTimeout(cl,0));for(var Dt=function(le){mt.push(function(){return ct[le].apply(null,At)})},qt=0;qt<ct.length;++qt)Dt(qt)}}function cl(){var it=es;es=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"?$i(it,ot):Dt=="gutter"?Ya(it,ot,ct,At):Dt=="class"?ba(it,ot):Dt=="widget"&&Ml(it,ot,At)}ot.changes=null}function vu(it){return it.node==it.text&&(it.node=ce("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Se&&We<8&&(it.node.style.zIndex=2)),it.node}function gh(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=vu(ot);ot.background=At.insertBefore(ce("div",null,ct),At.firstChild),it.display.input.setUneditable(ot.background)}}function Mh(it,ot){var ct=it.display.externalMeasured;return ct&&ct.line==ot.line?(it.display.externalMeasured=null,ot.measure=ct.measure,ct.built):Nn(it,ot)}function $i(it,ot){var ct=ot.text.className,At=Mh(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,ba(it,ot)):ct&&(ot.text.className=ct)}function ba(it,ot){gh(it,ot),ot.line.wrapClass?vu(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 Ya(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=vu(ot);ot.gutterBackground=ce("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=vu(ot),le=ot.gutter=ce("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?At.fixedPos:-At.gutterTotalWidth)+"px");if(it.display.input.setUneditable(le),qt.insertBefore(le,ot.text),ot.line.gutterClass&&(le.className+=" "+ot.line.gutterClass),it.options.lineNumbers&&(!Dt||!Dt["CodeMirror-linenumbers"])&&(ot.lineNumber=le.appendChild(ce("div",lr(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+At.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Dt)for(var ae=0;ae<it.display.gutterSpecs.length;++ae){var Ne=it.display.gutterSpecs[ae].className,bn=Dt.hasOwnProperty(Ne)&&Dt[Ne];bn&&le.appendChild(ce("div",[bn],"CodeMirror-gutter-elt","left: "+At.gutterLeft[Ne]+"px; width: "+At.gutterWidth[Ne]+"px"))}}}function Ml(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);Gl(it,ot,ct)}function $u(it,ot,ct,At){var mt=Mh(it,ot);return ot.text=ot.node=mt.pre,mt.bgClass&&(ot.bgClass=mt.bgClass),mt.textClass&&(ot.textClass=mt.textClass),ba(it,ot),Ya(it,ot,ct,At),Gl(it,ot,At),ot.node}function Gl(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=vu(ct),qt=0,le=ot.widgets;qt<le.length;++qt){var ae=le[qt],Ne=ce("div",[ae.node],"CodeMirror-linewidget"+(ae.className?" "+ae.className:""));ae.handleMouseEvents||Ne.setAttribute("cm-ignore-events","true"),ga(ae,Ne,ct,At),it.display.input.setUneditable(Ne),mt&&ae.above?Dt.insertBefore(Ne,ct.gutter||ct.text):Dt.appendChild(Ne),Sr(ae,"redraw")}}function ga(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 Ta(it){if(it.height!=null)return it.height;var ot=it.doc.cm;if(!ot)return 0;if(!ln(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;"),me(ot.display.measure,ce("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function ql(it,ot){for(var ct=hr(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 Kl(it){return it.lineSpace.offsetTop}function Iu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function iu(it){if(it.cachedPaddingH)return it.cachedPaddingH;var ot=me(it.measure,ce("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 Wl(it){return Gn-it.display.nativeBarWidth}function Nl(it){return it.display.scroller.clientWidth-Wl(it)-it.display.barWidth}function fo(it){return it.display.scroller.clientHeight-Wl(it)-it.display.barHeight}function $c(it,ot,ct){var At=it.options.lineWrapping,mt=At&&Nl(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(),le=0;le<qt.length-1;le++){var ae=qt[le],Ne=qt[le+1];Math.abs(ae.bottom-Ne.bottom)>2&&Dt.push((ae.bottom+Ne.top)/2-ct.top)}}Dt.push(ct.bottom-ct.top)}}function tu(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 kc(it,ot){ot=_r(ot);var ct=Fe(ot),At=it.display.externalMeasured=new Al(it.doc,ot,ct);At.lineN=ct;var mt=At.built=Nn(it,At);return At.text=mt.pre,me(it.display.lineMeasure,mt.pre),At}function ph(it,ot,ct,At){return qu(it,Sa(it,ot),ct,At)}function rA(it,ot){if(ot>=it.display.viewFrom&&ot<it.display.viewTo)return it.display.view[th(it,ot)];var ct=it.display.externalMeasured;if(ct&&ot>=ct.lineN&&ot<ct.lineN+ct.size)return ct}function Sa(it,ot){var ct=Fe(ot),At=rA(it,ct);At&&!At.text?At=null:At&&At.changes&&(dl(it,At,ct,gf(it)),it.curOp.forceUpdate=!0),At||(At=kc(it,ot));var mt=tu(At,ot,ct);return{line:ot,view:At,rect:null,map:mt.map,cache:mt.cache,before:mt.before,hasHeights:!1}}function qu(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||($c(it,ot.view,ot.rect),ot.hasHeights=!0),qt=ss(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 qc={left:0,right:0,top:0,bottom:0};function zA(it,ot,ct){for(var At,mt,Dt,qt,le,ae,Ne=0;Ne<it.length;Ne+=3)if(le=it[Ne],ae=it[Ne+1],ot<le?(mt=0,Dt=1,qt="left"):ot<ae?(mt=ot-le,Dt=mt+1):(Ne==it.length-3||ot==ae&&it[Ne+3]>ot)&&(Dt=ae-le,mt=Dt-1,ot>=ae&&(qt="right")),mt!=null){if(At=it[Ne+2],le==ae&&ct==(At.insertLeft?"left":"right")&&(qt=ct),ct=="left"&&mt==0)for(;Ne&&it[Ne-2]==it[Ne-3]&&it[Ne-1].insertLeft;)At=it[(Ne-=3)+2],qt="left";if(ct=="right"&&mt==ae-le)for(;Ne<it.length-3&&it[Ne+3]==it[Ne+4]&&!it[Ne+5].insertLeft;)At=it[(Ne+=3)+2],qt="right";break}return{node:At,start:mt,end:Dt,collapse:qt,coverStart:le,coverEnd:ae}}function dc(it,ot){var ct=qc;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 ss(it,ot,ct,At){var mt=zA(ot.map,ct,At),Dt=mt.node,qt=mt.start,le=mt.end,ae=mt.collapse,Ne;if(Dt.nodeType==3){for(var bn=0;bn<4;bn++){for(;qt&&Ge(ot.line.text.charAt(mt.coverStart+qt));)--qt;for(;mt.coverStart+le<mt.coverEnd&&Ge(ot.line.text.charAt(mt.coverStart+le));)++le;if(Se&&We<9&&qt==0&&le==mt.coverEnd-mt.coverStart?Ne=Dt.parentNode.getBoundingClientRect():Ne=dc(De(Dt,qt,le).getClientRects(),At),Ne.left||Ne.right||qt==0)break;le=qt,qt=qt-1,ae="right"}Se&&We<11&&(Ne=Ks(it.display.measure,Ne))}else{qt>0&&(ae=At="right");var ze;it.options.lineWrapping&&(ze=Dt.getClientRects()).length>1?Ne=ze[At=="right"?ze.length-1:0]:Ne=Dt.getBoundingClientRect()}if(Se&&We<9&&!qt&&(!Ne||!Ne.left&&!Ne.right)){var oi=Dt.parentNode.getClientRects()[0];oi?Ne={left:oi.left,right:oi.left+Nh(it.display),top:oi.top,bottom:oi.bottom}:Ne=qc}for(var Zn=Ne.top-ot.rect.top,Yi=Ne.bottom-ot.rect.top,or=(Zn+Yi)/2,Lr=ot.view.measure.heights,Ur=0;Ur<Lr.length-1&&!(or<Lr[Ur]);Ur++);var yo=Ur?Lr[Ur-1]:0,Wr=Lr[Ur],Mo={left:(ae=="right"?Ne.right:Ne.left)-ot.rect.left,right:(ae=="left"?Ne.left:Ne.right)-ot.rect.left,top:yo,bottom:Wr};return!Ne.left&&!Ne.right&&(Mo.bogus=!0),it.options.singleCursorHeightPerLine||(Mo.rtop=Zn,Mo.rbottom=Yi),Mo}function Ks(it,ot){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!_s(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 ru(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 Za(it){it.display.externalMeasure=null,se(it.display.lineMeasure);for(var ot=0;ot<it.display.view.length;ot++)ru(it.display.view[ot])}function ka(it){Za(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function pa(){return ve&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ws(){return ve&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function xa(it){var ot=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(ot+=Ta(it.widgets[ct]));return ot}function ol(it,ot,ct,At,mt){if(!mt){var Dt=xa(ot);ct.top+=Dt,ct.bottom+=Dt}if(At=="line")return ct;At||(At="local");var qt=cs(ot);if(At=="local"?qt+=Kl(it.display):qt-=it.display.viewOffset,At=="page"||At=="window"){var le=it.display.lineSpace.getBoundingClientRect();qt+=le.top+(At=="window"?0:Ws());var ae=le.left+(At=="window"?0:pa());ct.left+=ae,ct.right+=ae}return ct.top+=qt,ct.bottom+=qt,ct}function zh(it,ot,ct){if(ct=="div")return ot;var At=ot.left,mt=ot.top;if(ct=="page")At-=pa(),mt-=Ws();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 Tu(it,ot,ct,At,mt){return At||(At=qe(it.doc,ot.line)),ol(it,At,ph(it,At,ot.ch,mt),ct)}function La(it,ot,ct,At,mt,Dt){At=At||qe(it.doc,ot.line),mt||(mt=Sa(it,At));function qt(Yi,or){var Lr=qu(it,mt,Yi,or?"right":"left",Dt);return or?Lr.left=Lr.right:Lr.right=Lr.left,ol(it,At,Lr,ct)}var le=bi(At,it.doc.direction),ae=ot.ch,Ne=ot.sticky;if(ae>=At.text.length?(ae=At.text.length,Ne="before"):ae<=0&&(ae=0,Ne="after"),!le)return qt(Ne=="before"?ae-1:ae,Ne=="before");function bn(Yi,or,Lr){var Ur=le[or],yo=Ur.level==1;return qt(Lr?Yi-1:Yi,yo!=Lr)}var ze=Bn(le,ae,Ne),oi=kn,Zn=bn(ae,ze,Ne=="before");return oi!=null&&(Zn.other=bn(ae,oi,Ne!="before")),Zn}function td(it,ot){var ct=0;ot=ar(it.doc,ot),it.options.lineWrapping||(ct=Nh(it.display)*ot.ch);var At=qe(it.doc,ot.line),mt=cs(At)+Kl(it.display);return{left:ct,right:ct,top:mt,bottom:mt+At.height}}function fc(it,ot,ct,At,mt){var Dt=wn(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 fc(At.first,0,null,-1,-1);var mt=Qn(At,ct),Dt=At.first+At.size-1;if(mt>Dt)return fc(At.first+At.size-1,qe(At,Dt).text.length,null,1,1);ot<0&&(ot=0);for(var qt=qe(At,mt);;){var le=Bi(it,qt,mt,ot,ct),ae=To(qt,le.ch+(le.xRel>0||le.outside>0?1:0));if(!ae)return le;var Ne=ae.find(1);if(Ne.line==mt)return Ne;qt=qe(At,mt=Ne.line)}}function mo(it,ot,ct,At){At-=xa(ot);var mt=ot.text.length,Dt=Fn(function(qt){return qu(it,ct,qt-1).bottom<=At},mt,0);return mt=Fn(function(qt){return qu(it,ct,qt).top>At},Dt,mt),{begin:Dt,end:mt}}function zf(it,ot,ct,At){ct||(ct=Sa(it,ot));var mt=ol(it,ot,qu(it,ct,At),"line").top;return mo(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 Bi(it,ot,ct,At,mt){mt-=cs(ot);var Dt=Sa(it,ot),qt=xa(ot),le=0,ae=ot.text.length,Ne=!0,bn=bi(ot,it.doc.direction);if(bn){var ze=(it.options.lineWrapping?oA:ff)(it,ot,ct,Dt,bn,At,mt);Ne=ze.level!=1,le=Ne?ze.from:ze.to-1,ae=Ne?ze.to:ze.from-1}var oi=null,Zn=null,Yi=Fn(function(is){var Vr=qu(it,Dt,is);return Vr.top+=qt,Vr.bottom+=qt,Je(Vr,At,mt,!1)?(Vr.top<=mt&&Vr.left<=At&&(oi=is,Zn=Vr),!0):!1},le,ae),or,Lr,Ur=!1;if(Zn){var yo=At-Zn.left<Zn.right-At,Wr=yo==Ne;Yi=oi+(Wr?0:1),Lr=Wr?"after":"before",or=yo?Zn.left:Zn.right}else{!Ne&&(Yi==ae||Yi==le)&&Yi++,Lr=Yi==0?"after":Yi==ot.text.length?"before":qu(it,Dt,Yi-(Ne?1:0)).bottom+qt<=mt==Ne?"after":"before";var Mo=La(it,wn(ct,Yi,Lr),"line",ot,Dt);or=Mo.left,Ur=mt<Mo.top?-1:mt>=Mo.bottom?1:0}return Yi=vn(ot.text,Yi,1),fc(ct,Yi,Lr,Ur,At-or)}function ff(it,ot,ct,At,mt,Dt,qt){var le=Fn(function(ze){var oi=mt[ze],Zn=oi.level!=1;return Je(La(it,wn(ct,Zn?oi.to:oi.from,Zn?"before":"after"),"line",ot,At),Dt,qt,!0)},0,mt.length-1),ae=mt[le];if(le>0){var Ne=ae.level!=1,bn=La(it,wn(ct,Ne?ae.from:ae.to,Ne?"after":"before"),"line",ot,At);Je(bn,Dt,qt,!0)&&bn.top>qt&&(ae=mt[le-1])}return ae}function oA(it,ot,ct,At,mt,Dt,qt){var le=mo(it,ot,At,qt),ae=le.begin,Ne=le.end;/\s/.test(ot.text.charAt(Ne-1))&&Ne--;for(var bn=null,ze=null,oi=0;oi<mt.length;oi++){var Zn=mt[oi];if(!(Zn.from>=Ne||Zn.to<=ae)){var Yi=Zn.level!=1,or=qu(it,At,Yi?Math.min(Ne,Zn.to)-1:Math.max(ae,Zn.from)).right,Lr=or<Dt?Dt-or+1e9:or-Dt;(!bn||ze>Lr)&&(bn=Zn,ze=Lr)}}return bn||(bn=mt[mt.length-1]),bn.from<ae&&(bn={from:ae,to:bn.to,level:bn.level}),bn.to>Ne&&(bn={from:bn.from,to:Ne,level:bn.level}),bn}var yu;function wu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(yu==null){yu=ce("pre",null,"CodeMirror-line-like");for(var ot=0;ot<49;++ot)yu.appendChild(document.createTextNode("x")),yu.appendChild(ce("br"));yu.appendChild(document.createTextNode("x"))}me(it.measure,yu);var ct=yu.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),se(it.measure),ct||1}function Nh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var ot=ce("span","xxxxxxxxxx"),ct=ce("pre",[ot],"CodeMirror-line-like");me(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 le=it.display.gutterSpecs[qt].className;ct[le]=Dt.offsetLeft+Dt.clientLeft+mt,At[le]=Dt.clientWidth}return{fixedPos:Oc(ot),gutterTotalWidth:ot.gutters.offsetWidth,gutterLeft:ct,gutterWidth:At,wrapperWidth:ot.wrapper.clientWidth}}function Oc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function ma(it){var ot=wu(it.display),ct=it.options.lineWrapping,At=ct&&Math.max(5,it.display.scroller.clientWidth/Nh(it.display)-3);return function(mt){if(Li(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 Xo(it){var ot=it.doc,ct=ma(it);ot.iter(function(At){var mt=ct(At);mt!=At.height&&Si(At,mt)})}function Cu(it,ot,ct,At){var mt=it.display;if(!ct&&hr(ot).getAttribute("cm-not-content")=="true")return null;var Dt,qt,le=mt.lineSpace.getBoundingClientRect();try{Dt=ot.clientX-le.left,qt=ot.clientY-le.top}catch(ze){return null}var ae=_h(it,Dt,qt),Ne;if(At&&ae.xRel>0&&(Ne=qe(it.doc,ae.line).text).length==ae.ch){var bn=fe(Ne,Ne.length,it.options.tabSize)-Ne.length;ae=wn(ae.line,Math.max(0,Math.round((Dt-iu(it.display).left)/Nh(it.display))-bn))}return ae}function th(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)ni&&Rr(it.doc,ot)<mt.viewTo&&kl(it);else if(ct<=mt.viewFrom)ni&&jr(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=zu(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=zu(it,ot,ot,-1);qt?(mt.view=mt.view.slice(0,qt.index),mt.viewTo=qt.lineN):kl(it)}else{var le=zu(it,ot,ot,-1),ae=zu(it,ct,ct+At,1);le&&ae?(mt.view=mt.view.slice(0,le.index).concat(fs(it,le.lineN,ae.lineN)).concat(mt.view.slice(ae.index)),mt.viewTo+=At):kl(it)}var Ne=mt.externalMeasured;Ne&&(ct<Ne.lineN?Ne.lineN+=At:ot<Ne.lineN+Ne.size&&(mt.externalMeasured=null))}function Ms(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[th(it,ot)];if(Dt.node!=null){var qt=Dt.changes||(Dt.changes=[]);Ye(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 zu(it,ot,ct,At){var mt=th(it,ot),Dt,qt=it.display.view;if(!ni||ct==it.doc.first+it.doc.size)return{index:mt,lineN:ct};for(var le=it.display.viewFrom,ae=0;ae<mt;ae++)le+=qt[ae].size;if(le!=ot){if(At>0){if(mt==qt.length-1)return null;Dt=le+qt[mt].size-ot,mt++}else Dt=le-ot;ot+=Dt,ct+=Dt}for(;Rr(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 Ua(it,ot,ct){var At=it.display,mt=At.view;mt.length==0||ot>=At.viewTo||ct<=At.viewFrom?(At.view=fs(it,ot,ct),At.viewFrom=ot):(At.viewFrom>ot?At.view=fs(it,ot,At.viewFrom).concat(At.view):At.viewFrom<ot&&(At.view=At.view.slice(th(it,ot))),At.viewFrom=ot,At.viewTo<ct?At.view=At.view.concat(fs(it,At.viewTo,ct)):At.viewTo>ct&&(At.view=At.view.slice(0,th(it,ct)))),At.viewTo=ct}function mh(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 Vl(it){it.display.input.showSelection(it.display.input.prepareSelection())}function gc(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 le=ct.sel.ranges[qt];if(!(le.from().line>=it.display.viewTo||le.to().line<it.display.viewFrom)){var ae=le.empty();(ae||it.options.showCursorWhenSelecting)&&na(it,le.head,mt),ae||$s(it,le,Dt)}}return At}function na(it,ot,ct){var At=La(it,ot,"div",null,null,!it.options.singleCursorHeightPerLine),mt=ct.appendChild(ce("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(ce("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 Pu(it,ot){return it.top-ot.top||it.left-ot.left}function $s(it,ot,ct){var At=it.display,mt=it.doc,Dt=document.createDocumentFragment(),qt=iu(it.display),le=qt.left,ae=Math.max(At.sizerWidth,Nl(it)-At.sizer.offsetLeft)-qt.right,Ne=mt.direction=="ltr";function bn(Wr,Mo,is,Vr){Mo<0&&(Mo=0),Mo=Math.round(Mo),Vr=Math.round(Vr),Dt.appendChild(ce("div",null,"CodeMirror-selected","position: absolute; left: "+Wr+`px;
|
|
|
top: `+Mo+"px; width: "+(is==null?ae-Wr:is)+`px;
|
|
|
height: `+(Vr-Mo)+"px"))}function ze(Wr,Mo,is){var Vr=qe(mt,Wr),ws=Vr.text.length,Ma,Ql;function va(Hs,Ca){return Tu(it,wn(Wr,Hs),"div",Vr,Ca)}function Ll(Hs,Ca,Pa){var Hr=zf(it,Vr,null,Hs),zs=Ca=="ltr"==(Pa=="after")?"left":"right",Qa=Pa=="after"?Hr.begin:Hr.end-(/\s/.test(Vr.text.charAt(Hr.end-1))?2:1);return va(Qa,zs)[zs]}var Zs=bi(Vr,mt.direction);return An(Zs,Mo||0,is==null?ws:is,function(Hs,Ca,Pa,Hr){var zs=Pa=="ltr",Qa=va(Hs,zs?"left":"right"),Ra=va(Ca-1,zs?"right":"left"),gu=Mo==null&&Hs==0,ta=is==null&&Ca==ws,hs=Hr==0,Fl=!Zs||Hr==Zs.length-1;if(Ra.top-Qa.top<=3){var wl=(Ne?gu:ta)&&hs,MA=(Ne?ta:gu)&&Fl,Ph=wl?le:(zs?Qa:Ra).left,pu=MA?ae:(zs?Ra:Qa).right;bn(Ph,Qa.top,pu-Ph,Qa.bottom)}else{var Nu,Ha,au,mA;zs?(Nu=Ne&&gu&&hs?le:Qa.left,Ha=Ne?ae:Ll(Hs,Pa,"before"),au=Ne?le:Ll(Ca,Pa,"after"),mA=Ne&&ta&&Fl?ae:Ra.right):(Nu=Ne?Ll(Hs,Pa,"before"):le,Ha=!Ne&&gu&&hs?ae:Qa.right,au=!Ne&&ta&&Fl?le:Ra.left,mA=Ne?Ll(Ca,Pa,"after"):ae),bn(Nu,Qa.top,Ha-Nu,Qa.bottom),Qa.bottom<Ra.top&&bn(le,Qa.bottom,null,Ra.top),bn(au,Ra.top,mA-au,Ra.bottom)}(!Ma||Pu(Qa,Ma)<0)&&(Ma=Qa),Pu(Ra,Ma)<0&&(Ma=Ra),(!Ql||Pu(Qa,Ql)<0)&&(Ql=Qa),Pu(Ra,Ql)<0&&(Ql=Ra)}),{start:Ma,end:Ql}}var oi=ot.from(),Zn=ot.to();if(oi.line==Zn.line)ze(oi.line,oi.ch,Zn.ch);else{var Yi=qe(mt,oi.line),or=qe(mt,Zn.line),Lr=_r(Yi)==_r(or),Ur=ze(oi.line,oi.ch,Lr?Yi.text.length+1:null).end,yo=ze(Zn.line,Lr?0:null,Zn.ch).start;Lr&&(Ur.top<yo.top-2?(bn(Ur.right,Ur.top,null,Ur.bottom),bn(le,yo.top,yo.left,yo.bottom)):bn(Ur.right,Ur.top,yo.left-Ur.right,Ur.bottom)),Ur.bottom<yo.top&&bn(le,Ur.bottom,null,yo.top)}ct.appendChild(Dt)}function Oa(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()||gt(it),ot.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(ot.cursorDiv.style.visibility="hidden")}}function Ja(it){it.state.focused||(it.display.input.focus(),wt(it))}function vl(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,gt(it))},100)}function wt(it,ot){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Pi(it,"focus",it,ot),it.state.focused=!0,mn(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),je&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Oa(it))}function gt(it,ot){it.state.delayingBlurEvent||(it.state.focused&&(Pi(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 yt(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,le=0;if(!mt.hidden){if(Se&&We<8){var ae=mt.node.offsetTop+mt.node.offsetHeight;qt=ae-ct,ct=ae}else{var Ne=mt.node.getBoundingClientRect();qt=Ne.bottom-Ne.top,!Dt&&mt.text.firstChild&&(le=mt.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var bn=mt.line.height-qt;if((bn>.005||bn<-.005)&&(Si(mt.line,qt),Ft(mt.line),mt.rest))for(var ze=0;ze<mt.rest.length;ze++)Ft(mt.rest[ze]);if(le>it.display.sizerWidth){var oi=Math.ceil(le/Nh(it.display));oi>it.display.maxLineLength&&(it.display.maxLineLength=oi,it.display.maxLine=mt.line,it.display.maxLineChanged=!0)}}}}function Ft(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 Ut(it,ot,ct){var At=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;At=Math.floor(At-Kl(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 le=ct.ensure.from.line,ae=ct.ensure.to.line;le<Dt?(Dt=le,qt=Qn(ot,cs(qe(ot,le))+it.wrapper.clientHeight)):Math.min(ae,ot.lastLine())>=qt&&(Dt=Qn(ot,cs(qe(ot,ae))-it.wrapper.clientHeight),qt=ae)}return{from:Dt,to:Math.max(qt,Dt+1)}}function Ot(it,ot){if(!sr(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&&!ge){var Dt=ce("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ot.top-ct.viewOffset-Kl(it.display))+`px;
|
|
|
height: `+(ot.bottom-ot.top+Wl(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 Xt(it,ot,ct,At){At==null&&(At=0);var mt;!it.options.lineWrapping&&ot==ct&&(ot=ot.ch?wn(ot.line,ot.sticky=="before"?ot.ch-1:ot.ch,"after"):ot,ct=ot.sticky=="before"?wn(ot.line,ot.ch+1,"before"):ot);for(var Dt=0;Dt<5;Dt++){var qt=!1,le=La(it,ot),ae=!ct||ct==ot?le:La(it,ct);mt={left:Math.min(le.left,ae.left),top:Math.min(le.top,ae.top)-At,right:Math.max(le.left,ae.left),bottom:Math.max(le.bottom,ae.bottom)+At};var Ne=ne(it,mt),bn=it.doc.scrollTop,ze=it.doc.scrollLeft;if(Ne.scrollTop!=null&&(Sn(it,Ne.scrollTop),Math.abs(it.doc.scrollTop-bn)>1&&(qt=!0)),Ne.scrollLeft!=null&&(on(it,Ne.scrollLeft),Math.abs(it.doc.scrollLeft-ze)>1&&(qt=!0)),!qt)break}return mt}function Jt(it,ot){var ct=ne(it,ot);ct.scrollTop!=null&&Sn(it,ct.scrollTop),ct.scrollLeft!=null&&on(it,ct.scrollLeft)}function ne(it,ot){var ct=it.display,At=wu(it.display);ot.top<0&&(ot.top=0);var mt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Dt=fo(it),qt={};ot.bottom-ot.top>Dt&&(ot.bottom=ot.top+Dt);var le=it.doc.height+Iu(ct),ae=ot.top<At,Ne=ot.bottom>le-At;if(ot.top<mt)qt.scrollTop=ae?0:ot.top;else if(ot.bottom>mt+Dt){var bn=Math.min(ot.top,(Ne?le:ot.bottom)-Dt);bn!=mt&&(qt.scrollTop=bn)}var ze=it.options.fixedGutter?0:ct.gutters.offsetWidth,oi=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-ze,Zn=Nl(it)-ct.gutters.offsetWidth,Yi=ot.right-ot.left>Zn;return Yi&&(ot.right=ot.left+Zn),ot.left<10?qt.scrollLeft=0:ot.left<oi?qt.scrollLeft=Math.max(0,ot.left+ze-(Yi?0:10)):ot.right>Zn+oi-3&&(qt.scrollLeft=ot.right+(Yi?0:10)-Zn),qt}function Be(it,ot){ot!=null&&(pe(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+ot)}function Re(it){pe(it);var ot=it.getCursor();it.curOp.scrollToPos={from:ot,to:ot,margin:it.options.cursorScrollMargin}}function He(it,ot,ct){(ot!=null||ct!=null)&&pe(it),ot!=null&&(it.curOp.scrollLeft=ot),ct!=null&&(it.curOp.scrollTop=ct)}function Ze(it,ot){pe(it),it.curOp.scrollToPos=ot}function pe(it){var ot=it.curOp.scrollToPos;if(ot){it.curOp.scrollToPos=null;var ct=td(it,ot.from),At=td(it,ot.to);jn(it,ct,At,ot.margin)}}function jn(it,ot,ct,At){var mt=ne(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});He(it,mt.scrollLeft,mt.scrollTop)}function Sn(it,ot){Math.abs(it.doc.scrollTop-ot)<2||(Kt||Kr(it,{top:ot}),Rn(it,ot,!0),Kt&&Kr(it),tn(it,100))}function Rn(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,Fs(it),it.display.scroller.scrollLeft!=ot&&(it.display.scroller.scrollLeft=ot),it.display.scrollbars.setScrollLeft(ot))}function On(it){var ot=it.display,ct=ot.gutters.offsetWidth,At=Math.round(it.doc.height+Iu(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+Wl(it)+ot.barHeight,nativeBarWidth:ot.nativeBarWidth,gutterWidth:ct}}var mi=function(it,ot,ct){this.cm=ct;var At=this.vert=ce("div",[ce("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),mt=this.horiz=ce("div",[ce("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");At.tabIndex=mt.tabIndex=-1,it(At),it(mt),an(At,"scroll",function(){At.clientHeight&&ot(At.scrollTop,"vertical")}),an(mt,"scroll",function(){mt.clientWidth&&ot(mt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&We<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mi.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}},mi.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mi.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mi.prototype.zeroWidthHack=function(){var it=ht&&!ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Zt,this.disableVert=new Zt},mi.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)},mi.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Di=function(){};Di.prototype.update=function(){return{bottom:0,right:0}},Di.prototype.setScrollLeft=function(){},Di.prototype.setScrollTop=function(){},Di.prototype.clear=function(){};function qi(it,ot){ot||(ot=On(it));var ct=it.display.barWidth,At=it.display.barHeight;Ir(it,ot);for(var mt=0;mt<4&&ct!=it.display.barWidth||At!=it.display.barHeight;mt++)ct!=it.display.barWidth&&it.options.lineWrapping&&yt(it),Ir(it,On(it)),ct=it.display.barWidth,At=it.display.barHeight}function Ir(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 Wi={native:mi,null:Di};function ai(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&$t(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Wi[it.options.scrollbarStyle](function(ot){it.display.wrapper.insertBefore(ot,it.display.scrollbarFiller),an(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):Sn(it,ot)},it),it.display.scrollbars.addClass&&mn(it.display.wrapper,it.display.scrollbars.addClass)}var Xi=0;function gr(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:++Xi},iA(it.curOp)}function yn(it){var ot=it.curOp;ot&&Ps(ot,function(ct){for(var At=0;At<ct.ops.length;At++)ct.ops[At].cm.curOp=null;Ln(ct)})}function Ln(it){for(var ot=it.ops,ct=0;ct<ot.length;ct++)wi(ot[ct]);for(var At=0;At<ot.length;At++)si(ot[At]);for(var mt=0;mt<ot.length;mt++)Ar(ot[mt]);for(var Dt=0;Dt<ot.length;Dt++)_i(ot[Dt]);for(var qt=0;qt<ot.length;qt++)dr(ot[qt])}function wi(it){var ot=it.cm,ct=ot.display;fi(ot),it.updateMaxLine&&Rs(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 $n(ot,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function si(it){it.updatedDisplay=it.mustUpdate&&ir(it.cm,it.update)}function Ar(it){var ot=it.cm,ct=ot.display;it.updatedDisplay&&yt(ot),it.barMeasure=On(ot),ct.maxLineChanged&&!ot.options.lineWrapping&&(it.adjustWidthTo=ph(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+Wl(ot)+ot.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Nl(ot))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function _i(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==Oe();it.preparedSelection&&ot.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=ot.doc.height)&&qi(ot,it.barMeasure),it.updatedDisplay&&Lo(ot,it.barMeasure),it.selectionChanged&&Oa(ot),ot.state.focused&&it.updateInput&&ot.display.input.reset(it.typing),ct&&Ja(it.cm)}function dr(it){var ot=it.cm,ct=ot.display,At=ot.doc;if(it.updatedDisplay&&ji(ot,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&Rn(ot,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&on(ot,it.scrollLeft,!0,!0),it.scrollToPos){var mt=Xt(ot,ar(At,it.scrollToPos.from),ar(At,it.scrollToPos.to),it.scrollToPos.margin);Ot(ot,mt)}var Dt=it.maybeHiddenMarkers,qt=it.maybeUnhiddenMarkers;if(Dt)for(var le=0;le<Dt.length;++le)Dt[le].lines.length||Pi(Dt[le],"hide");if(qt)for(var ae=0;ae<qt.length;++ae)qt[ae].lines.length&&Pi(qt[ae],"unhide");ct.wrapper.offsetHeight&&(At.scrollTop=ot.display.scroller.scrollTop),it.changeObjs&&Pi(ot,"changes",ot,it.changeObjs),it.update&&it.update.finish()}function Mi(it,ot){if(it.curOp)return ot();gr(it);try{return ot()}finally{yn(it)}}function tr(it,ot){return function(){if(it.curOp)return ot.apply(it,arguments);gr(it);try{return ot.apply(it,arguments)}finally{yn(it)}}}function fr(it){return function(){if(this.curOp)return it.apply(this,arguments);gr(this);try{return it.apply(this,arguments)}finally{yn(this)}}}function so(it){return function(){var ot=this.cm;if(!ot||ot.curOp)return it.apply(this,arguments);gr(ot);try{return it.apply(this,arguments)}finally{yn(ot)}}}function tn(it,ot){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(ot,gn(En,it))}function En(it){var ot=it.doc;if(!(ot.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,At=Eo(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,le=Dt.text.length>it.options.maxHighlightLength?Un(ot.mode,At.state):null,ae=Oo(it,Dt,At,!0);le&&(At.state=le),Dt.styles=ae.styles;var Ne=Dt.styleClasses,bn=ae.classes;bn?Dt.styleClasses=bn:Ne&&(Dt.styleClasses=null);for(var ze=!qt||qt.length!=Dt.styles.length||Ne!=bn&&(!Ne||!bn||Ne.bgClass!=bn.bgClass||Ne.textClass!=bn.textClass),oi=0;!ze&&oi<qt.length;++oi)ze=qt[oi]!=Dt.styles[oi];ze&&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 tn(it,it.options.workDelay),!0}),ot.highlightFrontier=At.line,ot.modeFrontier=Math.max(ot.modeFrontier,At.line),mt.length&&Mi(it,function(){for(var Dt=0;Dt<mt.length;Dt++)Ms(it,mt[Dt],"text")})}}var $n=function(it,ot,ct){var At=it.display;this.viewport=ot,this.visible=Ut(At,it.doc,ot),this.editorIsHidden=!At.wrapper.offsetWidth,this.wrapperHeight=At.wrapper.clientHeight,this.wrapperWidth=At.wrapper.clientWidth,this.oldDisplayWidth=Nl(it),this.force=ct,this.dims=gf(it),this.events=[]};$n.prototype.signal=function(it,ot){Ao(it,ot)&&this.events.push(arguments)},$n.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Pi.apply(null,this.events[it])};function fi(it){var ot=it.display;!ot.scrollbarsClipped&&ot.scroller.offsetWidth&&(ot.nativeBarWidth=ot.scroller.offsetWidth-ot.scroller.clientWidth,ot.heightForcer.style.height=Wl(it)+"px",ot.sizer.style.marginBottom=-ot.nativeBarWidth+"px",ot.sizer.style.borderRightWidth=Wl(it)+"px",ot.scrollbarsClipped=!0)}function ki(it){if(it.hasFocus())return null;var ot=Oe();if(!ot||!ln(it.display.lineDiv,ot))return null;var ct={activeElt:ot};if(window.getSelection){var At=window.getSelection();At.anchorNode&&At.extend&&ln(it.display.lineDiv,At.anchorNode)&&(ct.anchorNode=At.anchorNode,ct.anchorOffset=At.anchorOffset,ct.focusNode=At.focusNode,ct.focusOffset=At.focusOffset)}return ct}function Ki(it){if(!(!it||!it.activeElt||it.activeElt==Oe())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&ln(document.body,it.anchorNode)&&ln(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 ir(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&&mh(it)==0)return!1;rr(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)),ni&&(Dt=Rr(it.doc,Dt),qt=jr(it.doc,qt));var le=Dt!=ct.viewFrom||qt!=ct.viewTo||ct.lastWrapHeight!=ot.wrapperHeight||ct.lastWrapWidth!=ot.wrapperWidth;Ua(it,Dt,qt),ct.viewOffset=cs(qe(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var ae=mh(it);if(!le&&ae==0&&!ot.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var Ne=ki(it);return ae>4&&(ct.lineDiv.style.display="none"),no(it,ct.updateLineNumbers,ot.dims),ae>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,Ki(Ne),se(ct.cursorDiv),se(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,le&&(ct.lastWrapHeight=ot.wrapperHeight,ct.lastWrapWidth=ot.wrapperWidth,tn(it,400)),ct.updateLineNumbers=null,!0}function ji(it,ot){for(var ct=ot.viewport,At=!0;;At=!1){if(!At||!it.options.lineWrapping||ot.oldDisplayWidth==Nl(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+Iu(it.display)-fo(it),ct.top)}),ot.visible=Ut(it.display,it.doc,ct),ot.visible.from>=it.display.viewFrom&&ot.visible.to<=it.display.viewTo)break}else At&&(ot.visible=Ut(it.display,it.doc,ct));if(!ir(it,ot))break;yt(it);var mt=On(it);Vl(it),qi(it,mt),Lo(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 Kr(it,ot){var ct=new $n(it,ot);if(ir(it,ct)){yt(it),ji(it,ct);var At=On(it);Vl(it),qi(it,At),Lo(it,At),ct.finish()}}function no(it,ot,ct){var At=it.display,mt=it.options.lineNumbers,Dt=At.lineDiv,qt=Dt.firstChild;function le(Yi){var or=Yi.nextSibling;return je&&ht&&it.display.currentWheelTarget==Yi?Yi.style.display="none":Yi.parentNode.removeChild(Yi),or}for(var ae=At.view,Ne=At.viewFrom,bn=0;bn<ae.length;bn++){var ze=ae[bn];if(!ze.hidden)if(!ze.node||ze.node.parentNode!=Dt){var oi=$u(it,ze,Ne,ct);Dt.insertBefore(oi,qt)}else{for(;qt!=ze.node;)qt=le(qt);var Zn=mt&&ot!=null&&ot<=Ne&&ze.lineNumber;ze.changes&&(Ye(ze.changes,"gutter")>-1&&(Zn=!1),dl(it,ze,Ne,ct)),Zn&&(se(ze.lineNumber),ze.lineNumber.appendChild(document.createTextNode(lr(it.options,Ne)))),qt=ze.node.nextSibling}Ne+=ze.size}for(;qt;)qt=le(qt)}function Io(it){var ot=it.gutters.offsetWidth;it.sizer.style.marginLeft=ot+"px"}function Lo(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+Wl(it)+"px"}function Fs(it){var ot=it.display,ct=ot.view;if(!(!ot.alignWidgets&&(!ot.gutters.firstChild||!it.options.fixedGutter))){for(var At=Oc(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 le=ct[qt].alignable;if(le)for(var ae=0;ae<le.length;ae++)le[ae].style.left=Dt}it.options.fixedGutter&&(ot.gutters.style.left=At+mt+"px")}}function rr(it){if(!it.options.lineNumbers)return!1;var ot=it.doc,ct=lr(it.options,ot.first+ot.size-1),At=it.display;if(ct.length!=At.lineNumChars){var mt=At.measure.appendChild(ce("div",[ce("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",Io(it.display),!0}return!1}function _n(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 Is(it){var ot=it.gutters,ct=it.gutterSpecs;se(ot),it.lineGutter=null;for(var At=0;At<ct.length;++At){var mt=ct[At],Dt=mt.className,qt=mt.style,le=ot.appendChild(ce("div",null,"CodeMirror-gutter "+Dt));qt&&(le.style.cssText=qt),Dt=="CodeMirror-linenumbers"&&(it.lineGutter=le,le.style.width=(it.lineNumWidth||1)+"px")}ot.style.display=ct.length?"":"none",Io(it)}function Wo(it){Is(it.display),sl(it),Fs(it)}function zr(it,ot,ct,At){var mt=this;this.input=ct,mt.scrollbarFiller=ce("div",null,"CodeMirror-scrollbar-filler"),mt.scrollbarFiller.setAttribute("cm-not-content","true"),mt.gutterFiller=ce("div",null,"CodeMirror-gutter-filler"),mt.gutterFiller.setAttribute("cm-not-content","true"),mt.lineDiv=Xe("div",null,"CodeMirror-code"),mt.selectionDiv=ce("div",null,null,"position: relative; z-index: 1"),mt.cursorDiv=ce("div",null,"CodeMirror-cursors"),mt.measure=ce("div",null,"CodeMirror-measure"),mt.lineMeasure=ce("div",null,"CodeMirror-measure"),mt.lineSpace=Xe("div",[mt.measure,mt.lineMeasure,mt.selectionDiv,mt.cursorDiv,mt.lineDiv],null,"position: relative; outline: none");var Dt=Xe("div",[mt.lineSpace],"CodeMirror-lines");mt.mover=ce("div",[Dt],null,"position: relative"),mt.sizer=ce("div",[mt.mover],"CodeMirror-sizer"),mt.sizerWidth=null,mt.heightForcer=ce("div",null,null,"position: absolute; height: "+Gn+"px; width: 1px;"),mt.gutters=ce("div",null,"CodeMirror-gutters"),mt.lineGutter=null,mt.scroller=ce("div",[mt.sizer,mt.heightForcer,mt.gutters],"CodeMirror-scroll"),mt.scroller.setAttribute("tabIndex","-1"),mt.wrapper=ce("div",[mt.scrollbarFiller,mt.gutterFiller,mt.scroller],"CodeMirror"),Se&&We<8&&(mt.gutters.style.zIndex=-1,mt.scroller.style.paddingRight=0),!je&&!(Kt&&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=_n(At.gutters,At.lineNumbers),Is(mt),ct.init(mt)}var ro=0,qr=null;Se?qr=-.53:Kt?qr=15:ve?qr=-.7:xe&&(qr=-1/3);function xo(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 $o(it){var ot=xo(it);return ot.x*=qr,ot.y*=qr,ot}function ls(it,ot){var ct=xo(ot),At=ct.x,mt=ct.y,Dt=it.display,qt=Dt.scroller,le=qt.scrollWidth>qt.clientWidth,ae=qt.scrollHeight>qt.clientHeight;if(At&&le||mt&&ae){if(mt&&ht&&je){t:for(var Ne=ot.target,bn=Dt.view;Ne!=qt;Ne=Ne.parentNode)for(var ze=0;ze<bn.length;ze++)if(bn[ze].node==Ne){it.display.currentWheelTarget=Ne;break t}}if(At&&!Kt&&!It&&qr!=null){mt&&ae&&Sn(it,Math.max(0,qt.scrollTop+mt*qr)),on(it,Math.max(0,qt.scrollLeft+At*qr)),(!mt||mt&&ae)&&Zr(ot),Dt.wheelStartX=null;return}if(mt&&qr!=null){var oi=mt*qr,Zn=it.doc.scrollTop,Yi=Zn+Dt.wrapper.clientHeight;oi<0?Zn=Math.max(0,Zn+oi-50):Yi=Math.min(it.doc.height,Yi+oi+50),Kr(it,{top:Zn,bottom:Yi})}ro<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 or=qt.scrollLeft-Dt.wheelStartX,Lr=qt.scrollTop-Dt.wheelStartY,Ur=Lr&&Dt.wheelDY&&Lr/Dt.wheelDY||or&&Dt.wheelDX&&or/Dt.wheelDX;Dt.wheelStartX=Dt.wheelStartY=null,Ur&&(qr=(qr*ro+Ur)/(ro+1),++ro)}},200)):(Dt.wheelDX+=At,Dt.wheelDY+=mt))}}var bs=function(it,ot){this.ranges=it,this.primIndex=ot};bs.prototype.primary=function(){return this.ranges[this.primIndex]},bs.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(!Br(ct.anchor,At.anchor)||!Br(ct.head,At.head))return!1}return!0},bs.prototype.deepCopy=function(){for(var it=[],ot=0;ot<this.ranges.length;ot++)it[ot]=new Zo(vr(this.ranges[ot].anchor),vr(this.ranges[ot].head));return new bs(it,this.primIndex)},bs.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},bs.prototype.contains=function(it,ot){ot||(ot=it);for(var ct=0;ct<this.ranges.length;ct++){var At=this.ranges[ct];if(Jn(ot,At.from())>=0&&Jn(it,At.to())<=0)return ct}return-1};var Zo=function(it,ot){this.anchor=it,this.head=ot};Zo.prototype.from=function(){return nr(this.anchor,this.head)},Zo.prototype.to=function(){return Tr(this.anchor,this.head)},Zo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function js(it,ot,ct){var At=it&&it.options.selectionsMayTouch,mt=ot[ct];ot.sort(function(oi,Zn){return Jn(oi.from(),Zn.from())}),ct=Ye(ot,mt);for(var Dt=1;Dt<ot.length;Dt++){var qt=ot[Dt],le=ot[Dt-1],ae=Jn(le.to(),qt.from());if(At&&!qt.empty()?ae>0:ae>=0){var Ne=nr(le.from(),qt.from()),bn=Tr(le.to(),qt.to()),ze=le.empty()?qt.from()==qt.head:le.from()==le.head;Dt<=ct&&--ct,ot.splice(--Dt,2,new Zo(ze?bn:Ne,ze?Ne:bn))}}return new bs(ot,ct)}function Fa(it,ot){return new bs([new Zo(it,ot||it)],0)}function xs(it){return it.text?wn(it.from.line+it.text.length-1,Ie(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function qs(it,ot){if(Jn(it,ot.from)<0)return it;if(Jn(it,ot.to)<=0)return xs(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+=xs(ot).ch-ot.to.ch),wn(ct,At)}function Ro(it,ot){for(var ct=[],At=0;At<it.sel.ranges.length;At++){var mt=it.sel.ranges[At];ct.push(new Zo(qs(mt.anchor,ot),qs(mt.head,ot)))}return js(it.cm,ct,it.sel.primIndex)}function Au(it,ot,ct){return it.line==ot.line?wn(ct.line,it.ch-ot.ch+ct.ch):wn(ct.line+(it.line-ot.line),it.ch)}function Ea(it,ot,ct){for(var At=[],mt=wn(it.first,0),Dt=mt,qt=0;qt<ot.length;qt++){var le=ot[qt],ae=Au(le.from,mt,Dt),Ne=Au(xs(le),mt,Dt);if(mt=le.to,Dt=Ne,ct=="around"){var bn=it.sel.ranges[qt],ze=Jn(bn.head,bn.anchor)<0;At[qt]=new Zo(ze?Ne:ae,ze?ae:Ne)}else At[qt]=new Zo(ae,ae)}return new bs(At,it.sel.primIndex)}function ds(it){it.doc.mode=dn(it.options,it.doc.modeOption),$a(it)}function $a(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,tn(it,100),it.state.modeGen++,it.curOp&&sl(it)}function Il(it,ot){return ot.from.ch==0&&ot.to.ch==0&&Ie(ot.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Gh(it,ot,ct,At){function mt(yo){return ct?ct[yo]:null}function Dt(yo,Wr,Mo){Cs(yo,Wr,Mo,At),Sr(yo,"change",yo,ot)}function qt(yo,Wr){for(var Mo=[],is=yo;is<Wr;++is)Mo.push(new ho(Ne[is],mt(is),At));return Mo}var le=ot.from,ae=ot.to,Ne=ot.text,bn=qe(it,le.line),ze=qe(it,ae.line),oi=Ie(Ne),Zn=mt(Ne.length-1),Yi=ae.line-le.line;if(ot.full)it.insert(0,qt(0,Ne.length)),it.remove(Ne.length,it.size-Ne.length);else if(Il(it,ot)){var or=qt(0,Ne.length-1);Dt(ze,ze.text,Zn),Yi&&it.remove(le.line,Yi),or.length&&it.insert(le.line,or)}else if(bn==ze)if(Ne.length==1)Dt(bn,bn.text.slice(0,le.ch)+oi+bn.text.slice(ae.ch),Zn);else{var Lr=qt(1,Ne.length-1);Lr.push(new ho(oi+bn.text.slice(ae.ch),Zn,At)),Dt(bn,bn.text.slice(0,le.ch)+Ne[0],mt(0)),it.insert(le.line+1,Lr)}else if(Ne.length==1)Dt(bn,bn.text.slice(0,le.ch)+Ne[0]+ze.text.slice(ae.ch),mt(0)),it.remove(le.line+1,Yi);else{Dt(bn,bn.text.slice(0,le.ch)+Ne[0],mt(0)),Dt(ze,oi+ze.text.slice(ae.ch),Zn);var Ur=qt(1,Ne.length-1);Yi>1&&it.remove(le.line+1,Yi-1),it.insert(le.line+1,Ur)}Sr(it,"change",it,ot)}function ha(it,ot,ct){function At(mt,Dt,qt){if(mt.linked)for(var le=0;le<mt.linked.length;++le){var ae=mt.linked[le];if(ae.doc!=Dt){var Ne=qt&&ae.sharedHist;ct&&!Ne||(ot(ae.doc,Ne),At(ae.doc,mt,Ne))}}}At(it,null,!0)}function yl(it,ot){if(ot.cm)throw new Error("This document is already in use.");it.doc=ot,ot.cm=it,Xo(it),ds(it),Tl(it),it.options.lineWrapping||Rs(it),it.options.mode=ot.modeOption,sl(it)}function Tl(it){(it.doc.direction=="rtl"?mn:$t)(it.display.lineDiv,"CodeMirror-rtl")}function PA(it){Mi(it,function(){Tl(it),sl(it)})}function Ih(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 Ol(it,ot){var ct={from:vr(ot.from),to:xs(ot),text:Mn(it,ot.from,ot.to)};return gs(it,ct,ot.from.line,ot.to.line+1),ha(it,function(At){return gs(At,ct,ot.from.line,ot.to.line+1)},!0),ct}function Ts(it){for(;it.length;){var ot=Ie(it);if(ot.ranges)it.pop();else break}}function Da(it,ot){if(ot)return Ts(it.done),Ie(it.done);if(it.done.length&&!Ie(it.done).ranges)return Ie(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Ie(it.done)}function bA(it,ot,ct,At){var mt=it.history;mt.undone.length=0;var Dt=+new Date,qt,le;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=Da(mt,mt.lastOp==At)))le=Ie(qt.changes),Jn(ot.from,ot.to)==0&&Jn(ot.from,le.to)==0?le.to=xs(ot):qt.changes.push(Ol(it,ot));else{var ae=Ie(mt.done);for((!ae||!ae.ranges)&&vh(it.sel,mt.done),qt={changes:[Ol(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,le||Pi(it,"historyAdded")}function bu(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 Th(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||bu(it,Dt,Ie(mt.done),ot))?mt.done[mt.done.length-1]=ot:vh(ot,mt.done),mt.lastSelTime=+new Date,mt.lastSelOrigin=Dt,mt.lastSelOp=ct,At&&At.clearRedo!==!1&&Ts(mt.undone)}function vh(it,ot){var ct=Ie(ot);ct&&ct.ranges&&ct.equals(it)||ot.push(it)}function gs(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 xl(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 Su(it,ot){var ct=ot["spans_"+it.id];if(!ct)return null;for(var At=[],mt=0;mt<ot.text.length;++mt)At.push(xl(ct[mt]));return At}function Bo(it,ot){var ct=Su(it,ot),At=uo(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 le=0;le<qt.length;++le){for(var ae=qt[le],Ne=0;Ne<Dt.length;++Ne)if(Dt[Ne].marker==ae.marker)continue t;Dt.push(ae)}else qt&&(ct[mt]=qt)}return ct}function Bl(it,ot,ct){for(var At=[],mt=0;mt<it.length;++mt){var Dt=it[mt];if(Dt.ranges){At.push(ct?bs.prototype.deepCopy.call(Dt):Dt);continue}var qt=Dt.changes,le=[];At.push({changes:le});for(var ae=0;ae<qt.length;++ae){var Ne=qt[ae],bn=void 0;if(le.push({from:Ne.from,to:Ne.to,text:Ne.text}),ot)for(var ze in Ne)(bn=ze.match(/^spans_(\d+)$/))&&Ye(ot,Number(bn[1]))>-1&&(Ie(le)[ze]=Ne[ze],delete Ne[ze])}}return At}function eu(it,ot,ct,At){if(At){var mt=it.anchor;if(ct){var Dt=Jn(ot,mt)<0;Dt!=Jn(ct,mt)<0?(mt=ot,ot=ct):Dt!=Jn(ot,ct)<0&&(ot=ct)}return new Zo(mt,ot)}else return new Zo(ct||ot,ot)}function ku(it,ot,ct,At,mt){mt==null&&(mt=it.cm&&(it.cm.display.shift||it.extend)),Cl(it,new bs([eu(it.sel.primary(),ot,ct,mt)],0),At)}function eh(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]=eu(it.sel.ranges[Dt],ot[Dt],null,mt);var qt=js(it.cm,At,it.sel.primIndex);Cl(it,qt,ct)}function nh(it,ot,ct,At){var mt=it.sel.ranges.slice(0);mt[ot]=ct,Cl(it,js(it.cm,mt,it.sel.primIndex),At)}function Ou(it,ot,ct,At){Cl(it,Fa(ot,ct),At)}function ih(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 Zo(ar(it,mt[Dt].anchor),ar(it,mt[Dt].head))},origin:ct&&ct.origin};return Pi(it,"beforeSelectionChange",it,At),it.cm&&Pi(it.cm,"beforeSelectionChange",it.cm,At),At.ranges!=ot.ranges?js(it.cm,At.ranges,At.ranges.length-1):ot}function _u(it,ot,ct){var At=it.history.done,mt=Ie(At);mt&&mt.ranges?(At[At.length-1]=ot,Du(it,ot,ct)):Cl(it,ot,ct)}function Cl(it,ot,ct){Du(it,ot,ct),Th(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function Du(it,ot,ct){(Ao(it,"beforeSelectionChange")||it.cm&&Ao(it.cm,"beforeSelectionChange"))&&(ot=ih(it,ot,ct));var At=ct&&ct.bias||(Jn(ot.primary().head,it.sel.primary().head)<0?-1:1);sA(it,aA(it,ot,At,!0)),!(ct&&ct.scroll===!1)&&it.cm&&Re(it.cm)}function sA(it,ot){ot.equals(it.sel)||(it.sel=ot,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,Or(it.cm)),Sr(it,"cursorActivity",it))}function Gu(it){sA(it,aA(it,it.sel,null,!1))}function aA(it,ot,ct,At){for(var mt,Dt=0;Dt<ot.ranges.length;Dt++){var qt=ot.ranges[Dt],le=ot.ranges.length==it.sel.ranges.length&&it.sel.ranges[Dt],ae=_A(it,qt.anchor,le&&le.anchor,ct,At),Ne=_A(it,qt.head,le&&le.head,ct,At);(mt||ae!=qt.anchor||Ne!=qt.head)&&(mt||(mt=ot.ranges.slice(0,Dt)),mt[Dt]=new Zo(ae,Ne))}return mt?js(it.cm,mt,ot.primIndex):ot}function rh(it,ot,ct,At,mt){var Dt=qe(it,ot.line);if(Dt.markedSpans)for(var qt=0;qt<Dt.markedSpans.length;++qt){var le=Dt.markedSpans[qt],ae=le.marker,Ne="selectLeft"in ae?!ae.selectLeft:ae.inclusiveLeft,bn="selectRight"in ae?!ae.selectRight:ae.inclusiveRight;if((le.from==null||(Ne?le.from<=ot.ch:le.from<ot.ch))&&(le.to==null||(bn?le.to>=ot.ch:le.to>ot.ch))){if(mt&&(Pi(ae,"beforeCursorEnter"),ae.explicitlyCleared))if(Dt.markedSpans){--qt;continue}else break;if(!ae.atomic)continue;if(ct){var ze=ae.find(At<0?1:-1),oi=void 0;if((At<0?bn:Ne)&&(ze=pc(it,ze,-At,ze&&ze.line==ot.line?Dt:null)),ze&&ze.line==ot.line&&(oi=Jn(ze,ct))&&(At<0?oi<0:oi>0))return rh(it,ze,ot,At,mt)}var Zn=ae.find(At<0?-1:1);return(At<0?Ne:bn)&&(Zn=pc(it,Zn,At,Zn.line==ot.line?Dt:null)),Zn?rh(it,Zn,ot,At,mt):null}}return ot}function _A(it,ot,ct,At,mt){var Dt=At||1,qt=rh(it,ot,ct,Dt,mt)||!mt&&rh(it,ot,ct,Dt,!0)||rh(it,ot,ct,-Dt,mt)||!mt&&rh(it,ot,ct,-Dt,!0);return qt||(it.cantEdit=!0,wn(it.first,0))}function pc(it,ot,ct,At){return ct<0&&ot.ch==0?ot.line>it.first?ar(it,wn(ot.line-1)):null:ct>0&&ot.ch==(At||qe(it,ot.line)).text.length?ot.line<it.first+it.size-1?wn(ot.line+1,0):null:new wn(ot.line,ot.ch+ct)}function Pl(it){it.setSelection(wn(it.firstLine(),0),wn(it.lastLine()),cn)}function mc(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,le){mt&&(At.from=ar(it,mt)),Dt&&(At.to=ar(it,Dt)),qt&&(At.text=qt),le!==void 0&&(At.origin=le)}),Pi(it,"beforeChange",it,At),it.cm&&Pi(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 GA(it,ot,ct){if(it.cm){if(!it.cm.curOp)return tr(it.cm,GA)(it,ot,ct);if(it.cm.state.suppressEdits)return}if(!((Ao(it,"beforeChange")||it.cm&&Ao(it.cm,"beforeChange"))&&(ot=mc(it,ot,!0),!ot))){var At=br&&!ct&&Qo(it,ot.from,ot.to);if(At)for(var mt=At.length-1;mt>=0;--mt)lA(it,{from:At[mt].from,to:At[mt].to,text:mt?[""]:ot.text,origin:ot.origin});else lA(it,ot)}}function lA(it,ot){if(!(ot.text.length==1&&ot.text[0]==""&&Jn(ot.from,ot.to)==0)){var ct=Ro(it,ot);bA(it,ot,ct,it.cm?it.cm.curOp.id:NaN),KA(it,ot,ct,uo(it,ot));var At=[];ha(it,function(mt,Dt){!Dt&&Ye(At,mt.history)==-1&&(Jd(mt.history,ot),At.push(mt.history)),KA(mt,ot,null,uo(mt,ot))})}}function Dc(it,ot,ct){var At=it.cm&&it.cm.state.suppressEdits;if(!(At&&!ct)){for(var mt=it.history,Dt,qt=it.sel,le=ot=="undo"?mt.done:mt.undone,ae=ot=="undo"?mt.undone:mt.done,Ne=0;Ne<le.length&&(Dt=le[Ne],!(ct?Dt.ranges&&!Dt.equals(it.sel):!Dt.ranges));Ne++);if(Ne!=le.length){for(mt.lastOrigin=mt.lastSelOrigin=null;;)if(Dt=le.pop(),Dt.ranges){if(vh(Dt,ae),ct&&!Dt.equals(it.sel)){Cl(it,Dt,{clearRedo:!1});return}qt=Dt}else if(At){le.push(Dt);return}else break;var bn=[];vh(qt,ae),ae.push({changes:bn,generation:mt.generation}),mt.generation=Dt.generation||++mt.maxGeneration;for(var ze=Ao(it,"beforeChange")||it.cm&&Ao(it.cm,"beforeChange"),oi=function(or){var Lr=Dt.changes[or];if(Lr.origin=ot,ze&&!mc(it,Lr,!1))return le.length=0,{};bn.push(Ol(it,Lr));var Ur=or?Ro(it,Lr):Ie(le);KA(it,Lr,Ur,Bo(it,Lr)),!or&&it.cm&&it.cm.scrollIntoView({from:Lr.from,to:xs(Lr)});var yo=[];ha(it,function(Wr,Mo){!Mo&&Ye(yo,Wr.history)==-1&&(Jd(Wr.history,Lr),yo.push(Wr.history)),KA(Wr,Lr,null,Bo(Wr,Lr))})},Zn=Dt.changes.length-1;Zn>=0;--Zn){var Yi=oi(Zn);if(Yi)return Yi.v}}}}function Zd(it,ot){if(ot!=0&&(it.first+=ot,it.sel=new bs(Ai(it.sel.ranges,function(mt){return new Zo(wn(mt.anchor.line+ot,mt.anchor.ch),wn(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++)Ms(it.cm,At,"gutter")}}function KA(it,ot,ct,At){if(it.cm&&!it.cm.curOp)return tr(it.cm,KA)(it,ot,ct,At);if(ot.to.line<it.first){Zd(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);Zd(it,mt),ot={from:wn(it.first,0),to:wn(ot.to.line+mt,ot.to.ch),text:[Ie(ot.text)],origin:ot.origin}}var Dt=it.lastLine();ot.to.line>Dt&&(ot={from:ot.from,to:wn(Dt,qe(it,Dt).text.length),text:[ot.text[0]],origin:ot.origin}),ot.removed=Mn(it,ot.from,ot.to),ct||(ct=Ro(it,ot)),it.cm?pf(it.cm,ot,At):Gh(it,ot,At),Du(it,ct,cn),it.cantEdit&&_A(it,wn(it.firstLine(),0))&&(it.cantEdit=!1)}}function pf(it,ot,ct){var At=it.doc,mt=it.display,Dt=ot.from,qt=ot.to,le=!1,ae=Dt.line;it.options.lineWrapping||(ae=Fe(_r(qe(At,Dt.line))),At.iter(ae,qt.line+1,function(Zn){if(Zn==mt.maxLine)return le=!0,!0})),At.sel.contains(ot.from,ot.to)>-1&&Or(it),Gh(At,ot,ct,ma(it)),it.options.lineWrapping||(At.iter(ae,Dt.line+ot.text.length,function(Zn){var Yi=Es(Zn);Yi>mt.maxLineLength&&(mt.maxLine=Zn,mt.maxLineLength=Yi,mt.maxLineChanged=!0,le=!1)}),le&&(it.curOp.updateMaxLine=!0)),$r(At,Dt.line),tn(it,400);var Ne=ot.text.length-(qt.line-Dt.line)-1;ot.full?sl(it):Dt.line==qt.line&&ot.text.length==1&&!Il(it.doc,ot)?Ms(it,Dt.line,"text"):sl(it,Dt.line,qt.line+1,Ne);var bn=Ao(it,"changes"),ze=Ao(it,"change");if(ze||bn){var oi={from:Dt,to:qt,text:ot.text,removed:ot.removed,origin:ot.origin};ze&&Sr(it,"change",it,oi),bn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(oi)}it.display.selForContextMenu=null}function WA(it,ot,ct,At,mt){var Dt;At||(At=ct),Jn(At,ct)<0&&(Dt=[At,ct],ct=Dt[0],At=Dt[1]),typeof ot=="string"&&(ot=it.splitLines(ot)),GA(it,{from:ct,to:At,text:ot,origin:mt})}function yh(it,ot,ct,At){ct<it.line?it.line+=At:ot<it.line&&(it.line=ot,it.ch=0)}function jc(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 le=0;le<Dt.ranges.length;le++)yh(Dt.ranges[le].anchor,ot,ct,At),yh(Dt.ranges[le].head,ot,ct,At);continue}for(var ae=0;ae<Dt.changes.length;++ae){var Ne=Dt.changes[ae];if(ct<Ne.from.line)Ne.from=wn(Ne.from.line+At,Ne.from.ch),Ne.to=wn(Ne.to.line+At,Ne.to.ch);else if(ot<=Ne.to.line){qt=!1;break}}qt||(it.splice(0,mt+1),mt=0)}}function Jd(it,ot){var ct=ot.from.line,At=ot.to.line,mt=ot.text.length-(At-ct)-1;jc(it.done,ct,At,mt),jc(it.undone,ct,At,mt)}function bl(it,ot,ct,At){var mt=ot,Dt=ot;return typeof ot=="number"?Dt=qe(it,yr(it,ot)):mt=Fe(ot),mt==null?null:(At(Dt,mt)&&it.cm&&Ms(it.cm,mt,ct),Dt)}function vc(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}vc.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,Wa(mt),Sr(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 qa(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}qa.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 vc))){var le=[];this.collapse(le),this.children=[new vc(le)],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,le=qt;le<mt.lines.length;){var ae=new vc(mt.lines.slice(le,le+=25));mt.height-=ae.height,this.children.splice(++At,0,ae),ae.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 qa(ot);if(it.parent){it.size-=ct.size,it.height-=ct.height;var mt=Ye(it.parent.children,it);it.parent.children.splice(mt+1,0,ct)}else{var At=new qa(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 uA=function(it,ot,ct){if(ct)for(var At in ct)ct.hasOwnProperty(At)&&(this[At]=ct[At]);this.doc=it,this.node=ot};uA.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=Ta(this);Si(ct,Math.max(0,ct.height-Dt)),it&&(Mi(it,function(){yc(it,ct,-Dt),Ms(it,At,"widget")}),Sr(it,"lineWidgetCleared",it,this,At))}},uA.prototype.changed=function(){var it=this,ot=this.height,ct=this.doc.cm,At=this.line;this.height=null;var mt=Ta(this)-ot;mt&&(Li(this.doc,At)||Si(At,At.height+mt),ct&&Mi(ct,function(){ct.curOp.forceUpdate=!0,yc(ct,At,mt),Sr(ct,"lineWidgetChanged",ct,it,Fe(At))}))},po(uA);function yc(it,ot,ct){cs(ot)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Be(it,ct)}function Cd(it,ot,ct,At){var mt=new uA(it,ct,At),Dt=it.cm;return Dt&&mt.noHScroll&&(Dt.display.alignWidgets=!0),bl(it,ot,"widget",function(qt){var le=qt.widgets||(qt.widgets=[]);if(mt.insertAt==null?le.push(mt):le.splice(Math.min(le.length-1,Math.max(0,mt.insertAt)),0,mt),mt.line=qt,Dt&&!Li(it,qt)){var ae=cs(qt)<it.scrollTop;Si(qt,qt.height+Ta(mt)),ae&&Be(Dt,mt.height),Dt.curOp.forceUpdate=!0}return!0}),Dt&&Sr(Dt,"lineWidgetAdded",Dt,mt,typeof ot=="number"?ot:Fe(ot)),mt}var kh=0,un=function(it,ot){this.lines=[],this.type=ot,this.doc=it,this.id=++kh};un.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,ot=it&&!it.curOp;if(ot&&gr(it),Ao(this,"clear")){var ct=this.find();ct&&Sr(this,"clear",ct.from,ct.to)}for(var At=null,mt=null,Dt=0;Dt<this.lines.length;++Dt){var qt=this.lines[Dt],le=Ds(qt.markedSpans,this);it&&!this.collapsed?Ms(it,Fe(qt),"text"):it&&(le.to!=null&&(mt=Fe(qt)),le.from!=null&&(At=Fe(qt))),qt.markedSpans=qo(qt.markedSpans,le),le.from==null&&this.collapsed&&!Li(this.doc,qt)&&it&&Si(qt,wu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var ae=0;ae<this.lines.length;++ae){var Ne=_r(this.lines[ae]),bn=Es(Ne);bn>it.display.maxLineLength&&(it.display.maxLine=Ne,it.display.maxLineLength=bn,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&&Gu(it.doc)),it&&Sr(it,"markerCleared",it,this,At,mt),ot&&yn(it),this.parent&&this.parent.clear()}},un.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=Ds(Dt.markedSpans,this);if(qt.from!=null&&(ct=wn(ot?Dt:Fe(Dt),qt.from),it==-1))return ct;if(qt.to!=null&&(At=wn(ot?Dt:Fe(Dt),qt.to),it==1))return At}return ct&&{from:ct,to:At}},un.prototype.changed=function(){var it=this,ot=this.find(-1,!0),ct=this,At=this.doc.cm;!ot||!At||Mi(At,function(){var mt=ot.line,Dt=Fe(ot.line),qt=rA(At,Dt);if(qt&&(ru(qt),At.curOp.selectionChanged=At.curOp.forceUpdate=!0),At.curOp.updateMaxLine=!0,!Li(ct.doc,mt)&&ct.height!=null){var le=ct.height;ct.height=null;var ae=Ta(ct)-le;ae&&Si(mt,mt.height+ae)}Sr(At,"markerChanged",At,it)})},un.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var ot=this.doc.cm.curOp;(!ot.maybeHiddenMarkers||Ye(ot.maybeHiddenMarkers,this)==-1)&&(ot.maybeUnhiddenMarkers||(ot.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},un.prototype.detachLine=function(it){if(this.lines.splice(Ye(this.lines,it),1),!this.lines.length&&this.doc.cm){var ot=this.doc.cm.curOp;(ot.maybeHiddenMarkers||(ot.maybeHiddenMarkers=[])).push(this)}},po(un);function cu(it,ot,ct,At,mt){if(At&&At.shared)return $d(it,ot,ct,At,mt);if(it.cm&&!it.cm.curOp)return tr(it.cm,cu)(it,ot,ct,At,mt);var Dt=new un(it,mt),qt=Jn(ot,ct);if(At&&pn(At,Dt,!1),qt>0||qt==0&&Dt.clearWhenEmpty!==!1)return Dt;if(Dt.replacedWith&&(Dt.collapsed=!0,Dt.widgetNode=Xe("span",[Dt.replacedWith],"CodeMirror-widget"),At.handleMouseEvents||Dt.widgetNode.setAttribute("cm-ignore-events","true"),At.insertLeft&&(Dt.widgetNode.insertLeft=!0)),Dt.collapsed){if(Po(it,ot.line,ot,ct,Dt)||ot.line!=ct.line&&Po(it,ct.line,ot,ct,Dt))throw new Error("Inserting collapsed marker partially overlapping an existing one");qn()}Dt.addToHistory&&bA(it,{from:ot,to:ct,origin:"markText"},it.sel,NaN);var le=ot.line,ae=it.cm,Ne;if(it.iter(le,ct.line+1,function(ze){ae&&Dt.collapsed&&!ae.options.lineWrapping&&_r(ze)==ae.display.maxLine&&(Ne=!0),Dt.collapsed&&le!=ot.line&&Si(ze,0),ea(ze,new Go(Dt,le==ot.line?ot.ch:null,le==ct.line?ct.ch:null)),++le}),Dt.collapsed&&it.iter(ot.line,ct.line+1,function(ze){Li(it,ze)&&Si(ze,0)}),Dt.clearOnEnter&&an(Dt,"beforeCursorEnter",function(){return Dt.clear()}),Dt.readOnly&&(So(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Dt.collapsed&&(Dt.id=++kh,Dt.atomic=!0),ae){if(Ne&&(ae.curOp.updateMaxLine=!0),Dt.collapsed)sl(ae,ot.line,ct.line+1);else if(Dt.className||Dt.startStyle||Dt.endStyle||Dt.css||Dt.attributes||Dt.title)for(var bn=ot.line;bn<=ct.line;bn++)Ms(ae,bn,"text");Dt.atomic&&Gu(ae.doc),Sr(ae,"markerAdded",ae,Dt)}return Dt}var wh=function(it,ot){this.markers=it,this.primary=ot;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};wh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Sr(this,"clear")}},wh.prototype.find=function(it,ot){return this.primary.find(it,ot)},po(wh);function $d(it,ot,ct,At,mt){At=pn(At),At.shared=!1;var Dt=[cu(it,ot,ct,At,mt)],qt=Dt[0],le=At.widgetNode;return ha(it,function(ae){le&&(At.widgetNode=le.cloneNode(!0)),Dt.push(cu(ae,ar(ae,ot),ar(ae,ct),At,mt));for(var Ne=0;Ne<ae.linked.length;++Ne)if(ae.linked[Ne].isParent)return;qt=Ie(Dt)}),new wh(Dt,qt)}function Pd(it){return it.findMarks(wn(it.first,0),it.clipPos(wn(it.lastLine())),function(ot){return ot.parent})}function ed(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(Jn(Dt,qt)){var le=cu(it,Dt,qt,At.primary,At.primary.type);At.markers.push(le),le.parent=At}}}function nd(it){for(var ot=function(At){var mt=it[At],Dt=[mt.primary.doc];ha(mt.primary.doc,function(ae){return Dt.push(ae)});for(var qt=0;qt<mt.markers.length;qt++){var le=mt.markers[qt];Ye(Dt,le.doc)==-1&&(le.parent=null,mt.markers.splice(qt--,1))}},ct=0;ct<it.length;ct++)ot(ct)}var qd=0,ou=function(it,ot,ct,At,mt){if(!(this instanceof ou))return new ou(it,ot,ct,At,mt);ct==null&&(ct=0),qa.call(this,[new vc([new ho("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var Dt=wn(ct,0);this.sel=Fa(Dt),this.history=new Ih(null),this.id=++qd,this.modeOption=ot,this.lineSep=At,this.direction=mt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Gh(this,{from:Dt,to:Dt,text:it}),Cl(this,Fa(Dt),cn)};ou.prototype=Tt(qa.prototype,{constructor:ou,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=li(this,this.first,this.first+this.size);return it===!1?ot:ot.join(it||this.lineSeparator())},setValue:so(function(it){var ot=wn(this.first,0),ct=this.first+this.size-1;GA(this,{from:ot,to:wn(ct,qe(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&He(this.cm,0,0),Cl(this,Fa(ot),cn)}),replaceRange:function(it,ot,ct,At){ot=ar(this,ot),ct=ct?ar(this,ct):ot,WA(this,it,ot,ct,At)},getRange:function(it,ot,ct){var At=Mn(this,ar(this,it),ar(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(Ni(this,it))return qe(this,it)},getLineNumber:function(it){return Fe(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=qe(this,it)),_r(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return ar(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:so(function(it,ot,ct){Ou(this,ar(this,typeof it=="number"?wn(it,ot||0):it),null,ct)}),setSelection:so(function(it,ot,ct){Ou(this,ar(this,it),ar(this,ot||it),ct)}),extendSelection:so(function(it,ot,ct){ku(this,ar(this,it),ot&&ar(this,ot),ct)}),extendSelections:so(function(it,ot){eh(this,co(this,it),ot)}),extendSelectionsBy:so(function(it,ot){var ct=Ai(this.sel.ranges,it);eh(this,co(this,ct),ot)}),setSelections:so(function(it,ot,ct){if(it.length){for(var At=[],mt=0;mt<it.length;mt++)At[mt]=new Zo(ar(this,it[mt].anchor),ar(this,it[mt].head));ot==null&&(ot=Math.min(it.length-1,this.sel.primIndex)),Cl(this,js(this.cm,At,ot),ct)}}),addSelection:so(function(it,ot,ct){var At=this.sel.ranges.slice(0);At.push(new Zo(ar(this,it),ar(this,ot||it))),Cl(this,js(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=Mn(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=Mn(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:so(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 le=ot&&ot!="end"&&Ea(this,At,ot),ae=At.length-1;ae>=0;ae--)GA(this,At[ae]);le?_u(this,le):this.cm&&Re(this.cm)}),undo:so(function(){Dc(this,"undo")}),redo:so(function(){Dc(this,"redo")}),undoSelection:so(function(){Dc(this,"undo",!0)}),redoSelection:so(function(){Dc(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 Ih(this.history.maxGeneration),ha(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:Bl(this.history.done),undone:Bl(this.history.undone)}},setHistory:function(it){var ot=this.history=new Ih(this.history.maxGeneration);ot.done=Bl(it.done.slice(0),null,!0),ot.undone=Bl(it.undone.slice(0),null,!0)},setGutterMarker:so(function(it,ot,ct){return bl(this,it,"gutter",function(At){var mt=At.gutterMarkers||(At.gutterMarkers={});return mt[ot]=ct,!ct&&Mt(mt)&&(At.gutterMarkers=null),!0})}),clearGutter:so(function(it){var ot=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&bl(ot,ct,"gutter",function(){return ct.gutterMarkers[it]=null,Mt(ct.gutterMarkers)&&(ct.gutterMarkers=null),!0})})}),lineInfo:function(it){var ot;if(typeof it=="number"){if(!Ni(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:so(function(it,ot,ct){return bl(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:so(function(it,ot,ct){return bl(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 le=qt.index+qt[0].length;At[mt]=Dt.slice(0,qt.index)+(!qt.index||le==Dt.length?"":" ")+Dt.slice(le)||null}else return!1;return!0})}),addLineWidget:so(function(it,ot,ct){return Cd(this,it,ot,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,ot,ct){return cu(this,ar(this,it),ar(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=ar(this,it),cu(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=ar(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=ar(this,it),ot=ar(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 le=0;le<qt.length;le++){var ae=qt[le];!(ae.to!=null&&mt==it.line&&it.ch>=ae.to||ae.from==null&&mt!=it.line||ae.from!=null&&mt==ot.line&&ae.from>=ot.ch)&&(!ct||ct(ae.marker))&&At.push(ae.marker.parent||ae.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}),ar(this,wn(ct,ot))},indexFromPos:function(it){it=ar(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 ou(li(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 ou(li(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}],ed(At,Pd(this)),At},unlinkDoc:function(it){if(it instanceof Ko&&(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),nd(Pd(this));break}}if(it.history==this.history){var At=[it.id];ha(it,function(mt){return At.push(mt.id)},!0),it.history=new Ih(null),it.history.done=Bl(this.history.done,At),it.history.undone=Bl(this.history.undone,At)}},iterLinkedDocs:function(it){ha(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):vo(it)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:so(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(ot){return ot.order=null}),this.cm&&PA(this.cm))})}),ou.prototype.eachLine=ou.prototype.iter;var VA=0;function bd(it){var ot=this;if(YA(ot),!(sr(ot,it)||ql(ot.display,it))){Zr(it),Se&&(VA=+new Date);var ct=Cu(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,le=function(){++qt==mt&&tr(ot,function(){ct=ar(ot.doc,ct);var Zn={from:ct,to:ct,text:ot.doc.splitLines(Dt.filter(function(Yi){return Yi!=null}).join(ot.doc.lineSeparator())),origin:"paste"};GA(ot.doc,Zn),_u(ot.doc,Fa(ar(ot.doc,ct),ar(ot.doc,xs(Zn))))})()},ae=function(Zn,Yi){if(ot.options.allowDropFileTypes&&Ye(ot.options.allowDropFileTypes,Zn.type)==-1){le();return}var or=new FileReader;or.onerror=function(){return le()},or.onload=function(){var Lr=or.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Lr)){le();return}Dt[Yi]=Lr,le()},or.readAsText(Zn)},Ne=0;Ne<At.length;Ne++)ae(At[Ne],Ne);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 bn=it.dataTransfer.getData("Text");if(bn){var ze;if(ot.state.draggingText&&!ot.state.draggingText.copy&&(ze=ot.listSelections()),Du(ot.doc,Fa(ct,ct)),ze)for(var oi=0;oi<ze.length;++oi)WA(ot.doc,"",ze[oi].anchor,ze[oi].head,"drag");ot.replaceSelection(bn,"around","paste"),ot.display.input.focus()}}catch(Zn){}}}}function Ld(it,ot){if(Se&&(!it.state.draggingText||+new Date-VA<100)){Jr(ot);return}if(!(sr(it,ot)||ql(it.display,ot))&&(ot.dataTransfer.setData("Text",it.getSelection()),ot.dataTransfer.effectAllowed="copyMove",ot.dataTransfer.setDragImage&&!xe)){var ct=ce("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",It&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),ot.dataTransfer.setDragImage(ct,0,0),It&&ct.parentNode.removeChild(ct)}}function mf(it,ot){var ct=Cu(it,ot);if(ct){var At=document.createDocumentFragment();na(it,ct,At),it.display.dragCursor||(it.display.dragCursor=ce("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),me(it.display.dragCursor,At)}}function YA(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function id(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 Lu=!1;function Fu(){Lu||(du(),Lu=!0)}function du(){var it;an(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,id(tf)},100))}),an(window,"blur",function(){return id(gt)})}function tf(it){var ot=it.display;ot.cachedCharWidth=ot.cachedTextHeight=ot.cachedPaddingH=null,ot.scrollbarsClipped=!1,it.setSize()}for(var Kh={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"},ks=0;ks<10;ks++)Kh[ks+48]=Kh[ks+96]=String(ks);for(var Fd=65;Fd<=90;Fd++)Kh[Fd]=String.fromCharCode(Fd);for(var rd=1;rd<=12;rd++)Kh[rd+111]=Kh[rd+63235]="F"+rd;var Yl={};Yl.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"},Yl.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"},Yl.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"},Yl.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"]},Yl.default=ht?Yl.macDefault:Yl.pcDefault;function Ed(it){var ot=it.split(/-(?!$)/);it=ot[ot.length-1];for(var ct,At,mt,Dt,qt=0;qt<ot.length-1;qt++){var le=ot[qt];if(/^(cmd|meta|m)$/i.test(le))Dt=!0;else if(/^a(lt)?$/i.test(le))ct=!0;else if(/^(c|ctrl|control)$/i.test(le))At=!0;else if(/^s(hift)?$/i.test(le))mt=!0;else throw new Error("Unrecognized modifier name: "+le)}return ct&&(it="Alt-"+it),At&&(it="Ctrl-"+it),Dt&&(it="Cmd-"+it),mt&&(it="Shift-"+it),it}function Md(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=Ai(ct.split(" "),Ed),Dt=0;Dt<mt.length;Dt++){var qt=void 0,le=void 0;Dt==mt.length-1?(le=mt.join(" "),qt=At):(le=mt.slice(0,Dt+1).join(" "),qt="...");var ae=ot[le];if(!ae)ot[le]=qt;else if(ae!=qt)throw new Error("Inconsistent bindings for "+le)}delete it[ct]}for(var Ne in ot)it[Ne]=ot[Ne];return it}function Eu(it,ot,ct,At){ot=Dl(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 Eu(it,ot.fallthrough,ct,At);for(var Dt=0;Dt<ot.fallthrough.length;Dt++){var qt=Eu(it,ot.fallthrough[Dt],ct,At);if(qt)return qt}}}function XA(it){var ot=typeof it=="string"?it:Kh[it.keyCode];return ot=="Ctrl"||ot=="Alt"||ot=="Shift"||ot=="Mod"}function od(it,ot,ct){var At=it;return ot.altKey&&At!="Alt"&&(it="Alt-"+it),(Nt?ot.metaKey:ot.ctrlKey)&&At!="Ctrl"&&(it="Ctrl-"+it),(Nt?ot.ctrlKey:ot.metaKey)&&At!="Mod"&&(it="Cmd-"+it),!ct&&ot.shiftKey&&At!="Shift"&&(it="Shift-"+it),it}function ef(it,ot){if(It&&it.keyCode==34&&it.char)return!1;var ct=Kh[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),od(ct,it,ot))}function Dl(it){return typeof it=="string"?Yl[it]:it}function nu(it,ot){for(var ct=it.doc.sel.ranges,At=[],mt=0;mt<ct.length;mt++){for(var Dt=ot(ct[mt]);At.length&&Jn(Dt.from,Ie(At).to)<=0;){var qt=At.pop();if(Jn(qt.from,Dt.from)<0){Dt.from=qt.from;break}}At.push(Dt)}Mi(it,function(){for(var le=At.length-1;le>=0;le--)WA(it.doc,"",At[le].from,At[le].to,"+delete");Re(it)})}function wc(it,ot,ct){var At=vn(it.text,ot+ct,ct);return At<0||At>it.text.length?null:At}function tl(it,ot,ct){var At=wc(it,ot.ch,ct);return At==null?null:new wn(ot.line,At,ct<0?"after":"before")}function Uc(it,ot,ct,At,mt){if(it){ot.doc.direction=="rtl"&&(mt=-mt);var Dt=bi(ct,ot.doc.direction);if(Dt){var qt=mt<0?Ie(Dt):Dt[0],le=mt<0==(qt.level==1),ae=le?"after":"before",Ne;if(qt.level>0||ot.doc.direction=="rtl"){var bn=Sa(ot,ct);Ne=mt<0?ct.text.length-1:0;var ze=qu(ot,bn,Ne).top;Ne=Fn(function(oi){return qu(ot,bn,oi).top==ze},mt<0==(qt.level==1)?qt.from:qt.to-1,Ne),ae=="before"&&(Ne=wc(ct,Ne,1))}else Ne=mt<0?qt.to:qt.from;return new wn(At,Ne,ae)}}return new wn(At,mt<0?ct.text.length:0,mt<0?"before":"after")}function hA(it,ot,ct,At){var mt=bi(ot,it.doc.direction);if(!mt)return tl(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=Bn(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 tl(ot,ct,At);var le=function(Ur,yo){return wc(ot,Ur instanceof wn?Ur.ch:Ur,yo)},ae,Ne=function(Ur){return it.options.lineWrapping?(ae=ae||Sa(it,ot),zf(it,ot,ae,Ur)):{begin:0,end:ot.text.length}},bn=Ne(ct.sticky=="before"?le(ct,-1):ct.ch);if(it.doc.direction=="rtl"||qt.level==1){var ze=qt.level==1==At<0,oi=le(ct,ze?1:-1);if(oi!=null&&(ze?oi<=qt.to&&oi<=bn.end:oi>=qt.from&&oi>=bn.begin)){var Zn=ze?"before":"after";return new wn(ct.line,oi,Zn)}}var Yi=function(Ur,yo,Wr){for(var Mo=function(Ma,Ql){return Ql?new wn(ct.line,le(Ma,1),"before"):new wn(ct.line,Ma,"after")};Ur>=0&&Ur<mt.length;Ur+=yo){var is=mt[Ur],Vr=yo>0==(is.level!=1),ws=Vr?Wr.begin:le(Wr.end,-1);if(is.from<=ws&&ws<is.to||(ws=Vr?is.from:le(is.to,-1),Wr.begin<=ws&&ws<Wr.end))return Mo(ws,Vr)}},or=Yi(Dt+At,At,bn);if(or)return or;var Lr=At>0?bn.end:le(bn.begin,-1);return Lr!=null&&!(At>0&&Lr==ot.text.length)&&(or=Yi(At>0?0:mt.length-1,At,Ne(Lr)),or)?or:null}var AA={selectAll:Pl,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),cn)},killLine:function(it){return nu(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:wn(ot.head.line+1,0)}:{from:ot.head,to:wn(ot.head.line,ct)}}else return{from:ot.from(),to:ot.to()}})},deleteLine:function(it){return nu(it,function(ot){return{from:wn(ot.from().line,0),to:ar(it.doc,wn(ot.to().line+1,0))}})},delLineLeft:function(it){return nu(it,function(ot){return{from:wn(ot.from().line,0),to:ot.from()}})},delWrappedLineLeft:function(it){return nu(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 nu(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(wn(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(wn(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(ot){return LA(it,ot.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(ot){return Nd(it,ot.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(ot){return Sc(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")},Wn)},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")},Wn)},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/)?Nd(it,ot.head):At},Wn)},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=fe(it.getLine(Dt.line),Dt.ch,At);ot.push(zi(At-qt%At))}it.replaceSelections(ot)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return Mi(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 wn(mt.line,mt.ch-1)),mt.ch>0)mt=new wn(mt.line,mt.ch+1),it.replaceRange(Dt.charAt(mt.ch-1)+Dt.charAt(mt.ch-2),wn(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 wn(mt.line,1),it.replaceRange(Dt.charAt(0)+it.doc.lineSeparator()+qt.charAt(qt.length-1),wn(mt.line-1,qt.length-1),mt,"+transpose"))}}ct.push(new Zo(mt,mt))}it.setSelections(ct)})},newlineAndIndent:function(it){return Mi(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);Re(it)})},openLine:function(it){return it.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function LA(it,ot){var ct=qe(it.doc,ot),At=_r(ct);return At!=ct&&(ot=Fe(At)),Uc(!0,it,At,ot,1)}function Sc(it,ot){var ct=qe(it.doc,ot),At=As(ct);return At!=ct&&(ot=Fe(At)),Uc(!0,it,ct,ot,-1)}function Nd(it,ot){var ct=LA(it,ot.line),At=qe(it.doc,ct.line),mt=bi(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 wn(ct.line,qt?0:Dt,ct.sticky)}return ct}function xc(it,ot,ct){if(typeof ot=="string"&&(ot=AA[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)!=ri}finally{it.display.shift=At,it.state.suppressEdits=!1}return mt}function Id(it,ot,ct){for(var At=0;At<it.state.keyMaps.length;At++){var mt=Eu(ot,it.state.keyMaps[At],ct,it);if(mt)return mt}return it.options.extraKeys&&Eu(ot,it.options.extraKeys,ct,it)||Eu(ot,it.options.keyMap,ct,it)}var Mu=new Zt;function Sh(it,ot,ct,At){var mt=it.state.keySeq;if(mt){if(XA(ot))return"handled";if(/\'$/.test(ot)?it.state.keySeq=null:Mu.set(50,function(){it.state.keySeq==mt&&(it.state.keySeq=null,it.display.input.reset())}),sd(it,mt+" "+ot,ct,At))return!0}return sd(it,ot,ct,At)}function sd(it,ot,ct,At){var mt=Id(it,ot,At);return mt=="multi"&&(it.state.keySeq=ot),mt=="handled"&&Sr(it,"keyHandled",it,ot,ct),(mt=="handled"||mt=="multi")&&(Zr(ct),Oa(it)),!!mt}function cA(it,ot){var ct=ef(ot,!0);return ct?ot.shiftKey&&!it.state.keySeq?Sh(it,"Shift-"+ct,ot,function(At){return xc(it,At,!0)})||Sh(it,ct,ot,function(At){if(typeof At=="string"?/^go[A-Z]/.test(At):At.motion)return xc(it,At)}):Sh(it,ct,ot,function(At){return xc(it,At)}):!1}function xh(it,ot,ct){return Sh(it,"'"+ct+"'",ot,function(At){return xc(it,At,!0)})}var dA=null;function FA(it){var ot=this;if(!(it.target&&it.target!=ot.display.input.getField())&&(ot.curOp.focus=Oe(),!sr(ot,it))){Se&&We<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;ot.display.shift=ct==16||it.shiftKey;var At=cA(ot,it);It&&(dA=At?ct:null,!At&&ct==88&&!la&&(ht?it.metaKey:it.ctrlKey)&&ot.replaceSelection("",null,"cut")),Kt&&!ht&&!At&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(ot.display.lineDiv.className)&&nf(ot)}}function nf(it){var ot=it.display.lineDiv;mn(ot,"CodeMirror-crosshair");function ct(At){(At.keyCode==18||!At.altKey)&&($t(ot,"CodeMirror-crosshair"),Ui(document,"keyup",ct),Ui(document,"mouseover",ct))}an(document,"keyup",ct),an(document,"mouseover",ct)}function Qc(it){it.keyCode==16&&(this.doc.sel.shift=!1),sr(this,it)}function Wh(it){var ot=this;if(!(it.target&&it.target!=ot.display.input.getField())&&!(ql(ot.display,it)||sr(ot,it)||it.ctrlKey&&!it.altKey||ht&&it.metaKey)){var ct=it.keyCode,At=it.charCode;if(It&&ct==dA){dA=null,Zr(it);return}if(!(It&&(!it.which||it.which<10)&&cA(ot,it))){var mt=String.fromCharCode(At==null?ct:At);mt!="\b"&&(xh(ot,it,mt)||ot.display.input.onKeyPress(it))}}}var Td=400,ZA=function(it,ot,ct){this.time=it,this.pos=ot,this.button=ct};ZA.prototype.compare=function(it,ot,ct){return this.time+Td>it&&Jn(ot,this.pos)==0&&ct==this.button};var fA,gA;function Rc(it,ot){var ct=+new Date;return gA&&gA.compare(ct,it,ot)?(fA=gA=null,"triple"):fA&&fA.compare(ct,it,ot)?(gA=new ZA(ct,it,ot),fA=null,"double"):(fA=new ZA(ct,it,ot),gA=null,"single")}function Ku(it){var ot=this,ct=ot.display;if(!(sr(ot,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,ql(ct,it)){je||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!_e(ot,it)){var At=Cu(ot,it),mt=to(it),Dt=At?Rc(At,mt):"single";window.focus(),mt==1&&ot.state.selectingText&&ot.state.selectingText(it),!(At&&ad(ot,mt,At,Dt,it))&&(mt==1?At?Hc(ot,At,Dt,it):hr(it)==ct.scroller&&Zr(it):mt==2?(At&&ku(ot.doc,At),setTimeout(function(){return ct.input.focus()},20)):mt==3&&(Rt?ot.display.input.onContextMenu(it):vl(ot)))}}}function ad(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,Sh(it,od(Dt,mt),mt,function(qt){if(typeof qt=="string"&&(qt=AA[qt]),!qt)return!1;var le=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),le=qt(it,ct)!=ri}finally{it.state.suppressEdits=!1}return le})}function ld(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 Hc(it,ot,ct,At){Se?setTimeout(gn(Ja,it),0):it.curOp.focus=Oe();var mt=ld(it,ct,At),Dt=it.doc.sel,qt;it.options.dragDrop&&oo&&!it.isReadOnly()&&ct=="single"&&(qt=Dt.contains(ot))>-1&&(Jn((qt=Dt.ranges[qt]).from(),ot)<0||ot.xRel>0)&&(Jn(qt.to(),ot)>0||ot.xRel<0)?Bc(it,At,ot,mt):Cc(it,At,ot,mt)}function Bc(it,ot,ct,At){var mt=it.display,Dt=!1,qt=tr(it,function(Ne){je&&(mt.scroller.draggable=!1),it.state.draggingText=!1,Ui(mt.wrapper.ownerDocument,"mouseup",qt),Ui(mt.wrapper.ownerDocument,"mousemove",le),Ui(mt.scroller,"dragstart",ae),Ui(mt.scroller,"drop",qt),Dt||(Zr(Ne),At.addNew||ku(it.doc,ct,null,null,At.extend),je&&!xe||Se&&We==9?setTimeout(function(){mt.wrapper.ownerDocument.body.focus({preventScroll:!0}),mt.input.focus()},20):mt.input.focus())}),le=function(Ne){Dt=Dt||Math.abs(ot.clientX-Ne.clientX)+Math.abs(ot.clientY-Ne.clientY)>=10},ae=function(){return Dt=!0};je&&(mt.scroller.draggable=!0),it.state.draggingText=qt,qt.copy=!At.moveOnDrag,mt.scroller.dragDrop&&mt.scroller.dragDrop(),an(mt.wrapper.ownerDocument,"mouseup",qt),an(mt.wrapper.ownerDocument,"mousemove",le),an(mt.scroller,"dragstart",ae),an(mt.scroller,"drop",qt),vl(it),setTimeout(function(){return mt.input.focus()},20)}function JA(it,ot,ct){if(ct=="char")return new Zo(ot,ot);if(ct=="word")return it.findWordAt(ot);if(ct=="line")return new Zo(wn(ot.line,0),ar(it.doc,wn(ot.line+1,0)));var At=ct(it,ot);return new Zo(At.from,At.to)}function Cc(it,ot,ct,At){var mt=it.display,Dt=it.doc;Zr(ot);var qt,le,ae=Dt.sel,Ne=ae.ranges;if(At.addNew&&!At.extend?(le=Dt.sel.contains(ct),le>-1?qt=Ne[le]:qt=new Zo(ct,ct)):(qt=Dt.sel.primary(),le=Dt.sel.primIndex),At.unit=="rectangle")At.addNew||(qt=new Zo(ct,ct)),ct=Cu(it,ot,!0,!0),le=-1;else{var bn=JA(it,ct,At.unit);At.extend?qt=eu(qt,bn.anchor,bn.head,At.extend):qt=bn}At.addNew?le==-1?(le=Ne.length,Cl(Dt,js(it,Ne.concat([qt]),le),{scroll:!1,origin:"*mouse"})):Ne.length>1&&Ne[le].empty()&&At.unit=="char"&&!At.extend?(Cl(Dt,js(it,Ne.slice(0,le).concat(Ne.slice(le+1)),0),{scroll:!1,origin:"*mouse"}),ae=Dt.sel):nh(Dt,le,qt,In):(le=0,Cl(Dt,new bs([qt],0),In),ae=Dt.sel);var ze=ct;function oi(Wr){if(Jn(ze,Wr)!=0)if(ze=Wr,At.unit=="rectangle"){for(var Mo=[],is=it.options.tabSize,Vr=fe(qe(Dt,ct.line).text,ct.ch,is),ws=fe(qe(Dt,Wr.line).text,Wr.ch,is),Ma=Math.min(Vr,ws),Ql=Math.max(Vr,ws),va=Math.min(ct.line,Wr.line),Ll=Math.min(it.lastLine(),Math.max(ct.line,Wr.line));va<=Ll;va++){var Zs=qe(Dt,va).text,Hs=xi(Zs,Ma,is);Ma==Ql?Mo.push(new Zo(wn(va,Hs),wn(va,Hs))):Zs.length>Hs&&Mo.push(new Zo(wn(va,Hs),wn(va,xi(Zs,Ql,is))))}Mo.length||Mo.push(new Zo(ct,ct)),Cl(Dt,js(it,ae.ranges.slice(0,le).concat(Mo),le),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Wr)}else{var Ca=qt,Pa=JA(it,Wr,At.unit),Hr=Ca.anchor,zs;Jn(Pa.anchor,Hr)>0?(zs=Pa.head,Hr=nr(Ca.from(),Pa.anchor)):(zs=Pa.anchor,Hr=Tr(Ca.to(),Pa.head));var Qa=ae.ranges.slice(0);Qa[le]=ud(it,new Zo(ar(Dt,Hr),zs)),Cl(Dt,js(it,Qa,le),In)}}var Zn=mt.wrapper.getBoundingClientRect(),Yi=0;function or(Wr){var Mo=++Yi,is=Cu(it,Wr,!0,At.unit=="rectangle");if(is)if(Jn(is,ze)!=0){it.curOp.focus=Oe(),oi(is);var Vr=Ut(mt,Dt);(is.line>=Vr.to||is.line<Vr.from)&&setTimeout(tr(it,function(){Yi==Mo&&or(Wr)}),150)}else{var ws=Wr.clientY<Zn.top?-20:Wr.clientY>Zn.bottom?20:0;ws&&setTimeout(tr(it,function(){Yi==Mo&&(mt.scroller.scrollTop+=ws,or(Wr))}),50)}}function Lr(Wr){it.state.selectingText=!1,Yi=1/0,Wr&&(Zr(Wr),mt.input.focus()),Ui(mt.wrapper.ownerDocument,"mousemove",Ur),Ui(mt.wrapper.ownerDocument,"mouseup",yo),Dt.history.lastSelOrigin=null}var Ur=tr(it,function(Wr){Wr.buttons===0||!to(Wr)?Lr(Wr):or(Wr)}),yo=tr(it,Lr);it.state.selectingText=yo,an(mt.wrapper.ownerDocument,"mousemove",Ur),an(mt.wrapper.ownerDocument,"mouseup",yo)}function ud(it,ot){var ct=ot.anchor,At=ot.head,mt=qe(it.doc,ct.line);if(Jn(ct,At)==0&&ct.sticky==At.sticky)return ot;var Dt=bi(mt);if(!Dt)return ot;var qt=Bn(Dt,ct.ch,ct.sticky),le=Dt[qt];if(le.from!=ct.ch&&le.to!=ct.ch)return ot;var ae=qt+(le.from==ct.ch==(le.level!=1)?0:1);if(ae==0||ae==Dt.length)return ot;var Ne;if(At.line!=ct.line)Ne=(At.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var bn=Bn(Dt,At.ch,At.sticky),ze=bn-qt||(At.ch-ct.ch)*(le.level==1?-1:1);bn==ae-1||bn==ae?Ne=ze<0:Ne=ze>0}var oi=Dt[ae+(Ne?-1:0)],Zn=Ne==(oi.level==1),Yi=Zn?oi.from:oi.to,or=Zn?"after":"before";return ct.ch==Yi&&ct.sticky==or?ot:new Zo(new wn(ct.line,Yi,or),At)}function Vt(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(oi){return!1}if(mt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;At&&Zr(ot);var qt=it.display,le=qt.lineDiv.getBoundingClientRect();if(Dt>le.bottom||!Ao(it,ct))return Co(ot);Dt-=le.top-qt.viewOffset;for(var ae=0;ae<it.display.gutterSpecs.length;++ae){var Ne=qt.gutters.childNodes[ae];if(Ne&&Ne.getBoundingClientRect().right>=mt){var bn=Qn(it.doc,Dt),ze=it.display.gutterSpecs[ae];return Pi(it,ct,it,bn,ze.className,ot),Co(ot)}}}function _e(it,ot){return Vt(it,ot,"gutterClick",!0)}function Hn(it,ot){ql(it.display,ot)||ci(it,ot)||sr(it,ot,"contextmenu")||Rt||it.display.input.onContextMenu(ot)}function ci(it,ot){return Ao(it,"gutterContextMenu")?Vt(it,ot,"gutterContextMenu",!1):!1}function Ri(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ka(it)}var cr={toString:function(){return"CodeMirror.Init"}},Qr={},_o={};function vs(it){var ot=it.optionHandlers;function ct(At,mt,Dt,qt){it.defaults[At]=mt,Dt&&(ot[At]=qt?function(le,ae,Ne){Ne!=cr&&Dt(le,ae,Ne)}:Dt)}it.defineOption=ct,it.Init=cr,ct("value","",function(At,mt){return At.setValue(mt)},!0),ct("mode",null,function(At,mt){At.doc.modeOption=mt,ds(At)},!0),ct("indentUnit",2,ds,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(At){$a(At),ka(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(ae){for(var Ne=0;;){var bn=ae.text.indexOf(mt,Ne);if(bn==-1)break;Ne=bn+mt.length,Dt.push(wn(qt,bn))}qt++});for(var le=Dt.length-1;le>=0;le--)WA(At.doc,mt,Dt[le],wn(Dt[le].line,Dt[le].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!=cr&&At.refresh()}),ct("specialCharPlaceholder",ua,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){Ri(At),Wo(At)},!0),ct("keyMap","default",function(At,mt,Dt){var qt=Dl(mt),le=Dt!=cr&&Dl(Dt);le&&le.detach&&le.detach(At,qt),qt.attach&&qt.attach(At,le||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,Ys,!0),ct("gutters",[],function(At,mt){At.display.gutterSpecs=_n(mt,At.options.lineNumbers),Wo(At)},!0),ct("fixedGutter",!0,function(At,mt){At.display.gutters.style.left=mt?Oc(At.display)+"px":"0",At.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(At){return qi(At)},!0),ct("scrollbarStyle","native",function(At){ai(At),qi(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=_n(At.options.gutters,mt),Wo(At)},!0),ct("firstLineNumber",1,Wo,!0),ct("lineNumberFormatter",function(At){return At},Wo,!0),ct("showCursorWhenSelecting",!1,Vl,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(At,mt){mt=="nocursor"&&(gt(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,Vs),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,Vl,!0),ct("singleCursorHeightPerLine",!0,Vl,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,$a,!0),ct("addModeClass",!1,$a,!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,$a,!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 Vs(it,ot,ct){var At=ct&&ct!=cr;if(!ot!=!At){var mt=it.display.dragFunctions,Dt=ot?an:Ui;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 Ys(it){it.options.lineWrapping?(mn(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):($t(it.display.wrapper,"CodeMirror-wrap"),Rs(it)),Xo(it),sl(it),ka(it),setTimeout(function(){return qi(it)},100)}function Ko(it,ot){var ct=this;if(!(this instanceof Ko))return new Ko(it,ot);this.options=ot=ot?pn(ot):{},pn(Qr,ot,!1);var At=ot.value;typeof At=="string"?At=new ou(At,ot.mode,null,ot.lineSeparator,ot.direction):ot.mode&&(At.modeOption=ot.mode),this.doc=At;var mt=new Ko.inputStyles[ot.inputStyle](this),Dt=this.display=new zr(it,At,mt,ot);Dt.wrapper.CodeMirror=this,Ri(this),ot.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ai(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 Zt,keySeq:null,specialChars:null},ot.autofocus&&!nt&&Dt.input.focus(),Se&&We<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),fl(this),Fu(),gr(this),this.curOp.forceUpdate=!0,yl(this,At),ot.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&wt(ct)},20):gt(this);for(var qt in _o)_o.hasOwnProperty(qt)&&_o[qt](this,ot[qt],cr);rr(this),ot.finishInit&&ot.finishInit(this);for(var le=0;le<gl.length;++le)gl[le](this);yn(this),je&&ot.lineWrapping&&getComputedStyle(Dt.lineDiv).textRendering=="optimizelegibility"&&(Dt.lineDiv.style.textRendering="auto")}Ko.defaults=Qr,Ko.optionHandlers=_o;function fl(it){var ot=it.display;an(ot.scroller,"mousedown",tr(it,Ku)),Se&&We<11?an(ot.scroller,"dblclick",tr(it,function(ae){if(!sr(it,ae)){var Ne=Cu(it,ae);if(!(!Ne||_e(it,ae)||ql(it.display,ae))){Zr(ae);var bn=it.findWordAt(Ne);ku(it.doc,bn.anchor,bn.head)}}})):an(ot.scroller,"dblclick",function(ae){return sr(it,ae)||Zr(ae)}),an(ot.scroller,"contextmenu",function(ae){return Hn(it,ae)}),an(ot.input.getField(),"contextmenu",function(ae){ot.scroller.contains(ae.target)||Hn(it,ae)});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(ae){if(ae.touches.length!=1)return!1;var Ne=ae.touches[0];return Ne.radiusX<=1&&Ne.radiusY<=1}function qt(ae,Ne){if(Ne.left==null)return!0;var bn=Ne.left-ae.left,ze=Ne.top-ae.top;return bn*bn+ze*ze>20*20}an(ot.scroller,"touchstart",function(ae){if(!sr(it,ae)&&!Dt(ae)&&!_e(it,ae)){ot.input.ensurePolled(),clearTimeout(ct);var Ne=+new Date;ot.activeTouch={start:Ne,moved:!1,prev:Ne-At.end<=300?At:null},ae.touches.length==1&&(ot.activeTouch.left=ae.touches[0].pageX,ot.activeTouch.top=ae.touches[0].pageY)}}),an(ot.scroller,"touchmove",function(){ot.activeTouch&&(ot.activeTouch.moved=!0)}),an(ot.scroller,"touchend",function(ae){var Ne=ot.activeTouch;if(Ne&&!ql(ot,ae)&&Ne.left!=null&&!Ne.moved&&new Date-Ne.start<300){var bn=it.coordsChar(ot.activeTouch,"page"),ze;!Ne.prev||qt(Ne,Ne.prev)?ze=new Zo(bn,bn):!Ne.prev.prev||qt(Ne,Ne.prev.prev)?ze=it.findWordAt(bn):ze=new Zo(wn(bn.line,0),ar(it.doc,wn(bn.line+1,0))),it.setSelection(ze.anchor,ze.head),it.focus(),Zr(ae)}mt()}),an(ot.scroller,"touchcancel",mt),an(ot.scroller,"scroll",function(){ot.scroller.clientHeight&&(Sn(it,ot.scroller.scrollTop),on(it,ot.scroller.scrollLeft,!0),Pi(it,"scroll",it))}),an(ot.scroller,"mousewheel",function(ae){return ls(it,ae)}),an(ot.scroller,"DOMMouseScroll",function(ae){return ls(it,ae)}),an(ot.wrapper,"scroll",function(){return ot.wrapper.scrollTop=ot.wrapper.scrollLeft=0}),ot.dragFunctions={enter:function(ae){sr(it,ae)||Jr(ae)},over:function(ae){sr(it,ae)||(mf(it,ae),Jr(ae))},start:function(ae){return Ld(it,ae)},drop:tr(it,bd),leave:function(ae){sr(it,ae)||YA(it)}};var le=ot.input.getField();an(le,"keyup",function(ae){return Qc.call(it,ae)}),an(le,"keydown",tr(it,FA)),an(le,"keypress",tr(it,Wh)),an(le,"focus",function(ae){return wt(it,ae)}),an(le,"blur",function(ae){return gt(it,ae)})}var gl=[];Ko.defineInitHook=function(it){return gl.push(it)};function oa(it,ot,ct,At){var mt=it.doc,Dt;ct==null&&(ct="add"),ct=="smart"&&(mt.mode.indent?Dt=Eo(it,ot).state:ct="prev");var qt=it.options.tabSize,le=qe(mt,ot),ae=fe(le.text,null,qt);le.stateAfter&&(le.stateAfter=null);var Ne=le.text.match(/^\s*/)[0],bn;if(!At&&!/\S/.test(le.text))bn=0,ct="not";else if(ct=="smart"&&(bn=mt.mode.indent(Dt,le.text.slice(Ne.length),le.text),bn==ri||bn>150)){if(!At)return;ct="prev"}ct=="prev"?ot>mt.first?bn=fe(qe(mt,ot-1).text,null,qt):bn=0:ct=="add"?bn=ae+it.options.indentUnit:ct=="subtract"?bn=ae-it.options.indentUnit:typeof ct=="number"&&(bn=ae+ct),bn=Math.max(0,bn);var ze="",oi=0;if(it.options.indentWithTabs)for(var Zn=Math.floor(bn/qt);Zn;--Zn)oi+=qt,ze+=" ";if(oi<bn&&(ze+=zi(bn-oi)),ze!=Ne)return WA(mt,ze,wn(ot,0),wn(ot,Ne.length),"+input"),le.stateAfter=null,!0;for(var Yi=0;Yi<mt.sel.ranges.length;Yi++){var or=mt.sel.ranges[Yi];if(or.head.line==ot&&or.head.ch<Ne.length){var Lr=wn(ot,Ne.length);nh(mt,Yi,new Zo(Lr,Lr));break}}}var Xa=null;function jl(it){Xa=it}function Bh(it,ot,ct,At,mt){var Dt=it.doc;it.display.shift=!1,At||(At=Dt.sel);var qt=+new Date-200,le=mt=="paste"||it.state.pasteIncoming>qt,ae=vo(ot),Ne=null;if(le&&At.ranges.length>1)if(Xa&&Xa.text.join(`
|
|
|
`)==ot){if(At.ranges.length%Xa.text.length==0){Ne=[];for(var bn=0;bn<Xa.text.length;bn++)Ne.push(Dt.splitLines(Xa.text[bn]))}}else ae.length==At.ranges.length&&it.options.pasteLinesPerSelection&&(Ne=Ai(ae,function(Ur){return[Ur]}));for(var ze=it.curOp.updateInput,oi=At.ranges.length-1;oi>=0;oi--){var Zn=At.ranges[oi],Yi=Zn.from(),or=Zn.to();Zn.empty()&&(ct&&ct>0?Yi=wn(Yi.line,Yi.ch-ct):it.state.overwrite&&!le?or=wn(or.line,Math.min(qe(Dt,or.line).text.length,or.ch+Ie(ae).length)):le&&Xa&&Xa.lineWise&&Xa.text.join(`
|
|
|
`)==ae.join(`
|
|
|
`)&&(Yi=or=wn(Yi.line,0)));var Lr={from:Yi,to:or,text:Ne?Ne[oi%Ne.length]:ae,origin:mt||(le?"paste":it.state.cutIncoming>qt?"cut":"+input")};GA(it.doc,Lr),Sr(it,"inputRead",it,Lr)}ot&&!le&&Ch(it,ot),Re(it),it.curOp.updateInput<2&&(it.curOp.updateInput=ze),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function ju(it,ot){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!ot.isReadOnly()&&!ot.options.disableInput&&Mi(ot,function(){return Bh(ot,ct,0,null,"paste")}),!0}function Ch(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 le=0;le<Dt.electricChars.length;le++)if(ot.indexOf(Dt.electricChars.charAt(le))>-1){qt=oa(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=oa(it,mt.head.line,"smart"));qt&&Sr(it,"electricInput",it,mt.head.line)}}}function hd(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:wn(mt,0),head:wn(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 Ad(){var it=ce("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ot=ce("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return je?it.style.width="1000px":it.setAttribute("wrap","off"),Qt&&(it.style.border="1px solid black"),zc(it),ot}function Oh(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)&&tr(this,ot[At])(this,mt,qt),Pi(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"](Dl(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:fr(function(At,mt){var Dt=At.token?At:it.getMode(this.options,At);if(Dt.startState)throw new Error("Overlays may not be stateful.");Ti(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:fr(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:fr(function(At,mt,Dt){typeof mt!="string"&&typeof mt!="number"&&(mt==null?mt=this.options.smartIndent?"smart":"prev":mt=mt?"add":"subtract"),Ni(this.doc,At)&&oa(this,At,mt,Dt)}),indentSelection:fr(function(At){for(var mt=this.doc.sel.ranges,Dt=-1,qt=0;qt<mt.length;qt++){var le=mt[qt];if(le.empty())le.head.line>Dt&&(oa(this,le.head.line,At,!0),Dt=le.head.line,qt==this.doc.sel.primIndex&&Re(this));else{var ae=le.from(),Ne=le.to(),bn=Math.max(Dt,ae.line);Dt=Math.min(this.lastLine(),Ne.line-(Ne.ch?0:1))+1;for(var ze=bn;ze<Dt;++ze)oa(this,ze,At);var oi=this.doc.sel.ranges;ae.ch==0&&mt.length==oi.length&&oi[qt].from().ch>0&&nh(this.doc,qt,new Zo(ae,oi[qt].to()),cn)}}}),getTokenAt:function(At,mt){return Mr(this,At,mt)},getLineTokens:function(At,mt){return Mr(this,wn(At),mt,!0)},getTokenTypeAt:function(At){At=ar(this.doc,At);var mt=as(this,qe(this.doc,At.line)),Dt=0,qt=(mt.length-1)/2,le=At.ch,ae;if(le==0)ae=mt[2];else for(;;){var Ne=Dt+qt>>1;if((Ne?mt[Ne*2-1]:0)>=le)qt=Ne;else if(mt[Ne*2+1]<le)Dt=Ne+1;else{ae=mt[Ne*2+2];break}}var bn=ae?ae.indexOf("overlay "):-1;return bn<0?ae:bn==0?null:ae.slice(0,bn-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],le=this.getModeAt(At);if(typeof le[mt]=="string")qt[le[mt]]&&Dt.push(qt[le[mt]]);else if(le[mt])for(var ae=0;ae<le[mt].length;ae++){var Ne=qt[le[mt][ae]];Ne&&Dt.push(Ne)}else le.helperType&&qt[le.helperType]?Dt.push(qt[le.helperType]):qt[le.name]&&Dt.push(qt[le.name]);for(var bn=0;bn<qt._global.length;bn++){var ze=qt._global[bn];ze.pred(le,this)&&Ye(Dt,ze.val)==-1&&Dt.push(ze.val)}return Dt},getStateAfter:function(At,mt){var Dt=this.doc;return At=yr(Dt,At==null?Dt.first+Dt.size-1:At),Eo(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=ar(this.doc,At):Dt=At?qt.from():qt.to(),La(this,Dt,mt||"page")},charCoords:function(At,mt){return Tu(this,ar(this.doc,At),mt||"page")},coordsChar:function(At,mt){return At=zh(this,At,mt||"page"),_h(this,At.left,At.top)},lineAtHeight:function(At,mt){return At=zh(this,{top:At,left:0},mt||"page").top,Qn(this.doc,At+this.display.viewOffset)},heightAtLine:function(At,mt,Dt){var qt=!1,le;if(typeof At=="number"){var ae=this.doc.first+this.doc.size-1;At<this.doc.first?At=this.doc.first:At>ae&&(At=ae,qt=!0),le=qe(this.doc,At)}else le=At;return ol(this,le,{top:0,left:0},mt||"page",Dt||qt).top+(qt?this.doc.height-cs(le):0)},defaultTextHeight:function(){return wu(this.display)},defaultCharWidth:function(){return Nh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(At,mt,Dt,qt,le){var ae=this.display;At=La(this,ar(this.doc,At));var Ne=At.bottom,bn=At.left;if(mt.style.position="absolute",mt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(mt),ae.sizer.appendChild(mt),qt=="over")Ne=At.top;else if(qt=="above"||qt=="near"){var ze=Math.max(ae.wrapper.clientHeight,this.doc.height),oi=Math.max(ae.sizer.clientWidth,ae.lineSpace.clientWidth);(qt=="above"||At.bottom+mt.offsetHeight>ze)&&At.top>mt.offsetHeight?Ne=At.top-mt.offsetHeight:At.bottom+mt.offsetHeight<=ze&&(Ne=At.bottom),bn+mt.offsetWidth>oi&&(bn=oi-mt.offsetWidth)}mt.style.top=Ne+"px",mt.style.left=mt.style.right="",le=="right"?(bn=ae.sizer.clientWidth-mt.offsetWidth,mt.style.right="0px"):(le=="left"?bn=0:le=="middle"&&(bn=(ae.sizer.clientWidth-mt.offsetWidth)/2),mt.style.left=bn+"px"),Dt&&Jt(this,{left:bn,top:Ne,right:bn+mt.offsetWidth,bottom:Ne+mt.offsetHeight})},triggerOnKeyDown:fr(FA),triggerOnKeyPress:fr(Wh),triggerOnKeyUp:Qc,triggerOnMouseDown:fr(Ku),execCommand:function(At){if(AA.hasOwnProperty(At))return AA[At].call(null,this)},triggerElectric:fr(function(At){Ch(this,At)}),findPosH:function(At,mt,Dt,qt){var le=1;mt<0&&(le=-1,mt=-mt);for(var ae=ar(this.doc,At),Ne=0;Ne<mt&&(ae=$A(this.doc,ae,le,Dt,qt),!ae.hitSide);++Ne);return ae},moveH:fr(function(At,mt){var Dt=this;this.extendSelectionsBy(function(qt){return Dt.display.shift||Dt.doc.extend||qt.empty()?$A(Dt.doc,qt.head,At,mt,Dt.options.rtlMoveVisually):At<0?qt.from():qt.to()},Wn)}),deleteH:fr(function(At,mt){var Dt=this.doc.sel,qt=this.doc;Dt.somethingSelected()?qt.replaceSelection("",null,"+delete"):nu(this,function(le){var ae=$A(qt,le.head,At,mt,!1);return At<0?{from:ae,to:le.head}:{from:le.head,to:ae}})}),findPosV:function(At,mt,Dt,qt){var le=1,ae=qt;mt<0&&(le=-1,mt=-mt);for(var Ne=ar(this.doc,At),bn=0;bn<mt;++bn){var ze=La(this,Ne,"div");if(ae==null?ae=ze.left:ze.left=ae,Ne=pA(this,ze,le,Dt),Ne.hitSide)break}return Ne},moveV:fr(function(At,mt){var Dt=this,qt=this.doc,le=[],ae=!this.display.shift&&!qt.extend&&qt.sel.somethingSelected();if(qt.extendSelectionsBy(function(bn){if(ae)return At<0?bn.from():bn.to();var ze=La(Dt,bn.head,"div");bn.goalColumn!=null&&(ze.left=bn.goalColumn),le.push(ze.left);var oi=pA(Dt,ze,At,mt);return mt=="page"&&bn==qt.sel.primary()&&Be(Dt,Tu(Dt,oi,"div").top-ze.top),oi},Wn),le.length)for(var Ne=0;Ne<qt.sel.ranges.length;Ne++)qt.sel.ranges[Ne].goalColumn=le[Ne]}),findWordAt:function(At){var mt=this.doc,Dt=qe(mt,At.line).text,qt=At.ch,le=At.ch;if(Dt){var ae=this.getHelper(At,"wordChars");(At.sticky=="before"||le==Dt.length)&&qt?--qt:++le;for(var Ne=Dt.charAt(qt),bn=Ht(Ne,ae)?function(ze){return Ht(ze,ae)}:/\s/.test(Ne)?function(ze){return/\s/.test(ze)}:function(ze){return!/\s/.test(ze)&&!Ht(ze)};qt>0&&bn(Dt.charAt(qt-1));)--qt;for(;le<Dt.length&&bn(Dt.charAt(le));)++le}return new Zo(wn(At.line,qt),wn(At.line,le))},toggleOverwrite:function(At){At!=null&&At==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?mn(this.display.cursorDiv,"CodeMirror-overwrite"):$t(this.display.cursorDiv,"CodeMirror-overwrite"),Pi(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Oe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:fr(function(At,mt){He(this,At,mt)}),getScrollInfo:function(){var At=this.display.scroller;return{left:At.scrollLeft,top:At.scrollTop,height:At.scrollHeight-Wl(this)-this.display.barHeight,width:At.scrollWidth-Wl(this)-this.display.barWidth,clientHeight:fo(this),clientWidth:Nl(this)}},scrollIntoView:fr(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:wn(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?Ze(this,At):jn(this,At.from,At.to,At.margin)}),setSize:fr(function(At,mt){var Dt=this,qt=function(ae){return typeof ae=="number"||/^\d+$/.test(String(ae))?ae+"px":ae};At!=null&&(this.display.wrapper.style.width=qt(At)),mt!=null&&(this.display.wrapper.style.height=qt(mt)),this.options.lineWrapping&&Za(this);var le=this.display.viewFrom;this.doc.iter(le,this.display.viewTo,function(ae){if(ae.widgets){for(var Ne=0;Ne<ae.widgets.length;Ne++)if(ae.widgets[Ne].noHScroll){Ms(Dt,le,"widget");break}}++le}),this.curOp.forceUpdate=!0,Pi(this,"refresh",this)}),operation:function(At){return Mi(this,At)},startOperation:function(){return gr(this)},endOperation:function(){return yn(this)},refresh:fr(function(){var At=this.display.cachedTextHeight;sl(this),this.curOp.forceUpdate=!0,ka(this),He(this,this.doc.scrollLeft,this.doc.scrollTop),Io(this.display),(At==null||Math.abs(At-wu(this.display))>.5||this.options.lineWrapping)&&Xo(this),Pi(this,"refresh",this)}),swapDoc:fr(function(At){var mt=this.doc;return mt.cm=null,this.state.selectingText&&this.state.selectingText(),yl(this,At),ka(this),this.display.input.reset(),He(this,At.scrollLeft,At.scrollTop),this.curOp.forceScroll=!0,Sr(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}},po(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 $A(it,ot,ct,At,mt){var Dt=ot,qt=ct,le=qe(it,ot.line),ae=mt&&it.direction=="rtl"?-ct:ct;function Ne(){var yo=ot.line+ae;return yo<it.first||yo>=it.first+it.size?!1:(ot=new wn(yo,ot.ch,ot.sticky),le=qe(it,yo))}function bn(yo){var Wr;if(At=="codepoint"){var Mo=le.text.charCodeAt(ot.ch+(At>0?0:-1));isNaN(Mo)?Wr=null:Wr=new wn(ot.line,Math.max(0,Math.min(le.text.length,ot.ch+ct*(Mo>=55296&&Mo<56320?2:1))),-ct)}else mt?Wr=hA(it.cm,le,ot,ct):Wr=tl(le,ot,ct);if(Wr==null)if(!yo&&Ne())ot=Uc(mt,it.cm,le,ot.line,ae);else return!1;else ot=Wr;return!0}if(At=="char"||At=="codepoint")bn();else if(At=="column")bn(!0);else if(At=="word"||At=="group")for(var ze=null,oi=At=="group",Zn=it.cm&&it.cm.getHelper(ot,"wordChars"),Yi=!0;!(ct<0&&!bn(!Yi));Yi=!1){var or=le.text.charAt(ot.ch)||`
|
|
|
`,Lr=Ht(or,Zn)?"w":oi&&or==`
|
|
|
`?"n":!oi||/\s/.test(or)?null:"p";if(oi&&!Yi&&!Lr&&(Lr="s"),ze&&ze!=Lr){ct<0&&(ct=1,bn(),ot.sticky="after");break}if(Lr&&(ze=Lr),ct>0&&!bn(!Yi))break}var Ur=_A(it,ot,Dt,qt,!0);return Br(Dt,Ur)&&(Ur.hitSide=!0),Ur}function pA(it,ot,ct,At){var mt=it.doc,Dt=ot.left,qt;if(At=="page"){var le=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ae=Math.max(le-.5*wu(it.display),3);qt=(ct>0?ot.bottom:ot.top)+ct*ae}else At=="line"&&(qt=ct>0?ot.bottom+3:ot.top-3);for(var Ne;Ne=_h(it,Dt,qt),!!Ne.outside;){if(ct<0?qt<=0:qt>=mt.height){Ne.hitSide=!0;break}qt+=ct*5}return Ne}var Ba=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Zt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ba.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(le){for(var ae=le.target;ae;ae=ae.parentNode){if(ae==mt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ae.className))break}return!1}an(mt,"paste",function(le){!Dt(le)||sr(At,le)||ju(le,At)||We<=11&&setTimeout(tr(At,function(){return ot.updateFromDOM()}),20)}),an(mt,"compositionstart",function(le){ot.composing={data:le.data,done:!1}}),an(mt,"compositionupdate",function(le){ot.composing||(ot.composing={data:le.data,done:!1})}),an(mt,"compositionend",function(le){ot.composing&&(le.data!=ot.composing.data&&ot.readFromDOMSoon(),ot.composing.done=!0)}),an(mt,"touchstart",function(){return ct.forceCompositionEnd()}),an(mt,"input",function(){ot.composing||ot.readFromDOMSoon()});function qt(le){if(!(!Dt(le)||sr(At,le))){if(At.somethingSelected())jl({lineWise:!1,text:At.getSelections()}),le.type=="cut"&&At.replaceSelection("",null,"cut");else if(At.options.lineWiseCopyCut){var ae=hd(At);jl({lineWise:!0,text:ae.text}),le.type=="cut"&&At.operation(function(){At.setSelections(ae.ranges,0,cn),At.replaceSelection("",null,"cut")})}else return;if(le.clipboardData){le.clipboardData.clearData();var Ne=Xa.text.join(`
|
|
|
`);if(le.clipboardData.setData("Text",Ne),le.clipboardData.getData("Text")==Ne){le.preventDefault();return}}var bn=Ad(),ze=bn.firstChild;At.display.lineSpace.insertBefore(bn,At.display.lineSpace.firstChild),ze.value=Xa.text.join(`
|
|
|
`);var oi=document.activeElement;sn(ze),setTimeout(function(){At.display.lineSpace.removeChild(bn),oi.focus(),oi==mt&&ct.showPrimarySelection()},50)}}an(mt,"copy",qt),an(mt,"cut",qt)},Ba.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Ba.prototype.prepareSelection=function(){var it=gc(this.cm,!1);return it.focus=document.activeElement==this.div,it},Ba.prototype.showSelection=function(it,ot){!it||!this.cm.display.view.length||((it.focus||ot)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Ba.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ba.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=Dh(ot,it.anchorNode,it.anchorOffset),qt=Dh(ot,it.focusNode,it.focusOffset);if(!(Dt&&!Dt.bad&&qt&&!qt.bad&&Jn(nr(Dt,qt),At)==0&&Jn(Tr(Dt,qt),mt)==0)){var le=ot.display.view,ae=At.line>=ot.display.viewFrom&&Ul(ot,At)||{node:le[0].measure.map[2],offset:0},Ne=mt.line<ot.display.viewTo&&Ul(ot,mt);if(!Ne){var bn=le[le.length-1].measure,ze=bn.maps?bn.maps[bn.maps.length-1]:bn.map;Ne={node:ze[ze.length-1],offset:ze[ze.length-2]-ze[ze.length-3]}}if(!ae||!Ne){it.removeAllRanges();return}var oi=it.rangeCount&&it.getRangeAt(0),Zn;try{Zn=De(ae.node,ae.offset,Ne.offset,Ne.node)}catch(Yi){}Zn&&(!Kt&&ot.state.focused?(it.collapse(ae.node,ae.offset),Zn.collapsed||(it.removeAllRanges(),it.addRange(Zn))):(it.removeAllRanges(),it.addRange(Zn)),oi&&it.anchorNode==null?it.addRange(oi):Kt&&this.startGracePeriod()),this.rememberSelection()}},Ba.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)},Ba.prototype.showMultipleSelections=function(it){me(this.cm.display.cursorDiv,it.cursors),me(this.cm.display.selectionDiv,it.selection)},Ba.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},Ba.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var ot=it.getRangeAt(0).commonAncestorContainer;return ln(this.div,ot)},Ba.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ba.prototype.blur=function(){this.div.blur()},Ba.prototype.getField=function(){return this.div},Ba.prototype.supportsTouch=function(){return!0},Ba.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():Mi(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)},Ba.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},Ba.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),ot=this.cm;if(et&&ve&&this.cm.display.gutterSpecs.length&&Pc(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ct=Dh(ot,it.anchorNode,it.anchorOffset),At=Dh(ot,it.focusNode,it.focusOffset);ct&&At&&Mi(ot,function(){Cl(ot.doc,Fa(ct,At),cn),(ct.bad||At.bad)&&(ot.curOp.selectionChanged=!0)})}}},Ba.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=wn(At.line-1,qe(it.doc,At.line-1).length)),mt.ch==qe(it.doc,mt.line).text.length&&mt.line<it.lastLine()&&(mt=wn(mt.line+1,0)),At.line<ot.viewFrom||mt.line>ot.viewTo-1)return!1;var Dt,qt,le;At.line==ot.viewFrom||(Dt=th(it,At.line))==0?(qt=Fe(ot.view[0].line),le=ot.view[0].node):(qt=Fe(ot.view[Dt].line),le=ot.view[Dt-1].node.nextSibling);var ae=th(it,mt.line),Ne,bn;if(ae==ot.view.length-1?(Ne=ot.viewTo-1,bn=ot.lineDiv.lastChild):(Ne=Fe(ot.view[ae+1].line)-1,bn=ot.view[ae+1].node.previousSibling),!le)return!1;for(var ze=it.doc.splitLines(Wu(it,le,bn,qt,Ne)),oi=Mn(it.doc,wn(qt,0),wn(Ne,qe(it.doc,Ne).text.length));ze.length>1&&oi.length>1;)if(Ie(ze)==Ie(oi))ze.pop(),oi.pop(),Ne--;else if(ze[0]==oi[0])ze.shift(),oi.shift(),qt++;else break;for(var Zn=0,Yi=0,or=ze[0],Lr=oi[0],Ur=Math.min(or.length,Lr.length);Zn<Ur&&or.charCodeAt(Zn)==Lr.charCodeAt(Zn);)++Zn;for(var yo=Ie(ze),Wr=Ie(oi),Mo=Math.min(yo.length-(ze.length==1?Zn:0),Wr.length-(oi.length==1?Zn:0));Yi<Mo&&yo.charCodeAt(yo.length-Yi-1)==Wr.charCodeAt(Wr.length-Yi-1);)++Yi;if(ze.length==1&&oi.length==1&&qt==At.line)for(;Zn&&Zn>At.ch&&yo.charCodeAt(yo.length-Yi-1)==Wr.charCodeAt(Wr.length-Yi-1);)Zn--,Yi++;ze[ze.length-1]=yo.slice(0,yo.length-Yi).replace(/^\u200b+/,""),ze[0]=ze[0].slice(Zn).replace(/\u200b+$/,"");var is=wn(qt,Zn),Vr=wn(Ne,oi.length?Ie(oi).length-Yi:0);if(ze.length>1||ze[0]||Jn(is,Vr))return WA(it.doc,ze,is,Vr,"+input"),!0},Ba.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ba.prototype.reset=function(){this.forceCompositionEnd()},Ba.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ba.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))},Ba.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Mi(this.cm,function(){return sl(it.cm)})},Ba.prototype.setUneditable=function(it){it.contentEditable="false"},Ba.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||tr(this.cm,Bh)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Ba.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Ba.prototype.onContextMenu=function(){},Ba.prototype.resetPosition=function(){},Ba.prototype.needsContentAttribute=!0;function Ul(it,ot){var ct=rA(it,ot.line);if(!ct||ct.hidden)return null;var At=qe(it.doc,ot.line),mt=tu(ct,At,ot.line),Dt=bi(At,it.doc.direction),qt="left";if(Dt){var le=Bn(Dt,ot.ch);qt=le%2?"right":"left"}var ae=zA(mt.map,ot.ch,qt);return ae.offset=ae.collapse=="right"?ae.end:ae.start,ae}function Pc(it){for(var ot=it;ot;ot=ot.parentNode)if(/CodeMirror-gutter-wrapper/.test(ot.className))return!0;return!1}function el(it,ot){return ot&&(it.bad=!0),it}function Wu(it,ot,ct,At,mt){var Dt="",qt=!1,le=it.doc.lineSeparator(),ae=!1;function Ne(Zn){return function(Yi){return Yi.id==Zn}}function bn(){qt&&(Dt+=le,ae&&(Dt+=le),qt=ae=!1)}function ze(Zn){Zn&&(bn(),Dt+=Zn)}function oi(Zn){if(Zn.nodeType==1){var Yi=Zn.getAttribute("cm-text");if(Yi){ze(Yi);return}var or=Zn.getAttribute("cm-marker"),Lr;if(or){var Ur=it.findMarks(wn(At,0),wn(mt+1,0),Ne(+or));Ur.length&&(Lr=Ur[0].find(0))&&ze(Mn(it.doc,Lr.from,Lr.to).join(le));return}if(Zn.getAttribute("contenteditable")=="false")return;var yo=/^(pre|div|p|li|table|br)$/i.test(Zn.nodeName);if(!/^br$/i.test(Zn.nodeName)&&Zn.textContent.length==0)return;yo&&bn();for(var Wr=0;Wr<Zn.childNodes.length;Wr++)oi(Zn.childNodes[Wr]);/^(pre|p)$/i.test(Zn.nodeName)&&(ae=!0),yo&&(qt=!0)}else Zn.nodeType==3&&ze(Zn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;oi(ot),ot!=ct;)ot=ot.nextSibling,ae=!1;return Dt}function Dh(it,ot,ct){var At;if(ot==it.display.lineDiv){if(At=it.display.lineDiv.childNodes[ct],!At)return el(it.clipPos(wn(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 su(Dt,ot,ct)}}function su(it,ot,ct){var At=it.text.firstChild,mt=!1;if(!ot||!ln(At,ot))return el(wn(Fe(it.line),0),!0);if(ot==At&&(mt=!0,ot=At.childNodes[ct],ct=0,!ot)){var Dt=it.rest?Ie(it.rest):it.line;return el(wn(Fe(Dt),Dt.text.length),mt)}var qt=ot.nodeType==3?ot:null,le=ot;for(!qt&&ot.childNodes.length==1&&ot.firstChild.nodeType==3&&(qt=ot.firstChild,ct&&(ct=qt.nodeValue.length));le.parentNode!=At;)le=le.parentNode;var ae=it.measure,Ne=ae.maps;function bn(Lr,Ur,yo){for(var Wr=-1;Wr<(Ne?Ne.length:0);Wr++)for(var Mo=Wr<0?ae.map:Ne[Wr],is=0;is<Mo.length;is+=3){var Vr=Mo[is+2];if(Vr==Lr||Vr==Ur){var ws=Fe(Wr<0?it.line:it.rest[Wr]),Ma=Mo[is]+yo;return(yo<0||Vr!=Lr)&&(Ma=Mo[is+(yo?1:0)]),wn(ws,Ma)}}}var ze=bn(qt,le,ct);if(ze)return el(ze,mt);for(var oi=le.nextSibling,Zn=qt?qt.nodeValue.length-ct:0;oi;oi=oi.nextSibling){if(ze=bn(oi,oi.firstChild,0),ze)return el(wn(ze.line,ze.ch-Zn),mt);Zn+=oi.textContent.length}for(var Yi=le.previousSibling,or=ct;Yi;Yi=Yi.previousSibling){if(ze=bn(Yi,Yi.firstChild,-1),ze)return el(wn(ze.line,ze.ch+or),mt);or+=Yi.textContent.length}}var nl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Zt,this.hasSelection=!1,this.composing=null};nl.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),Qt&&(mt.style.width="0px"),an(mt,"input",function(){Se&&We>=9&&ot.hasSelection&&(ot.hasSelection=null),ct.poll()}),an(mt,"paste",function(qt){sr(At,qt)||ju(qt,At)||(At.state.pasteIncoming=+new Date,ct.fastPoll())});function Dt(qt){if(!sr(At,qt)){if(At.somethingSelected())jl({lineWise:!1,text:At.getSelections()});else if(At.options.lineWiseCopyCut){var le=hd(At);jl({lineWise:!0,text:le.text}),qt.type=="cut"?At.setSelections(le.ranges,null,cn):(ct.prevInput="",mt.value=le.text.join(`
|
|
|
`),sn(mt))}else return;qt.type=="cut"&&(At.state.cutIncoming=+new Date)}}an(mt,"cut",Dt),an(mt,"copy",Dt),an(it.scroller,"paste",function(qt){if(!(ql(it,qt)||sr(At,qt))){if(!mt.dispatchEvent){At.state.pasteIncoming=+new Date,ct.focus();return}var le=new Event("paste");le.clipboardData=qt.clipboardData,mt.dispatchEvent(le)}}),an(it.lineSpace,"selectstart",function(qt){ql(it,qt)||Zr(qt)}),an(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"})}}),an(mt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},nl.prototype.createField=function(it){this.wrapper=Ad(),this.textarea=this.wrapper.firstChild},nl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},nl.prototype.prepareSelection=function(){var it=this.cm,ot=it.display,ct=it.doc,At=gc(it);if(it.options.moveInputWithCursor){var mt=La(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},nl.prototype.showSelection=function(it){var ot=this.cm,ct=ot.display;me(ct.cursorDiv,it.cursors),me(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},nl.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&&sn(this.textarea),Se&&We>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Se&&We>=9&&(this.hasSelection=null))}},nl.prototype.getField=function(){return this.textarea},nl.prototype.supportsTouch=function(){return!1},nl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||Oe()!=this.textarea))try{this.textarea.focus()}catch(it){}},nl.prototype.blur=function(){this.textarea.blur()},nl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},nl.prototype.receivedFocus=function(){this.slowPoll()},nl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},nl.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)},nl.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(Se&&We>=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,le=Math.min(At.length,mt.length);qt<le&&At.charCodeAt(qt)==mt.charCodeAt(qt);)++qt;return Mi(ot,function(){Bh(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},nl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nl.prototype.onKeyPress=function(){Se&&We>=9&&(this.hasSelection=null),this.fastPoll()},nl.prototype.onContextMenu=function(it){var ot=this,ct=ot.cm,At=ct.display,mt=ot.textarea;ot.contextMenuPending&&ot.contextMenuPending();var Dt=Cu(ct,it),qt=At.scroller.scrollTop;if(!Dt||It)return;var le=ct.options.resetSelectionOnContextMenu;le&&ct.doc.sel.contains(Dt)==-1&&tr(ct,Cl)(ct.doc,Fa(Dt),cn);var ae=mt.style.cssText,Ne=ot.wrapper.style.cssText,bn=ot.wrapper.offsetParent.getBoundingClientRect();ot.wrapper.style.cssText="position: static",mt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(it.clientY-bn.top-5)+"px; left: "+(it.clientX-bn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ze;je&&(ze=window.scrollY),At.input.focus(),je&&window.scrollTo(null,ze),At.input.reset(),ct.somethingSelected()||(mt.value=ot.prevInput=" "),ot.contextMenuPending=Zn,At.selForContextMenu=ct.doc.sel,clearTimeout(At.detectingSelectAll);function oi(){if(mt.selectionStart!=null){var or=ct.somethingSelected(),Lr="\u200B"+(or?mt.value:"");mt.value="\u21DA",mt.value=Lr,ot.prevInput=or?"":"\u200B",mt.selectionStart=1,mt.selectionEnd=Lr.length,At.selForContextMenu=ct.doc.sel}}function Zn(){if(ot.contextMenuPending==Zn&&(ot.contextMenuPending=!1,ot.wrapper.style.cssText=Ne,mt.style.cssText=ae,Se&&We<9&&At.scrollbars.setScrollTop(At.scroller.scrollTop=qt),mt.selectionStart!=null)){(!Se||Se&&We<9)&&oi();var or=0,Lr=function(){At.selForContextMenu==ct.doc.sel&&mt.selectionStart==0&&mt.selectionEnd>0&&ot.prevInput=="\u200B"?tr(ct,Pl)(ct):or++<10?At.detectingSelectAll=setTimeout(Lr,500):(At.selForContextMenu=null,At.input.reset())};At.detectingSelectAll=setTimeout(Lr,200)}}if(Se&&We>=9&&oi(),Rt){Jr(it);var Yi=function(){Ui(window,"mouseup",Yi),setTimeout(Zn,20)};an(window,"mouseup",Yi)}else setTimeout(Zn,50)},nl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},nl.prototype.setUneditable=function(){},nl.prototype.needsContentAttribute=!1;function qA(it,ot){if(ot=ot?pn(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=Oe();ot.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function At(){it.value=le.getValue()}var mt;if(it.form&&(an(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(ae){}}ot.finishInit=function(ae){ae.save=At,ae.getTextArea=function(){return it},ae.toTextArea=function(){ae.toTextArea=isNaN,At(),it.parentNode.removeChild(ae.getWrapperElement()),it.style.display="",it.form&&(Ui(it.form,"submit",At),!ot.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=mt))}},it.style.display="none";var le=Ko(function(ae){return it.parentNode.insertBefore(ae,it.nextSibling)},ot);return le}function Vu(it){it.off=Ui,it.on=an,it.wheelEventPixels=$o,it.Doc=ou,it.splitLines=vo,it.countColumn=fe,it.findColumn=xi,it.isWordChar=zt,it.Pass=ri,it.signal=Pi,it.Line=ho,it.changeEnd=xs,it.scrollbarModel=Wi,it.Pos=wn,it.cmpPos=Jn,it.modes=Ss,it.mimeModes=ca,it.resolveMode=Fr,it.getMode=dn,it.modeExtensions=nn,it.extendMode=he,it.copyState=Un,it.startState=Qe,it.innerMode=Yn,it.commands=AA,it.keyMap=Yl,it.keyName=ef,it.isModifierKey=XA,it.lookupKey=Eu,it.normalizeKeyMap=Md,it.StringStream=ye,it.SharedTextMarker=wh,it.TextMarker=un,it.LineWidget=uA,it.e_preventDefault=Zr,it.e_stopPropagation=Ho,it.e_stop=Jr,it.addClass=mn,it.contains=ln,it.rmClass=$t,it.keyNames=Kh}vs(Ko),Oh(Ko);var fu="iter insert remove copy getEditor constructor".split(" ");for(var EA in ou.prototype)ou.prototype.hasOwnProperty(EA)&&Ye(fu,EA)<0&&(Ko.prototype[EA]=function(it){return function(){return it.apply(this.doc,arguments)}}(ou.prototype[EA]));return po(ou),Ko.inputStyles={textarea:nl,contenteditable:Ba},Ko.defineMode=function(it){!Ko.defaults.mode&&it!="null"&&(Ko.defaults.mode=it),fa.apply(this,arguments)},Ko.defineMIME=Pr,Ko.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Ko.defineMIME("text/plain","null"),Ko.defineExtension=function(it,ot){Ko.prototype[it]=ot},Ko.defineDocExtension=function(it,ot){ou.prototype[it]=ot},Ko.fromTextArea=qA,Vu(Ko),Ko.version="5.58.2",Ko})},25419:function(Ci,Ii,Yt){(function(Kt){Kt(Yt(89780),Yt(15525),Yt(98101))})(function(Kt){"use strict";Kt.defineMode("markdown",function(Le,Te){var xn=Kt.getMode(Le,"text/html"),Se=xn.name=="null";function We(fe){if(Kt.findModeByName){var Zt=Kt.findModeByName(fe);Zt&&(fe=Zt.mime||Zt.mimes[0])}var Ye=Kt.getMode(Le,fe);return Ye.name=="null"?null:Ye}Te.highlightFormatting===void 0&&(Te.highlightFormatting=!1),Te.maxBlockquoteDepth===void 0&&(Te.maxBlockquoteDepth=0),Te.taskLists===void 0&&(Te.taskLists=!1),Te.strikethrough===void 0&&(Te.strikethrough=!1),Te.emoji===void 0&&(Te.emoji=!1),Te.fencedCodeBlockHighlighting===void 0&&(Te.fencedCodeBlockHighlighting=!0),Te.fencedCodeBlockDefaultMode===void 0&&(Te.fencedCodeBlockDefaultMode="text/plain"),Te.xml===void 0&&(Te.xml=!0),Te.tokenTypeOverrides===void 0&&(Te.tokenTypeOverrides={});var je={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 de in je)je.hasOwnProperty(de)&&Te.tokenTypeOverrides[de]&&(je[de]=Te.tokenTypeOverrides[de]);var ve=/^([*\-_])(?:\s*\1){2,}\s*$/,It=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,xe=/^\[(x| )\](?=\s)/i,ee=Te.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ge=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Qt=/^[^#!\[\]*_\\<>` "'(~:]+/,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(fe,Zt,Ye){return Zt.f=Zt.inline=Ye,Ye(fe,Zt)}function vt(fe,Zt,Ye){return Zt.f=Zt.block=Ye,Ye(fe,Zt)}function Nt(fe){return!fe||!/\S/.test(fe.string)}function Rt(fe){if(fe.linkTitle=!1,fe.linkHref=!1,fe.linkText=!1,fe.em=!1,fe.strong=!1,fe.strikethrough=!1,fe.quote=0,fe.indentedCode=!1,fe.f==$t){var Zt=Se;if(!Zt){var Ye=Kt.innerMode(xn,fe.htmlState);Zt=Ye.mode.name=="xml"&&Ye.state.tagStart===null&&!Ye.state.context&&Ye.state.tokenize.isInText}Zt&&(fe.f=Xe,fe.block=Gt,fe.htmlState=null)}return fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,fe.prevLine=fe.thisLine,fe.thisLine={stream:null},null}function Gt(fe,Zt){var Ye=fe.column()===Zt.indentation,Gn=Nt(Zt.prevLine.stream),ri=Zt.indentedCode,cn=Zt.prevLine.hr,In=Zt.list!==!1,Wn=(Zt.listStack[Zt.listStack.length-1]||0)+3;Zt.indentedCode=!1;var xi=Zt.indentation;if(Zt.indentationDiff===null&&(Zt.indentationDiff=Zt.indentation,In)){for(Zt.list=null;xi<Zt.listStack[Zt.listStack.length-1];)Zt.listStack.pop(),Zt.listStack.length?Zt.indentation=Zt.listStack[Zt.listStack.length-1]:Zt.list=!1;Zt.list!==!1&&(Zt.indentationDiff=xi-Zt.listStack[Zt.listStack.length-1])}var pi=!Gn&&!cn&&!Zt.prevLine.header&&(!In||!ri)&&!Zt.prevLine.fencedCodeEnd,zi=(Zt.list===!1||cn||Gn)&&Zt.indentation<=Wn&&fe.match(ve),Ie=null;if(Zt.indentationDiff>=4&&(ri||Zt.prevLine.fencedCodeEnd||Zt.prevLine.header||Gn))return fe.skipToEnd(),Zt.indentedCode=!0,je.code;if(fe.eatSpace())return null;if(Ye&&Zt.indentation<=Wn&&(Ie=fe.match(ee))&&Ie[1].length<=6)return Zt.quote=0,Zt.header=Ie[1].length,Zt.thisLine.header=!0,Te.highlightFormatting&&(Zt.formatting="header"),Zt.f=Zt.inline,me(Zt);if(Zt.indentation<=Wn&&fe.eat(">"))return Zt.quote=Ye?1:Zt.quote+1,Te.highlightFormatting&&(Zt.formatting="quote"),fe.eatSpace(),me(Zt);if(!zi&&!Zt.setext&&Ye&&Zt.indentation<=Wn&&(Ie=fe.match(It))){var Ai=Ie[1]?"ol":"ul";return Zt.indentation=xi+fe.current().length,Zt.list=!0,Zt.quote=0,Zt.listStack.push(Zt.indentation),Zt.em=!1,Zt.strong=!1,Zt.code=!1,Zt.strikethrough=!1,Te.taskLists&&fe.match(xe,!1)&&(Zt.taskList=!0),Zt.f=Zt.inline,Te.highlightFormatting&&(Zt.formatting=["list","list-"+Ai]),me(Zt)}else{if(Ye&&Zt.indentation<=Wn&&(Ie=fe.match(et,!0)))return Zt.quote=0,Zt.fencedEndRE=new RegExp(Ie[1]+"+ *$"),Zt.localMode=Te.fencedCodeBlockHighlighting&&We(Ie[2]||Te.fencedCodeBlockDefaultMode),Zt.localMode&&(Zt.localState=Kt.startState(Zt.localMode)),Zt.f=Zt.block=se,Te.highlightFormatting&&(Zt.formatting="code-block"),Zt.code=-1,me(Zt);if(Zt.setext||(!pi||!In)&&!Zt.quote&&Zt.list===!1&&!Zt.code&&!zi&&!nt.test(fe.string)&&(Ie=fe.lookAhead(1))&&(Ie=Ie.match(ge)))return Zt.setext?(Zt.header=Zt.setext,Zt.setext=0,fe.skipToEnd(),Te.highlightFormatting&&(Zt.formatting="header")):(Zt.header=Ie[0].charAt(0)=="="?1:2,Zt.setext=Zt.header),Zt.thisLine.header=!0,Zt.f=Zt.inline,me(Zt);if(zi)return fe.skipToEnd(),Zt.hr=!0,Zt.thisLine.hr=!0,je.hr;if(fe.peek()==="[")return ft(fe,Zt,Kn)}return ft(fe,Zt,Zt.inline)}function $t(fe,Zt){var Ye=xn.token(fe,Zt.htmlState);if(!Se){var Gn=Kt.innerMode(xn,Zt.htmlState);(Gn.mode.name=="xml"&&Gn.state.tagStart===null&&!Gn.state.context&&Gn.state.tokenize.isInText||Zt.md_inside&&fe.current().indexOf(">")>-1)&&(Zt.f=Xe,Zt.block=Gt,Zt.htmlState=null)}return Ye}function se(fe,Zt){var Ye=Zt.listStack[Zt.listStack.length-1]||0,Gn=Zt.indentation<Ye,ri=Ye+3;if(Zt.fencedEndRE&&Zt.indentation<=ri&&(Gn||fe.match(Zt.fencedEndRE))){Te.highlightFormatting&&(Zt.formatting="code-block");var cn;return Gn||(cn=me(Zt)),Zt.localMode=Zt.localState=null,Zt.block=Gt,Zt.f=Xe,Zt.fencedEndRE=null,Zt.code=0,Zt.thisLine.fencedCodeEnd=!0,Gn?vt(fe,Zt,Zt.block):cn}else return Zt.localMode?Zt.localMode.token(fe,Zt.localState):(fe.skipToEnd(),je.code)}function me(fe){var Zt=[];if(fe.formatting){Zt.push(je.formatting),typeof fe.formatting=="string"&&(fe.formatting=[fe.formatting]);for(var Ye=0;Ye<fe.formatting.length;Ye++)Zt.push(je.formatting+"-"+fe.formatting[Ye]),fe.formatting[Ye]==="header"&&Zt.push(je.formatting+"-"+fe.formatting[Ye]+"-"+fe.header),fe.formatting[Ye]==="quote"&&(!Te.maxBlockquoteDepth||Te.maxBlockquoteDepth>=fe.quote?Zt.push(je.formatting+"-"+fe.formatting[Ye]+"-"+fe.quote):Zt.push("error"))}if(fe.taskOpen)return Zt.push("meta"),Zt.length?Zt.join(" "):null;if(fe.taskClosed)return Zt.push("property"),Zt.length?Zt.join(" "):null;if(fe.linkHref?Zt.push(je.linkHref,"url"):(fe.strong&&Zt.push(je.strong),fe.em&&Zt.push(je.em),fe.strikethrough&&Zt.push(je.strikethrough),fe.emoji&&Zt.push(je.emoji),fe.linkText&&Zt.push(je.linkText),fe.code&&Zt.push(je.code),fe.image&&Zt.push(je.image),fe.imageAltText&&Zt.push(je.imageAltText,"link"),fe.imageMarker&&Zt.push(je.imageMarker)),fe.header&&Zt.push(je.header,je.header+"-"+fe.header),fe.quote&&(Zt.push(je.quote),!Te.maxBlockquoteDepth||Te.maxBlockquoteDepth>=fe.quote?Zt.push(je.quote+"-"+fe.quote):Zt.push(je.quote+"-"+Te.maxBlockquoteDepth)),fe.list!==!1){var Gn=(fe.listStack.length-1)%3;Gn?Gn===1?Zt.push(je.list2):Zt.push(je.list3):Zt.push(je.list1)}return fe.trailingSpaceNewLine?Zt.push("trailing-space-new-line"):fe.trailingSpace&&Zt.push("trailing-space-"+(fe.trailingSpace%2?"a":"b")),Zt.length?Zt.join(" "):null}function ce(fe,Zt){if(fe.match(Qt,!0))return me(Zt)}function Xe(fe,Zt){var Ye=Zt.text(fe,Zt);if(typeof Ye!="undefined")return Ye;if(Zt.list)return Zt.list=null,me(Zt);if(Zt.taskList){var Gn=fe.match(xe,!0)[1]===" ";return Gn?Zt.taskOpen=!0:Zt.taskClosed=!0,Te.highlightFormatting&&(Zt.formatting="task"),Zt.taskList=!1,me(Zt)}if(Zt.taskOpen=!1,Zt.taskClosed=!1,Zt.header&&fe.match(/^#+$/,!0))return Te.highlightFormatting&&(Zt.formatting="header"),me(Zt);var ri=fe.next();if(Zt.linkTitle){Zt.linkTitle=!1;var cn=ri;ri==="("&&(cn=")"),cn=(cn+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var In="^\\s*(?:[^"+cn+"\\\\]+|\\\\\\\\|\\\\.)"+cn;if(fe.match(new RegExp(In),!0))return je.linkHref}if(ri==="`"){var Wn=Zt.formatting;Te.highlightFormatting&&(Zt.formatting="code"),fe.eatWhile("`");var xi=fe.current().length;if(Zt.code==0&&(!Zt.quote||xi==1))return Zt.code=xi,me(Zt);if(xi==Zt.code){var pi=me(Zt);return Zt.code=0,pi}else return Zt.formatting=Wn,me(Zt)}else if(Zt.code)return me(Zt);if(ri==="\\"&&(fe.next(),Te.highlightFormatting)){var zi=me(Zt),Ie=je.formatting+"-escape";return zi?zi+" "+Ie:Ie}if(ri==="!"&&fe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Zt.imageMarker=!0,Zt.image=!0,Te.highlightFormatting&&(Zt.formatting="image"),me(Zt);if(ri==="["&&Zt.imageMarker&&fe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Zt.imageMarker=!1,Zt.imageAltText=!0,Te.highlightFormatting&&(Zt.formatting="image"),me(Zt);if(ri==="]"&&Zt.imageAltText){Te.highlightFormatting&&(Zt.formatting="image");var zi=me(Zt);return Zt.imageAltText=!1,Zt.image=!1,Zt.inline=Zt.f=ln,zi}if(ri==="["&&!Zt.image)return Zt.linkText&&fe.match(/^.*?\]/)||(Zt.linkText=!0,Te.highlightFormatting&&(Zt.formatting="link")),me(Zt);if(ri==="]"&&Zt.linkText){Te.highlightFormatting&&(Zt.formatting="link");var zi=me(Zt);return Zt.linkText=!1,Zt.inline=Zt.f=fe.match(/\(.*?\)| ?\[.*?\]/,!1)?ln:Xe,zi}if(ri==="<"&&fe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=De,Te.highlightFormatting&&(Zt.formatting="link");var zi=me(Zt);return zi?zi+=" ":zi="",zi+je.linkInline}if(ri==="<"&&fe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=De,Te.highlightFormatting&&(Zt.formatting="link");var zi=me(Zt);return zi?zi+=" ":zi="",zi+je.linkEmail}if(Te.xml&&ri==="<"&&fe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ai=fe.string.indexOf(">",fe.pos);if(Ai!=-1){var Ti=fe.string.substring(fe.start,Ai);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ti)&&(Zt.md_inside=!0)}return fe.backUp(1),Zt.htmlState=Kt.startState(xn),vt(fe,Zt,$t)}if(Te.xml&&ri==="<"&&fe.match(/^\/\w*?>/))return Zt.md_inside=!1,"tag";if(ri==="*"||ri==="_"){for(var ue=1,Tt=fe.pos==1?" ":fe.string.charAt(fe.pos-2);ue<3&&fe.eat(ri);)ue++;var Ct=fe.peek()||" ",zt=!/\s/.test(Ct)&&(!ht.test(Ct)||/\s/.test(Tt)||ht.test(Tt)),Ht=!/\s/.test(Tt)&&(!ht.test(Tt)||/\s/.test(Ct)||ht.test(Ct)),Mt=null,be=null;if(ue%2&&(!Zt.em&&zt&&(ri==="*"||!Ht||ht.test(Tt))?Mt=!0:Zt.em==ri&&Ht&&(ri==="*"||!zt||ht.test(Ct))&&(Mt=!1)),ue>1&&(!Zt.strong&&zt&&(ri==="*"||!Ht||ht.test(Tt))?be=!0:Zt.strong==ri&&Ht&&(ri==="*"||!zt||ht.test(Ct))&&(be=!1)),be!=null||Mt!=null){Te.highlightFormatting&&(Zt.formatting=Mt==null?"strong":be==null?"em":"strong em"),Mt===!0&&(Zt.em=ri),be===!0&&(Zt.strong=ri);var pi=me(Zt);return Mt===!1&&(Zt.em=!1),be===!1&&(Zt.strong=!1),pi}}else if(ri===" "&&(fe.eat("*")||fe.eat("_"))){if(fe.peek()===" ")return me(Zt);fe.backUp(1)}if(Te.strikethrough){if(ri==="~"&&fe.eatWhile(ri)){if(Zt.strikethrough){Te.highlightFormatting&&(Zt.formatting="strikethrough");var pi=me(Zt);return Zt.strikethrough=!1,pi}else if(fe.match(/^[^\s]/,!1))return Zt.strikethrough=!0,Te.highlightFormatting&&(Zt.formatting="strikethrough"),me(Zt)}else if(ri===" "&&fe.match(/^~~/,!0)){if(fe.peek()===" ")return me(Zt);fe.backUp(2)}}if(Te.emoji&&ri===":"&&fe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Zt.emoji=!0,Te.highlightFormatting&&(Zt.formatting="emoji");var Ge=me(Zt);return Zt.emoji=!1,Ge}return ri===" "&&(fe.match(/^ +$/,!1)?Zt.trailingSpace++:Zt.trailingSpace&&(Zt.trailingSpaceNewLine=!0)),me(Zt)}function De(fe,Zt){var Ye=fe.next();if(Ye===">"){Zt.f=Zt.inline=Xe,Te.highlightFormatting&&(Zt.formatting="link");var Gn=me(Zt);return Gn?Gn+=" ":Gn="",Gn+je.linkInline}return fe.match(/^[^>]+/,!0),je.linkInline}function ln(fe,Zt){if(fe.eatSpace())return null;var Ye=fe.next();return Ye==="("||Ye==="["?(Zt.f=Zt.inline=mn(Ye==="("?")":"]"),Te.highlightFormatting&&(Zt.formatting="link-string"),Zt.linkHref=!0,me(Zt)):"error"}var Oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function mn(fe){return function(Zt,Ye){var Gn=Zt.next();if(Gn===fe){Ye.f=Ye.inline=Xe,Te.highlightFormatting&&(Ye.formatting="link-string");var ri=me(Ye);return Ye.linkHref=!1,ri}return Zt.match(Oe[fe]),Ye.linkHref=!0,me(Ye)}}function Kn(fe,Zt){return fe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Zt.f=sn,fe.next(),Te.highlightFormatting&&(Zt.formatting="link"),Zt.linkText=!0,me(Zt)):ft(fe,Zt,Xe)}function sn(fe,Zt){if(fe.match(/^\]:/,!0)){Zt.f=Zt.inline=gn,Te.highlightFormatting&&(Zt.formatting="link");var Ye=me(Zt);return Zt.linkText=!1,Ye}return fe.match(/^([^\]\\]|\\.)+/,!0),je.linkText}function gn(fe,Zt){return fe.eatSpace()?null:(fe.match(/^[^\s]+/,!0),fe.peek()===void 0?Zt.linkTitle=!0:fe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Zt.f=Zt.inline=Xe,je.linkHref+" url")}var pn={startState:function(){return{f:Gt,prevLine:{stream:null},thisLine:{stream:null},block:Gt,htmlState:null,indentation:0,inline:Xe,text:ce,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(fe){return{f:fe.f,prevLine:fe.prevLine,thisLine:fe.thisLine,block:fe.block,htmlState:fe.htmlState&&Kt.copyState(xn,fe.htmlState),indentation:fe.indentation,localMode:fe.localMode,localState:fe.localMode?Kt.copyState(fe.localMode,fe.localState):null,inline:fe.inline,text:fe.text,formatting:!1,linkText:fe.linkText,linkTitle:fe.linkTitle,linkHref:fe.linkHref,code:fe.code,em:fe.em,strong:fe.strong,strikethrough:fe.strikethrough,emoji:fe.emoji,header:fe.header,setext:fe.setext,hr:fe.hr,taskList:fe.taskList,list:fe.list,listStack:fe.listStack.slice(0),quote:fe.quote,indentedCode:fe.indentedCode,trailingSpace:fe.trailingSpace,trailingSpaceNewLine:fe.trailingSpaceNewLine,md_inside:fe.md_inside,fencedEndRE:fe.fencedEndRE}},token:function(fe,Zt){if(Zt.formatting=!1,fe!=Zt.thisLine.stream){if(Zt.header=0,Zt.hr=!1,fe.match(/^\s*$/,!0))return Rt(Zt),null;if(Zt.prevLine=Zt.thisLine,Zt.thisLine={stream:fe},Zt.taskList=!1,Zt.trailingSpace=0,Zt.trailingSpaceNewLine=!1,!Zt.localState&&(Zt.f=Zt.block,Zt.f!=$t)){var Ye=fe.match(/^\s*/,!0)[0].replace(/\t/g,at).length;if(Zt.indentation=Ye,Zt.indentationDiff=null,Ye>0)return null}}return Zt.f(fe,Zt)},innerMode:function(fe){return fe.block==$t?{state:fe.htmlState,mode:xn}:fe.localState?{state:fe.localState,mode:fe.localMode}:{state:fe,mode:pn}},indent:function(fe,Zt,Ye){return fe.block==$t&&xn.indent?xn.indent(fe.htmlState,Zt,Ye):fe.localState&&fe.localMode.indent?fe.localMode.indent(fe.localState,Zt,Ye):Kt.Pass},blankLine:Rt,getType:me,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return pn},"xml"),Kt.defineMIME("text/markdown","markdown"),Kt.defineMIME("text/x-markdown","markdown")})},98101:function(Ci,Ii,Yt){(function(Kt){Kt(Yt(89780))})(function(Kt){"use strict";Kt.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 Le=0;Le<Kt.modeInfo.length;Le++){var Te=Kt.modeInfo[Le];Te.mimes&&(Te.mime=Te.mimes[0])}Kt.findModeByMIME=function(xn){xn=xn.toLowerCase();for(var Se=0;Se<Kt.modeInfo.length;Se++){var We=Kt.modeInfo[Se];if(We.mime==xn)return We;if(We.mimes){for(var je=0;je<We.mimes.length;je++)if(We.mimes[je]==xn)return We}}if(/\+xml$/.test(xn))return Kt.findModeByMIME("application/xml");if(/\+json$/.test(xn))return Kt.findModeByMIME("application/json")},Kt.findModeByExtension=function(xn){xn=xn.toLowerCase();for(var Se=0;Se<Kt.modeInfo.length;Se++){var We=Kt.modeInfo[Se];if(We.ext){for(var je=0;je<We.ext.length;je++)if(We.ext[je]==xn)return We}}},Kt.findModeByFileName=function(xn){for(var Se=0;Se<Kt.modeInfo.length;Se++){var We=Kt.modeInfo[Se];if(We.file&&We.file.test(xn))return We}var je=xn.lastIndexOf("."),de=je>-1&&xn.substring(je+1,xn.length);if(de)return Kt.findModeByExtension(de)},Kt.findModeByName=function(xn){xn=xn.toLowerCase();for(var Se=0;Se<Kt.modeInfo.length;Se++){var We=Kt.modeInfo[Se];if(We.name.toLowerCase()==xn)return We;if(We.alias){for(var je=0;je<We.alias.length;je++)if(We.alias[je].toLowerCase()==xn)return We}}}})},67549:function(Ci,Ii,Yt){(function(Kt){Kt(Yt(89780))})(function(Kt){"use strict";Kt.defineMode("stex",function(Le,Te){"use strict";function xn(Qt,et){Qt.cmdState.push(et)}function Se(Qt){return Qt.cmdState.length>0?Qt.cmdState[Qt.cmdState.length-1]:null}function We(Qt){var et=Qt.cmdState.pop();et&&et.closeBracket()}function je(Qt){for(var et=Qt.cmdState,nt=et.length-1;nt>=0;nt--){var ht=et[nt];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function de(Qt,et,nt){return function(){this.name=Qt,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 ve={};ve.importmodule=de("importmodule","tag",["string","builtin"]),ve.documentclass=de("documentclass","tag",["","atom"]),ve.usepackage=de("usepackage","tag",["atom"]),ve.begin=de("begin","tag",["atom"]),ve.end=de("end","tag",["atom"]),ve.label=de("label","tag",["atom"]),ve.ref=de("ref","tag",["atom"]),ve.eqref=de("eqref","tag",["atom"]),ve.cite=de("cite","tag",["atom"]),ve.bibitem=de("bibitem","tag",["atom"]),ve.Bibitem=de("Bibitem","tag",["atom"]),ve.RBibitem=de("RBibitem","tag",["atom"]),ve.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function It(Qt,et){Qt.f=et}function xe(Qt,et){var nt;if(Qt.match(/^\\[a-zA-Z@]+/)){var ht=Qt.current().slice(1);return nt=ve.hasOwnProperty(ht)?ve[ht]:ve.DEFAULT,nt=new nt,xn(et,nt),It(et,ge),nt.style}if(Qt.match(/^\\[$&%#{}_]/)||Qt.match(/^\\[,;!\/\\]/))return"tag";if(Qt.match("\\["))return It(et,function(ft,vt){return ee(ft,vt,"\\]")}),"keyword";if(Qt.match("\\("))return It(et,function(ft,vt){return ee(ft,vt,"\\)")}),"keyword";if(Qt.match("$$"))return It(et,function(ft,vt){return ee(ft,vt,"$$")}),"keyword";if(Qt.match("$"))return It(et,function(ft,vt){return ee(ft,vt,"$")}),"keyword";var at=Qt.next();if(at=="%")return Qt.skipToEnd(),"comment";if(at=="}"||at=="]"){if(nt=Se(et),nt)nt.closeBracket(at),It(et,ge);else return"error";return"bracket"}else return at=="{"||at=="["?(nt=ve.DEFAULT,nt=new nt,xn(et,nt),"bracket"):/\d/.test(at)?(Qt.eatWhile(/[\w.%]/),"atom"):(Qt.eatWhile(/[\w\-_]/),nt=je(et),nt.name=="begin"&&(nt.argument=Qt.current()),nt.styleIdentifier())}function ee(Qt,et,nt){if(Qt.eatSpace())return null;if(nt&&Qt.match(nt))return It(et,xe),"keyword";if(Qt.match(/^\\[a-zA-Z@]+/))return"tag";if(Qt.match(/^[a-zA-Z]+/))return"variable-2";if(Qt.match(/^\\[$&%#{}_]/)||Qt.match(/^\\[,;!\/]/)||Qt.match(/^[\^_&]/))return"tag";if(Qt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Qt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Qt.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Qt.skipToEnd(),"comment"):"error"}function ge(Qt,et){var nt=Qt.peek(),ht;return nt=="{"||nt=="["?(ht=Se(et),ht.openBracket(nt),Qt.eat(nt),It(et,xe),"bracket"):/[ \t\r]/.test(nt)?(Qt.eat(nt),null):(It(et,xe),We(et),xe(Qt,et))}return{startState:function(){var Qt=Te.inMathMode?function(et,nt){return ee(et,nt)}:xe;return{cmdState:[],f:Qt}},copyState:function(Qt){return{cmdState:Qt.cmdState.slice(),f:Qt.f}},token:function(Qt,et){return et.f(Qt,et)},blankLine:function(Qt){Qt.f=xe,Qt.cmdState.length=0},lineComment:"%"}}),Kt.defineMIME("text/x-stex","stex"),Kt.defineMIME("text/x-latex","stex")})},15525:function(Ci,Ii,Yt){(function(Kt){Kt(Yt(89780))})(function(Kt){"use strict";var Le={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},Te={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Kt.defineMode("xml",function(xn,Se){var We=xn.indentUnit,je={},de=Se.htmlMode?Le:Te;for(var ve in de)je[ve]=de[ve];for(var ve in Se)je[ve]=Se[ve];var It,xe;function ee(De,ln){function Oe(sn){return ln.tokenize=sn,sn(De,ln)}var mn=De.next();if(mn=="<")return De.eat("!")?De.eat("[")?De.match("CDATA[")?Oe(et("atom","]]>")):null:De.match("--")?Oe(et("comment","-->")):De.match("DOCTYPE",!0,!0)?(De.eatWhile(/[\w\._\-]/),Oe(nt(1))):null:De.eat("?")?(De.eatWhile(/[\w\._\-]/),ln.tokenize=et("meta","?>"),"meta"):(It=De.eat("/")?"closeTag":"openTag",ln.tokenize=ge,"tag bracket");if(mn=="&"){var Kn;return De.eat("#")?De.eat("x")?Kn=De.eatWhile(/[a-fA-F\d]/)&&De.eat(";"):Kn=De.eatWhile(/[\d]/)&&De.eat(";"):Kn=De.eatWhile(/[\w\.\-:]/)&&De.eat(";"),Kn?"atom":"error"}else return De.eatWhile(/[^&<]/),null}ee.isInText=!0;function ge(De,ln){var Oe=De.next();if(Oe==">"||Oe=="/"&&De.eat(">"))return ln.tokenize=ee,It=Oe==">"?"endTag":"selfcloseTag","tag bracket";if(Oe=="=")return It="equals",null;if(Oe=="<"){ln.tokenize=ee,ln.state=vt,ln.tagName=ln.tagStart=null;var mn=ln.tokenize(De,ln);return mn?mn+" tag error":"tag error"}else return/[\'\"]/.test(Oe)?(ln.tokenize=Qt(Oe),ln.stringStartCol=De.column(),ln.tokenize(De,ln)):(De.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Qt(De){var ln=function(Oe,mn){for(;!Oe.eol();)if(Oe.next()==De){mn.tokenize=ge;break}return"string"};return ln.isInAttribute=!0,ln}function et(De,ln){return function(Oe,mn){for(;!Oe.eol();){if(Oe.match(ln)){mn.tokenize=ee;break}Oe.next()}return De}}function nt(De){return function(ln,Oe){for(var mn;(mn=ln.next())!=null;){if(mn=="<")return Oe.tokenize=nt(De+1),Oe.tokenize(ln,Oe);if(mn==">")if(De==1){Oe.tokenize=ee;break}else return Oe.tokenize=nt(De-1),Oe.tokenize(ln,Oe)}return"meta"}}function ht(De,ln,Oe){this.prev=De.context,this.tagName=ln,this.indent=De.indented,this.startOfLine=Oe,(je.doNotIndent.hasOwnProperty(ln)||De.context&&De.context.noIndent)&&(this.noIndent=!0)}function at(De){De.context&&(De.context=De.context.prev)}function ft(De,ln){for(var Oe;;){if(!De.context||(Oe=De.context.tagName,!je.contextGrabbers.hasOwnProperty(Oe)||!je.contextGrabbers[Oe].hasOwnProperty(ln)))return;at(De)}}function vt(De,ln,Oe){return De=="openTag"?(Oe.tagStart=ln.column(),Nt):De=="closeTag"?Rt:vt}function Nt(De,ln,Oe){return De=="word"?(Oe.tagName=ln.current(),xe="tag",se):je.allowMissingTagName&&De=="endTag"?(xe="tag bracket",se(De,ln,Oe)):(xe="error",Nt)}function Rt(De,ln,Oe){if(De=="word"){var mn=ln.current();return Oe.context&&Oe.context.tagName!=mn&&je.implicitlyClosed.hasOwnProperty(Oe.context.tagName)&&at(Oe),Oe.context&&Oe.context.tagName==mn||je.matchClosing===!1?(xe="tag",Gt):(xe="tag error",$t)}else return je.allowMissingTagName&&De=="endTag"?(xe="tag bracket",Gt(De,ln,Oe)):(xe="error",$t)}function Gt(De,ln,Oe){return De!="endTag"?(xe="error",Gt):(at(Oe),vt)}function $t(De,ln,Oe){return xe="error",Gt(De,ln,Oe)}function se(De,ln,Oe){if(De=="word")return xe="attribute",me;if(De=="endTag"||De=="selfcloseTag"){var mn=Oe.tagName,Kn=Oe.tagStart;return Oe.tagName=Oe.tagStart=null,De=="selfcloseTag"||je.autoSelfClosers.hasOwnProperty(mn)?ft(Oe,mn):(ft(Oe,mn),Oe.context=new ht(Oe,mn,Kn==Oe.indented)),vt}return xe="error",se}function me(De,ln,Oe){return De=="equals"?ce:(je.allowMissing||(xe="error"),se(De,ln,Oe))}function ce(De,ln,Oe){return De=="string"?Xe:De=="word"&&je.allowUnquoted?(xe="string",se):(xe="error",se(De,ln,Oe))}function Xe(De,ln,Oe){return De=="string"?Xe:se(De,ln,Oe)}return{startState:function(De){var ln={tokenize:ee,state:vt,indented:De||0,tagName:null,tagStart:null,context:null};return De!=null&&(ln.baseIndent=De),ln},token:function(De,ln){if(!ln.tagName&&De.sol()&&(ln.indented=De.indentation()),De.eatSpace())return null;It=null;var Oe=ln.tokenize(De,ln);return(Oe||It)&&Oe!="comment"&&(xe=null,ln.state=ln.state(It||Oe,De,ln),xe&&(Oe=xe=="error"?Oe+" error":xe)),Oe},indent:function(De,ln,Oe){var mn=De.context;if(De.tokenize.isInAttribute)return De.tagStart==De.indented?De.stringStartCol+1:De.indented+We;if(mn&&mn.noIndent)return Kt.Pass;if(De.tokenize!=ge&&De.tokenize!=ee)return Oe?Oe.match(/^(\s*)/)[0].length:0;if(De.tagName)return je.multilineTagIndentPastTag!==!1?De.tagStart+De.tagName.length+2:De.tagStart+We*(je.multilineTagIndentFactor||1);if(je.alignCDATA&&/<!\[CDATA\[/.test(ln))return 0;var Kn=ln&&/^<(\/)?([\w_:\.-]*)/.exec(ln);if(Kn&&Kn[1])for(;mn;)if(mn.tagName==Kn[2]){mn=mn.prev;break}else if(je.implicitlyClosed.hasOwnProperty(mn.tagName))mn=mn.prev;else break;else if(Kn)for(;mn;){var sn=je.contextGrabbers[mn.tagName];if(sn&&sn.hasOwnProperty(Kn[2]))mn=mn.prev;else break}for(;mn&&mn.prev&&!mn.startOfLine;)mn=mn.prev;return mn?mn.indent+We:De.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:je.htmlMode?"html":"xml",helperType:je.htmlMode?"html":"xml",skipAttribute:function(De){De.state==ce&&(De.state=se)},xmlCurrentTag:function(De){return De.tagName?{name:De.tagName,close:De.type=="closeTag"}:null},xmlCurrentContext:function(De){for(var ln=[],Oe=De.context;Oe;Oe=Oe.prev)Oe.tagName&&ln.push(Oe.tagName);return ln.reverse()}}}),Kt.defineMIME("text/xml","xml"),Kt.defineMIME("application/xml","xml"),Kt.mimeModes.hasOwnProperty("text/html")||Kt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{$u:function(){return ve},BD:function(){return ue},E9:function(){return de},FF:function(){return Jo},FJ:function(){return vt},Hn:function(){return ft},KX:function(){return Rt},NB:function(){return An},S0:function(){return Ie},UL:function(){return It},Vk:function(){return at},Vm:function(){return Bn},YI:function(){return Ai},ZA:function(){return Te},Zt:function(){return xe},al:function(){return Mt},bn:function(){return Ht},bx:function(){return Tt},g2:function(){return Ti},h1:function(){return ce},hD:function(){return po},l4:function(){return We},rU:function(){return kn},s_:function(){return Ct},uz:function(){return Fn},z6:function(){return ee}}),Ci=Yt.hmd(Ci),function(){var jt;function la(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function os(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:la(a)}}function _s(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Ss=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},ca;if(typeof Object.setPrototypeOf=="function")ca=Object.setPrototypeOf;else{var fa;t:{var Pr={a:!0},Fr={};try{Fr.__proto__=Pr,fa=Fr.a;break t}catch(a){}fa=!1}ca=fa?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var dn=ca;function nn(a,y){if(a.prototype=Ss(y.prototype),a.prototype.constructor=a,dn)dn(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 he=typeof Yt.g!="undefined"&&Yt.g!=null?Yt.g:self,Un=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},Yn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Qe(a,y){if(y){var x=he;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&&Yn(x,a,{writable:!0,value:y})}}Qe("Object.assign",function(a){return a||Un}),Qe("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 ye=typeof globalThis=="object"&&globalThis||typeof Yt.g=="object"&&Yt.g.global===Yt.g&&Yt.g||typeof self=="object"&&self.self===self&&self||{};ye.requestAnimationFrame===void 0&&(ye.setImmediate===void 0?ye.requestAnimationFrame=function(a){ye.setTimeout(a,0)}:ye.requestAnimationFrame=ye.setImmediate);function qe(){}function Mn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&ye.clearTimeout(x),x=li(function(){x=-1,a.apply(b,E)},y)}}function li(a,y){return ye.setTimeout(a,y)}function Si(a){return ye.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 Ni(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 lr(a){ye.console&&ye.console.log(a)}function wn(a){return typeof a=="object"&&a!==null}function Jn(a){return Array.isArray(a)||ye.NodeList&&a instanceof ye.NodeList||ye.HTMLCollection&&a instanceof ye.HTMLCollection}function Br(a){return Array.prototype.slice.call(a)}function vr(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 Tr(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 nr(){var a=Eo.pop();return a===void 0?[]:a}function yr(a){a.length=0,Eo.push(a)}function ar(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(wn(a)&&a.constructor)return ar(a.constructor);return typeof a}function Er(a){var y=a;return wn(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 co(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 jo(a,y,x){Object.defineProperty(Ut.prototype,a,{get:y,set:x})}function Xn(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 Oo=ye.navigator!==void 0&&0<ye.navigator.userAgent.indexOf("Trident/7"),as=ye.navigator!==void 0&&ye.navigator.platform!==void 0&&ye.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Eo=[];Object.freeze([]),qe.className="Util",qe.Dx="32ab5ff3b26f42dc0ed90f21472913b5",qe.adym="gojs.net",qe.vfo="28e645fdb266",qe.className="Util";function zn(a,y,x){Go(this),this.j=a,this.xa=y,this.o=x}zn.prototype.toString=function(){return"EnumValue."+this.xa};function Gi(a,y){return y==null||y===""?null:a[y]}he.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 wr(){this.ew=[]}wr.prototype.toString=function(){return this.ew.join("")},wr.prototype.add=function(a){a!==""&&this.ew.push(a)},wr.className="StringBuilder";function Dr(){}Dr.className="PropertyCollection";var Mr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ye.console&&ye.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 ao(){}ao.prototype.reset=function(){},ao.prototype.next=function(){return!1},ao.prototype.Ad=function(){return!1},ao.prototype.first=function(){return null},ao.prototype.any=function(){return!1},ao.prototype.all=function(){return!0},ao.prototype.each=function(){return this},ao.prototype.map=function(){return this},ao.prototype.filter=function(){return this},ao.prototype.de=function(){},ao.prototype.toString=function(){return"EmptyIterator"},he.Object.defineProperties(ao.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),ao.prototype.first=ao.prototype.first,ao.prototype.hasNext=ao.prototype.Ad,ao.prototype.next=ao.prototype.next,ao.prototype.reset=ao.prototype.reset;var Uo=null;ao.className="EmptyIterator",Uo=new ao;function lo(a){this.key=-1,this.value=a}lo.prototype.reset=function(){this.key=-1},lo.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},lo.prototype.Ad=function(){return this.next()},lo.prototype.first=function(){return this.key=0,this.value},lo.prototype.any=function(a){return this.key=-1,a(this.value)},lo.prototype.all=function(a){return this.key=-1,a(this.value)},lo.prototype.each=function(a){return this.key=-1,a(this.value),this},lo.prototype.map=function(a){return new lo(a(this.value))},lo.prototype.filter=function(a){return a(this.value)?new lo(this.value):Uo},lo.prototype.de=function(){this.value=null},lo.prototype.toString=function(){return"SingletonIterator("+this.value+")"},he.Object.defineProperties(lo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),lo.prototype.first=lo.prototype.first,lo.prototype.hasNext=lo.prototype.Ad,lo.prototype.next=lo.prototype.next,lo.prototype.reset=lo.prototype.reset,lo.className="SingletonIterator";function $r(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}$r.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},$r.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},$r.prototype.Ad=function(){return this.next()},$r.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},$r.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},$r.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},$r.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},$r.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 ni,a.s=x,a.xb(),a.iterator},$r.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 ni,a.s=x,a.xb(),a.iterator},$r.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},$r.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},he.Object.defineProperties($r.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}}}),$r.prototype.first=$r.prototype.first,$r.prototype.hasNext=$r.prototype.Ad,$r.prototype.next=$r.prototype.next,$r.prototype.reset=$r.prototype.reset,$r.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 ni,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 ni,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+")"},he.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 ni(a){Go(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=ni.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()#"+qo(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(Jn(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)&&Ni(a,"0 <= i < length",ni,"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)&&Ni(a,"0 <= i < length",ni,"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},ni.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},ni.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},ni.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},ni.prototype.map=function(a){for(var y=new ni,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},ni.prototype.filter=function(a){for(var y=new ni,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=ni.prototype,jt.Gb=function(a,y){0>a&&Ni(a,">= 0",ni,"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)&&Ni(a,"0 <= i < length",ni,"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},ni.prototype.copy=function(){var a=new ni,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},jt=ni.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 qn,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)&&Ni(y,"0 <= from < length",ni,"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},he.Object.defineProperties(ni.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 Uo;var a=this.Sa;return a!==null?(a.reset(),a):new $r(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Uo;var a=this.Hg;return a!==null?(a.reset(),a):new br(this)}}}),ni.prototype.reverse=ni.prototype.reverse,ni.prototype.sortRange=ni.prototype.zi,ni.prototype.sort=ni.prototype.sort,ni.prototype.toSet=ni.prototype.Iv,ni.prototype.toArray=ni.prototype.Fa,ni.prototype.removeRange=ni.prototype.removeRange,ni.prototype.removeAt=ni.prototype.mb,ni.prototype.delete=ni.prototype.delete,ni.prototype.remove=ni.prototype.remove,ni.prototype.insertAt=ni.prototype.Gb,ni.prototype.pop=ni.prototype.pop,ni.prototype.last=ni.prototype.jc,ni.prototype.first=ni.prototype.first,ni.prototype.set=ni.prototype.set,ni.prototype.setElt=ni.prototype.cd,ni.prototype.get=ni.prototype.get,ni.prototype.elt=ni.prototype.M,ni.prototype.indexOf=ni.prototype.indexOf,ni.prototype.has=ni.prototype.has,ni.prototype.contains=ni.prototype.contains,ni.prototype.clear=ni.prototype.clear,ni.prototype.addAll=ni.prototype.addAll,ni.prototype.push=ni.prototype.push,ni.prototype.add=ni.prototype.add,ni.prototype.thaw=ni.prototype.ka,ni.prototype.freeze=ni.prototype.freeze,ni.className="List";function So(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}So.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},So.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)},So.prototype.Ad=function(){return this.next()},So.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},So.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},So.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},So.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},So.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new ni;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},So.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new ni;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},So.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},So.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},he.Object.defineProperties(So.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),So.prototype.first=So.prototype.first,So.prototype.hasNext=So.prototype.Ad,So.prototype.next=So.prototype.next,So.prototype.reset=So.prototype.reset,So.className="SetIterator";function qn(a){Go(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=qn.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()#"+qo(this)},jt.add=function(a){if(a===null)return this;this._isFrozen&&Qn(this,a);var y=a;return wn(a)&&(y=Ds(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Yo(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),Jn(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 wn(a)&&(y=qo(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},qn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},qn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},qn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},qn.prototype.map=function(a){for(var y=new qn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},qn.prototype.filter=function(a){for(var y=new qn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},jt=qn.prototype,jt.remove=function(a){if(a===null)return!1;this._isFrozen&&Qn(this,a);var y=a;if(wn(a)&&(y=qo(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),Jn(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 qn;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()},qn.prototype.copy=function(){var a=new qn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},qn.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},qn.prototype.Hv=function(){var a=new ni,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Go(a){a.__gohashid=ea++}function Ds(a){var y=a.__gohashid;return y===void 0&&(y=ea++,a.__gohashid=y),y}function qo(a){return a.__gohashid}he.Object.defineProperties(qn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Uo;var a=this.Sa;return a!==null?(a.reset(),a):new So(this)}}}),qn.prototype.toList=qn.prototype.Hv,qn.prototype.toArray=qn.prototype.Fa,qn.prototype.clear=qn.prototype.clear,qn.prototype.retainAll=qn.prototype.pA,qn.prototype.removeAll=qn.prototype.hp,qn.prototype.delete=qn.prototype.delete,qn.prototype.remove=qn.prototype.remove,qn.prototype.first=qn.prototype.first,qn.prototype.containsAny=qn.prototype.Ty,qn.prototype.containsAll=qn.prototype.Sy,qn.prototype.has=qn.prototype.has,qn.prototype.contains=qn.prototype.contains,qn.prototype.addAll=qn.prototype.addAll,qn.prototype.add=qn.prototype.add,qn.prototype.thaw=qn.prototype.ka,qn.prototype.freeze=qn.prototype.freeze;var ea=1;qn.className="Set",qn.uniqueHash=Go,qn.hashIdUnique=Ds,qn.hashId=qo;function Bs(a){this.ma=a,this.qa=a.Ja,this.sa=null}Bs.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Bs.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)},Bs.prototype.Ad=function(){return this.next()},Bs.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},Bs.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},Bs.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},Bs.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},Bs.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new ni;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Bs.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new ni;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Bs.prototype.de=function(){this.value=this.key=null,this.qa=-1},Bs.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},he.Object.defineProperties(Bs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Bs.prototype.first=Bs.prototype.first,Bs.prototype.hasNext=Bs.prototype.Ad,Bs.prototype.next=Bs.prototype.next,Bs.prototype.reset=Bs.prototype.reset,Bs.className="MapKeySetIterator";function io(a){qn.call(this),Go(this),this._isFrozen=!0,this.ma=a}nn(io,qn),jt=io.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},io.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},io.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},io.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},io.prototype.map=function(a){for(var y=new qn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},io.prototype.filter=function(a){for(var y=new qn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},io.prototype.copy=function(){return new io(this.ma)},io.prototype.Iv=function(){var a=new qn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},io.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},io.prototype.Hv=function(){var a=new ni,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},he.Object.defineProperties(io.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Uo:new Bs(this.ma)}}}),io.prototype.toList=io.prototype.Hv,io.prototype.toArray=io.prototype.Fa,io.prototype.toSet=io.prototype.Iv,io.prototype.first=io.prototype.first,io.prototype.clear=io.prototype.clear,io.prototype.delete=io.prototype.delete,io.prototype.remove=io.prototype.remove,io.prototype.has=io.prototype.has,io.prototype.contains=io.prototype.contains,io.prototype.add=io.prototype.add,io.prototype.thaw=io.prototype.ka,io.prototype.freeze=io.prototype.freeze,io.className="MapKeySet";function uo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}uo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},uo.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)},uo.prototype.Ad=function(){return this.next()},uo.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},uo.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},uo.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},uo.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},uo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ni;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},uo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new ni;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},uo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},uo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},he.Object.defineProperties(uo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),uo.prototype.first=uo.prototype.first,uo.prototype.hasNext=uo.prototype.Ad,uo.prototype.next=uo.prototype.next,uo.prototype.reset=uo.prototype.reset,uo.className="MapValueSetIterator";function Yo(a,y){this.key=a,this.value=y,this.ll=this.va=null}Yo.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Yo.className="KeyValuePair";function Qo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Qo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Qo.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)},Qo.prototype.Ad=function(){return this.next()},Qo.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},Qo.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},Qo.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},Qo.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},Qo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ni;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Qo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new ni;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Qo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Qo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},he.Object.defineProperties(Qo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Qo.prototype.first=Qo.prototype.first,Qo.prototype.hasNext=Qo.prototype.Ad,Qo.prototype.next=Qo.prototype.next,Qo.prototype.reset=Qo.prototype.reset,Qo.className="MapIterator";function Zi(a){Go(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=Zi.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()#"+qo(this)},jt.add=function(a,y){this._isFrozen&&Qn(this,a);var x=a;wn(a)&&(x=Ds(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Yo(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(Jn(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 Zi)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},Zi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Zi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Zi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Zi.prototype.map=function(a){for(var y=new Zi,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Zi.prototype.filter=function(a){for(var y=new Zi,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},jt=Zi.prototype,jt.contains=function(a){var y=a;return wn(a)&&(y=qo(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 wn(a)&&(y=qo(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(wn(a)&&(y=qo(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()},Zi.prototype.copy=function(){var a=new Zi,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Zi.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 Yo(E.key,E.value),x++}return y},Zi.prototype.Lf=function(){return new io(this)},he.Object.defineProperties(Zi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Uo;var a=this.Sa;return a!==null?(a.reset(),a):new Qo(this)}},iteratorKeys:{get:function(){return 0>=this.count?Uo:new Bs(this)}},iteratorValues:{get:function(){if(0>=this.count)return Uo;var a=this.jf;return a!==null?(a.reset(),a):new uo(this)}}}),Zi.prototype.toKeySet=Zi.prototype.Lf,Zi.prototype.toArray=Zi.prototype.Fa,Zi.prototype.clear=Zi.prototype.clear,Zi.prototype.delete=Zi.prototype.delete,Zi.prototype.remove=Zi.prototype.remove,Zi.prototype.get=Zi.prototype.get,Zi.prototype.getValue=Zi.prototype.I,Zi.prototype.has=Zi.prototype.has,Zi.prototype.contains=Zi.prototype.contains,Zi.prototype.first=Zi.prototype.first,Zi.prototype.addAll=Zi.prototype.addAll,Zi.prototype.set=Zi.prototype.set,Zi.prototype.add=Zi.prototype.add,Zi.prototype.thaw=Zi.prototype.ka,Zi.prototype.freeze=Zi.prototype.freeze,Zi.className="Map";function oe(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,Qs,_a,hl,Ka;oe.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},oe.prototype.h=function(a,y){return this.x=a,this.y=y,this},oe.prototype.sg=function(a,y){return this.x=a,this.y=y,this},oe.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},oe.prototype.copy=function(){var a=new oe;return a.x=this.x,a.y=this.y,a},jt=oe.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 ml(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 oe(x,E)}return new oe}function To(a){return a.x.toString()+" "+a.y.toString()}jt.toString=function(){return"Point("+this.x+","+this.y+")"},jt.D=function(a){return a instanceof oe?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},oe.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=oe.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 Po(a.x-this.x,a.y-this.y)},jt.direction=function(a,y){return Po(a-this.x,y-this.y)};function Po(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 _r(a,y){return y.Cd(a),a}function As(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 da(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Rr(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)},oe.alloc=function(){var a=jr.pop();return a===void 0?new oe:a},oe.allocAt=function(a,y){var x=jr.pop();return x===void 0?new oe(a,y):(x.x=a,x.y=y,x)},oe.free=function(a){jr.push(a)},oe.prototype.isReal=oe.prototype.w,oe.prototype.setSpot=oe.prototype.yi,oe.prototype.setRectSpot=oe.prototype.xi,oe.prototype.snapToGridPoint=oe.prototype.vA,oe.prototype.snapToGrid=oe.prototype.uA,oe.prototype.projectOntoLineSegmentPoint=oe.prototype.gA,oe.prototype.projectOntoLineSegment=oe.prototype.fA,oe.intersectingLineSegments=function(a,y,x,b,E,z,tt,rt){return Je.Rl(a,y,x,b,E,z,tt,rt)},oe.prototype.compareWithLineSegmentPoint=oe.prototype.Ry,oe.compareWithLineSegment=function(a,y,x,b,E,z){return Je.Fl(a,y,x,b,E,z)},oe.prototype.direction=oe.prototype.direction,oe.prototype.directionPoint=oe.prototype.ab,oe.prototype.normalize=oe.prototype.normalize,oe.prototype.distanceSquared=oe.prototype.zd,oe.prototype.distanceSquaredPoint=oe.prototype.Bf,oe.prototype.scale=oe.prototype.scale,oe.prototype.rotate=oe.prototype.rotate,oe.prototype.offset=oe.prototype.offset,oe.prototype.subtract=oe.prototype.re,oe.prototype.add=oe.prototype.add,oe.prototype.equalsApprox=oe.prototype.Xa,oe.prototype.equalTo=oe.prototype.hi,oe.prototype.equals=oe.prototype.D,oe.prototype.set=oe.prototype.set,oe.prototype.setTo=oe.prototype.sg;var jr=[];oe.className="Point",oe.parse=ml,oe.stringify=To,oe.distanceLineSegmentSquared=As,oe.distanceSquared=da,oe.direction=Rr,oe.Origin=zo=new oe(0,0).ja(),oe.InfiniteTopLeft=Qs=new oe(-1/0,-1/0).ja(),oe.InfiniteBottomRight=_a=new oe(1/0,1/0).ja(),oe.SixPoint=hl=new oe(6,6).ja(),oe.NoPoint=Ka=new oe(NaN,NaN).ja(),oe.parse=ml,oe.stringify=To,oe.distanceLineSegmentSquared=As,oe.distanceSquared=da,oe.direction=Rr;function Li(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 eo,cs,Es,Rs,ho,Cs,Wa;Li.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Li.prototype.h=function(a,y){return this.width=a,this.height=y,this},Li.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Li.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Li.prototype.copy=function(){var a=new Li;return a.width=this.width,a.height=this.height,a},jt=Li.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 _l(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 Li(x,E)}return new Li}function ja(a){return a.width.toString()+" "+a.height.toString()}jt.toString=function(){return"Size("+this.width+","+this.height+")"},jt.D=function(a){return a instanceof Li?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)},Li.alloc=function(){var a=ns.pop();return a===void 0?new Li:a},Li.free=function(a){ns.push(a)},Li.prototype.isReal=Li.prototype.w,Li.prototype.inflate=Li.prototype.Bc,Li.prototype.equalsApprox=Li.prototype.Xa,Li.prototype.equalTo=Li.prototype.hi,Li.prototype.equals=Li.prototype.D,Li.prototype.set=Li.prototype.set,Li.prototype.setTo=Li.prototype.sg;var ns=[];Li.className="Size",Li.parse=_l,Li.stringify=ja,Li.ZeroSize=eo=new Li(0,0).ja(),Li.OneSize=cs=new Li(1,1).ja(),Li.SixSize=Es=new Li(6,6).ja(),Li.EightSize=Rs=new Li(8,8).ja(),Li.TenSize=ho=new Li(10,10).ja(),Li.InfiniteSize=Cs=new Li(1/0,1/0).ja(),Li.NoSize=Wa=new Li(NaN,NaN).ja(),Li.parse=_l,Li.stringify=ja;function Nn(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 oe?(x=a.x,a=a.y,y instanceof oe?(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 Li?(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=Nn.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 ua(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},Nn.prototype.copy=function(){var a=new Nn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},jt=Nn.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 Ac(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 Nn(x,E,z,tt)}return new Nn}function $l(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 Nn?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 nA(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 Va(this,y,a,y,a)},jt.Co=function(a){return Va(this,a.top,a.right,a.bottom,a.left)},jt.Fv=function(a){return Va(this,-a.top,-a.right,-a.bottom,-a.left)},jt.Hz=function(a,y,x,b){return Va(this,a,y,x,b)};function Va(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 cc(this,a.x,a.y,a.width,a.height)},jt.Uu=function(a,y,x,b){return cc(this,a,y,x,b)};function cc(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 fs(this,a.x,a.y,0,0)},jt.ed=function(a){return fs(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),fs(this,a,y,x,b)};function fs(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 Gs(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 iA(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},Nn.alloc=function(){var a=es.pop();return a===void 0?new Nn:a},Nn.allocAt=function(a,y,x,b){var E=es.pop();return E===void 0?new Nn(a,y,x,b):E.h(a,y,x,b)},Nn.free=function(a){es.push(a)},he.Object.defineProperties(Nn.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 oe(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Li(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new oe(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}}}),Nn.prototype.isEmpty=Nn.prototype.Mz,Nn.prototype.isReal=Nn.prototype.w,Nn.intersectsLineSegment=function(a,y,x,b,E,z,tt,rt){return Je.Fx(a,y,x,b,E,z,tt,rt)},Nn.prototype.setSpot=Nn.prototype.yi,Nn.prototype.union=Nn.prototype.Kv,Nn.prototype.unionRect=Nn.prototype.ed,Nn.prototype.unionPoint=Nn.prototype.Ye,Nn.prototype.intersects=Nn.prototype.Vu,Nn.prototype.intersectsRect=Nn.prototype.Yc,Nn.prototype.intersect=Nn.prototype.Uu,Nn.prototype.intersectRect=Nn.prototype.Ex,Nn.prototype.grow=Nn.prototype.Hz,Nn.prototype.subtractMargin=Nn.prototype.Fv,Nn.prototype.addMargin=Nn.prototype.Co,Nn.prototype.inflate=Nn.prototype.Bc,Nn.prototype.offset=Nn.prototype.offset,Nn.prototype.contains=Nn.prototype.contains,Nn.prototype.containsRect=Nn.prototype.Re,Nn.prototype.containsPoint=Nn.prototype.ca,Nn.prototype.equalsApprox=Nn.prototype.Xa,Nn.prototype.equalTo=Nn.prototype.hi,Nn.prototype.equals=Nn.prototype.D,Nn.prototype.setSize=Nn.prototype.tA,Nn.prototype.setPoint=Nn.prototype.dd,Nn.prototype.set=Nn.prototype.set,Nn.prototype.setTo=Nn.prototype.sg;var Do=null,Ps=null,es=[];Nn.className="Rect",Nn.parse=Ac,Nn.stringify=$l,Nn.contains=Gs,Nn.intersects=iA,Nn.ZeroRect=Do=new Nn(0,0,0,0).ja(),Nn.NoRect=Ps=new Nn(NaN,NaN,NaN,NaN).ja(),Nn.parse=Ac,Nn.stringify=$l,Nn.contains=Gs,Nn.intersects=iA;function Sr(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}Sr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Sr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Sr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Sr.prototype.copy=function(){var a=new Sr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},jt=Sr.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 Sr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Sr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Sr(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new Sr(x,E):new Sr(x,E,z,tt)}return new Sr}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 Sr?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)},Sr.alloc=function(){var a=Mh.pop();return a===void 0?new Sr:a},Sr.free=function(a){Mh.push(a)},Sr.prototype.isReal=Sr.prototype.w,Sr.prototype.equalsApprox=Sr.prototype.Xa,Sr.prototype.equalTo=Sr.prototype.hi,Sr.prototype.equals=Sr.prototype.D,Sr.prototype.set=Sr.prototype.set,Sr.prototype.setTo=Sr.prototype.sg;var vu=null,gh=null,Mh=[];Sr.className="Margin",Sr.parse=cl,Sr.stringify=dl,Sr.ZeroMargin=vu=new Sr(0,0,0,0).ja(),Sr.TwoMargin=gh=new Sr(2,2,2,2).ja(),Sr.parse=cl,Sr.stringify=dl;function $i(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 ba,Ya,Ml,$u,Gl,bo,ga,Ta,ql,Kl,Iu,iu,Wl,Nl,fo,$c,tu,kc,ph,rA,Sa,qu,qc,zA,dc,ss,Ks,ru,Za,ka,pa,Ws,xa,ol,zh,Tu;$i.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},$i.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},$i.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},$i.prototype.copy=function(){var a=new $i;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},jt=$i.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 La(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function td(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return ba;if(a==="TopLeft")return Ya;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ml;if(a==="TopRight")return $u;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Gl;if(a==="Center")return bo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ga;if(a==="BottomLeft")return Ta;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return ql;if(a==="BottomRight")return Kl;if(a==="TopSide")return Iu;if(a==="LeftSide")return iu;if(a==="RightSide")return Wl;if(a==="BottomSide")return Nl;if(a==="TopBottomSides")return fo;if(a==="LeftRightSides")return $c;if(a==="TopLeftSides")return tu;if(a==="TopRightSides")return kc;if(a==="BottomLeftSides")return ph;if(a==="BottomRightSides")return rA;if(a==="NotTopSide")return Sa;if(a==="NotLeftSide")return qu;if(a==="NotRightSide")return qc;if(a==="NotBottomSide")return zA;if(a==="AllSides")return dc;if(a==="Default")return ss;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 $i(x,E,z,tt)}return new $i}function fc(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(ba)?"None":this.D(Ya)?"TopLeft":this.D(Ml)?"Top":this.D($u)?"TopRight":this.D(Gl)?"Left":this.D(bo)?"Center":this.D(ga)?"Right":this.D(Ta)?"BottomLeft":this.D(ql)?"Bottom":this.D(Kl)?"BottomRight":this.D(Iu)?"TopSide":this.D(iu)?"LeftSide":this.D(Wl)?"RightSide":this.D(Nl)?"BottomSide":this.D(fo)?"TopBottomSides":this.D($c)?"LeftRightSides":this.D(tu)?"TopLeftSides":this.D(kc)?"TopRightSides":this.D(ph)?"BottomLeftSides":this.D(rA)?"BottomRightSides":this.D(Sa)?"NotTopSide":this.D(qu)?"NotLeftSide":this.D(qc)?"NotRightSide":this.D(zA)?"NotBottomSide":this.D(dc)?"AllSides":this.D(ss)?"Default":"None"},jt.D=function(a){return a instanceof $i?(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 $i(.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(Ks))a=iu;else if(a.D(ru))a=Wl;else if(a.D(Za))a=Iu;else if(a.D(ka))a=Nl;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},$i.alloc=function(){var a=_h.pop();return a===void 0?new $i:a},$i.free=function(a){_h.push(a)},$i.prototype.isDefault=$i.prototype.Xb,$i.prototype.isNone=$i.prototype.ys,$i.prototype.isSide=$i.prototype.$c,$i.prototype.isNoSpot=$i.prototype.Mc,$i.prototype.isSpot=$i.prototype.sb,$i.prototype.includesSide=$i.prototype.Hf,$i.prototype.opposite=$i.prototype.gv,$i.prototype.equals=$i.prototype.D,$i.prototype.set=$i.prototype.set,$i.prototype.setTo=$i.prototype.sg;var _h=[];$i.className="Spot",$i.parse=td,$i.stringify=fc,$i.None=ba=La(new $i(0,0,0,0),0).ja(),$i.Default=ss=La(new $i(0,0,-1,0),-1).ja(),$i.TopLeft=Ya=new $i(0,0,0,0).ja(),$i.TopCenter=Ml=new $i(.5,0,0,0).ja(),$i.TopRight=$u=new $i(1,0,0,0).ja(),$i.LeftCenter=Gl=new $i(0,.5,0,0).ja(),$i.Center=bo=new $i(.5,.5,0,0).ja(),$i.RightCenter=ga=new $i(1,.5,0,0).ja(),$i.BottomLeft=Ta=new $i(0,1,0,0).ja(),$i.BottomCenter=ql=new $i(.5,1,0,0).ja(),$i.BottomRight=Kl=new $i(1,1,0,0).ja(),$i.MiddleTop=pa=Ml,$i.MiddleLeft=Ws=Gl,$i.MiddleRight=xa=ga,$i.MiddleBottom=ol=ql,$i.Top=Za=Ml,$i.Left=Ks=Gl,$i.Right=ru=ga,$i.Bottom=ka=ql,$i.TopSide=Iu=La(new $i(0,0,1,1),1).ja(),$i.LeftSide=iu=La(new $i(0,0,1,2),1).ja(),$i.RightSide=Wl=La(new $i(0,0,1,4),1).ja(),$i.BottomSide=Nl=La(new $i(0,0,1,8),1).ja(),$i.TopBottomSides=fo=La(new $i(0,0,1,9),1).ja(),$i.LeftRightSides=$c=La(new $i(0,0,1,6),1).ja(),$i.TopLeftSides=tu=La(new $i(0,0,1,3),1).ja(),$i.TopRightSides=kc=La(new $i(0,0,1,5),1).ja(),$i.BottomLeftSides=ph=La(new $i(0,0,1,10),1).ja(),$i.BottomRightSides=rA=La(new $i(0,0,1,12),1).ja(),$i.NotTopSide=Sa=La(new $i(0,0,1,14),1).ja(),$i.NotLeftSide=qu=La(new $i(0,0,1,13),1).ja(),$i.NotRightSide=qc=La(new $i(0,0,1,11),1).ja(),$i.NotBottomSide=zA=La(new $i(0,0,1,7),1).ja(),$i.AllSides=dc=La(new $i(0,0,1,15),1).ja(),zh=new $i(.156,.156).ja(),Tu=new $i(.844,.844).ja(),$i.parse=td,$i.stringify=fc;function mo(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}mo.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},mo.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},mo.prototype.copy=function(){var a=new mo;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},mo.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},mo.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},mo.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},mo.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},mo.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},mo.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},mo.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},mo.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=mo.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,kt=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,kt),St=Math.max(St,kt),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},mo.alloc=function(){var a=zf.pop();return a===void 0?new mo:a},mo.free=function(a){zf.push(a)},mo.prototype.transformRect=mo.prototype.pp,mo.prototype.transformPoint=mo.prototype.Ga,mo.prototype.scale=mo.prototype.scale,mo.prototype.translate=mo.prototype.translate,mo.prototype.rotate=mo.prototype.rotate,mo.prototype.invert=mo.prototype.Vj,mo.prototype.multiplyInverted=mo.prototype.bv,mo.prototype.multiply=mo.prototype.multiply,mo.prototype.reset=mo.prototype.reset,mo.prototype.isIdentity=mo.prototype.ws,mo.prototype.equals=mo.prototype.D,mo.prototype.setTransform=mo.prototype.setTransform,mo.prototype.set=mo.prototype.set;var zf=[];mo.className="Transform",mo.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,kt=(x+E)/2,_t=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(St+kt)/2,x=(Et+_t)/2,kt=(kt+E)/2,_t=(_t+z)/2;var Ae=(b+kt)/2,re=(x+_t)/2;return Je.cs(a,y,St,Et,b,x,Ae,re,st,lt,ut,dt)||Je.cs(Ae,re,kt,_t,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 Rr(((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))fs(lt,a,y,0,0),fs(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 kt=(b+St)/2,_t=(x+Et)/2;Je.Dl(a,y,ut,dt,b,x,kt,_t,st,lt),Je.Dl(kt,_t,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 kt=(b+St)/2,_t=(x+Et)/2;Je.Qe(a,y,ut,dt,b,x,kt,_t,st,lt),Je.Qe(kt,_t,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))fs(rt,a,y,0,0),fs(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 kt=(a+x)/2,_t=(y+b)/2,Ae=(x+E)/2,re=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(kt+Ae)/2,x=(_t+re)/2,Ae=(Ae+E)/2,re=(re+z)/2;var we=(b+Ae)/2,Pe=(x+re)/2,Ee=1/0,Ve=!1,fn=0,Oi=0;return Je.Eo(a,y,kt,_t,b,x,we,Pe,st,lt,ut,dt,St,Et)&&(a=(Et.x-st)*(Et.x-st)+(Et.y-lt)*(Et.y-lt),a<Ee&&(Ee=a,Ve=!0,fn=Et.x,Oi=Et.y)),Je.Eo(we,Pe,Ae,re,E,z,tt,rt,st,lt,ut,dt,St,Et)&&(Et.x-st)*(Et.x-st)+(Et.y-lt)*(Et.y-lt)<Ee&&(Ve=!0,fn=Et.x,Oi=Et.y),Ve&&(Et.x=fn,Et.y=Oi),Ve},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 kt=((a*rt-y*tt)*(st-ut)-(a-tt)*(st*dt-lt*ut))/St,_t=((a*rt-y*tt)*(lt-dt)-(y-rt)*(st*dt-lt*ut))/St;if(kt>=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),_t<st||_t>a)return Et}else if(a<tt?(st=a,a=tt):st=tt,kt<st||kt>a)return Et;0<St?Et++:0>St&&Et--}else{kt=(a+x)/2,_t=(y+b)/2;var Ae=(x+E)/2,re=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(kt+Ae)/2,x=(_t+re)/2,Ae=(Ae+E)/2,re=(re+z)/2;var we=(b+Ae)/2,Pe=(x+re)/2;Et+=Je.Fo(a,y,kt,_t,b,x,we,Pe,st,lt,ut,dt,St),Et+=Je.Fo(we,Pe,Ae,re,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(Ae,re){var we=(Ae-a)*(Ae-a)+(re-y)*(re-y);we<dt&&(dt=we,st.h(Ae,re))}var dt=1/0;ut(st.x,st.y);var St=0,Et=0,kt=0,_t=0;if(E<tt?(St=E,Et=tt):(St=tt,Et=E),z<rt?(kt=E,_t=tt):(kt=tt,_t=E),St=(Et-St)/2+lt,lt=(_t-kt)/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):!!(Gs(a,y,x,b,E,z)||Gs(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 Dr,um:new Dr,Mf:new Dr,Nf:0,vm:100};Je.za=Je.AA;function Bi(a){Go(this),this.l=2,a===void 0&&(a=Bi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Bi.o?this.ee=new ni:(Bi.V===null&&(Bi.V=new ni().freeze()),this.ee=Bi.V),this.aq=this.ee.Ja,this.Ip=new Nn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ya,this.gg=Kl,this.Rk=this.Sk=NaN,this.Uf=oi}Bi.prototype.copy=function(){var a=new Bi;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===Bi.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},Bi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Bi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Bi.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},Bi.prototype.ka=function(){if(Object.isFrozen(this)&&Fe("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Bi.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},Bi.prototype.Xa=function(a){if(!(a instanceof Bi))return!1;if(this.type!==a.type)return this.type===Bi.j&&a.type===Bi.o?ff(this,a):a.type===Bi.j&&this.type===Bi.o?ff(a,this):!1;if(this.type===Bi.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!==Bi.j||y.type!==Bi.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===Ms&&Je.B(a.endX,y.endX)&&Je.B(a.endY,y.endY))))}Bi.ia=function(a){return a.toString()},Bi.prototype.qb=function(a){a.classType===Bi&&(this.type=a)},Bi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Bi.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 Bi.u:var y=new Nn(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 Bi.F:if(y=new Nn(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 Bi.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()}},Bi.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},Bi.parse=function(a,y){function x(){return _t>=Ee-1?!0:lt[_t+1].match(Ve)!==null}function b(){return _t++,lt[_t]}function E(Gr){var kr=parseFloat(b()),rs=parseFloat(b());Ae===Ae.toLowerCase()&&(kr=Pe.x+kr,rs=Pe.y+rs),Gr.h(kr,rs)}function z(){return E(Pe),Pe}function tt(){return E(we),we}function rt(){var Gr=re.toLowerCase();return Gr!=="c"&&Gr!=="s"&&Gr!=="q"&&Gr!=="t"?Pe:new oe(2*Pe.x-we.x,2*Pe.y-we.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=nr();for(var dt="",St=!1,Et=0;Et<ut.length;Et++){var kt=ut[Et];kt!=="."||St?kt==="."?(st.push(dt),dt="."):dt+=kt:(St=!0,dt+=kt)}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,yr(st)}}var _t=-1,Ae="",re="";st=new oe(0,0);var we=new oe(0,0),Pe=new oe(0,0),Ee=lt.length;a=ky(null),St=dt=ut=!1,Et=!0,kt=null;for(var Ve=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(_t>=Ee-1);)if(re=Ae,Ae=b(),Ae!=="")switch(Ae.toUpperCase()){case"X":Et=!0,dt=ut=!1;break;case"M":for(kt=z(),a.mc===null||Et===!0?(kp(a,kt.x,kt.y,ut,!dt,St),Et=!1):a.moveTo(kt.x,kt.y),st.assign(Pe);!x();)kt=z(),a.lineTo(kt.x,kt.y);break;case"L":for(;!x();)kt=z(),a.lineTo(kt.x,kt.y);break;case"H":for(;!x();)Pe=new oe((Ae===Ae.toLowerCase()?Pe.x:0)+parseFloat(b()),Pe.y),a.lineTo(Pe.x,Pe.y);break;case"V":for(;!x();)Pe=new oe(Pe.x,(Ae===Ae.toLowerCase()?Pe.y:0)+parseFloat(b())),a.lineTo(Pe.x,Pe.y);break;case"C":for(;!x();){kt=new oe,E(kt);var fn=tt(),Oi=z();Cf(a,kt.x,kt.y,fn.x,fn.y,Oi.x,Oi.y)}break;case"S":for(;!x();)kt=rt(),fn=tt(),Oi=z(),Cf(a,kt.x,kt.y,fn.x,fn.y,Oi.x,Oi.y);break;case"Q":for(;!x();)kt=tt(),fn=z(),im(a,kt.x,kt.y,fn.x,fn.y);break;case"T":for(;!x();)we=kt=rt(),fn=z(),im(a,kt.x,kt.y,fn.x,fn.y);break;case"B":for(;!x();){kt=parseFloat(b()),fn=parseFloat(b()),Oi=parseFloat(b());var Ji=parseFloat(b()),Vi=parseFloat(b()),vi=Vi,ti=!1;x()||(vi=parseFloat(b()),x()||(ti=parseFloat(b())!==0)),Ae===Ae.toLowerCase()&&(Oi+=Pe.x,Ji+=Pe.y),a.arcTo(kt,fn,Oi,Ji,Vi,vi,ti)}break;case"A":for(;!x();)kt=Math.abs(parseFloat(b())),fn=Math.abs(parseFloat(b())),Oi=parseFloat(b()),Vi=Ji=!1,ti=vi=0,vi=b(),vi.length===1?(Ji=!!parseFloat(vi),Vi=!!parseFloat(b()),vi=parseFloat(b())):vi.length===2?(Ji=!!parseFloat(vi[0]),Vi=!!parseFloat(vi[1]),vi=parseFloat(b())):(Ji=!!parseFloat(vi[0]),Vi=!!parseFloat(vi[1]),vi=parseFloat(vi.slice(2))),ti=parseFloat(b()),Ae===Ae.toLowerCase()&&(vi=Pe.x+vi,ti=Pe.y+ti),Pe.h(vi,ti),xw(a,kt,fn,Oi,Ji,Vi,vi,ti);break;case"Z":Sw(a),Pe.assign(st);break;case"F":for(kt="",fn=1;lt[_t+fn];)if(lt[_t+fn]==="0")St=!0,fn++;else if(lt[_t+fn].match(/[Uu]/)!==null)fn++;else if(lt[_t+fn].match(Ve)===null)fn++;else{kt=lt[_t+fn];break}kt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(kt="",fn=1;lt[_t+fn];)if(lt[_t+fn].match(/[Ff]/)!==null)fn++;else if(lt[_t+fn].match(Ve)===null)fn++;else{kt=lt[_t+fn];break}kt.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},Bi.Ha=function(a,y){for(var x=a.length,b=oe.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}oe.free(b)},Bi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Bi.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},Bi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Bi.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),oA(this,a,!1),fs(a,0,0,0,0),a.freeze()},Bi.prototype.ix=function(){var a=new Nn;return oA(this,a,!0),a};function oA(a,y,x){switch(a.type){case Bi.j:case Bi.u:case Bi.F:x?y.h(a.od,a.pd,0,0):fs(y,a.od,a.pd,0,0),fs(y,a.Dc,a.Ec,0,0);break;case Bi.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):fs(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 Ms:case sl:st=dt.endX,lt=dt.endY,fs(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 zu:Je.iv(st,lt,dt.point1X,dt.point1Y,dt.endX,dt.endY,.5,y),st=dt.endX,lt=dt.endY;break;case Ua:case mh:var St=dt.type===Ua?Cu(dt,z):th(dt,z,st,lt),Et=St.length;if(Et===0){st=dt.type===Ua?dt.centerX:dt.endX,lt=dt.type===Ua?dt.centerY:dt.endY,fs(y,st,lt,0,0);break}dt=null;for(var kt=0;kt<Et;kt++)dt=St[kt],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)}}Bi.prototype.normalize=function(){this._isFrozen&&Qn(this);var a=this.ix();return this.offset(-a.x,-a.y),new oe(-a.x,-a.y)},Bi.prototype.offset=function(a,y){return this._isFrozen&&Qn(this),this.transform(1,0,0,1,a,y),this},Bi.prototype.scale=function(a,y){return this._isFrozen&&Qn(this),this.transform(a,0,0,y,0,0),this},Bi.prototype.rotate=function(a,y,x){this._isFrozen&&Qn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=mo.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),mo.free(b),this},jt=Bi.prototype,jt.transform=function(a,y,x,b,E,z){switch(this.type){case Bi.j:case Bi.u:case Bi.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 Bi.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 kt=dt[Et];switch(kt.type){case Ms:case sl:tt=kt.endX,rt=kt.endY,kt.endX=tt*a+rt*x+E,kt.endY=tt*y+rt*b+z;break;case kl:tt=kt.point1X,rt=kt.point1Y,kt.point1X=tt*a+rt*x+E,kt.point1Y=tt*y+rt*b+z,tt=kt.point2X,rt=kt.point2Y,kt.point2X=tt*a+rt*x+E,kt.point2Y=tt*y+rt*b+z,tt=kt.endX,rt=kt.endY,kt.endX=tt*a+rt*x+E,kt.endY=tt*y+rt*b+z;break;case zu:tt=kt.point1X,rt=kt.point1Y,kt.point1X=tt*a+rt*x+E,kt.point1Y=tt*y+rt*b+z,tt=kt.endX,rt=kt.endY,kt.endX=tt*a+rt*x+E,kt.endY=tt*y+rt*b+z;break;case Ua:tt=kt.centerX,rt=kt.centerY,kt.centerX=tt*a+rt*x+E,kt.centerY=tt*y+rt*b+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),kt.startAngle+=tt),0>a&&(kt.startAngle=180-kt.startAngle,kt.sweepAngle=-kt.sweepAngle),0>b&&(kt.startAngle=-kt.startAngle,kt.sweepAngle=-kt.sweepAngle),kt.radiusX*=Math.sqrt(a*a+x*x),kt.radiusY!==void 0&&(kt.radiusY*=Math.sqrt(y*y+b*b));break;case mh:if(tt=kt.endX,rt=kt.endY,kt.endX=tt*a+rt*x+E,kt.endY=tt*y+rt*b+z,kt.radiusX===0||kt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),kt.xAxisRotation+=tt),0>a&&(kt.xAxisRotation=180-kt.xAxisRotation,kt.isClockwiseArc=!kt.isClockwiseArc),0>b&&(kt.xAxisRotation=-kt.xAxisRotation,kt.isClockwiseArc=!kt.isClockwiseArc),kt.radiusX*=Math.sqrt(a*a+x*x),kt.radiusY*=Math.sqrt(y*y+b*b);break;default:Fe("Unknown Segment type: "+kt.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 Bi.j:return Je.Yb(x,b,E,z,y,a.x,a.y);case Bi.u:var tt=Nn.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),Nn.free(tt),a;case Bi.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 Bi.o:return yu(this,a,y,!0,!1);default:return!1}};function yu(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,kt=0;kt<Et;kt++){var _t=St[kt],Ae=!_t.isEvenOdd;if(_t.isFilled){if(b&&_t.ca(z,y,x))return!0;var re=_t.segments;st=_t.startX,lt=_t.startY;for(var we=st,Pe=lt,Ee=re.s,Ve=0;Ve<=re.length;Ve++){var fn=void 0;if(Ve!==re.length){fn=Ee[Ve];var Oi=fn.type;a=fn.endX,dt=fn.endY}else Oi=Ms,a=we,dt=Pe;switch(Oi){case sl:if(we=wu(z,y,tt,y,st,lt,we,Pe),isNaN(we))return!0;rt+=we,we=a,Pe=dt;break;case Ms:if(st=wu(z,y,tt,y,st,lt,a,dt),isNaN(st))return!0;rt+=st;break;case kl:ut=Je.Fo(st,lt,fn.point1X,fn.point1Y,fn.point2X,fn.point2Y,a,dt,tt,y,z,y,.5),rt+=ut;break;case zu:ut=Je.Fo(st,lt,(st+2*fn.point1X)/3,(lt+2*fn.point1Y)/3,(2*fn.point1X+a)/3,(2*fn.point1Y+dt)/3,a,dt,tt,y,z,y,.5),rt+=ut;break;case Ua:case mh:Oi=fn.type===Ua?Cu(fn,_t):th(fn,_t,st,lt);var Ji=Oi.length;if(Ji===0){if(st=wu(z,y,tt,y,st,lt,fn.type===Ua?fn.centerX:fn.endX,fn.type===Ua?fn.centerY:fn.endY),isNaN(st))return!0;rt+=st;break}fn=null;for(var Vi=0;Vi<Ji;Vi++){if(fn=Oi[Vi],Vi===0){if(ut=wu(z,y,tt,y,st,lt,fn[0],fn[1]),isNaN(ut))return!0;rt+=ut}ut=Je.Fo(fn[0],fn[1],fn[2],fn[3],fn[4],fn[5],fn[6],fn[7],tt,y,z,y,.5),rt+=ut}fn!==null&&(a=fn[6],dt=fn[7]);break;default:Fe("Unknown Segment type: "+fn.type)}st=a,lt=dt}if(Ae){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(_t.ca(z,y,E?x:x+2))return!0}return!1}function wu(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 Nh(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 oe),this.type===Bi.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===Bi.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===Bi.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===Bi.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=oe.alloc();return Je.qh(y,x,b,E,z,a,rt),a=rt.x,z=rt.y,oe.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Bi.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=oe.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],kt=St.length,_t=0;_t<kt;_t+=2){var Ae=St[_t],re=St[_t+1];if(_t!==0){Je.qh(lt,ut,Ae,re,a.x,a.y,b);var we=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);we<E&&(E=we,tt=rt,tt+=Math.sqrt((b.x-lt)*(b.x-lt)+(b.y-ut)*(b.y-ut))),rt+=Et[(_t-2)/2]}lt=Ae,ut=re}return oe.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===Bi.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===Bi.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===Bi.F){var z=new ma;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new Xo(Ua);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=Cu(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(Oc(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(Oc(b))),b=[],b.push(St.endX),b.push(St.endY),tt=St.endX,z=St.endY,rt=tt,st=z;break;case Ms: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 zu:Je.ep(tt,z,St.point1X,St.point1Y,St.endX,St.endY,.5,b),tt=St.endX,z=St.endY;break;case Ua:var Et=Cu(St,E),kt=Et.length;if(kt===0){b.push(St.centerX),b.push(St.centerY),tt=St.centerX,z=St.centerY;break}for(var _t=0;_t<kt;_t++){var Ae=Et[_t];Je.Qe(tt,z,Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.5,b),tt=Ae[6],z=Ae[7]}break;case mh:if(Et=th(St,E,tt,z),kt=Et.length,_t=St.endX,Ae=St.endY,kt===0){b.push(_t),b.push(Ae),tt=_t,z=Ae;break}for(_t=0;_t<kt;_t++)Ae=Et[_t],Je.Qe(tt,z,Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.5,b),tt=Ae[6],z=Ae[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(Oc(b)))}}}function Oc(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(da(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 $i(a,y,E,z).freeze(),this.gg=new $i(x,b,tt,rt).freeze(),this},he.Object.defineProperties(Bi.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===Bi.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===Bi.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===Bi.o?this.ee=new ni:(Bi.V===null&&(Bi.V=new ni().freeze()),this.ee=Bi.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}}}),Bi.prototype.setSpots=Bi.prototype.pm,Bi.prototype.add=Bi.prototype.add,Bi.prototype.getFractionForPoint=Bi.prototype.xx,Bi.prototype.getPointAndAngleAlongPath=Bi.prototype.Qu,Bi.prototype.getAngleAlongPath=Bi.prototype.wx,Bi.prototype.getPointAlongPath=Bi.prototype.Pu,Bi.prototype.containsPoint=Bi.prototype.ca,Bi.prototype.transform=Bi.prototype.transform,Bi.prototype.rotate=Bi.prototype.rotate,Bi.prototype.scale=Bi.prototype.scale,Bi.prototype.offset=Bi.prototype.offset,Bi.prototype.normalize=Bi.prototype.normalize,Bi.prototype.computeBoundsWithoutOrigin=Bi.prototype.ix,Bi.prototype.equalsApprox=Bi.prototype.Xa,Bi.className="Geometry",Bi.j=new zn(Bi,"Line",0),Bi.u=new zn(Bi,"Rectangle",1),Bi.F=new zn(Bi,"Ellipse",2),Bi.o=new zn(Bi,"Path",3),Bi.V=null,Bi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Bi.className="Geometry",Bi.stringify=Bi.ia,Bi.fillPath=Bi.nb,Bi.parse=Bi.parse,Bi.Line=Bi.j,Bi.Rectangle=Bi.u,Bi.Ellipse=Bi.F,Bi.Path=Bi.o;function ma(a,y,x,b,E){Go(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 ni,this.sr=this.pl.Ja,this.fw=null}ma.prototype.copy=function(){var a=new ma;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=ma.prototype,jt.Xa=function(a){if(!(a instanceof ma&&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 Ms: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 zu: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 Ua:case mh:var dt=ut.type===Ua?Cu(ut,this):th(ut,this,b,E),St=dt.length,Et=ut.type===Ua?ut.centerX:ut.endX,kt=ut.type===Ua?ut.centerY:ut.endY;if(St===0){if(Je.Yb(b,E,Et,kt,x,a,y))return!0;b=Et,E=kt;break}for(Et=null,kt=0;kt<St;kt++)if(Et=dt[kt],kt===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},he.Object.defineProperties(ma.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}}}),ma.prototype.add=ma.prototype.add,ma.prototype.equalsApprox=ma.prototype.Xa,ma.className="PathFigure";function Xo(a,y,x,b,E,z,tt,rt){Go(this),a===void 0&&(a=Ms),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===mh?(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===Ua&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Ua&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Xo.prototype.copy=function(){var a=new Xo;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=Xo.prototype,jt.Xa=function(a){if(!(a instanceof Xo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case sl:case Ms: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 zu: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 Ua: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 mh: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===Xo&&(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 Ms: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 zu: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 Ua: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 mh: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 Cu(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=mo.alloc();tt.reset(),x<b?tt.scale(1,b/x):tt.scale(x/b,1),Bi.Ha(z,tt),mo.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 th(a,y,x,b){function E(_t,Ae,re,we){return(_t*we<Ae*re?-1:1)*Math.acos((_t*re+Ae*we)/(Math.sqrt(_t*_t+Ae*Ae)*Math.sqrt(re*re+we*we)))}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 kt=Et*Et/(y*y)+tt*tt/(z*z);return 1<kt&&(y*=Math.sqrt(kt),z*=Math.sqrt(kt)),kt=(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(kt)&&(kt=0),rt=kt*y*tt/z,kt=kt*-z*Et/y,isNaN(rt)&&(rt=0),isNaN(kt)&&(kt=0),x=(x+lt)/2+dt*rt-St*kt,b=(b+ut)/2+St*rt+dt*kt,ut=E(1,0,(Et-rt)/y,(tt-kt)/z),dt=(Et-rt)/y,lt=(tt-kt)/z,Et=(-Et-rt)/y,rt=(-tt-kt)/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=mo.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(st,Et),Bi.Ha(y,z),mo.free(z),a.ae=y,a.ae}he.Object.defineProperties(Xo.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&&Ni(a,">= zero",Xo,"radiusX"),this._isFrozen&&Qn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Ni(a,">= zero",Xo,"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}}}),Xo.prototype.equalsApprox=Xo.prototype.Xa;var sl=new zn(Xo,"Move",0),Ms=new zn(Xo,"Line",1),kl=new zn(Xo,"Bezier",2),zu=new zn(Xo,"QuadraticBezier",3),Ua=new zn(Xo,"Arc",4),mh=new zn(Xo,"SvgArc",4);Xo.className="PathSegment",Xo.Move=sl,Xo.Line=Ms,Xo.Bezier=kl,Xo.QuadraticBezier=zu,Xo.Arc=Ua,Xo.SvgArc=mh;function Vl(){this.H=null,this.xu=new oe(0,0).freeze(),this.mt=new oe(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}Vl.prototype.copy=function(){var a=new Vl;return this.clone(a)},Vl.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},Vl.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},Vl.prototype.So=function(a,y){var x=this.diagram;return x===null||od(x,a,y),y},Vl.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(od(x,a,y),y.assign(x.Ps(y))),y},he.Object.defineProperties(Vl.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}}}),Vl.prototype.getMultiTouchDocumentPoint=Vl.prototype.Bz,Vl.prototype.getMultiTouchViewPoint=Vl.prototype.So,Vl.className="InputEvent";function gc(){this.H=null,this.xa="",this.ar=this.Lr=null}gc.prototype.copy=function(){var a=new gc;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},gc.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},he.Object.defineProperties(gc.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}}}),gc.className="DiagramEvent";function na(){this.Fm=$s,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}na.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},na.prototype.copy=function(){var a=new na;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=wn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=wn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=wn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=wn(y)&&typeof y.J=="function"?y.J():y,a},na.prototype.qb=function(a){a.classType===na&&(this.change=a)},na.prototype.toString=function(){var a="";return a=this.change===Pu?a+"* ":this.change===$s?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===Pu?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Er(this.object)),this.oldValue!==null&&(a+=" old: "+Er(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Er(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},na.prototype.I=function(a){return a?this.oldValue:this.newValue},na.prototype.Dz=function(a){return a?this.oldParam:this.newParam},na.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},na.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},na.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},na.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},he.Object.defineProperties(na.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===Pu&&(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}}}),na.prototype.redo=na.prototype.redo,na.prototype.canRedo=na.prototype.canRedo,na.prototype.undo=na.prototype.undo,na.prototype.canUndo=na.prototype.canUndo,na.prototype.getParam=na.prototype.Dz,na.prototype.getValue=na.prototype.I,na.prototype.clear=na.prototype.clear;var Pu=new zn(na,"Transaction",-1),$s=new zn(na,"Property",0),Oa=new zn(na,"Insert",1),Ja=new zn(na,"Remove",2);na.className="ChangedEvent",na.Transaction=Pu,na.Property=$s,na.Insert=Oa,na.Remove=Ja;function vl(){this.o=new ni().freeze(),this.xa="",this.j=!1}vl.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},vl.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()},vl.prototype.canUndo=function(){return this.isComplete},vl.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()}},vl.prototype.canRedo=function(){return this.isComplete},vl.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()}},vl.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Zi,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===$s&&b.object){var E=y.get(b.object);E||(E=new Zi,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()}},he.Object.defineProperties(vl.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}}}),vl.prototype.optimize=vl.prototype.ak,vl.prototype.redo=vl.prototype.redo,vl.prototype.canRedo=vl.prototype.canRedo,vl.prototype.undo=vl.prototype.undo,vl.prototype.canUndo=vl.prototype.canUndo,vl.prototype.clear=vl.prototype.clear,vl.className="Transaction";function wt(){this.Pt=new qn,this.Jd=!1,this.u=new ni().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new ni().freeze(),this.hl=new ni,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}wt.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},wt.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},wt.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},jt=wt.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=""),gt(this,!0,a)},jt.Kf=function(){return gt(this,!1,"")};function gt(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&lr("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()}},wt.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},wt.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){lr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},wt.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},wt.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){lr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},wt.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new na;for(b.change=Pu,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},wt.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new vl);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||lr("Change not within a transaction: "+x.toString()))}},wt.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},he.Object.defineProperties(wt.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}}}),wt.prototype.handleChanged=wt.prototype.Tu,wt.prototype.redo=wt.prototype.redo,wt.prototype.undo=wt.prototype.undo,wt.prototype.canUndo=wt.prototype.canUndo,wt.prototype.discardHistoryAfterIndex=wt.prototype.lx,wt.prototype.rollbackTransaction=wt.prototype.Kf,wt.prototype.commitTransaction=wt.prototype.eb,wt.prototype.startTransaction=wt.prototype.Ea,wt.prototype.removeModel=wt.prototype.Rx,wt.prototype.addModel=wt.prototype.Xw,wt.prototype.clear=wt.prototype.clear,wt.className="UndoManager";function yt(){Go(this),this.H=wh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Vl,this.Zr=-1}yt.prototype.toString=function(){return this.name!==""?this.name+" Tool":ar(this.constructor)},yt.prototype.updateAdornments=function(){},yt.prototype.canStart=function(){return this.isEnabled},yt.prototype.doStart=function(){},yt.prototype.doActivate=function(){this.isActive=!0},yt.prototype.doDeactivate=function(){this.isActive=!1},yt.prototype.doStop=function(){},yt.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},yt.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},yt.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},yt.prototype.doMouseMove=function(){},yt.prototype.doMouseUp=function(){this.stopTool()},yt.prototype.doMouseWheel=function(){},yt.prototype.canStartMultiTouch=function(){return!0},yt.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,oe.allocAt(NaN,NaN)),b=y.So(1,oe.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}oe.free(x),oe.free(b)},yt.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,oe.allocAt(NaN,NaN)),b=y.So(1,oe.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 oe((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}oe.free(x),oe.free(b)},yt.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},yt.prototype.doKeyUp=function(){},yt.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},yt.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},yt.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(as?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||(as?y.meta:y.control)||y.shift||a.clearSelection()}},yt.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,Ft(a,b,x),b.handled};function Ft(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)}}}yt.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}},yt.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},yt.prototype.doCurrentObjectChanged=function(){},yt.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===Jt&&!y.shift||E===Xt&&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===Jt&&y.shift||E===Xt&&!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)}}},yt.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},yt.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=li(function(){x.doWaitAfter(b)},a)},yt.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ye.clearTimeout(this.Zr),this.Zr=-1},yt.prototype.doWaitAfter=function(){},yt.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof ts);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},yt.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},he.Object.defineProperties(yt.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof un&&(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}}}),yt.prototype.startTransaction=yt.prototype.Ea,yt.className="Tool";function Ut(){yt.call(this),this.name="ToolManager",this.hb=new ni,this.ob=new ni,this.Hb=new ni,this.F=this.V=850,this.o=new Li(2,2).ja(),this.Ha=5e3,this.ia=Xt,this.u=Be,this.Mp=this.j=null,this.zj=-1}nn(Ut,yt),Ut.prototype.initializeStandardTools=function(){},Ut.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ts&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ut.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Re&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===He){y.bubbles=!0;return}if(this.gestureBehavior===Re)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===Xt?this.mouseWheelBehavior=Jt:this.mouseWheelBehavior===Jt&&(this.mouseWheelBehavior=Xt)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Ut.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===He){y.bubbles=!0;return}if(this.gestureBehavior===Re)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}}Ot(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Ot(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Ut.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof ts&&(y===a||y.rg(a))||this.hideToolTip()},Ut.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()))},Ut.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)},Ut.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 ts)||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()},Ut.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof ts){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 xo&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(ye.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=li(function(){E.hideToolTip()},a)}},Ut.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}},Ut.prototype.hideToolTip=function(){this.zj!==-1&&(ye.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof ts?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof xo&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Ut.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()},Ut.prototype.doMouseWheel=function(){this.standardMouseWheel()},Ut.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Ut.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Ut.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},Ut.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},Ut.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)},he.Object.defineProperties(Ut.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 ts?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}}}),Ut.prototype.replaceStandardTool=Ut.prototype.gb;var Xt=new zn(Ut,"WheelScroll",0),Jt=new zn(Ut,"WheelZoom",1),ne=new zn(Ut,"WheelNone",2),Be=new zn(Ut,"GestureZoom",3),Re=new zn(Ut,"GestureCancel",4),He=new zn(Ut,"GestureNone",5);Ut.className="ToolManager",Ut.WheelScroll=Xt,Ut.WheelZoom=Jt,Ut.WheelNone=ne,Ut.GestureZoom=Be,Ut.GestureCancel=Re,Ut.GestureNone=He;function Ze(){yt.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 oe(NaN,NaN),this.Fr=new oe,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new qn().freeze(),this.ia=new ot,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var pe;nn(Ze,yt),Ze.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},Ze.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},Ze.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,(as?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ze.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),_i=null,this.isActive=!0,this.tl.set(a.position),jn(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&&ou(a),xh(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,_i=this,dr=this.diagram,this.doSimulatedDragOut()))};function jn(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof yi?(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 Ki,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ze.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ze.prototype.Pd=function(a){return a===void 0?new fu(zo):this.isGridSnapEnabled?new fu(new oe(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new fu(a.copy())},Ze.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Sn(this),dA(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<pe.count){for(var y=pe,x=y.length,b=0;b<x;b++){var E=y.M(b);mi(E),On(E),Sn(E),E.diagram.ug()}y.clear()}mi(this),this.tl.h(NaN,NaN),dr!==null&&(dr.currentCursor=""),_i=dr=null,On(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),VA(a,!0)},Ze.prototype.stopTransaction=function(){var a=this.diagram,y=yt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Sn(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Wi(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Rn(){var a=_i;On(a),qi(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ze.prototype.doCancel=function(){On(this),qi(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ze.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ze.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")):qi(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 Zi,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 yi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,jn(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function On(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 yi&&(x.value.point=new oe(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function mi(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 Di(a,y,x){var b=a.diagram,E=a.startPoint,z=oe.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),oe.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(ou(b),b.hk())}Ze.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Sh(b,a,y,this.dragOptions,x)};function qi(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 yi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Lf(b,-E.x,-E.y)}y.bd()}}function Ir(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),gr(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=Wi(a,E,b),!a.isActive&&_i===null)return;var rt=b!==null?b.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Xr)){var st=x.mouseDragOver;st!==null&&(st(E),tt=!0)}if(!a.isActive&&_i===null||(a.doDragOver(y,b),!a.isActive&&_i===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)}Ze.prototype.findDragOverObject=function(a){var y=this;return Kh(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof ts||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Ze.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 Wi(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&&_i===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=ai(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 ai(a){var y=a.panel;return y!==null?y:a instanceof xr&&!(a instanceof Xr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Xi(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=oe.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 oe.free(a),tt}function gr(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=Xi(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,st=null;x.toNode===null&&(rt=Xi(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)):ir(E,tt,z,st,rt):ir(E,null,null,null,null)}}}}Ze.prototype.doDragOver=function(){};function yn(a,y){var x=a.diagram;a.dragsLink&&gr(a,!0),Sn(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;Ln(a,E,z),z=ai(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||_i!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Hi&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||_i!==null){for(a=Nn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Hi&&wi(x,b,a);Nn.free(a)}}}function Ln(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Xr||(x=a.mouseDrop,x!==null&&x(y))}function wi(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 yi},!0,function(E){return E instanceof yi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Ze.prototype.doDropOnto=function(){},Ze.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),xh(a,this.copiedParts),Di(this,this.copiedParts,!1),dA(a,this.copiedParts)):this.mayMove()?(On(this),Di(this,this.draggedParts,!0)):this.mayDragOut()?(on(this,!1),Di(this,this.copiedParts,!1)):On(this),Ir(this,a.lastInput.documentPoint))}},Ze.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?(On(this),on(this,!0),xh(a,this.copiedParts),Di(this,this.copiedParts,!1),dA(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,On(this),this.mayMove()&&(Di(this,this.draggedParts,!0),Ir(this,a.lastInput.documentPoint))),this.Ym=!0,yn(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&si(this),a.Ya(),dA(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Ze.prototype.simulatedMouseMove=function(a,y,x){if(_i===null)return!1;var b=_i.diagram;x instanceof un||(x=null);var E=dr;return x!==E&&(E!==null&&E!==b&&(E.ug(),_i.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),dr=x,x!==null&&x!==b&&(Rn(),E=x.toolManager.findTool("Dragging"),E!==null&&(pe.contains(E)||pe.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)},Ze.prototype.simulatedMouseUp=function(a,y,x){if(_i===null)return!1;var b=dr,E=_i.diagram;if(x===null)return _i.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),_i.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;dr=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Rn(),pe.contains(b)||pe.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 oe),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=_i,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function si(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Hi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Ze.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(as?!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())},Ze.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())},Ze.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())},Ze.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Ze.prototype.Az=function(){return _i},Ze.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=_i;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ze.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),nu(a),a.animationManager.Cc(),a=_i,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ze.prototype.doSimulatedDragLeave=function(){var a=_i;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ze.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=_i;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Ar(this,y.draggedParts.Lf(),!1,a.firstInput),Di(this,this.copiedParts,!1),Ir(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ze.prototype.doSimulatedDrop=function(){var a=this.diagram,y=_i;if(y!==null){var x=y.diagram;if(y.Ym=!0,On(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Ar(this,y.draggedParts.Lf(),!0,a.lastInput),Di(this,this.copiedParts,!1);var b=new qn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),yn(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 Ar(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=Nn.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,Nn.free(z),z=a.Fr,tt=new Zi,rt=oe.alloc(),st=y.iterator;st.next();)lt=st.value,lt instanceof yi&<.canCopy()&&(ut=x.I(lt),ut!==null&&(ut.points=lt.points,Lf(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()&<.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))));oe.free(rt),a.copiedParts=tt,jn(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Ze.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ze.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new oe},he.Object.defineProperties(Ze.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}}}),Ze.prototype.getDraggingSource=Ze.prototype.Az;var _i=null,dr=null;Ze.className="DraggingTool",pe=new ni,jo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ut.prototype.doCancel=function(){_i!==null&&_i.doCancel(),yt.prototype.doCancel.call(this)};function Mi(){yt.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new yi,y=new Yr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Yr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Hi,y=new Yr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=cs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Hi,y=new Yr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=cs,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 Zi,this.Of=this.gj=this.Pf=null}nn(Mi,yt),Mi.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Mi.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=Li.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,Li.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=bo,z=oe.alloc(),x.location=y.ga(bo,z),oe.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Mi.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=cs,y.fromSpot=ba,y.toSpot=ba),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Mi.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Mi.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Hi){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)}},Mi.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Hi))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Hi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Mi.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 Hi){var st=tt.ga(bo,oe.alloc()),lt=x.x-st.x,ut=x.y-st.y;oe.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 Hi&&(x.layer===null||x.layer.allowLink))?y:null},Mi.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},Mi.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},Mi.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Mi.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Hi))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Hi))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},Mi.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)},Mi.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 qn;return b.add(a),tr(this,x,y,b)};function tr(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),tr(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),tr(a,y.labeledLink,x,b))))}Mi.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!==Bh){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!fr(this,a,y,x,!0)}if(b===Ad){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!fr(this,a,y,x,!0)}if(b===ju)return a===y?a=!0:(b=new qn,b.add(y),a=so(this,b,a,y,x)),!a;if(b===Ch)return!fr(this,a,y,x,!1);if(b===hd)return a===y?a=!0:(b=new qn,b.add(y),a=tn(this,b,a,y,x)),!a}return!0};function fr(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&&fr(a,tt,x,b,E)))return!0}return!1}function so(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&&so(a,y,tt,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){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&tn(a,y,rt,b,E))return!0}}return!1}he.Object.defineProperties(Mi.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}}}),Mi.className="LinkingBaseTool";function En(){Mi.call(this),this.name="Linking",this.V={},this.F=null,this.K=$n,this.Xd=null}nn(En,Mi),En.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},En.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 Hi)))return null;var x=this.direction;if(x===$n||x===fi){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===$n||x===ki)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},En.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 Hi&&(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 Hi&&(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)},En.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()},En.prototype.doStop=function(){Mi.prototype.doStop.call(this),this.startObject=null},En.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 Hi&&(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)}}},En.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof yi)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)},En.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},En.prototype.doNoLink=function(){},he.Object.defineProperties(En.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 $n=new zn(En,"Either",0),fi=new zn(En,"ForwardsOnly",0),ki=new zn(En,"BackwardsOnly",0);En.className="LinkingTool",En.Either=$n,En.ForwardsOnly=fi,En.BackwardsOnly=ki;function Ki(){Mi.call(this),this.name="Relinking";var a=new Yr;a.figure="Diamond",a.desiredSize=Rs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Yr,a.figure="Diamond",a.desiredSize=Rs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Nn}nn(Ki,Mi),Ki.prototype.updateAdornments=function(a){if(a!==null&&a instanceof yi){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)}},Ki.prototype.makeAdornment=function(a,y){var x=new ts;return x.type=Tn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Ki.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},Ki.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 ts&&x.adornedPart instanceof yi))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=eo),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=eo),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},Ki.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===jp||x===Ff)&&(x=lh),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}},Ki.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()},Ki.prototype.doStop=function(){Mi.prototype.doStop.call(this),this.handle=null},Ki.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 Hi&&(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()}}},Ki.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},Ki.prototype.doNoRelink=function(){};function ir(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)}he.Object.defineProperties(Ki.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 ts))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Ki.className="RelinkingTool",jo("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),jo("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ji(){yt.call(this),this.name="LinkReshaping";var a=new Yr;a.figure="Rectangle",a.desiredSize=Es,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Yr,a.figure="Diamond",a.desiredSize=Rs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new oe,this.Yq=new ni}nn(ji,yt),ji.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:no},ji.prototype.om=function(a,y){a.reshapingBehavior=y},ji.prototype.updateAdornments=function(a){if(a!==null&&a instanceof yi){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)}},ji.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new ts,E.type=Tn.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,Lo),rt.cursor="n-resize"):Je.B(st.y,lt.y)&&(this.om(rt,Io),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,Lo),rt.cursor="n-resize"):Je.B(st.y,lt.y)&&(this.om(rt,Io),rt.cursor="w-resize")):tt!==z&&(this.om(rt,Fs),rt.cursor="move");E.add(rt)}E.adornedObject=a}return E},ji.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ji.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ji.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},ji.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 yi){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}}},ji.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ji.prototype.stopTransaction=function(){var a=this.diagram,y=yt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ji.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ji.prototype.getResegmentingPoint=function(){return this.handle.ga(bo)},ji.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ji.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&&(Kr(this,tt,b,E,z,!0)||Kr(this,tt,b,E,z,!1))){var rt=y.points.copy();Kr(this,tt,b,E,z,!0)?(rt.cd(x-2,new oe(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new oe(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new oe((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new oe((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&&(Kr(this,b,E,z,tt,!0)||Kr(this,b,E,z,tt,!1))&&(rt=y.points.copy(),Kr(this,b,E,z,tt,!0)?(rt.cd(x-1,new oe(b.x,(b.y+tt.y)/2)),rt.cd(x+2,new oe(tt.x,(b.y+tt.y)/2))):(rt.cd(x-1,new oe((b.x+tt.x)/2,b.y)),rt.cd(x+2,new oe((b.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=oe.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()),oe.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Kr(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}ji.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===Lo?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Io&&(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===Lo?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===Io&&(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,oe.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,oe.alloc()),y.L(0,b.x,b.y),oe.free(z),oe.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,oe.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,oe.alloc()),y.L(y.pointsCount-1,a.x,a.y),oe.free(x),oe.free(a));y.zf()},ji.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Fs:return a;case Lo:return new oe(y.i(x).x,a.y);case Io:return new oe(a.x,y.i(x).y);default:case no:return y.i(x)}},he.Object.defineProperties(ji.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 ts))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}}}),ji.prototype.setReshapingBehavior=ji.prototype.om,ji.prototype.getReshapingBehavior=ji.prototype.Ru;var no=new zn(ji,"None",0),Io=new zn(ji,"Horizontal",1),Lo=new zn(ji,"Vertical",2),Fs=new zn(ji,"All",3);ji.className="LinkReshapingTool",ji.None=no,ji.Horizontal=Io,ji.Vertical=Lo,ji.All=Fs,jo("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function rr(){yt.call(this),this.name="Resizing",this.o=new Li(1,1).freeze(),this.j=new Li(9999,9999).freeze(),this.yg=new Li(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Yr;a.alignmentFocus=bo,a.figure="Rectangle",a.desiredSize=Es,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new oe,this.Dw=new Li,this.Tn=new oe,this.rt=new Li(0,0),this.qt=new Li(1/0,1/0),this.pt=new Li(1,1)}nn(rr,yt),rr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof yi)){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(),eg(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},rr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new ts,y.type=Tn.Spot,y.locationSpot=bo;var x=new ah;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ya)),y.add(this.makeHandle(a,$u)),y.add(this.makeHandle(a,Kl)),y.add(this.makeHandle(a,Ta)),y.add(this.makeHandle(a,pa)),y.add(this.makeHandle(a,xa)),y.add(this.makeHandle(a,ol)),y.add(this.makeHandle(a,Ws))}else if(pl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},rr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},rr.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 Tn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},rr.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},rr.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))},rr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},rr.prototype.stopTransaction=function(){var a=this.diagram,y=yt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},rr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},rr.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,oe.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),oe.free(E)}},rr.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,oe.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),oe.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},rr.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 Xr){var b=new ni;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()}},rr.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=oe.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))),oe.free(St),a},rr.prototype.computeReshape=function(){var a=Zn;return this.adornedObject instanceof Yr&&(a=Jg(this.adornedObject)),!(a===Yi||this.diagram.lastInput.shift)},rr.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},rr.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},rr.prototype.computeCellSize=function(){var a=new Li(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},he.Object.defineProperties(rr.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 ts))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 ts)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}}}),rr.className="ResizingTool",jo("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function _n(){yt.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new oe,this.ue=null;var a=new Yr;a.figure="Ellipse",a.desiredSize=Rs,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new oe(NaN,NaN),this.u=0,this.F=50}nn(_n,yt),_n.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)}},_n.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new ts,y.type=Tn.Position,y.locationSpot=bo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(pl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},_n.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},_n.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)},_n.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)},_n.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)},_n.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new oe(NaN,NaN),this.isActive=a.isMouseCaptured=!1},_n.prototype.stopTransaction=function(){var a=this.diagram,y=yt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},_n.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},_n.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},_n.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()},_n.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()}},_n.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},he.Object.defineProperties(_n.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 ts))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 ts)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}}}),_n.className="RotatingTool",jo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Is(){yt.call(this),this.name="ClickSelecting"}nn(Is,yt),Is.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Is.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Is.className="ClickSelectingTool";function Wo(){yt.call(this),this.name="Action",this.pk=null}nn(Wo,yt),Wo.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},Wo.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()},Wo.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))}},Wo.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()},Wo.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())},Wo.prototype.doStop=function(){this.pk=null},Wo.className="ActionTool";function zr(){yt.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new oe(0,0)}nn(zr,yt),zr.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)},zr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},zr.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 xr)x.Zc()&&(pl(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);wn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=oe.allocAt(a.x,a.y);this.isGridSnapEnabled&&cA(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),oe.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},he.Object.defineProperties(zr.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}}}),zr.className="ClickCreatingTool";function ro(){yt.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new xr;a.layerName="Tool",a.selectable=!1;var y=new Yr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}nn(ro,yt),ro.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))},ro.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ro.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ro.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=Li.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Li.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ro.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()},ro.prototype.computeBoxBounds=function(){var a=this.diagram;return new Nn(a.firstInput.documentPoint,a.lastInput.documentPoint)},ro.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),as?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 ni,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)}},he.Object.defineProperties(ro.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}}}),ro.className="DragSelectingTool";function qr(){yt.call(this),this.name="Panning",this.Xt=new oe,this.xy=new oe,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ye.document,"scroll",a.Kw,!1),a.stopTool()}}nn(qr,yt),qr.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())},qr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ye.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},qr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},qr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},qr.prototype.doMouseMove=function(){this.move()},qr.prototype.doMouseUp=function(){this.move(),this.stopTool()},qr.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)}},he.Object.defineProperties(qr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),qr.className="PanningTool",jo("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),jo("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),jo("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),jo("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),jo("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function xo(){this.F=this.u=this.j=this.o=null}he.Object.defineProperties(xo.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}}}),xo.className="HTMLInfo";function $o(a,y,x){this.text=a,this.hx=y,this.visible=x}$o.className="ContextMenuButtonInfo";function ls(){yt.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new oe,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}nn(ls,yt);function bs(a){var y=new xo;y.show=function(E,z,tt){tt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},qs=y,a.tu=function(){a.stopTool()},y=Si("div");var x=Si("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=Si("style");ye.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",Zo,!1),b.addEventListener(y,"selectstart",Zo,!1),b.addEventListener(x,"contextmenu",Zo,!1)),y.className="goCXforeground",x.className="goCXbackground",ye.document.body&&(ye.document.body.appendChild(y),ye.document.body.appendChild(x)),Ea=y,Au=x,Ro=!0}function Zo(a){return a.preventDefault(),!1}ls.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)},ls.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ls.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ls.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof un||(a instanceof ze?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},ls.prototype.doActivate=function(){},ls.prototype.doMouseDown=function(){if(yt.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof ts){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&js(this)},ls.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof ts){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}js(this)};function js(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof xo||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Fa(a,!0),a.isActive||a.stopTool())}ls.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Fa(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=qs,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof ze?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof ts&&!a.currentContextMenu.visible&&a.stopTool()}}ls.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ls.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof ts){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 xo&&a.show(y,x,this);this.currentContextMenu=a},ls.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}},ls.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof ts?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof xo&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function xs(a){var y=new ni;return y.add(new $o("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new $o("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new $o("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new $o("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new $o("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new $o("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new $o("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new $o("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new $o("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new $o("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new $o("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new $o("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new $o("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}ls.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=xs(this)),Ea.innerHTML="",Au.addEventListener("pointerdown",this.tu,!1);var y=this,x=Si("ul");x.className="goCXul",Ea.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=Si("li"),z.className="goCXli";var tt=Si("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)}}Ea.style.display="block",Au.style.display="block"},ls.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===qs){Ea.style.display="none",Au.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Au,"pointerdown",this.tu,!1),this.currentContextMenu=null}},he.Object.defineProperties(ls.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof ts?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Ro===!1&&qs===null&&Ko&&bs(this),qs},set:function(a){a===null&&(Ro=!0),qs=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var qs=null,Ro=!1,Au=null,Ea=null;ls.className="ContextMenuTool",jo("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function ds(){yt.call(this),this.name="TextEditing",this.Zh=new Ls,this.ia=null,this.V=Ih,this.vj=null,this.qa=Ts,this.u=1,this.F=!0,this.o=null,this.j=new xo,this.kt=null,$a(this,this.j)}nn(ds,yt);function $a(a,y){if(Ko){var x=Si("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(Tl)):E==="Tab"?(a.acceptText(yl),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ts){var b=a.kt;a.qa===Da&&(a.qa=bA),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ts){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 Ls&&z instanceof ds)if(z.state===Th)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)}}}ds.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||gs&&gs!==this&&(gs.acceptText(ha),gs&&gs!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ls&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Ih&&!y.isSelected||this.starting===Ol&&2>a.lastInput.clickCount)):!1},ds.prototype.doStart=function(){gs=this,this.textBlock!==null&&this.doActivate()},ds.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 Ls&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Da;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Nn(this.textBlock.ga(Ya),this.textBlock.ga(Kl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},ds.prototype.doCancel=function(){this.stopTool()},ds.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},ds.prototype.doMouseDown=function(){this.isActive&&this.acceptText(ha)},ds.prototype.acceptText=function(a){switch(a){case ha:this.qa===vh?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Da||this.qa===Th||this.qa===bA)&&(this.qa=bu,Il(this));break;case Gh:case Tl:case yl:(Tl!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Da||this.qa===Th||this.qa===bA)&&(this.qa=bu,Il(this))}};function Il(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=vh,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=Th,a.doError(E,z))}}ds.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)},ds.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},ds.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ts,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},ds.prototype.doStop=function(){gs=null},ds.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)))},ds.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},he.Object.defineProperties(ds.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)}}}),ds.prototype.measureTemporaryTextBlock=ds.prototype.Lx;var Gh=new zn(ds,"LostFocus",0),ha=new zn(ds,"MouseDown",1),yl=new zn(ds,"Tab",2),Tl=new zn(ds,"Enter",3),PA=new zn(ds,"SingleClick",0),Ih=new zn(ds,"SingleClickSelected",1),Ol=new zn(ds,"DoubleClick",2),Ts=new zn(ds,"StateNone",0),Da=new zn(ds,"StateActive",1),bA=new zn(ds,"StateEditing",2),bu=new zn(ds,"StateValidating",3),Th=new zn(ds,"StateInvalid",4),vh=new zn(ds,"StateValidated",5),gs=null;ds.className="TextEditingTool",ds.LostFocus=Gh,ds.MouseDown=ha,ds.Tab=yl,ds.Enter=Tl,ds.SingleClick=PA,ds.SingleClickSelected=Ih,ds.DoubleClick=Ol,ds.StateNone=Ts,ds.StateActive=Da,ds.StateEditing=bA,ds.StateValidating=bu,ds.StateInvalid=Th,ds.StateValidated=vh,jo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function xl(a){aA||(sA(),aA=!0),this.H=wh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=rh,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new qn,this.ce=new Pl,this.ce.Yd=this,this.Ei=new qn,this.pu=new qn,this.Sr=new qn,this.pr=new qn,a&&Object.assign(this,a)}xl.prototype.Xe=function(a){this.H=a},xl.prototype.canStart=function(){return!0};function Su(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),tl(a.H),a.zb=!0)}function Bo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===rh?(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===pc&&y.vc.clear(),a.Qw=!!(a.Pk===_A&&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(),mc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==oa&&b!==null&&(delete b.start.scale,delete b.end.scale),ye.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ou(x),bd(x),a.zb=!1,y.start(),y.bc&&(nh(a),x.Ya(),Zd(y,0),nu(x,!0),Ou(a),x.R("AnimationStarting",a)))}))}}function Bl(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function eu(a,y,x,b){a.isTicking||Bl(a)||y instanceof yi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}jt=xl.prototype,jt.fv=function(a){return this.ce.fv(a)},jt.Xu=function(a){return this.ce.Xu(a)};function ku(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 ze&&st.diagram!==null||st instanceof un){rt=!0;break t}}rt=!1}rt?Dc(tt,!1):tt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(nh(E),nu(E.H),Ou(E)),ye.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),ye.requestAnimationFrame(function(){x()}))}function eh(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function nh(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 Ou(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(),mc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),mc(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),Cl(this,a))},jt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),GA(this.ce,y,"position",y.position,y.position),Cl(this,a))};function ih(a,y,x){!a.zb||y.D(x)||Bl(a)||(a.H.pi||(y=x.copy()),GA(a.ce,a.H,"position",y,x))}function _u(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Cl(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Du(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 sA(){function a(x,b,E,z,tt,rt){x.position=new oe(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}var y=new Zi;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 oe(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 oe(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 oe(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 oe(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 Nn(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=Du(b,E,tt,rt,z)}),y.add("stroke",function(x,b,E,z,tt,rt){x.stroke=Du(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=Du(b,E,tt,rt,z)}),y.add("areaBackground",function(x,b,E,z,tt,rt){x.areaBackground=Du(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)}),Gu=y}he.Object.defineProperties(xl.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&&Ni(a,">= 1",xl,"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}}}),xl.prototype.stopAnimation=xl.prototype.Cc;var Gu=null,aA=!1,rh=new zn(xl,"Default",1),_A=new zn(xl,"AnimateLocations",2),pc=new zn(xl,"None",3);xl.className="AnimationManager",xl.defineAnimationEffect=function(a,y){aA||(sA(),aA=!0),Gu.add(a,y)},xl.Default=rh,xl.AnimateLocations=_A,xl.None=pc;function Pl(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=KA,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 Zi,this.Tt=new Zi,this.yl=new qn,this.Ut=new qn,this.dw=Oh,a&&Object.assign(this,a)}Pl.prototype.suspend=function(){this.Xk=!0},Pl.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Dc(this,!0),nh(this.Yd),nu(this.H),Ou(this.Yd),this.H.redraw()};function mc(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=Pl.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 un?a=x:x instanceof ze&&(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===rh&&this===y.defaultAnimation&&(this.Lp=pf,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=$A),nh(y),this.yl.each(function(b){b.data=null,a.add(b)}),Ou(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ku(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 un?this.H=a:a instanceof ze&&a.diagram!==null&&(this.H=a.diagram)),a instanceof xr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return GA(this,a,y,x,b,E),this};function GA(a,y,x,b,E,z){var tt=a.vc;if(y instanceof un&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Xh(b),Vf(),b=[hi.j,hi.u,hi.o,hi.F],Xh(E),Vf(),E=[hi.j,hi.u,hi.o,hi.F]),tt.contains(y)){var rt=tt.I(y),st=rt.start,lt=rt.end;st[x]===void 0&&(st[x]=lA(b)),lt[x]=lA(E)}else st={},lt={},st[x]=lA(b),lt[x]=lA(E),rt=st.position,y instanceof ze&&rt instanceof oe&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(lt.position),rt=new WA(st,lt,z),tt.add(y,rt);tt=st[x],tt instanceof oe&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof xr?rt.Ku.location=lA(y.location):z&&(rt.Ku[x]=lA(b))}function lA(a){return a instanceof oe||a instanceof Li?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 Dc(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),nh(x),Zd(a,E),nu(a.H,!0),Ou(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 Zd(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof ze&&z.diagram===null)){var tt=b.value,rt=E?tt.end:tt.start;tt=E?tt.start:tt.end;var st=Gu,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,nh(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=Gu;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 xr&&(tt.location=ut.location),rt.nv&&tt instanceof xr&&tt.Zb(!1)}if(y.As.clear(),VA(y,!1),y.Ya(),y.N(),nu(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()}nu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Ou(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),mc(this,null),x.Ml(this),y.$b())}},jt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Xr&&(b=y.placeholder),b!==null?(x=b.ga(Ya),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new oe(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Xr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Hi&&this.Cj(b,y)},jt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Xr&&(x=y.placeholder),x!==null){var b=x.ga(Ya);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 Xr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Hi&&this.Aj(b,y)}},jt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},he.Object.defineProperties(Pl.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Ni(a,">= 1",Pl,"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}}}),Pl.prototype.getTemporaryState=Pl.prototype.Ez,Pl.prototype.stop=Pl.prototype.stop,Pl.prototype.add=Pl.prototype.add,Pl.prototype.addTemporaryPart=Pl.prototype.Iy;function KA(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function pf(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Pl.className="Animation",Pl.EaseLinear=function(a,y,x,b){return x*a/b+y},Pl.EaseInOutQuad=KA,Pl.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Pl.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Pl.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Pl.EaseOutExpo=pf;function WA(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}WA.className="AnimationState";function yh(a,y,x){this.xd=null,this.rf=a,this.so=x||Jd,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=bl))}yh.prototype.copy=function(){var a=new yh(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 jc(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))}he.Object.defineProperties(yh.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 Jd=new zn(yh,"Default",1),bl=new zn(yh,"Immediate",2),vc=new zn(yh,"Bundled",3);yh.className="AnimationTrigger",yh.Default=Jd,yh.Immediate=bl,yh.Bundled=vc;function qa(a){Go(this),this.H=null,this.Pa=new ni,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=qa.prototype,jt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Hr(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 Xr?E++:st instanceof Hi?b++:st instanceof yi?z++:st instanceof ts?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&&qo(b)&&(rt+=" #"+qo(b)),x instanceof Hi?rt+=" "+Er(b):x instanceof yi&&(rt+=" "+Er(x.fromNode)+" "+Er(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=oe.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((b!==!0||eg(rt)!==!1)&&rt.isVisible()&&(E.assign(a),_r(E,rt.oe),rt=rt.ic(E,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return oe.free(E),rt}return oe.free(E),null},jt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof ni||b instanceof qn||(b=new qn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=oe.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var st=tt[rt];if((E!==!0||eg(st)!==!1)&&st.isVisible()){z.assign(a),_r(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 oe.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 ni||E instanceof qn||(E=new qn),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||eg(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||eg(lt)!==!1)&&z(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 ni||E instanceof qn)&&(z=E),E=!0),z instanceof ni||z instanceof qn||(z=new qn),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=oe.alloc(),st=oe.alloc(),lt=this.Pa.s,ut=lt.length;ut--;){var dt=lt[ut];if((tt!==!0||eg(dt)!==!1)&&dt.isVisible()){rt.assign(a),_r(rt,dt.oe),st.h(a.x+y,a.y),_r(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 oe.free(rt),oe.free(st),z},jt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=nr();for(var E=nr(),z=0;z<b;z++){var tt=x[z];if(tt.vw=z,tt instanceof yi){if(tt.fd===!1)continue}else if(tt instanceof ts&&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]);yr(a),yr(E)}}};function uA(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=uA(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=Nn.alloc(),st=0;st<b;st++)this.Oj(a,x[st],y,z,tt,rt,!0);if(Nn.free(rt),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function yc(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=uA(a,y),rt=a.Zq;rt.length=0;for(var st=x.scale,lt=Nn.alloc(),ut=0;ut<z;ut++){var dt=E[ut];b.contains(dt)&&a.Oj(y,dt,x,rt,st,lt,!1)}Nn.free(lt),y.globalAlpha=tt}}}jt.Oj=function(a,y,x,b,E,z,tt){if(tt&&!eg(y))a.Hs(y);else{if(b!==null&&y instanceof yi&&(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 lu?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&&(zs(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(zs(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),zs(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($s,a,this,y,x,b,E)},jt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Hr(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)),Cd(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,Hr(y),a};function Cd(a,y,x){if(y=kh(a,y,x),x instanceof Xr&&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&&Cd(a,-1,y)}x.svg!==null&&x.svg.remove()}function kh(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}he.Object.defineProperties(qa.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)&&Ni(a,"0 <= value <= 1",qa,"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))}}}),qa.prototype.findObjectsNear=qa.prototype.og,qa.prototype.findObjectsIn=qa.prototype.Cf,qa.prototype.findObjectsAt=qa.prototype.ji,qa.prototype.findObjectAt=qa.prototype.ic,qa.className="Layer";function un(a,y){if(su||(nl(),su=!0),Go(this),wh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Ko){var x=this,b=function(){x.removeEventListener(ye.document,"DOMContentLoaded",b,!1),x.setRTL()};ye.document.body!==null?this.setRTL():x.addEventListener(ye.document,"DOMContentLoaded",b,!1)}this.ol=null,Vs.add("Model",ps);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===$s&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,$d(this),this.model=Vv(),this.Wg=!0,Ld(this),this.layout=new aa,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 qA,a!==void 0&&(typeof a=="string"||ye.Element&&a instanceof Element?nd(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var cu,wh;function $d(a){a.Yd=new xl,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new ni,a.pj=new Zi,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new oe(NaN,NaN).freeze(),a.du=new oe(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new oe(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new mo,a.zu=new oe(NaN,NaN).freeze(),a.ut=new Nn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Sr(0,0,0,0).freeze(),a.sj=Oh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=oa,a.zk=ss,a.Fg=oa,a.pq=ss,a.yt=Ya,a.Bt=Ya,a.Fc=!0,a.pn=!1,a.De=new qn,a.Eh=new Zi,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Sr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Vl,a.bq.diagram=a,a.Qg=new Vl,a.Qg.diagram=a,a.cj=new Vl,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,Cc(a),a.ai=new qn,a.Ht=!0,a.uu=pA,a.pw=!1,a.wu=Bh,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 Zi,a.Xn=new ni,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 Sr(5).freeze(),a.Hw=new qn().freeze(),a.Nt=999999999,a.nw=new qn().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 qn,a.ow=new qn,a.Xh=null,a.aw=new Li(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new oe,bounds:new Nn,Py:new Li,bA:new Li,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Nn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Li(NaN,NaN).freeze(),a.Sp=new Nn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Zi;var y=new Hi,x=new Ls;x.bind(new al("text","",Er)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Hi,x=new Ls,x.stroke="brown",x.bind(new al("text","",Er)),y.add(x),a.Lg.add("Comment",y),y=new Hi,y.selectable=!1,y.avoidable=!1,x=new Yr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Li(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Zi,y=new Xr,y.selectionObjectName="GROUPPANEL",y.type=Tn.Vertical,x=new Ls,x.font="bold 12pt sans-serif",x.bind(new al("text","",Er)),y.add(x),x=new Tn(Tn.Auto),x.name="GROUPPANEL";var b=new Yr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new ah,b.padding=new Sr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Zi,y=new yi,x=new Yr,x.isPanelMain=!0,y.add(x),x=new Yr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new yi,x=new Yr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new ts,y.type=Tn.Auto,x=new Yr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new ah,x.margin=new Sr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new ts,y.type=Tn.Link,x=new Yr,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 ps,a.toolManager=new Ut,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=ed(),a.eq=null,a.fq=Ka,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 oe,a.zy=500,a.wp=new oe,a.wq=!1}un.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),fl=null,gl="",Pd(this,!1),this.Xn.clear(),Ip(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Pd(a,y){a.animationManager.Cc(!0),a.Hw=new qn().freeze(),a.nw=new qn().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(),Ip(),a.Og.clear(),Eo=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function ed(){return null}un.prototype.reset=function(){this.clear(),this.vb=!0,$d(this),Ku(this),this.Wg=!0,Ld(this),this.layout=new aa,this.Wg=!1,this.model=Vv(),this.model.undoManager=new wt,this.vb=this.rn=!1,this.N()},un.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ye.document.body);var y=Si("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},un.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ye.document.body);var y=0;if(Ko){var x=Ys;y=cu,x===null&&(x=Ys=Si("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=cu=Si("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||as||(y=11)}this.Db=y,this.Gw=!0},un.prototype.qb=function(a){a.classType===un&&(this.autoScale=a)},un.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 nd(a,y){if(Ko){if(y!=null||Fe("Diagram setup requires an argument DIV."),a.Ka!==null&&Fe("Diagram has already completed setup."),typeof y=="string"?a.Ka=ye.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&&ye.ResizeObserver){var x=Mn(function(){a.$b()},250);a.ol=new ye.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ye.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=ye.go;var E=new Rl(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",ye.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),Nd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Rl(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,Ko){E=Si("div");var z=Si("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=YA,E.addEventListener("pointerdown",id),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Mn(function(){a.Yh=null,a.N()},300),a.Ov=Mn(function(){bd(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=Yl(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(),Eu(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,Yl(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=Md(a,tt,!0,!1,!0,lt),XA(a,tt,st),st.targetDiagram=Ed(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():Eu(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=Md(a,tt,!1,!1,!1,rt[1]!==null);var st=ye.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,XA(a,ut,rt),rt.targetObject=null,a.doMouseMove(),Eu(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=Md(a,tt,!1,!0,!0,!1);var lt=ye.document.elementFromPoint(tt.clientX,tt.clientY)||null;lt!==null&<.shadowRoot!==void 0&<.shadowRoot!==null&&(lt=lt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),lt!==null&<.H instanceof un&<.H!==a&&XA(lt.H,tt,st),lt===null&&(lt=tt.target),XA(a,tt,st),st.clickCount=a.yq,st.targetDiagram=Ed(tt,lt),st.targetObject=null,a.doMouseUp(),Eu(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"+EA[1]+EA[2]+"wI"+Wu.slice(1,5)]["b"+Iw.slice(1,y)](b.Z,Dh,y,y),b.Vc(!0),qd(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}un.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},un.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function qd(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(ye,"resize",a.Ov,!1)}function ou(a){30<a.Sq&&(a.Yh=1)}function VA(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Mr&&Mr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}un.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ye.devicePixelRatio||1},un.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},un.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},un.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},un.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},un.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},un.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},un.prototype.doFocus=function(){this.focus()},un.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ye.scrollX||ye.pageXOffset,y=ye.scrollY||ye.pageYOffset;this.ta.focus(),ye.scrollTo(a,y)}},un.prototype.Oy=function(){this.H.R("GainedFocus")},un.prototype.Ny=function(){this.H.R("LostFocus")};function bd(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===oa&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Ld(a){var y=new qa;y.name="Background",a.Al(y),y=new qa,y.name="",a.Al(y),y=new qa,y.name="Foreground",a.Al(y),y=new qa,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new qa,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new qa,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function mf(a){var y=new Tn(Tn.Grid);y.name="GRID";var x=new Yr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Yr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Yr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Yr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Yr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Yr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new xr,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 YA(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):xc(this.H)}function id(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):xc(this.H)}un.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,kt=E.right,_t=E.bottom;E=this.scale;var Ae=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ae=Ae+a.scrollWidth-a.clientWidth;break;case"reverse":Ae=a.scrollWidth-Ae-a.clientWidth}var re=Ae;St<st||Et<lt?(Ae=oe.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==re&&(Ae.x=re/E+tt,this.ju=re),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ae.y=a.scrollTop/E+rt,this.lu=a.scrollTop),this.position=Ae,oe.free(Ae),this.Ee=this.qr=!1):(Ae=oe.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<dt&&(this.position=Ae.h(re+tt,this.position.y)),ut>kt&&(this.position=Ae.h(-(y.scrollWidth-this.Aa)+re-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<b&&(this.position=Ae.h(this.position.x,a.scrollTop+rt)),z>_t&&(this.position=Ae.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),oe.free(Ae),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,kt=E.right,z=b.bottom,_t=E.bottom,tt=b.x,dt=E.x,rt=b.y,b=E.y,St>=st&&tt>=dt&&ut<=kt&&(x.style.width="1px"),Et>=lt&&rt>=b&&z<=_t&&(x.style.height="1px"))}},un.prototype.computeBounds=function(a){return a===void 0&&(a=new Nn),tl(this),Lu(this,a)};function Lu(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&<.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}un.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Jn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof yi||(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 yi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Nn(NaN,NaN,0,0):x};function Fu(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=oe.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Nn.allocAt(0,0,b.width,b.height);var E=oe.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Nn.free(b),oe.free(E),oe.free(x)}x=a.yh,y&&a.Fg!==oa&&(x=a.Fg);var z=x!==oa?du(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),tf(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 Nn(x,b,E,tt),z,y,!1)}}function du(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===Xa?(y=Math.min(st,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===jl?(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}un.prototype.zoomToFit=function(){var a=this.sj;this.sj=Oh,this.scale=du(this,Xa),a!==Oh&&(Fu(this,!1),tf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},jt=un.prototype,jt.BA=function(a,y){y===void 0&&(y=Xa);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Xa||y===jl)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===jl?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 oe(a.x,a.y)}},jt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new oe(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 ze){this.eq=a;var y=oe.alloc();this.fq=this.op(a.ga(Ya,y)),oe.free(y)}else this.eq=null,this.fq=Ka};function tf(a,y,x,b,E,z){var tt=oe.allocAt(a.pa.x,a.pa.y),rt=tt.x,st=tt.y;if(a.eq!==null){var lt=oe.alloc();lt=a.eq.ga(Ya,lt),rt=lt.x-a.fq.x/a.scale,st=lt.y-a.fq.y/a.scale,E=ba,oe.free(lt)}(z||a.scrollMode===Oh)&&(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),ih(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),Ku(a),oe.free(tt)}jt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Kh(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof xr)return a}else if(a=Kh(this,a,function(x){return x.part}),a instanceof xr)return a;return null},jt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),tl(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 Kh(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),tl(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),ks(this,a,function(b){return b.part},y?function(b){return b instanceof xr&&b.canSelect()}:null,x)};function ks(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof ni||E instanceof qn||(E=new qn),tl(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 ni||b instanceof qn||(b=new qn),tl(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),Fd(this,a,function(E){return E instanceof xr&&(!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 ni||E instanceof qn||(E=new qn),tl(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 qn;tl(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 Fd(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 ni||E instanceof qn||(E=new qn),tl(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),rd(this,a,y,function(z){return z instanceof xr&&(!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 ni||E instanceof qn)&&(z=E),E=!0),z instanceof ni||z instanceof qn||(z=new qn),tl(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 rd(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 ni||E instanceof qn)&&(z=E),E=!0),z instanceof ni||z instanceof qn||(z=new qn),tl(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}un.prototype.acceptEvent=function(a){return Yl(this,a,a instanceof MouseEvent)};function Yl(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?XA(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),as&&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=Ed(y,y.target),b.targetObject=null,b}function Ed(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 Md(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,as&&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 Eu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}un.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Yl(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(),Eu(x,a)},un.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Yl(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(),Eu(x,a)},un.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Yl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Eu(x,a)},un.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Yl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Eu(x,a)},un.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new oe(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?_r(new oe(y,a),this.Ab):new oe(y,a)};function XA(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=oe.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),oe.free(y)):x.documentPoint.h(tt,rt)}function od(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))}}un.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ef(a){a.ld||tl(a),a.Va()}un.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},jt=un.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,nu(this),this.hf=!1,this.du=new oe(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&li(function(){b.ld=!1,Su(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;ye.requestAnimationFrame(function(){y.kg&&y.bd()})}},jt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),nu(this))};function Dl(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||xc(a)||(y&&tl(a),x&&Fu(a,!1))}function nu(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];Ha(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||bd(a),Dl(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Wh(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),tl(a),z=!1,(!a.hf||a.xh)&&(a.hf?Bc(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Bc(a,!1)),z=!0),a.Jk=!1,tl(a),a.ou||ef(a),Dl(a,!0,!1),tt=!1,z?(x=Nn.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,wc(a)),a.R("LayoutCompleted"),Dl(a,!0,!1),Nn.free(x)):x.Ok&&x.Qw&&(a.Fg!==oa?a.scale=du(a,a.Fg):a.yh!==oa?a.scale=du(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Fu(a,!0)),z&&tt&&a.eb("Initial Layout"),tl(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function wc(a){if(a.Fg!==oa)a.scale=du(a,a.Fg);else if(a.yh!==oa)a.scale=du(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Fu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Wh(a)}function tl(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 qn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Xr&&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 Xr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Xr&&x.isVisible()&&Uc(this,x);for(a.reset();a.next();)x=a.value,x instanceof yi&&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 ts&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Uc(a,y){for(var x=nr(),b=nr(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Xr?(Nu(z)||au(z)||tg(z))&&Uc(a,z):z instanceof yi?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(yr(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();yr(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)){Sc(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,Kf(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),AA(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?Vu(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(mo.prototype.Cd=mo.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Sc(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),AA(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?Vu(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(mo.prototype.Cd=mo.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Mr&&Mr.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 hA(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),Sc(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 Nn(z.x,z.y,b.width/E,b.height/E),kt=Et.copy();kt.Co(x),Wh(a,kt),tl(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 _t=a.Mb;y.scale(_t,_t);var Ae=mo.alloc();Ae.reset(),Ae.translate(x.left,x.top),Ae.scale(E),z.x===0&&z.y===0||Ae.translate(-z.x,-z.y),y.setTransform(Ae.m11,Ae.m12,Ae.m21,Ae.m22,Ae.dx,Ae.dy),y.yc(),y instanceof lu&&Kf(y,Ae.m11,Ae.m12,Ae.m21,Ae.m22,Ae.dx,Ae.dy),mo.free(Ae),AA(a,y),y.globalAlpha=a.pb;var re=a.Qj("Grid");if(tt){var we=new qn,Pe=tt.iterator;for(Pe.reset();Pe.next();){var Ee=Pe.value;Ee instanceof xr&&(lt||Ee.layer!==re)&&(Ee.Gj(),we.add(Ee))}for(lt=0;lt<St;lt++)yc(dt[lt],y,a,we,st);we.each(function(fn){return fn.Gj()})}else for(we=0;we<St;we++){var Ve=dt[we];Ve===re?lt&&Ve.gc(y,a,!0):Ve.gc(y,a,st)}a.$i=!1,a.Yf&&Vu(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(dt,St,a,a.viewportBounds),Wh(a),a.ib instanceof lu&&(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 Dr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(as||Oo),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function AA(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 Dr,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 LA(this,a),this};function LA(a,y){var x=a instanceof Tn,b=a instanceof un,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])),wn(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]!=="_"&&!co(z,tt))if(b&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(b&&tt==="Changed"){a.Pe(y[tt]);continue}else if(b&&co(a.toolManager,tt))z=a.toolManager;else if(b&&ud(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof ur&&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 ze&&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 Zi,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")},un.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!==$A&&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=Nn.alloc(),ad(this,this.computeBounds(b)),Nn.free(b)),b=this.ta,b===null||b instanceof Xl)))){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),Vu(this.Yf,this)&&a.clearRect(0,0,st,lt),b=nr(),a=nr(),Et=Math.abs(z),St=Math.abs(y);var kt=ut===0?0:E-Et;ut=oe.allocAt(kt,0),Et=oe.allocAt(Et+kt,rt),a.push(new Nn(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 _t=this.Ab;if(_t.reset(),_t.scale(tt,tt),this.Ca!==1&&_t.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&_t.translate(-tt.x,-tt.y),_r(ut,_t),_r(Et,_t),b.push(new Nn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y))),kt=dt===0?0:rt-St,ut.h(0,kt),Et.h(E,St+kt),a.push(new Nn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y))),_r(ut,_t),_r(Et,_t),b.push(new Nn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y))),Vu(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 Nn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y))),_r(ut,_t),_r(Et,_t),b.push(new Nn(Math.min(ut.x,Et.x),Math.min(ut.y,Et.y),Math.abs(ut.x-Et.x),Math.abs(ut.y-Et.y)))),oe.free(ut),oe.free(Et),Dl(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(Sc(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),AA(this,E),E.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],st=b,tt.visible&&tt.pb!==0){lt=uA(tt,E),dt=tt.Zq,dt.length=0,ut=this.scale,St=Nn.alloc(),Et=tt.Pa.s,_t=Et.length,kt=st.length;for(var Ae=0;Ae<_t;Ae++){var re=Et[Ae],we=Mg(re,re.actualBounds);t:{for(var Pe=2/ut,Ee=4/ut,Ve=0;Ve<kt;Ve++){var fn=st[Ve];if(fn.width!==0&&fn.height!==0&&we.Vu(fn.x-Pe,fn.y-Pe,fn.width+Ee,fn.height+Ee)){we=!0;break t}}we=!1}we&&tt.Oj(E,re,this,dt,ut,St,!0)}Nn.free(St),E.globalAlpha=lt}E.restore(),E.Vc(!0),this.Yf&&Vu(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}yr(b),yr(a),this.ld=!1}}else this.bd();x&&(ou(this),this.bd(),VA(this,!0))}else x?(ou(this),this.bd(),VA(this,!0)):this.bd()}};function Sc(a){a.pn!==!1&&(a.pn=!1,Nd(a,a.Aa,a.ya))}function Nd(a,y,x){Ku(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function xc(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,Ku(a)),!a.hf||!a.viewportBounds.w())return!0;var kt=a.ku,_t=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Ae=a.documentBounds,re=0,we=0,Pe=0,Ee=0,Ve=ut.width,fn=ut.height,Oi=a.rj;a.contentAlignment.sb()?(Ae.width>Ve&&(re=Oi.left,we=Oi.right),Ae.height>fn&&(Pe=Oi.top,Ee=Oi.bottom)):(re=Oi.left,we=Oi.right,Pe=Oi.top,Ee=Oi.bottom);var Ji=Ae.width+re+we,Vi=Ae.height+Pe+Ee;Oi=a.scale;var vi=Ji>st/Oi,ti=Vi>lt/Oi;if(!(z||a.gf||a.Be||vi||ti))return!0;re=Ae.x-re,st=ut.x,we=Ae.right+we,lt=ut.right+tt,Pe=Ae.y-Pe;var Gr=ut.y;Ae=Ae.bottom+Ee,ut=ut.bottom+rt;var kr="1px";if(Ee="1px",a.scrollMode===Oh&&(vi||ti)&&(vi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(vi=1,re+1<st&&(vi=Math.max((st-re)*Oi+a.Aa,vi)),we>lt+1&&(vi=Math.max((we-lt)*Oi+a.Aa,vi)),Ve+tt+1<Ji&&(vi=Math.max((Ji-Ve)*Oi+a.Aa,vi)),kr=vi.toString()+"px"),ti&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(vi=1,Pe+1<Gr&&(vi=Math.max((Gr-Pe)*Oi+a.ya,vi)),Ae>ut+1&&(vi=Math.max((Ae-ut)*Oi+a.ya,vi)),fn+rt+1<Vi&&(vi=Math.max((Vi-fn)*Oi+a.ya,vi)),Ee=vi.toString()+"px")),vi=kr!=="1px",ti=Ee!=="1px",vi&&ti||!vi&&!ti||(ti&&(lt-=a.Db),vi&&(ut-=a.Db),Ji<Ve+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,re+1<st&&(tt=Math.max((st-re)*Oi+a.Aa,tt)),we>lt+1&&(tt=Math.max((we-lt)*Oi+a.Aa,tt)),Ve+1<Ji&&(tt=Math.max((Ji-Ve)*Oi+a.Aa,tt)),kr=tt.toString()+"px"),vi=kr!=="1px",tt=a.ya,vi!==a.Be&&(tt=vi?a.ya-a.Db:a.ya+a.Db),Vi<fn+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,Pe+1<Gr&&(rt=Math.max((Gr-Pe)*Oi+tt,rt)),Ae>ut+1&&(rt=Math.max((Ae-ut)*Oi+tt,rt)),fn+1<Vi&&(rt=Math.max((Vi-fn)*Oi+tt,rt)),Ee=rt.toString()+"px"),ti=Ee!=="1px"),a.qr&&vi===a.Be&&ti===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(vi!==a.Be&&(kr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=vi,_t.style.width=kr,ti!==a.gf&&(Ee==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=oe.alloc(),ti?(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)),oe.free(rt))),z&&Ku(a),a.gf=ti,_t.style.height=Ee,a.gu=!0,z&&(a.pn=!0),y=kt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ve+1<Ji?y=(a.position.x-re)*Oi:re+1<st?y=kt.scrollWidth-kt.clientWidth:we>lt+1&&(y=a.position.x*Oi)),a.tn)switch(a.bu){case"negative":y=-(kt.scrollWidth-y-kt.clientWidth);break;case"reverse":y=kt.scrollWidth-y-kt.clientWidth}return kt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(fn+1<Vi?kt.scrollTop=(a.position.y-Pe)*Oi:Pe+1<Gr?kt.scrollTop=kt.scrollHeight-kt.clientHeight:Ae>ut+1&&(kt.scrollTop=a.position.y*Oi)),st=a.Aa,lt=a.ya,kt.style.width=st+(a.gf?a.Db:0)+"px",kt.style.height=lt+(a.Be?a.Db:0)+"px",x!==st||b!==lt||a.animationManager.zb?(x=Nn.allocAt(E,dt,St,Et),a.onViewportBoundsChanged(x,a.viewportBounds,Oi,z),Nn.free(x),!1):!0}jt=un.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(Oa,"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;ya(a,function(x){fA(y,x)}),(a instanceof ts||a instanceof Xr&&a.placeholder!==null)&&a.v(),a.data!==null&&ya(a,function(x){Gv(y.partManager,x)}),au(a)!==!0&&tg(a)!==!0||this.De.add(a),Hy(a,!0,this),_y(a)?(a.actualBounds.w()&&this.N(Mg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Mg(a,a.actualBounds)),this.$b()},jt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&ya(a,function(x){Kv(y.partManager,x,y)}),this.De.remove(a),_y(a)?(a.actualBounds.w()&&this.N(Mg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Mg(a,a.actualBounds)),this.$b()},jt.remove=function(a){Id(this,a,!0)};function Id(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(Ja,"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),Jn(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 qn,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)},un.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=sd(this)),this.toolManager!==null){var E=new Zi;if(a!==null)if(Jn(a))for(var z=0;z<a.length;z++)Mu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Mu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Mu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Mu(this,E,a.value,x,b);for(a=this.links;a.next();)Mu(this,E,a.value,x,b)}Sh(this,E,y,b,x)}};function Mu(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=sd(a)),x instanceof Hi){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Xr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Mu(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)&&Mu(a,y,tt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Mu(a,y,x.value,b,E)}else if(x instanceof yi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Mu(a,y,x.value,b,E);else x instanceof ts||y.add(x,a.Pd(E,x,x.location))}function Sh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=oe.alloc(),tt=oe.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||xh(a,y);for(var rt=nr(),st=nr(),lt=y.iterator,ut=oe.alloc();lt.next();){var dt=lt.key,St=lt.value;if(dt.Zc()){var Et=FA(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 oe),St.shifted.assign(ut.re(Et)))}else lt.key instanceof yi&&st.push(lt.sa)}for(oe.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 oe),dt.node.location=z.add(dt.Su.shifted);for(E=oe.alloc(),lt=oe.alloc(),dt=st.length,St=0;St<dt;St++){var kt=st[St];if(Et=kt.key,Et instanceof yi)if(Et.suspendsRouting){Et.Tg=null,ut=Et.fromNode;var _t=Et.toNode;if(a.draggedLink!==null&&b.dragsLink)if(_t=kt.value.point,Et.dragComputation===null)y.add(Et,a.Pd(b,Et,tt)),Lf(Et,tt.x-_t.x,tt.y-_t.y);else{kt=oe.allocAt(0,0),(ut=Et.i(0))&&ut.w()&&kt.assign(ut);var Ae=ut=oe.alloc().assign(kt).add(tt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Ae=oe.alloc(),cA(a,Et,ut,Ae,b)),ut.assign(Et.dragComputation(Et,ut,Ae)).re(kt),y.add(Et,a.Pd(b,Et,ut)),Lf(Et,ut.x-_t.x,ut.y-_t.y),oe.free(kt),oe.free(ut),Ae!==ut&&oe.free(Ae)}else ut!==null&&(E.assign(ut.location),Ae=y.I(ut),Ae!==null&&E.re(Ae.point)),_t!==null&&(lt.assign(_t.location),Ae=y.I(_t),Ae!==null&<.re(Ae.point)),ut!==null&&_t!==null?E.Xa(lt)?(ut=kt.value.point,_t=z,_t.assign(E),_t.re(ut),y.add(Et,a.Pd(b,Et,E)),Lf(Et,_t.x,_t.y)):(Et.suspendsRouting=!1,Et.bb()):(kt=kt.value.point,ut=ut!==null?E:_t!==null?lt:tt,y.add(Et,a.Pd(b,Et,ut)),Lf(Et,ut.x-kt.x,ut.y-kt.y))}else(Et.fromNode===null||Et.toNode===null)&&(ut=kt.value.point,y.add(Et,a.Pd(b,Et,tt)),Lf(Et,tt.x-ut.x,tt.y-ut.y))}oe.free(z),oe.free(tt),oe.free(E),oe.free(lt),yr(rt),yr(st),x||(tl(a),dA(a,y))}}un.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new oe),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=oe.alloc(),cA(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&&oe.free(E),b};function sd(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function cA(a,y,x,b,E){if(E===void 0&&(E=sd(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=oe.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),oe.free(z)}}function xh(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof yi&&(y.suspendsRouting=!0)}function dA(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof yi&&(x.suspendsRouting=!1,Mv(x)&&x.bb())}a.Mr=!1}}function FA(a,y,x){return y=y.containingGroup,y!==null&&(a=FA(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}jt=un.prototype,jt.Pd=function(a,y,x){if(x===void 0)return new fu(zo);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new fu(new oe(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new fu(x.copy())};function nf(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){nf(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(Oa,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},jt.Ww=function(a,y){nf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ja,"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(Oa,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},jt.Cy=function(a,y){nf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ja,"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(Oa,"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(Ja,"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 ni),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 ni),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!==Pu&&(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 na;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($s,a,this,y,x,b,E)},un.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===$s){var E=a.object;if(ra(E,a.propertyName,a.I(y)),E instanceof ze){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Oa){var tt=a.object,rt=a.newParam,st=a.newValue;if(tt instanceof Tn)if(typeof rt=="number"&&st instanceof ze){y?tt.pc(rt):tt.Gb(rt,st);var lt=tt.part;lt!==null&<.Wb()}else typeof rt=="number"&&st instanceof il&&(st.isRow?vA(tt,rt,y?void 0:st):Lc(tt,rt,y?void 0:st));else if(tt instanceof qa){var ut=a.oldParam===!0;typeof rt=="number"&&st instanceof xr&&(y?(st.isSelected=!1,st.isHighlighted=!1,st.Wb(),tt.pc(ut?rt:-1,st,ut)):tt.oi(rt,st,ut))}else tt instanceof un?typeof rt=="number"&&st instanceof qa&&(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===Ja){var dt=a.object,St=a.oldParam,Et=a.oldValue;if(dt instanceof Tn)typeof St=="number"&&Et instanceof ze?y?dt.Gb(St,Et):dt.pc(St):typeof St=="number"&&Et instanceof il&&(Et.isRow?vA(dt,St,y?Et:void 0):Lc(dt,St,y?Et:void 0));else if(dt instanceof qa){var kt=a.newParam===!0;typeof St=="number"&&Et instanceof xr&&(y?0>dt.Pa.indexOf(Et)&&dt.oi(St,Et,kt):(Et.isSelected=!1,Et.isHighlighted=!1,Et.Wb(),dt.pc(kt?St:-1,Et,kt)))}else dt instanceof un?typeof St=="number"&&Et instanceof qa&&(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!==Pu&&Fe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},un.prototype.Ea=function(a){return this.undoManager.Ea(a)},un.prototype.eb=function(a){return this.undoManager.eb(a)},un.prototype.Kf=function(){return this.undoManager.Kf()},un.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}},un.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},un.prototype.rp=function(){this.partManager.rp()};function Qc(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Ku(a),a.N(),a.Ee=!0,b.zb&&(Bl(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Ku(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(iu)?rt=0:lt.Hf(Wl)&&(rt=z-1):rt=lt.sb()?lt.x*(z-1):z/2),isNaN(st)&&(lt.$c()?lt.Hf(Iu)?st=0:lt.Hf(Nl)&&(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=oe.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+st/y-st/x),a.position=z,oe.free(z),a.Ca=x,Ku(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Fu(a,!1),b.zb&&(Bl(b)||b.ce.add(b.H,"scale",y,a.Ca))}}un.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!==oa||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Ut&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ot(E,this)),this.vb||this.invalidateViewport(a,y),Wh(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 Wh(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Li.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||(sa(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=Nn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Nn.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,Nn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=oe.alloc(),Je.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Li.free(b),x.part.location=y,oe.free(y)}}un.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)}},un.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))},un.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Jn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof xr||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 xr||Fe("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},un.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=un.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 qn().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 xr||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=oe.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)),oe.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),oe.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 Nn(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),_r(a.copy(),this.Ab)};function Td(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function ZA(a){return a=Vs.get(a),a!==null?new a:new ps}un.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Pu&&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===Pu){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),tl(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Bo(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(),eh(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;li(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function fA(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)gA(a,y[b])}function gA(a,y){if(y instanceof Lh){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof qn&&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 Lh){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 qn&&x.Bg.remove(a),Ip(b));break}}}}}un.prototype.Wd=function(){this.partManager.Wd()},un.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},un.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},un.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},un.prototype.Vb=function(a){return this.partManager.Vb(a)},un.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},jt=un.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:_s(os(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:_s(os(y)))};function Ku(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 ad(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Fu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}jt.Va=function(){if(this.Zi){var a=Nn.alloc();ad(this,this.computeBounds(a)),Nn.free(a)}},jt.rz=function(){for(var a=new qn,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){tl(this),a&&ld(this,!0),this.ld?Bc(this,!1):(this.Jk=!0,nu(this))};function ld(a,y){for(var x=a.ai.iterator;x.next();)Hc(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function Hc(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)Hc(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Bc(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||Su(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)JA(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),tl(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||Bo(z),a.aa=x}}}function JA(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)JA(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),Uc(a,y),E.isValidLayout=!0):a.xh=!0)}}jt.yz=function(){for(var a=new ni,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function Cc(a){function y(E){var z=E.toLowerCase(),tt=new ni;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new Zi,b=new Zi;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 ud(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Vt(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=Vt(this,a),a!==null&&a.add(y),this},jt.am=function(a,y){a=Vt(this,a),a!==null&&a.remove(y)},jt.R=function(a,y,x){var b=Vt(this,a),E=new gc;if(E.diagram=this,a=ud(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 _e(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 Hn(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},un.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Lu(this,a):a.assign(this.documentBounds)};function Hn(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new P0(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=ci(a,x)),x===null){y=Nn.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&&Ri(a,tt,b,y)}Nn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Nn.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof Hi&&Ri(a,tt,b,y);Nn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&l1(E);return E}function ci(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ci(a,y.containingGroup):null}function Ri(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(Up(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(Ef,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Ef}else if(y instanceof Xr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Hi&&Ri(a,E,x,b)}}function cr(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}un.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Qr(this)};function Qr(a){a.vk===-1&&(a.vk=li(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=Nn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),ad(a,y),Nn.free(y),a.Fc=!0,a.bd(),Qr(a))}},a.vp))}un.prototype.ug=function(){this.vk!==-1&&(ye.clearTimeout(this.vk),this.vk=-1)},un.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=Nn.allocAt(0,0,b.width*E,b.height*E);var z=oe.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 oe(y.x+z.x/E,y.y+z.y/E)),Nn.free(b),oe.free(z),y},jt=un.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 Xr&&(y.$p=null)})};function _o(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):ye.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 ye.requestAnimationFrame(function(){b()}),null}jt.Wz=function(a){return Ko?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},jt.Jx=function(a){return a===void 0&&(a={}),_o(this,this.Xz,a)},jt.Xz=function(a,y,x){var b=vs(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 Wu+"data":E=b.getImageData(0,0,x.width,x.height);break;case Wu: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 vs(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 Li(1/0,1/0):new Li(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,kt=y.showTemporary;kt===void 0&&(kt=!dt),y=y.showGrid,y===void 0&&(y=kt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof lt=="number"?lt=new Sr(lt):lt instanceof Sr||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 Rl(null,St,void 0,!0);var _t=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,hA(a,b.context,lt,new Li(dt.width,dt.height),a.Ca,a.pa,st,ut,kt,y),b.context):(a.Xm=!1,hA(a,_t,lt,new Li(dt.width,dt.height),a.Ca,a.pa,st,ut,kt,y),a.Xm=!0,dt.context);var Ae=a.Pp,re=a.documentBounds.copy();if(re.Fv(a.yb),kt)for(var we=a.Wa.s,Pe=we.length,Ee=0;Ee<Pe;Ee++){var Ve=we[Ee];if(Ve.visible&&Ve.isTemporary){Ve=Ve.Pa.s;for(var fn=Ve.length,Oi=0;Oi<fn;Oi++){var Ji=Ve[Oi];Ji.isInDocumentBounds&&Ji.isVisible()&&(Ji=Ji.actualBounds,Ji.w()&&re.ed(Ji))}}}if(we=new oe(re.x,re.y),st!==null){for(Pe=new Nn(0,0,0,0),Ee=!0,Ve=st.iterator,Ve.reset();Ve.next();)fn=Ve.value,fn instanceof xr&&(Oi=fn.layer,Oi!==null&&!Oi.visible||Oi!==null&&!kt&&Oi.isTemporary||!fn.isVisible()||(fn=fn.actualBounds,fn.w()&&(Ee?(Ee=!1,Pe.assign(fn)):Pe.ed(fn))));re.width=Pe.width,re.height=Pe.height,we.x=Pe.x,we.y=Pe.y}return rt!==null&&rt.w()&&(we=rt,z||(z=Ae)),Pe=rt=0,lt!==null&&(rt=lt.left+lt.right,Pe=lt.top+lt.bottom),Ee=Ve=0,E!==null&&(Ve=E.width,Ee=E.height,isFinite(Ve)&&(Ve=Math.max(0,Ve-rt)),isFinite(Ee)&&(Ee=Math.max(0,Ee-Pe))),E!==null&&z!==null?(z==="NaN"&&(z=Ae),E.w()?(E=Ve,re=Ee):isNaN(Ee)?(E=Ve,re=re.height*z):(E=re.width*z,re=Ee)):E!==null?E.w()?(z=Math.min(Ve/re.width,Ee/re.height),E=Ve,re=Ee):isNaN(Ee)?(z=Ve/re.width,E=Ve,re=re.height*z):(z=Ee/re.height,E=re.width*z,re=Ee):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/re.width,(tt.height-Pe)/re.height),z>Ae?(z=Ae,E=re.width,re=re.height):(E=tt.width,re=tt.height)):(E=re.width*z,re=re.height*z):(z=Ae,E=re.width,re=re.height),lt!==null?(E+=rt,re+=Pe):lt=new Sr(0),tt!==null&&(Ae=tt.width,tt=tt.height,isNaN(Ae)&&(Ae=2e3),isNaN(tt)&&(tt=2e3),isFinite(Ae)&&(E=Math.min(E,Ae)),isFinite(tt)&&(re=Math.min(re,tt))),dt.width=Math.ceil(E),dt.height=Math.ceil(re),x==="SVG"?b===null?null:(b.resize(dt.width,dt.height,dt.width,dt.height),b.ownerDocument=St,b.hs=Et,hA(a,b.context,lt,new Li(Math.ceil(E),Math.ceil(re)),z,we,st,ut,kt,y),b.context):(a.Xm=!1,hA(a,_t,lt,new Li(Math.ceil(E),Math.ceil(re)),z,we,st,ut,kt,y),a.Xm=!0,dt.context)}he.Object.defineProperties(un.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 Xl(this,ye.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 Xl(this,ye.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(ye,"resize",this.Ov,!1),this.removeEventListener(ye,"wheel",this.$j,!0),wh===this&&(wh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),nd(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)&&Ni(a,"0 <= value <= 1",un,"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),Fu(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),Fu(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),Fu(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),Fu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Ni(a,">= 0",un,"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&&Ni(a,">= 0",un,"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 Ni(a,">= 0",un,"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=Pd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Su(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=ZA(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(ye,"pointermove",this.dk,!0),this.addEventListener(ye,"pointerdown",this.ui,!0),this.addEventListener(ye,"pointerup",this.fk,!0),this.addEventListener(ye,"pointerout",this.ek,!0),this.addEventListener(ye,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ye,"wheel",this.$j,!0),this.addEventListener(ye,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ye,"pointermove",this.dk,!0),this.removeEventListener(ye,"pointerdown",this.ui,!0),this.removeEventListener(ye,"pointerup",this.fk,!0),this.removeEventListener(ye,"pointerout",this.ek,!0),this.removeEventListener(ye,"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(ye,"wheel",this.$j,!0),this.removeEventListener(ye,"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=oe.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),ih(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ku(this):(this.vb=!0,a=this.scale,tf(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)}oe.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=mf(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=mf(this)),a.type!==Tn.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),Wh(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),Ku(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 Sr(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===Oh&&Fu(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,Fu(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,Qc(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&&Qc(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!==oa&&Fu(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)):Ni(a,"> 0",un,"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)):Ni(a,"> 0",un,"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),Fu(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 Sr(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();)g0(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==pA&&a!==Ba&&a!==Ul&&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 Li(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 Sr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),he.Object.defineProperties(un,{licenseKey:{get:function(){return Pc.jc()},set:function(a){Pc.add(a.replace(/\s/g,""))}},version:{get:function(){return el}}}),un.prototype.makeImageData=un.prototype.Jx,un.prototype.makeImage=un.prototype.Wz,un.prototype.cacheGroupExternalLinks=un.prototype.Fu,un.prototype.addRenderer=un.prototype.bs,un.prototype.makeSVG=un.prototype.av,un.prototype.makeSvg=un.prototype.Cs,un.prototype.stopAutoScroll=un.prototype.ug,un.prototype.doAutoScroll=un.prototype.gs,un.prototype.isUnoccupied=un.prototype.Yj,un.prototype.raiseDiagramEvent=un.prototype.R,un.prototype.removeDiagramListener=un.prototype.am,un.prototype.addDiagramListener=un.prototype.Bj,un.prototype.findTreeRoots=un.prototype.yz,un.prototype.layoutDiagram=un.prototype.Uz,un.prototype.findTopLevelGroups=un.prototype.qz,un.prototype.findTopLevelNodesAndLinks=un.prototype.rz,un.prototype.ensureBounds=un.prototype.Va,un.prototype.findLinksByExample=un.prototype.ls,un.prototype.findNodesByExample=un.prototype.ms,un.prototype.findLinkForData=un.prototype.Kc,un.prototype.findNodeForData=un.prototype.ii,un.prototype.findPartForData=un.prototype.Lc,un.prototype.findLinkForKey=un.prototype.findLinkForKey,un.prototype.findNodeForKey=un.prototype.Vb,un.prototype.findPartForKey=un.prototype.findPartForKey,un.prototype.rebuildParts=un.prototype.Wd,un.prototype.transformViewToDoc=un.prototype.Ps,un.prototype.transformRectDocToView=un.prototype.zA,un.prototype.transformDocToView=un.prototype.op,un.prototype.centerRect=un.prototype.es,un.prototype.scrollToRect=un.prototype.tv,un.prototype.scroll=un.prototype.scroll,un.prototype.highlightCollection=un.prototype.Jz,un.prototype.highlight=un.prototype.Iz,un.prototype.selectCollection=un.prototype.rA,un.prototype.select=un.prototype.select,un.prototype.updateAllRelationshipsFromData=un.prototype.rp,un.prototype.updateAllTargetBindings=un.prototype.updateAllTargetBindings,un.prototype.commit=un.prototype.commit,un.prototype.rollbackTransaction=un.prototype.Kf,un.prototype.commitTransaction=un.prototype.eb,un.prototype.startTransaction=un.prototype.Ea,un.prototype.raiseChanged=un.prototype.g,un.prototype.raiseChangedEvent=un.prototype.cb,un.prototype.removeChangedListener=un.prototype.ik,un.prototype.addChangedListener=un.prototype.Pe,un.prototype.removeModelChangedListener=un.prototype.mA,un.prototype.addModelChangedListener=un.prototype.Yw,un.prototype.findLayer=un.prototype.Qj,un.prototype.removeLayer=un.prototype.kA,un.prototype.addLayerAfter=un.prototype.Cy,un.prototype.addLayerBefore=un.prototype.Ww,un.prototype.addLayer=un.prototype.Al,un.prototype.moveParts=un.prototype.moveParts,un.prototype.copyParts=un.prototype.Kj,un.prototype.removeParts=un.prototype.Is,un.prototype.remove=un.prototype.remove,un.prototype.add=un.prototype.add,un.prototype.clearDelayedGeometries=un.prototype.bx,un.prototype.setProperties=un.prototype.nm,un.prototype.attach=un.prototype.Du,un.prototype.set=un.prototype.set,un.prototype.resetInputOptions=un.prototype.Sx,un.prototype.setInputOption=un.prototype.sA,un.prototype.getInputOption=un.prototype.Ql,un.prototype.resetRenderingHints=un.prototype.Tx,un.prototype.setRenderingHint=un.prototype.Xx,un.prototype.getRenderingHint=un.prototype.Gf,un.prototype.maybeUpdate=un.prototype.bd,un.prototype.requestUpdate=un.prototype.$b,un.prototype.delayInitialization=un.prototype.Xy,un.prototype.isUpdateRequested=un.prototype.Pz,un.prototype.invalidateDocumentBounds=un.prototype.Ya,un.prototype.findObjectsNear=un.prototype.og,un.prototype.findPartsNear=un.prototype.mz,un.prototype.findObjectsIn=un.prototype.Cf,un.prototype.findPartsIn=un.prototype.ux,un.prototype.findObjectsAt=un.prototype.ji,un.prototype.findPartsAt=un.prototype.lz,un.prototype.findObjectAt=un.prototype.ic,un.prototype.findPartAt=un.prototype.Ol,un.prototype.focusObject=un.prototype.zz,un.prototype.alignDocument=un.prototype.Jy,un.prototype.zoomToRect=un.prototype.BA,un.prototype.zoomToFit=un.prototype.zoomToFit,un.prototype.diagramScroll=un.prototype.kx,un.prototype.focus=un.prototype.focus;var Vs=new Zi,Ys=null,Ko=ye.document!==void 0,fl=null,gl="",oa=new zn(un,"None",0),Xa=new zn(un,"Uniform",1),jl=new zn(un,"UniformToFill",2),Bh=new zn(un,"CycleAll",10),ju=new zn(un,"CycleNotDirected",11),Ch=new zn(un,"CycleNotDirectedFast",12),hd=new zn(un,"CycleNotUndirected",13),zc=new zn(un,"CycleDestinationTree",14),Ad=new zn(un,"CycleSourceTree",15),Oh=new zn(un,"DocumentScroll",1),$A=new zn(un,"InfiniteScroll",2),pA=new zn(un,"TreeParentCollapsed",21),Ba=new zn(un,"AllParentsCollapsed",22),Ul=new zn(un,"AnyParentsCollapsed",23),Pc=new ni,el="2.3.10",Wu="image",Dh=null,su=!1;function nl(){if(Ko){var a=ye.document.createElement("canvas"),y=a.getContext("2d"),x=Xn("7ca11abfd022028846");y[x]=Xn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",qe.Dx+"4ae6247590da4bb21c324ba3a84e385776",mo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Je.za],E=1;5>E;E++)y[Xn("7ca11abfd7330390")](Xn(b[E-1]),10,15*E);for(y[x]=Xn("39f046ebb36e4b"),x=1;5>x;x++)y[Xn("7ca11abfd7330390")](Xn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(mo.prototype.Cd=mo.prototype.Eu),Dh=a}}un.className="Diagram",un.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ye.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof un?y.H:null},un.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},un.useDOM=function(a){Ko=a?ye.document!==void 0:!1},un.isUsingDOM=function(){return Ko},un.None=oa,un.Uniform=Xa,un.UniformToFill=jl,un.CycleAll=Bh,un.CycleNotDirected=ju,un.CycleNotDirectedFast=Ch,un.CycleNotUndirected=hd,un.CycleDestinationTree=zc,un.CycleSourceTree=Ad,un.DocumentScroll=Oh,un.InfiniteScroll=$A,un.TreeParentCollapsed=pA,un.AllParentsCollapsed=Ba,un.AnyParentsCollapsed=Ul;function qA(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Vu(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=ye[Xn("76a715b2f73f148a")][Xn("72ba13b5")]||"";if(a.Rc=!0,Ko){var b=un[Xn("76a115b6ed251eaf4692")];if(b)for(var E=Pc.iterator;E.next()&&(b=E.value,b=Xn(b).split(Xn("39e9")),!(6>b.length));){var z=Xn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=Xn(qe[Xn("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=ye[Xn("74a900bae4370f8b51")][Xn("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[Xn("73a612b6fb191d")](Xn("3aad1ab6e022098b4dc4")),z=Xn(b[2]),-1<tt&&(rt=rt[Xn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[Xn("76ad18b4f73e")],rt=x[Xn("73a612b6fb191d")](Xn("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[Xn("73a612b6fb191d")](z),0>tt&&z!==Xn("7da71ca0ad381e90")&&(tt=y[Xn("73a612b6fb191d")](Xn("76a715b2ef3e149757"))),0>tt&&(tt=y[Xn("73a612b6fb191d")](Xn("76a715b2ef3e149757"))),0>tt&&(tt=y[Xn("73a612b6fb191d")](Xn("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Xn("73a612b6fb191d")](Xn("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[Xn("73a612b6fb191d")](Xn("35"))||y[Xn("73a612b6fb191d")](Xn("35"))===-1),!a.Rc||x[Xn("73a612b6fb191d")](Xn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Xn("73a612b6fb191d")](z)),!a.Rc)||(tt=ye[Xn("76a715b2f73f148a")][Xn("69ad17a1e03e")],rt=tt[Xn("73a612b6fb191d")](Xn("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[Xn("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=ye.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[Xn("79a417a0f0181a8946")]=b,ye.document[Xn("78a712aa")]){ye.document[Xn("78a712aa")][Xn("7bb806b6ed32388c4a875b")](tt),st=ye.getComputedStyle(tt).getPropertyValue(Xn("78a704b7e62456904c9b12701b6532a8"));var lt=ye.getComputedStyle(tt).getPropertyValue(Xn("75b817b0ea2202"));if(ye.document[Xn("78a712aa")][Xn("68ad1bbcf533388c4a875b")](tt),st){if(tt=ye[Xn("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(Xn("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[Xn("76ad18b4f73e")],E=x[Xn("73a612b6fb191d")](Xn("35e7"))+2;E<ut;E++)y+=x[E];x=y[Xn("73a612b6fb191d")](Xn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Xn("73a612b6fb191d")](Xn("35")))}}}return 0<a.Rc&&a!==a.wy}qA.className="DiagramHelper";function fu(a){this.j=a===void 0?new oe:a,this.o=new oe}he.Object.defineProperties(fu.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 EA="DraggingInfo";fu.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 Li(NaN,NaN).freeze(),this.gridSnapCellSpot=Ya,this.gridSnapOrigin=new oe(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"||ye.Element&&a instanceof Element)var x=un.call(this,a)||this;else x=un.call(this)||this,y=a;return At(x),y&&x.nm(y),x}nn(ct,un);function At(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ml,a.layout=new uu}ct.prototype.reset=function(){un.prototype.reset.call(this),At(this)},ct.className="Palette";function mt(a,y){if(typeof a=="string"||ye.Element&&a instanceof Element)var x=un.call(this,a)||this;else x=un.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 xr;var E=new Yr;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 Sr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new le,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var tt=z.viewportBounds,rt=b.lastInput.documentPoint;z.position=new oe(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=Xa,x.vb=!1,y&&Object.assign(x,y),x}nn(mt,un),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(Sc(this),this.ql===null){var x=new Rl(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}}}un.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 Xl)&&(vv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Sc(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=Nn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Wh(y,E),Nn.free(E),tl(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&<.layer===rt&&(rt=uA(rt,E),lt.gc(E,st),E.globalAlpha=rt);else{for(var ut=uA(rt,E),dt=st.scale,St=Nn.alloc(),Et=rt.Pa.s,kt=Et.length,_t=0;_t<kt;_t++){var Ae=Et[_t];(b||Ae!==lt)&&rt.Oj(E,Ae,st,null,dt,St,!1)}Nn.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=Li.alloc();E.h(x.width,x.height),b.desiredSize=E,Li.free(E),a=2/a.scale,b instanceof Yr&&(b.strokeWidth=a),y.location=new oe(x.x-a/2,x.y-a/2),y.isSelected=!0}}}mt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Do;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))},he.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 le(){Ze.call(this),this.j=null}nn(le,Ze),le.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 oe(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new oe(a.x-this.j.x,a.y-this.j.y)),!0)},le.prototype.doActivate=function(){this.j=null,Ze.prototype.doActivate.call(this)},le.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},le.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 oe(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new oe(a.x-this.j.x,a.y-this.j.y)}}},le.className="OverviewDraggingTool";function ae(){Go(this),this.H=wh,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=Do,this.hb=!0,this.cg=null,this.ob=200}ae.prototype.toString=function(){return"CommandHandler"},ae.prototype.Xe=function(a){this.H=a},ae.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=as?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()},ae.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ae.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Ut&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ae.prototype.canStopCommand=function(){return!0},ae.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=""}},ae.prototype.canSelectAll=function(){return this.diagram.allowSelect},ae.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 qn,x=a.selection.iterator;x.next();)ng(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=""}},ae.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ae.prototype.copySelection=function(){var a=this.diagram,y=new qn;for(a=a.selection.iterator;a.next();)ng(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},ae.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ae.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ae.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ae.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)fl=null,gl="";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 ni,x.addAll(z),fl=x,gl=y.model.dataFormat}}y.R("ClipboardChanged",x)},ae.prototype.pasteFromClipboard=function(){var a=new qn,y=fl;if(y===null)return a;var x=this.diagram;if(gl!==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},ae.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);Sh(y,z,new oe(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=""}},ae.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||fl===null||fl.count===0||gl!==a.model.dataFormat)},ae.prototype.undo=function(){this.diagram.undoManager.undo()},ae.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ae.prototype.redo=function(){this.diagram.undoManager.redo()},ae.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ae.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===oa&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ae.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==oa?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ae.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===oa&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ae.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==oa?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ae.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ae.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ae.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Su(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=Do):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Bo(y)},ae.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ae.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;Su(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Ne(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 Hi&&st.isTreeExpanded&&(!(st instanceof Xr)||st.isSubGraphExpanded);)st=E.pop();0<E.length?(st instanceof xr&&y.tv(st.actualBounds),st instanceof Hi&&!st.isTreeExpanded&&(st.isTreeExpanded=!0),st instanceof Xr&&!st.isSubGraphExpanded&&(st.isSubGraphExpanded=!0)):(st instanceof xr&&y.es(st.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){li(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 Ne(a,y,x){if(y.isVisible())return x;if(y instanceof ts)Ne(a,y.adornedPart,x);else if(y instanceof yi){var b=y.fromNode;b!==null&&Ne(a,b,x),y=y.toNode,y!==null&&Ne(a,y,x)}else y instanceof Hi&&(b=y.labeledLink,b!==null&&Ne(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Ne(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Ne(a,y,x));return x}ae.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof xr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ae.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Su(y.animationManager,"Collapse Tree");var x=new ni;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 Hi&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},ae.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Hi&&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 Hi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ae.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Su(y.animationManager,"Expand Tree");var x=new ni;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 Hi&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},ae.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Hi)||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 Hi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ae.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 ni,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&E.add(tt)}for(var rt=new ni,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 Xr)pl(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Et=y.copyNodeData(x);wn(Et)&&(y.xf(Et),b=a.ii(Et))}if(b!==null){dt!==null&&this.isValidMember(dt,b)&&(b.containingGroup=dt);for(var kt=rt.iterator;kt.next();){var _t=kt.value;this.isValidMember(b,_t)&&(_t.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ae.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 bn(a){var y=nr();for(a=a.iterator;a.next();){var x=a.value;x instanceof yi||y.push(x)}a=new qn,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 yr(y),a}ae.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof yi)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},ae.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 ni;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Xr&&z.canUngroup()&&b.add(z)}var tt=new ni;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&<.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 yi)){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=""}},ae.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 Xr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Xr&&y.canUngroup())return!0;return!1},ae.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=bn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},ae.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Su(y.animationManager,"Collapse SubGraph");var x=new ni;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 Xr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},ae.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Xr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Xr&&y.isSubGraphExpanded)return!0;return!1},ae.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Su(y.animationManager,"Expand SubGraph");var x=new ni;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 Xr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},ae.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Xr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Xr&&!y.isSubGraphExpanded)return!0;return!1},ae.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 Ls&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},ae.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 Ls))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 Ls&&x.editable}),a!==null))return!0;return!1},ae.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 ze?E=a.ga(bo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new oe(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,Fa(x,!1,a)}},ae.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)},ae.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 Zi,a===null)return b;for(var z=a.iterator;z.next();)Mu(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 yi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},he.Object.defineProperties(ae.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}}}),ae.className="CommandHandler",ed=function(){return new ae};function ze(){Go(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new oe(NaN,NaN).freeze(),this.jd=Wa,this.Ab=new mo,this.wh=new mo,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=vu,this.uc=new Nn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Nn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Nn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ss,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 oi,Zn,Yi,or,Lr,Ur,yo,Wr,Mo,is;ze.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=Br(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},ze.prototype.Vw=function(a){var y=this.Dh;if(Jn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},ze.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},ze.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},ze.prototype.copy=function(){return this.clone()},jt=ze.prototype,jt.qb=function(a){a.classType===yi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Fe("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===ze&&(this.stretch=a)},jt.toString=function(){return ar(this.constructor)+"#"+qo(this)},jt.th=function(){this.A!==null&&(this.A.nc=!0)};function Vr(a){a.A===null?a.A=new kd:a.A.nc&&(a.A=a.A.copy())}jt.Xc=function(){if(this.ba===null){var a=new Gf;a.Xi=ba,a.yj=ba,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===$s&&wl(this)&&ws(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 Zi),tt=z.undoManager.transactionLevel===0,a.startCondition===bl?tt=!0:a.startCondition===vc&&(tt=!1),tt?(z=new Pl,jc(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()):(Su(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Tn&&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 Tn&&ya(rt,function(st){st.data!==null&&st.l&16777216&&st.La(y)})};function ws(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($s,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 mo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Ma(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?As(a.x,a.y,0,0,0,b.height)<=y||As(a.x,a.y,0,b.height,b.width,b.height)<=y||As(a.x,a.y,b.width,b.height,b.width,0)<=y||As(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=oe.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return oe.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=Gs(x.x-tt*st,x.y-tt*st,x.width+z*st,x.height+z*st,y.x,y.y),oe.free(y),a}return E=!1,(this instanceof ts||this instanceof Yr?Gs(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)),oe.free(y),E},jt.gh=function(a){var y=this.naturalBounds;return Gs(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=Nn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=oe.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)))),oe.free(E),Nn.free(y),b},jt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=oe.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)))),oe.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=oe.allocAt(0,0),E=oe.allocAt(0,x.height),z=oe.allocAt(x.width,x.height),tt=oe.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=Nn.allocAt(0,0,x.width,x.height);var st=oe.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)))),oe.free(st),Nn.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 oe.free(b),oe.free(E),oe.free(z),oe.free(tt),rt},jt.ga=function(a,y){if(y===void 0&&(y=new oe),a instanceof $i){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 Nn);var y=this.naturalBounds,x=this.oe,b=oe.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),fs(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),fs(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),fs(a,b.x,b.y,0,0),oe.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 oe),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)},ze.prototype.measure=function(a,y,x,b){if(Nu(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 Tn;switch(gu(this,!0)){case Zn:tt=E=0,rt&&(y=a=1/0);break;case oi:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case or:isFinite(a)&&a>x&&(E=a),tt=0,rt&&(y=1/0);break;case Lr: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()),Ha(this,!1)}},ze.prototype.Wl=function(){},ze.prototype.Dd=function(){return!1},ze.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=Nn.alloc();z.assign(this.Ib),this.Ib.ka(),au(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&&za(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 Ls&&(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),mA(this,!1),Nn.free(z)},jt=ze.prototype,jt.eh=function(){};function Ql(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=gu(a,!0),x===b&&z===E&&(y=Zn),y){case Zn:(x>b||z>E)&&(Ha(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case oi:Ha(a,!0),a.measure(b,E,0,0);break;case or:Ha(a,!0),a.measure(b,z,0,0);break;case Lr:Ha(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(),nA(a,y)||(x.oh(),this.Pn(x)))},jt.Pn=function(a){this.portId!==null&&(Sv(a,!0),a instanceof Hi&&Vy(a,this))},jt.gc=function(a,y){if(!Ca(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 Tn&&za(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&&(zs(this,a,lt,!0,!0,st,rt),lt instanceof us&<.type===ie?(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&&(zs(this,a,ut,!0,!1,st,rt),ut instanceof us&&ut.type===ie?(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&&Qa(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 kt=St.m11,_t=St.m21,Ae=St.dx,re=St.m12,we=St.m22,Pe=St.dy,Ee,Ve=Ee=0;St=Ee*kt+Ve*_t+Ae;var fn=Ee*re+Ve*we+Pe;Ee=Et.width+dt,Ve=0;var Oi=Ee*kt+Ve*_t+Ae;Ee=Ee*re+Ve*we+Pe,Ve=Math.min(St,Oi);var Ji=Math.min(fn,Ee),Vi=Math.max(St+0,Oi)-Ve,vi=Math.max(fn+0,Ee)-Ji;St=Ve,fn=Ji,Ee=Et.width+dt,Ve=Et.height+dt,Oi=Ee*kt+Ve*_t+Ae,Ee=Ee*re+Ve*we+Pe,Ve=Math.min(St,Oi),Ji=Math.min(fn,Ee),Vi=Math.max(St+Vi,Oi)-Ve,vi=Math.max(fn+vi,Ee)-Ji,St=Ve,fn=Ji,Ee=0,Ve=Et.height+dt,Oi=Ee*kt+Ve*_t+Ae,Ee=Ee*re+Ve*we+Pe,Ve=Math.min(St,Oi),Ji=Math.min(fn,Ee),Vi=Math.max(St+Vi,Oi)-Ve,vi=Math.max(fn+vi,Ee)-Ji,St=Ve,fn=Ji,dt=y.viewportBounds,Et=dt.x,kt=dt.y,St=!(St>dt.width+Et||Et>Vi+St||fn>dt.height+kt||kt>vi+fn)}if(St){if(St=(this.l&256)!==0,a.clipInsteadOfFill&&(St=!1),this instanceof Ls&&(a.font=this.font),St){if(fn=rt.se()?rt.naturalBounds:rt.actualBounds,Vi=Math.max(tt.x,fn.x),vi=Math.max(tt.y,fn.y),dt=Math.min(tt.right,fn.right)-Vi,Et=Math.min(tt.bottom,fn.bottom)-vi,kt=this.tb,kt!==null&&(Vi=kt.x,vi=kt.y,dt=kt.width,Et=kt.height),Vi>tt.width+tt.x||tt.x>fn.width+fn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Vi,vi,dt,Et),a.clip()}if(ut){if(!lt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}st&&(fn=lt.shadowOffset,a.Ev(fn.x*y.scale*this.scale*y.Mb,fn.y*y.scale*this.scale*y.Mb,lt.shadowBlur),ic(a),a.shadowColor=lt.shadowColor)}st&&this.shadowVisible===!0?ic(a):st&&this.shadowVisible===!1&&NA(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Ll(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&&NA(a),this.Ma!==null&&(a.yc(),Zs(this,a,lt,tt)),st&&(this.Ma!==null||this.areaBackground!==null||va(this,rt))?(Fl(this,!0),this.shadowVisible===null&&NA(a)):Fl(this,!1),this.hh(a,y),st&&this.l&512&&ic(a),ut&&st&&NA(a),St&&(a.restore(),a.Vc(this instanceof Tn)),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:(za(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Tn.Auto||y.type===Tn.Spot)&&y.Pb()!==a)}jt.Dv=function(){};function Ll(a,y,x,b){zs(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof us&&a.areaBackground.type===ie?(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 Zs(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,rt=x.width+E,st=x.height+E;zs(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof us&&a.Ma.type===ie?(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 Hs(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===Tn.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 Ca(a,y,x){if(!(y instanceof lu))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&&Hs(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),ic(y),y.shadowColor=a.shadowColor}a instanceof Ls&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof Tn;var rt=a instanceof Tn?za(a):!1;a.l&4096&&Qa(a);var st=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&rt?(Yh(y,1,0,0,1,0,0),a.svg=y.ad):z?(Yh(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):Yh(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],Ll(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]),Zs(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],Zs(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&&ic(y),rt&&a.shadowVisible===!0?ic(y):rt&&a.shadowVisible===!1&&NA(y),E=a.panel,rt&&va(a,E)&&a.shadowVisible===null&&NA(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))?(Fl(a,!0),a.shadowVisible===null&&NA(y)):Fl(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&<!==null&&rt!==lt&<.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,b,st,rt),Pa(y,lt),!0):(a.svg=rt,tt!==null&&rt===null&&(nc(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&&ic(y),a.Dd()&&NA(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&&Hs(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"+ea++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:tt,height:x}),this instanceof Tn&&(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"),Pa(a,b)};function Pa(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Hr(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=os(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 Tn?za(this):!1;if(!(this instanceof Tn&&E))if(this instanceof Lh){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Sp(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",zg(a)):y.setAttributeNS(null,"transform",zg(a))}else if(!x||this instanceof Tn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Yr){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],Ll(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&&rc(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(rc(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Tn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Zs(this,a,this.naturalBounds,this.actualBounds),y.Ma?(rc(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&&rc(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 zs(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===Lt)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 Ud)&&x.xe&&(x.type===Me||x.yk===rt&&x.ft===st))var ut=x.xe;else{var dt=0,St=0,Et=0,kt=0,_t=0,Ae=0;if(Ae=_t=0,E?(_t=tt.x,Ae=tt.y):b||(_t-=lt/2,Ae-=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,kt=x.end.y*st+x.end.offsetY,dt+=_t,Et+=_t,St+=Ae,kt+=Ae,x.type===Wt)ut=y.createLinearGradient(dt,St,Et,kt);else if(x.type===ie)Ae=isNaN(x.endRadius)?Math.max(rt,st)/2:x.endRadius,isNaN(x.startRadius)?(_t=0,Ae=Math.max(rt,st)/2):_t=x.startRadius,ut=y.createRadialGradient(dt,St,_t,Et,kt,Ae);else if(x.type===Me)try{ut=y.createPattern(x.pattern,"repeat")}catch(we){ut=null}if(x.type!==Me&&(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===Me&&x.yk!==-1)){x.yk=-1;var re=a.diagram;re!==null&&x.yk===-1&&li(function(){re.redraw()},600)}}b?y.fillStyle=ut:y.strokeStyle=ut}}}jt.rg=function(a){if(a instanceof Tn)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 Tn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Qa(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Ph(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)}Ph(a,!1),pu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,pu(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,pu(a,!1)))}jt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=oe.alloc();z.yi(y,x,b,E,bo),a.rotate(this.Kb,z.x,z.y),oe.free(z)}},jt.v=function(a){if(!Nu(this)){a===void 0&&(a=!1),Ha(this,!0),mA(this,!0);var y=this.panel;y===null||a||y.v()}},jt.Uj=function(){Nu(this)||(Ha(this,!0),mA(this,!0))};function Ra(a){if(!au(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Hi&&a.Bd(),y.$b())),mA(a,!0)}}jt.Uk=function(){!(this.l&2048)&&(Ph(this,!0),pu(this,!0))},jt.Wu=function(){pu(this,!0)},jt.N=function(){var a=this.part;a!==null&&a.N()};function gu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Tn.Table?ta(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Tn.Auto&&b.Pb()===a?hs(a,oi,y):x===Ur?b!==null?b.type===Tn.Spot&&b.Pb()===a?hs(a,oi,y):(x=b.defaultStretch,x===Ur?hs(a,Zn,y):hs(a,x,y)):hs(a,Zn,y):hs(a,x,y)}function ta(a,y,x,b){var E=a.stretch;if(E!==Ur)return hs(a,E,b);var z=E=null;switch(y.stretch){case Lr:z=!0;break;case oi:z=!0}switch(x.stretch){case or:E=!0;break;case oi:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===or||y===oi),z===null&&(z=y===Lr||y===oi),E===!0&&z===!0?hs(a,oi,b):E===!0?hs(a,or,b):z===!0?hs(a,Lr,b):hs(a,Zn,b)}function hs(a,y,x){if(x)return y;if(y===Zn||(x=a.desiredSize,x.w()))return Zn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===or)return Zn;if(y===oi)return Lr}else{if(y===Lr)return Zn;if(y===oi)return or}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Lr)return Zn;if(y===oi)return or}else{if(y===or)return Zn;if(y===oi)return Lr}return y}function Fl(a,y){a.l=y?a.l|512:a.l&-513}function wl(a){return(a.l&1024)!==0}function MA(a,y){a.l=y?a.l|1024:a.l&-1025}function Ph(a,y){a.l=y?a.l|2048:a.l&-2049}function pu(a,y){a.l=y?a.l|4096:a.l&-4097}function Nu(a){return(a.l&8192)!==0}function Ha(a,y){a.l=y?a.l|8192:a.l&-8193}function au(a){return(a.l&16384)!==0}function mA(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,Ra(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 bc(a){var y=a.part;if(y instanceof Hi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||Vy(y,a)}}function _f(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Tn?a instanceof Hi?a.Bd():a.qm(a,function(x){bc(x)}):bc(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&&gd(a)&&Fe("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new ni),this.localBindings.add(E),this},jt.set=function(a){return Object.assign(this,a),this},jt.Du=function(a){return Sg(this,a),this},jt.apply=function(a){return a(this),this},jt.nm=function(a){return LA(this,a),this},jt.pz=function(){return this.ih()},jt.ih=function(){for(var a=this instanceof Tn?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 Zi),this.animationTriggers.add(a.propertyName,a),this};function Uu(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=yf.I(a);typeof z=="function"?(x=Br(arguments),b=z(x),wn(b)||Fe('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=ye.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 un&&1<x.length){z=b;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(nd(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):Sg(b,z);return b}function Sg(a,y){if(typeof y=="string")if(a instanceof Ls)a.text=y;else if(a instanceof Yr)a.figure=y;else if(a instanceof Lh)a.source=y;else if(a instanceof Tn)y=mu.I(y),y!==null&&(a.type=y);else if(a instanceof us){var x=Gi(us,y);x!==null?a.type=x:Fe("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Bi?(y=Gi(Bi,y),y!==null&&(a.type=y)):a instanceof Xo&&(y=Gi(Xo,y),y!==null&&(a.type=y));else if(y instanceof ze)a instanceof Tn||Fe("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof il){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 il?Xf(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 Ke)a.type=y;else if(y instanceof al)a instanceof ze||a instanceof il?a.bind(y):Fe("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof yh)a instanceof ze?a.Jv(y):Fe("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ma)a instanceof Bi&&a.type===Bi.o?a.figures.add(y):Fe("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Xo)a instanceof ma?a.segments.add(y):Fe("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof aa)a instanceof un||a instanceof Xr?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++)Sg(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof us){x=new Dr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);LA(a,x)}else if(a instanceof il){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 Dr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);LA(a,E)}else LA(a,y);else Fe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function tc(a,y){yf.add(a,y)}function vf(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}he.Object.defineProperties(ze.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new kd),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 kd),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 kd),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Vr(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&&(Vr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:lh},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new cd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===lh&&(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 cd),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 cd),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 cd),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&&(Vr(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&&(Vr(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)&&Ni(a,"0 <= value <= 1",ze,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Mg(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(Mg(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(),_f(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&&bt(a,"GraphObject.areaBackground"),a instanceof us&&a.freeze(),Vr(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&&bt(a,"GraphObject.background"),a instanceof us&&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 xr)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 oe(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,_f(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 Yr&&this.qc(),this.g("desiredSize",b,a),wl(this)&&(a=this.part,a!==null&&(ws(this,a,"width"),ws(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 Li(a,this.jd.height).freeze(),this.v(),this instanceof Yr&&this.qc(),this.g("desiredSize",y,a),wl(this)&&(a=this.part,a!==null&&ws(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 Li(this.jd.width,a).freeze(),this.v(),this instanceof Yr&&this.qc(),this.g("desiredSize",y,a),wl(this)&&(a=this.part,a!==null&&ws(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:eo},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(),Vr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Cs},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(),Vr(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 Sr(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&&Qa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Qa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Vr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Zn},set:function(a){this.reshapingBehavior!==a&&(Vr(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(),Ra(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&&Ni(a,">= 0",ze,"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&&Ni(a,">= 1",ze,"columnSpan"),Vr(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&&Ni(a,">= 0",ze,"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&&Ni(a,">= 1",ze,"rowSpan"),Vr(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&&(Vr(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 Hi||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:ba},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),bc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ni(a,">= 0",ze,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),bc(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),bc(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&&Ni(a,">= 0",ze,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ba},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),bc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ni(a,">= 0",ze,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),bc(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),bc(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&&Ni(a,">= 0",ze,"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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ze.prototype.trigger=ze.prototype.Jv,ze.prototype.findBindingPanel=ze.prototype.ih,ze.prototype.findTemplateBinder=ze.prototype.pz,ze.prototype.setProperties=ze.prototype.nm,ze.prototype.apply=ze.prototype.apply,ze.prototype.attach=ze.prototype.Du,ze.prototype.set=ze.prototype.set,ze.prototype.isEnabledObject=ze.prototype.If,ze.prototype.isVisibleObject=ze.prototype.Ed,ze.prototype.isContainedBy=ze.prototype.rg,ze.prototype.getNearestIntersectionPoint=ze.prototype.rs,ze.prototype.getLocalPoint=ze.prototype.qs,ze.prototype.getDocumentScale=ze.prototype.Df,ze.prototype.getDocumentAngle=ze.prototype.li,ze.prototype.getDocumentBounds=ze.prototype.mi,ze.prototype.getDocumentPoint=ze.prototype.ga,ze.prototype.intersectsRect=ze.prototype.Yc,ze.prototype.containedInRect=ze.prototype.fh,ze.prototype.containsRect=ze.prototype.Re,ze.prototype.containsPoint=ze.prototype.ca,ze.prototype.raiseChanged=ze.prototype.g,ze.prototype.raiseChangedEvent=ze.prototype.cb,ze.prototype.addCopyProperty=ze.prototype.Vw;var yf=null;ze.className="GraphObject",yf=new Zi,tc("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=Uu(Tn,Tn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Tn){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"},Uu(Yr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new $i(0,0,2.76142374915397,2.761423749153969),spot2:new $i(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 Tn&&(x=b.fb("ButtonBorder"),x instanceof Yr)){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 Tn&&(x=b.fb("ButtonBorder"),x instanceof Yr&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Tn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Yr){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 Tn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Yr){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 Tn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Yr){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 Tn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Yr))){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}),tc("TreeExpanderButton",function(){var a=Uu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Uu(Yr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Rs},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 ts&&(x=x.adornedPart),x instanceof Hi){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}),tc("SubGraphExpanderButton",function(){var a=Uu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Uu(Yr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Rs},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 ts&&(x=x.adornedPart),x instanceof Xr){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}),tc("ToolTip",function(){return Uu(ts,Tn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new oe(0,3),shadowBlur:5},Uu(Yr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new $i(0,0,4,6),spot2:new $i(1,1,-4,-4)}))}),tc("ContextMenu",function(){return Uu(ts,Tn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new oe(0,3),shadowBlur:5},new al("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),tc("ContextMenuButton",function(){var a=Uu("Button");a.stretch=or;var y=a.fb("ButtonBorder");return y instanceof Yr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new $i(0,0,2,3),y.spot2=new $i(1,1,-2,-2)),a}),tc("PanelExpanderButton",function(a){var y=vf(a,"COLLAPSIBLE"),x=Uu("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},Uu(Yr,{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 Yr&&(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}),tc("CheckBoxButton",function(a){var y=vf(a);return a=Uu("Button",{desiredSize:new Li(14,14)},Uu(Yr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:oi,geometryStretch:Yi,visible:!1},y!==""?new al("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Tn){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}),tc("CheckBox",function(a){a=vf(a),a=Uu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Sr(0,1,0,0)});var y=Uu(Tn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Sr(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}),ze.None=Zn=new zn(ze,"None",0),ze.Default=Ur=new zn(ze,"Default",0),ze.Vertical=Lr=new zn(ze,"Vertical",4),ze.Horizontal=or=new zn(ze,"Horizontal",5),ze.Fill=oi=new zn(ze,"Fill",3),ze.Uniform=Yi=new zn(ze,"Uniform",1),ze.UniformToFill=yo=new zn(ze,"UniformToFill",2),ze.FlipVertical=Wr=new zn(ze,"FlipVertical",1),ze.FlipHorizontal=Mo=new zn(ze,"FlipHorizontal",2),ze.FlipBoth=is=new zn(ze,"FlipBoth",3),ze.make=Uu,ze.getBuilders=function(){var a=new Zi,y;for(y in yf)if(y!==y.toLowerCase()){var x=yf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ze.defineBuilder=tc,ze.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=yf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof ze))return y&&b.set(y),b;Fe('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},ze.takeBuilderArgument=vf;function kd(){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=eo,this.o=Cs,this.hg=Ur,this.ob=this.Bi=1,this.Pf=Zn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}kd.prototype.copy=function(){var a=new kd;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 cd(){this.u=-1/0,this.o=0,this.F=zo,this.rr=lh,this.j=this.V="None"}cd.prototype.copy=function(){var a=new cd;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},cd.className="LinkElementSettings";function Gf(){this.yj=this.Xi=ss,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Gf.prototype.copy=function(){var a=new Gf;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},Gf.className="LinkSettings";function Od(){this.ha=[1,0,0,1,0,0]}Od.prototype.copy=function(){var a=new Od;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},Od.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},Od.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Od.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)}},Od.className="STransform";function ec(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}ec.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},ec.className="SGradient";function Xl(a,y,x){this.ownerDocument=a=y===void 0?ye.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 lu(this,x)}Xl.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},Xl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),wn(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},Xl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Xl.prototype.focus=function(){this.Oa.focus()},Xl.prototype.mx=function(){this.ownerDocument=null},he.Object.defineProperties(Xl.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}}}),Xl.className="SVGSurface";function lu(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 Od,this.j=nc(this),this.Nj=nc(this,"gojs-diagram"),this.Hl=this.ti=null;var x=ea++,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 Kf(a,y,x,b,E,z,tt){a.Nj===void 0?Yh(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}jt=lu.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,kt=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,kt,a-ut,y-dt]),this.path.push(["A",x,x,0,1,kt,St,Et])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),kt,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 ec("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"+ea++,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(Wu,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},jt.createRadialGradient=function(a,y,x,b,E,z){var tt=new ec("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Sp(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,Sp(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&<.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')"),Dd(this,Wu,z,this.rb),this.addElement(Wu,z)},jt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),jd(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]},Dd(this,"fill",a,this.rb),this.addElement("rect",a)},jt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},Dd(this,"fill",a,this.rb),jd(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},Dd(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||Yh(this,a,y,x,b,E,z)};function zg(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(){xp(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 Dd(a,y,x,b){y==="fill"?jd(a,x):y==="stroke"&&xp(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function jd(a,y){a.fillStyle instanceof ec?y.fill=Vh(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 Wf(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof ec?y.setAttributeNS(null,"fill",Vh(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 xp(a,y){if(a.strokeStyle instanceof ec)y.stroke=Vh(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 Vh(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"+ea++,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=Br(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,Dd(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 Yh(a,y,x,b,E,z,tt){var rt=new Od;rt.ha=[y,x,b,E,z,tt],y={},Dd(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function nc(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 NA(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function ic(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(){},lu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},lu.prototype.getImageData=function(){return null},lu.prototype.measureText=function(){return null};function rc(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()))}lu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},lu.className="SVGContext",un.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Xl(this,ye.document));var y=new Xl(this,ye.document,!0);a===void 0&&(a=new Dr);var x=this;return _o(this,function(b,E){return b=vs(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},un.prototype.makeSvg=un.prototype.Cs,un.prototype.av=function(a){return this.Cs(a)},un.prototype.makeSVG=un.prototype.av;function Rl(a,y,x,b){this.ownerDocument=y=y===void 0?ye.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ud(y,x,b),y.H=a}Rl.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},Rl.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Rl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Rl.prototype.focus=function(){this.Oa.focus()},Rl.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},he.Object.defineProperties(Rl.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}}}),Rl.className="CanvasSurface";function Ud(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 mo,this.isTemporary=!!x}jt=Ud.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()},Ud.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},jt=Ud.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 us&&a.type===ie){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(a0),a.lineDashOffset=0)},jt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},jt.Hs=function(){},he.Object.defineProperties(Ud.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 a0=Object.freeze([]);Ud.className="CanvasSurfaceContext";function wf(){this.F=this.o=this.u=this.j=0}wf.className="ColorNumbers";function us(a,y){pt||(Pt(),pt=!0),Go(this),this._isFrozen=!1,a===void 0?(this.na=Lt,this.xk="black"):typeof a=="string"?(this.na=Lt,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Wt?(this.Qd=Ml,this.Lk=ql):this.Lk=a===ie?this.Qd=bo:this.Qd=ba,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}us.prototype.copy=function(){var a=new us;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=us.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===us&&(this.type=a)},jt.toString=function(){var a="Brush(";if(this.type===Lt)a+=this.color;else if(a=this.type===Wt?a+"Linear ":this.type===ie?a+"Radial ":this.type===Me?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)&&Ni(a,"0 <= loc <= 1",us,"addColorStop:loc"),this.we===null&&(this.we=new Zi),this.we.add(a,y),this.na===Lt&&(this.type=Wt),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?ke:y,this.type===Lt)Xh(this.color),this.color=fd(a,y);else if((this.type===Wt||this.type===ie)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Xh(x.value),this.addColorStop(x.key,fd(a,y));return this};function _g(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?ke:x,Xh(a),fd(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?ke:y,this.type===Lt)Xh(this.color),this.color=fd(-a,y);else if((this.type===Wt||this.type===ie)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Xh(x.value),this.addColorStop(x.key,fd(-a,y));return this};function Gg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?ke:x,Xh(a),fd(-y,x)}function Kg(a,y,x){Xh(a),a=rn.j;var b=rn.u,E=rn.o,z=rn.F;return Xh(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===Lt)return dd(this.color);if((this.type===Wt||this.type===ie)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ie)return dd(a.first().value);if(a.get(.5)!==null)return dd(a.get(.5));if(a.count===2)return a=a.Fa(),dd(Kg(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,dd(Kg(a.get(x),a.get(b),1-z/E))}return!1};function dd(a){return a?a instanceof us?a.Gx():(Xh(a),128>(299*rn.j+587*rn.u+114*rn.o)/1e3):!1}function fd(a,y){switch(y){case ke:y=100*xg(rn.j);var x=100*xg(rn.u),b=100*xg(rn.o);return gi.j=.4124564*y+.3575761*x+.1804375*b,gi.u=.2126729*y+.7151522*x+.072175*b,gi.o=.0193339*y+.119192*x+.9503041*b,gi.F=rn.F,y=Bt(gi.j/$e[0]),x=Bt(gi.u/$e[1]),b=Bt(gi.o/$e[2]),Qi.j=116*x-16,Qi.u=500*(y-x),Qi.o=200*(x-b),Qi.F=gi.F,Qi.j=Math.min(100,Math.max(0,Qi.j+100*a)),a=(Qi.j+16)/116,y=a-Qi.o/200,gi.j=$e[0]*xt(Qi.u/500+a),gi.u=$e[1]*(Qi.j>Ce*te?Math.pow(a,3):Qi.j/Ce),gi.o=$e[2]*xt(y),gi.F=Qi.F,a=-.969266*gi.j+1.8760108*gi.u+.041556*gi.o,y=.0556434*gi.j+-.2040259*gi.u+1.0572252*gi.o,rn.j=255*Wg((3.2404542*gi.j+-1.5371385*gi.u+-.4985314*gi.o)/100),rn.u=255*Wg(a/100),rn.o=255*Wg(y/100),rn.F=gi.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 Ue:return Vf(),hi.o=Math.min(100,Math.max(0,hi.o+100*a)),"hsla("+hi.j+", "+hi.u+"%, "+hi.o+"%, "+hi.F+")";default:Fe("Unknown color space: "+y)}}function Xh(a){pt||(Pt(),pt=!0);var y=Cn;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 Vf(){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))}hi.j=Math.round(tt),hi.u=Math.round(100*a),hi.o=Math.round(100*E),hi.F=rn.F}function xg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Wg(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):(Ce*a+16)/116}function xt(a){var y=a*a*a;return y>te?y:(116*a-16)/Ce}function bt(a,y){typeof a!="string"&&(a instanceof us||Fe("Value for "+y+" must be a color string or a Brush, not "+a))}function Pt(){Cn=Ko?new Rl(null,void 0,{willReadFrequently:!0}).context:null}he.Object.defineProperties(us.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Qn(this,a),this.na=a,this.start.Mc()&&(a===Wt?this.start=Ml:a===ie&&(this.start=bo)),this.end.Mc()&&(a===Wt?this.end=ql:a===ie&&(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&&Ni(a,">= zero",us,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Qn(this,a),0>a&&Ni(a,">= zero",us,"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}}}),us.prototype.isDark=us.prototype.Gx,us.prototype.darkenBy=us.prototype.Wy,us.prototype.lightenBy=us.prototype.Vz,us.prototype.addColorStop=us.prototype.addColorStop;var te=216/24389,Ce=24389/27,$e=[95.047,100,108.883],Cn=null,rn=new wf,hi=new wf,gi=new wf,Qi=new wf,pt=!1;us.className="Brush";var Lt;us.Solid=Lt=new zn(us,"Solid",0);var Wt;us.Linear=Wt=new zn(us,"Linear",1);var ie;us.Radial=ie=new zn(us,"Radial",2);var Me;us.Pattern=Me=new zn(us,"Pattern",4);var ke;us.Lab=ke=new zn(us,"Lab",5);var Ue;us.HSL=Ue=new zn(us,"HSL",6),us.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},us.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;pt||(Pt(),pt=!0);var y=Cn;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)},us.lighten=function(a){return _g(a)},us.lightenBy=_g,us.darken=function(a){return Gg(a)},us.darkenBy=Gg,us.mix=Kg,us.isDark=dd;function Ke(){this.xa="Base"}Ke.prototype.measure=function(){},Ke.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ke.prototype.arrange=function(){},Ke.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Ke.prototype.iA=function(a){a.Uj()},Ke.prototype.gc=function(){},he.Object.defineProperties(Ke.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Tn}}}),Ke.prototype.remeasureObject=Ke.prototype.iA,Ke.prototype.arrangeElement=Ke.prototype.Ly,Ke.prototype.measureElement=Ke.prototype.Yz,Ke.className="PanelLayout";function en(){this.xa="Base"}nn(en,Ke),en.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;a=ia(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 Yr&<.isGeometryPositioned&&(lt=lt.strokeWidth/2,St-=lt,Et-=lt),fs(E,St,Et,dt,ut)}}},en.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 Yr&&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 hn(){this.xa="Base"}nn(hn,Ke),hn.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;y=nr(),z=ia(a);for(var st=0;st<rt;st++){var lt=b[st];if(lt.visible||lt===z){var ut=gu(lt,!1);if(ut!==Zn&&ut!==or)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));yr(y)},hn.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,kt=z+E.bottom,_t=dt.height,Ae=gu(ut,!1);(isNaN(ut.desiredSize.height)&&Ae===oi||Ae===Lr)&&(_t=Math.max(x.height-Et-kt,0)),Et=_t+Et+kt,kt=ut.alignment,kt.Xb()&&(kt=a.defaultAlignment),kt.sb()||(kt=bo),tt&&(rt-=dt.width+St.left+St.right),ut.arrange(rt+kt.offsetX+St.left,lt+kt.offsetY+St.top+(x.height*kt.y-Et*kt.y),dt.width,_t),tt||(rt+=dt.width+St.left+St.right)}}};function Dn(){this.xa="Base"}nn(Dn,Ke),Dn.prototype.measure=function(a,y,x,b,E,z){var tt=b.length;x=nr();for(var rt=ia(a),st=0;st<tt;st++){var lt=b[st];if(lt.visible||lt===rt){var ut=gu(lt,!1);if(ut!==Zn&&ut!==Lr)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,ua(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);yr(x)}},Dn.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,kt=z+E.right,_t=dt.width,Ae=gu(ut,!1);(isNaN(ut.desiredSize.width)&&Ae===oi||Ae===or)&&(_t=Math.max(x.width-Et-kt,0)),Et=_t+Et+kt,kt=ut.alignment,kt.Xb()&&(kt=a.defaultAlignment),kt.sb()||(kt=bo),tt&&(rt-=dt.height+St.bottom+St.top),ut.arrange(lt+kt.offsetX+St.left+(x.width*kt.x-Et*kt.x),rt+kt.offsetY+St.top,_t,dt.height),tt||(rt+=dt.height+St.bottom+St.top)}}};function Fi(){this.xa="Base"}nn(Fi,Ke),Fi.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),kt=Math.max(tt+dt,0),_t=a.isClipping,Ae=Nn.allocAt(-lt.left,-lt.top,Et,kt),re=Nn.allocAt(0,0,z,tt);Ei(st,re,!0),z=re.width,tt=re.height;for(var we=!0,Pe=ia(a),Ee=0;Ee<rt;Ee++){var Ve=b[Ee];St=y;var fn=x;if(Ve!==st&&(Ve.visible||Ve===Pe)){lt=Ve.margin;var Oi=lt.left,Ji=lt.top;switch(Et=lt.right+lt.left,kt=lt.top+lt.bottom,lt=gu(Ve,!1),lt){case oi:St=z,fn=tt,Ji=Oi=kt=Et=0;break;case or:St=z,Oi=Et=0;break;case Lr:fn=tt,Ji=kt=0}Ve.measure(St,fn,0,0),St=Ve.measuredBounds,Et=Math.max(St.width+Et,0),kt=Math.max(St.height+kt,0),lt=Ve.alignment,lt.Xb()&&(lt=a.defaultAlignment),lt.sb()||(lt=bo);var Vi=Ve.alignmentFocus;if(Vi.Xb()&&(Vi=bo),fn=null,Ve instanceof Tn&&Ve.$e!==""&&(fn=Ve.fb(Ve.$e),fn===Ve&&(fn=null)),Oi=re.x-Oi,Ji=re.y-Ji,fn!==null){for(Ve.arrange(0,0,St.width,St.height),St=fn.actualBounds,St=oe.allocAt(St.x+(Vi.x*St.width-Vi.offsetX),St.y+(Vi.y*St.height-Vi.offsetY)),fn=fn.panel;fn!==Ve;)fn.transform.Ga(St),fn=fn.panel;Oi+=lt.x*z+lt.offsetX-St.x,Ji+=lt.y*tt+lt.offsetY-St.y,oe.free(St)}else Oi+=lt.x*z+lt.offsetX-(Vi.x*St.width+Vi.offsetX),Ji+=lt.y*tt+lt.offsetY-(Vi.y*St.height+Vi.offsetY);we?(we=!1,E.h(Oi,Ji,Et,kt)):fs(E,Oi,Ji,Et,kt)}}switch(we?E.assign(Ae):_t?E.Uu(re.x,re.y,re.width,re.height):fs(E,Ae.x,Ae.y,Ae.width,Ae.height),Nn.free(Ae),Nn.free(re),lt=st.stretch,lt===Ur&&(lt=gu(st,!1)),lt){case Zn:return;case oi:if(!isFinite(y)&&!isFinite(x))return;break;case or:if(!isFinite(y))return;break;case Lr:if(!isFinite(x))return}for(St=st.measuredBounds,z=St.width,tt=St.height,Et=Math.max(z+ut,0),kt=Math.max(tt+dt,0),lt=st.margin,re=Nn.allocAt(-lt.left,-lt.top,Et,kt),Ei(st,re,!0),z=re.width,tt=re.height,y=0;y<rt;y++)x=b[y],x===st||!x.visible&&x!==Pe||(lt=x.margin,Et=lt.right+lt.left,kt=lt.top+lt.bottom,St=x.measuredBounds,Et=Math.max(St.width+Et,0),kt=Math.max(St.height+kt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=bo),x=x.alignmentFocus,x.Xb()&&(x=bo),we?(we=!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,kt)):fs(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,kt));we?E.assign(Ae):_t?E.Uu(re.x,re.y,re.width,re.height):fs(E,Ae.x,Ae.y,Ae.width,Ae.height),Nn.free(re)},Fi.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=Nn.allocAt(0,0,tt,rt),Ei(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 kt=dt.alignmentFocus;if(kt.Xb()&&(kt=bo),lt=null,dt instanceof Tn&&dt.$e!==""&&(lt=dt.fb(dt.$e),lt===dt&&(lt=null)),lt!==null){var _t=lt.actualBounds;for(kt=oe.allocAt(_t.x+(kt.x*_t.width-kt.offsetX),_t.y+(kt.y*_t.height-kt.offsetY)),lt=lt.panel;lt!==dt;)lt.transform.Ga(kt),lt=lt.panel;lt=ut.x*tt.width+ut.offsetX-kt.x,ut=ut.y*tt.height+ut.offsetY-kt.y,oe.free(kt)}else lt=ut.x*tt.width+ut.offsetX-(kt.x*St+kt.offsetX),ut=ut.y*tt.height+ut.offsetY-(kt.y*Et+kt.offsetY);lt+=tt.x-x.x,ut+=tt.y-x.y,dt.visible&&dt.arrange(z+lt,st+ut,St,Et)}}Nn.free(tt)};function Ei(a,y,x){var b=null;if(a instanceof Tn&&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 ii(){this.xa="Base"}nn(ii,Ke),ii.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 kt=0,_t=null;st instanceof Yr&&(_t=st,kt=_t.strokeWidth*_t.scale);var Ae=Math.max(lt.width+St,0);lt=Math.max(lt.height+Et,0);var re=OA(st),we=re.x*Ae+re.offsetX;re=re.y*lt+re.offsetY;var Pe=sh(st),Ee=Pe.x*Ae+Pe.offsetX;for(Pe=Pe.y*lt+Pe.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(we-Ee)-kt,0)),isFinite(x)&&(dt=Math.max(Math.abs(re-Pe)-kt,0)),kt=Li.alloc(),kt.h(0,0),a=ia(a),Pe=0;Pe<rt;Pe++)re=b[Pe],re===st||!re.visible&&re!==a||(lt=re.margin,Ae=lt.right+lt.left,we=lt.top+lt.bottom,re.measure(ut,dt,0,0),lt=re.measuredBounds,Ae=Math.max(lt.width+Ae,0),lt=Math.max(lt.height+we,0),kt.h(Math.max(Ae,kt.width),Math.max(lt,kt.height)));if(rt===1)E.width=Ae,E.height=lt,Li.free(kt);else{switch(re=OA(st),Pe=sh(st),rt=b=0,Pe.x!==re.x&&Pe.y!==re.y&&(b=kt.width/Math.abs(Pe.x-re.x),rt=kt.height/Math.abs(Pe.y-re.y)),Li.free(kt),kt=0,_t!==null&&(kt=_t.strokeWidth*_t.scale,Jg(_t)===Yi&&(b=rt=Math.max(b,rt))),b+=Math.abs(re.offsetX)+Math.abs(Pe.offsetX)+kt,rt+=Math.abs(re.offsetY)+Math.abs(Pe.offsetY)+kt,_t=st.stretch,_t===Ur&&(_t=gu(st,!1)),_t){case Zn:tt=z=0;break;case oi:isFinite(y)&&(b=y),isFinite(x)&&(rt=x);break;case or:isFinite(y)&&(b=y),tt=0;break;case Lr: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}},ii.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=Nn.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=OA(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,fs(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&&(Gs(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 Nn(z.x,z.y,z.width,z.height))));Nn.free(z)};function mr(){this.xa="Base",this.name="Table"}nn(mr,Ke),mr.prototype.measure=function(a,y,x,b,E){for(var z=b.length,tt=nr(),rt=nr(),st=0;st<z;st++){var lt=b[st],ut=lt instanceof Tn?lt:null;if(ut!==null&&za(ut)&<.visible){rt.push(ut);for(var dt=ut.O.s,St=dt.length,Et=0;Et<St;Et++){var kt=dt[Et];ut.type===Tn.TableRow?kt.row=lt.row:ut.type===Tn.TableColumn&&(kt.column=lt.column),tt.push(kt)}}else tt.push(lt)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var _t=[],Ae=0;Ae<z;Ae++){var re=tt[Ae];re.visible&&(Ha(re,!0),mA(re,!0),_t[re.row]||(_t[re.row]=[]),_t[re.row][re.column]||(_t[re.row][re.column]=[]),_t[re.row][re.column].push(re))}yr(tt);var we=nr(),Pe=nr(),Ee=nr(),Ve={count:0},fn={count:0},Oi=y,Ji=x,Vi=a.rowDefs,vi=a.colDefs,ti=null;z=Vi.length;for(var Gr=0;Gr<z;Gr++)ti=Vi[Gr],ti!==void 0&&(ti.actual=0);z=vi.length;for(var kr=0;kr<z;kr++)ti=vi[kr],ti!==void 0&&(ti.actual=0);for(var rs=_t.length,Os=0,Hl=0;Hl<rs;Hl++)_t[Hl]&&(Os=Math.max(Os,_t[Hl].length));var Jl=Math.min(a.topIndex,rs-1),Xu=Math.min(a.leftIndex,Os-1),zl=0;rs=_t.length;for(var Tf=ia(a),ll=0;ll<rs;ll++)if(_t[ll]){Os=_t[ll].length;var Vc=a.Fb(ll);Vc.actual=0;for(var Zu=Vc.oc=0;Zu<Os;Zu++)if(_t[ll][Zu]){var kf=a.Eb(Zu);we[Zu]===void 0&&(kf.actual=0,kf.oc=0,we[Zu]=!0);for(var CA=_t[ll][Zu],lc=CA.length,$h=0;$h<lc;$h++){var Uh=CA[$h];if(Uh.visible||Uh===Tf){var dg=1<Uh.rowSpan||1<Uh.columnSpan;dg&&(ll<Jl||Zu<Xu||Pe.push(Uh));var Yc=Uh.margin,Jp=Yc.right+Yc.left,qh=Yc.top+Yc.bottom,Ju=ta(Uh,Vc,kf,!1),V0=Uh.desiredSize,dp=!isNaN(V0.height),wd=!isNaN(V0.width)&&dp;if(dg||Ju===Zn||wd||ll<Jl||Zu<Xu||(Ve[Zu]!==void 0||Ju!==oi&&Ju!==or||(Ve[Zu]=-1,Ve.count++),fn[ll]!==void 0||Ju!==oi&&Ju!==Lr||(fn[ll]=-1,fn.count++),Ee.push(Uh)),Uh.measure(1/0,1/0,0,0),!(ll<Jl||Zu<Xu)){var Qh=Uh.measuredBounds,Og=Math.max(Qh.width+Jp,0),tA=Math.max(Qh.height+qh,0);if(Uh.rowSpan===1&&(Ju===Zn||Ju===or)){ti=a.Fb(ll);var fg=ti.Wc();zl=Math.max(tA-ti.actual,0),zl+fg>Ji&&(zl=Math.max(Ji-fg,0));var sv=ti.oa===0;ti.oc=ti.oc+zl,ti.actual=ti.oa+zl,Ji=Math.max(Ji-(zl+(sv?fg:0)),0)}if(Uh.columnSpan===1&&(Ju===Zn||Ju===Lr)){ti=a.Eb(Zu);var Y0=ti.Wc();zl=Math.max(Og-ti.actual,0),zl+Y0>Oi&&(zl=Math.max(Oi-Y0,0));var By=ti.oa===0;ti.oc=ti.oc+zl,ti.actual=ti.oa+zl,Oi=Math.max(Oi-(zl+(By?Y0:0)),0)}dg&&Uh.Uj()}}}}}yr(we);var Vd=0,lf=0;z=a.columnCount;for(var fp=0;fp<z;fp++){var gg=vi[fp];gg!==void 0&&(Vd+=isNaN(gg.Hc)?gg.oc:gg.Hc,gg.oc!==0&&(Vd+=gg.Wc()))}z=a.rowCount;for(var $p=0;$p<z;$p++){var pg=Vi[$p];pg!==void 0&&(lf+=isNaN(pg.Hc)?pg.oc:pg.Hc,pg.oc!==0&&(lf+=pg.Wc()))}Oi=Math.max(y-Vd,0);var Yd=Ji=Math.max(x-lf,0),Of=Oi;z=Ee.length;for(var Rh=0;Rh<z;Rh++){var Sd=Ee[Rh],av=a.Fb(Sd.row),uf=a.Eb(Sd.column),qp=Sd.measuredBounds,Xc=Sd.margin,Dg=Xc.right+Xc.left,xd=Xc.top+Xc.bottom;Ve[Sd.column]=uf.oc===0&&Ve[Sd.column]!==void 0?Math.max(qp.width+Dg,Ve[Sd.column]):null,fn[Sd.row]=av.oc===0&&fn[Sd.row]!==void 0?Math.max(qp.height+xd,fn[Sd.row]):null}var gp=0,t0=0,Ic;for(Ic in fn)Ic!=="count"&&(gp+=fn[Ic]);for(Ic in Ve)Ic!=="count"&&(t0+=Ve[Ic]);for(var hu=Li.alloc(),X0=0;X0<z;X0++){var dh=Ee[X0];if(dh.visible||dh===Tf){var ul=a.Fb(dh.row),fh=a.Eb(dh.column),hf=0;isFinite(fh.width)?hf=fh.width:(isFinite(Oi)&&Ve[dh.column]!==null?t0===0?hf=fh.actual+Oi:hf=Ve[dh.column]/t0*Of:Ve[dh.column]!==null?hf=Oi:hf=fh.actual||Oi,hf=Math.max(0,hf-fh.Wc()));var Df=0;switch(isFinite(ul.height)?Df=ul.height:(isFinite(Ji)&&fn[dh.row]!==null?gp===0?Df=ul.actual+Ji:Df=fn[dh.row]/gp*Yd:fn[dh.row]!==null?Df=Ji:Df=ul.actual||Ji,Df=Math.max(0,Df-ul.Wc())),hu.h(Math.max(fh.minimum,Math.min(hf,fh.maximum)),Math.max(ul.minimum,Math.min(Df,ul.maximum))),Ju=ta(dh,ul,fh,!1),Ju){case or:hu.height=Math.max(hu.height,ul.actual+Ji);break;case Lr:hu.width=Math.max(hu.width,fh.actual+Oi)}var jg=dh.margin,Cy=jg.right+jg.left,lv=jg.top+jg.bottom;dh.Uj(),dh.measure(hu.width,hu.height,fh.minimum,ul.minimum);var e0=dh.measuredBounds,Ug=Math.max(e0.width+Cy,0),pp=Math.max(e0.height+lv,0);isFinite(Oi)&&(Ug=Math.min(Ug,hu.width)),isFinite(Ji)&&(pp=Math.min(pp,hu.height));var Hh=0;Hh=ul.actual,ul.actual=Math.max(ul.actual,pp),ul.oc=Math.max(ul.oc,pp),zl=ul.actual-Hh,Ji=Math.max(Ji-zl,0),fn[dh.row]===null&&(Yd=Math.max(Yd-zl,0)),Hh=fh.actual,fh.actual=Math.max(fh.actual,Ug),fh.oc=Math.max(fh.oc,Ug),zl=fh.actual-Hh,Oi=Math.max(Oi-zl,0),Ve[dh.column]===null&&(Of=Math.max(Of-zl,0))}}yr(Ee);var Af=Li.alloc(),Zc=nr(),HA=nr();if(z=Pe.length,z!==0){for(var mg=0;mg<rs;mg++)if(_t[mg]){Os=_t[mg].length;var n0=a.Fb(mg);Zc[mg]=n0.actual;for(var vg=0;vg<Os;vg++)if(_t[mg][vg]){var uv=a.Eb(vg);HA[vg]=uv.actual}}}for(var i0=0;i0<z;i0++){var Ga=Pe[i0];if(Ga.visible||Ga===Tf){var Tc=a.Fb(Ga.row),uc=a.Eb(Ga.column);switch(hu.h(Math.max(uc.minimum,Math.min(y,uc.maximum)),Math.max(Tc.minimum,Math.min(x,Tc.maximum))),Ju=ta(Ga,Tc,uc,!1),Ju){case oi:HA[uc.index]!==0&&(hu.width=Math.min(hu.width,HA[uc.index])),Zc[Tc.index]!==0&&(hu.height=Math.min(hu.height,Zc[Tc.index]));break;case or:HA[uc.index]!==0&&(hu.width=Math.min(hu.width,HA[uc.index]));break;case Lr:Zc[Tc.index]!==0&&(hu.height=Math.min(hu.height,Zc[Tc.index]))}isFinite(uc.width)&&(hu.width=uc.width),isFinite(Tc.height)&&(hu.height=Tc.height),Af.h(0,0);for(var hv=uc.minimum,eA=Tc.minimum,jf=1;jf<Ga.rowSpan&&!(Ga.row+jf>=a.rowCount);jf++)ti=a.Fb(Ga.row+jf),zl=0,zl=Ju===oi||Ju===Lr?Math.max(ti.minimum,Zc[Ga.row+jf]===0?ti.maximum:Math.min(Zc[Ga.row+jf],ti.maximum)):Math.max(ti.minimum,isNaN(ti.Hc)?ti.maximum:Math.min(ti.Hc,ti.maximum)),Af.height+=zl,eA+=ti.minimum;for(var hc=1;hc<Ga.columnSpan&&!(Ga.column+hc>=a.columnCount);hc++)ti=a.Eb(Ga.column+hc),zl=0,zl=Ju===oi||Ju===or?Math.max(ti.minimum,HA[Ga.column+hc]===0?ti.maximum:Math.min(HA[Ga.column+hc],ti.maximum)):Math.max(ti.minimum,isNaN(ti.Hc)?ti.maximum:Math.min(ti.Hc,ti.maximum)),Af.width+=zl,hv+=ti.minimum;hu.width+=Af.width,hu.height+=Af.height;var r0=Ga.margin,yg=r0.right+r0.left,Z0=r0.top+r0.bottom;Ga.measure(hu.width,hu.height,hv,eA);for(var o0=Ga.measuredBounds,Bd=Math.max(o0.width+yg,0),Qg=Math.max(o0.height+Z0,0),wg=0,s0=0;s0<Ga.rowSpan&&!(Ga.row+s0>=a.rowCount);s0++)ti=a.Fb(Ga.row+s0),wg+=ti.total||0;if(wg<Qg){var Uf=Qg-wg,Xd=Qg-wg;if(Ga.spanAllocation!==null)for(var Qf=Ga.spanAllocation,cf=0;cf<Ga.rowSpan&&!(0>=Uf)&&!(Ga.row+cf>=a.rowCount);cf++){ti=a.Fb(Ga.row+cf);var Rf=ti.oa||0,Rg=Qf(Ga,ti,Xd);ti.actual=Math.min(ti.maximum,Rf+Rg),ti.oa!==Rf&&(Uf-=ti.oa-Rf)}for(;0<Uf;){var Jc=ti.oa||0;if(isNaN(ti.height)&&ti.maximum>Jc&&(ti.actual=Math.min(ti.maximum,Jc+Uf),ti.oa!==Jc&&(Uf-=ti.oa-Jc)),ti.index===0)break;ti=a.Fb(ti.index-1)}}for(var mp=0,Hf=0;Hf<Ga.columnSpan&&!(Ga.column+Hf>=a.columnCount);Hf++)ti=a.Eb(Ga.column+Hf),mp+=ti.total||0;if(mp<Bd){var vp=Bd-mp,Py=Bd-mp;if(Ga.spanAllocation!==null)for(var df=Ga.spanAllocation,Hg=0;Hg<Ga.columnSpan&&!(0>=vp)&&!(Ga.column+Hg>=a.columnCount);Hg++){ti=a.Eb(Ga.column+Hg);var J0=ti.oa||0,by=df(Ga,ti,Py);ti.actual=Math.min(ti.maximum,J0+by),ti.oa!==J0&&(vp-=ti.oa-J0)}for(;0<vp;){var Av=ti.oa||0;if(isNaN(ti.width)&&ti.maximum>Av&&(ti.actual=Math.min(ti.maximum,Av+vp),ti.oa!==Av&&(vp-=ti.oa-Av)),ti.index===0)break;ti=a.Eb(ti.index-1)}}}}yr(Pe),Li.free(Af),Li.free(hu),Zc!==void 0&&yr(Zc),HA!==void 0&&yr(HA);var yp=0,wp=0,cv=a.desiredSize,vw=a.maxSize;Ju=gu(a,!0);var $0=lf=Vd=0,q0=0;z=a.columnCount;for(var dv=0;dv<z;dv++)vi[dv]!==void 0&&(ti=a.Eb(dv),isFinite(ti.width)?($0+=ti.width,$0+=ti.Wc()):Zg(ti)===Zf?($0+=ti.oa,$0+=ti.Wc()):ti.oa!==0&&(Vd+=ti.oa,Vd+=ti.Wc()));isFinite(cv.width)?yp=Math.min(cv.width,vw.width):yp=Ju!==Zn&&isFinite(y)?y:Vd,yp=Math.max(yp,a.minSize.width),yp=Math.max(yp-$0,0);for(var Jw=Vd===0?1:Math.max(yp/Vd,1),fv=0;fv<z;fv++)vi[fv]!==void 0&&(ti=a.Eb(fv),isFinite(ti.width)||Zg(ti)===Zf||(ti.actual=ti.oa*Jw),ti.position=E.width,ti.oa!==0&&(E.width+=ti.oa,E.width+=ti.Wc()));z=a.rowCount;for(var gv=0;gv<z;gv++)Vi[gv]!==void 0&&(ti=a.Fb(gv),isFinite(ti.height)?(q0+=ti.height,q0+=ti.Wc()):Zg(ti)===Zf?(q0+=ti.oa,q0+=ti.Wc()):ti.oa!==0&&(lf+=ti.oa,lf+=ti.Wc()));isFinite(cv.height)?wp=Math.min(cv.height,vw.height):wp=Ju!==Zn&&isFinite(x)?x:lf,wp=Math.max(wp,a.minSize.height),wp=Math.max(wp-q0,0);for(var $w=lf===0?1:Math.max(wp/lf,1),pv=0;pv<z;pv++)Vi[pv]!==void 0&&(ti=a.Fb(pv),isFinite(ti.height)||Zg(ti)===Zf||(ti.actual=ti.oa*$w),ti.position=E.height,ti.oa!==0&&(E.height+=ti.oa,E.height+=ti.Wc()));z=rt.length;for(var Ly=0;Ly<z;Ly++){var tm=rt[Ly],Fy=0,Ey=0;tm.type===Tn.TableRow?(Fy=E.width,ti=a.Fb(tm.row),Ey=ti.actual):(ti=a.Eb(tm.column),Fy=ti.actual,Ey=E.height),tm.measuredBounds.h(0,0,Fy,Ey),Ha(tm,!1)}yr(rt),a.inRowsCols=_t},mr.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 kt=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;kt!==ut&&(rt[kt]===void 0||rt[kt].oa===0);)kt++;kt=Math.max(Math.min(kt,ut-1),0),St=-rt[kt].position}for(var _t=0,Ae=0;_t!==lt&&st[_t]===void 0;)_t++;for(;Ae!==lt&&rt[Ae]===void 0;)Ae++;ut=a.part,a.Fb(_t),a.Eb(Ae);for(var re=0;re<y.length;re++){var we=y[re];if(we instanceof Tn&&we.visible&&za(we)){if(we.type===Tn.TableRow){rt=a.Fb(we.row);var Pe=a.Eb(Ae)}else rt=a.Fb(_t),Pe=a.Eb(we.column);st=rt.position+dt+E,rt.oa!==0&&(st+=rt.Io(Math.max(_t,Et))),rt=Pe.position+St+z,Pe.oa!==0&&(rt+=Pe.Io(Math.max(Ae,kt))),Pe=we.measuredBounds,we.Uk(),we.actualBounds.ka();var Ee=we.actualBounds,Ve=Nn.allocAt(Ee.x,Ee.y,Ee.width,Ee.height);Ee.x=we.type===Tn.TableRow?z:rt,Ee.y=we.type===Tn.TableColumn?E:st,Ee.width=Pe.width,Ee.height=Pe.height,we.actualBounds.freeze(),mA(we,!1),nA(Ve,Ee)||ut===null||(ut.oh(),we.Pn(ut)),Nn.free(Ve)}}for(re=Li.alloc(),we=0;we<lt;we++)if(tt[we]){for(ut=tt[we].length,Pe=a.Fb(we),st=Pe.position+dt+E,Pe.oa!==0&&(st+=Pe.Io(Math.max(_t,Et))),Ee=0;Ee<ut;Ee++)if(tt[we][Ee]){Ve=a.Eb(Ee),rt=Ve.position+St+z,Ve.oa!==0&&(rt+=Ve.Io(Math.max(Ae,kt)));for(var fn=tt[we][Ee],Oi=fn.length,Ji=0;Ji<Oi;Ji++){var Vi=fn[Ji],vi=Vi.measuredBounds;re.h(0,0);for(var ti=1;ti<Vi.rowSpan&&!(we+ti>=a.rowCount);ti++){var Gr=a.Fb(we+ti);Gr.oa!==0&&(re.height+=Gr.total)}for(ti=1;ti<Vi.columnSpan&&!(Ee+ti>=a.columnCount);ti++)Gr=a.Eb(Ee+ti),Gr.oa!==0&&(re.width+=Gr.total);var kr=Ve.oa+re.width,rs=Pe.oa+re.height;ti=rt,Gr=st;var Os=kr,Hl=rs,Jl=rt,Xu=st,zl=kr,Tf=rs;rt+kr>x.width&&(zl=Math.max(x.width-rt,0)),st+rs>x.height&&(Tf=Math.max(x.height-st,0));var ll=Vi.alignment;if(ll.Xb()){ll=a.defaultAlignment,ll.sb()||(ll=bo);var Vc=ll.x,Zu=ll.y,kf=ll.offsetX;ll=ll.offsetY;var CA=Ve.alignment,lc=Pe.alignment;CA.sb()&&(Vc=CA.x,kf=CA.offsetX),lc.sb()&&(Zu=lc.y,ll=lc.offsetY)}else Vc=ll.x,Zu=ll.y,kf=ll.offsetX,ll=ll.offsetY;(isNaN(Vc)||isNaN(Zu))&&(Zu=Vc=.5,ll=kf=0),CA=vi.width,lc=vi.height;var $h=Vi.margin,Uh=$h.left+$h.right,dg=$h.top+$h.bottom,Yc=ta(Vi,Pe,Ve,!1);!isNaN(Vi.desiredSize.width)||Yc!==oi&&Yc!==or||(CA=Math.max(kr-Uh,0)),!isNaN(Vi.desiredSize.height)||Yc!==oi&&Yc!==Lr||(lc=Math.max(rs-dg,0)),kr=Vi.maxSize,rs=Vi.minSize,CA=Math.min(kr.width,CA),lc=Math.min(kr.height,lc),CA=Math.max(rs.width,CA),lc=Math.max(rs.height,lc),kr=lc+dg,ti+=Os*Vc-(CA+Uh)*Vc+kf+$h.left,Gr+=Hl*Zu-kr*Zu+ll+$h.top,Vi.visible&&(Gs(Jl,Xu,zl,Tf,ti,Gr,vi.width,vi.height)?Vi.arrange(ti,Gr,CA,lc):Vi.arrange(ti,Gr,CA,lc,new Nn(Jl,Xu,zl,Tf)))}}}for(Li.free(re),a=0;a<b;a++)x=y[a],z=x instanceof Tn?x:null,z!==null&&za(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function er(){this.xa="Base"}nn(er,Ke),er.prototype.measure=function(){},er.prototype.arrange=function(){};function di(){this.xa="Base"}nn(di,Ke),di.prototype.measure=function(){},di.prototype.arrange=function(){};function ui(){this.xa="Base"}nn(ui,Ke),ui.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),kt=1;a.viewboxStretch===Yi?dt!==0&&rt!==0&&(kt=Math.min(St/dt,Et/rt)):dt!==0&&rt!==0&&(kt=Math.max(St/dt,Et/rt)),kt===0&&(kt=1e-4),b.Ca*=kt,ut!==b.scale&&(Ha(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)},ui.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 pr(){this.xa="Base"}nn(pr,Ke),pr.prototype.measure=function(){},pr.prototype.arrange=function(){},pr.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=[],kt=a.O.s,_t=kt.length,Ae=0;Ae<_t;Ae++){var re=kt[Ae],we=[];if(Et.push(we),re.visible){var Pe=re.interval;if(!(0>Pe)){re=sa(re.figure);for(var Ee=0;Ee<_t;Ee++)if(Ee!==Ae){var Ve=kt[Ee];Ve.visible&&sa(Ve.figure)===re&&(Ve=Ve.interval,Ve>Pe&&we.push(Ve))}}}}for(kt=a.O.s,_t=kt.length,Ae=0;Ae<_t;Ae++){var fn=kt[Ae];if(fn.visible&&(we=fn.interval||1,re=Math.abs(we),!(2>E*re*x))){if(Pe=fn.segmentIndex,(!isFinite(Pe)||isNaN(Pe))&&(Pe=0),0>Pe&&(Pe=re-Math.min(-Pe,re)),Pe=Math.round(Pe%re),re=fn.opacity,Ee=1,re!==1){if(re===0)continue;Ee=y.globalAlpha,y.globalAlpha=Ee*re}Ve=Et[Ae];var Oi=!1,Ji=fn.strokeDashArray;if(Ji!==null&&(Oi=!0,y.js(Ji,fn.strokeDashOffset)),fn.figure==="LineV"&&fn.stroke!==null&&0<fn.strokeWidth){for(y.lineWidth=fn.strokeWidth,zs(a,y,fn.stroke,!1,!1,z,tt),y.beginPath(),Ji=fn=Math.floor((St-E)/E);Ji<=fn+lt;Ji++){var Vi=Ji*E+St;0<=Vi&&Vi<=rt&&Nr(Ji,we,Pe,Ve)&&(y.moveTo(Vi,0),y.lineTo(Vi,st))}y.stroke(),y.Se()}else if(fn.figure==="LineH"&&fn.stroke!==null&&0<fn.strokeWidth){for(y.lineWidth=fn.strokeWidth,zs(a,y,fn.stroke,!1,!1,z,tt),y.beginPath(),Ji=fn=Math.floor((dt-b)/b);Ji<=fn+ut;Ji++)Vi=Ji*b+dt,0<=Vi&&Vi<=st&&Nr(Ji,we,Pe,Ve)&&(y.moveTo(0,Vi),y.lineTo(rt,Vi));y.stroke(),y.Se()}else if(fn.figure==="BarV"&&fn.fill!==null)for(zs(a,y,fn.fill,!0,!1,z,tt),fn=fn.width,isNaN(fn)&&(fn=E),Vi=Ji=Math.floor((St-E)/E);Vi<=Ji+lt;Vi++){var vi=Vi*E+St;0<=vi+fn&&vi<=rt&&Nr(Vi,we,Pe,Ve)&&y.fillRect(vi,0,fn,st)}else if(fn.figure==="BarH"&&fn.fill!==null)for(zs(a,y,fn.fill,!0,!1,z,tt),fn=fn.height,isNaN(fn)&&(fn=b),Vi=Ji=Math.floor((dt-b)/b);Vi<=Ji+ut;Vi++)vi=Vi*b+dt,0<=vi+fn&&vi<=st&&Nr(Vi,we,Pe,Ve)&&y.fillRect(0,vi,rt,fn);Oi&&y.fs(),re!==1&&(y.globalAlpha=Ee)}}y.restore(),y.Vc(!1)};function Nr(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 Cr(){this.xa="Base"}nn(Cr,Ke),Cr.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof ts||a instanceof yi){var tt=null,rt=null;if(a instanceof yi&&(tt=a),a instanceof ts&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof yi){var st=tt;if(z===0)ua(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var lt=a instanceof ts?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){No(a,rt,St,lt);var kt=lt.measuredBounds;x.ed(kt),Et.push(kt)}kt=mo.alloc();for(var _t=oe.alloc(),Ae=oe.alloc(),re=0;re<z;re++){var we=b[re];if(we!==lt)if(we.isPanelMain&&we instanceof Yr){No(a,rt,St,we);var Pe=we.measuredBounds;x.ed(Pe),Et.push(Pe)}else if(2>dt)we.measure(1/0,1/0,0,0),Pe=we.measuredBounds,x.ed(Pe),Et.push(Pe);else{var Ee=we.segmentIndex,Ve=we.segmentFraction,fn=we.alignmentFocus;fn.Mc()&&(fn=bo);var Oi=we.segmentOrientation,Ji=we.segmentOffset;if(isNaN(Ee)){var Vi=st.ua;Pe=nr(),Vi.Qu(Ve,Pe);var vi=oe.allocAt(Pe[0],Pe[1]);if(vi.add(st.i(0)),Vi.type===Bi.j?vi.offset(-Vi.startX,-Vi.startY):(Vi=Vi.figures.first(),Vi!==null&&vi.offset(-Vi.startX,-Vi.startY)),Vi=Pe[2],Oi!==lh){var ti=st.computeAngle(we,Oi,Vi);we.Kb=ti}ti=vi.x-y.x;var Gr=vi.y-y.y;oe.free(vi),yr(Pe)}else if(Ee<-dt||Ee>=dt)Pe=oe.alloc(),st.vg(),st.computeMidPoint(Pe),Vi=st.midAngle,Oi!==lh&&(ti=st.computeAngle(we,Oi,Vi),we.Kb=ti),ti=Pe.x-y.x,Gr=Pe.y-y.y,oe.free(Pe);else{if(ti=0,0<=Ee?(Gr=ut.M(Ee),Pe=Ee<dt-1?ut.M(Ee+1):Gr):(ti=dt+Ee,Gr=ut.M(ti),Pe=0<ti?ut.M(ti-1):Gr),Gr.Xa(Pe)){0<=Ee?(Vi=0<Ee?ut.M(Ee-1):Gr,ti=Ee<dt-2?ut.M(Ee+2):Pe):(Vi=ti<dt-1?ut.M(ti+1):Gr,ti=1<ti?ut.M(ti-2):Pe),vi=Vi.Bf(Gr);var kr=Pe.Bf(ti);Vi=vi>kr+10?0<=Ee?Vi.ab(Gr):Gr.ab(Vi):kr>vi+10?0<=Ee?Pe.ab(ti):ti.ab(Pe):0<=Ee?Vi.ab(ti):ti.ab(Vi)}else Vi=0<=Ee?Gr.ab(Pe):Pe.ab(Gr);Oi!==lh&&(ti=st.computeAngle(we,Oi,Vi),we.Kb=ti),ti=Gr.x+(Pe.x-Gr.x)*Ve-y.x,Gr=Gr.y+(Pe.y-Gr.y)*Ve-y.y}we.measure(1/0,1/0,0,0),Pe=we.measuredBounds,vi=we.naturalBounds;var rs=0;we instanceof Yr&&(rs=we.strokeWidth),kr=vi.width+rs;var Os=vi.height+rs;kt.reset(),kt.translate(-Pe.x,-Pe.y),kt.scale(we.scale,we.scale),kt.rotate(Oi===lh?we.angle:Vi,kr/2,Os/2),Oi!==w0&&Oi!==x0||kt.rotate(90,kr/2,Os/2),Oi!==S0&&Oi!==B0||kt.rotate(-90,kr/2,Os/2),Oi===vm&&(45<Vi&&135>Vi||225<Vi&&315>Vi)&&kt.rotate(-Vi,kr/2,Os/2),vi=new Nn(0,0,kr,Os),_t.xi(vi,fn),kt.Ga(_t),fn=-_t.x+rs/2*we.scale,we=-_t.y+rs/2*we.scale,Ae.assign(Ji),rs=isNaN(Ji.x);var Hl=isNaN(Ji.y);if(rs||Hl){kr=kr/2+3,Os=Os/2+3;var Jl=45<=Vi&&135>=Vi,Xu=225<=Vi&&315>=Vi;Oi===lh&&(Jl||Xu)?(Ae.x=Hl?kr:Ji.y,Ae.y=rs?Os:Ji.x,Jl?0<=Ee||isNaN(Ee)&&.5>Ve||!rs||(Ae.y=-Os):Xu&&((0<=Ee||isNaN(Ee)&&.5>Ve)&&rs&&(Ae.y=-Os),Hl&&(Ae.x=-kr))):(rs&&(Ae.x=0<=Ee||isNaN(Ee)&&.5>Ve?kr:-kr),Hl&&(Ae.y=-Os),Ae.rotate(Vi))}else Ae.rotate(Vi);ti+=Ae.x,Gr+=Ae.y,vi.set(Pe),vi.h(ti+fn,Gr+we,Pe.width,Pe.height),Et.push(vi),x.ed(vi)}}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),ua(E,x.width||0,x.height||0),mo.free(kt),oe.free(_t),oe.free(Ae)}}}},Cr.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ts||a instanceof yi){var b=a,E=null;a instanceof ts&&(E=a,b=E.adornedPart);var z=a instanceof ts?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 yi)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,kt=nr();Et.Qu(st,kt);var _t=oe.allocAt(kt[0],kt[1]);_t.add(dt.i(0)),Et.type===Bi.j||(Et=Et.figures.first()),_t.offset(-Et.startX,-Et.startY),Et=kt[2],lt!==lh&&(dt=dt.computeAngle(tt,lt,Et),tt.angle=dt),dt=_t.x;var Ae=_t.y;oe.free(_t),yr(kt)}else if(rt<-x||rt>=x)kt=oe.alloc(),Et=dt,Ae=kt,Et.vg(),Et.computeMidPoint(Ae),Et=dt.midAngle,lt!==lh&&(dt=dt.computeAngle(tt,lt,Et),tt.angle=dt),dt=kt.x,Ae=kt.y,oe.free(kt);else{if(_t=0,0<=rt?(kt=y.s[rt],Ae=rt<x-1?y.s[rt+1]:kt):(_t=x+rt,kt=y.s[_t],Ae=0<_t?y.s[_t-1]:kt),kt.Xa(Ae)){0<=rt?(Et=0<rt?y.s[rt-1]:kt,_t=rt<x-2?y.s[rt+2]:Ae):(Et=_t<x-1?y.s[_t+1]:kt,_t=1<_t?y.s[_t-2]:Ae);var re=Et.Bf(kt),we=Ae.Bf(_t);Et=re>we+10?0<=rt?Et.ab(kt):kt.ab(Et):we>re+10?0<=rt?Ae.ab(_t):_t.ab(Ae):0<=rt?Et.ab(_t):_t.ab(Et)}else Et=0<=rt?kt.ab(Ae):Ae.ab(kt);lt!==lh&&(dt=dt.computeAngle(tt,lt,Et),tt.angle=dt),dt=kt.x+(Ae.x-kt.x)*st,Ae=kt.y+(Ae.y-kt.y)*st}if(St.ys())tt.location=new oe(dt,Ae);else{St.Mc()&&(St=bo),kt=mo.alloc(),kt.reset(),kt.scale(tt.scale,tt.scale),kt.rotate(tt.angle,0,0);var Pe=tt.naturalBounds;_t=Nn.allocAt(0,0,Pe.width,Pe.height),re=oe.alloc(),re.xi(_t,St),kt.Ga(re),St=-re.x,we=-re.y;var Ee=Pe.width,Ve=Pe.height;Pe=oe.alloc(),Pe.assign(ut);var fn=isNaN(ut.x),Oi=isNaN(ut.y);if(fn||Oi){Ee=Ee/2+3,Ve=Ve/2+3;var Ji=45<=Et&&135>=Et,Vi=225<=Et&&315>=Et;lt===lh&&(Ji||Vi)?(Pe.x=Oi?Ee:ut.y,Pe.y=fn?Ve:ut.x,Ji?0<=rt||isNaN(rt)&&.5>st||!fn||(Pe.y=-Ve):Vi&&((0<=rt||isNaN(rt)&&.5>st)&&fn&&(Pe.y=-Ve),Oi&&(Pe.x=-Ee))):(fn&&(Pe.x=0<=rt||isNaN(rt)&&.5>st?Ee:-Ee),Oi&&(Pe.y=-Ve),Pe.rotate(Et))}else Pe.rotate(Et);dt+=Pe.x,Ae+=Pe.y,kt.pp(_t),St+=_t.x,we+=_t.y,rt=oe.allocAt(dt+St,Ae+we),tt.move(rt),oe.free(rt),oe.free(Pe),oe.free(re),Nn.free(_t),mo.free(kt)}}E!==null?E.Ul(!1):b.Ul(!1),b=Dy(a),a.location.h(a.position.x+b.x,a.position.y+b.y),oe.free(b)}};function No(a,y,x,b){if(Nu(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof ts&&a.type===Tn.Link&&a.adornedObject instanceof Yr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof yi&&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 ts&&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),Ha(b,!1)}}function wo(){this.xa="Base"}nn(wo,Ke),wo.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 Nn(-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,kt=rt.strokeWidth,_t=Et.flattenedSegments,Ae=Et.flattenedLengths,re=Et.flattenedTotalLength,we=_t.length,Pe=0,Ee=0,Ve=nr(),fn=0;fn<we;fn++){var Oi=_t[fn],Ji=[];Ee=Pe=0;for(var Vi=Oi.length,vi=0;vi<Vi;vi+=2){var ti=Oi[vi],Gr=Oi[vi+1];if(vi!==0){var kr=180*Math.atan2(Gr-Ee,ti-Pe)/Math.PI;0>kr&&(kr+=360),Ji.push(kr)}Pe=ti,Ee=Gr}Ve.push(Ji)}if(a.graduatedIntervals===null){for(var rs=[],Os=a.O.s,Hl=Os.length,Jl=0;Jl<Hl;Jl++){var Xu=Os[Jl],zl=[];if(rs.push(zl),Xu.visible){var Tf=Xu.interval;if(!(0>Tf)){for(var ll=0;ll<Hl;ll++)if(ll!==Jl){var Vc=Os[ll];if(Vc.visible&&Xu.constructor===Vc.constructor){var Zu=Vc.interval;Zu>Tf&&zl.push(Zu)}}}}}a.graduatedIntervals=rs}var kf=a.graduatedIntervals,CA=a.O.s,lc=CA.length,$h=0,Uh=0,dg=re;a.graduatedMarks=[];for(var Yc,Jp=0;Jp<lc;Jp++){var qh=CA[Jp];if(Yc=[],qh.visible&&qh!==rt){var Ju=Math.abs(qh.interval),V0=a.graduatedTickUnit;if(!(2>V0*Ju*re/a.graduatedRange&&qh.graduatedSkip===null)){var dp=Ae[0][0],wd=0,Qh=0;Uh=re*qh.graduatedStart-1e-4,dg=re*qh.graduatedEnd+1e-4;var Og=V0*Ju,tA=a.graduatedTickBase;if(tA<a.graduatedMin){var fg=(a.graduatedMin-tA)/Og;fg=fg%1===0?fg:Math.floor(fg+1),tA+=fg*Og}else tA>a.graduatedMin+Og&&(tA-=Math.floor((tA-a.graduatedMin)/Og)*Og);for(var sv=kf[Jp],Y0=tA,By=1e-6*a.graduatedMax,Vd=1;tA<=a.graduatedMax+By;Vd++){t:{for(var lf=sv.length,fp=0;fp<lf;fp++){var gg=(tA-a.graduatedTickBase)%(sv[fp]*a.graduatedTickUnit),$p=1e-6*a.graduatedTickUnit;if(gg<$p&&gg>-$p){var pg=!1;break t}}pg=!0}if(pg&&(tA>a.graduatedMax&&(tA=a.graduatedMax),qh.graduatedSkip===null||qh instanceof Ls&&!qh.graduatedSkip(tA,qh)||qh instanceof Yr&&!qh.graduatedSkip(tA,qh))&&($h=(tA-a.graduatedMin)*re/a.graduatedRange,$h>re&&($h=re),Uh<=$h&&$h<=dg)){for(var Yd=Ve[wd][Qh],Of=Ae[wd][Qh];wd<Ae.length;){for(;$h>dp&&Qh<Ae[wd].length-1;)Qh++,Yd=Ve[wd][Qh],Of=Ae[wd][Qh],dp+=Of;if($h<=dp)break;wd++,Qh=0,Yd=Ve[wd][Qh],Of=Ae[wd][Qh],dp+=Of}var Rh=_t[wd],Sd=Rh[2*Qh],av=Rh[2*Qh+1],uf=($h-(dp-Of))/Of,qp=new oe(Sd+(Rh[2*Qh+2]-Sd)*uf+kt/2-Et.bounds.x,av+(Rh[2*Qh+3]-av)*uf+kt/2-Et.bounds.y);qp.scale(rt.scale,rt.scale);t:{var Xc=Yd,Dg=Ve[wd];if(!(.5005>uf&&.4995<uf)){var xd=Xc;if(.5>uf?0<Qh?xd=Dg[Qh-1]:Je.$(Rh[0],Rh[Rh.length-2])&&Je.$(Rh[1],Rh[Rh.length-1])&&(xd=Dg[Dg.length-1]):.5<uf&&(Qh+1<Dg.length?xd=Dg[Qh+1]:Je.$(Rh[0],Rh[Rh.length-2])&&Je.$(Rh[1],Rh[Rh.length-1])&&(xd=Dg[0])),Xc!==xd){var gp=Math.abs(Xc-xd);if(180<gp&&(Xc<xd?Xc+=360:xd+=360,gp=Math.abs(Xc-xd)),5e-4>uf||.9995<uf){Yd=(Xc+xd)/2%360;break t}if(10>gp){var t0=1-Math.abs(.5-uf);Yd=(Xc*t0+xd*(1-t0))%360;break t}}}Yd=Xc}if(qh instanceof Ls){var Ic="";qh.graduatedFunction!==null?(Ic=qh.graduatedFunction(tA,qh),Ic=Ic!=null?Ic.toString():""):Ic=(+tA.toFixed(2)).toString(),Ic!==""&&Yc.push({$l:qp,angle:Yd,text:Ic})}else Yc.push({$l:qp,angle:Yd})}tA=Y0+Vd*Og}}}a.graduatedMarks.push(Yc)}yr(Ve);var hu=a.graduatedMarks;if(hu!==null)for(var X0=b.length,dh=0;dh<X0;dh++){var ul=b[dh],fh=hu[dh];if(ul.visible&&ul!==rt&&fh.length!==0){if(ul instanceof Yr){var hf=a,Df=E,jg=ul.alignmentFocus;jg.Mc()&&(jg=Ml);var Cy=ul.angle;ul.Kb=0,ul.measure(1/0,1/0,0,0),ul.Kb=Cy;var lv=ul.measuredBounds,e0=lv.width,Ug=lv.height,pp=Nn.allocAt(0,0,e0,Ug),Hh=oe.alloc();Hh.xi(pp,jg),Nn.free(pp);for(var Af=-Hh.x,Zc=-Hh.y,HA=new Nn,mg=fh.length,n0=0;n0<mg;n0++)for(var vg=fh[n0],uv=vg.$l.x,i0=vg.$l.y,Ga=vg.angle,Tc=0;4>Tc;Tc++){switch(Tc){case 0:Hh.h(Af,Zc);break;case 1:Hh.h(Af+e0,Zc);break;case 2:Hh.h(Af,Zc+Ug);break;case 3:Hh.h(Af+e0,Zc+Ug)}Hh.rotate(Ga+ul.angle),Hh.offset(uv,i0),n0===0&&Tc===0?HA.h(Hh.x,Hh.y,0,0):HA.Ye(Hh),Hh.offset(-uv,-i0),Hh.rotate(-Ga-ul.angle)}oe.free(Hh),hf.graduatedBounds!==null&&hf.graduatedBounds.push(HA),fs(Df,HA.x,HA.y,HA.width,HA.height)}else if(ul instanceof Ls){var uc=a,hv=E;uc.temporaryTextBlock===null&&(uc.temporaryTextBlock=new Ls);var eA=uc.temporaryTextBlock;bg(eA,ul);var jf=ul.alignmentFocus;jf.Mc()&&(jf=Ml);for(var hc=ul.segmentOrientation,r0=ul.segmentOffset,yg=new Nn,Z0=0,o0=0,Bd=0,Qg=0,wg=0,s0=fh.length,Uf=0;Uf<s0;Uf++){var Xd=fh[Uf];Z0=Xd.$l.x,o0=Xd.$l.y,Bd=Xd.angle,wg=Qg=ul.angle,hc!==lh&&(wg=hc===y0||hc===mm?Bd+ul.angle:Bd,Qg=yi.computeAngle(hc,wg)),eA.Kb=Qg,eA.text=Xd.text||"",eA.measure(1/0,1/0,0,0);var Qf=eA.measuredBounds,cf=eA.naturalBounds,Rf=cf.width,Rg=cf.height,Jc=mo.alloc();Jc.reset(),Jc.translate(-Qf.x,-Qf.y),Jc.scale(eA.scale,eA.scale),Jc.rotate(wg,Rf/2,Rg/2),hc!==w0&&hc!==x0||Jc.rotate(90,Rf/2,Rg/2),hc!==S0&&hc!==B0||Jc.rotate(-90,Rf/2,Rg/2),hc===vm&&(45<Bd&&135>Bd||225<Bd&&315>Bd)&&Jc.rotate(-Bd,Rf/2,Rg/2);var mp=Nn.allocAt(0,0,Rf,Rg),Hf=oe.alloc();Hf.xi(mp,jf),Jc.Ga(Hf);var vp=-Hf.x,Py=-Hf.y,df=oe.alloc();df.assign(r0),isNaN(df.x)&&(df.x=Rf/2+3),isNaN(df.y)&&(df.y=-(Rg/2+3)),df.rotate(Bd),Z0+=df.x+vp,o0+=df.y+Py;var Hg=new Nn(Z0,o0,Qf.width,Qf.height),J0=new Nn(Qf.x,Qf.y,Qf.width,Qf.height),by=new Nn(cf.x,cf.y,cf.width,cf.height);Xd.Sz=Qg,Xd.lineCount=eA.lineCount,Xd.lines=[eA.Cb,eA.Ih,eA.df,eA.Le,eA.Qc,eA.Qb,eA.ze],Xd.actualBounds=Hg,Xd.measuredBounds=J0,Xd.naturalBounds=by,Uf===0?yg.assign(Hg):yg.ed(Hg),oe.free(df),oe.free(Hf),Nn.free(mp),mo.free(Jc)}uc.graduatedBounds!==null&&uc.graduatedBounds.push(yg),fs(hv,yg.x,yg.y,yg.width,yg.height)}Ha(ul,!1)}}},wo.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}}},wo.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 lu,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],kt=Et.length;if(St.visible&&St!==z&&Et.length!==0){if(St instanceof Yr){if(!(2>a.graduatedTickUnit*St.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&St.graduatedSkip===null)){var _t=St.measuredBounds,Ae=St.strokeWidth*St.scale,re=St.alignmentFocus;re.Mc()&&(re=Ml);for(var we=0;we<kt;we++){var Pe=Et[we].$l,Ee=Et[we].angle,Ve=re,fn=St.Ab;fn.reset(),fn.translate(Pe.x+rt.x,Pe.y+rt.y),fn.rotate(Ee+St.angle,0,0),fn.translate(-_t.width*Ve.x+Ve.offsetX+Ae/2,-_t.height*Ve.y+Ve.offsetY+Ae/2),fn.scale(St.scale,St.scale),Ph(St,!1),St.wh.set(St.Ab),St.Kk=St.scale,pu(St,!1),St.gc(y,x),E&&(a.svg.appendChild(St.svg),St.svg=null),St.Ab.reset()}}}else if(St instanceof Ls)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ls),_t=a.temporaryTextBlock,bg(_t,St),Ae=0;Ae<kt;Ae++)re=Et[Ae],re.actualBounds&&re.measuredBounds&&re.naturalBounds&&(_t.ec=re.text||"",_t.Kb=re.Sz||0,_t.Gc=re.lineCount||0,we=re.lines,we!==void 0&&(_t.Cb=we[0],_t.Ih=we[1],_t.df=we[2],_t.Le=we[3],_t.Qc=we[4],_t.Qb=we[5],_t.ze=we[6]),re.naturalBounds&&(_t.dc=re.naturalBounds),re.actualBounds&&(we=re.actualBounds,_t.arrange(we.x,we.y,we.width,we.height)),we=re.actualBounds,_t.arrange(we.x,we.y,we.width,we.height),Pe=re.measuredBounds,re=re.naturalBounds,Ee=_t.Ab,Ee.reset(),Ee.translate(we.x+rt.x,we.y+rt.y),Ee.translate(-Pe.x,-Pe.y),_t.no(Ee,re.x,re.y,re.width,re.height),Ph(_t,!1),_t.wh.set(_t.Ab),_t.Kk=_t.scale,pu(_t,!1),_t.Ng=St.part,_t.Me=St.panel,_t.gc(y,x),_t.Me=null,_t.Ng=null,E&&(a.svg.appendChild(_t.svg),_t.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Tn(a,y){if(ze.call(this),this.na=null,a===void 0)this.na=Tn.Position;else if(typeof a=="string"){var x=mu.I(a);x!==null&&(this.na=x)}else a instanceof Ke?this.na=a:a&&(this.na=Tn.Position,y=a);this.na===null&&Fe("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Tn.Grid?1048576:0),this.O=new ni,this.yb=vu,this.Tm=ss,this.Uf=Ur,this.$g=null,this.$e="",this.jg=new Nn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Yi,this.jn=ho,this.kn=zo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}nn(Tn,ze),Tn.prototype.cloneProtected=function(a){ze.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},Tn.prototype.Af=function(a){ze.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},Tn.prototype.copy=function(){var a=ze.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 Hi&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(Oa,"elements",a,null,E,null,tt)}}return a}return null},jt=Tn.prototype,jt.toString=function(){return"Panel("+this.type.name+")#"+qo(this)},jt.Pn=function(a){ze.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===Tn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Tn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Tn.Table)if(a.yc(),a instanceof lu){var x=a.yd;a.yd=nc(a,"gojs-ts"),Fo(this,a),a.nh.pop(),a.yd=x}else Fo(this,a);(x=this.isClipping&&this.na===Tn.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 Fo(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Ia(a,y,!0,x,!0),b!==null&&Ia(a,y,!1,b,!0),x!==null&&Na(a,y,!0,x),b!==null&&Na(a,y,!1,b),x!==null&&Ia(a,y,!0,x,!1),b!==null&&Ia(a,y,!1,b,!1)}function Na(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&<.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){zs(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 Ia(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,rt=a.naturalBounds,st=Aa(a,!0),lt=Aa(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(),kt=dt.separatorStrokeWidth;isNaN(kt)&&(kt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var _t=dt.separatorStroke;_t===null&&(_t=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(_t===null||dt.index===(x?st:lt))&&(kt=0),Et-=kt,kt=dt.position+kt,Et+=dt.actual,kt+Et>St&&(Et=St-kt),0>=Et||(St=a.yb,zs(a,y,dt.background,!0,!1,rt,tt),x?y.fillRect(St.left,kt+St.top,tt.width-(St.left+St.right),Et):y.fillRect(kt+St.left,St.top,Et,tt.height-(St.top+St.bottom)))}}}}function Aa(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 sa(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(!ze.prototype.kk.call(this,a,y,x))return!1;if(this.type===Tn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,Fo(this,a),a.yd=null;else if(this.na===Tn.Grid||this.na===Tn.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 ze.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=oe.alloc(),St=null,y=1/0;var kt=null,_t=this.isClipping&&this.na===Tn.Spot;_t&&(kt=oe.alloc(),St=this.Pb(),(lt=St.Sj(rt,a,st,x,kt))&&(y=(rt-kt.x)*(rt-kt.x)+(a-kt.y)*(a-kt.y)));for(var Ae=0;Ae<Et;Ae++){var re=dt[Ae];re.visible&&re!==St&&re.Sj(rt,a,st,x,ut)&&(lt=!0,re=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),re<b&&(b=re,E.set(ut)))}return _t&&(y>b&&E.set(kt),oe.free(kt)),oe.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();ze.prototype.Gj.call(this)},jt.v=function(a){if(!Nu(this)){ze.prototype.v.call(this,a),a=null,(this.na===Tn.Auto||this.na===Tn.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=gu(E,!1);(E instanceof ah||E instanceof Tn||E instanceof Ls||z!==Zn)&&E.v(!0)}}}},jt.Uj=function(){if(!Nu(this)){Ha(this,!0),mA(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)){Ph(this,!0),pu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},jt.Wu=function(){pu(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),ua(E,a,st),ua(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 ia(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=gu(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=Zn),a){case Zn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case oi:this.v(!0),this.measure(x+rt,b+tt,0,0);break;case or:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Lr: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=ia(this);if(Gs(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=oe.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(_r(E.set(a),z.transform),z.ca(E)))return oe.free(E),!0}return oe.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 Tn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function ya(a,y){Js(a,a,y)}function Js(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 Tn&&Js(a,z,x)}}function oh(a,y){IA(a,a,y)}function IA(a,y,x){if(x(y),y instanceof Tn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)IA(a,y[E],x)}}jt.Nl=function(a){return Yu(this,this,a)};function Yu(a,y,x){if(x(y))return y;if(y instanceof Tn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=Yu(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=pd(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Tn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function TA(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Tn?x=Math.max(x,TA(E)):E instanceof Yr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}jt.se=function(){return!(this.type===Tn.TableRow||this.type===Tn.TableColumn)};function za(a){return a.type===Tn.TableRow||a.type===Tn.TableColumn}jt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),au(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),tt=z?a:_r(oe.allocAt(a.x,a.y),this.transform),rt=this.diagram,st=10,lt=5;if(rt!==null&&(st=rt.Ql("extraTouchArea"),lt=st/2),Gs(-(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=oe.alloc(),lt=(st=this.isClipping&&this.na===Tn.Spot)?this.Pb():null,st&&(lt.se()?_r(rt.set(a),lt.transform):rt.set(a),!lt.ca(rt)))return oe.free(rt),z||oe.free(tt),null;for(var dt=ia(this);ut--;){var St=E[ut];if((St.visible||St===dt)&&(St.se()?_r(rt.set(a),St.transform):rt.set(a),!st||St!==lt)){var Et=null;if(St instanceof Tn?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 oe.free(rt),z||oe.free(tt),Et}}oe.free(rt)}return this.background===null&&this.areaBackground===null?(z||oe.free(tt),null):(a=Gs(0,0,b.width,b.height,tt.x,tt.y)?this:null,z||oe.free(tt),a)}return z||oe.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:_r(oe.allocAt(a.x,a.y),this.transform);if(E=Gs(0,0,E.width,E.height,tt.x,tt.y),za(this)||E){if(!this.isAtomic){for(var rt=this.O.s,st=rt.length,lt=oe.alloc(),ut=ia(this);st--;){var dt=rt[st];if(dt.visible||dt===ut){dt.se()?_r(lt.set(a),dt.transform):lt.set(a);var St=dt;dt=dt instanceof Tn?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))}}oe.free(lt)}return z||oe.free(tt),E&&(this.background!==null||this.areaBackground!==null)}return z||oe.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=mo.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return kA(this,y,x,E),z===void 0&&mo.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=ia(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 Tn?ut:null,St=mo.alloc(),St.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,St):Ma(dt,a,b,St))&&(y!==null&&(dt=y(dt)),dt===null||x!==null&&!x(dt)||E.add(dt)),mo.free(St))}}return z===void 0&&mo.free(tt),b}return z===void 0&&mo.free(tt),!1};function kA(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 Tn&&kA(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:_r(oe.allocAt(a.x,a.y),this.transform),lt=rt?y:_r(oe.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||As(st.x,st.y,0,0,0,tt.height)<=ut||As(st.x,st.y,0,tt.height,tt.width,tt.height)<=ut||As(st.x,st.y,tt.width,tt.height,tt.width,0)<=ut||As(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||(oe.free(st),oe.free(lt)),dt){if(!this.isAtomic){st=oe.alloc(),lt=oe.alloc(),ut=ia(this);for(var St=this.O.s,Et=St.length;Et--;){var kt=St[Et];if(kt.visible||kt===ut){var _t=kt.actualBounds,Ae=this.naturalBounds;(!rt||!(_t.x>Ae.width||_t.y>Ae.height||0>_t.x+_t.width||0>_t.y+_t.height))&&(kt.se()?(_t=kt.transform,_r(st.set(a),_t),_r(lt.set(y),_t)):(st.set(a),lt.set(y)),_t=kt,kt=kt instanceof Tn?kt:null,(kt!==null?kt.og(st,lt,x,b,E,z):_t.tx(st,lt,E))&&(x!==null&&(_t=x(_t)),_t===null||b!==null&&!b(_t)||z.add(_t)))}}oe.free(st),oe.free(lt)}return E?dt:tt}return!1};function OA(a){var y=null;return a instanceof Yr&&(y=a.spot1,y===ss&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ya),y}function sh(a){var y=null;return a instanceof Yr&&(y=a.spot2,y===ss&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Kl),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 xr&&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!==Tn.Grid||y instanceof Yr||Fe("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Tn.Graduated||y instanceof Yr||y instanceof Ls||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 Zi),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),Nu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Tn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Yg(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Hi&&(x.Te=!0),x.Te&&x instanceof Hi&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Ja,"elements",this,y,null,b,null),x.cb(Oa,"elements",this,null,y,null,a)))};function bh(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),Ha(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 Hi&&(b instanceof Tn?b.qm(b,function(tt,rt){Pv(z,rt,y)}):Pv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ja,"elements",this,b,null,a,null))},jt.Fb=function(a){0>a&&Ni(a,">= 0",Tn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new il;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Oa,"rowdefs",this,null,x,null,a)}return y[a]},jt.oA=function(a){if(0>a&&Ni(a,">= 0",Tn,"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(Ja,"rowdefs",this,x,null,a,null),this.v()}}};function vA(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof il?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&&Ni(a,">= 0",Tn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new il;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Oa,"coldefs",this,null,x,null,a)}return y[a]},jt.jA=function(a){if(0>a&&Ni(a,">= 0",Tn,"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(Ja,"coldefs",this,x,null,a,null),this.v()}}};function Lc(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof il?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&&Xf(y,a),this},jt.Hy=function(a,y){return(a=this.Fb(a))&&Xf(a,new il(y)),this},jt.By=function(a,y){return(a=this.Eb(a))&&Xf(a,new il(y)),this},jt.nz=function(a){if(0>a||this.type!==Tn.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!==Tn.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 oe(NaN,NaN)),this.type!==Tn.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!==Tn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function gd(a){return a=a.allBindings,a!==null&&a._isFrozen}function pl(a){var y=a.allBindings;if(y===null)a.data!==null&&Fe("Template cannot have .data be non-null: "+a),a.allBindings=y=new ni;else if(y._isFrozen)return;var x=new ni;bh(a,!1),a.qm(a,function(lt,ut){ut.th();var dt=ut.localBindings;if(dt!==null)for(MA(ut,!1),dt=dt.iterator;dt.next();){var St=dt.value;St.mode===N0&&MA(ut,!0);var Et=St.sourceName;Et!==null&&(Et==="/"&&bh(lt,!0),Et=M1(St,lt,ut),Et!==null&&(x.add(Et),Et.srcBindings===null&&(Et.srcBindings=new ni),Et.srcBindings.add(St))),y.add(St)}if(ut instanceof Tn&&ut.type===Tn.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 kt=Et.be.iterator;kt.next();){var _t=kt.value;_t.xd=Et,_t.to=2,_t.wl=Et.index,y.add(_t)}}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();)kt=Et.value,kt.xd=St,kt.to=1,kt.wl=St.index,y.add(kt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){MA(E,!0);for(var z=E.srcBindings.iterator;z.next();){var tt=z.value;E.localBindings===null&&(E.localBindings=new ni),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 Tn&&(tt=rt.substring(0,st),rt=rt.substr(st+1),st=z.fb(tt),st!==null?(z=st,E.targetProperty=rt):lr('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+E.toString())),z instanceof il?(tt=qo(z.panel),E.Ai=tt===void 0?-1:tt,z.panel.bindingId=E.Ai):z instanceof ze?(tt=qo(z),E.Ai=tt===void 0?-1:tt,z.bindingId=E.Ai):Fe("Unknown type of binding target: "+z)}y.freeze(),a instanceof xr&&a.Zc()&&a.Va()}jt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return oh(y,function(x){x instanceof Tn&&(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&&pl(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 Tn))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 rf(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 Tn&&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 Tn)||z.data!==y[tt])return!0;E++,tt++}return!1}function pd(a){if(a.type===Tn.Spot||a.type===Tn.Auto)return Math.min(a.O.length,1);if(a.type===Tn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Yr&&b.isPanelMain))break}return x}return a.type===Tn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Tn&&za(a))?1:0}jt.mv=function(){for(var a=pd(this);this.O.length>a;)this.pc(this.O.length-1,!1);Yf(this,this.itemArray)};function Yf(a,y){var x=pd(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++)md(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 Tn){if(tt.data!==z){var rt=Vg(a,tt.data),st=Vg(a,z),lt=st!==rt;lt||(rt=Bp(a,rt),lt=Bp(a,st)!==rt),lt?(a.pc(b,!1),md(a,z,E,!1)):tt.data=z}}else md(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xu(a,x,0),Nu(a)||a.v(),a.graduatedIntervals=null,a.If()||Yg(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Hi&&(y.Te=!0),y.Te&&y instanceof Hi&&(y.wc=null))}}function md(a,y,x,b){if(!(y==null||0>x)){var E=Vg(a,y);if(E=Bp(a,E),E!==null){if(pl(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&bh(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Zi),a.ge.add(y,E)),z=x+pd(a),a.Gb(z,E),b&&(E.ub=y,xu(a,z,x),E.ub=null),E.data=y}}}function xu(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Tn){var E=y,z=x;b.type===Tn.TableRow?b.row=E:b.type===Tn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Vg(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&&(Bg||(Bg=!0,lr('No item template Panel found for category "'+y+'" on '+a),lr(" Using default item template."),a=new Tn,y=new Ls,y.bind(new al("text","",Er)),a.add(y),Xg=a),b=Xg)),b}function Yg(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Tn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Tn&&!z.isEnabled||Yg(a,z,x)}}}function yA(a,y){y.name=a,mu.add(a,y)}he.Object.defineProperties(Tn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Tn.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&&Ni(a,">= 0",Tn,"padding"),a=new Sr(a)):(0>a.left&&Ni(a.left,">= 0",Tn,"padding:value.left"),0>a.right&&Ni(a.right,">= 0",Tn,"padding:value.right"),0>a.top&&Ni(a.top,">= 0",Tn,"padding:value.top"),0>a.bottom&&Ni(a.bottom,">= 0",Tn,"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:vu},set:function(a){typeof a=="number"&&(a=new Sr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Qu),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 us)&&(a instanceof us&&a.freeze(),this.T===null&&(this.T=new Qu),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 Qu),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 Qu),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 us)&&(a instanceof us&&a.freeze(),this.T===null&&(this.T=new Qu),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 Qu),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 Qu),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 Qu),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&&Wh(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&&Wh(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 wA),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),wl(this)&&(a=this.part,a!==null&&ws(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 wA),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),wl(this)&&(a=this.part,a!==null&&ws(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 wA),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 wA),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 wA,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 wA,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 wA,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 wA,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 Qu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Qu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Jf},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Qu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Jf},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Qu),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 Qu),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 Qu),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 xr&&!(this instanceof ts);pl(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof yi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof xr&&(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 kd),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&rf(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&Kv(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&Gv(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||Yf(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 Zi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof xr||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(););Vr(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&&(Vr(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 Xr&&(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&&Yg(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))}}}),he.Object.defineProperties(Tn,{Position:{get:function(){return mu.I("Position")}},Horizontal:{get:function(){return mu.I("Horizontal")}},Vertical:{get:function(){return mu.I("Vertical")}},Spot:{get:function(){return mu.I("Spot")}},Auto:{get:function(){return mu.I("Auto")}},Table:{get:function(){return mu.I("Table")}},Viewbox:{get:function(){return mu.I("Viewbox")}},TableRow:{get:function(){return mu.I("TableRow")}},TableColumn:{get:function(){return mu.I("TableColumn")}},Link:{get:function(){return mu.I("Link")}},Grid:{get:function(){return mu.I("Grid")}},Graduated:{get:function(){return mu.I("Graduated")}}}),Tn.prototype.rebuildItemElements=Tn.prototype.mv,Tn.prototype.findItemPanelForData=Tn.prototype.sx,Tn.prototype.updateTargetBindings=Tn.prototype.La,Tn.prototype.copyTemplate=Tn.prototype.Uy,Tn.prototype.graduatedValueForPoint=Tn.prototype.Gz,Tn.prototype.graduatedPointForValue=Tn.prototype.Fz,Tn.prototype.findColumnForLocalX=Tn.prototype.fz,Tn.prototype.findRowForLocalY=Tn.prototype.nz,Tn.prototype.addColumnDefinition=Tn.prototype.By,Tn.prototype.addRowDefinition=Tn.prototype.Hy,Tn.prototype.addRowColumnDefinition=Tn.prototype.Gy,Tn.prototype.removeColumnDefinition=Tn.prototype.jA,Tn.prototype.getColumnDefinition=Tn.prototype.Eb,Tn.prototype.removeRowDefinition=Tn.prototype.oA,Tn.prototype.getRowDefinition=Tn.prototype.Fb,Tn.prototype.removeAt=Tn.prototype.mb,Tn.prototype.remove=Tn.prototype.remove,Tn.prototype.insertAt=Tn.prototype.Gb,Tn.prototype.elt=Tn.prototype.M,Tn.prototype.add=Tn.prototype.add,Tn.prototype.findObject=Tn.prototype.fb,Tn.prototype.findInVisualTree=Tn.prototype.Nl,Tn.prototype.walkVisualTreeFrom=Tn.prototype.qm,Tn.prototype.findMainElement=Tn.prototype.Pb;var Bg=!1,Xg=null,mu=new Zi;Tn.className="Panel",Tn.definePanelLayout=yA,yA("Position",new en),yA("Vertical",new Dn),yA("Auto",new ii),yA("Link",new Cr);function wA(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}wA.prototype.copy=function(){var a=new wA;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},wA.className="GradPanelSettings";function Qu(){this.Pc=[],this.Oc=[],this.j=this.ob=Jf,this.hb=this.Hb=0,this.Qp=vu,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Qu.prototype.copy=function(a){for(var y=new Qu,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},Qu.className="TablePanelSettings";function il(a){Go(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ss,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cg,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))}il.prototype.copy=function(){var a=new il;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=Br(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Xf(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=Br(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}jt=il.prototype,jt.qb=function(a){a.classType===il&&(this.sizing=a)},jt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+qo(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===Tn.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($s,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 Zg(a){if(a.sizing===Cg){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&&gd(y)&&Fe("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new ni),this.be.add(E),this},he.Object.defineProperties(il.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&&Ni(a,">= 0",il,"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&&Ni(a,">= 0",il,"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))&&Ni(a,">= 0",il,"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&&Ni(a,">= 0",il,"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 Sr(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&&bt(a,"RowColumnDefinition.separatorStroke"),a instanceof us&&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&&bt(a,"RowColumnDefinition.background"),a instanceof us&&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}}}),il.prototype.computeEffectiveSpacing=il.prototype.Wc,il.prototype.computeEffectiveSpacingTop=il.prototype.Io;var Cg=new zn(il,"Default",0),Zf=new zn(il,"None",1),Jf=new zn(il,"ProportionalExtra",2);il.className="RowColumnDefinition",il.Default=Cg,il.None=Zf,il.ProportionalExtra=Jf;function Yr(a,y){ze.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(Yr,ze),Yr.prototype.cloneProtected=function(a){ze.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=Br(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 Sf(a){a.Na===null?a.Na=new bp:a.Na.nc&&(a.Na=a.Na.copy())}jt=Yr.prototype,jt.th=function(){ze.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},jt.qb=function(a){a===Zn||a===Yi||a===yo||a===Ur?this.geometryStretch=a:ze.prototype.qb.call(this,a)},jt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+qo(this)};function Pg(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,kt,_t=0,Ae=nr(),re=2;re<E;re+=2)lt=x[re],ut=x[re+1],dt=lt-rt,rt=ut-st,dt===0&&(dt=.001),St=rt/dt,Et=Math.atan2(rt,dt),kt=Math.sqrt(dt*dt+rt*rt),Ae.push([dt,Et,St,kt]),_t+=kt,rt=lt,st=ut;rt=x[0],st=x[1],dt=b.measuredBounds.width,b instanceof Yr&&(dt-=b.strokeWidth),1>dt&&(dt=1),E=x=dt,lt=tt/2,ut=lt!==0,re=0,kt=Ae[re],dt=kt[0],Et=kt[1],St=kt[2],kt=kt[3];for(var we=0;.1<=_t;){if(we===0&&(ut?(E=x,E-=lt,_t-=lt,ut=!1):E=x,E===0&&(E=1)),E>_t){yr(Ae);return}E>kt?(we=E-kt,E=kt):we=0;var Pe=Math.sqrt(E*E/(1+St*St));if(0>dt&&(Pe=-Pe),rt+=Pe,st+=St*Pe,a.translate(rt,st),a.rotate(Et),a.translate(-(tt/2),-(z/2)),we===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-Et),a.translate(-rt,-st),_t-=E,kt-=E,we!==0){if(re++,re===Ae.length){yr(Ae);return}kt=Ae[re],dt=kt[0],Et=kt[1],St=kt[2],kt=kt[3],E=we}}yr(Ae)}}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&&zs(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===Tn.Link&&rt instanceof ts&&rt.category==="Selection"&&rt.adornedObject instanceof Yr&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),st===0&&(x=null),x!==null&&st!==0&&(zs(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===Bi.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===Bi.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&&NA(a),a.jk(),rt&&z&&ic(a)),a.Se()}else if(E.type===Bi.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&&NA(a),a.jk(),rt&&z&&ic(a)),a.Se();else if(E.type===Bi.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,kt=0;kt<dt;kt++){var _t=ut[kt];switch(_t.type){case sl:a.moveTo(_t.endX,_t.endY);break;case Ms:a.lineTo(_t.endX,_t.endY);break;case kl:a.bezierCurveTo(_t.point1X,_t.point1Y,_t.point2X,_t.point2Y,_t.endX,_t.endY);break;case zu:a.quadraticCurveTo(_t.point1X,_t.point1Y,_t.endX,_t.endY);break;case Ua:if(_t.radiusX===_t.radiusY){var Ae=Math.PI/180;a.arc(_t.point1X,_t.point1Y,_t.radiusX,_t.startAngle*Ae,(_t.startAngle+_t.sweepAngle)*Ae,0>_t.sweepAngle,Et!==null?Et.endX:lt.startX,Et!==null?Et.endY:lt.startY)}else if(Et=Cu(_t,lt),Ae=Et.length,Ae===0)a.lineTo(_t.centerX,_t.centerY);else for(var re=0;re<Ae;re++){var we=Et[re];re===0&&a.lineTo(we[0],we[1]),a.bezierCurveTo(we[2],we[3],we[4],we[5],we[6],we[7])}break;case mh:if(re=Ae=0,Et!==null&&Et.type===Ua){if(Et=Cu(Et,lt),we=Et.length,we===0){a.lineTo(_t.endX,_t.endY);break}Et=Et[we-1]||null,Et!==null&&(Ae=Et[6],re=Et[7])}else Ae=Et!==null?Et.endX:lt.startX,re=Et!==null?Et.endY:lt.startY;if(Et=th(_t,lt,Ae,re),Ae=Et.length,Ae===0){a.lineTo(_t.endX,_t.endY);break}for(re=0;re<Ae;re++)we=Et[re],a.bezierCurveTo(we[2],we[3],we[4],we[5],we[6],we[7]);break;default:Fe("Segment not of valid type: "+_t.type)}_t.isClosed&&a.closePath(),Et=_t}ut=lt.isFilled,z?lt.isShadowed?(ut===!0&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&(ut&&rt&&NA(a),a.jk(),ut&&rt&&ic(a))):(NA(a),ut&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk(),ic(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=nr(),z.type===Bi.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Pg(a,y,b,x);else if(z.type===Bi.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(kt=lt[dt],kt.type){case sl:Pg(a,y,b,x),b.length=0,b.push(kt.endX),b.push(kt.endY),tt=kt.endX,E=kt.endY,st=tt,St=E;break;case Ms:b.push(kt.endX),b.push(kt.endY),tt=kt.endX,E=kt.endY;break;case kl:Je.Qe(tt,E,kt.point1X,kt.point1Y,kt.point2X,kt.point2Y,kt.endX,kt.endY,.5,b),tt=kt.endX,E=kt.endY;break;case zu:Je.ep(tt,E,kt.point1X,kt.point1Y,kt.endX,kt.endY,.5,b),tt=kt.endX,E=kt.endY;break;case Ua:if(_t=Cu(kt,rt),Et=_t.length,Et===0){b.push(kt.centerX),b.push(kt.centerY),tt=kt.centerX,E=kt.centerY;break}for(Ae=0;Ae<Et;Ae++)re=_t[Ae],Je.Qe(tt,E,re[2],re[3],re[4],re[5],re[6],re[7],.5,b),tt=re[6],E=re[7];break;case mh:if(_t=th(kt,rt,tt,E),Et=_t.length,Et===0){b.push(kt.endX),b.push(kt.endY),tt=kt.endX,E=kt.endY;break}for(Ae=0;Ae<Et;Ae++)re=_t[Ae],Je.Qe(tt,E,re[2],re[3],re[4],re[5],re[6],re[7],.5,b),tt=re[6],E=re[7];break;default:Fe("Segment not of valid type: "+kt.type)}kt.isClosed&&(b.push(st),b.push(St),Pg(a,y,b,x))}Pg(a,y,b,x)}else if(z.type===Bi.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),Pg(a,y,b,x);else if(z.type===Bi.F){if(E=new ma,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,tt=new Xo(Ua),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=Cu(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];Pg(a,y,b,x)}yr(b),a.restore(),a.Vc(!1)}}}},jt.kk=function(a,y,x){return!ze.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:ze.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 oe),a instanceof $i){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 Nn);var y=this.naturalBounds,x=this.oe;y=Nn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=oe.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),fs(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),fs(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),fs(a,b.x,b.y,0,0),Nn.free(y),oe.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!==Bi.j||y||(E+=2);var z=Nn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return Nn.free(z),!1;if(b=E+1e-4,x.type===Bi.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:(Nn.free(z),Je.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Bi.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 Nn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),Nn.free(z),a}if(x.type===Bi.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 Nn.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),Nn.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===Bi.o)return Nn.free(z),this.fill===null?Nh(x,a.x,a.y,E):yu(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=Pp[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),Pp[rt]=st):Fe("Unsupported Figure: "+rt)}tt=st.bounds}rt=tt.width,st=tt.height,lt=tt.width;var ut=tt.height;switch(gu(this,!0)){case Zn:b=x=0;break;case oi:lt=Math.max(a-z,0),ut=Math.max(y-z,0);break;case or:lt=Math.max(a-z,0),b=0;break;case Lr: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=Jg(this),x){case Zn:break;case oi:rt=lt,st=ut;break;case Yi: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=Yr.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 Jg(a){var y=a.geometryStretch;return a.Rd!==null?y===Ur?oi:y:y===Ur?Pp[a.figure].defaultStretch:y}jt.eh=function(a,y,x,b){Ql(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===Bi.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=nr(),a=new oe,Je.Ve(lt.startX+b,lt.startY+ut,lt.endX+b,lt.endY+ut,z,tt,rt,st,a)&&y.push(a),a=new oe,Je.Ve(lt.startX-b,lt.startY-ut,lt.endX-b,lt.endY-ut,z,tt,rt,st,a)&&y.push(a),a=new oe,Je.Ve(lt.startX+b,lt.startY+ut,lt.startX-b,lt.startY-ut,z,tt,rt,st,a)&&y.push(a),a=new oe,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 yr(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);yr(y)}else if(lt.type===Bi.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===Bi.F){y=Nn.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}Nn.free(y)}else if(lt.type===Bi.o){St=oe.alloc();var kt=rt-z,_t=st-tt,Ae=kt*kt+_t*_t,re=z,we=tt;if(0<Ae&&Et.contains(re,we)&&(St.x=re,St.y=we,this.ca(St)))for(kt!==0&&.5>Math.abs(kt)?(_t*=.5/kt,kt=.5):_t!==0&&.5>Math.abs(_t)&&(kt*=.5/_t,_t=.5),re-=kt,we-=_t;Et.contains(re,we);)re-=kt,we-=_t;for(E.x=rt,E.y=st,_t=0;_t<lt.figures.count;_t++){var Pe=lt.figures.s[_t],Ee=Pe.isFilled?re:z,Ve=Pe.isFilled?we:tt,fn=Pe.segments;Et=Pe.startX,kt=Pe.startY;for(var Oi=Et,Ji=kt,Vi=0;Vi<fn.count;Vi++){var vi=fn.s[Vi],ti=vi.type,Gr=vi.endX,kr=vi.endY,rs=!1;switch(ti){case sl:Oi=Gr,Ji=kr;break;case Ms:rs=Cp(Et,kt,Gr,kr,Ee,Ve,rt,st,St);break;case kl:rs=Je.Eo(Et,kt,vi.point1X,vi.point1Y,vi.point2X,vi.point2Y,Gr,kr,Ee,Ve,rt,st,.6,St);break;case zu:rs=Je.Eo(Et,kt,Et+2/3*(vi.point1X-Et),kt+2/3*(vi.point1Y-kt),Gr+2/3*(vi.point1X-Gr),kr+2/3*(vi.point1Y-kr),Gr,kr,Ee,Ve,rt,st,.6,St);break;case Ua:case mh:ti=vi.type===Ua?Cu(vi,Pe):th(vi,Pe,Et,kt);var Os=ti.length;if(Os===0){rs=Cp(Et,kt,vi.type===Ua?vi.centerX:vi.endX,vi.type===Ua?vi.centerY:vi.endY,Ee,Ve,rt,st,St);break}for(kr=null,Gr=0;Gr<Os;Gr++){if(kr=ti[Gr],Gr===0&&Cp(Et,kt,kr[0],kr[1],Ee,Ve,rt,st,St)){var Hl=vd(Ee,Ve,St,Ae,E);Hl<Ae&&(Ae=Hl,ut=!0)}Je.Eo(kr[0],kr[1],kr[2],kr[3],kr[4],kr[5],kr[6],kr[7],Ee,Ve,rt,st,.6,St)&&(Hl=vd(Ee,Ve,St,Ae,E),Hl<Ae&&(Ae=Hl,ut=!0))}Gr=kr[6],kr=kr[7];break;default:Fe("Unknown Segment type: "+ti)}Et=Gr,kt=kr,rs&&(rs=vd(Ee,Ve,St,Ae,E),rs<Ae&&(Ae=rs,ut=!0)),vi.isClosed&&(Gr=Oi,kr=Ji,Cp(Et,kt,Gr,kr,Ee,Ve,rt,st,St)&&(vi=vd(Ee,Ve,St,Ae,E),vi<Ae&&(Ae=vi,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,oe.free(St)}else Fe("Unknown Geometry type: "+lt.type);return ut?(this.transform.Ga(E),!0):!1};function vd(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 Cp(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=oe.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)))),oe.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=mo.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var tt=oe.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 oe.free(tt),!0;var rt=oe.alloc(),st=oe.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,xf(this,tt,rt,st)?y=!0:(tt.x=E,tt.y=a,tt.transform(x),xf(this,tt,rt,st)?y=!0:(rt.x=b,rt.y=a,rt.transform(x),xf(this,tt,rt,st)?y=!0:(tt.x=b,tt.y=z,tt.transform(x),xf(this,tt,rt,st)&&(y=!0)))),oe.free(tt),mo.free(x),oe.free(rt),oe.free(st),y};function xf(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(Ae,re){for(var we=Ae.length,Pe=0;Pe<we;Pe+=2)if(re.zd(Ae[Pe],Ae[Pe+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,da(a.x,a.y,rt,st)<=E&&da(a.x,a.y,lt,st)<=E&&da(a.x,a.y,rt,tt)<=E&&da(a.x,a.y,lt,tt)<=E)return!0}if(rt=y.startX,st=y.startY,lt=y.endX,tt=y.endY,y.type===Bi.j){if(x=(rt-lt)*(a.x-lt)+(st-tt)*(a.y-tt),As(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===Bi.u)return y=!1,x&&(y=As(a.x,a.y,rt,st,rt,tt)<=E||As(a.x,a.y,rt,st,lt,st)<=E||As(a.x,a.y,lt,st,lt,tt)<=E||As(a.x,a.y,rt,tt,lt,tt)<=E),y;if(y.type===Bi.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 As(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!(da(y,z,-ut,0)>=E||da(y,z,0,-dt)>=E||da(y,z,0,dt)>=E||da(y,z,ut,0)>=E)}else if(y.type===Bi.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&&As(a.x,a.y,z,rt,z,lt)>E&&As(a.x,a.y,z,rt,st,rt)>E&&As(a.x,a.y,st,lt,z,lt)>E&&As(a.x,a.y,st,lt,st,rt)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?Nh(y,a.x,a.y,z):yu(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 Ms:if(tt=dt.endX,ut=dt.endY,a.zd(tt,ut)>E)return!1;break;case kl:var St=nr();if(Je.Qe(tt,ut,dt.point1X,dt.point1Y,dt.point2X,dt.point2Y,dt.endX,dt.endY,.8,St),tt=b(St,a),yr(St),tt||(tt=dt.endX,ut=dt.endY,a.zd(tt,ut)>E))return!1;break;case zu:if(St=nr(),Je.ep(tt,ut,dt.point1X,dt.point1Y,dt.endX,dt.endY,.8,St),tt=b(St,a),yr(St),tt||(tt=dt.endX,ut=dt.endY,a.zd(tt,ut)>E))return!1;break;case Ua:case mh:St=dt.type===Ua?Cu(dt,z):th(dt,z,tt,ut);var Et=St.length;if(Et===0){if(tt=dt.type===Ua?dt.centerX:dt.endX,ut=dt.type===Ua?dt.centerY:dt.endY,a.zd(tt,ut)>E)return!1;break}dt=null;for(var kt=nr(),_t=0;_t<Et;_t++)if(dt=St[_t],kt.length=0,Je.Qe(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],.8,kt),b(kt,a))return yr(kt),!1;yr(kt),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 em(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=y0,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=xa):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new $i(1-xa.x,xa.y)))}Yr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=DA[a.toArrow];else a.fromArrow!=="None"?b=DA[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 l0(a){var y=DA[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=DA[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=Bi.parse(Je.um[b],!1),DA[b]=a,x!==b&&(DA[x]=b),b}}return typeof y=="string"?y:y instanceof Bi?a:null}he.Object.defineProperties(Yr.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),wl(this)&&(a=this.part,a!==null&&ws(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Bi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=oe.allocAt(-y.x,-y.y),oe.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&&bt(a,"Shape.fill"),a instanceof us&&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&&bt(a,"Shape.stroke"),a instanceof us&&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 Ni(a,"value >= 0",Yr,"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"?Ni(a,'"butt", "round", or "square"',Yr,"strokeCap"):(Sf(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"?Ni(a,'"miter", "bevel", or "round"',Yr,"strokeJoin"):(Sf(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){Sf(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&&(Sf(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=l0(a);x===null?Fe("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new cd),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),em(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=l0(a);x===null?Fe("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new cd),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),em(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ss},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Sf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ss},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Sf(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&&(Sf(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&&(Sf(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 oc),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Wh(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 oc),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 oc),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 oc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Yr.prototype.intersectsRect=Yr.prototype.Yc,Yr.prototype.containedInRect=Yr.prototype.fh,Yr.prototype.getNearestIntersectionPoint=Yr.prototype.rs,Yr.prototype.getDocumentBounds=Yr.prototype.mi,Yr.prototype.getDocumentPoint=Yr.prototype.ga;var DA=new Dr,Pp=new Dr;Yr.className="Shape",Yr.getFigureGenerators=function(){var a=new Zi,y;for(y in Je.Ze)y!==y.toLowerCase()&&a.add(y,Je.Ze[y]);return a.freeze(),a},Yr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Je.Ze;b[a]=y,b[x]=a},Yr.getArrowheadGeometries=function(){var a=new Zi;for(b in Je.um)if(DA[b]===void 0){var y=Bi.parse(Je.um[b],!1);DA[b]=y,y=b.toLowerCase(),y!==b&&(DA[y]=b)}for(var x in DA)if(x!==x.toLowerCase()){var b=DA[x];b instanceof Bi&&a.add(x,b)}return a.freeze(),a},Yr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Bi.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=DA;b[a]=x,b[y]=a};function bp(){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=ss}bp.prototype.copy=function(){var a=new bp;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 Ls(a,y){return ze.call(this),Mp||(Ru=Ko?new Rl(null).context:null,Mp=!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(Ls,ze),Ls.prototype.cloneProtected=function(a){ze.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 jA(a){a.da===null?a.da=new ep:a.da.nc&&(a.da=a.da.copy())}jt=Ls.prototype,jt.th=function(){ze.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function bg(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===Ls?this.wrap=a:ze.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(){ze.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=$f(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;zs(this,a,this.xc,!0,!1,x,b),(st||lt)&&zs(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 lu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,dt=this.spacingBelow,this.flip){case Mo:a.translate(E,0),a.scale(-1,1);break;case Wr: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 Mo:a.scale(-1,1),a.translate(-E,0);break;case Wr: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=$g!==null?$g(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=Lp!==null?Lp(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 lu&&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 lu&&y.ad.classList.add("gojs-td"))}},jt.kk=function(a,y,x){if(!ze.prototype.kk.call(this,a,y,x))return!1;if(zs(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++)Wf(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Wf(a,y,!0);return!0},jt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:ze.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;Ru!==null&&Ep!==z&&(Ep=Ru.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===tp&&(rt=rt.trim()),tt=Math.max(tt,SA(rt)),rt=lt+1}z=tt}else tt=z.indexOf(`
|
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=SA(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=h0(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===qg&&(y=this.Ae,y=this.overflow===qg?sf(y):0,lt=this.spacingAbove+this.spacingBelow,lt=Math.max(0,$f(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);SA(lt)>y&&1<lt.length;)lt=lt.substr(0,lt.length-1);lt+=Bf,y=SA(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===qf||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(b,tt),ua(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){Ql(this,a,y,x,b)};function Lg(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 u0(a,y,x,b){var E=a.formatting===tp;E&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,$f(a)+rt);var st=a.overflow===qg?sf(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,rt);else if(tt=y,a.wrap===Fp){a.Le=1;var lt=SA(y);if(st===0||lt<=x)a.Cb=Math.max(a.Cb,lt),Lg(a,y,a.Cb),b!==null&&b.h(lt,rt);else{for(z=of(a,tt),tt=tt.substr(z.length),y=of(a,tt),lt=SA(z+y);0<y.length&<<=x;)z+=y,tt=tt.substr(y.length),y=of(a,tt),lt=z+y,E&&(lt=lt.trim()),lt=SA(lt);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-st);SA(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Bf;var ut=SA(z);a.Cb=ut,Lg(a,z,ut),b!==null&&b.h(ut,rt)}}else{for(st=0,tt.length===0&&(st=1,Lg(a,tt,0));0<tt.length;){for(y=of(a,tt),tt=tt.substr(y.length);SA(y)>x;){var dt=1;for(lt=SA(y.substr(0,dt)),ut=0;lt<=x;)dt++,ut=lt,lt=SA(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),Lg(a,y.substr(0,dt),St),st++,y=y.substr(dt),a.Gc+st>a.maxLines)break}for(ut=of(a,tt),lt=SA(y+ut);0<ut.length&<<=x;)y+=ut,tt=tt.substr(ut.length),ut=of(a,tt),lt=y+ut,E&&(lt=lt.trim()),lt=SA(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=SA(y),z=Math.max(z,ut)),Lg(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 of(a,y){if(a.wrap===c0)return y.substr(0,1);for(var x=y.length,b=0,E=f0;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===Fg&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function SA(a){return Ru===null?8*a.length:Ru.measureText(a).width}function $f(a){if(a.df!==null)return a.df;var y=a.Ae;if(Ru===null){var x=16;return a.df=x}return Eg[y]!==void 0&&5e3>Qd?x=Eg[y]:(x=1.3*Ru.measureText("M").width,Eg[y]=x,Qd++),a.df=x}function sf(a){if(Ru===null)return 6;if(yd[a]!==void 0&&5e3>Rd)var y=yd[a];else y=Ru.measureText(Bf).width,yd[a]=y,Rd++;return y}function h0(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,$f(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!==Fp){a.Le=0;var st=Li.alloc();u0(a,z,y,st),E+=st.height,Li.free(st),a.Gc+=a.Le}else u0(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=E}he.Object.defineProperties(Ls.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"||(jA(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Zn},set:function(a){var y=this.flip;y!==a&&(jA(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Za},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),jA(this),this.da.Yr=a,Ra(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Li.alloc();u0(this,this.ec,999999,a);var y=a.width;Li.free(a),a=h0(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ua(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:A0},set:function(a){var y=this.wrap;y!==a&&(jA(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:d0},set:function(a){var y=this.overflow;y!==a&&(jA(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&&bt(a,"TextBlock.stroke"),a instanceof us&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return $f(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&&(jA(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&&(jA(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 oc),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 oc),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 oc),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 oc),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 oc),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&&(jA(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&&(jA(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&&(jA(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&&(jA(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:tp},set:function(a){var y=this.formatting;y!==a&&(jA(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&&Ni(a,"> 0",Ls,"maxLines"),jA(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 $g=null,Lp=null,Fp=new zn(Ls,"None",0),qf=new zn(Ls,"WrapFit",1),A0=new zn(Ls,"WrapDesiredSize",2),c0=new zn(Ls,"WrapBreakAll",3),d0=new zn(Ls,"OverflowClip",0),qg=new zn(Ls,"OverflowEllipsis",1),tp=new zn(Ls,"FormatTrim",0),Fg=new zn(Ls,"FormatNone",0),f0=/[ \u200b\u00ad]/,Eg=new Dr,Qd=0,yd=new Dr,Rd=0,Bf="...",Ep="",Ru=null,Mp=!1;Ls.className="TextBlock";function ep(){this.nc=!1,this.Hd=null,this.Xf=Zn,this.gq=tp,this.Jq=1/0,this.$q=d0,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Za,this.$r=A0}ep.prototype.copy=function(){var a=new ep;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},Ls.getEllipsis=function(){return Bf},Ls.setEllipsis=function(a){Bf=a,yd=new Dr,Rd=0},Ls.getBaseline=function(){return $g},Ls.setBaseline=function(a){$g=a},Ls.getUnderline=function(){return Lp},Ls.setUnderline=function(a){Lp=a},Ls.isValidFont=function(a){if(Mp||(Ru=Ko?new Rl(null).context:null,Mp=!0),Ru===null)return!0;var y=Ru.font;if(a===y||a==="10px sans-serif")return!0;Ru.font="10px sans-serif",Ru.font=a;var x=Ru.font;if(x!=="10px sans-serif")return Ru.font=y,!0;Ru.font="19px serif";var b=Ru.font;return Ru.font=a,x=Ru.font,Ru.font=y,x!==b},Ls.FormatNone=Fg,Ls.FormatTrim=tp,Ls.None=Fp,Ls.OverflowClip=d0,Ls.OverflowEllipsis=qg,Ls.WrapBreakAll=c0,Ls.WrapDesiredSize=A0,Ls.WrapFit=qf;function oc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}oc.prototype.copy=function(){var a=new oc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},oc.className="GradElementSettings";function Lh(a,y){ze.call(this),this.Eg=null,this.qo="",this.Xg=Ps,this.Nk=oi,this.Zg=this.Hd=null,this.Mk=bo,this.Xf=Zn,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 Np;nn(Lh,ze),Lh.prototype.cloneProtected=function(a){ze.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},Lh.prototype.qb=function(a){a===Zn||a===Yi||a===yo?this.imageStretch=a:ze.prototype.qb.call(this,a)},Lh.prototype.toString=function(){return"Picture("+this.source+")#"+qo(this)};function Ip(a){a===void 0&&(a=""),a!==""?Np[a]&&(delete Np[a],nm--):(Np=new Dr,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()||(Ha(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=nr();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);yr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Lh.prototype.hA=function(){if(this.source!==""){Ip(this.source);var a=this.source;this.source="",this.source=a}},Lh.prototype.redraw=function(){this.N(),this.Uc=!0},Lh.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 Ud)){var E=a instanceof lu;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,kt=this.Mk;switch(Et){case Zn:if(this.sourceRect.w())break;dt>=b.width&&(z=z+kt.offsetX+(dt*kt.x-b.width*kt.x)),St>=b.height&&(tt=tt+kt.offsetY+(St*kt.y-b.height*kt.y)),st=Math.min(b.width,dt),rt=Math.min(b.height,St);break;case oi:dt=b.width,St=b.height;break;case Yi:case yo:Et===Yi?(Et=Math.min(b.height/St,b.width/dt),dt*=Et,St*=Et):Et===yo&&(Et=Math.max(b.height/St,b.width/dt),dt*=Et,St*=Et,dt>=b.width&&(z=(z+kt.offsetX+(dt*kt.x-b.width*kt.x)/dt)*st),St>=b.height&&(tt=(tt+kt.offsetY+(St*kt.y-b.height*kt.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 _t=dt*Et*St*Et,Ae=st*rt/_t,re=x.__goCache;Et=null;var we=ww;if(!E){if(x.sq&&re!==void 0&&4<_t&&Ae>we*we)for(re.gi===null&&(Iy(re,4,lt,ut,x),Iy(re,16,lt,ut,x)),E=re.gi,lt=E.length,ut=0;ut<lt&&E[ut].ratio*E[ut].ratio<Ae;ut++)Et=E[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Rl(null).context;try{E.drawImage(this.Eg,0,0)}catch(Pe){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Pe){this.vl=!0}}if(this.vl)return}}switch(E=dt<b.width?kt.offsetX+(b.width*kt.x-dt*kt.x):0,kt=St<b.height?kt.offsetY+(b.height*kt.y-St*kt.y):0,this.flip){case Mo:a.translate(Math.min(b.width,dt),0),a.scale(-1,1);break;case Wr: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&&re!==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,kt,Math.min(b.width,dt),Math.min(b.height,St)),a instanceof lu&&(this.bt=[z/y,tt/y,Math.min(Et.source.width,st/y),Math.min(Et.source.height,rt/y),E,kt,Math.min(b.width,dt),Math.min(b.height,St)])}catch(Pe){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,st,rt,E,kt,Math.min(b.width,dt),Math.min(b.height,St)),a instanceof lu&&(this.bt=[z,tt,st,rt,E,kt,Math.min(b.width,dt),Math.min(b.height,St)])}catch(Pe){this.en=!1}switch(this.flip){case Mo:a.scale(-1,1),a.translate(-Math.min(b.width,dt),0);break;case Wr: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))}}}}},Lh.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=gu(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===oi||z===or?(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===oi||z===Lr?(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)),ua(this.dc,a,y),this.Ge(0,0,a,y)},Lh.prototype.eh=function(a,y,x,b){Ql(this,a,y,x,b)},he.Object.defineProperties(Lh.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 qn),b!==null&&x&&gA(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()||(Ha(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=Np;if(Ko){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<nm&&(Ip(),x=Np),b=Si("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}}}),Lh.prototype.redraw=Lh.prototype.redraw,Lh.prototype.reloadSource=Lh.prototype.hA;var nm=0,ww=4;Lh.className="Picture",Np=new Dr,Lh.clearCache=Ip;function Ny(){this.gi=null}function Iy(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Rl(null),tt=z.context,rt=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new Ty(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 Ty(a,y){this.source=a,this.ratio=y}Ty.className="PictureCacheInstance";function Tp(){this.os=new Bi,this.mc=null}Tp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Bi,this.mc=null};function kp(a,y,x,b,E,z){a.mc=new ma,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()}Tp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Xo(sl);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Tp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Xo(Ms);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Cf(a,y,x,b,E,z,tt){var rt;rt===void 0&&(rt=!1);var st=new Xo(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 Xo(zu);tt.point1X=y,tt.point1Y=x,tt.endX=b,tt.endY=E,z&&tt.close(),a.mc.segments.add(tt)}Tp.prototype.arcTo=function(a,y,x,b,E,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new Xo(Ua);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 Xo(mh,tt,rt,y,x,b,E,z),st&&y.close(),a.mc.segments.add(y)}function ky(a){var y=rm;return y!==null?(rm=null,y.reset(a),y):(y=new Tp,y.reset(a),y)}var rm=null;Tp.className="StreamGeometryContext";function Hu(a,y){var x=a.toLowerCase(),b=Je.Ze;b[a]=y,b[x]=a}Hu("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Bi(Bi.u),b.endX=y,b.endY=x,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),Hu("Square",function(a,y,x){a="s"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Bi(Bi.u),b.endX=y,b.endY=x,b.defaultStretch=Yi,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),Hu("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 Bi().add(new ma(a,0,!0).add(new Xo(Ms,y-a,0)).add(new Xo(kl,y,a,y-z,0,y,z)).add(new Xo(Ms,y,x-a)).add(new Xo(kl,y-a,x,y,x-z,y-z,x)).add(new Xo(Ms,a,x)).add(new Xo(kl,0,x-a,z,x,0,x-z)).add(new Xo(Ms,0,a)).add(new Xo(kl,a,0,0,z,z,0).close())),1<z&&(E.spot1=new $i(0,0,z,z),E.spot2=new $i(1,1,-z,-z)),Je.Nf<Je.vm&&(Je.Mf[b]=E,Je.Nf++),E}),Hu("Border","RoundedRectangle"),Hu("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Bi(Bi.F),b.endX=y,b.endY=x,b.spot1=zh,b.spot2=Tu,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),Hu("Circle",function(a,y,x){a="c"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Bi(Bi.F),b.endX=y,b.endY=x,b.spot1=zh,b.spot2=Tu,b.defaultStretch=Yi,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),Hu("TriangleRight",function(a,y,x){return new Bi().add(new ma(0,0).add(new Xo(Ms,y,.5*x)).add(new Xo(Ms,0,x).close())).pm(0,.25,.5,.75)}),Hu("TriangleDown",function(a,y,x){return new Bi().add(new ma(0,0).add(new Xo(Ms,y,0)).add(new Xo(Ms,.5*y,x).close())).pm(.25,0,.75,.5)}),Hu("TriangleLeft",function(a,y,x){return new Bi().add(new ma(y,x).add(new Xo(Ms,0,.5*x)).add(new Xo(Ms,y,0).close())).pm(.5,.25,1,.75)}),Hu("TriangleUp",function(a,y,x){return new Bi().add(new ma(y,x).add(new Xo(Ms,0,x)).add(new Xo(Ms,.5*y,0).close())).pm(.25,.5,.75,1)}),Hu("Triangle","TriangleUp"),Hu("Diamond",function(a,y,x){return new Bi().add(new ma(.5*y,0).add(new Xo(Ms,0,.5*x)).add(new Xo(Ms,.5*y,x)).add(new Xo(Ms,y,.5*x).close())).pm(.25,.25,.75,.75)}),Hu("LineH",function(a,y,x){return a=new Bi(Bi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Hu("LineV",function(a,y,x){return a=new Bi(Bi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Hu("None","Rectangle"),Hu("BarH","Rectangle"),Hu("BarV","Rectangle"),Hu("MinusLine","LineH"),Hu("PlusLine",function(a,y,x){return new Bi().add(new ma(0,x/2,!1).add(new Xo(Ms,y,x/2)).add(new Xo(sl,y/2,0)).add(new Xo(Ms,y/2,x)))}),Hu("XLine",function(a,y,x){return new Bi().add(new ma(0,x,!1).add(new Xo(Ms,y,0)).add(new Xo(sl,0,0)).add(new Xo(Ms,y,x)))}),Hu("LineRight",function(a,y,x){return new Bi().add(new ma(.25*y,0,!1).add(new Xo(Ms,.75*y,.5*x)).add(new Xo(Ms,.25*y,x)))}),Hu("LineDown",function(a,y,x){return new Bi().add(new ma(0,.25*x,!1).add(new Xo(Ms,.5*y,.75*x)).add(new Xo(Ms,y,.25*x)))}),Hu("LineLeft",function(a,y,x){return new Bi().add(new ma(.75*y,0,!1).add(new Xo(Ms,.25*y,.5*x)).add(new Xo(Ms,.75*y,x)))}),Hu("LineUp",function(a,y,x){return new Bi().add(new ma(0,.75*x,!1).add(new Xo(Ms,.5*y,.25*x)).add(new Xo(Ms,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=Wa,this.ir=null,this.jr="",this.lr=ss,this.Gq="",this.Hq=Ya,this.Pq=Qs,this.Kq=_a,this.Up=null,this.Cq=127,this.zr=hl,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 xr(a,y){a===void 0||a instanceof Ke||typeof a=="string"?Tn.call(this,a):(Tn.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 oe(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Nn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}nn(xr,Tn),xr.prototype.cloneProtected=function(a){Tn.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=xr.prototype,jt.Af=function(a){Tn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},jt.toString=function(){var a=ar(this.constructor)+"#"+qo(this);return this.data!==null&&(a+="("+Er(this.data)+")"),a};function Fh(a){a.P===null?a.P=new mv:a.P.nc&&(a.P=a.P.copy())}jt.th=function(){Tn.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===Oa&&y==="elements"?E instanceof Tn?ya(E,function(st){Gv(rt.partManager,st),fA(rt,st)}):gA(rt,E):a===Ja&&y==="elements"&&(E instanceof Tn?ya(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(Tn.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 Tn&&ya(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},xr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},xr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},xr.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 Zi),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)))}}},xr.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)}},xr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=nr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);yr(y)}},xr.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 Xr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof ts))break t;pl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Tn.Link),x.adornedObject=y)}if(x!==null){x.type===Tn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Bw(this,a),y=this.adornments;y.next();)y.value.La()}},xr.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(tg(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,tg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||Uy(a,y,x),x=a.Ib;var b=Nn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Nn.free(b),wv(a,!1)}}xr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new mo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},xr.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=oe.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),oe.free(tt)}},xr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},xr.prototype.moveTo=function(a,y,x){a=oe.allocAt(a,y),this.move(a,x),oe.free(a)},xr.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())},xr.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())},xr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Zi),y.I(a)!==null)return y.I(a);var x=Tn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Pf(a,y,x,b){b===void 0&&(b=new oe),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}xr.prototype.mi=function(a){return a===void 0&&(a=new Nn),a.assign(this.actualBounds)},xr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Dy(a){var y=oe.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Yr?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 Mg(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=TA(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}xr.prototype.arrange=function(){if(au(this)===!1)Oy(this);else{mA(this,!1);var a=this.Ib,y=Nn.alloc();y.assign(a);var x=eg(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),Nn.free(y),wv(this,!1)}},jt=xr.prototype,jt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Nn.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),Nn.free(E)}!(this.G&65536)&&a.D(y)||Hy(this,b,x),x.N(),!a.w()&&!y.w()||nA(a,y)||(this instanceof Hi&&!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 oe(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),tg(this)===!1&&au(this)===!1&&(om(this),Oy(this)),!0};function jy(a,y,x,b,E){y===null||a instanceof ts||(y=y.animationManager,y.zb&&eu(y,a,new oe(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;tg(this)||au(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,oe.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 ts||eu(x,a,new oe(z,tt),y),b||y.x===z&&y.y===tt||a.g("position",new oe(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 Hi&&cr(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?eg(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||Gy||(Gy=!0,lr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),lr(" Old class: "+ar(a.constructor)+", new class: "+ar(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 Hi&&(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 Hi&&(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)}xr.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},xr.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},xr.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},xr.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},xr.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},xr.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},xr.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},xr.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},xr.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 tg(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 eg(a){return(a.G&131072)!==0}jt=xr.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&&!au(this)&&!tg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Mg(this,this.Ib))},jt.v=function(){Tn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Hi&&this.labeledLink!==null&&Ra(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 Hi&&(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 Hi&&(x=y.labeledLink,x!==null)?zy(a,x):y}jt.Td=function(a){return a instanceof Xr?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 Hi&&(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 Xr&&sm(y,!0),y instanceof Hi){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 Hi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Xr&&sm(y,!1),y instanceof Hi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},xr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Hi&&this.isLinkLabel)},xr.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 Hi&&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 _y(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function ng(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof ts)){if(a.add(y),y instanceof Hi){if(x&&y instanceof Xr)for(var tt=y.memberParts;tt.next();)ng(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&<:st||lt)&&ng(a,rt,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ng(a,y.value,x,b-1,E,z)}else if(y instanceof yi)for(y=y.labelNodes;y.next();)ng(a,y.value,x,b,E,z)}}he.Object.defineProperties(xr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Uo: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(Ja,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Oa,"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&&(Fh(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&&Cd(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 ts?this.type!==Tn.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:Qs},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Fh(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:_a},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Fh(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&&(Fh(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:Ya},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Fh(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,au(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 ts)){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 ts?this instanceof ts&&(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&&(pl(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&&(pl(x),x=x.copy(),x===null||x instanceof yi||(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&&(Fh(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&&(Fh(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&&(Fh(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 yi?(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&&(Fh(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&&(Fh(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&&(Fh(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:Wa},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Fh(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&&(Fh(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&&(Fh(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:ss},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Fh(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 Xr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof Xr&&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 Xr){for(x=new qn,ng(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Hi)for(b=b.linksConnected;b.next();)Op(b.value)}if(this instanceof Hi){for(x=this.linksConnected;x.next();)Op(x.value);x=this.labeledLink,x!==null&&Op(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Cd(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&&(Fh(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Hi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Fh(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&&(Fh(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:hl},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Fh(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&&(Fh(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&&(Fh(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),xr.prototype.invalidateLayout=xr.prototype.C,xr.prototype.findCommonContainingGroup=xr.prototype.px,xr.prototype.isMemberOf=xr.prototype.Td,xr.prototype.findTopLevelPart=xr.prototype.sz,xr.prototype.findSubGraphLevel=xr.prototype.oz,xr.prototype.ensureBounds=xr.prototype.Va,xr.prototype.getDocumentBounds=xr.prototype.mi,xr.prototype.findObject=xr.prototype.fb,xr.prototype.moveTo=xr.prototype.moveTo,xr.prototype.invalidateAdornments=xr.prototype.Wb,xr.prototype.clearAdornments=xr.prototype.Ej,xr.prototype.removeAdornment=xr.prototype.Jf,xr.prototype.addAdornment=xr.prototype.bh,xr.prototype.findAdornment=xr.prototype.Pj,xr.prototype.updateTargetBindings=xr.prototype.La;var Gy=!1;xr.className="Part",xr.LayoutNone=0,xr.LayoutAdded=1,xr.LayoutRemoved=2,xr.LayoutShown=4,xr.LayoutHidden=8,xr.LayoutNodeSized=16,xr.LayoutGroupLayout=32,xr.LayoutNodeReplaced=64,xr.LayoutStandard=127,xr.LayoutAll=16777215;function ts(a,y){a===void 0||a instanceof Ke||typeof a=="string"?xr.call(this,a):(xr.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(ts,xr),ts.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ts.prototype.updateRelationshipsFromData=function(){},ts.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof yi&&y instanceof Yr){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 Yr&&(E.ua=a)}}},ts.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!au(a))},ts.prototype.Zc=function(){return!1},ts.prototype.gk=function(a,y,x,b,E,z,tt){if(a===Oa&&y==="elements"){if(E instanceof ah)this.$a===null&&(this.$a=E);else if(E instanceof Tn){var rt=E.Nl(function(st){return st instanceof ah});rt instanceof ah&&this.$a===null&&(this.$a=rt)}}else a===Ja&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Tn&&this.$a.rg(b)&&(this.$a=null));xr.prototype.gk.call(this,a,y,x,b,E,z,tt)},ts.prototype.updateAdornments=function(){},ts.prototype.Lj=function(){},he.Object.defineProperties(ts.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}}}),ts.className="Adornment";function Cv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=gh,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 Hi(a,y){a===void 0||a instanceof Ke||typeof a=="string"?xr.call(this,a):(xr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new ni,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}nn(Hi,xr),Hi.prototype.cloneProtected=function(a){xr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},jt=Hi.prototype,jt.Af=function(a){xr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function bf(a){a.Ba===null?a.Ba=new Cv:a.Ba.nc&&(a.Ba=a.Ba.copy())}jt.th=function(){xr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Ky(a,y){y!==null&&(a.af===null&&(a.af=new qn),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===Oa&&y==="elements"?this.wc=null:a===Ja&&y==="elements"&&(this.wc=null),xr.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)||(Zh(x.fromPort),Zh(x.toPort),x.bb())}};function Vy(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Zh(x.fromPort),Zh(x.toPort),x.bb())}}function Zh(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Zh(y.port)}}jt.si=function(){return!0},Hi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Hi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Hi.prototype.isVisible=function(){if(!xr.prototype.isVisible.call(this))return!1;var a=!0,y=pA,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===pA){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Ba){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Ul&&(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},Hi.prototype.Zb=function(a){xr.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)}},Hi.prototype.qx=function(){var a=new qn,y=new qn;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)})}}Hi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new $r(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},jt=Hi.prototype,jt.Mo=function(a){a===void 0&&(a=null);var y=new $r(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 $r(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 qn,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 qn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new lo(x):Uo},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 qn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new lo(x):Uo},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 qn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new lo(x):Uo},jt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new $r(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 $r(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){Zh(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){Zh(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)):g0(y)))}function g0(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}}}Hi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},jt=Hi.prototype,jt.Vo=function(a){xr.prototype.Vo.call(this,a),a||(g0(this),a=this.Yk,a!==null&&i1(a,this))},jt.Wo=function(a){xr.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,xr.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 Zi: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=nr()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);yr(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 Hi)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 qn;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 $r(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 ni,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 ni,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new lo(x):Uo},jt.wz=function(a){a===void 0&&(a=1/0);var y=new qn;return ng(y,this,!1,a,!0),y},Hi.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 qn;x.add(this),$y(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pA),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&<!==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}Hi.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 qn;x.add(this),t1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pA),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}he.Object.defineProperties(Hi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:um},set:function(a){var y=this.portSpreading;y!==a&&(bf(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&&cr(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:gh},set:function(a){typeof a=="number"&&(a=new Sr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),bf(this),this.Ba.yp=a;var x=this.diagram;x!==null&&cr(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&&(bf(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&&(bf(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&&(bf(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),Ra(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&&(bf(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))}}}),Hi.prototype.expandTree=Hi.prototype.expandTree,Hi.prototype.collapseTree=Hi.prototype.collapseTree,Hi.prototype.findTreeParts=Hi.prototype.wz,Hi.prototype.findTreeChildrenNodes=Hi.prototype.Ou,Hi.prototype.findTreeChildrenLinks=Hi.prototype.Qo,Hi.prototype.findTreeLevel=Hi.prototype.uz,Hi.prototype.findTreeParentChain=Hi.prototype.vz,Hi.prototype.findTreeParentNode=Hi.prototype.pg,Hi.prototype.findTreeParentLink=Hi.prototype.kh,Hi.prototype.findCommonTreeParent=Hi.prototype.gz,Hi.prototype.findTreeRoot=Hi.prototype.xz,Hi.prototype.isInTreeOf=Hi.prototype.Nz,Hi.prototype.findPort=Hi.prototype.ns,Hi.prototype.findLinksTo=Hi.prototype.kz,Hi.prototype.findLinksBetween=Hi.prototype.jz,Hi.prototype.findNodesInto=Hi.prototype.Oo,Hi.prototype.findNodesOutOf=Hi.prototype.Po,Hi.prototype.findNodesConnected=Hi.prototype.Mu,Hi.prototype.findLinksInto=Hi.prototype.Sd,Hi.prototype.findLinksOutOf=Hi.prototype.Mo,Hi.prototype.findExternalTreeLinksConnected=Hi.prototype.qx,Hi.prototype.invalidateConnectedLinks=Hi.prototype.Bd,Hi.prototype.invalidateLinkBundle=Hi.prototype.Lz;var Cw=new zn(Hi,"SpreadingNone",10),um=new zn(Hi,"SpreadingEvenly",11),bv=new zn(Hi,"SpreadingPacked",12);Hi.className="Node",Hi.SpreadingNone=Cw,Hi.SpreadingEvenly=um,Hi.SpreadingPacked=bv;function Xr(a,y){a===void 0||a instanceof Ke||typeof a=="string"?Hi.call(this,a):(Hi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new qn,this.$a=null,this.Sc=new aa,this.Sc.group=this,this.gl=new qn,this.tb=this.$p=null,y&&Object.assign(this,y)}nn(Xr,Hi),Xr.prototype.cloneProtected=function(a){Hi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof ah});y instanceof ah?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=Xr.prototype,jt.Af=function(a){Hi.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 Hi)x.Bd(y);else if(x instanceof yi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},jt.gk=function(a,y,x,b,E,z,tt){if(a===Oa&&y==="elements"){if(E instanceof ah)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 Tn){var rt=E.Nl(function(st){return st instanceof ah});rt instanceof ah&&(this.$a===null?this.$a=rt:this.$a!==rt&&Fe("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ja&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Tn&&this.$a.rg(b)&&(this.$a=null));Hi.prototype.gk.call(this,a,y,x,b,E,z,tt)},jt.Xl=function(a,y){Hi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Tn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Tn&&(a=a.Pb()),this.tb===null&&(this.tb=new Nn),a.mi(this.tb),a instanceof Yr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},jt.eh=function(a,y,x,b){this.nf=this.$a,Hi.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 yi||y.Va()}),Hi.prototype.Va.call(this)},jt.si=function(){if(!Hi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Hi){if(y.isVisible()&&au(y))return!1}else if(y instanceof yi&&y.isVisible()&&au(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof Xr&&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 yi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Fv(a,y){if(a.Gn.remove(y)){y instanceof Xr&&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 yi&&!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)}Hi.prototype.Lj.call(this)},Xr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=bn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Xr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=bn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Xr.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=Xr.prototype,jt.Bd=function(a){var y=(this.U&65536)!==0;if(Hi.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()?(Zh(x.fromPort),Zh(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Zh(x.fromPort),Zh(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 qn,b=y.iterator;b.next();){var E=b.value;if(E instanceof Hi)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 qn,x=a.iterator;x.next();){var b=x.value;if(b instanceof Hi)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 qn;return a(this,y),y},jt.Rj=function(){var a=new qn;return ng(a,this,!0,0,!0),a.remove(this),a},jt.Zb=function(a){Hi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Xr.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 Xr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,e1(z,y,x,b)),z instanceof Hi)z.Bd(y),x.Aj(z,b);else if(z instanceof yi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Xr.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 Xr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,n1(z,y,x,b)),z instanceof Hi)z.Bd(y),x.Cj(z,b);else if(z instanceof yi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Xr.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=oe.alloc(),Hi.prototype.move.call(this,a,y),a=new qn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof yi&&(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 Hi&&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 yi&&(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());oe.free(z)}},he.Object.defineProperties(Xr.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&&(bf(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&&(bf(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&&(bf(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&&(bf(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)}}}),Xr.prototype.expandSubGraph=Xr.prototype.expandSubGraph,Xr.prototype.collapseSubGraph=Xr.prototype.collapseSubGraph,Xr.prototype.findSubGraphParts=Xr.prototype.Rj,Xr.prototype.findContainingGroupChain=Xr.prototype.hz,Xr.prototype.findExternalNodesConnected=Xr.prototype.iz,Xr.prototype.findExternalLinksConnected=Xr.prototype.Lu,Xr.prototype.ensureBounds=Xr.prototype.Va,Xr.className="Group";function ah(a){ze.call(this),this.yb=vu,this.ko=new Nn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}nn(ah,ze),ah.prototype.cloneProtected=function(a){ze.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},ah.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Gs(0,0,y.width,y.height,a.x,a.y)},ah.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Xr||a instanceof ts)||Fe("Placeholder is not inside a Group or Adornment."),a instanceof Xr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ua(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=oe.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),oe.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 Yr&&(tt=z.strokeWidth);var rt=z.Df(),st=z.naturalBounds,lt=(st.width+tt)*rt;tt=(st.height+tt)*rt,a.type!==Tn.Link&&(rt=z.ga(a.category==="Selection"?Ya:a.locationSpot,oe.alloc()),a.location=rt,oe.free(rt)),isNaN(lt)||isNaN(tt)?(a=z.ga(Ya,oe.alloc()),lt=Nn.allocAt(a.x,a.y,0,0),lt.Ye(z.ga(Kl,a)),lt.Ye(z.ga($u,a)),lt.Ye(z.ga(Ta,a)),ua(y,lt.width+b||0,lt.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),oe.free(a),Nn.free(lt)):(ua(y,lt+b||0,tt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},ah.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},ah.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Xr&&!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=Nn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Xr&&!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)),Nn.free(x),b&&y instanceof Xr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},ah.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Xr))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 yi&&(!y.computesBoundsIncludingLinks||Nu(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},he.Object.defineProperties(ah.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Sr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ah.className="Placeholder";function yi(a){xr.call(this,Tn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=lh,this.Om=0,this.Qm=lh,this.Rm=NaN,this.qj=Tv,this.po=.5,this.wd=null,this.Nb=new ni().freeze(),this.Tg=this.Mg=null,this.ml=new Nn,this.ua=new Bi,this.u=this.o=this.Sf=this.Wf=null,this.su=new oe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}nn(yi,xr),yi.prototype.cloneProtected=function(a){xr.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=yi.prototype,jt.Af=function(a){xr.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&&Zh(y),a=a.toPort,a!==null&&Zh(a)},jt.qb=function(a){a.classType===yi?(a.value&2)===2?this.routing=a:a===xA||a===Ff||a===jp?this.curve=a:a===v0||a===gm||a===pm?this.adjusting=a:a!==Tv&&a!==lh&&Fe("Unknown Link enum value for a Link property: "+a):xr.prototype.qb.call(this,a)},jt.Xc=function(){this.ba===null&&(this.ba=new Gf)},jt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),au(a)||tg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),au(a)||tg(a)))},jt.zv=function(){return!1},jt.Av=function(){},jt.Zc=function(){return!1},yi.prototype.computeAngle=function(a,y,x){return yi.computeAngle(y,x)},yi.computeAngle=function(a,y){switch(a){default:case lh:a=0;break;case y0:a=y;break;case w0:a=y+90;break;case S0:a=y-90;break;case kv:a=y+180;break;case mm:a=Je.bp(y),90<a&&270>a&&(a-=180);break;case x0:a=Je.bp(y+90),90<a&&270>a&&(a-=180);break;case B0: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 Op(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=yi.prototype,jt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&xr.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 qn),a.wd.add(y),a.v()}jt.Vo=function(a){if(xr.prototype.Vo.call(this,a),Ng(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)}p0(this)}},jt.Wo=function(a){if(xr.prototype.Wo.call(this,a),Ng(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)}m0(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))},yi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},yi.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?xr.prototype.move.call(this,a,!1):(a=oe.allocAt(x.x+b,x.y+E),xr.prototype.move.call(this,a,!1),oe.free(a)),Lf(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},yi.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},yi.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},yi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ka),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},yi.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=yi.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 oe(y,x))},jt.Kz=function(a,y){this.Nb.Gb(a,y)},jt.m=function(a,y,x){this.Nb.Gb(a,new oe(y,x))},jt.ne=function(a){this.Nb.add(a)},jt.yf=function(a,y){this.Nb.add(new oe(a,y))},jt.pv=function(a){this.Nb.mb(a)},jt.Fj=function(){this.Nb.clear()};function Lf(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 ni,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new oe(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),Ra(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&&_u(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&&_u(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()}}},yi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(rp||(rp=new Hi,rp.desiredSize=eo,rp.Va()),this.defaultFromPoint&&(rp.location=this.defaultFromPoint,rp.Va(),y=a=rp)):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?(op||(op=new Hi,op.desiredSize=eo,op.Va()),this.defaultToPoint&&(op.location=this.defaultToPoint,op.Va(),E=b=op)):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=Dp(tt),st=Dp(x),lt=y===E&&y!==null,ut=this.isOrthogonal,dt=this.curve===xA;this.Wf=lt&&!ut?dt=!0:!1;var St=this.computeAdjusting()===lh||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,kt=z.y+st/3,_t=Et,Ae=kt;Je.B(st,0)?Ae=0<rt?Ae-lt:Ae+lt:(ut=-rt/st,dt=Math.sqrt(lt*lt/(ut*ut+1)),0>lt&&(dt=-dt),_t=(0>st?-1:1)*dt+Et,Ae=ut*(_t-Et)+kt),Et=z.x+2*rt/3,kt=z.y+2*st/3;var re=Et,we=kt;Je.B(st,0)?we=0<rt?we-lt:we+lt:(re=(0>st?-1:1)*dt+Et,we=ut*(re-Et)+kt),this.Fj(),this.ne(z),this.yf(_t,Ae),this.yf(re,we),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=Nn.alloc(),y.mi(rt),st=rt.ca(E),St.mi(rt),lt=rt.ca(b),(st||lt)&&(tt=y.ga(cm(tt),new oe),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=St.ga(cm(x),new oe),this.dd(1,this.getLinkPointFromPoint(z,St,x,b,!1,x))),Nn.free(rt))}else{dt=this.isAvoiding,St&&(ut&&dt||lt)&&this.Fj();var Pe=lt?this.computeCurviness():0;dt=this.getLinkPoint(a,y,tt,!0,ut,b,E),Et=_t=kt=0,(ut||!rt||lt)&&(Ae=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>Pe&&(Et-=180)),0>Et?Et+=360:360<=Et&&(Et-=360),lt&&(Ae+=Math.abs(Pe)*(ut?1:2)),Et===0?kt=Ae:Et===90?_t=Ae:Et===180?kt=-Ae:Et===270?_t=-Ae:(kt=Ae*Math.cos(Et*Math.PI/180),_t=Ae*Math.sin(Et*Math.PI/180)),tt.Mc()&<&&(Ae=y.ga(bo,oe.alloc()),re=oe.allocAt(Ae.x+1e3*kt,Ae.y+1e3*_t),this.getLinkPointFromPoint(a,y,Ae,re,!0,dt),oe.free(Ae),oe.free(re))),Ae=this.getLinkPoint(b,E,x,!1,ut,a,y);var Ee=we=re=0;if(ut||!st||lt){var Ve=this.computeEndSegmentLength(b,E,x,!1);Ee=this.getLinkDirection(b,E,Ae,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>Pe&&(Ee+=180)),0>Ee?Ee+=360:360<=Ee&&(Ee-=360),lt&&(Ve+=Math.abs(Pe)*(ut?1:2)),Ee===0?re=Ve:Ee===90?we=Ve:Ee===180?re=-Ve:Ee===270?we=-Ve:(re=Ve*Math.cos(Ee*Math.PI/180),we=Ve*Math.sin(Ee*Math.PI/180)),x.Mc()&<&&(x=E.ga(bo,oe.alloc()),tt=oe.allocAt(x.x+1e3*re,x.y+1e3*we),this.getLinkPointFromPoint(b,E,x,tt,!1,Ae),oe.free(x),oe.free(tt))}x=dt,(ut||!rt||lt)&&(x=new oe(dt.x+kt,dt.y+_t)),tt=Ae,(ut||!st||lt)&&(tt=new oe(Ae.x+re,Ae.y+we)),!St&&!ut&&rt&&3<z&&this.adjustPoints(0,dt,z-2,tt)?this.dd(z-1,Ae):!St&&!ut&&st&&3<z&&this.adjustPoints(1,x,z-1,Ae)?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,Ae)):(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(Ae))}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}yi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new oe),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 sp,x.port=y,x.node=y.part,y.Zn=x),A1(x,a)}yi.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,rt){if(rt===void 0&&(rt=new oe),x.sb()&&!Dp(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=oe.alloc(),lt=oe.alloc();var ut=new Nn(y.ga(Ya,st),y.ga(Kl,lt)),dt=this.computeSpot(!b,tt);a=this.getLinkPoint(z,tt,dt,!b,E,a,y,lt),(x.Hf(iu)||x.Hf(Wl))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(Iu)||x.Hf(Nl))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),oe.free(st),oe.free(lt)}}return rt}}return x=y.ga(cm(x),oe.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=oe.alloc(),tt=tt.ga(cm(st),z),E&&(tt=Ev(x,tt)),oe.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,rt),oe.free(x),rt},yi.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,oe.alloc()),this.pointsCount>(z?6:2)?(rt=E?this.i(1):this.i(this.pointsCount-2),rt=z?Ev(st,rt.copy()):x):(x=oe.alloc(),rt=rt.ga(bo,x),oe.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,oe.free(st),st=x}return b.Mc()&&tt.Td(a)&&(st+=180,360<=st&&(st-=360)),Dp(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},yi.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)},yi.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===ss?ba:y)):(a=y||this.toPort,a===null?a=bo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ss?ba:y)),a};function Dp(a){return a===ba||a.x===.5&&a.y===.5}function cm(a){return a.x===.5&&a.y===.5?a:bo}yi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==lh&&4<this.pointsCount?this.computeMidPoint(new oe):(a=y.Zn,a=a!==null?A1(a,this):null,a!==null?a.Zo:y.ga(bo))},yi.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},yi.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=mo.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return kA(this,y,x,E),z===void 0&&mo.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=mo.alloc(),dt.set(tt),ut instanceof Tn)rt=ut.Cf(a,y,x,b,E,dt);else if(this.path===ut){if(ut instanceof Yr)if(rt=a,St=b,ut.pickable===!1)rt=!1;else if(dt.multiply(ut.transform),St)t:{var Et=rt,kt=dt;if(ut.fh(Et,kt))rt=!0;else{if(kt===void 0&&(kt=ut.transform,Et.Re(ut.actualBounds))){rt=!0;break t}rt=Et.left,St=Et.right;var _t=Et.top;Et=Et.bottom;var Ae=oe.alloc(),re=oe.alloc(),we=oe.alloc(),Pe=mo.alloc();Pe.set(kt),Pe.bv(ut.transform),Pe.Vj(),re.x=St,re.y=_t,re.transform(Pe),Ae.x=rt,Ae.y=_t,Ae.transform(Pe),kt=!1,xf(ut,Ae,re,we)?kt=!0:(Ae.x=St,Ae.y=Et,Ae.transform(Pe),xf(ut,Ae,re,we)?kt=!0:(re.x=rt,re.y=Et,re.transform(Pe),xf(ut,Ae,re,we)?kt=!0:(Ae.x=rt,Ae.y=_t,Ae.transform(Pe),xf(ut,Ae,re,we)&&(kt=!0)))),mo.free(Pe),oe.free(Ae),oe.free(re),oe.free(we),rt=kt}}else rt=ut.fh(rt,dt)}else rt=Ma(ut,a,b,dt);rt&&(St=ut,y!==null&&(St=y(ut)),St&&(x===null||x(St))&&E.add(St)),mo.free(dt)}}}return z===void 0&&mo.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&mo.free(tt),!1},yi.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},yi.prototype.computeCorner=function(){if(this.curve===xA)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},yi.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},yi.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===y0||b===mm||b===kv?a=Math.max(a,E):b===S0||b===B0||b===w0||b===x0?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},yi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===lh&&x.bb()}},yi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=s1;var y=this.Sf;if(y!==null){for(var x=nr(),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),yr(x)}}return a},yi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},yi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},yi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===gm)return!1;E===pm&&(E=v0)}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 kt=(St-ut)/(st-rt);Et=Math.sqrt(1+1/(kt*kt))}else kt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var _t=y.x,Ae=y.y,re=.5;lt!==0&&(re=((E-_t)*(E-tt)+(z-Ae)*(z-dt))/lt);var we=E+re*(tt-E),Pe=z+re*(dt-z);y=Math.sqrt((_t-we)*(_t-we)+(Ae-Pe)*(Ae-Pe)),Ae<kt*(_t-we)+Pe&&(y=-y),0<kt&&(y=-y),_t=rt+re*(st-rt),re=ut+re*(St-ut),kt!==0?(y=_t+y/Et,this.L(a,y,re-(y-_t)/kt)):this.L(a,_t,re+y)}this.dd(x,b)}return!0;case v0: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}},yi.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(C0,C0),st.Bc(C0,C0),rt.Ye(a),st.Ye(x);var lt=oe.alloc(),ut=oe.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&<.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&<.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&<.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&<.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||!_e(St)||rt.ca(dt)&&!z.Td(E)||st.ca(a)&&!E.Td(z))y=!1;else{var Et=Hn(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 kt=x=null;if(St.isVirtualized){St=Et.bounds.copy(),St.Bc(-Et.Ho,-Et.Go);var _t=oe.alloc();Up(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,_t)?(x=a=_t.copy(),y=_t.ab(lt)):Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,lt.x,lt.y,ut.x,ut.y,_t)?(x=a=_t.copy(),y=_t.ab(ut)):Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,ut.x,ut.y,dt.x,dt.y,_t)&&(x=a=_t.copy(),y=_t.ab(dt))),Up(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,_t)?(kt=dt=_t.copy(),b=ut.ab(_t)):Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,ut.x,ut.y,lt.x,lt.y,_t)?(kt=dt=_t.copy(),b=lt.ab(_t)):Je.Ff(St.x,St.y,St.x+St.width,St.y+St.height,lt.x,lt.y,a.x,a.y,_t)&&(kt=dt=_t.copy(),b=a.ab(_t))),oe.free(_t)}rt=rt.copy().ed(st),rt.Bc(Et.Ho*Et.Os,Et.Go*Et.Os),u1(Et,a,y,dt,b,rt,!0),st=Hd(Et,dt.x,dt.y),!Et.abort&&st>=Qp&&(l1(Et),rt.Bc(Et.Ho*Et.Hx,Et.Go*Et.Ix),u1(Et,a,y,dt,b,rt,!1),st=Hd(Et,dt.x,dt.y)),!Et.abort&&st<Qp&&Hd(Et,dt.x,dt.y)!==Ef?(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)),kt!==null&&(b===0||b===180?this.yf(z.x,kt.y):this.yf(kt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ut.copy())),oe.free(lt),oe.free(ut)}},yi.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||!_e(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Hn(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=Hd(y,x,b),ut=x,dt=b;for(E===0?ut+=rt:E===90?dt+=st:E===180?ut-=rt:dt-=st,E!==tt&<>Ig&&Hd(y,ut,dt)!==lt-1&&(Hd(y,x-rt,b)===lt-1?(E=180,ut=x-rt,dt=b):Hd(y,x+rt,b)===lt-1?(E=0,ut=x+rt,dt=b):Hd(y,x,b-st)===lt-1?(E=270,ut=x,dt=b-st):Hd(y,x,b+st)===lt-1&&(E=90,ut=x,dt=b+st));lt>Ig&&Hd(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>Ig&&(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>Ig&&(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),Hd(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),Hd(y,tt,ut)===lt-1&&Nv(a,y,tt,ut,z,!1,z))),a.yf(x,b)}yi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=As(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=As(y,a,b.x,b.y,x.x,x.y);b=x,rt<E&&(z=tt,E=rt)}return z},yi.prototype.qc=function(){this.lk=!1,this.v()},yi.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 Yr&&(E.ua=this.ua)}}},yi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Ng(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||Ng(this)){if(a.type=Bi.o,rt=ky(a),this.computeShortLength(!0)!==0&&(E=np(this,E,!0,z)),kp(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=np(this,E,!1,z)),Cf(rt,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=oe.allocAt(b,st),x=oe.alloc(),x.assign(this.i(1)),z=oe.allocAt(b,st),E=oe.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,kt=this.i(Iv(this,lt,dt,!1));if((!Je.$(St.x,Et.x)||!Je.$(Et.x,kt.x))&&(!Je.$(St.y,Et.y)||!Je.$(Et.y,kt.y))){var _t=ut;isNaN(_t)&&(_t=this.smoothness/3);var Ae=St.x;St=St.y;var re=Et.x;Et=Et.y;var we=kt.x;kt=kt.y;var Pe=_t*dm(Ae,St,re,Et);_t*=dm(re,Et,we,kt),Je.$(St,Et)&&Je.$(re,we)&&(re>Ae?kt>Et?(z.x=re-Pe,z.y=Et-Pe,E.x=re+_t,E.y=Et+_t):(z.x=re-Pe,z.y=Et+Pe,E.x=re+_t,E.y=Et-_t):kt>Et?(z.x=re+Pe,z.y=Et-Pe,E.x=re-_t,E.y=Et+_t):(z.x=re+Pe,z.y=Et+Pe,E.x=re-_t,E.y=Et-_t)),Je.$(Ae,re)&&Je.$(Et,kt)&&(Et>St?(we>re?(z.x=re-Pe,z.y=Et-Pe,E.x=re+_t):(z.x=re+Pe,z.y=Et-Pe,E.x=re-_t),E.y=Et+_t):(we>re?(z.x=re-Pe,z.y=Et+Pe,E.x=re+_t):(z.x=re+Pe,z.y=Et+Pe,E.x=re-_t),E.y=Et-_t)),(Je.$(Ae,re)&&Je.$(re,we)||Je.$(St,Et)&&Je.$(Et,kt))&&(Ae=.5*(Ae+we),St=.5*(St+kt),z.x=Ae,z.y=St,E.x=Ae,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)),Cf(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=np(this,ut.copy(),!1,zo)),lt=.5*(lt+ut.x),tt=.5*(tt+ut.y),Cf(rt,E.x-b,E.y-st,lt-b,tt-st,ut.x-b,ut.y-st),oe.free(y),oe.free(x),oe.free(z),oe.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=np(this,tt.copy(),!1,zo)),Cf(rt,z.x-b,z.y-st,E.x-b,E.y-st,tt.x-b,tt.y-st);else{for(z=oe.alloc(),z.assign(this.i(0)),E=oe.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=np(this,ut.copy(),!1,zo)),ip(this,rt,-b,-st,z,ut,x);else if(lt===0)for(dt=1;dt<y;)E.assign(z),ut=this.i(dt++),ip(this,rt,-b,-st,z,ut,x),z.assign(ut);break}if(lt=Iv(this,ut,dt+1,dt<y-3),dt=-b,Ae=-st,St=ut,re=this.i(lt),_t=x,Je.B(z.y,St.y)&&Je.B(St.x,re.x))if(kt=Math.min(tt,Math.abs(St.x-E.x)/2),kt=Pe=Math.min(kt,Math.abs(re.y-St.y)/2),Je.B(kt,0))ip(this,rt,dt,Ae,z,St,_t),z.assign(St);else{var Ee=St.x,Ve=St.y;Et=Ee,we=Ve,St.x>z.x?Ee=St.x-kt:Ee=St.x+kt,re.y>St.y?we=St.y+Pe:we=St.y-Pe,re=oe.allocAt(Ee,Ve),ip(this,rt,dt,Ae,z,re,_t),oe.free(re),im(rt,St.x+dt,St.y+Ae,Et+dt,we+Ae),z.h(Et,we)}else Je.B(z.x,St.x)&&Je.B(St.y,re.y)?(kt=Math.min(tt,Math.abs(St.y-E.y)/2),kt=Pe=Math.min(kt,Math.abs(re.x-St.x)/2),Je.B(Pe,0)?(ip(this,rt,dt,Ae,z,St,_t),z.assign(St)):(Ee=St.x,Ve=St.y,Et=Ee,we=Ve,St.y>z.y?Ve=St.y-kt:Ve=St.y+kt,re.x>St.x?Et=St.x+Pe:Et=St.x-Pe,re=oe.allocAt(Ee,Ve),ip(this,rt,dt,Ae,z,re,_t),oe.free(re),im(rt,St.x+dt,St.y+Ae,Et+dt,we+Ae),z.h(Et,we))):(ip(this,rt,dt,Ae,z,St,_t),z.assign(St));E.assign(ut),dt=lt}oe.free(z)}rm=rt}else rt=this.i(1).copy(),rt.x-=b,rt.y-=st,this.computeShortLength(!0)!==0&&(E=np(this,E,!0,z)),this.computeShortLength(!1)!==0&&(rt=np(this,rt,!1,z)),a.type=Bi.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 np(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}yi.prototype.computeJumpLength=function(){return 10};function ip(a,y,x,b,E,z,tt){if(!tt&&Ng(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 kt=z.y+b;a.curve===Ff?kp(y,Et,kt,!1):Cf(y,St,dt,Et,dt,Et,kt)}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===Ff?kp(y,dt,Et,!1):Cf(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,kt=z.x+x,dt+=b,a.curve===Ff?kp(y,kt,dt,!1):Cf(y,Et,St,Et,dt,kt,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===Ff?kp(y,Et,ut,!1):Cf(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 yi){if(st===a)return 0<b.length&&b.sort(function(ut,dt){return ut-dt}),b.length;if(st.isVisible()&&Ng(st)){var lt=st.routeBounds;lt.w()&&a.routeBounds.Yc(lt)&&!a.usesSamePort(st)&&(lt=st.path,lt!==null&<.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=oe.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&<.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&<.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,kt=tt.x;tt=tt.y;var _t=lt.x,Ae=lt.y;if(Je.B(ut,St)){if(!Je.B(dt,Et)&&Je.B(tt,Ae)&&Math.min(dt,Et)<tt&&Math.max(dt,Et)>tt&&Math.min(kt,_t)<ut&&Math.max(kt,_t)>ut&&!Je.B(kt,_t)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(Je.B(dt,Et)&&Je.B(kt,_t)&&Math.min(ut,St)<kt&&Math.max(ut,St)>kt&&Math.min(tt,Ae)<dt&&Math.max(tt,Ae)>dt&&!Je.B(tt,Ae)){rt.x=kt,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}oe.free(rt)}function Ng(a){return a=a.curve,a===jp||a===Ff}function fm(a,y){(y||Ng(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()))}yi.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 yi&&(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 yi&&r1(this,rt,a)}}}}};function r1(a,y,x){if(y!==null&&y.lk&&y.fd&&Ng(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}yi.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},yi.prototype.isVisible=function(){if(!xr.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},yi.prototype.Zb=function(a){if(xr.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)},yi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?v0:this.qk};function p0(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&<.ff===b&<.uf===x&<.vf===E||lt.ef===x&<.ff===E&<.uf===y&<.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 m0(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Tr(y.links,a),y.Sl()))}yi.prototype.ph=function(){return!0},he.Object.defineProperties(yi.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),m0(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),p0(this),this.C(1)),this.g("fromNode",y,a),Op(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Zh(x),m0(this),this.ff=a;var b=this.fromPort;b!==null&&Zh(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))),p0(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),m0(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),p0(this),this.C(1)),this.g("toNode",y,a),Op(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Zh(x),m0(this),this.vf=a;var b=this.toPort;b!==null&&Zh(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))),p0(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:ss},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&&Zh(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&&Ni(a,">= 0",yi,"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:ss},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&&Zh(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&&Ni(a,">= 0",yi,"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?Uo: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&&g0(this.fromNode),this.toNode!==null&&g0(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Yr?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 oe)}},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 ni,b=0;b<a.length/2;b++)E=new oe(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(!wn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new ni,b=0;b<a.length;b++)E=a[b],x.add(new oe(E.x,E.y).freeze())}}else if(a instanceof ni)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&&_u(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||!Dp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Dp(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===Ff||y===jp||a===Ff||a===jp),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)}}}),yi.prototype.invalidateOtherJumpOvers=yi.prototype.Xo,yi.prototype.findClosestSegment=yi.prototype.ez,yi.prototype.updateRoute=yi.prototype.vg,yi.prototype.invalidateRoute=yi.prototype.bb,yi.prototype.rollbackRoute=yi.prototype.rv,yi.prototype.commitRoute=yi.prototype.zf,yi.prototype.startRoute=yi.prototype.uh,yi.prototype.clearPoints=yi.prototype.Fj,yi.prototype.removePoint=yi.prototype.pv,yi.prototype.addPointAt=yi.prototype.yf,yi.prototype.addPoint=yi.prototype.ne,yi.prototype.insertPointAt=yi.prototype.m,yi.prototype.insertPoint=yi.prototype.Kz,yi.prototype.setPointAt=yi.prototype.L,yi.prototype.setPoint=yi.prototype.dd,yi.prototype.getPoint=yi.prototype.i,yi.prototype.getOtherPort=yi.prototype.Cz,yi.prototype.getOtherNode=yi.prototype.To;var rp=null,op=null,Tv=new zn(yi,"Normal",1),Lw=new zn(yi,"Orthogonal",2),Fw=new zn(yi,"AvoidsNodes",6),o1=new zn(yi,"AvoidsNodesStraight",7),lh=new zn(yi,"None",0),xA=new zn(yi,"Bezier",9),Ff=new zn(yi,"JumpGap",10),jp=new zn(yi,"JumpOver",11),v0=new zn(yi,"End",17),gm=new zn(yi,"Scale",18),pm=new zn(yi,"Stretch",19),y0=new zn(yi,"OrientAlong",21),w0=new zn(yi,"OrientPlus90",22),S0=new zn(yi,"OrientMinus90",23),kv=new zn(yi,"OrientOpposite",24),mm=new zn(yi,"OrientUpright",25),x0=new zn(yi,"OrientPlus90Upright",26),B0=new zn(yi,"OrientMinus90Upright",27),vm=new zn(yi,"OrientUpright45",28),s1=16,a1=14,C0=8;yi.className="Link",yi.Normal=Tv,yi.Orthogonal=Lw,yi.AvoidsNodes=Fw,yi.AvoidsNodesStraight=o1,yi.None=lh,yi.Bezier=xA,yi.JumpGap=Ff,yi.JumpOver=jp,yi.End=v0,yi.Scale=gm,yi.Stretch=pm,yi.OrientAlong=y0,yi.OrientPlus90=w0,yi.OrientMinus90=S0,yi.OrientOpposite=kv,yi.OrientUpright=mm,yi.OrientPlus90Upright=x0,yi.OrientMinus90Upright=B0,yi.OrientUpright45=vm,yi.EndSegmentStep=8,yi.CurvinessStart=s1,yi.SpacingMin=a1,yi.OrthoShortCut=C0;function ym(a,y,x,b){Go(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 P0(a){Go(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}P0.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 Up(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Hd(a,y,x){return Up(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]>=Ig&&(x[b]=Ov)}P0.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]===Ef)return!1}return!0};function zd(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>=Ig&&dt<Qp)for(E?ut+=b:lt+=b,dt+=1;z<=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)zd(a,y,x,1,!E,z,tt,rt,st),zd(a,y,x,-1,!E,z,tt,rt,st);else for(x+=b;x>lt;x+=b)zd(a,y,x,1,!E,z,tt,rt,st),zd(a,y,x,-1,!E,z,tt,rt,st);else if(0<b)for(y+=b;y<lt;y+=b)zd(a,y,x,1,!E,z,tt,rt,st),zd(a,y,x,-1,!E,z,tt,rt,st);else for(y+=b;y>lt;y+=b)zd(a,y,x,1,!E,z,tt,rt,st),zd(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=Ef,ut=Ig;for(a.ac[y][x]=ut;lt===Ef&&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=Ef,ut=Qp;for(a.ac[y][x]=ut;lt===Ef&&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(Up(a,rt,st)){rt-=a.Nd,rt/=a.rc,st-=a.Od,st/=a.sc;var lt=b.x,ut=b.y;if(Up(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]===Ef?(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]===Ef?(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=nr(),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=Ig,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 zd(a,rt,st,1,!1,z,y,dt,St),zd(a,rt,st,-1,!1,z,y,dt,St),zd(a,rt,st,1,!0,z,y,dt,St),zd(a,rt,st,-1,!0,z,y,dt,St);yr(x)}}}}function h1(a,y,x,b,E,z,tt){for(var rt=a.ac,st=y,lt=x;;){if(st===E&<===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++}}}he.Object.defineProperties(P0.prototype,{bounds:{get:function(){return new Nn(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 Ef=0,Ig=1,Qp=999999,Ov=Qp+1,Dv=Qp+2;P0.className="PositionArray";function sp(){Go(this),this.port=this.node=null,this.pe=[],this.ap=!1}sp.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}sp.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 Xr?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(Ya,oe.alloc()),st=a.port.ga(Kl,oe.alloc());for(E=Nn.allocAt(rt.x,rt.y,0,0),E.Ye(st),oe.free(rt),oe.free(st),rt=oe.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()&<.fromPort!==lt.toPort){var ut=lt.fromPort===a.port||lt.fromNode!==null&<.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(oe.free(rt),a.pe.sort(sp.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=oe.alloc(),st=oe.alloc(),tt=oe.alloc(),lt=oe.alloc(),dt.ga(Ya,rt),dt.ga($u,st),dt.ga(Kl,tt),dt.ga(Ta,lt),Et=St=ut=dt=0,b===bv)for(var kt=0;kt<z.length;kt++){var _t=z[kt];if(_t!==null){var Ae=_t.link.computeThickness();switch(_t.Nc){case 8:St+=Ae;break;case 2:Et+=Ae;break;case 1:dt+=Ae;break;default:case 4:ut+=Ae}}}var re=kt=0,we=1,Pe=_t=0;for(Ae=0;Ae<z.length;Ae++){var Ee=z[Ae];if(Ee!==null){if(kt!==Ee.Nc){switch(kt=Ee.Nc,kt){case 8:var Ve=tt;re=lt;break;case 2:Ve=lt,re=rt;break;case 1:Ve=rt,re=st;break;default:case 4:Ve=st,re=tt}switch(_t=re.x-Ve.x,Pe=re.y-Ve.y,kt){case 8:St>Math.abs(_t)?(we=Math.abs(_t)/St,St=Math.abs(_t)):we=1;break;case 2:Et>Math.abs(Pe)?(we=Math.abs(Pe)/Et,Et=Math.abs(Pe)):we=1;break;case 1:dt>Math.abs(_t)?(we=Math.abs(_t)/dt,dt=Math.abs(_t)):we=1;break;default:case 4:ut>Math.abs(Pe)?(we=Math.abs(Pe)/ut,ut=Math.abs(Pe)):we=1}re=0}var fn=Ee.Zo;if(b===bv){switch(Ee=Ee.link.computeThickness(),Ee*=we,fn.set(Ve),kt){case 8:fn.x=Ve.x+_t/2+St/2-re-Ee/2;break;case 2:fn.y=Ve.y+Pe/2+Et/2-re-Ee/2;break;case 1:fn.x=Ve.x+_t/2-dt/2+re+Ee/2;break;default:case 4:fn.y=Ve.y+Pe/2-ut/2+re+Ee/2}re+=Ee}else{var Oi=.5;b===um&&(Oi=(Ee.Uo+1)/(Ee.Gl+1)),fn.x=Ve.x+_t*Oi,fn.y=Ve.y+Pe*Oi}}}for(oe.free(rt),oe.free(st),oe.free(tt),oe.free(lt),Ve=a.pe,z=0;z<Ve.length;z++)b=Ve[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Nn.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}sp.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},sp.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,ba,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)},sp.className="Knot";function jv(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new oe,this.Gl=this.Uo=0,this.Zo=new oe,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 aa(a){Go(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new oe(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}aa.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},aa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},aa.prototype.qb=function(){},aa.prototype.toString=function(){var a=ar(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},aa.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())}}},aa.prototype.createNetwork=function(){return new Us(this)},aa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof un?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Xr?y.lg(a.memberParts):y.lg(a.iterator),y},aa.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")}},aa.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()}},aa.prototype.doLayout=function(a){var y=new qn;a instanceof un?(ig(this,y,a.nodes,!0,this.rh,!0,!1,!0),ig(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Xr?ig(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},aa.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;b0(rt);var st=rt.measuredBounds,lt=st.width;st=st.height,rt.moveTo(b,E),rt instanceof Xr&&(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++}},aa.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 yi)&&(b0(rt),this.rh(rt))){var st=rt.measuredBounds,lt=st.width;st=st.height,rt.moveTo(x,b),rt instanceof Xr&&(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++}}},aa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Xr&&a.rh)};function ig(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 Hi?st.isLinkLabel||(st instanceof Xr&&st.layout===null?ig(a,y,st.memberParts,!1,E,z,tt,rt):(b0(st),y.add(st))):tt&&st instanceof yi?y.add(st):!rt||!st.Zc()||st instanceof Hi||(b0(st),y.add(st)))}}function b0(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}aa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Nn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},aa.prototype.ex=function(a){var y=new qn;return a instanceof un?(ig(this,y,a.nodes,!0,null,!0,!0,!0),ig(this,y,a.links,!0,null,!0,!0,!0),ig(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Xr?ig(this,y,a.memberParts,!1,null,!0,!0,!0):ig(this,y,a.iterator,!1,null,!0,!0,!0),y},aa.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(Ya),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},he.Object.defineProperties(aa.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())}}}),aa.prototype.collectParts=aa.prototype.ex,aa.prototype.getLayoutBounds=aa.prototype.ni,aa.prototype.invalidateLayout=aa.prototype.C,aa.className="Layout";function Us(a){Go(this),this.Sc=a,this.wf=new qn,this.ye=new qn,this.Es=new Zi,this.zs=new Zi}Us.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 qn,this.ye=new qn,this.Es=new Zi,this.zs=new Zi},Us.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},Us.prototype.createVertex=function(){return new El(this)},Us.prototype.createEdge=function(){return new Jh(this)},Us.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 Hi)return!tt.isLinkLabel;if(tt instanceof yi){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 Hi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Xr&&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 yi&&(!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))}}},Us.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=Us.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=nr(),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]);yr(a)},Us.prototype.deleteArtificialVertexes=function(){for(var a=nr(),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=nr(),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]);yr(a),yr(y)};function Mw(a){for(var y=nr(),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]);yr(y)}Us.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Mw(this),this.Ko()),a=new ni;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))}}Us.prototype.dz=function(){for(var a=new qn,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},he.Object.defineProperties(Us.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}}}),Us.prototype.findAllParts=Us.prototype.dz,Us.prototype.splitIntoSubNetworks=Us.prototype.Zx,Us.prototype.deleteSelfEdges=Us.prototype.Ko,Us.prototype.reverseEdge=Us.prototype.gm,Us.prototype.linkVertexes=Us.prototype.Zj,Us.prototype.findEdge=Us.prototype.Lo,Us.prototype.deleteLink=Us.prototype.Yy,Us.prototype.deleteEdge=Us.prototype.Mj,Us.prototype.addLink=Us.prototype.Dy,Us.prototype.addEdge=Us.prototype.Bo,Us.prototype.findVertex=Us.prototype.ki,Us.prototype.deleteNode=Us.prototype.Zy,Us.prototype.deleteVertex=Us.prototype.Iu,Us.prototype.addNode=Us.prototype.Bl,Us.prototype.addVertex=Us.prototype.dh,Us.prototype.addParts=Us.prototype.lg,Us.className="LayoutNetwork";function El(a){Go(this),this.ob=a,this.j=new Nn(0,0,10,10).freeze(),this.o=new oe(5,5).freeze(),this.Sh=this.ub=null,this.tg=new ni,this.mg=new ni}El.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new ni,this.mg=new ni},El.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+qo(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},El.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;wn(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 Xr)){x=Nn.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)),Nn.free(x);return}Nn.free(x)}a.moveTo(y.x,y.y)}},El.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},El.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},El.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},El.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}he.Object.defineProperties(El.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=Nn.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),Nn.free(x),!(a instanceof Xr)&&(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 qn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new qn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new qn,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 ni,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}}}),El.prototype.deleteDestinationEdge=El.prototype.Jl,El.prototype.addDestinationEdge=El.prototype.zl,El.prototype.deleteSourceEdge=El.prototype.Kl,El.prototype.addSourceEdge=El.prototype.Cl,El.className="LayoutVertex",El.standardComparer=Hv,El.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 Jh(a){Go(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Jh.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Jh.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+qo(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},Jh.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Jh.prototype.commit=function(){},Jh.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},he.Object.defineProperties(Jh.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)}}}),Jh.prototype.getOtherVertex=Jh.prototype.Ax,Jh.className="LayoutEdge";function uu(a){aa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Li(NaN,NaN).freeze(),this.tf=new Li(10,10).freeze(),this.Jb=L0,this.Rb=Bm,this.nd=F0,this.hd=d1,a&&Object.assign(this,a)}nn(uu,aa),uu.prototype.cloneProtected=function(a){aa.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},uu.prototype.qb=function(a){a.classType===uu?a===F0||a===Pm||a===zv||a===Cm?this.sorting=a:a===Bm||a===_c?this.arrangement=a:a===L0||a===xm?this.alignment=a:Fe("Unknown enum value: "+a):aa.prototype.qb.call(this,a)},uu.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 Xr)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 F0: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=Nn.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 kt=Et=this.arrangementOrigin.x,_t=this.arrangementOrigin.y,Ae=0,re=0,we=0;we<E.length;we++){var Pe=E[we],Ee=this.ni(Pe,lt),Ve=Math.ceil((Ee.width+rt)/ut)*ut,fn=Math.ceil((Ee.height+st)/dt)*dt;switch(St){case _c:var Oi=Math.abs(kt-Ee.width);break;default:Oi=kt+Ee.width}switch((0<z&&Ae>z-1||0<tt&&0<Ae&&Oi-Et>tt)&&(b.push(new Nn(0,_t,tt+rt,re)),Ae=0,kt=Et,_t+=re,re=0),re=Math.max(re,fn),St){case _c:Ee=-Ee.width;break;default:Ee=0}switch(Pe.moveTo(kt+Ee,_t),St){case _c:kt-=Ve;break;default:kt+=Ve}Ae++}b.push(new Nn(0,_t,tt+rt,re)),Nn.free(lt);break;case L0:for(st=tt,ut=z,dt=y,St=x,tt=Nn.alloc(),Et=Math.max(this.cellSize.width,1),z=_t=lt=0,rt=oe.alloc(),kt=0;kt<E.length;kt++)re=E[kt],Ae=this.ni(re,tt),re=Pf(re,re.locationObject,re.locationSpot,rt),lt=Math.max(lt,re.x),_t=Math.max(_t,Ae.width-re.x),z=Math.max(z,re.y);switch(kt=this.arrangement,kt){case _c:lt+=dt;break;default:_t+=dt}Et=isFinite(Et)?Math.max(Et+dt,1):Math.max(lt+_t,1);var Ji=re=this.arrangementOrigin.x;for(we=this.arrangementOrigin.y,_t=0,st>=lt&&(st-=lt),lt=Pe=0,Ve=Math.max(this.cellSize.height,1),Ee=z=0,fn=!0,Ae=oe.alloc(),Oi=0;Oi<E.length;Oi++){var Vi=E[Oi],vi=this.ni(Vi,tt),ti=Pf(Vi,Vi.locationObject,Vi.locationSpot,rt);if(0<_t)switch(kt){case _c:Ji=(Ji-re-(vi.width-ti.x))/Et,Ji=Je.$(Math.round(Ji),Ji)?Math.round(Ji):Math.floor(Ji),Ji=Ji*Et+re;break;default:Ji=(Ji-re+ti.x)/Et,Ji=Je.$(Math.round(Ji),Ji)?Math.round(Ji):Math.ceil(Ji),Ji=Ji*Et+re}else switch(kt){case _c:Pe=Ji+ti.x+vi.width;break;default:Pe=Ji-ti.x}switch(kt){case _c:var Gr=-(Ji+ti.x)+Pe;break;default:Gr=Ji+vi.width-ti.x-Pe}if(0<ut&&_t>ut-1||0<st&&0<_t&&Gr>st){for(b.push(new Nn(0,fn?we-z:we,st+dt,Ee+z+St)),Ji=0;Ji<_t&&Oi!==_t;Ji++){Gr=E[Oi-_t+Ji];var kr=Pf(Gr,Gr.locationObject,Gr.locationSpot,Ae);Gr.moveTo(Gr.position.x,Gr.position.y+z-kr.y)}Ee+=St,we=fn?we+Ee:we+(Ee+z),_t=Ee=z=0,Ji=re,fn=!1}switch(Ji===re&&(lt=kt===_c?Math.max(lt,vi.width-ti.x):Math.min(lt,-ti.x)),z=Math.max(z,ti.y),Ee=Math.max(Ee,vi.height-ti.y),isFinite(Ve)&&(Ee=Math.max(Ee,Math.max(vi.height,Ve)-ti.y)),fn?Vi.moveTo(Ji-ti.x,we-ti.y):Vi.moveTo(Ji-ti.x,we),kt){case _c:Ji-=ti.x+dt;break;default:Ji+=vi.width-ti.x+dt}_t++}if(b.push(new Nn(0,we,st+dt,(fn?Ee:Ee+z)+St)),E.length!==_t)for(st=0;st<_t;st++)ut=E[E.length-_t+st],dt=Pf(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-dt.y);if(oe.free(rt),oe.free(Ae),kt===_c)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);Nn.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===_c?this.commitLayers(b,new oe(E+y/2-(z+E),tt-x/2)):this.commitLayers(b,new oe(E-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},uu.prototype.commitLayers=function(){};function d1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}he.Object.defineProperties(uu.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!==L0&&a!==xm||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Bm&&a!==_c||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==zv&&a!==Cm&&a!==F0&&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(uu,"Position",0),L0=new zn(uu,"Location",1),Bm=new zn(uu,"LeftToRight",2),_c=new zn(uu,"RightToLeft",3),zv=new zn(uu,"Forward",4),Cm=new zn(uu,"Reverse",5),F0=new zn(uu,"Ascending",6),Pm=new zn(uu,"Descending",7);uu.className="GridLayout",uu.standardComparer=d1,uu.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},uu.Position=xm,uu.Location=L0,uu.LeftToRight=Bm,uu.RightToLeft=_c,uu.Forward=zv,uu.Reverse=Cm,uu.Ascending=F0,uu.Descending=Pm;function ps(){this.On=new qn,this.Dn=new qn,this.Pa=new qn,this.cf=new Zi,this.bf=new Zi,this.aj=new Zi,this.H=null,this.tp=!1}jt=ps.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 Hi){if(this.On.add(a),a instanceof Xr){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 yi?this.Dn.add(a):a instanceof ts||this.Pa.add(a);y=a.data,y===null||a instanceof ts||(a instanceof yi?this.bf.add(y,a):this.cf.add(y,a))},jt.pc=function(a){if(a.Ej(),a instanceof Hi){if(this.On.remove(a),a instanceof Xr){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 yi?this.Dn.remove(a):a instanceof ts||this.Pa.remove(a);y=a.data,y===null||a instanceof ts||(a instanceof yi?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 Xr)&&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 Xr||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 yi||Fe('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=nr(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=nr(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=nr(),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]);yr(y),yr(x),yr(a)}},ps.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ps.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&&ld(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&&(pl(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)}}ps.prototype.insertLink=function(){return null},ps.prototype.resolveReferencesForData=function(){},ps.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,lr('No Group template found for category "'+x+'"'),lr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(m1||(m1=!0,lr('No Node template found for category "'+x+'"'),lr(" Using default node template")),y=a.ny))),y}ps.prototype.getLinkCategoryForData=function(){return""},ps.prototype.setLinkCategoryForData=function(){},ps.prototype.setFromNodeForLink=function(){},ps.prototype.setToNodeForLink=function(){},ps.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,lr('No Link template found for category "'+a+'"'),lr(" Using default link template")),x=y.my)),x},ps.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ps.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},ps.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Id(this.diagram,a,!1),this.unresolveReferencesForPart(a))},ps.prototype.unresolveReferencesForPart=function(){},ps.prototype.removeDataForLink=function(){},ps.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},ps.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Hi?a:null)},ps.prototype.findLinkForKey=function(){return null},jt=ps.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 Hi?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 qn;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(wn(tt)&&_v(this,E,tt)){y.add(b);break}}}return y.iterator},jt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new qn;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(wn(tt)&&_v(this,E,tt)){y.add(b);break}}}return y.iterator};function _v(a,y,x){for(var b in x){var E=y[b],z=x[b];if(Jn(z)){if(!Jn(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(wn(y)&&wn(x)){if(!_v(a,y,x))return!1}else if(y!==x)return!1;return!0}ps.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===$s){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===Oa){var tt=a.newValue;b==="nodeDataArray"&&wn(tt)&&f1(this,tt),y.isModified=!0}else if(x===Ja){var rt=a.oldValue;b==="nodeDataArray"&&wn(rt)&&this.ip(rt),y.isModified=!0}else x===Pu&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===$s){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===Oa||x===Ja){var ut=a.change===Oa,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 kt=Et[a];if(ut)md(kt,St,dt,!0);else if(!(0>dt)){var _t=dt+pd(kt);kt.pc(_t,!0),xu(kt,_t,dt)}}y.isModified=!0}}finally{y.aa=!0}}}}},ps.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)},ps.prototype.rp=function(){for(var a=this.H.model,y=new qn,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()},ps.prototype.refreshDataBoundLinks=function(){},ps.prototype.updateRelationshipsFromData=function(){},ps.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=nr()),x.push(tt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);yr(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Gv(a,y){var x=y.Hh;if(Jn(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){ya(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(Jn(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}}}}ps.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Zi;if(Jn(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 qn;for(var z=new Zi,tt=b.iterator;tt.next();){var rt=tt.value;if(rt instanceof yi)a||rt.fromNode!==null&&rt.toNode!==null||E.add(rt);else if(rt instanceof Hi&&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 Zi;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 xr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Hi){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 Xr&&z instanceof Xr)for(y=y.memberParts;y.next();)tt=bm(a,y.value,x,b,E),tt instanceof yi||tt===null||(tt.containingGroup=z)}else if(y instanceof yi&&z instanceof yi)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 Hi&&(tt.labeledLink=z);return z}ps.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof yi||(b=E.copyNodeData(b),wn(b)&&(E.xf(b),x=y.Lc(b)))}else pl(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 yi||(E=y.copyNodeData(b)),wn(E)&&(x.data=E)));return x},he.Object.defineProperties(ps.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}}}),ps.prototype.updateAllRelationshipsFromData=ps.prototype.rp,ps.prototype.findLinksByExample=ps.prototype.ls,ps.prototype.findNodesByExample=ps.prototype.ms,ps.prototype.findLinkForData=ps.prototype.Kc,ps.prototype.findNodeForData=ps.prototype.ii,ps.prototype.findPartForData=ps.prototype.Lc,ps.prototype.findNodeForKey=ps.prototype.Vb,ps.prototype.removeModeledPart=ps.prototype.ip,ps.prototype.removeModeledParts=ps.prototype.Gs,ps.prototype.rebuildParts=ps.prototype.Wd;var m1=!1,v1=!1,y1=!1;ps.className="PartManager";function Zl(a){ps.apply(this,arguments)}nn(Zl,ps),Zl.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),w1(this,a.linkDataArray)},Zl.prototype.addModeledParts=function(a){for(ps.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Op(a.value);ld(this.diagram,!1)};function w1(a,y){y.forEach(function(x){S1(a,x)}),ld(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){pl(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 Hi&&(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 Hi&&(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}}}}Zl.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)})}Zl.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Zl.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Zl.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Zl.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Zl.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Zl.prototype.findPartForKey=function(a){var y=ps.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Zl.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Zl.prototype.doModelChanged=function(a){var y=this;if(ps.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===$s){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 kt=a.newValue;if(kt!==void 0){var _t=this.Vb(kt);_t instanceof Xr?Et.containingGroup=_t:Et.containingGroup=null}else Et.containingGroup=null}}else if(E==="linkLabelKeys"){var Ae=this.Kc(a.object);if(Ae!==null){var re=a.oldValue,we=a.newValue;Array.isArray(re)&&re.forEach(function(ti){0<=we.indexOf(ti)||(ti=y.Vb(ti),ti!==null&&(ti.labeledLink=null))}),Array.isArray(we)&&we.forEach(function(ti){ti=y.Vb(ti),ti!==null&&(ti.labeledLink=Ae)})}}else if(E==="linkCategory"){var Pe=this.Kc(a.object),Ee=a.newValue;Pe!==null&&typeof Ee=="string"&&(Pe.category=Ee)}else E==="linkDataArray"&&(x1(this,a.oldValue),w1(this,a.newValue));x.isModified=!0}else if(b===Oa){var Ve=a.newValue;if(E==="linkDataArray"&&typeof Ve=="object"&&Ve!==null)S1(this,Ve);else if(E==="linkLabelKeys"&&og(Ve)){var fn=this.Kc(a.object),Oi=this.Vb(Ve);fn!==null&&Oi!==null&&(Oi.labeledLink=fn)}x.isModified=!0}else if(b===Ja){var Ji=a.oldValue;if(E==="linkDataArray"&&typeof Ji=="object"&&Ji!==null)this.ip(Ji);else if(E==="linkLabelKeys"&&og(Ji)){var Vi=this.Vb(Ji);Vi!==null&&(Vi.labeledLink=null)}x.isModified=!0}}else if(b===$s){var vi=a.propertyName;a.object!==x.model||vi!=="linkFromKeyProperty"&&vi!=="linkToKeyProperty"&&vi!=="linkFromPortIdProperty"&&vi!=="linkToPortIdProperty"&&vi!=="linkLabelKeysProperty"&&vi!=="nodeIsGroupProperty"&&vi!=="nodeGroupKeyProperty"&&vi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Zl.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new qn,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){k1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&T1(y,z,!1)})},Zl.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 yi){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 qn().addAll(y);var tt=new qn;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 ts)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Xr)&&(a.containingGroup=y)}}},Zl.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=E0(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 Xr&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=E)):(z.link=this.Kc(tt),z.link!==null&&E instanceof Hi&&(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}}Kc(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Xr&&(E.containingGroup=a))}},Zl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Hi){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Gc(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Gc(y,x,b.data)),a instanceof Xr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Gc(y,x,b)}}},Zl.prototype.copyPartData=function(a,y){var x=ps.prototype.copyPartData.call(this,a,y);if(a instanceof yi)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},Zl.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 yi){if(pl(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 Hi&&(pl(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&&Hp(z,b,z.wa(a.data),!0),zp(z,b,rt,!0),x!==null&&Hp(z,b,z.wa(x.data),!1),zp(z,b,y,!1),z.fi(b),a=tt.archetypeLabelNodeData,a===null||a instanceof Hi||(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},Zl.prototype.findLinkForKey=Zl.prototype.findLinkForKey,Zl.prototype.findPartForKey=Zl.prototype.findPartForKey,Zl.prototype.removeAllModeledParts=Zl.prototype.removeAllModeledParts,Zl.prototype.addModeledParts=Zl.prototype.addModeledParts,Zl.prototype.addAllModeledParts=Zl.prototype.addAllModeledParts,Zl.className="GraphLinksPartManager";function UA(){ps.apply(this,arguments),this.Sg=null}nn(UA,ps);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||!fr(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(pl(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}}}UA.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},UA.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},UA.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}},UA.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))},UA.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},UA.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},UA.prototype.doModelChanged=function(a){if(ps.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===$s){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===$s){var dt=a.propertyName;a.object===y.model&&dt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},UA.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Hi&&(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&&Id(x,b,!1)))}}},UA.prototype.updateDataBindings=function(a,y){ps.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},UA.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=E0(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 Hi&&y.mh(z)===x&&Lm(this,E,this.ii(z))}Kc(y,x)}a=y.mh(a),a!==void 0&&E instanceof Hi&&(a=this.Vb(a),Lm(this,a,E))}},UA.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Hi){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(Ja,"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)&&Gc(y,x,E)}},UA.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},UA.prototype.findLinkForKey=UA.prototype.findLinkForKey,UA.className="TreePartManager";function ur(a,y){this.kl=new qn,this.il=new qn,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Go(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Zi,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 Zi,this.Lt=new ni,this.Wg=!1,this.o=null,this.undoManager=new wt,a!==void 0&&(Jn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ur.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},ur.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ur.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},ur.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)+":"+Er(E)}}return y},ur.prototype.xA=function(a){a.change!==Pu&&Fe("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof vl?(C1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},ur.prototype.Qv=function(a,y){var x=this,b=!1,E=new qn,z=new qn,tt=new qn,rt=this.vh;a.changes.each(function(dt){dt.model===x&&(dt.modelChange==="nodeDataArray"?dt.change===Oa?E.add(dt.newValue):dt.change===Ja&&tt.add(dt.oldValue):x.lb(dt.object)?z.add(dt.object):dt.change!==$s||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 ur||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},ur.prototype.cloneDeep=function(a){return Rp(this,a,!0)};function Rp(a,y,x,b,E,z){function tt(dt,St){rt?(dt.__gohashid===void 0&&z.push(dt),b.set(dt,St)):(dt=ea++,b.set(dt,St),E.set(dt,y))}if(!wn(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(b||(b=new Zi),rt){var st=b.get(y);if(st)return st}else for(E||(E=new Zi),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(Rp(a,y[ut],!1,b,E,z))}else if(y instanceof oe||y instanceof Li||y instanceof Nn||y instanceof Sr||y instanceof $i)st=y.copy(),tt(y,st);else{if(y instanceof us||y instanceof Bi||y instanceof zn)return y;if(y instanceof ni)st=new ni().addAll(Rp(a,y.Fa(),!1,b,E,z)),tt(y,st);else if(y instanceof qn)st=new qn().addAll(Rp(a,y.Fa(),!1,b,E,z)),tt(y,st);else if(y instanceof Zi)st=new Zi().addAll(Rp(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]=Rp(a,y[ut],!1,b,E,z))}return x&&z.forEach(function(dt){delete dt.__gohashid}),st}jt=ur.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,wn(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": `+rg(this,this.nodeDataArray,!0)},jt.kv=function(a){B1(this,a),a=a.nodeDataArray,Jn(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 qn,tt.add(z),b.add(E,tt)):tt.add(z)}}var b=a.vh;b===null&&(b=new Zi,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===$s?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Oa||z===Ja)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function P1(a,y){for(var x=new qn,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(wn(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 qn,z=new qn,tt=new qn,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===Oa?E.add(ut.newValue):ut.change===Ja&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==$s||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 ur||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)+rg(this,st.Fa(),!0)),0<z.count&&(a+=this.jy+rg(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Wv:this.Yv)+rg(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 Zi;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!==Pu&&Fe("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof vl?(y===void 0&&(y=M0(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=M0(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=ye.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)},ur.constructGraphLinksModel=function(){return new ur},jt=ur.prototype,jt.dm=function(a){if(Jn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(wn(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(wn(a)){for(y in a)if(x=a[y],wn(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 ni,b=0;b<x.length/2;b++)E.add(new oe(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()):Jn(a)?rg(this,a):wn(a)?Wv(this,a):typeof a=="function"?"null":a.toString()};function rg(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new wr;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 uh(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Wv(a,y){var x=y;if(x instanceof oe)y={class:"go.Point",x:uh(x.x),y:uh(x.y)};else if(x instanceof Li)y={class:"go.Size",width:uh(x.width),height:uh(x.height)};else if(x instanceof Nn)y={class:"go.Rect",x:uh(x.x),y:uh(x.y),width:uh(x.width),height:uh(x.height)};else if(x instanceof Sr)y={class:"go.Margin",top:uh(x.top),right:uh(x.right),bottom:uh(x.bottom),left:uh(x.left)};else if(x instanceof $i)x.sb()?y={class:"go.Spot",x:uh(x.x),y:uh(x.y),offsetX:uh(x.offsetX),offsetY:uh(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof us){if(y={class:"go.Brush",type:x.type.name},x.type===Lt?y.color=x.color:(x.type===Wt||x.type===ie)&&(y.start=x.start,y.end=x.end,x.type===ie&&(x.startRadius!==0&&(y.startRadius=uh(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=uh(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 Bi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=uh(x.startX)),x.startY!==0&&(y.startY=uh(x.startY)),x.endX!==0&&(y.endX=uh(x.endX)),x.endY!==0&&(y.endY=uh(x.endY)),x.spot1.D(Ya)||(y.spot1=x.spot1),x.spot2.D(Kl)||(y.spot2=x.spot2),x.type===Bi.o&&(y.path=Bi.ia(x))):x instanceof zn&&(y={class:"go.EnumValue",classType:M0(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 ni){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 hh(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 oe(hh(a.x),hh(a.y));else if(y==="Size")x=new Li(hh(a.width),hh(a.height));else if(y==="Rect")x=new Nn(hh(a.x),hh(a.y),hh(a.width),hh(a.height));else if(y==="Margin")x=new Sr(hh(a.top),hh(a.right),hh(a.bottom),hh(a.left));else if(y==="Spot")typeof a.enum=="string"?x=td(a.enum):x=new $i(hh(a.x),hh(a.y),hh(a.offsetX),hh(a.offsetY));else if(y==="Brush"){if(x=new us,x.type=Gi(us,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof $i&&(x.start=a.start),a.end instanceof $i&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=hh(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=hh(a.endRadius)),a=a.colorStops,wn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Bi.parse(a.path):x=new Bi,x.type=Gi(Bi,a.type),typeof a.startX=="number"&&(x.startX=hh(a.startX)),typeof a.startY=="number"&&(x.startY=hh(a.startY)),typeof a.endX=="number"&&(x.endX=hh(a.endX)),typeof a.endY=="number"&&(x.endY=hh(a.endY)),a.spot1 instanceof $i&&(x.spot1=a.spot1),a.spot2 instanceof $i&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=Yv(b),typeof b=="function"&&(x=Gi(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){Sl(this,"",a,y,x,b,E,z,tt)},jt.g=function(a,y,x,b,E){Sl(this,"",$s,a,this,y,x,b,E)},jt.Fs=function(a,y,x,b,E,z){Sl(this,"",$s,y,a,x,b,E,z)};function Sl(a,y,x,b,E,z,tt,rt,st){rt===void 0&&(rt=null),st===void 0&&(st=null);var lt=new na;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)}ur.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===$s){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)),ra(x,b,E)}else a.change===Oa?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,wn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Tr(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&vr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Jn(b)&&a.propertyName&&(b=rl(a.object,a.propertyName)),Jn(b)&&typeof x=="number"&&(a=a.newValue,y?Tr(b,x):vr(b,x,a))):Fe("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ja?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,wn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&vr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Tr(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Jn(b)&&a.propertyName&&(b=rl(a.object,a.propertyName)),Jn(b)&&typeof x=="number"&&(a=a.oldValue,y?vr(b,x,a):Tr(b,x))):Fe("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Pu&&Fe("unknown ChangedEvent: "+a.toString())},ur.prototype.Ea=function(a){return this.undoManager.Ea(a)},ur.prototype.eb=function(a){return this.undoManager.eb(a)},ur.prototype.Kf=function(){return this.undoManager.Kf()},ur.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=ur.prototype,jt.La=function(a,y){y===void 0&&(y=""),Sl(this,"SourceChanged",Pu,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(og(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&&(ra(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Sl(this,"nodeKey",$s,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else ra(a,x,y)}};function og(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&&og(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))){ra(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;ra(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;ra(a,y,x)}}}}},jt.xf=function(a){a!==null&&(Ds(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,vr(a.Tc,b,y)),Sl(a,"nodeDataArray",Oa,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}jt.Fy=function(a){if(Jn(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;Tr(a.Tc,b)}Sl(a,"nodeDataArray",Ja,"nodeDataArray",a,y,null,b,null),a.qp(y)}jt.nA=function(a){if(Jn(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&&Jn(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=E0(this,a),a instanceof qn&&this.Vf.add(y,a))},jt.Lv=function(){},jt.fm=function(){},jt.em=function(){},jt.qp=function(){};function Gc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new qn,a.Vf.add(y,b)),b.add(x)}}function Kc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof qn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function E0(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof qn?a:null)}jt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},ur.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):Em(this,a,!0),wn(a)&&Go(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 Go(b),b}if(x&&wn(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=M0(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof ur||z instanceof wt||z instanceof vl||z instanceof na||(z=Em(a,z,!1)),ra(x,b,z)}return Go(x),x}return y instanceof oe||y instanceof Li||y instanceof Nn||y instanceof $i||y instanceof Sr?y.copy():y}ur.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 ze&&(E1=!0,lr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),lr(" Is that really your intent?"));var b=rl(a,y);b!==x&&(ra(a,y,x),this.Fs(a,y,b,x))},jt=ur.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),vr(a,y,x),Sl(this,"",Oa,"",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];Tr(a,y),Sl(this,"",Ja,"",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&&(ra(a,x,y),Sl(this,"nodeCategory",$s,x,a,b,y))}else ra(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 ur}function M0(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 M0(a,y.constructor);return typeof y}function Yv(a){return Fc[a]?Fc[a]:ye.go!==void 0&&ye.go[a]?ye.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 ra(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){}}he.Object.defineProperties(ur.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];wn(E)||Fe("Model.nodeDataArray must only contain Objects, not: "+E),Ds(E)}for(this.Tc=a,b=new ni,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(Sl(this,"nodeDataArray",$s,"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"}}}),ur.prototype.setCategoryForNodeData=ur.prototype.jm,ur.prototype.getCategoryForNodeData=ur.prototype.Ro,ur.prototype.removeArrayItem=ur.prototype.ov,ur.prototype.insertArrayItem=ur.prototype.ts,ur.prototype.addArrayItem=ur.prototype.Ay,ur.prototype.assignAllDataProperties=ur.prototype.Do,ur.prototype.set=ur.prototype.set,ur.prototype.clearUnresolvedReferences=ur.prototype.Qy,ur.prototype.mergeNodeDataArray=ur.prototype.$z,ur.prototype.removeNodeDataCollection=ur.prototype.nA,ur.prototype.removeNodeData=ur.prototype.cm,ur.prototype.addNodeDataCollection=ur.prototype.Fy,ur.prototype.addNodeData=ur.prototype.xf,ur.prototype.makeNodeDataKeyUnique=ur.prototype.$u,ur.prototype.findNodeDataForKey=ur.prototype.hc,ur.prototype.containsNodeData=ur.prototype.lb,ur.prototype.setKeyForNodeData=ur.prototype.km,ur.prototype.getKeyForNodeData=ur.prototype.wa,ur.prototype.updateTargetBindings=ur.prototype.La,ur.prototype.commit=ur.prototype.commit,ur.prototype.rollbackTransaction=ur.prototype.Kf,ur.prototype.commitTransaction=ur.prototype.eb,ur.prototype.startTransaction=ur.prototype.Ea,ur.prototype.raiseDataChanged=ur.prototype.Fs,ur.prototype.raiseChanged=ur.prototype.g,ur.prototype.raiseChangedEvent=ur.prototype.cb,ur.prototype.removeChangedListener=ur.prototype.ik,ur.prototype.addChangedListener=ur.prototype.Pe,ur.prototype.writeJsonValue=ur.prototype.sm,ur.prototype.replaceJsonObjects=ur.prototype.dm,ur.prototype.applyIncrementalJSON=ur.prototype.Ky,ur.prototype.applyIncrementalJson=ur.prototype.Zw,ur.prototype.toJSON=ur.prototype.toJSON,ur.prototype.toJson=ur.prototype.np,ur.prototype.toIncrementalJSON=ur.prototype.yA,ur.prototype.toIncrementalJson=ur.prototype.$x,ur.prototype.toIncrementalData=ur.prototype.xA,ur.prototype.clear=ur.prototype.clear;var E1=!1,Fc={};ur.className="Model",ur.fromJSON=ur.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=ye.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=ye[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof ur?y=a:Fe("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=ur.constructGraphLinksModel()),y.gp(x),y.kv(x),y},ur.safePropertyValue=rl,ur.safePropertySet=ra,Fc.Brush=us,Fc.ChangedEvent=na,Fc.Geometry=Bi,Fc.Margin=Sr,Fc.Panel=Tn,Fc.Point=oe,Fc.Rect=Nn,Fc.Size=Li,Fc.Spot=$i,Fc.Transaction=vl,Fc.UndoManager=wt;function al(a,y,x,b){Go(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=N0,this.wk=b),this.st=new qn}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=N0,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==="")lr("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!==""&&ra(a,x,z);else try{if(x!==""){var tt=E(z,a);ra(a,x,tt)}else E(z,a)}catch(rt){}}}},jt.sp=function(a,y,x,b){if(this.el===N0){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):ra(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):ra(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,kt=b.panel.itemArray;st.ov(kt,Et),st.ts(kt,Et,St)}}}catch(_t){}}finally{this.st.remove(a)}}}},he.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),N0=new zn(al,"TwoWay",2);al.className="Binding",al.parseEnum=function(a,y){return function(x){return x=Gi(a,x),x===null?y:x}},al.toString=Er,al.OneWay=N1,al.TwoWay=N0;function Vo(a,y,x){ur.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new qn,this.wb=new Zi,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&&(Jn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}nn(Vo,ur),Vo.constructGraphLinksModel=ur.constructGraphLinksModel,Vo.prototype.cloneProtected=function(a){ur.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=Vo.prototype,jt.clear=function(){ur.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)+":"+Er(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=ur.prototype.Qv.call(this,a,y),b=this,E=new qn,z=new qn,tt=new qn,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Oa?E.add(ut.newValue):ut.change===Ja&&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 ur||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=ur.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){ur.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=ur.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+rg(this,this.linkDataArray,!0);return a+y},jt.kv=function(a){ur.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 qn,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=ur.prototype.Pv.call(this,a,y),b=this,E=new qn,z=new qn,tt=new qn,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Oa?E.add(ut.newValue):ut.change===Ja&&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 ur||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)+rg(this,st.Fa(),!0)),0<z.count&&(a+=this.iy+rg(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Vv:this.Xv)+rg(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"),ur.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)},Vo.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===$s){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),ra(x,b,E);return}}else if(a.change===Oa){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,wn(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===Ja){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,wn(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}}ur.prototype.changeState.call(this,a,y)}},jt=Vo.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),ra(x,this.nodeKeyProperty,a),this.xf(x))}return a}},jt.yx=function(a){return BA(this,a,!0)},jt.wv=function(a,y){Hp(this,a,y,!0)},jt.Bx=function(a){return BA(this,a,!1)},jt.Bv=function(a,y){Hp(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(og(a))return a;Fe((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Hp(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&&(Kc(a,z,y),ra(y,E,x),a.hc(x)===null&&Gc(a,x,y),Sl(a,b?"linkFromKey":"linkToKey",$s,E,y,z,x),typeof E=="string"&&a.La(y,E))}else ra(y,E,x)}}jt.zx=function(a){return Mm(this,a,!0)},jt.xv=function(a,y){zp(this,a,y,!0)},jt.Cx=function(a){return Mm(this,a,!1)},jt.Cv=function(a,y){zp(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 zp(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&&(ra(y,E,x),Sl(a,b?"linkFromPortId":"linkToPortId",$s,E,y,z,x),typeof E=="string"&&a.La(y,E))}else ra(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++)Kc(this,b[z],a);for(ra(a,x,y),E=y.length,z=0;z<E;z++){var tt=y[z];this.hc(tt)===null&&Gc(this,tt,a)}Sl(this,"linkLabelKeys",$s,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else ra(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&&Gc(this,y,a),Sl(this,"linkLabelKeys",Oa,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)&&(Kc(this,y,a),Sl(this,"linkLabelKeys",Ja,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(og(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&&(ra(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Sl(this,"linkKey",$s,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ra(a,x,y)}},jt.jh=function(a){return a===null&&Fe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&og(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))){ra(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;ra(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ra(a,y,x)}}}}},jt.Jc=function(a){return a===null?!1:this.$f.contains(a)},jt.fi=function(a){a!==null&&(Ds(a),this.Jc(a)||T1(this,a,!0))};function T1(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)),Sl(a,"linkDataArray",Oa,"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&&k1(this,a,!0)};function k1(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(Sl(a,"linkDataArray",Ja,"linkDataArray",a,y,null,b,null),x=BA(a,y,!0),Kc(a,x,y),x=BA(a,y,!1),Kc(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Kc(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&&Jn(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&&Gc(a,x,y),x=BA(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Gc(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&&Gc(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),wn(a)&&(Go(a),this.lf!==""&&ra(a,this.lf,void 0),this.mf!==""&&ra(a,this.mf,void 0),this.je!==""&&ra(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(og(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&&(Kc(this,b,a),ra(a,x,y),this.hc(y)===null&&Gc(this,y,a),Sl(this,"nodeGroupKey",$s,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ra(a,x,y)}},Vo.prototype.copyNodeData=function(a){return a===null?null:(a=ur.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||rl(a,this.Je)===void 0||ra(a,this.Je,void 0),a)},Vo.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){Hp(this,a,x,!0);return}if(y===this.linkToKeyProperty){Hp(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){zp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){zp(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&&(ra(a,y,x),this.Fs(a,y,b,x))},jt=Vo.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){ur.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;ra(b,tt,z),Sl(this,"linkFromKey",$s,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)}if(BA(this,b,!1)===E&&(tt=this.mf,ra(b,tt,z),Sl(this,"linkToKey",$s,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,Sl(this,"linkLabelKeys",Oa,st,b,E,z,lt,lt))}},jt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;ra(a,b,x),Sl(this,"nodeGroupKey",$s,b,a,y,x),typeof b=="string"&&this.La(a,b)}},jt.Lv=function(){ur.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){ur.prototype.fm.call(this,a),a=this.wa(a);var y=E0(this,a);if(y!==null){var x=nr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Sl(this,"nodeGroupKey",$s,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(BA(this,b,!0)===a&&(E=this.lf,Sl(this,"linkFromKey",$s,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),BA(this,b,!1)===a&&(E=this.mf,Sl(this,"linkToKey",$s,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&&(Sl(this,"linkLabelKeys",Oa,tt,b,a,a,rt,rt),x.push(b))}for(y=0;y<x.length;y++)Kc(this,a,x[y]);yr(x)}},jt.em=function(a){ur.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Gc(this,y,a)},jt.qp=function(a){ur.prototype.qp.call(this,a);var y=this.lh(a);Kc(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)},Vo.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Vo.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&&(ra(a,x,y),Sl(this,"linkCategory",$s,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ra(a,x,y)}},Vo.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},jt=Vo.prototype,jt.lm=function(a,y){ur.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},he.Object.defineProperties(Vo.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];wn(E)||Fe("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Ds(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new ni,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 qn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Sl(this,"linkDataArray",$s,"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"}}}),Vo.prototype.setCategoryForLinkData=Vo.prototype.lp,Vo.prototype.getCategoryForLinkData=Vo.prototype.ps,Vo.prototype.assignAllDataProperties=Vo.prototype.Do,Vo.prototype.setGroupKeyForNodeData=Vo.prototype.mp,Vo.prototype.getGroupKeyForNodeData=Vo.prototype.lh,Vo.prototype.isGroupForNodeData=Vo.prototype.Yu,Vo.prototype.copyLinkData=Vo.prototype.Jo,Vo.prototype.mergeLinkDataArray=Vo.prototype.Zz,Vo.prototype.removeLinkDataCollection=Vo.prototype.lA,Vo.prototype.removeLinkData=Vo.prototype.bm,Vo.prototype.addLinkDataCollection=Vo.prototype.Ey,Vo.prototype.addLinkData=Vo.prototype.fi,Vo.prototype.containsLinkData=Vo.prototype.Jc,Vo.prototype.makeLinkDataKeyUnique=Vo.prototype.Bs,Vo.prototype.findLinkDataForKey=Vo.prototype.jh,Vo.prototype.setKeyForLinkData=Vo.prototype.Ks,Vo.prototype.getKeyForLinkData=Vo.prototype.Ac,Vo.prototype.removeLabelKeyForLinkData=Vo.prototype.Qx,Vo.prototype.addLabelKeyForLinkData=Vo.prototype.Bu,Vo.prototype.setLabelKeysForLinkData=Vo.prototype.Ls,Vo.prototype.getLabelKeysForLinkData=Vo.prototype.Ef,Vo.prototype.setToPortIdForLinkData=Vo.prototype.Cv,Vo.prototype.getToPortIdForLinkData=Vo.prototype.Cx,Vo.prototype.setFromPortIdForLinkData=Vo.prototype.xv,Vo.prototype.getFromPortIdForLinkData=Vo.prototype.zx,Vo.prototype.setToKeyForLinkData=Vo.prototype.Bv,Vo.prototype.getToKeyForLinkData=Vo.prototype.Bx,Vo.prototype.setFromKeyForLinkData=Vo.prototype.wv,Vo.prototype.getFromKeyForLinkData=Vo.prototype.yx,Vo.prototype.clear=Vo.prototype.clear;var Nm=Object.freeze([]);Vo.className="GraphLinksModel",Fc.GraphLinksModel=Vo,ur.constructGraphLinksModel=ur.constructGraphLinksModel=function(){return new Vo},ur.initDiagramModel=Vv=function(){return new Vo};function Ah(a,y){ur.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Jn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}nn(Ah,ur),Ah.constructGraphLinksModel=ur.constructGraphLinksModel,Ah.prototype.cloneProtected=function(a){ur.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},jt=Ah.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)+":"+Er(E)}}return y},jt.rm=function(){var a=ur.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){ur.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"),ur.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(og(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&&(Kc(this,b,a),ra(a,x,y),this.hc(y)===null&&Gc(this,y,a),Sl(this,"nodeParentKey",$s,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ra(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),"")},Ah.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Ah.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&&(ra(a,x,y),Sl(this,"parentLinkCategory",$s,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ra(a,x,y)}},Ah.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Ah.prototype.copyNodeData=function(a){return a===null?null:(a=ur.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||rl(a,this.Ke)===void 0||ra(a,this.Ke,void 0),a)},Ah.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&&(ra(a,y,x),this.Fs(a,y,b,x))},jt=Ah.prototype,jt.jp=function(a,y){ur.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;ra(a,b,x),Sl(this,"nodeParentKey",$s,b,a,y,x),typeof b=="string"&&this.La(a,b)}},jt.fm=function(a){ur.prototype.fm.call(this,a),a=this.wa(a);var y=E0(this,a);if(y!==null){var x=nr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Sl(this,"nodeParentKey",$s,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Kc(this,a,x[y]);yr(x)}},jt.em=function(a){ur.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Gc(this,y,a)},jt.qp=function(a){ur.prototype.qp.call(this,a);var y=this.mh(a);Kc(this,y,a)},jt.lm=function(a,y){ur.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},he.Object.defineProperties(Ah.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"}}}),Ah.prototype.setParentLinkCategoryForNodeData=Ah.prototype.Ms,Ah.prototype.getParentLinkCategoryForNodeData=Ah.prototype.ss,Ah.prototype.setParentKeyForNodeData=Ah.prototype.qe,Ah.prototype.getParentKeyForNodeData=Ah.prototype.mh,Ah.className="TreeModel",Fc.TreeModel=Ah;function wa(a){aa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Ec,this.Ti=0,this.Zv=new oe,this.Jp=this.me=0,this.Xr=new O0,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Ec,this.K=ch,this.nd=Gp,this.hd=Hv,this.tf=6,this.Nn=Um,a&&Object.assign(this,a)}nn(wa,aa),wa.prototype.cloneProtected=function(a){aa.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===km||a===Om||a===Gp?this.sorting=a:a===Tg||a===_p||a===ch||a===ag?this.direction=a:a===Mf||a===sg||a===Ec||a===Mc?this.arrangement=a:(a===ap||a===Um)&&(this.nodeDiameterFormula=a):aa.prototype.qb.call(this,a)},wa.prototype.createNetwork=function(){return new Kp(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 ni;y.addAll(a.iterator),a=new ni;var x=new ni,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===Mc&&st===ap?rt=Ec:rt===Mc&&st!==ap&&(rt=this.arrangement),(this.direction===Tg||this.direction===_p)&&this.sorting!==Gp){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===Mc&&a.reverse(),b=new ni,b.addAll(a),b.addAll(x)):(this.arrangement===Mc&&x.reverse(),b=new ni,b.addAll(x),b.addAll(a))}st=b.length;for(var Et=z=E=0;Et<b.length;Et++){var kt=dt+St*z*(this.direction===ch?1:-1)/st,_t=b.M(Et).diameter;isNaN(_t)&&(_t=lg(b.M(Et),kt)),360>St&&(Et===0||Et===b.length-1)&&(_t/=2),E+=_t,z++}if(isNaN(lt)||rt===Mc){if(isNaN(y)&&(y=6),rt!==Ec&&rt!==Mc){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)&&lg(Et,0),isNaN(E.diameter)&&lg(E,0),z=Math.max(z,(Et.diameter+E.diameter)/2);tt=z+y,rt===Mf?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!==Mc?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===Ec||rt===Mc)&&(y=(Et-E)/(360<=St?st:st-1));else if(rt===Ec||rt===Mc)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++)kt=b.M(E),_t=b.M(E===st-1?0:E+1),isNaN(kt.diameter)&&lg(kt,0),isNaN(_t.diameter)&&lg(_t,0),tt=Math.max(tt,(kt.diameter+_t.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!==_p||b!==Mc)if(this.direction===Tg||this.direction===_p){switch(tt=0,b){case sg:tt=180*Tm(this,rt,St,lt,st)/Math.PI;break;case Ec:st=y=0,tt=a.first(),tt!==null&&(y=lg(tt,Math.PI/2)),tt=x.first(),tt!==null&&(st=lg(tt,Math.PI/2)),tt=180*Tm(this,rt,St,lt,dt+(y+st)/2)/Math.PI;break;case Mf:tt=ut/y.length}if(this.direction===Tg){switch(b){case sg:k0(this,a,lt,ag);break;case Ec:T0(this,a,lt,ag);break;case Mf:I0(this,a,ut/2,lt,ag)}switch(b){case sg:k0(this,x,lt+tt,ch);break;case Ec:T0(this,x,lt+tt,ch);break;case Mf:I0(this,x,ut/2,lt+tt,ch)}}else{switch(b){case sg:k0(this,x,lt,ag);break;case Ec:T0(this,x,lt,ag);break;case Mf:I0(this,x,ut/2,lt,ag)}switch(b){case sg:k0(this,a,lt+tt,ch);break;case Ec:T0(this,a,lt+tt,ch);break;case Mf:I0(this,a,ut/2,lt+tt,ch)}}}else switch(b){case sg:k0(this,y,lt,this.direction);break;case Ec:T0(this,y,lt,this.direction);break;case Mf:I0(this,y,ut,lt,this.direction);break;case Mc:D1(this,y,ut,lt,this.direction)}else D1(this,y,ut,lt-ut/2,ch)}this.updateParts(),this.network=null,this.isValidLayout=!0};function I0(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===ch?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 T0(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)&&lg(lt,0),isNaN(ut.diameter)&&lg(ut,0),lt=Tm(a,E,z,b===ch?x:-x,(lt.diameter+ut.diameter)/2+tt),x+=b===ch?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=Tm(a,E,z,b===ch?x:-x,tt),x+=b===ch?lt:-lt}}function D1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new O0,360>x){for(z=b+(E===ch?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=oe.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(oe.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===ch?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=oe.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(oe.free(ut),a.mj++,!(23<a.mj)){if(st=Math.atan2(lt,st),st=E===ch?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===ch)){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===ch)){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 oe(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 Tm(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 km:break;case Om:a.reverse();break;case Dm:a.sort(this.comparer);break;case jm:a.sort(this.comparer),a.reverse();break;case Gp:return this.ak(Tw(a));default:Fe("Invalid sorting type.")}return a};function Tw(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new ni;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 ni;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=[],kt=0;kt<x.length;kt++)0>y[x[kt]].indexOf(x[kt===x.length-1?0:kt+1])&&Et.push(kt===x.length-1?0:kt+1);if(Et.length===0)for(kt=0;kt<x.length;kt++)Et.push(kt);for(kt=0;kt<Et.length;kt++){for(var _t=Et[kt],Ae=y[lt],re=0,we=0;we<tt.length;we++){var Pe=z[tt[we]],Ee=z[rt[we]];if(Pe<Ee){var Ve=Pe;Pe=Ee}else Ve=Ee;if(Ve<_t&&_t<=Pe)for(Ee=0;Ee<Ae.length;Ee++){var fn=Ae[Ee];0>x.indexOf(fn)||Ve<z[fn]&&z[fn]<Pe||Ve===z[fn]||Pe===z[fn]||re++}else for(Ee=0;Ee<Ae.length;Ee++)fn=Ae[Ee],0>x.indexOf(fn)||Ve<z[fn]&&z[fn]<Pe&&Ve!==z[fn]&&Pe!==z[fn]&&re++}for(Ae=re,we=re=0;we<y[lt].length;we++)Ve=x.indexOf(y[lt][we]),0<=Ve&&(Ve=Math.abs(_t-(Ve>=_t?Ve+1:Ve)),re+=Ve<x.length+1-Ve?Ve:x.length+1-Ve);for(we=0;we<tt.length;we++)Ve=z[tt[we]],Pe=z[rt[we]],Ve>=_t&&Ve++,Pe>=_t&&Pe++,Ve>Pe&&(Ee=Pe,Pe=Ve,Ve=Ee),Pe-Ve<(x.length+2)/2==(Ve<_t&&_t<=Pe)&&re++;(Ae<ut||Ae===ut&&re<dt)&&(ut=Ae,dt=re,St=_t)}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||(kt=Et>ut?Et-ut:ut-Et,dt+=Et<ut!=kt>tt-kt?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},he.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!==Mc&&a!==Ec&&a!==sg&&a!==Mf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==ch&&a!==ag&&a!==Tg&&a!==_p||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==km&&a!==Om&&a!==Dm&&!jm&&a!==Gp||(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!==ap||(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 Ec=new zn(wa,"ConstantSpacing",0),sg=new zn(wa,"ConstantDistance",1),Mf=new zn(wa,"ConstantAngle",2),Mc=new zn(wa,"Packed",3),ch=new zn(wa,"Clockwise",4),ag=new zn(wa,"Counterclockwise",5),Tg=new zn(wa,"BidirectionalLeft",6),_p=new zn(wa,"BidirectionalRight",7),km=new zn(wa,"Forwards",8),Om=new zn(wa,"Reverse",9),Dm=new zn(wa,"Ascending",10),jm=new zn(wa,"Descending",11),Gp=new zn(wa,"Optimized",12),Um=new zn(wa,"Pythagorean",13),ap=new zn(wa,"Circular",14);wa.className="CircularLayout",wa.ConstantSpacing=Ec,wa.ConstantDistance=sg,wa.ConstantAngle=Mf,wa.Packed=Mc,wa.Clockwise=ch,wa.Counterclockwise=ag,wa.BidirectionalLeft=Tg,wa.BidirectionalRight=_p,wa.Forwards=km,wa.Reverse=Om,wa.Ascending=Dm,wa.Descending=jm,wa.Optimized=Gp,wa.Pythagorean=Um,wa.Circular=ap;function O0(){this.Pl=-1/0,this.tm=this.mk=null}O0.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},O0.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]}},O0.className="VertexArrangement";function Kp(a){Us.call(this,a)}nn(Kp,Us),Kp.prototype.createVertex=function(){return new D0(this)},Kp.prototype.createEdge=function(){return new Qm(this)},Kp.className="CircularNetwork";function D0(a){El.call(this,a),this.u=this.Si=NaN}nn(D0,El);function lg(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Mc)if(x.nodeDiameterFormula===ap)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===ap?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}he.Object.defineProperties(D0.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)}}}),D0.className="CircularVertex";function Qm(a){Jh.call(this,a)}nn(Qm,Jh),Qm.className="CircularEdge";function Bu(a){aa.call(this),this.ah=null,this.An=0,this.$d=new Li(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(Bu,aa),Bu.prototype.cloneProtected=function(a){aa.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},Bu.prototype.createNetwork=function(){return new lp(this)},Bu.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=nr(),ut=0;ut<rt+y.vertexes.count+2;ut++)lt[ut]=null;rt=0,tt.reset();for(var dt=Nn.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 oe(dt.x+dt.width+b.width,dt.y),lt[1]=new oe(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],kt=new oe(Et.x+dt.width+b.width,Et.y),_t=new oe(Et.x,Et.y+dt.height+b.height);for(St+1<rt&<.splice(St+1,0,null),lt[St]=kt,lt[St+1]=_t,rt++,St=Et.x-dt.x,Et=Et.y-dt.y,ut=ut.vertexes.iterator;ut.next();)kt=ut.value,kt.centerX+=St,kt.centerY+=Et}for(Nn.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 oe(St.x+St.width+b.width,St.y),lt[1]=new oe(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 oe(dt.x+St.width+b.width,dt.y),St=new oe(dt.x,dt.y+St.height+b.height),st+1<rt&<.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(yr(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)}}G1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Bu.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},Bu.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(kw(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),G1(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 kw(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 lp(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 ni),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 ni,E.Hj=rt),rt.add(tt),E.Vd--,E.sh+=tt.sh):tt.network===b&&(rt=tt.Hj,rt===null&&(rt=new ni,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 Nn(z-St.x-tt,st-St.y-rt,ut+2*tt,dt+2*rt),E.focus=new oe(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 Nn(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new oe(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,kt){return Et===null||kt===null||Et===kt?0:kt.width*kt.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}Bu.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Bu.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 _1(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 G1(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(_t,Ae){return _t===null||Ae===null||_t===Ae?0:_t.centerX-Ae.centerX}):y.sort(function(_t,Ae){return _t===null||Ae===null||_t===Ae?0:_t.centerY-Ae.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 kt=_1(tt,St);1>kt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new Rm),kt=b.random(),rt=b.random(),st>lt?(b=Math.abs(St.bounds.right-tt.bounds.x),b=(1+b)*kt):st<lt?(b=Math.abs(St.bounds.x-tt.bounds.right),b=-(1+b)*kt):(b=Math.max(St.width,tt.width),b=(1+b)*kt-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)/(kt*kt),b=(lt-st)/kt*rt,lt=(Et-ut)/kt*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=_1(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}Bu.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},Bu.prototype.moveFixedVertex=function(){},Bu.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Bu.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ss,y.toSpot=ss)}},Bu.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Nn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Nn.free(x)}x=Nn.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()}Nn.free(x)},Bu.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Bu.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Bu.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Bu.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Bu.prototype.electricalFieldX=function(){return 0},Bu.prototype.electricalFieldY=function(){return 0},Bu.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Bu.prototype.gravitationalFieldX=function(){return 0},Bu.prototype.gravitationalFieldY=function(){return 0},Bu.prototype.isFixed=function(a){return a.isFixed},he.Object.defineProperties(Bu.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())}}}),Bu.className="ForceDirectedLayout";function K1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}K1.className="ForceDirectedSubnet";function lp(a){Us.call(this,a)}nn(lp,Us),lp.prototype.createVertex=function(){return new j0(this)},lp.prototype.createEdge=function(){return new U0(this)},lp.className="ForceDirectedNetwork";function j0(a){El.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(j0,El),he.Object.defineProperties(j0.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)}}}),j0.className="ForceDirectedVertex";function U0(a){Jh.call(this,a),this.j=this.o=NaN}nn(U0,Jh),he.Object.defineProperties(U0.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)}}}),U0.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 ms(a){aa.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 oe,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}nn(ms,aa),ms.prototype.cloneProtected=function(a){aa.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},ms.prototype.qb=function(a){a.classType===ms?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):aa.prototype.qb.call(this,a)},ms.prototype.createNetwork=function(){return new Vp(this)},ms.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!==R0&&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===R0&&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 kt=E.focus;lt=z.focus;var _t=b.rev?z.bounds:E.bounds;Et=oe.alloc(),ut!==dt?_t.w()&&dt.isVisible()?dt.actualBounds.w()?(Pf(dt,St,bo,Et),Et.x+=dt.actualBounds.x-_t.x,Et.y+=dt.actualBounds.y-_t.y):(Pf(dt,St,bo,Et),Et.w()||Et.assign(kt)):Et.assign(kt):_t.w()?(Pf(dt,St,bo,Et),Et.w()||Et.assign(kt)):Et.assign(kt),dt=b.rev?E.bounds:z.bounds,ut=oe.alloc(),tt!==st?dt.w()&&st.isVisible()?st.actualBounds.w()?(Pf(st,rt,bo,ut),ut.x+=st.actualBounds.x-dt.x,ut.y+=st.actualBounds.y-dt.y):(Pf(st,rt,bo,ut),ut.w()||ut.assign(lt)):ut.assign(lt):dt.w()?(Pf(st,rt,bo,ut),ut.w()||ut.assign(lt)):ut.assign(lt),this.K===90||this.K===270?(tt=Math.round((Et.x-kt.x)/this.kc),st=Et.x,rt=Math.round((ut.x-lt.x)/this.kc),lt=ut.x):(tt=Math.round((Et.y-kt.y)/this.kc),st=Et.y,rt=Math.round((ut.y-lt.y)/this.kc),lt=ut.y),oe.free(Et),oe.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,_t=b.link,_t!==null){var Ae=_t.fromPort,re=_t.toPort;if(Ae!==null&&re!==null){var we=_t.fromNode;if(St=_t.toNode,we!==null&&St!==null){var Pe=Gm(this,!0),Ee=Gm(this,!1),Ve=this.setsPortSpots?Pe:_t.computeSpot(!0,Ae);kt=this.setsPortSpots?Ee:_t.computeSpot(!1,re);var fn=_t.isOrthogonal;Ve.$c()&&Ve.Hf(Ee)&&kt.$c()&&kt.Hf(Pe)?dt=0:(Pe=_t.getLinkPoint(we,Ae,Ve,!0,fn,St,re,oe.alloc()),Ee=_t.getLinkDirection(we,Ae,Pe,Ve,!0,fn,St,re),oe.free(Pe),Ve.ys()||Ee!==tw(this,b,!0)?this.setsPortSpots&&we!==null&&we.ports.count===1&&b.rev&&(dt+=1):dt+=1,Ve=_t.getLinkPoint(St,re,kt,!1,fn,we,Ae,oe.alloc()),_t=_t.getLinkDirection(St,re,Ve,kt,!1,fn,we,Ae),oe.free(Ve),kt.ys()||_t!==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)&&(kt=a.createVertex(),kt.node=null,kt.Dj=1,kt.layer=Et,kt.near=E,a.dh(kt),E=a.Zj(E,kt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=tt,E.portToColOffset=0,E.portFromPos=st,E.portToPos=0,E=kt),_t=1,dt&&_t--,Et-ut>_t&&0<Et){for(b.valid=!1,kt=a.createVertex(),kt.node=null,kt.Dj=2,kt.layer=Et-1,a.dh(kt),E=a.Zj(E,kt,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=kt,Et--;Et-ut>_t&&0<Et;)kt=a.createVertex(),kt.node=null,kt.Dj=3,kt.layer=Et-1,a.dh(kt),E=a.Zj(E,kt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=kt,Et--;E=a.Zj(kt,z,b.link),E.valid=!dt,dt&&(kt.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=ug(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),hg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},ms.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}ms.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},ms.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 Eh(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 QA(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=ug(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&<.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 kt=st[St];if(kt.valid&&kt.fromVertex.layer!==y){var _t=kt.fromVertex.index,Ae=kt.portToPos;kt=kt.portFromPos,ut<Ae&&(dt>_t||dt===_t&&Et>kt)&&rt++,Ae<ut&&(_t>dt||_t===dt&&kt>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++)kt=st[St],kt.valid&&kt.toVertex.layer!==y&&(_t=kt.toVertex.index,Ae=kt.portToPos,kt=kt.portFromPos,Et<kt&&(dt>_t||dt===_t&&ut>Ae)&&rt++,kt<Et&&(_t>dt||_t===dt&&Ae>ut)&&rt++)}for(z[tt*E+tt]=rt,st=tt+1;st<E;st++){var re=0,we=0;if(0<=x){rt=b[tt].sourceEdgesArrayAccess;var Pe=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<Pe.length;St++)kt=Pe[St],kt.valid&&kt.fromVertex.layer!==y&&(_t=kt.fromVertex.index,kt=kt.portFromPos,(dt<_t||dt===_t&&Et<kt)&&we++,(_t<dt||_t===dt&&kt<Et)&&re++)}if(0>=x){for(rt=b[tt].destinationEdgesArrayAccess,Pe=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<Pe.length;St++)kt=Pe[St],kt.valid&&kt.toVertex.layer!==y&&(_t=kt.toVertex.index,Ae=kt.portToPos,(dt<_t||dt===_t&&ut<Ae)&&we++,(_t<dt||_t===dt&&Ae<ut)&&re++)}z[tt*E+st]=re,z[st*E+tt]=we}}return hg(a,y,b),z}ms.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=ug(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)}}}hg(b,E,z),y+=rt}return y}ms.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=ug(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 hg(a,y,b),z}function V1(a,y,x){for(var b=ug(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(kt,_t){return kt-_t}),lt=ut>>1,z[tt]=ut&1?dt[lt]:dt[lt-1]+dt[lt]>>1)}return hg(a,y,b),z}function Q0(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&&Q0(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&&Q0(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)}}ms.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&<++;(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 R0: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++}ms.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&&Q0(a,rt,0,-1,!0,!1)}for(Q0(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 kt=St[Et],_t=kt.fromVertex;ut+=1,_t.component!==1&&(z+=1,_t=_t.layer-lt.layer,kt=a.linkMinLength(kt),b=Math.min(b,_t-kt))}for(St=lt.destinationEdgesArrayAccess,E=St.length,Et=0;Et<E;Et++)kt=St[Et].toVertex,--ut,kt.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(Q0(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++)kt=St[Et].fromVertex,lt+=1,kt.component!==1?b+=1:ut=!0;for(St=tt.destinationEdgesArrayAccess,dt=St.length,Et=0;Et<dt;Et++)kt=St[Et],_t=kt.toVertex,--lt,_t.component!==1&&(--b,_t=tt.layer-_t.layer,kt=a.linkMinLength(kt),E=Math.min(E,_t-kt));(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}ms.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))}ms.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Eh(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)zm(this,b,1),sc(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Eh(this)),b=this.Ia;0<=b;b--)zm(this,b,-1),sc(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Eh(this))}for(QA(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)zm(this,b,0),sc(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Eh(this)),b=this.Ia;0<=b;b--)zm(this,b,0),sc(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Eh(this))}QA(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=sc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=sc(this,b,1)||z;for(E=this.countCrossings(),E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=sc(this,b,1)||z;for(E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=sc(this,b,-1)||z;for(E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=sc(this,b,0)||z;for(E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=sc(this,b,0)||z;E>=a?QA(this,y):(a=E,y=Eh(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=sc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=sc(this,b,1)||z;for(E=this.countCrossings(),E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=sc(this,b,1)||z;for(E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=sc(this,b,-1)||z;for(E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=sc(this,b,0)||z;for(E>=a?QA(this,y):(a=E,y=Eh(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=sc(this,b,0)||z;E>=a?QA(this,y):(a=E,y=Eh(this))}}QA(this,y)};function zm(a,y,x){var b=ug(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);hg(a,y,b)}function sc(a,y,x){var b=ug(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,kt=b[z].column,_t=b[z+1].column,Ae=a.nodeMinColumnSpace(b[z],!0),re=a.nodeMinColumnSpace(b[z],!1),we=a.nodeMinColumnSpace(b[z+1],!0),Pe=a.nodeMinColumnSpace(b[z+1],!1);Ae=kt-Ae+we,re=_t-re+Pe;var Ee=b[z].sourceEdges.iterator;for(Ee.reset();Ee.next();)if(we=Ee.value,Pe=we.fromVertex,we.valid&&Pe.layer===y){for(we=0;b[we]!==Pe;)we++;we<z&&(St+=2*(z-we),Et+=2*(z+1-we)),we===z+1&&(St+=1),we>z+1&&(St+=4*(we-z),Et+=4*(we-(z+1)))}for(Ee=b[z].destinationEdges.iterator,Ee.reset();Ee.next();)if(we=Ee.value,Pe=we.toVertex,we.valid&&Pe.layer===y){for(we=0;b[we]!==Pe;)we++;we===z+1&&(Et+=1)}for(Ee=b[z+1].sourceEdges.iterator,Ee.reset();Ee.next();)if(we=Ee.value,Pe=we.fromVertex,we.valid&&Pe.layer===y){for(we=0;b[we]!==Pe;)we++;we<z&&(St+=2*(z+1-we),Et+=2*(z-we)),we===z&&(Et+=1),we>z+1&&(St+=4*(we-(z+1)),Et+=4*(we-z))}for(Ee=b[z+1].destinationEdges.iterator,Ee.reset();Ee.next();)if(we=Ee.value,Pe=we.toVertex,we.valid&&Pe.layer===y){for(we=0;b[we]!==Pe;)we++;we===z&&(St+=1)}we=Pe=0,Ee=tt[b[z].index];var Ve=rt[b[z].index],fn=tt[b[z+1].index],Oi=rt[b[z+1].index];Ee!==-1&&(Pe+=Math.abs(Ee-kt),we+=Math.abs(Ee-re)),Ve!==-1&&(Pe+=Math.abs(Ve-kt),we+=Math.abs(Ve-re)),fn!==-1&&(Pe+=Math.abs(fn-_t),we+=Math.abs(fn-Ae)),Oi!==-1&&(Pe+=Math.abs(Oi-_t),we+=Math.abs(Oi-Ae)),(Et<St-.5||Et===St&&dt<ut-.5||Et===St&&dt===ut&&we<Pe-.5)&&(lt=st=!0,b[z].column=re,b[z+1].column=Ae,ut=b[z],b[z]=b[z+1],b[z+1]=ut)}for(z=0;z<E;z++)b[z].index=z;return hg(a,y,b),st}ms.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=Wp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Wp(this,y,-1)||x;x=Wp(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=Wp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Wp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Wp(this,y,0)||x}}else _w(this)};function Wp(a,y,x){for(var b=!1;Rw(a,y,x);)b=!0;return b}function Rw(a,y,x){var b,E=ug(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 kt=St=0,_t=0;if(0>=x)for(var Ae=E[b].sourceEdges.iterator;Ae.next();){var re=Ae.value,we=re.fromVertex;if(re.valid&&we.layer!==y){var Pe=Jv(re),Ee=re.portFromColOffset;re=re.portToColOffset,we=we.column,St+=(Math.abs(ut+re-(we+Ee))+1)*Pe,kt+=(Math.abs(Et+re-(we+Ee))+1)*Pe,_t+=(Math.abs(dt+re-(we+Ee))+1)*Pe}}if(0<=x)for(Ae=E[b].destinationEdges.iterator;Ae.next();)re=Ae.value,we=re.toVertex,re.valid&&we.layer!==y&&(Pe=Jv(re),Ee=re.portFromColOffset,re=re.portToColOffset,we=we.column,St+=(Math.abs(ut+Ee-(we+re))+1)*Pe,kt+=(Math.abs(Et+Ee-(we+re))+1)*Pe,_t+=(Math.abs(dt+Ee-(we+re))+1)*Pe);re=Ee=Pe=0,Ae=tt[E[b].index],we=rt[E[b].index],Ae!==-1&&(Pe+=Math.abs(Ae-ut),Ee+=Math.abs(Ae-Et),re+=Math.abs(Ae-dt)),we!==-1&&(Pe+=Math.abs(we-ut),Ee+=Math.abs(we-Et),re+=Math.abs(we-dt)),kt<St||kt===St&&Ee<Pe?(lt=st=!0,E[b].column=Et):(_t<St||_t===St&&re<Pe)&&(lt=st=!0,E[b].column=dt)}return hg(a,y,E),a.normalize(),st}function ey(a,y,x){var b=ug(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)}hg(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=Eh(a),z=Hm(a);for(b=z+1;z<b;){b=z,rw(a,x,1);var tt=Hm(a);tt>z?QA(a,E):tt<z&&(z=tt,E=Eh(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Eh(a),z=Hm(a),b=z+1;z<b;)b=z,rw(a,x,-1),tt=Hm(a),tt>z?QA(a,E):tt<z&&(z=tt,E=Eh(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 _w(a){for(var y=nr(),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 qn,Gw(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=_m(a,y,!0,!1)),y.reverse(),dt&&(a.verticalAlignment(y,x,!1),rt=_m(a,y,!1,!1)),b=os(y),E=b.next();!E.done;E=b.next())E.value.reverse();St&&(a.verticalAlignment(y,x,!1),st=_m(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=_m(a,y,!0,!0)),yr(y),a.u(z,tt,rt,st),a.network.vertexes.each(function(Et){var kt=nr();lt&&kt.push(z.get(Et)),ut&&kt.push(tt.get(Et)),dt&&kt.push(rt.get(Et)),St&&kt.push(st.get(Et)),kt.sort(function(Ae,re){return Ae-re});var _t=kt.length;_t=(kt[Math.floor((_t-1)/2)]+kt[Math.ceil((_t-1)/2)])/2,yr(kt),Et.zc=_t})}function Gw(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=os(lt.sourceEdgesArrayAccess),Et=St.next();!Et.done;Et=St.next())Et=Et.value,Et.valid&&dt.push(Et);lt.bo=dt}for(lt=os(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}}}ms.prototype.verticalAlignment=function(a,y,x){Kw(a),a=os(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=os(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 _m(a,y,x,b){for(var E=a.K===90||a.K===270,z=os(y),tt=z.next();!tt.done;tt=z.next()){var rt=os(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=os(y),rt=z.next();!rt.done;rt=z.next()){rt=os(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 kt=Xm(ut,dt),_t=kt.portFromPos,Ae=kt.portToPos;kt.link!==null&&(ut.node&&ut.node!==kt.link.fromNode&&(_t=tt?ut.focusX:ut.focusY),dt.node&&dt.node!==kt.link.toNode&&(Ae=tt?dt.focusX:dt.focusY))}else kt=Xm(dt,ut),_t=kt.portToPos,Ae=kt.portFromPos,kt.link!==null&&(ut.node&&ut.node!==kt.link.toNode&&(_t=tt?ut.focusX:ut.focusY),dt.node&&dt.node!==kt.link.fromNode&&(Ae=tt?dt.focusX:dt.focusY));St=b?ut.qg+(St-_t)-(Et-Ae):ut.qg+_t-Ae,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=os(y),tt=x.next();!tt.done;tt=x.next())for(z=os(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 Zi,y=os(y),tt=y.next();!tt.done;tt=y.next())for(x=os(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]}ms.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=nr(),E=nr(),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)));yr(b),yr(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}ms.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Gm(this,!0),y=Gm(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 Gm(a,y){return a.K===270?y?pa:ol:a.K===90?y?ol:pa:a.K===180?y?Ws:xa:y?xa:Ws}ms.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 oe(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},ms.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 Nn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Nn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Nn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Nn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Nn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Nn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Nn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Nn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},ms.prototype.commitLayers=function(){},ms.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&<===ba&&(b=!0),rt!==null&&st===ba&&(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,kt=this.ie,_t=y.firstPickIndex+1;if(y.isOrthogonal){Et=!0;var Ae=y.pointsCount;4<Ae&&y.points.removeRange(2,Ae-3)}else if(y.curve===xA)St=!0,Ae=y.pointsCount,4<Ae&&y.points.removeRange(2,Ae-3),Ae===4&&(_t=2);else{Ae=y.pointsCount;var re=lt===ba,we=st===ba;2<Ae&&re&&we?y.points.removeRange(1,Ae-2):3<Ae&&re&&!we?y.points.removeRange(1,Ae-3):3<Ae&&!re&&we?y.points.removeRange(2,Ae-2):4<Ae&&!re&&!we&&y.points.removeRange(2,Ae-3)}if(x.rev){for(;dt!==null&&ut!==dt;){var Pe=Ae=null;for(re=dt.sourceEdges.iterator;re.next()&&(we=re.value,we.link!==x.link||(Ae=we.fromVertex,Pe=we.toVertex,Ae.node!==null)););if(Ae===null)break;if(Ae!==ut){re=y.i(_t-1).x,we=y.i(_t-1).y;var Ee=Ae.centerX,Ve=Ae.centerY;if(Et)this.K===180||this.K===0?_t===y.firstPickIndex+1?(y.m(_t++,re,we),y.m(_t++,re,Ve)):(Pe!==null?Pe.centerY:we)!==Ve&&(Pe=this.Ta[Ae.layer-1]+this.Rf.x,y.m(_t++,Pe,we),y.m(_t++,Pe,Ve)):_t===y.firstPickIndex+1?(y.m(_t++,re,we),y.m(_t++,Ee,we)):(Pe!==null?Pe.centerX:re)!==Ee&&(Pe=this.Ta[Ae.layer-1]+this.Rf.y,y.m(_t++,re,Pe),y.m(_t++,Ee,Pe));else if(_t===y.firstPickIndex+1){Pe=Math.max(10,this.he[dt.layer]);var fn=Math.max(10,this.Ld[dt.layer]);if(St)this.K===180?Ee<=dt.bounds.x?(dt=dt.bounds.x,y.m(_t++,dt-Pe,Ve),y.m(_t++,dt,Ve),y.m(_t++,dt+fn,Ve)):(y.m(_t++,Ee-Pe,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee+fn,Ve)):this.K===90?Ve>=dt.bounds.bottom?(dt=dt.bounds.y+dt.bounds.height,y.m(_t++,Ee,dt+fn),y.m(_t++,Ee,dt),y.m(_t++,Ee,dt-Pe)):(y.m(_t++,Ee,Ve+fn),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve-Pe)):this.K===270?Ve<=dt.bounds.y?(dt=dt.bounds.y,y.m(_t++,Ee,dt-Pe),y.m(_t++,Ee,dt),y.m(_t++,Ee,dt+fn)):(y.m(_t++,Ee,Ve-Pe),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve+fn)):this.K===0&&(Ee>=dt.bounds.right?(dt=dt.bounds.x+dt.bounds.width,y.m(_t++,dt+fn,Ve),y.m(_t++,dt,Ve),y.m(_t++,dt-Pe,Ve)):(y.m(_t++,Ee+fn,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee-Pe,Ve)));else{y.m(_t++,re,we);var Oi=0;this.K===180||this.K===0?((this.K===180?Ee>=dt.bounds.right:Ee<=dt.bounds.x)&&(Oi=(this.K===0?-Pe:fn)/2),y.m(_t++,re+Oi,Ve)):((this.K===270?Ve>=dt.bounds.bottom:Ve<=dt.bounds.y)&&(Oi=(this.K===90?-Pe:fn)/2),y.m(_t++,Ee,we+Oi)),y.m(_t++,Ee,Ve)}}else Pe=Math.max(10,this.he[Ae.layer]),fn=Math.max(10,this.Ld[Ae.layer]),St?this.K===180?(y.m(_t++,Ee-Pe-kt,Ve),y.m(_t++,Math.min(Ee-Pe+kt/2,Ee),Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Math.max(Ee+fn-kt/2,Ee),Ve),y.m(_t++,Ee+fn+kt,Ve)):this.K===90?(y.m(_t++,Ee,Ve+fn+kt),y.m(_t++,Ee,Math.max(Ve+fn-kt/2,Ve)),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Math.min(Ve-Pe+kt/2,Ve)),y.m(_t++,Ee,Ve-Pe-kt)):this.K===270?(y.m(_t++,Ee,Ve-Pe-kt),y.m(_t++,Ee,Math.min(Ve-Pe+kt/2,Ve)),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Math.max(Ve+fn-kt/2,Ve)),y.m(_t++,Ee,Ve+fn+kt)):(y.m(_t++,Ee+fn+kt,Ve),y.m(_t++,Math.max(Ee+fn-kt/2,Ee),Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Math.min(Ee-Pe+kt/2,Ee),Ve),y.m(_t++,Ee-Pe-kt,Ve)):y.m(_t++,Ee,Ve)}dt=Ae}(rt===null||lt!==ba||Et)&&(re=y.i(_t-1).x,we=y.i(_t-1).y,Ee=y.i(_t).x,Ve=y.i(_t).y,Et?(kt=this.Ld[ut.layer],this.K===180||this.K===0?(Et=we,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?-kt:kt),Et<ut.bounds.y+ut.bounds.height/2?Et=ut.bounds.y-this.kc/2:Et=ut.bounds.bottom+this.kc/2,y.m(_t++,dt,we),y.m(_t++,dt,Et)),y.m(_t++,Ee,Et)):(Et=re,Et>=ut.bounds.x&&Et<=ut.bounds.right&&(this.K===270?Ve>=ut.bounds.y:Ve<=ut.bounds.bottom)&&(dt=ut.centerY+(this.K===270?-kt:kt),Et<ut.bounds.x+ut.bounds.width/2?Et=ut.bounds.x-this.kc/2:Et=ut.bounds.right+this.kc/2,y.m(_t++,re,dt),y.m(_t++,Et,dt)),y.m(_t++,Et,Ve)),y.m(_t++,Ee,Ve)):St?(Pe=Math.max(10,this.he[ut.layer]),fn=Math.max(10,this.Ld[ut.layer]),this.K===180&&Ee>=ut.bounds.x?(dt=ut.bounds.x+ut.bounds.width,y.L(_t-2,dt,we),y.L(_t-1,dt+fn,we)):this.K===90&&Ve<=ut.bounds.bottom?(dt=ut.bounds.y,y.L(_t-2,re,dt),y.L(_t-1,re,dt-Pe)):this.K===270&&Ve>=ut.bounds.y?(dt=ut.bounds.y+ut.bounds.height,y.L(_t-2,re,dt),y.L(_t-1,re,dt+fn)):this.K===0&&Ee<=ut.bounds.right&&(dt=ut.bounds.x,y.L(_t-2,dt,we),y.L(_t-1,dt-Pe,we))):(Pe=Math.max(10,this.he[ut.layer]),fn=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?fn:-Pe)/2),y.m(_t++,Ee+Et,we)):((this.K===270?Ve<=ut.bounds.y:Ve>=ut.bounds.bottom)&&(Et=(this.K===90?fn:-Pe)/2),y.m(_t++,re,Ve+Et)),y.m(_t++,Ee,Ve)))}else{for(;ut!==null&&ut!==dt;){for(Pe=Ae=null,ut=ut.destinationEdges.iterator;ut.next()&&(re=ut.value,re.link!==x.link||(Ae=re.toVertex,Pe=re.fromVertex,Pe.node!==null&&(Pe=null),Ae.node!==null)););if(Ae===null)break;Ae!==dt&&(re=y.i(_t-1).x,we=y.i(_t-1).y,Ee=Ae.centerX,Ve=Ae.centerY,Et?this.K===180||this.K===0?(Pe!==null?Pe.centerY:we)!==Ve&&(Pe=this.Ta[Ae.layer]+this.Rf.x,_t===y.firstPickIndex+1&&(Pe=this.K===0?Math.max(Pe,re):Math.min(Pe,re)),y.m(_t++,Pe,we),y.m(_t++,Pe,Ve)):(Pe!==null?Pe.centerX:re)!==Ee&&(Pe=this.Ta[Ae.layer]+this.Rf.y,_t===y.firstPickIndex+1&&(Pe=this.K===90?Math.max(Pe,we):Math.min(Pe,we)),y.m(_t++,re,Pe),y.m(_t++,Ee,Pe)):(Pe=Math.max(10,this.he[Ae.layer]),fn=Math.max(10,this.Ld[Ae.layer]),St?this.K===180?(y.m(_t++,Ee+fn+kt,Ve),y.m(_t++,Math.max(Ee+fn-kt/2,Ee),Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Math.min(Ee-Pe+kt/2,Ee),Ve),y.m(_t++,Ee-Pe-kt,Ve)):this.K===90?(y.m(_t++,Ee,Ve-Pe-kt),y.m(_t++,Ee,Math.min(Ve-Pe+kt/2,Ve)),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Math.max(Ve+fn-kt/2,Ve)),y.m(_t++,Ee,Ve+fn+kt)):this.K===270?(y.m(_t++,Ee,Ve+fn+kt),y.m(_t++,Ee,Math.max(Ve+fn-kt/2,Ve)),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Math.min(Ve-Pe+kt/2,Ve)),y.m(_t++,Ee,Ve-Pe-kt)):(y.m(_t++,Ee-Pe-kt,Ve),y.m(_t++,Math.min(Ee-Pe+kt/2,Ee),Ve),y.m(_t++,Ee,Ve),y.m(_t++,Ee,Ve),y.m(_t++,Math.max(Ee+fn-kt/2,Ee),Ve),y.m(_t++,Ee+fn+kt,Ve)):this.K===180?(y.m(_t++,Ee+fn,Ve),y.m(_t++,Ee-Pe,Ve)):this.K===90?(y.m(_t++,Ee,Ve-Pe),y.m(_t++,Ee,Ve+fn)):this.K===270?(y.m(_t++,Ee,Ve+fn),y.m(_t++,Ee,Ve-Pe)):(y.m(_t++,Ee-Pe,Ve),y.m(_t++,Ee+fn,Ve)))),ut=Ae}Et&&(re=y.i(_t-1).x,we=y.i(_t-1).y,Ee=y.i(_t).x,Ve=y.i(_t).y,this.K===180||this.K===0?we!==Ve&&(Pe=this.K===0?Math.min(Math.max((Ee+re)/2,this.Ta[dt.layer]+this.Rf.x),Ee):Math.max(Math.min((Ee+re)/2,this.Ta[dt.layer]+this.Rf.x),Ee),y.m(_t++,Pe,we),y.m(_t++,Pe,Ve)):re!==Ee&&(Pe=this.K===90?Math.min(Math.max((Ve+we)/2,this.Ta[dt.layer]+this.Rf.y),Ve):Math.max(Math.min((Ve+we)/2,this.Ta[dt.layer]+this.Rf.y),Ve),y.m(_t++,re,Pe),y.m(_t++,Ee,Pe)))}b!==null&&St&&4<=y.pointsCount&&(tt!==null&&(tt=lt===ba?y.getLinkPointFromPoint(E,tt,tt.ga(bo),y.i(3),!0):y.i(0),lt===ba&&(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===ba?y.getLinkPointFromPoint(z,rt,rt.ga(bo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),st===ba&&(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()},ms.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new ni,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 Ag;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 kt=this.linkSpacing*(ut-(lt-1)/2);y++,Et.uh(),Et.L(St.index,z.x,z.y+kt),Et.L(St.index+1,tt.x,tt.y+kt),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 Ag,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),kt=this.linkSpacing*(ut-(lt-1)/2),y++,Et.uh(),Et.L(St.index,z.x+kt,z.y),Et.L(St.index+1,tt.x+kt,tt.y),Et.zf()}z=E}a=b}}}},jt=ms.prototype,jt.Vx=function(a,y){return a instanceof Ag&&y instanceof Ag&&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 Ag&&y instanceof Ag&&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 Ag&&y instanceof Ag&&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 ug(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 hg(a,y,x){a.He[a.tc[y]]=x}he.Object.defineProperties(ms.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!==R0||(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(ms,"CycleDepthFirst",0),ny=new zn(ms,"CycleGreedy",1),R0=new zn(ms,"CycleFromLayers",2),Wm=new zn(ms,"LayerOptimalLinkLength",0),iy=new zn(ms,"LayerLongestPathSink",1),ry=new zn(ms,"LayerLongestPathSource",2),Vm=new zn(ms,"InitDepthFirstOut",0),oy=new zn(ms,"InitDepthFirstIn",1),sy=new zn(ms,"InitNaive",2),ay=new zn(ms,"AggressiveNone",0),Ym=new zn(ms,"AggressiveLess",1),ly=new zn(ms,"AggressiveMore",2),Vw=8;ms.className="LayeredDigraphLayout",ms.CycleDepthFirst=Km,ms.CycleGreedy=ny,ms.CycleFromLayers=R0,ms.LayerOptimalLinkLength=Wm,ms.LayerLongestPathSink=iy,ms.LayerLongestPathSource=ry,ms.InitDepthFirstOut=Vm,ms.InitDepthFirstIn=oy,ms.InitNaive=sy,ms.AggressiveNone=ay,ms.AggressiveLess=Ym,ms.AggressiveMore=ly,ms.PackNone=0,ms.PackExpand=1,ms.PackStraighten=2,ms.PackMedian=4,ms.PackAll=15,ms.AlignNone=0,ms.AlignUpperLeft=1,ms.AlignUpperRight=2,ms.AlignLowerLeft=4,ms.AlignLowerRight=8,ms.AlignAll=15;function Ag(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Ag.className="SegInfo";function Vp(a){Us.call(this,a)}nn(Vp,Us),Vp.prototype.createVertex=function(){return new RA(this)},Vp.prototype.createEdge=function(){return new H0(this)},Vp.className="LayeredDigraphNetwork";function RA(a){El.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(RA,El);function aw(a,y){return a.index-y.index}function Xm(a,y){if(!a.$n){for(var x=[],b=os(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=os(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=os(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=os(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}RA.prototype.Cl=function(a){El.prototype.Cl.call(this,a),this.bo=this.co=null},RA.prototype.Kl=function(a){El.prototype.Kl.call(this,a),this.bo=this.co=null},RA.prototype.zl=function(a){El.prototype.zl.call(this,a),this.$n=this.ao=null},RA.prototype.Jl=function(a){El.prototype.Jl.call(this,a),this.$n=this.ao=null},he.Object.defineProperties(RA.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)}}}),RA.prototype.deleteDestinationEdge=RA.prototype.Jl,RA.prototype.addDestinationEdge=RA.prototype.zl,RA.prototype.deleteSourceEdge=RA.prototype.Kl,RA.prototype.addSourceEdge=RA.prototype.Cl,RA.className="LayeredDigraphVertex";function H0(a){Jh.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}nn(H0,Jh),he.Object.defineProperties(H0.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)}}}),H0.className="LayeredDigraphEdge";function ko(a){aa.call(this),this.Ub=new qn,this.Wn=qm,this.ud=_d,this.vo=ev,this.Bq=wy,this.$v=[],this.td=!0,this.Rb=nv,this.$d=new Li(10,10).freeze();var y=new cp(this);this.W=new ac(y),this.Y=new ac(y),this.ru=[],a&&Object.assign(this,a)}nn(ko,aa),ko.prototype.cloneProtected=function(a){aa.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)},ko.prototype.qb=function(a){a.classType===ko?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):aa.prototype.qb.call(this,a)},ko.prototype.createNetwork=function(){return new cp(this)},ko.prototype.makeNetwork=function(a){function y(b){if(b instanceof Hi)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof yi){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 un?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Xr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ko.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 un&&(y=a),this.path===qm&&y!==null?this.ud=y.isTreePathToChildren?_d:hp:this.ud=this.path===qm?_d: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 qn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Hi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof ac&&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 ac&&hw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ac&&Aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ac&&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 ac&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new qn,this.isValidLayout=!0};function Xw(a){var y=new qn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}ko.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case _d:x.sourceEdges.count===0&&this.Ub.add(x);break;case hp: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 _d:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case hp: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 _d:if(0<y.destinationEdges.count){for(var x=new ni,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 hp:if(0<y.sourceEdges.count){for(x=new ni,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}ko.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===Wd&&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}}ko.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Zw(this,a)),a.parent!==null&&a.parent.alignment===Wd){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])}}ko.prototype.assignTreeVertexValues=function(){};function cw(a,y){if(y!==null){y.alignment!==Wd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)cw(a,y[b])}}ko.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Yp:break;case _0:a.children.reverse();break;case G0:a.children.sort(a.comparer);break;case K0:a.children.sort(a.comparer),a.children.reverse();break;default:Fe("Unhandled sorting value "+a.sorting.toString())}},ko.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ko.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=cg(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=Nn.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=E,Nn.free(E))};function cg(a){return a===Nf||a===Wd||a===If||a===af}function z0(a){return a===Nf||a===Wd}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(cg(x)){if(z0(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===If)return!0}}return!1}ko.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=cg(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=oe.alloc(),St=0;St<ut;St++){var Et=lt[St],kt=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-kt.width,a.bounds.y+st),Et.move(dt),Et=Et.Sd();Et.next();){var _t=Et.value;_t.fromSpot=Ws,_t.toSpot=xa}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();)_t=Et.value,_t.fromSpot=xa,_t.toSpot=Ws;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();)_t=Et.value,_t.fromSpot=xa,_t.toSpot=Ws;else for(dt.h(a.bounds.x+a.commentMargin-kt.width,a.bounds.y+st),Et.move(dt),Et=Et.Sd();Et.next();)_t=Et.value,_t.fromSpot=Ws,_t.toSpot=xa;st=0<=a.commentSpacing?st+(kt.height+a.commentSpacing):st+(a.commentSpacing-kt.height)}else{if(135<E&&!z||!x&&rt)if(0<=a.commentMargin)for(dt.h(a.bounds.x+st,a.bounds.y-a.commentMargin-kt.height),Et.move(dt),Et=Et.Sd();Et.next();)_t=Et.value,_t.fromSpot=pa,_t.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();)_t=Et.value,_t.fromSpot=ol,_t.toSpot=pa;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();)_t=Et.value,_t.fromSpot=ol,_t.toSpot=pa;else for(dt.h(a.bounds.x+st,a.bounds.y+a.commentMargin-kt.height),Et.move(dt),Et=Et.Sd();Et.next();)_t=Et.value,_t.fromSpot=pa,_t.toSpot=ol;st=0<=a.commentSpacing?st+(kt.width+a.commentSpacing):st+(a.commentSpacing-kt.width)}}if(oe.free(dt),y=st-a.commentSpacing-(b?y.height:y.width),this.ud===_d)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)}},ko.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 W0:if(a.alignment===Wd)dw(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=cg(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=Nc(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===Gd;var lt=st===Kd,ut=cg(st),dt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var St=a.nodeSpacing,Et=this.computeNodeIndent(a),kt=a.rowSpacing,_t=0;(b||lt||a.hm||a.im&&a.maxGenerationCount===1)&&(_t=Math.max(0,a.rowIndent)),b=a.width;var Ae=a.height,re=0,we=0,Pe=0,Ee=null,Ve=null,fn=0,Oi=0,Ji=0,Vi=0,vi=0,ti=0,Gr=0,kr=0;if(ut&&!z0(st)&&135<E&&tt.reverse(),z0(st))if(1<rt)for(var rs=0;rs<rt;rs++)rs%2===0&&rs!==rt-1&&(kr=Math.max(kr,y?tt[rs].Da.width:tt[rs].Da.height));else rt===1&&(kr=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(st){case Nf:we=135>E?fw(this,a,tt,kr,re,we):gw(this,a,tt,kr,re,we),kr=we.x,re=we.width,we=we.height;break;case If:for(Ee=0;Ee<rt;Ee++)Ve=tt[Ee],dt=Ve.Da,Pe=ti===0?0:kt,y?(Ve.S.h(z-dt.width,Vi+Pe),re=Math.max(re,dt.width),we=Math.max(we,Vi+Pe+dt.height),Vi+=Pe+dt.height):(Ve.S.h(Ji+Pe,z-dt.height),re=Math.max(re,Ji+Pe+dt.width),we=Math.max(we,dt.height),Ji+=Pe+dt.width),ti++;break;case af:for(Ee=0;Ee<rt;Ee++)Ve=tt[Ee],z=Ve.Da,dt=ti===0?0:kt,y?(Ve.S.h(St/2+a.focus.x,Vi+dt),re=Math.max(re,z.width),we=Math.max(we,Vi+dt+z.height),Vi+=dt+z.height):(Ve.S.h(Ji+dt,St/2+a.focus.y),re=Math.max(re,Ji+dt+z.width),we=Math.max(we,z.height),Ji+=dt+z.width),ti++}Ee=jh(this,2),Ve=jh(this,2),y?(Ee[0].h(0,0),Ee[1].h(0,we),Ve[0].h(re,0)):(Ee[0].h(0,0),Ee[1].h(re,0),Ve[0].h(0,we)),Ve[1].h(re,we)}else for(rs=0;rs<rt;rs++){var Os=tt[rs],Hl=Os.Da;if(y){0<dt&&0<ti&&Ji+St+Hl.width>dt&&(Ji<z&&kg(a,st,z-Ji,0,Gr,rs-1),vi++,ti=0,Gr=rs,Pe=we,Ji=0,Vi=135<E?-we-kt:we+kt),Jm(this,Os,0,Vi);var Jl=0;if(ti===0)Ee=Os.Yo,Ve=Os.kp,fn=Hl.width,Oi=Hl.height,(Ee===null||Ve===null||E!==Nc(Os))&&(Ee=jh(this,2),Ve=jh(this,2),Ee[0].h(0,0),Ee[1].h(0,Oi),Ve[0].h(fn,0),Ve[1].h(fn,Oi));else{var Xu=nr();Oi=pw(this,a,Os,Ee,Ve,fn,Oi,Xu),Jl=Oi.x,Ee=Xu[0],Ve=Xu[1],fn=Oi.width,Oi=Oi.height,yr(Xu),Ji<Hl.width&&0>Jl&&(up(a,-Jl,0,Gr,rs-1),$m(Ee,-Jl,0),$m(Ve,-Jl,0),Jl=0)}Os.S.h(Jl,Vi),re=Math.max(re,fn),we=Math.max(we,Pe+(vi===0?0:kt)+Hl.height),Ji=fn}else 0<dt&&0<ti&&Vi+St+Hl.height>dt&&(Vi<z&&kg(a,st,0,z-Vi,Gr,rs-1),vi++,ti=0,Gr=rs,Pe=re,Vi=0,Ji=135<E?-re-kt:re+kt),Jm(this,Os,Ji,0),Jl=0,ti===0?(Ee=Os.Yo,Ve=Os.kp,fn=Hl.width,Oi=Hl.height,(Ee===null||Ve===null||E!==Nc(Os))&&(Ee=jh(this,2),Ve=jh(this,2),Ee[0].h(0,0),Ee[1].h(fn,0),Ve[0].h(0,Oi),Ve[1].h(fn,Oi))):(Xu=nr(),Oi=pw(this,a,Os,Ee,Ve,fn,Oi,Xu),Jl=Oi.x,Ee=Xu[0],Ve=Xu[1],fn=Oi.width,Oi=Oi.height,yr(Xu),Vi<Hl.height&&0>Jl&&(up(a,0,-Jl,Gr,rs-1),$m(Ee,0,-Jl),$m(Ve,0,-Jl),Jl=0)),Os.S.h(Ji,Jl),we=Math.max(we,Oi),re=Math.max(re,Pe+(vi===0?0:kt)+Hl.width),Vi=Oi;ti++}switch(0<vi&&(y?(we+=Math.max(0,x),Ji<re&&kg(a,st,re-Ji,0,Gr,rt-1),0<_t&&(lt||up(a,_t,0,0,rt-1),re+=_t)):(re+=Math.max(0,x),Vi<we&&kg(a,st,0,we-Vi,Gr,rt-1),0<_t&&(lt||up(a,0,_t,0,rt-1),we+=_t))),_t=lt=0,st){case Xp:y?lt+=re/2-a.focus.x-Et/2:_t+=we/2-a.focus.y-Et/2;break;case Ap:0<vi?y?lt+=re/2-a.focus.x-Et/2:_t+=we/2-a.focus.y-Et/2:y?(kr=tt[0].S.x+tt[0].la.x,lt+=kr+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-kr)/2-a.focus.x-Et/2):(kr=tt[0].S.y+tt[0].la.y,_t+=kr+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-kr)/2-a.focus.y-Et/2);break;case Gd:y?(lt-=Et,re+=Et):(_t-=Et,we+=Et);break;case Kd:y?(lt+=re-a.width+Et,re+=Et):(_t+=we-a.height+Et,we+=Et);break;case Nf:y?1<rt?lt+=kr+St/2-a.focus.x:lt+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?_t+=kr+St/2-a.focus.y:_t+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case If:y?lt+=re+St/2-a.focus.x:_t+=we+St/2-a.focus.y;break;case af:break;default:we=this.customAlignment(a,lt,_t,re,we),lt=we[0],_t=we[1],re=we[2],we=we[3]}for(Et=0;Et<rt;Et++)kr=tt[Et],y?kr.S.h(kr.S.x+kr.la.x-lt,kr.S.y+(135<E?(ut?-we:-kr.Da.height)+kr.la.y-x:Ae+x+kr.la.y)):kr.S.h(kr.S.x+(135<E?(ut?-re:-kr.Da.width)+kr.la.x-x:b+x+kr.la.x),kr.S.y+kr.la.y-_t);if(rt=tt=0,ut?y?(re=cy(a,re,lt),0>lt&&(lt=0),135<E&&(_t+=we+x),we+=Ae+x,st===af&&(tt+=St/2+a.focus.x),rt+=Ae+x):(135<E&&(lt+=re+x),re+=b+x,we=dy(a,we,_t),0>_t&&(_t=0),st===af&&(rt+=St/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>re&&(re=fy(st,b-re,0),tt=re.x,rt=re.y,re=b,lt=0):re=cy(a,re,lt),0>lt&&(tt-=lt,lt=0),135<E&&(_t+=we+x),we=Math.max(Math.max(we,Ae),we+Ae+x),rt+=Ae+x):(135<E&&(lt+=re+x),re=Math.max(Math.max(re,b),re+b+x),a.comments===null?Ae>we&&(we=fy(st,0,Ae-we),tt=we.x,rt=we.y,we=Ae,_t=0):we=dy(a,we,_t),0>_t&&(rt-=_t,_t=0),tt+=b+x),0<vi)E=jh(this,4),vi=jh(this,4),y?(E[2].h(0,Ae+x),E[3].h(E[2].x,we),vi[2].h(re,E[2].y),vi[3].h(vi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(re,E[2].y),vi[2].h(E[2].x,we),vi[3].h(E[3].x,vi[2].y));else{for(E=jh(this,Ee.length+2),vi=jh(this,Ve.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<Ve.length;st++)ut=Ve[st],vi[st+2].h(ut.x+tt,ut.y+rt)}y?(E[0].h(lt,0),E[1].h(E[0].x,Ae),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])),vi[0].h(lt+b,0),vi[1].h(vi[0].x,Ae),vi[2].y<vi[1].y&&(vi[2].x<vi[0].x?vi[2].assign(vi[1]):vi[1].assign(vi[2])),vi[3].y<vi[2].y&&(vi[3].x<vi[0].x?vi[3].assign(vi[2]):vi[2].assign(vi[3])),E[2].y-=x/2,vi[2].y-=x/2):(E[0].h(0,_t),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])),vi[0].h(0,_t+Ae),vi[1].h(b,vi[0].y),vi[2].x<vi[1].x&&(vi[2].y<vi[0].y?vi[2].assign(vi[1]):vi[1].assign(vi[2])),vi[3].x<vi[2].x&&(vi[3].y<vi[0].y?vi[3].assign(vi[2]):vi[2].assign(vi[3])),E[2].x-=x/2,vi[2].x-=x/2),Wc(this,Ee),Wc(this,Ve),a.Yo=E,a.kp=vi,a.la.h(lt,_t),a.Da.h(re,we)}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=cg(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=Nc(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===Gd,dt=lt===Kd;rt=cg(lt);var St=Math.max(0,y.breadthLimit);st=a.computeLayerSpacing(y);var Et=y.nodeSpacing,kt=a.computeNodeIndent(y),_t=ut||dt?0:kt/2,Ae=y.rowSpacing,re=0;(ut||dt||y.hm||y.im&&y.maxGenerationCount===1)&&(re=Math.max(0,y.rowIndent)),ut=y.width;var we=y.height,Pe=0,Ee=0,Ve=0,fn=0,Oi=0,Ji=0,Vi=0,vi=0,ti=0,Gr=0;if(rt&&!z0(lt)&&135<b&&E.reverse(),z0(lt))if(1<tt)for(var kr=0;kr<tt;kr++){var rs=E[kr],Os=rs.Da;kr%2===0&&kr!==tt-1?ti=Math.max(ti,(x?Os.width:Os.height)+a.computeBusNodeSpacing(rs)-Et):kr%2!==0&&(Gr=Math.max(Gr,(x?Os.width:Os.height)+a.computeBusNodeSpacing(rs)-Et))}else tt===1&&(ti=x?E[0].Da.width:E[0].Da.height);if(rt)switch(lt){case Nf:case Wd:Ee=135>b?fw(a,y,E,ti,Pe,Ee):gw(a,y,E,ti,Pe,Ee),ti=Ee.x,Pe=Ee.width,Ee=Ee.height;break;case If:for(St=0;St<tt;St++)_t=E[St],Ve=_t.Da,Gr=Vi===0?0:Ae,x?(_t.S.h(z-Ve.width,Oi+Gr),Pe=Math.max(Pe,Ve.width),Ee=Math.max(Ee,Oi+Gr+Ve.height),Oi+=Gr+Ve.height):(_t.S.h(fn+Gr,z-Ve.height),Pe=Math.max(Pe,fn+Gr+Ve.width),Ee=Math.max(Ee,Ve.height),fn+=Gr+Ve.width),Vi++;break;case af:for(z=0;z<tt;z++)St=E[z],_t=St.Da,Ve=Vi===0?0:Ae,x?(St.S.h(Et/2+y.focus.x,Oi+Ve),Pe=Math.max(Pe,_t.width),Ee=Math.max(Ee,Oi+Ve+_t.height),Oi+=Ve+_t.height):(St.S.h(fn+Ve,Et/2+y.focus.y),Pe=Math.max(Pe,fn+Ve+_t.width),Ee=Math.max(Ee,_t.height),fn+=Ve+_t.width),Vi++}else for(Gr=0;Gr<tt;Gr++)kr=E[Gr],rs=kr.Da,x?(0<St&&0<Vi&&fn+Et+rs.width>St&&(fn<z&&kg(y,lt,z-fn,0,vi,Gr-1),Ji++,Vi=0,vi=Gr,Ve=Ee,fn=0,Oi=135<b?-Ee-Ae:Ee+Ae),Os=Vi===0?_t:Et,Jm(a,kr,0,Oi),kr.S.h(fn+Os,Oi),Pe=Math.max(Pe,fn+Os+rs.width),Ee=Math.max(Ee,Ve+(Ji===0?0:Ae)+rs.height),fn+=Os+rs.width):(0<St&&0<Vi&&Oi+Et+rs.height>St&&(Oi<z&&kg(y,lt,0,z-Oi,vi,Gr-1),Ji++,Vi=0,vi=Gr,Ve=Pe,Oi=0,fn=135<b?-Pe-Ae:Pe+Ae),Os=Vi===0?_t:Et,Jm(a,kr,fn,0),kr.S.h(fn,Oi+Os),Ee=Math.max(Ee,Oi+Os+rs.height),Pe=Math.max(Pe,Ve+(Ji===0?0:Ae)+rs.width),Oi+=Os+rs.height),Vi++;switch(0<Ji&&(x?(Ee+=Math.max(0,st),fn<Pe&&kg(y,lt,Pe-fn,0,vi,tt-1),0<re&&(dt||up(y,re,0,0,tt-1),Pe+=re)):(Pe+=Math.max(0,st),Oi<Ee&&kg(y,lt,0,Ee-Oi,vi,tt-1),0<re&&(dt||up(y,0,re,0,tt-1),Ee+=re))),re=dt=0,lt){case Xp:x?dt+=Pe/2-y.focus.x-kt/2:re+=Ee/2-y.focus.y-kt/2;break;case Ap:0<Ji?x?dt+=Pe/2-y.focus.x-kt/2:re+=Ee/2-y.focus.y-kt/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-kt/2):(a=E[0].S.y+E[0].la.y,re+=a+(E[tt-1].S.y+E[tt-1].la.y+2*E[tt-1].focus.y-a)/2-y.focus.y-kt/2);break;case Gd:x?(dt-=kt,Pe+=kt):(re-=kt,Ee+=kt);break;case Kd:x?(dt+=Pe-y.width+kt,Pe+=kt):(re+=Ee-y.height+kt,Ee+=kt);break;case Nf:case Wd:x?1<tt?dt+=ti+Et/2-y.focus.x:dt+=E[0].focus.x-y.focus.x+E[0].la.x:1<tt?re+=ti+Et/2-y.focus.y:re+=E[0].focus.y-y.focus.y+E[0].la.y;break;case If:x?dt+=Pe+Et/2-y.focus.x:re+=Ee+Et/2-y.focus.y;break;case af:break;default:a=a.customAlignment(y,dt,re,Pe,Ee),dt=a[0],re=a[1],Pe=a[2],Ee=a[3]}for(a=0;a<tt;a++)kt=E[a],x?kt.S.h(kt.S.x+kt.la.x-dt,kt.S.y+(135<b?(rt?-Ee:-kt.Da.height)+kt.la.y-st:we+st+kt.la.y)):kt.S.h(kt.S.x+(135<b?(rt?-Pe:-kt.Da.width)+kt.la.x-st:ut+st+kt.la.x),kt.S.y+kt.la.y-re);x?(Pe=cy(y,Pe,dt),0>dt&&(dt=0),135<b&&(re+=Ee+st),Ee=Math.max(Math.max(Ee,we),Ee+we+st)):(135<b&&(dt+=Pe+st),Pe=Math.max(Math.max(Pe,ut),Pe+ut+st),Ee=dy(y,Ee,re),0>re&&(re=0)),y.la.h(dt,re),y.Da.h(Pe,Ee)}}ko.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 Nn(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new Nn(b,0,E,z);for(var rt=y.nodeSpacing,st=y.rowSpacing,lt=Nc(y)===90,ut=0,dt=0,St=0,Et=0;Et<tt;Et++)if(!(Et%2!==0||1<tt&&Et===tt-1)){var kt=x[Et],_t=kt.Da,Ae=ut===0?0:st;if(lt){var re=a.computeBusNodeSpacing(kt)-rt;kt.S.h(b-(_t.width+re),St+Ae),E=Math.max(E,_t.width+re),z=Math.max(z,St+Ae+_t.height),St+=Ae+_t.height}else re=a.computeBusNodeSpacing(kt)-rt,kt.S.h(dt+Ae,b-(_t.height+re)),z=Math.max(z,_t.height+re),E=Math.max(E,dt+Ae+_t.width),dt+=Ae+_t.width;ut++}for(ut=0,kt=dt,Et=St,lt?(dt=b+rt,St=0):(dt=0,St=b+rt),_t=0;_t<tt;_t++)if(_t%2!==0){Ae=x[_t],re=Ae.Da;var we=ut===0?0:st;if(lt){var Pe=a.computeBusNodeSpacing(Ae)-rt;Ae.S.h(dt+Pe,St+we),E=Math.max(E,dt+re.width+Pe),z=Math.max(z,St+we+re.height),St+=we+re.height}else Pe=a.computeBusNodeSpacing(Ae)-rt,Ae.S.h(dt+we,St+Pe),E=Math.max(E,dt+we+re.width),z=Math.max(z,St+re.height+Pe),dt+=we+re.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(kt),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(kt,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 Nn(b,0,E,z)}function gw(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new Nn(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new Nn(b,0,E,z);for(var rt=y.nodeSpacing,st=y.rowSpacing,lt=Nc(y)===270,ut=0,dt=0,St=0,Et=0;Et<tt;Et++)if(!(Et%2!==0||1<tt&&Et===tt-1)){var kt=x[Et],_t=kt.Da,Ae=ut===0?0:st;if(lt){var re=a.computeBusNodeSpacing(kt)-rt;St-=Ae+_t.height,kt.S.h(b-(_t.width+re),St),E=Math.max(E,_t.width+re),z=Math.max(z,Math.abs(St))}else re=a.computeBusNodeSpacing(kt)-rt,dt-=Ae+_t.width,kt.S.h(dt,b-(_t.height+re)),z=Math.max(z,_t.height+re),E=Math.max(E,Math.abs(dt));ut++}for(ut=0,kt=dt,Et=St,lt?(dt=b+rt,St=0):(dt=0,St=b+rt),_t=0;_t<tt;_t++)if(_t%2!==0){Ae=x[_t],re=Ae.Da;var we=ut===0?0:st;if(lt){var Pe=a.computeBusNodeSpacing(Ae)-rt;St-=we+re.height,Ae.S.h(dt+Pe,St),E=Math.max(E,dt+re.width+Pe),z=Math.max(z,Math.abs(St))}else Pe=a.computeBusNodeSpacing(Ae)-rt,dt-=we+re.width,Ae.S.h(dt,St+Pe),z=Math.max(z,St+re.height+Pe),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(kt),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(kt,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 Nn(b,0,E,z)}ko.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},ko.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 Ap:case Xp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Gd:return a.width>y?a.width:y;case Kd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Nf:case Wd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case If: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 Ap:case Xp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Gd:return a.height>y?a.height:y;case Kd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Nf:case Wd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case If: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 Xp:y/=2,x/=2;break;case Ap:y/=2,x/=2;break;case Gd:x=y=0;break;case Kd:break;default:Fe("Unhandled alignment value "+a.toString())}return new oe(y,x)}function kg(a,y,x,b,E,z){y=fy(y,x,b),up(a,y.x,y.y,E,z)}function up(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 _d:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case hp: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=Nc(y),lt=st===90||st===270,ut=y.nodeSpacing;y=b;var dt=E;b=z;var St=tt,Et=x.Yo,kt=x.kp;tt=x.Da;var _t=lt?Math.max(St,tt.height):Math.max(b,tt.width);if((Et===null||st!==Nc(x))&&(Et=jh(a,2),kt=jh(a,2),lt?(Et[0].h(0,0),Et[1].h(0,tt.height),kt[0].h(tt.width,0),kt[1].h(kt[0].x,Et[1].y)):(Et[0].h(0,0),Et[1].h(tt.width,0),kt[0].h(0,tt.height),kt[1].h(Et[1].x,kt[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 Ae=Et[E];st=Ae.x,lt=Ae.y,st+=b;var re=z;x+1<dt.length&&(re=dt[x+1]);var we=Ae;Ae=we.x,we=we.y,E+1<Et.length&&(we=Et[E+1],Ae=we.x,we=we.y,Ae+=b);var Pe=St;z.y===lt?Pe=st-z.x:z.y>lt&&z.y<we?Pe=st+(z.y-lt)/(we-lt)*(Ae-st)-z.x:lt>z.y&<<re.y&&(Pe=st-(z.x+(lt-z.y)/(re.y-z.y)*(re.x-z.x))),Pe<St&&(St=Pe),re.y<=z.y?x++:we<=lt?E++:(re.y<=we&&x++,we<=re.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=jh(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=jh(a,b),st=0;st<b;st++)x[st].assign(ut[st]);Wc(a,ut),b=x}if(z=kt,st=St,dt===null||2>dt.length||z===null||2>z.length)E=null;else{for(ut=jh(a,dt.length+z.length),E=lt=x=0;x<dt.length&&dt[x].y<z[0].y;)re=dt[x++],ut[E++].h(re.x,re.y);for(;lt<z.length;)re=z[lt++],ut[E++].h(re.x+st,re.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=jh(a,E),x=0;x<E;x++)z[x].assign(ut[x]);Wc(a,ut),E=z}return z=Math.max(0,St)+tt.width,tt=_t,Wc(a,y),Wc(a,Et),Wc(a,dt),Wc(a,kt),rt[0]=b,rt[1]=E,new Nn(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],Ae=Et[E],st=Ae.x,lt=Ae.y,lt+=St,re=z,x+1<dt.length&&(re=dt[x+1]),we=Ae,Ae=we.x,we=we.y,E+1<Et.length&&(we=Et[E+1],Ae=we.x,we=we.y,we+=St),Pe=b,z.x===st?Pe=lt-z.y:z.x>st&&z.x<Ae?Pe=lt+(z.x-st)/(Ae-st)*(we-lt)-z.y:st>z.x&&st<re.x&&(Pe=lt-(z.y+(st-z.x)/(re.x-z.x)*(re.y-z.y))),Pe<b&&(b=Pe),re.x<=z.x?x++:Ae<=st?E++:(re.x<=Ae&&x++,Ae<=re.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=jh(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=jh(a,b),st=0;st<b;st++)x[st].assign(ut[st]);Wc(a,ut),b=x}if(z=kt,st=St,dt===null||2>dt.length||z===null||2>z.length)E=null;else{for(ut=jh(a,dt.length+z.length),E=lt=x=0;x<dt.length&&dt[x].x<z[0].x;)re=dt[x++],ut[E++].h(re.x,re.y);for(;lt<z.length;)re=z[lt++],ut[E++].h(re.x,re.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=jh(a,E),x=0;x<E;x++)z[x].assign(ut[x]);Wc(a,ut),E=z}return z=_t,tt=Math.max(0,St)+tt.height,Wc(a,y),Wc(a,Et),Wc(a,dt),Wc(a,kt),rt[0]=b,rt[1]=E,new Nn(St,0,z,tt)}function jh(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 oe;return a}function Wc(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}ko.prototype.arrangeTrees=function(){if(this.Rb===iv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof ac){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 ac&&a.push(x);switch(this.sorting){case Yp:break;case _0:a.reverse();break;case G0:a.sort(this.comparer);break;case K0: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)}}}ko.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},ko.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},ko.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 oe(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new oe(-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 Nn(0,z,x,rt))):this.angle===90?(E.push(new Nn(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,E.push(new Nn(z,0,rt,x))):(E.push(new Nn(z,0,rt,x)),z+=rt)}this.commitLayers(E,b)}},ko.prototype.commitLayers=function(){},ko.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ko.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof ac&&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])}}ko.prototype.setPortSpots=function(a){var y=a.alignment;if(cg(y)){var x=this.ud===_d,b=Nc(a);switch(b){case 0:var E=xa;break;case 90:E=ol;break;case 180:E=Ws;break;default:E=pa}var z=a.children,tt=z.length;switch(y){case Nf:case Wd: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?Ws:pa;if(tt===1||y===tt-1&&tt%2===1)switch(b){case 0:st=Ws;break;case 90:st=pa;break;case 180:st=xa;break;default:st=ol}else y%2===0&&(st=b===90||b===270?xa:ol);x?(a.setsPortSpot&&(rt.fromSpot=E),a.setsChildPortSpot&&(rt.toSpot=st)):(a.setsPortSpot&&(rt.fromSpot=st),a.setsChildPortSpot&&(rt.toSpot=E))}}break;case If:for(b=b===90||b===270?xa: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?Ws:pa,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=Nc(a),this.ud===_d){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=xa;break;case 90:b.fromSpot=ol;break;case 180:b.fromSpot=Ws;break;default:b.fromSpot=pa}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Ws;break;case 90:b.toSpot=pa;break;case 180:b.toSpot=xa;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=xa;break;case 90:b.toSpot=ol;break;case 180:b.toSpot=Ws;break;default:b.toSpot=pa}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Ws;break;case 90:b.fromSpot=pa;break;case 180:b.fromSpot=xa;break;default:b.fromSpot=ol}else b.fromSpot=a.childPortSpot}};function Nc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}ko.prototype.computeLayerSpacing=function(a){var y=Nc(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},ko.prototype.computeNodeIndent=function(a){var y=Nc(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)},he.Object.defineProperties(ko.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!==Yp&&a!==_0&&a!==G0&&!K0||(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!==W0||(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!==Yp&&a!==_0&&a!==G0&&!K0||(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!==W0||(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(ko,"PathDefault",-1),_d=new zn(ko,"PathDestination",0),hp=new zn(ko,"PathSource",1),Yp=new zn(ko,"SortingForwards",10),_0=new zn(ko,"SortingReverse",11),G0=new zn(ko,"SortingAscending",12),K0=new zn(ko,"SortingDescending",13),Xp=new zn(ko,"AlignmentCenterSubtrees",20),Ap=new zn(ko,"AlignmentCenterChildren",21),Gd=new zn(ko,"AlignmentStart",22),Kd=new zn(ko,"AlignmentEnd",23),Nf=new zn(ko,"AlignmentBus",24),Wd=new zn(ko,"AlignmentBusBranching",25),If=new zn(ko,"AlignmentTopLeftBus",26),af=new zn(ko,"AlignmentBottomRightBus",27),tv=new zn(ko,"CompactionNone",30),W0=new zn(ko,"CompactionBlock",31),ev=new zn(ko,"StyleLayered",40),py=new zn(ko,"StyleLastParents",41),my=new zn(ko,"StyleAlternating",42),vy=new zn(ko,"StyleRootOnly",43),nv=new zn(ko,"ArrangementVertical",50),yy=new zn(ko,"ArrangementHorizontal",51),iv=new zn(ko,"ArrangementFixedRoots",52),wy=new zn(ko,"LayerIndividual",60),Sy=new zn(ko,"LayerSiblings",61),rv=new zn(ko,"LayerUniform",62);ko.className="TreeLayout",ko.PathDefault=qm,ko.PathDestination=_d,ko.PathSource=hp,ko.SortingForwards=Yp,ko.SortingReverse=_0,ko.SortingAscending=G0,ko.SortingDescending=K0,ko.AlignmentCenterSubtrees=Xp,ko.AlignmentCenterChildren=Ap,ko.AlignmentStart=Gd,ko.AlignmentEnd=Kd,ko.AlignmentBus=Nf,ko.AlignmentBusBranching=Wd,ko.AlignmentTopLeftBus=If,ko.AlignmentBottomRightBus=af,ko.CompactionNone=tv,ko.CompactionBlock=W0,ko.StyleLayered=ev,ko.StyleLastParents=py,ko.StyleAlternating=my,ko.StyleRootOnly=vy,ko.ArrangementVertical=nv,ko.ArrangementHorizontal=yy,ko.ArrangementFixedRoots=iv,ko.LayerIndividual=wy,ko.LayerSiblings=Sy,ko.LayerUniform=rv;function cp(a){Us.call(this,a)}nn(cp,Us),cp.prototype.createVertex=function(){return new ac(this)},cp.prototype.createEdge=function(){return new Zp(this)},cp.className="TreeNetwork";function ac(a){El.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 oe(0,0),this.Da=new Li(0,0),this.la=new oe(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Yp,this.hd=Hv,this.Kb=0,this.Jb=Ap,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=W0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ss,this.wr=!0,this.Dp=ss}nn(ac,El),ac.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)},he.Object.defineProperties(ac.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)}}}),ac.className="TreeVertex";function Zp(a){Jh.call(this,a),this.$t=new oe(0,0)}nn(Zp,Jh),Zp.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 _d:x=this.fromVertex,b=this.toVertex;break;case hp: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=Nc(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===Kd?(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===Gd?(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===Kd?(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===Gd?(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===Kd?(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===Gd?(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===Kd?(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===Gd?(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=Nc(x),y!==Nc(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=cg(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()))}}},he.Object.defineProperties(Zp.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)}}}),Zp.className="TreeEdge",Ut.prototype.initializeStandardTools=function(){this.gb("Action",new Wo,this.mouseDownTools),this.gb("Relinking",new Ki,this.mouseDownTools),this.gb("LinkReshaping",new ji,this.mouseDownTools),this.gb("Rotating",new _n,this.mouseDownTools),this.gb("Resizing",new rr,this.mouseDownTools),this.gb("Linking",new En,this.mouseMoveTools),this.gb("Dragging",new Ze,this.mouseMoveTools),this.gb("DragSelecting",new ro,this.mouseMoveTools),this.gb("Panning",new qr,this.mouseMoveTools),this.gb("ContextMenu",new ls,this.mouseUpTools),this.gb("TextEditing",new ds,this.mouseUpTools),this.gb("ClickCreating",new zr,this.mouseUpTools),this.gb("ClickSelecting",new Is,this.mouseUpTools)},yA("Horizontal",new hn),yA("Spot",new Fi),yA("Table",new mr),yA("Viewbox",new ui),yA("TableRow",new er),yA("TableColumn",new di),yA("Graduated",new wo),yA("Grid",new pr),Vs.add("GraphLinksModel",Zl),Vs.add("TreeModel",UA);var ov=ye.go,xy={get licenseKey(){return un.licenseKey},set licenseKey(a){un.licenseKey=a},get version(){return un.version},Group:Xr,EnumValue:zn,List:ni,Set:qn,Map:Zi,Point:oe,Size:Li,Rect:Nn,Margin:Sr,Spot:$i,Geometry:Bi,PathFigure:ma,PathSegment:Xo,InputEvent:Vl,DiagramEvent:gc,ChangedEvent:na,Model:ur,GraphLinksModel:Vo,TreeModel:Ah,Binding:al,Transaction:vl,UndoManager:wt,CommandHandler:ae,Tool:yt,DraggingTool:Ze,DraggingInfo:fu,DraggingOptions:ot,LinkingBaseTool:Mi,LinkingTool:En,RelinkingTool:Ki,LinkReshapingTool:ji,ResizingTool:rr,RotatingTool:_n,ClickSelectingTool:Is,ActionTool:Wo,ClickCreatingTool:zr,HTMLInfo:xo,ContextMenuTool:ls,DragSelectingTool:ro,PanningTool:qr,TextEditingTool:ds,ToolManager:Ut,Animation:Pl,AnimationManager:xl,AnimationTrigger:yh,Layer:qa,Diagram:un,Palette:ct,Overview:mt,Brush:us,GraphObject:ze,Panel:Tn,RowColumnDefinition:il,Shape:Yr,TextBlock:Ls,Picture:Lh,Part:xr,Adornment:ts,Node:Hi,Link:yi,Placeholder:ah,Layout:aa,LayoutNetwork:Us,LayoutVertex:El,LayoutEdge:Jh,GridLayout:uu,PanelLayout:Ke,CircularLayout:wa,CircularNetwork:Kp,CircularVertex:D0,CircularEdge:Qm,ForceDirectedLayout:Bu,ForceDirectedNetwork:lp,ForceDirectedVertex:j0,ForceDirectedEdge:U0,LayeredDigraphLayout:ms,LayeredDigraphNetwork:Vp,LayeredDigraphVertex:RA,LayeredDigraphEdge:H0,TreeLayout:ko,TreeNetwork:cp,TreeVertex:ac,TreeEdge:Zp};typeof ov=="object"&&ov.version&&lr("WARNING: a `go` object on the root object is already defined. "+("Debug"in ov?"debug ":"")+"version: "+ov.version+", replaced with version: "+xy.version),un.prototype.go=xy,ye.go=xy,typeof Ci.exports=="object"&&(Ci.exports=typeof Yt.g!="undefined"?Yt.g.go:self.go)}();var Kt=typeof Yt.g!="undefined"?Yt.g.go:self.go;const Le=typeof Yt.g!="undefined"?Yt.g.go:self.go,Te=Le.Group,xn=Le.EnumValue,Se=Le.List,We=Le.Set,je=Le.Map,de=Le.Point,ve=Le.Size,It=Le.Rect,xe=Le.Margin,ee=Le.Spot,ge=Le.Geometry,Qt=Le.PathFigure,et=Le.PathSegment,nt=Le.InputEvent,ht=Le.DiagramEvent,at=Le.ChangedEvent,ft=Le.Model,vt=Le.GraphLinksModel,Nt=Le.TreeModel,Rt=Le.Binding,Gt=Le.Transaction,$t=Le.UndoManager,se=Le.CommandHandler,me=Le.Tool,ce=Le.DraggingTool,Xe=Le.DraggingInfo,De=Le.LinkingBaseTool,ln=Le.LinkingTool,Oe=Le.RelinkingTool,mn=Le.LinkReshapingTool,Kn=Le.ResizingTool,sn=Le.RotatingTool,gn=Le.ClickSelectingTool,pn=Le.ActionTool,fe=Le.ClickCreatingTool,Zt=Le.HTMLInfo,Ye=Le.ContextMenuTool,Gn=Le.DragSelectingTool,ri=Le.PanningTool,cn=Le.TextEditingTool,In=Le.ToolManager,Wn=Le.Animation,xi=Le.AnimationManager,pi=Le.AnimationTrigger,zi=Le.Layer,Ie=Le.Diagram,Ai=Le.Palette,Ti=Le.Overview,ue=Le.Brush,Tt=Le.GraphObject,Ct=Le.Panel,zt=Le.RowColumnDefinition,Ht=Le.Shape,Mt=Le.TextBlock,be=Le.TextBlockMetrics,Ge=Le.Picture,vn=Le.Part,Fn=Le.Adornment,An=Le.Node,kn=Le.Link,Bn=Le.Placeholder,Vn=Le.Layout,bi=Le.LayoutNetwork,Pn=Le.LayoutVertex,an=Le.LayoutEdge,ei=Le.GridLayout,Ui=Le.PanelLayout,Pi=Le.CircularLayout,sr=Le.CircularNetwork,Or=Le.CircularVertex,Ao=Le.CircularEdge,po=Le.ForceDirectedLayout,Zr=Le.ForceDirectedNetwork,Ho=Le.ForceDirectedVertex,Co=Le.ForceDirectedEdge,Jr=Le.LayeredDigraphLayout,hr=Le.LayeredDigraphNetwork,to=Le.LayeredDigraphVertex,oo=Le.LayeredDigraphEdge,Jo=Le.TreeLayout,Ns=Le.TreeNetwork,ys=Le.TreeVertex,Xs=Le.TreeEdge,vo=Le.version},64270:function(Ci){(function(Ii,Yt){Ci.exports=Yt()})(this,function(){"use strict";var Ii=function(Bt,xt){return Ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(bt,Pt){bt.__proto__=Pt}||function(bt,Pt){for(var te in Pt)Object.prototype.hasOwnProperty.call(Pt,te)&&(bt[te]=Pt[te])},Ii(Bt,xt)};function Yt(Bt,xt){if(typeof xt!="function"&&xt!==null)throw new TypeError("Class extends value "+String(xt)+" is not a constructor or null");Ii(Bt,xt);function bt(){this.constructor=Bt}Bt.prototype=xt===null?Object.create(xt):(bt.prototype=xt.prototype,new bt)}var Kt=function(){return Kt=Object.assign||function(xt){for(var bt,Pt=1,te=arguments.length;Pt<te;Pt++){bt=arguments[Pt];for(var Ce in bt)Object.prototype.hasOwnProperty.call(bt,Ce)&&(xt[Ce]=bt[Ce])}return xt},Kt.apply(this,arguments)};function Le(Bt,xt,bt,Pt){function te(Ce){return Ce instanceof bt?Ce:new bt(function($e){$e(Ce)})}return new(bt||(bt=Promise))(function(Ce,$e){function Cn(gi){try{hi(Pt.next(gi))}catch(Qi){$e(Qi)}}function rn(gi){try{hi(Pt.throw(gi))}catch(Qi){$e(Qi)}}function hi(gi){gi.done?Ce(gi.value):te(gi.value).then(Cn,rn)}hi((Pt=Pt.apply(Bt,xt||[])).next())})}function Te(Bt,xt){var bt={label:0,sent:function(){if(Ce[0]&1)throw Ce[1];return Ce[1]},trys:[],ops:[]},Pt,te,Ce,$e;return $e={next:Cn(0),throw:Cn(1),return:Cn(2)},typeof Symbol=="function"&&($e[Symbol.iterator]=function(){return this}),$e;function Cn(hi){return function(gi){return rn([hi,gi])}}function rn(hi){if(Pt)throw new TypeError("Generator is already executing.");for(;bt;)try{if(Pt=1,te&&(Ce=hi[0]&2?te.return:hi[0]?te.throw||((Ce=te.return)&&Ce.call(te),0):te.next)&&!(Ce=Ce.call(te,hi[1])).done)return Ce;switch(te=0,Ce&&(hi=[hi[0]&2,Ce.value]),hi[0]){case 0:case 1:Ce=hi;break;case 4:return bt.label++,{value:hi[1],done:!1};case 5:bt.label++,te=hi[1],hi=[0];continue;case 7:hi=bt.ops.pop(),bt.trys.pop();continue;default:if(Ce=bt.trys,!(Ce=Ce.length>0&&Ce[Ce.length-1])&&(hi[0]===6||hi[0]===2)){bt=0;continue}if(hi[0]===3&&(!Ce||hi[1]>Ce[0]&&hi[1]<Ce[3])){bt.label=hi[1];break}if(hi[0]===6&&bt.label<Ce[1]){bt.label=Ce[1],Ce=hi;break}if(Ce&&bt.label<Ce[2]){bt.label=Ce[2],bt.ops.push(hi);break}Ce[2]&&bt.ops.pop(),bt.trys.pop();continue}hi=xt.call(Bt,bt)}catch(gi){hi=[6,gi],te=0}finally{Pt=Ce=0}if(hi[0]&5)throw hi[1];return{value:hi[0]?hi[1]:void 0,done:!0}}}function xn(Bt,xt,bt){if(bt||arguments.length===2)for(var Pt=0,te=xt.length,Ce;Pt<te;Pt++)(Ce||!(Pt in xt))&&(Ce||(Ce=Array.prototype.slice.call(xt,0,Pt)),Ce[Pt]=xt[Pt]);return Bt.concat(Ce||xt)}for(var Se=function(){function Bt(xt,bt,Pt,te){this.left=xt,this.top=bt,this.width=Pt,this.height=te}return Bt.prototype.add=function(xt,bt,Pt,te){return new Bt(this.left+xt,this.top+bt,this.width+Pt,this.height+te)},Bt.fromClientRect=function(xt,bt){return new Bt(bt.left+xt.windowBounds.left,bt.top+xt.windowBounds.top,bt.width,bt.height)},Bt.fromDOMRectList=function(xt,bt){var Pt=Array.from(bt).find(function(te){return te.width!==0});return Pt?new Bt(Pt.left+xt.windowBounds.left,Pt.top+xt.windowBounds.top,Pt.width,Pt.height):Bt.EMPTY},Bt.EMPTY=new Bt(0,0,0,0),Bt}(),We=function(Bt,xt){return Se.fromClientRect(Bt,xt.getBoundingClientRect())},je=function(Bt){var xt=Bt.body,bt=Bt.documentElement;if(!xt||!bt)throw new Error("Unable to get document size");var Pt=Math.max(Math.max(xt.scrollWidth,bt.scrollWidth),Math.max(xt.offsetWidth,bt.offsetWidth),Math.max(xt.clientWidth,bt.clientWidth)),te=Math.max(Math.max(xt.scrollHeight,bt.scrollHeight),Math.max(xt.offsetHeight,bt.offsetHeight),Math.max(xt.clientHeight,bt.clientHeight));return new Se(0,0,Pt,te)},de=function(Bt){for(var xt=[],bt=0,Pt=Bt.length;bt<Pt;){var te=Bt.charCodeAt(bt++);if(te>=55296&&te<=56319&&bt<Pt){var Ce=Bt.charCodeAt(bt++);(Ce&64512)===56320?xt.push(((te&1023)<<10)+(Ce&1023)+65536):(xt.push(te),bt--)}else xt.push(te)}return xt},ve=function(){for(var Bt=[],xt=0;xt<arguments.length;xt++)Bt[xt]=arguments[xt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Bt);var bt=Bt.length;if(!bt)return"";for(var Pt=[],te=-1,Ce="";++te<bt;){var $e=Bt[te];$e<=65535?Pt.push($e):($e-=65536,Pt.push(($e>>10)+55296,$e%1024+56320)),(te+1===bt||Pt.length>16384)&&(Ce+=String.fromCharCode.apply(String,Pt),Pt.length=0)}return Ce},It="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ee=0;ee<It.length;ee++)xe[It.charCodeAt(ee)]=ee;for(var ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<ge.length;et++)Qt[ge.charCodeAt(et)]=et;for(var nt=function(Bt){var xt=Bt.length*.75,bt=Bt.length,Pt,te=0,Ce,$e,Cn,rn;Bt[Bt.length-1]==="="&&(xt--,Bt[Bt.length-2]==="="&&xt--);var hi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xt):new Array(xt),gi=Array.isArray(hi)?hi:new Uint8Array(hi);for(Pt=0;Pt<bt;Pt+=4)Ce=Qt[Bt.charCodeAt(Pt)],$e=Qt[Bt.charCodeAt(Pt+1)],Cn=Qt[Bt.charCodeAt(Pt+2)],rn=Qt[Bt.charCodeAt(Pt+3)],gi[te++]=Ce<<2|$e>>4,gi[te++]=($e&15)<<4|Cn>>2,gi[te++]=(Cn&3)<<6|rn&63;return hi},ht=function(Bt){for(var xt=Bt.length,bt=[],Pt=0;Pt<xt;Pt+=2)bt.push(Bt[Pt+1]<<8|Bt[Pt]);return bt},at=function(Bt){for(var xt=Bt.length,bt=[],Pt=0;Pt<xt;Pt+=4)bt.push(Bt[Pt+3]<<24|Bt[Pt+2]<<16|Bt[Pt+1]<<8|Bt[Pt]);return bt},ft=5,vt=11,Nt=2,Rt=vt-ft,Gt=65536>>ft,$t=1<<ft,se=$t-1,me=1024>>ft,ce=Gt+me,Xe=ce,De=32,ln=Xe+De,Oe=65536>>vt,mn=1<<Rt,Kn=mn-1,sn=function(Bt,xt,bt){return Bt.slice?Bt.slice(xt,bt):new Uint16Array(Array.prototype.slice.call(Bt,xt,bt))},gn=function(Bt,xt,bt){return Bt.slice?Bt.slice(xt,bt):new Uint32Array(Array.prototype.slice.call(Bt,xt,bt))},pn=function(Bt,xt){var bt=nt(Bt),Pt=Array.isArray(bt)?at(bt):new Uint32Array(bt),te=Array.isArray(bt)?ht(bt):new Uint16Array(bt),Ce=24,$e=sn(te,Ce/2,Pt[4]/2),Cn=Pt[5]===2?sn(te,(Ce+Pt[4])/2):gn(Pt,Math.ceil((Ce+Pt[4])/4));return new fe(Pt[0],Pt[1],Pt[2],Pt[3],$e,Cn)},fe=function(){function Bt(xt,bt,Pt,te,Ce,$e){this.initialValue=xt,this.errorValue=bt,this.highStart=Pt,this.highValueIndex=te,this.index=Ce,this.data=$e}return Bt.prototype.get=function(xt){var bt;if(xt>=0){if(xt<55296||xt>56319&&xt<=65535)return bt=this.index[xt>>ft],bt=(bt<<Nt)+(xt&se),this.data[bt];if(xt<=65535)return bt=this.index[Gt+(xt-55296>>ft)],bt=(bt<<Nt)+(xt&se),this.data[bt];if(xt<this.highStart)return bt=ln-Oe+(xt>>vt),bt=this.index[bt],bt+=xt>>ft&Kn,bt=this.index[bt],bt=(bt<<Nt)+(xt&se),this.data[bt];if(xt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Bt}(),Zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ye=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Gn=0;Gn<Zt.length;Gn++)Ye[Zt.charCodeAt(Gn)]=Gn;var ri="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==",cn=50,In=1,Wn=2,xi=3,pi=4,zi=5,Ie=7,Ai=8,Ti=9,ue=10,Tt=11,Ct=12,zt=13,Ht=14,Mt=15,be=16,Ge=17,vn=18,Fn=19,An=20,kn=21,Bn=22,Vn=23,bi=24,Pn=25,an=26,ei=27,Ui=28,Pi=29,sr=30,Or=31,Ao=32,po=33,Zr=34,Ho=35,Co=36,Jr=37,hr=38,to=39,oo=40,Jo=41,Ns=42,ys=43,Xs=[9001,65288],vo="!",jt="\xD7",la="\xF7",os=pn(ri),_s=[sr,Co],Ss=[In,Wn,xi,zi],ca=[ue,Ai],fa=[ei,an],Pr=Ss.concat(ca),Fr=[hr,to,oo,Zr,Ho],dn=[Mt,zt],nn=function(Bt,xt){xt===void 0&&(xt="strict");var bt=[],Pt=[],te=[];return Bt.forEach(function(Ce,$e){var Cn=os.get(Ce);if(Cn>cn?(te.push(!0),Cn-=cn):te.push(!1),["normal","auto","loose"].indexOf(xt)!==-1&&[8208,8211,12316,12448].indexOf(Ce)!==-1)return Pt.push($e),bt.push(be);if(Cn===pi||Cn===Tt){if($e===0)return Pt.push($e),bt.push(sr);var rn=bt[$e-1];return Pr.indexOf(rn)===-1?(Pt.push(Pt[$e-1]),bt.push(rn)):(Pt.push($e),bt.push(sr))}if(Pt.push($e),Cn===Or)return bt.push(xt==="strict"?kn:Jr);if(Cn===Ns||Cn===Pi)return bt.push(sr);if(Cn===ys)return Ce>=131072&&Ce<=196605||Ce>=196608&&Ce<=262141?bt.push(Jr):bt.push(sr);bt.push(Cn)}),[Pt,bt,te]},he=function(Bt,xt,bt,Pt){var te=Pt[bt];if(Array.isArray(Bt)?Bt.indexOf(te)!==-1:Bt===te)for(var Ce=bt;Ce<=Pt.length;){Ce++;var $e=Pt[Ce];if($e===xt)return!0;if($e!==ue)break}if(te===ue)for(var Ce=bt;Ce>0;){Ce--;var Cn=Pt[Ce];if(Array.isArray(Bt)?Bt.indexOf(Cn)!==-1:Bt===Cn)for(var rn=bt;rn<=Pt.length;){rn++;var $e=Pt[rn];if($e===xt)return!0;if($e!==ue)break}if(Cn!==ue)break}return!1},Un=function(Bt,xt){for(var bt=Bt;bt>=0;){var Pt=xt[bt];if(Pt===ue)bt--;else return Pt}return 0},Yn=function(Bt,xt,bt,Pt,te){if(bt[Pt]===0)return jt;var Ce=Pt-1;if(Array.isArray(te)&&te[Ce]===!0)return jt;var $e=Ce-1,Cn=Ce+1,rn=xt[Ce],hi=$e>=0?xt[$e]:0,gi=xt[Cn];if(rn===Wn&&gi===xi)return jt;if(Ss.indexOf(rn)!==-1)return vo;if(Ss.indexOf(gi)!==-1||ca.indexOf(gi)!==-1)return jt;if(Un(Ce,xt)===Ai)return la;if(os.get(Bt[Ce])===Tt||(rn===Ao||rn===po)&&os.get(Bt[Cn])===Tt||rn===Ie||gi===Ie||rn===Ti||[ue,zt,Mt].indexOf(rn)===-1&&gi===Ti||[Ge,vn,Fn,bi,Ui].indexOf(gi)!==-1||Un(Ce,xt)===Bn||he(Vn,Bn,Ce,xt)||he([Ge,vn],kn,Ce,xt)||he(Ct,Ct,Ce,xt))return jt;if(rn===ue)return la;if(rn===Vn||gi===Vn)return jt;if(gi===be||rn===be)return la;if([zt,Mt,kn].indexOf(gi)!==-1||rn===Ht||hi===Co&&dn.indexOf(rn)!==-1||rn===Ui&&gi===Co||gi===An||_s.indexOf(gi)!==-1&&rn===Pn||_s.indexOf(rn)!==-1&&gi===Pn||rn===ei&&[Jr,Ao,po].indexOf(gi)!==-1||[Jr,Ao,po].indexOf(rn)!==-1&&gi===an||_s.indexOf(rn)!==-1&&fa.indexOf(gi)!==-1||fa.indexOf(rn)!==-1&&_s.indexOf(gi)!==-1||[ei,an].indexOf(rn)!==-1&&(gi===Pn||[Bn,Mt].indexOf(gi)!==-1&&xt[Cn+1]===Pn)||[Bn,Mt].indexOf(rn)!==-1&&gi===Pn||rn===Pn&&[Pn,Ui,bi].indexOf(gi)!==-1)return jt;if([Pn,Ui,bi,Ge,vn].indexOf(gi)!==-1)for(var Qi=Ce;Qi>=0;){var pt=xt[Qi];if(pt===Pn)return jt;if([Ui,bi].indexOf(pt)!==-1)Qi--;else break}if([ei,an].indexOf(gi)!==-1)for(var Qi=[Ge,vn].indexOf(rn)!==-1?$e:Ce;Qi>=0;){var pt=xt[Qi];if(pt===Pn)return jt;if([Ui,bi].indexOf(pt)!==-1)Qi--;else break}if(hr===rn&&[hr,to,Zr,Ho].indexOf(gi)!==-1||[to,Zr].indexOf(rn)!==-1&&[to,oo].indexOf(gi)!==-1||[oo,Ho].indexOf(rn)!==-1&&gi===oo||Fr.indexOf(rn)!==-1&&[An,an].indexOf(gi)!==-1||Fr.indexOf(gi)!==-1&&rn===ei||_s.indexOf(rn)!==-1&&_s.indexOf(gi)!==-1||rn===bi&&_s.indexOf(gi)!==-1||_s.concat(Pn).indexOf(rn)!==-1&&gi===Bn&&Xs.indexOf(Bt[Cn])===-1||_s.concat(Pn).indexOf(gi)!==-1&&rn===vn)return jt;if(rn===Jo&&gi===Jo){for(var Lt=bt[Ce],Wt=1;Lt>0&&(Lt--,xt[Lt]===Jo);)Wt++;if(Wt%2!==0)return jt}return rn===Ao&&gi===po?jt:la},Qe=function(Bt,xt){xt||(xt={lineBreak:"normal",wordBreak:"normal"});var bt=nn(Bt,xt.lineBreak),Pt=bt[0],te=bt[1],Ce=bt[2];(xt.wordBreak==="break-all"||xt.wordBreak==="break-word")&&(te=te.map(function(Cn){return[Pn,sr,Ns].indexOf(Cn)!==-1?Jr:Cn}));var $e=xt.wordBreak==="keep-all"?Ce.map(function(Cn,rn){return Cn&&Bt[rn]>=19968&&Bt[rn]<=40959}):void 0;return[Pt,te,$e]},ye=function(){function Bt(xt,bt,Pt,te){this.codePoints=xt,this.required=bt===vo,this.start=Pt,this.end=te}return Bt.prototype.slice=function(){return ve.apply(void 0,this.codePoints.slice(this.start,this.end))},Bt}(),qe=function(Bt,xt){var bt=de(Bt),Pt=Qe(bt,xt),te=Pt[0],Ce=Pt[1],$e=Pt[2],Cn=bt.length,rn=0,hi=0;return{next:function(){if(hi>=Cn)return{done:!0,value:null};for(var gi=jt;hi<Cn&&(gi=Yn(bt,Ce,te,++hi,$e))===jt;);if(gi!==jt||hi===Cn){var Qi=new ye(bt,gi,rn,hi);return rn=hi,{value:Qi,done:!1}}return{done:!0,value:null}}}},Mn=1,li=2,Si=4,Fe=8,Qn=10,Ni=47,lr=92,wn=9,Jn=32,Br=34,vr=61,Tr=35,nr=36,yr=37,ar=39,Er=40,co=41,jo=95,Xn=45,Oo=33,as=60,Eo=62,zn=64,Gi=91,wr=93,Dr=61,Mr=123,ao=63,Uo=125,lo=124,$r=126,br=128,ni=65533,So=42,qn=43,Go=44,Ds=58,qo=59,ea=46,Bs=0,io=8,uo=11,Yo=14,Qo=31,Zi=127,oe=-1,zo=48,Qs=97,_a=101,hl=102,Ka=117,ml=122,To=65,Po=69,_r=70,As=85,da=90,Rr=function(Bt){return Bt>=zo&&Bt<=57},jr=function(Bt){return Bt>=55296&&Bt<=57343},Li=function(Bt){return Rr(Bt)||Bt>=To&&Bt<=_r||Bt>=Qs&&Bt<=hl},eo=function(Bt){return Bt>=Qs&&Bt<=ml},cs=function(Bt){return Bt>=To&&Bt<=da},Es=function(Bt){return eo(Bt)||cs(Bt)},Rs=function(Bt){return Bt>=br},ho=function(Bt){return Bt===Qn||Bt===wn||Bt===Jn},Cs=function(Bt){return Es(Bt)||Rs(Bt)||Bt===jo},Wa=function(Bt){return Cs(Bt)||Rr(Bt)||Bt===Xn},_l=function(Bt){return Bt>=Bs&&Bt<=io||Bt===uo||Bt>=Yo&&Bt<=Qo||Bt===Zi},ja=function(Bt,xt){return Bt!==lr?!1:xt!==Qn},ns=function(Bt,xt,bt){return Bt===Xn?Cs(xt)||ja(xt,bt):Cs(Bt)?!0:!!(Bt===lr&&ja(Bt,xt))},Nn=function(Bt,xt,bt){return Bt===qn||Bt===Xn?Rr(xt)?!0:xt===ea&&Rr(bt):Rr(Bt===ea?xt:Bt)},ua=function(Bt){var xt=0,bt=1;(Bt[xt]===qn||Bt[xt]===Xn)&&(Bt[xt]===Xn&&(bt=-1),xt++);for(var Pt=[];Rr(Bt[xt]);)Pt.push(Bt[xt++]);var te=Pt.length?parseInt(ve.apply(void 0,Pt),10):0;Bt[xt]===ea&&xt++;for(var Ce=[];Rr(Bt[xt]);)Ce.push(Bt[xt++]);var $e=Ce.length,Cn=$e?parseInt(ve.apply(void 0,Ce),10):0;(Bt[xt]===Po||Bt[xt]===_a)&&xt++;var rn=1;(Bt[xt]===qn||Bt[xt]===Xn)&&(Bt[xt]===Xn&&(rn=-1),xt++);for(var hi=[];Rr(Bt[xt]);)hi.push(Bt[xt++]);var gi=hi.length?parseInt(ve.apply(void 0,hi),10):0;return bt*(te+Cn*Math.pow(10,-$e))*Math.pow(10,rn*gi)},Ac={type:2},$l={type:3},nA={type:4},Va={type:13},cc={type:8},Al={type:21},fs={type:9},Gs={type:10},iA={type:11},Do={type:12},Ps={type:14},es={type:23},Sr={type:1},cl={type:25},dl={type:24},vu={type:26},gh={type:27},Mh={type:28},$i={type:29},ba={type:31},Ya={type:32},Ml=function(){function Bt(){this._value=[]}return Bt.prototype.write=function(xt){this._value=this._value.concat(de(xt))},Bt.prototype.read=function(){for(var xt=[],bt=this.consumeToken();bt!==Ya;)xt.push(bt),bt=this.consumeToken();return xt},Bt.prototype.consumeToken=function(){var xt=this.consumeCodePoint();switch(xt){case Br:return this.consumeStringToken(Br);case Tr:var bt=this.peekCodePoint(0),Pt=this.peekCodePoint(1),te=this.peekCodePoint(2);if(Wa(bt)||ja(Pt,te)){var Ce=ns(bt,Pt,te)?li:Mn,$e=this.consumeName();return{type:5,value:$e,flags:Ce}}break;case nr:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),Va;break;case ar:return this.consumeStringToken(ar);case Er:return Ac;case co:return $l;case So:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),Ps;break;case qn:if(Nn(xt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(xt),this.consumeNumericToken();break;case Go:return nA;case Xn:var Cn=xt,rn=this.peekCodePoint(0),hi=this.peekCodePoint(1);if(Nn(Cn,rn,hi))return this.reconsumeCodePoint(xt),this.consumeNumericToken();if(ns(Cn,rn,hi))return this.reconsumeCodePoint(xt),this.consumeIdentLikeToken();if(rn===Xn&&hi===Eo)return this.consumeCodePoint(),this.consumeCodePoint(),dl;break;case ea:if(Nn(xt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(xt),this.consumeNumericToken();break;case Ni:if(this.peekCodePoint(0)===So)for(this.consumeCodePoint();;){var gi=this.consumeCodePoint();if(gi===So&&(gi=this.consumeCodePoint(),gi===Ni))return this.consumeToken();if(gi===oe)return this.consumeToken()}break;case Ds:return vu;case qo:return gh;case as:if(this.peekCodePoint(0)===Oo&&this.peekCodePoint(1)===Xn&&this.peekCodePoint(2)===Xn)return this.consumeCodePoint(),this.consumeCodePoint(),cl;break;case zn:var Qi=this.peekCodePoint(0),pt=this.peekCodePoint(1),Lt=this.peekCodePoint(2);if(ns(Qi,pt,Lt)){var $e=this.consumeName();return{type:7,value:$e}}break;case Gi:return Mh;case lr:if(ja(xt,this.peekCodePoint(0)))return this.reconsumeCodePoint(xt),this.consumeIdentLikeToken();break;case wr:return $i;case Dr:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),cc;break;case Mr:return iA;case Uo:return Do;case Ka:case As:var Wt=this.peekCodePoint(0),ie=this.peekCodePoint(1);return Wt===qn&&(Li(ie)||ie===ao)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(xt),this.consumeIdentLikeToken();case lo:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),fs;if(this.peekCodePoint(0)===lo)return this.consumeCodePoint(),Al;break;case $r:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),Gs;break;case oe:return Ya}return ho(xt)?(this.consumeWhiteSpace(),ba):Rr(xt)?(this.reconsumeCodePoint(xt),this.consumeNumericToken()):Cs(xt)?(this.reconsumeCodePoint(xt),this.consumeIdentLikeToken()):{type:6,value:ve(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=[],bt=this.consumeCodePoint();Li(bt)&&xt.length<6;)xt.push(bt),bt=this.consumeCodePoint();for(var Pt=!1;bt===ao&&xt.length<6;)xt.push(bt),bt=this.consumeCodePoint(),Pt=!0;if(Pt){var te=parseInt(ve.apply(void 0,xt.map(function(rn){return rn===ao?zo:rn})),16),Ce=parseInt(ve.apply(void 0,xt.map(function(rn){return rn===ao?_r:rn})),16);return{type:30,start:te,end:Ce}}var $e=parseInt(ve.apply(void 0,xt),16);if(this.peekCodePoint(0)===Xn&&Li(this.peekCodePoint(1))){this.consumeCodePoint(),bt=this.consumeCodePoint();for(var Cn=[];Li(bt)&&Cn.length<6;)Cn.push(bt),bt=this.consumeCodePoint();var Ce=parseInt(ve.apply(void 0,Cn),16);return{type:30,start:$e,end:Ce}}else return{type:30,start:$e,end:$e}},Bt.prototype.consumeIdentLikeToken=function(){var xt=this.consumeName();return xt.toLowerCase()==="url"&&this.peekCodePoint(0)===Er?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Er?(this.consumeCodePoint(),{type:19,value:xt}):{type:20,value:xt}},Bt.prototype.consumeUrlToken=function(){var xt=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===oe)return{type:22,value:""};var bt=this.peekCodePoint(0);if(bt===ar||bt===Br){var Pt=this.consumeStringToken(this.consumeCodePoint());return Pt.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===oe||this.peekCodePoint(0)===co)?(this.consumeCodePoint(),{type:22,value:Pt.value}):(this.consumeBadUrlRemnants(),es)}for(;;){var te=this.consumeCodePoint();if(te===oe||te===co)return{type:22,value:ve.apply(void 0,xt)};if(ho(te))return this.consumeWhiteSpace(),this.peekCodePoint(0)===oe||this.peekCodePoint(0)===co?(this.consumeCodePoint(),{type:22,value:ve.apply(void 0,xt)}):(this.consumeBadUrlRemnants(),es);if(te===Br||te===ar||te===Er||_l(te))return this.consumeBadUrlRemnants(),es;if(te===lr)if(ja(te,this.peekCodePoint(0)))xt.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),es;else xt.push(te)}},Bt.prototype.consumeWhiteSpace=function(){for(;ho(this.peekCodePoint(0));)this.consumeCodePoint()},Bt.prototype.consumeBadUrlRemnants=function(){for(;;){var xt=this.consumeCodePoint();if(xt===co||xt===oe)return;ja(xt,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Bt.prototype.consumeStringSlice=function(xt){for(var bt=5e4,Pt="";xt>0;){var te=Math.min(bt,xt);Pt+=ve.apply(void 0,this._value.splice(0,te)),xt-=te}return this._value.shift(),Pt},Bt.prototype.consumeStringToken=function(xt){var bt="",Pt=0;do{var te=this._value[Pt];if(te===oe||te===void 0||te===xt)return bt+=this.consumeStringSlice(Pt),{type:0,value:bt};if(te===Qn)return this._value.splice(0,Pt),Sr;if(te===lr){var Ce=this._value[Pt+1];Ce!==oe&&Ce!==void 0&&(Ce===Qn?(bt+=this.consumeStringSlice(Pt),Pt=-1,this._value.shift()):ja(te,Ce)&&(bt+=this.consumeStringSlice(Pt),bt+=ve(this.consumeEscapedCodePoint()),Pt=-1))}Pt++}while(!0)},Bt.prototype.consumeNumber=function(){var xt=[],bt=Si,Pt=this.peekCodePoint(0);for((Pt===qn||Pt===Xn)&&xt.push(this.consumeCodePoint());Rr(this.peekCodePoint(0));)xt.push(this.consumeCodePoint());Pt=this.peekCodePoint(0);var te=this.peekCodePoint(1);if(Pt===ea&&Rr(te))for(xt.push(this.consumeCodePoint(),this.consumeCodePoint()),bt=Fe;Rr(this.peekCodePoint(0));)xt.push(this.consumeCodePoint());Pt=this.peekCodePoint(0),te=this.peekCodePoint(1);var Ce=this.peekCodePoint(2);if((Pt===Po||Pt===_a)&&((te===qn||te===Xn)&&Rr(Ce)||Rr(te)))for(xt.push(this.consumeCodePoint(),this.consumeCodePoint()),bt=Fe;Rr(this.peekCodePoint(0));)xt.push(this.consumeCodePoint());return[ua(xt),bt]},Bt.prototype.consumeNumericToken=function(){var xt=this.consumeNumber(),bt=xt[0],Pt=xt[1],te=this.peekCodePoint(0),Ce=this.peekCodePoint(1),$e=this.peekCodePoint(2);if(ns(te,Ce,$e)){var Cn=this.consumeName();return{type:15,number:bt,flags:Pt,unit:Cn}}return te===yr?(this.consumeCodePoint(),{type:16,number:bt,flags:Pt}):{type:17,number:bt,flags:Pt}},Bt.prototype.consumeEscapedCodePoint=function(){var xt=this.consumeCodePoint();if(Li(xt)){for(var bt=ve(xt);Li(this.peekCodePoint(0))&&bt.length<6;)bt+=ve(this.consumeCodePoint());ho(this.peekCodePoint(0))&&this.consumeCodePoint();var Pt=parseInt(bt,16);return Pt===0||jr(Pt)||Pt>1114111?ni:Pt}return xt===oe?ni:xt},Bt.prototype.consumeName=function(){for(var xt="";;){var bt=this.consumeCodePoint();if(Wa(bt))xt+=ve(bt);else if(ja(bt,this.peekCodePoint(0)))xt+=ve(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(bt),xt}},Bt}(),$u=function(){function Bt(xt){this._tokens=xt}return Bt.create=function(xt){var bt=new Ml;return bt.write(xt),new Bt(bt.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 bt=this.consumeComponentValue();do xt=this.consumeToken();while(xt.type===31);if(xt.type===32)return bt;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Bt.prototype.parseComponentValues=function(){for(var xt=[];;){var bt=this.consumeComponentValue();if(bt.type===32)return xt;xt.push(bt),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 bt={type:xt,values:[]},Pt=this.consumeToken();;){if(Pt.type===32||Wl(Pt,xt))return bt;this.reconsumeToken(Pt),bt.values.push(this.consumeComponentValue()),Pt=this.consumeToken()}},Bt.prototype.consumeFunction=function(xt){for(var bt={name:xt.value,values:[],type:18};;){var Pt=this.consumeToken();if(Pt.type===32||Pt.type===3)return bt;this.reconsumeToken(Pt),bt.values.push(this.consumeComponentValue())}},Bt.prototype.consumeToken=function(){var xt=this._tokens.shift();return typeof xt=="undefined"?Ya:xt},Bt.prototype.reconsumeToken=function(xt){this._tokens.unshift(xt)},Bt}(),Gl=function(Bt){return Bt.type===15},bo=function(Bt){return Bt.type===17},ga=function(Bt){return Bt.type===20},Ta=function(Bt){return Bt.type===0},ql=function(Bt,xt){return ga(Bt)&&Bt.value===xt},Kl=function(Bt){return Bt.type!==31},Iu=function(Bt){return Bt.type!==31&&Bt.type!==4},iu=function(Bt){var xt=[],bt=[];return Bt.forEach(function(Pt){if(Pt.type===4){if(bt.length===0)throw new Error("Error parsing function args, zero tokens for arg");xt.push(bt),bt=[];return}Pt.type!==31&&bt.push(Pt)}),bt.length&&xt.push(bt),xt},Wl=function(Bt,xt){return xt===11&&Bt.type===12||xt===28&&Bt.type===29?!0:xt===2&&Bt.type===3},Nl=function(Bt){return Bt.type===17||Bt.type===15},fo=function(Bt){return Bt.type===16||Nl(Bt)},$c=function(Bt){return Bt.length>1?[Bt[0],Bt[1]]:[Bt[0]]},tu={type:17,number:0,flags:Si},kc={type:16,number:50,flags:Si},ph={type:16,number:100,flags:Si},rA=function(Bt,xt,bt){var Pt=Bt[0],te=Bt[1];return[Sa(Pt,xt),Sa(typeof te!="undefined"?te:Pt,bt)]},Sa=function(Bt,xt){if(Bt.type===16)return Bt.number/100*xt;if(Gl(Bt))switch(Bt.unit){case"rem":case"em":return 16*Bt.number;case"px":default:return Bt.number}return Bt.number},qu="deg",qc="grad",zA="rad",dc="turn",ss={name:"angle",parse:function(Bt,xt){if(xt.type===15)switch(xt.unit){case qu:return Math.PI*xt.number/180;case qc:return Math.PI/200*xt.number;case zA:return xt.number;case dc:return Math.PI*2*xt.number}throw new Error("Unsupported angle type")}},Ks=function(Bt){return Bt.type===15&&(Bt.unit===qu||Bt.unit===qc||Bt.unit===zA||Bt.unit===dc)},ru=function(Bt){var xt=Bt.filter(ga).map(function(bt){return bt.value}).join(" ");switch(xt){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tu,tu];case"to top":case"bottom":return Za(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tu,ph];case"to right":case"left":return Za(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ph,ph];case"to bottom":case"top":return Za(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ph,tu];case"to left":case"right":return Za(270)}return 0},Za=function(Bt){return Math.PI*Bt/180},ka={name:"color",parse:function(Bt,xt){if(xt.type===18){var bt=td[xt.name];if(typeof bt=="undefined")throw new Error('Attempting to parse an unsupported color function "'+xt.name+'"');return bt(Bt,xt.values)}if(xt.type===5){if(xt.value.length===3){var Pt=xt.value.substring(0,1),te=xt.value.substring(1,2),Ce=xt.value.substring(2,3);return xa(parseInt(Pt+Pt,16),parseInt(te+te,16),parseInt(Ce+Ce,16),1)}if(xt.value.length===4){var Pt=xt.value.substring(0,1),te=xt.value.substring(1,2),Ce=xt.value.substring(2,3),$e=xt.value.substring(3,4);return xa(parseInt(Pt+Pt,16),parseInt(te+te,16),parseInt(Ce+Ce,16),parseInt($e+$e,16)/255)}if(xt.value.length===6){var Pt=xt.value.substring(0,2),te=xt.value.substring(2,4),Ce=xt.value.substring(4,6);return xa(parseInt(Pt,16),parseInt(te,16),parseInt(Ce,16),1)}if(xt.value.length===8){var Pt=xt.value.substring(0,2),te=xt.value.substring(2,4),Ce=xt.value.substring(4,6),$e=xt.value.substring(6,8);return xa(parseInt(Pt,16),parseInt(te,16),parseInt(Ce,16),parseInt($e,16)/255)}}if(xt.type===20){var Cn=_h[xt.value.toUpperCase()];if(typeof Cn!="undefined")return Cn}return _h.TRANSPARENT}},pa=function(Bt){return(255&Bt)===0},Ws=function(Bt){var xt=255&Bt,bt=255&Bt>>8,Pt=255&Bt>>16,te=255&Bt>>24;return xt<255?"rgba("+te+","+Pt+","+bt+","+xt/255+")":"rgb("+te+","+Pt+","+bt+")"},xa=function(Bt,xt,bt,Pt){return(Bt<<24|xt<<16|bt<<8|Math.round(Pt*255)<<0)>>>0},ol=function(Bt,xt){if(Bt.type===17)return Bt.number;if(Bt.type===16){var bt=xt===3?1:255;return xt===3?Bt.number/100*bt:Math.round(Bt.number/100*bt)}return 0},zh=function(Bt,xt){var bt=xt.filter(Iu);if(bt.length===3){var Pt=bt.map(ol),te=Pt[0],Ce=Pt[1],$e=Pt[2];return xa(te,Ce,$e,1)}if(bt.length===4){var Cn=bt.map(ol),te=Cn[0],Ce=Cn[1],$e=Cn[2],rn=Cn[3];return xa(te,Ce,$e,rn)}return 0};function Tu(Bt,xt,bt){return bt<0&&(bt+=1),bt>=1&&(bt-=1),bt<1/6?(xt-Bt)*bt*6+Bt:bt<1/2?xt:bt<2/3?(xt-Bt)*6*(2/3-bt)+Bt:Bt}var La=function(Bt,xt){var bt=xt.filter(Iu),Pt=bt[0],te=bt[1],Ce=bt[2],$e=bt[3],Cn=(Pt.type===17?Za(Pt.number):ss.parse(Bt,Pt))/(Math.PI*2),rn=fo(te)?te.number/100:0,hi=fo(Ce)?Ce.number/100:0,gi=typeof $e!="undefined"&&fo($e)?Sa($e,1):1;if(rn===0)return xa(hi*255,hi*255,hi*255,1);var Qi=hi<=.5?hi*(rn+1):hi+rn-hi*rn,pt=hi*2-Qi,Lt=Tu(pt,Qi,Cn+1/3),Wt=Tu(pt,Qi,Cn),ie=Tu(pt,Qi,Cn-1/3);return xa(Lt*255,Wt*255,ie*255,gi)},td={hsl:La,hsla:La,rgb:zh,rgba:zh},fc=function(Bt,xt){return ka.parse(Bt,$u.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},mo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Bt,xt){return xt.map(function(bt){if(ga(bt))switch(bt.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zf={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Je=function(Bt,xt){var bt=ka.parse(Bt,xt[0]),Pt=xt[1];return Pt&&fo(Pt)?{color:bt,stop:Pt}:{color:bt,stop:null}},Bi=function(Bt,xt){var bt=Bt[0],Pt=Bt[Bt.length-1];bt.stop===null&&(bt.stop=tu),Pt.stop===null&&(Pt.stop=ph);for(var te=[],Ce=0,$e=0;$e<Bt.length;$e++){var Cn=Bt[$e].stop;if(Cn!==null){var rn=Sa(Cn,xt);rn>Ce?te.push(rn):te.push(Ce),Ce=rn}else te.push(null)}for(var hi=null,$e=0;$e<te.length;$e++){var gi=te[$e];if(gi===null)hi===null&&(hi=$e);else if(hi!==null){for(var Qi=$e-hi,pt=te[hi-1],Lt=(gi-pt)/(Qi+1),Wt=1;Wt<=Qi;Wt++)te[hi+Wt-1]=Lt*Wt;hi=null}}return Bt.map(function(ie,Me){var ke=ie.color;return{color:ke,stop:Math.max(Math.min(1,te[Me]/xt),0)}})},ff=function(Bt,xt,bt){var Pt=xt/2,te=bt/2,Ce=Sa(Bt[0],xt)-Pt,$e=te-Sa(Bt[1],bt);return(Math.atan2($e,Ce)+Math.PI*2)%(Math.PI*2)},oA=function(Bt,xt,bt){var Pt=typeof Bt=="number"?Bt:ff(Bt,xt,bt),te=Math.abs(xt*Math.sin(Pt))+Math.abs(bt*Math.cos(Pt)),Ce=xt/2,$e=bt/2,Cn=te/2,rn=Math.sin(Pt-Math.PI/2)*Cn,hi=Math.cos(Pt-Math.PI/2)*Cn;return[te,Ce-hi,Ce+hi,$e-rn,$e+rn]},yu=function(Bt,xt){return Math.sqrt(Bt*Bt+xt*xt)},wu=function(Bt,xt,bt,Pt,te){var Ce=[[0,0],[0,xt],[Bt,0],[Bt,xt]];return Ce.reduce(function($e,Cn){var rn=Cn[0],hi=Cn[1],gi=yu(bt-rn,Pt-hi);return(te?gi<$e.optimumDistance:gi>$e.optimumDistance)?{optimumCorner:Cn,optimumDistance:gi}:$e},{optimumDistance:te?1/0:-1/0,optimumCorner:null}).optimumCorner},Nh=function(Bt,xt,bt,Pt,te){var Ce=0,$e=0;switch(Bt.size){case 0:Bt.shape===0?Ce=$e=Math.min(Math.abs(xt),Math.abs(xt-Pt),Math.abs(bt),Math.abs(bt-te)):Bt.shape===1&&(Ce=Math.min(Math.abs(xt),Math.abs(xt-Pt)),$e=Math.min(Math.abs(bt),Math.abs(bt-te)));break;case 2:if(Bt.shape===0)Ce=$e=Math.min(yu(xt,bt),yu(xt,bt-te),yu(xt-Pt,bt),yu(xt-Pt,bt-te));else if(Bt.shape===1){var Cn=Math.min(Math.abs(bt),Math.abs(bt-te))/Math.min(Math.abs(xt),Math.abs(xt-Pt)),rn=wu(Pt,te,xt,bt,!0),hi=rn[0],gi=rn[1];Ce=yu(hi-xt,(gi-bt)/Cn),$e=Cn*Ce}break;case 1:Bt.shape===0?Ce=$e=Math.max(Math.abs(xt),Math.abs(xt-Pt),Math.abs(bt),Math.abs(bt-te)):Bt.shape===1&&(Ce=Math.max(Math.abs(xt),Math.abs(xt-Pt)),$e=Math.max(Math.abs(bt),Math.abs(bt-te)));break;case 3:if(Bt.shape===0)Ce=$e=Math.max(yu(xt,bt),yu(xt,bt-te),yu(xt-Pt,bt),yu(xt-Pt,bt-te));else if(Bt.shape===1){var Cn=Math.max(Math.abs(bt),Math.abs(bt-te))/Math.max(Math.abs(xt),Math.abs(xt-Pt)),Qi=wu(Pt,te,xt,bt,!1),hi=Qi[0],gi=Qi[1];Ce=yu(hi-xt,(gi-bt)/Cn),$e=Cn*Ce}break}return Array.isArray(Bt.size)&&(Ce=Sa(Bt.size[0],Pt),$e=Bt.size.length===2?Sa(Bt.size[1],te):Ce),[Ce,$e]},gf=function(Bt,xt){var bt=Za(180),Pt=[];return iu(xt).forEach(function(te,Ce){if(Ce===0){var $e=te[0];if($e.type===20&&$e.value==="to"){bt=ru(te);return}else if(Ks($e)){bt=ss.parse(Bt,$e);return}}var Cn=Je(Bt,te);Pt.push(Cn)}),{angle:bt,stops:Pt,type:1}},Oc=function(Bt,xt){var bt=Za(180),Pt=[];return iu(xt).forEach(function(te,Ce){if(Ce===0){var $e=te[0];if($e.type===20&&["top","left","right","bottom"].indexOf($e.value)!==-1){bt=ru(te);return}else if(Ks($e)){bt=(ss.parse(Bt,$e)+Za(270))%Za(360);return}}var Cn=Je(Bt,te);Pt.push(Cn)}),{angle:bt,stops:Pt,type:1}},ma=function(Bt,xt){var bt=Za(180),Pt=[],te=1,Ce=0,$e=3,Cn=[];return iu(xt).forEach(function(rn,hi){var gi=rn[0];if(hi===0){if(ga(gi)&&gi.value==="linear"){te=1;return}else if(ga(gi)&&gi.value==="radial"){te=2;return}}if(gi.type===18){if(gi.name==="from"){var Qi=ka.parse(Bt,gi.values[0]);Pt.push({stop:tu,color:Qi})}else if(gi.name==="to"){var Qi=ka.parse(Bt,gi.values[0]);Pt.push({stop:ph,color:Qi})}else if(gi.name==="color-stop"){var pt=gi.values.filter(Iu);if(pt.length===2){var Qi=ka.parse(Bt,pt[1]),Lt=pt[0];bo(Lt)&&Pt.push({stop:{type:16,number:Lt.number*100,flags:Lt.flags},color:Qi})}}}}),te===1?{angle:(bt+Za(180))%Za(360),stops:Pt,type:te}:{size:$e,shape:Ce,stops:Pt,position:Cn,type:te}},Xo="closest-side",Cu="farthest-side",th="closest-corner",sl="farthest-corner",Ms="circle",kl="ellipse",zu="cover",Ua="contain",mh=function(Bt,xt){var bt=0,Pt=3,te=[],Ce=[];return iu(xt).forEach(function($e,Cn){var rn=!0;if(Cn===0){var hi=!1;rn=$e.reduce(function(Qi,pt){if(hi)if(ga(pt))switch(pt.value){case"center":return Ce.push(kc),Qi;case"top":case"left":return Ce.push(tu),Qi;case"right":case"bottom":return Ce.push(ph),Qi}else(fo(pt)||Nl(pt))&&Ce.push(pt);else if(ga(pt))switch(pt.value){case Ms:return bt=0,!1;case kl:return bt=1,!1;case"at":return hi=!0,!1;case Xo:return Pt=0,!1;case zu:case Cu:return Pt=1,!1;case Ua:case th:return Pt=2,!1;case sl:return Pt=3,!1}else if(Nl(pt)||fo(pt))return Array.isArray(Pt)||(Pt=[]),Pt.push(pt),!1;return Qi},rn)}if(rn){var gi=Je(Bt,$e);te.push(gi)}}),{size:Pt,shape:bt,stops:te,position:Ce,type:2}},Vl=function(Bt,xt){var bt=0,Pt=3,te=[],Ce=[];return iu(xt).forEach(function($e,Cn){var rn=!0;if(Cn===0?rn=$e.reduce(function(gi,Qi){if(ga(Qi))switch(Qi.value){case"center":return Ce.push(kc),!1;case"top":case"left":return Ce.push(tu),!1;case"right":case"bottom":return Ce.push(ph),!1}else if(fo(Qi)||Nl(Qi))return Ce.push(Qi),!1;return gi},rn):Cn===1&&(rn=$e.reduce(function(gi,Qi){if(ga(Qi))switch(Qi.value){case Ms:return bt=0,!1;case kl:return bt=1,!1;case Ua:case Xo:return Pt=0,!1;case Cu:return Pt=1,!1;case th:return Pt=2,!1;case zu:case sl:return Pt=3,!1}else if(Nl(Qi)||fo(Qi))return Array.isArray(Pt)||(Pt=[]),Pt.push(Qi),!1;return gi},rn)),rn){var hi=Je(Bt,$e);te.push(hi)}}),{size:Pt,shape:bt,stops:te,position:Ce,type:2}},gc=function(Bt){return Bt.type===1},na=function(Bt){return Bt.type===2},Pu={name:"image",parse:function(Bt,xt){if(xt.type===22){var bt={url:xt.value,type:0};return Bt.cache.addImage(xt.value),bt}if(xt.type===18){var Pt=Oa[xt.name];if(typeof Pt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+xt.name+'"');return Pt(Bt,xt.values)}throw new Error("Unsupported image type "+xt.type)}};function $s(Bt){return!(Bt.type===20&&Bt.value==="none")&&(Bt.type!==18||!!Oa[Bt.name])}var Oa={"linear-gradient":gf,"-moz-linear-gradient":Oc,"-ms-linear-gradient":Oc,"-o-linear-gradient":Oc,"-webkit-linear-gradient":Oc,"radial-gradient":mh,"-moz-radial-gradient":Vl,"-ms-radial-gradient":Vl,"-o-radial-gradient":Vl,"-webkit-radial-gradient":Vl,"-webkit-gradient":ma},Ja={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){if(xt.length===0)return[];var bt=xt[0];return bt.type===20&&bt.value==="none"?[]:xt.filter(function(Pt){return Iu(Pt)&&$s(Pt)}).map(function(Pt){return Pu.parse(Bt,Pt)})}},vl={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Bt,xt){return xt.map(function(bt){if(ga(bt))switch(bt.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Bt,xt){return iu(xt).map(function(bt){return bt.filter(fo)}).map($c)}},gt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Bt,xt){return iu(xt).map(function(bt){return bt.filter(ga).map(function(Pt){return Pt.value}).join(" ")}).map(yt)}},yt=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}},Ft;(function(Bt){Bt.AUTO="auto",Bt.CONTAIN="contain",Bt.COVER="cover"})(Ft||(Ft={}));var Ut={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Bt,xt){return iu(xt).map(function(bt){return bt.filter(Ot)})}},Ot=function(Bt){return ga(Bt)||fo(Bt)},Xt=function(Bt){return{name:"border-"+Bt+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Jt=Xt("top"),ne=Xt("right"),Be=Xt("bottom"),Re=Xt("left"),He=function(Bt){return{name:"border-radius-"+Bt,initialValue:"0 0",prefix:!1,type:1,parse:function(xt,bt){return $c(bt.filter(fo))}}},Ze=He("top-left"),pe=He("top-right"),jn=He("bottom-right"),Sn=He("bottom-left"),Rn=function(Bt){return{name:"border-"+Bt+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(xt,bt){switch(bt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},on=Rn("top"),On=Rn("right"),mi=Rn("bottom"),Di=Rn("left"),qi=function(Bt){return{name:"border-"+Bt+"-width",initialValue:"0",type:0,prefix:!1,parse:function(xt,bt){return Gl(bt)?bt.number:0}}},Ir=qi("top"),Wi=qi("right"),ai=qi("bottom"),Xi=qi("left"),gr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"rtl":return 1;case"ltr":default:return 0}}},Ln={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Bt,xt){return xt.filter(ga).reduce(function(bt,Pt){return bt|wi(Pt.value)},0)}},wi=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},si={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}},Ar={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}},_i;(function(Bt){Bt.NORMAL="normal",Bt.STRICT="strict"})(_i||(_i={}));var dr={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"strict":return _i.STRICT;case"normal":default:return _i.NORMAL}}},Mi={name:"line-height",initialValue:"normal",prefix:!1,type:4},tr=function(Bt,xt){return ga(Bt)&&Bt.value==="normal"?1.2*xt:Bt.type===17?xt*Bt.number:fo(Bt)?Sa(Bt,xt):xt},fr={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Bt,xt){return xt.type===20&&xt.value==="none"?null:Pu.parse(Bt,xt)}},so={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}}},tn={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}}},En=function(Bt){return{name:"margin-"+Bt,initialValue:"0",prefix:!1,type:4}},$n=En("top"),fi=En("right"),ki=En("bottom"),Ki=En("left"),ir={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Bt,xt){return xt.filter(ga).map(function(bt){switch(bt.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ji={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"}}},Kr=function(Bt){return{name:"padding-"+Bt,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},no=Kr("top"),Io=Kr("right"),Lo=Kr("bottom"),Fs=Kr("left"),rr={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}}},_n={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}},Is={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){return xt.length===1&&ql(xt[0],"none")?[]:iu(xt).map(function(bt){for(var Pt={color:_h.TRANSPARENT,offsetX:tu,offsetY:tu,blur:tu},te=0,Ce=0;Ce<bt.length;Ce++){var $e=bt[Ce];Nl($e)?(te===0?Pt.offsetX=$e:te===1?Pt.offsetY=$e:Pt.blur=$e,te++):Pt.color=ka.parse(Bt,$e)}return Pt})}},Wo={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}},zr={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 bt=xo[xt.name];if(typeof bt=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+xt.name+'"');return bt(xt.values)}return null}},ro=function(Bt){var xt=Bt.filter(function(bt){return bt.type===17}).map(function(bt){return bt.number});return xt.length===6?xt:null},qr=function(Bt){var xt=Bt.filter(function(rn){return rn.type===17}).map(function(rn){return rn.number}),bt=xt[0],Pt=xt[1];xt[2],xt[3];var te=xt[4],Ce=xt[5];xt[6],xt[7],xt[8],xt[9],xt[10],xt[11];var $e=xt[12],Cn=xt[13];return xt[14],xt[15],xt.length===16?[bt,Pt,te,Ce,$e,Cn]:null},xo={matrix:ro,matrix3d:qr},$o={type:16,number:50,flags:Si},ls=[$o,$o],bs={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Bt,xt){var bt=xt.filter(fo);return bt.length!==2?ls:[bt[0],bt[1]]}},Zo={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}}},js;(function(Bt){Bt.NORMAL="normal",Bt.BREAK_ALL="break-all",Bt.KEEP_ALL="keep-all"})(js||(js={}));for(var Fa={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Bt,xt){switch(xt){case"break-all":return js.BREAK_ALL;case"keep-all":return js.KEEP_ALL;case"normal":default:return js.NORMAL}}},xs={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")}},qs={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")}},Ro={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Bt,xt){return bo(xt)?xt.number:1}},Au={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ea={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Bt,xt){return xt.filter(ga).map(function(bt){switch(bt.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(bt){return bt!==0})}},ds={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Bt,xt){var bt=[],Pt=[];return xt.forEach(function(te){switch(te.type){case 20:case 0:bt.push(te.value);break;case 17:bt.push(te.number.toString());break;case 4:Pt.push(bt.join(" ")),bt.length=0;break}}),bt.length&&Pt.push(bt.join(" ")),Pt.map(function(te){return te.indexOf(" ")===-1?te:"'"+te+"'"})}},$a={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Il={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Bt,xt){if(bo(xt))return xt.number;if(ga(xt))switch(xt.value){case"bold":return 700;case"normal":default:return 400}return 400}},Gh={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){return xt.filter(ga).map(function(bt){return bt.value})}},ha={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"}}},yl=function(Bt,xt){return(Bt&xt)!==0},Tl={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){if(xt.length===0)return[];var bt=xt[0];return bt.type===20&&bt.value==="none"?[]:xt}},PA={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Bt,xt){if(xt.length===0)return null;var bt=xt[0];if(bt.type===20&&bt.value==="none")return null;for(var Pt=[],te=xt.filter(Kl),Ce=0;Ce<te.length;Ce++){var $e=te[Ce],Cn=te[Ce+1];if($e.type===20){var rn=Cn&&bo(Cn)?Cn.number:1;Pt.push({counter:$e.value,increment:rn})}}return Pt}},Ih={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Bt,xt){if(xt.length===0)return[];for(var bt=[],Pt=xt.filter(Kl),te=0;te<Pt.length;te++){var Ce=Pt[te],$e=Pt[te+1];if(ga(Ce)&&Ce.value!=="none"){var Cn=$e&&bo($e)?$e.number:0;bt.push({counter:Ce.value,reset:Cn})}}return bt}},Ol={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Bt,xt){return xt.filter(Gl).map(function(bt){return qs.parse(Bt,bt)})}},Ts={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Bt,xt){if(xt.length===0)return null;var bt=xt[0];if(bt.type===20&&bt.value==="none")return null;var Pt=[],te=xt.filter(Ta);if(te.length%2!==0)return null;for(var Ce=0;Ce<te.length;Ce+=2){var $e=te[Ce].value,Cn=te[Ce+1].value;Pt.push({open:$e,close:Cn})}return Pt}},Da=function(Bt,xt,bt){if(!Bt)return"";var Pt=Bt[Math.min(xt,Bt.length-1)];return Pt?bt?Pt.open:Pt.close:""},bA={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Bt,xt){return xt.length===1&&ql(xt[0],"none")?[]:iu(xt).map(function(bt){for(var Pt={color:255,offsetX:tu,offsetY:tu,blur:tu,spread:tu,inset:!1},te=0,Ce=0;Ce<bt.length;Ce++){var $e=bt[Ce];ql($e,"inset")?Pt.inset=!0:Nl($e)?(te===0?Pt.offsetX=$e:te===1?Pt.offsetY=$e:te===2?Pt.blur=$e:Pt.spread=$e,te++):Pt.color=ka.parse(Bt,$e)}return Pt})}},bu={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Bt,xt){var bt=[0,1,2],Pt=[];return xt.filter(ga).forEach(function(te){switch(te.value){case"stroke":Pt.push(1);break;case"fill":Pt.push(0);break;case"markers":Pt.push(2);break}}),bt.forEach(function(te){Pt.indexOf(te)===-1&&Pt.push(te)}),Pt}},Th={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vh={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Bt,xt){return Gl(xt)?xt.number:0}},gs=function(){function Bt(xt,bt){var Pt,te;this.animationDuration=Bo(xt,Ol,bt.animationDuration),this.backgroundClip=Bo(xt,mo,bt.backgroundClip),this.backgroundColor=Bo(xt,zf,bt.backgroundColor),this.backgroundImage=Bo(xt,Ja,bt.backgroundImage),this.backgroundOrigin=Bo(xt,vl,bt.backgroundOrigin),this.backgroundPosition=Bo(xt,wt,bt.backgroundPosition),this.backgroundRepeat=Bo(xt,gt,bt.backgroundRepeat),this.backgroundSize=Bo(xt,Ut,bt.backgroundSize),this.borderTopColor=Bo(xt,Jt,bt.borderTopColor),this.borderRightColor=Bo(xt,ne,bt.borderRightColor),this.borderBottomColor=Bo(xt,Be,bt.borderBottomColor),this.borderLeftColor=Bo(xt,Re,bt.borderLeftColor),this.borderTopLeftRadius=Bo(xt,Ze,bt.borderTopLeftRadius),this.borderTopRightRadius=Bo(xt,pe,bt.borderTopRightRadius),this.borderBottomRightRadius=Bo(xt,jn,bt.borderBottomRightRadius),this.borderBottomLeftRadius=Bo(xt,Sn,bt.borderBottomLeftRadius),this.borderTopStyle=Bo(xt,on,bt.borderTopStyle),this.borderRightStyle=Bo(xt,On,bt.borderRightStyle),this.borderBottomStyle=Bo(xt,mi,bt.borderBottomStyle),this.borderLeftStyle=Bo(xt,Di,bt.borderLeftStyle),this.borderTopWidth=Bo(xt,Ir,bt.borderTopWidth),this.borderRightWidth=Bo(xt,Wi,bt.borderRightWidth),this.borderBottomWidth=Bo(xt,ai,bt.borderBottomWidth),this.borderLeftWidth=Bo(xt,Xi,bt.borderLeftWidth),this.boxShadow=Bo(xt,bA,bt.boxShadow),this.color=Bo(xt,gr,bt.color),this.direction=Bo(xt,yn,bt.direction),this.display=Bo(xt,Ln,bt.display),this.float=Bo(xt,si,bt.cssFloat),this.fontFamily=Bo(xt,ds,bt.fontFamily),this.fontSize=Bo(xt,$a,bt.fontSize),this.fontStyle=Bo(xt,ha,bt.fontStyle),this.fontVariant=Bo(xt,Gh,bt.fontVariant),this.fontWeight=Bo(xt,Il,bt.fontWeight),this.letterSpacing=Bo(xt,Ar,bt.letterSpacing),this.lineBreak=Bo(xt,dr,bt.lineBreak),this.lineHeight=Bo(xt,Mi,bt.lineHeight),this.listStyleImage=Bo(xt,fr,bt.listStyleImage),this.listStylePosition=Bo(xt,so,bt.listStylePosition),this.listStyleType=Bo(xt,tn,bt.listStyleType),this.marginTop=Bo(xt,$n,bt.marginTop),this.marginRight=Bo(xt,fi,bt.marginRight),this.marginBottom=Bo(xt,ki,bt.marginBottom),this.marginLeft=Bo(xt,Ki,bt.marginLeft),this.opacity=Bo(xt,Ro,bt.opacity);var Ce=Bo(xt,ir,bt.overflow);this.overflowX=Ce[0],this.overflowY=Ce[Ce.length>1?1:0],this.overflowWrap=Bo(xt,ji,bt.overflowWrap),this.paddingTop=Bo(xt,no,bt.paddingTop),this.paddingRight=Bo(xt,Io,bt.paddingRight),this.paddingBottom=Bo(xt,Lo,bt.paddingBottom),this.paddingLeft=Bo(xt,Fs,bt.paddingLeft),this.paintOrder=Bo(xt,bu,bt.paintOrder),this.position=Bo(xt,_n,bt.position),this.textAlign=Bo(xt,rr,bt.textAlign),this.textDecorationColor=Bo(xt,Au,(Pt=bt.textDecorationColor)!==null&&Pt!==void 0?Pt:bt.color),this.textDecorationLine=Bo(xt,Ea,(te=bt.textDecorationLine)!==null&&te!==void 0?te:bt.textDecoration),this.textShadow=Bo(xt,Is,bt.textShadow),this.textTransform=Bo(xt,Wo,bt.textTransform),this.transform=Bo(xt,zr,bt.transform),this.transformOrigin=Bo(xt,bs,bt.transformOrigin),this.visibility=Bo(xt,Zo,bt.visibility),this.webkitTextStrokeColor=Bo(xt,Th,bt.webkitTextStrokeColor),this.webkitTextStrokeWidth=Bo(xt,vh,bt.webkitTextStrokeWidth),this.wordBreak=Bo(xt,Fa,bt.wordBreak),this.zIndex=Bo(xt,xs,bt.zIndex)}return Bt.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Bt.prototype.isTransparent=function(){return pa(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 yl(this.display,4)||yl(this.display,33554432)||yl(this.display,268435456)||yl(this.display,536870912)||yl(this.display,67108864)||yl(this.display,134217728)},Bt}(),xl=function(){function Bt(xt,bt){this.content=Bo(xt,Tl,bt.content),this.quotes=Bo(xt,Ts,bt.quotes)}return Bt}(),Su=function(){function Bt(xt,bt){this.counterIncrement=Bo(xt,PA,bt.counterIncrement),this.counterReset=Bo(xt,Ih,bt.counterReset)}return Bt}(),Bo=function(Bt,xt,bt){var Pt=new Ml,te=bt!==null&&typeof bt!="undefined"?bt.toString():xt.initialValue;Pt.write(te);var Ce=new $u(Pt.read());switch(xt.type){case 2:var $e=Ce.parseComponentValue();return xt.parse(Bt,ga($e)?$e.value:xt.initialValue);case 0:return xt.parse(Bt,Ce.parseComponentValue());case 1:return xt.parse(Bt,Ce.parseComponentValues());case 4:return Ce.parseComponentValue();case 3:switch(xt.format){case"angle":return ss.parse(Bt,Ce.parseComponentValue());case"color":return ka.parse(Bt,Ce.parseComponentValue());case"image":return Pu.parse(Bt,Ce.parseComponentValue());case"length":var Cn=Ce.parseComponentValue();return Nl(Cn)?Cn:tu;case"length-percentage":var rn=Ce.parseComponentValue();return fo(rn)?rn:tu;case"time":return qs.parse(Bt,Ce.parseComponentValue())}break}},Bl="data-html2canvas-debug",eu=function(Bt){var xt=Bt.getAttribute(Bl);switch(xt){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ku=function(Bt,xt){var bt=eu(Bt);return bt===1||xt===bt},eh=function(){function Bt(xt,bt){if(this.context=xt,this.textNodes=[],this.elements=[],this.flags=0,ku(bt,3))debugger;this.styles=new gs(xt,window.getComputedStyle(bt,null)),Ri(bt)&&(this.styles.animationDuration.some(function(Pt){return Pt>0})&&(bt.style.animationDuration="0s"),this.styles.transform!==null&&(bt.style.transform="none")),this.bounds=We(this.context,bt),ku(bt,4)&&(this.flags|=16)}return Bt}(),nh="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ih=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_u=0;_u<Ou.length;_u++)ih[Ou.charCodeAt(_u)]=_u;for(var Cl=function(Bt){var xt=Bt.length*.75,bt=Bt.length,Pt,te=0,Ce,$e,Cn,rn;Bt[Bt.length-1]==="="&&(xt--,Bt[Bt.length-2]==="="&&xt--);var hi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xt):new Array(xt),gi=Array.isArray(hi)?hi:new Uint8Array(hi);for(Pt=0;Pt<bt;Pt+=4)Ce=ih[Bt.charCodeAt(Pt)],$e=ih[Bt.charCodeAt(Pt+1)],Cn=ih[Bt.charCodeAt(Pt+2)],rn=ih[Bt.charCodeAt(Pt+3)],gi[te++]=Ce<<2|$e>>4,gi[te++]=($e&15)<<4|Cn>>2,gi[te++]=(Cn&3)<<6|rn&63;return hi},Du=function(Bt){for(var xt=Bt.length,bt=[],Pt=0;Pt<xt;Pt+=2)bt.push(Bt[Pt+1]<<8|Bt[Pt]);return bt},sA=function(Bt){for(var xt=Bt.length,bt=[],Pt=0;Pt<xt;Pt+=4)bt.push(Bt[Pt+3]<<24|Bt[Pt+2]<<16|Bt[Pt+1]<<8|Bt[Pt]);return bt},Gu=5,aA=11,rh=2,_A=aA-Gu,pc=65536>>Gu,Pl=1<<Gu,mc=Pl-1,GA=1024>>Gu,lA=pc+GA,Dc=lA,Zd=32,KA=Dc+Zd,pf=65536>>aA,WA=1<<_A,yh=WA-1,jc=function(Bt,xt,bt){return Bt.slice?Bt.slice(xt,bt):new Uint16Array(Array.prototype.slice.call(Bt,xt,bt))},Jd=function(Bt,xt,bt){return Bt.slice?Bt.slice(xt,bt):new Uint32Array(Array.prototype.slice.call(Bt,xt,bt))},bl=function(Bt,xt){var bt=Cl(Bt),Pt=Array.isArray(bt)?sA(bt):new Uint32Array(bt),te=Array.isArray(bt)?Du(bt):new Uint16Array(bt),Ce=24,$e=jc(te,Ce/2,Pt[4]/2),Cn=Pt[5]===2?jc(te,(Ce+Pt[4])/2):Jd(Pt,Math.ceil((Ce+Pt[4])/4));return new vc(Pt[0],Pt[1],Pt[2],Pt[3],$e,Cn)},vc=function(){function Bt(xt,bt,Pt,te,Ce,$e){this.initialValue=xt,this.errorValue=bt,this.highStart=Pt,this.highValueIndex=te,this.index=Ce,this.data=$e}return Bt.prototype.get=function(xt){var bt;if(xt>=0){if(xt<55296||xt>56319&&xt<=65535)return bt=this.index[xt>>Gu],bt=(bt<<rh)+(xt&mc),this.data[bt];if(xt<=65535)return bt=this.index[pc+(xt-55296>>Gu)],bt=(bt<<rh)+(xt&mc),this.data[bt];if(xt<this.highStart)return bt=KA-pf+(xt>>aA),bt=this.index[bt],bt+=xt>>Gu&yh,bt=this.index[bt],bt=(bt<<rh)+(xt&mc),this.data[bt];if(xt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Bt}(),qa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uA=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),yc=0;yc<qa.length;yc++)uA[qa.charCodeAt(yc)]=yc;var Cd=1,kh=2,un=3,cu=4,wh=5,$d=7,Pd=8,ed=9,nd=10,qd=11,ou=12,VA=13,bd=14,Ld=15,mf=function(Bt){for(var xt=[],bt=0,Pt=Bt.length;bt<Pt;){var te=Bt.charCodeAt(bt++);if(te>=55296&&te<=56319&&bt<Pt){var Ce=Bt.charCodeAt(bt++);(Ce&64512)===56320?xt.push(((te&1023)<<10)+(Ce&1023)+65536):(xt.push(te),bt--)}else xt.push(te)}return xt},YA=function(){for(var Bt=[],xt=0;xt<arguments.length;xt++)Bt[xt]=arguments[xt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Bt);var bt=Bt.length;if(!bt)return"";for(var Pt=[],te=-1,Ce="";++te<bt;){var $e=Bt[te];$e<=65535?Pt.push($e):($e-=65536,Pt.push(($e>>10)+55296,$e%1024+56320)),(te+1===bt||Pt.length>16384)&&(Ce+=String.fromCharCode.apply(String,Pt),Pt.length=0)}return Ce},id=bl(nh),Lu="\xD7",Fu="\xF7",du=function(Bt){return id.get(Bt)},tf=function(Bt,xt,bt){var Pt=bt-2,te=xt[Pt],Ce=xt[bt-1],$e=xt[bt];if(Ce===kh&&$e===un)return Lu;if(Ce===kh||Ce===un||Ce===cu||$e===kh||$e===un||$e===cu)return Fu;if(Ce===Pd&&[Pd,ed,qd,ou].indexOf($e)!==-1||(Ce===qd||Ce===ed)&&($e===ed||$e===nd)||(Ce===ou||Ce===nd)&&$e===nd||$e===VA||$e===wh||$e===$d||Ce===Cd)return Lu;if(Ce===VA&&$e===bd){for(;te===wh;)te=xt[--Pt];if(te===bd)return Lu}if(Ce===Ld&&$e===Ld){for(var Cn=0;te===Ld;)Cn++,te=xt[--Pt];if(Cn%2===0)return Lu}return Fu},Kh=function(Bt){var xt=mf(Bt),bt=xt.length,Pt=0,te=0,Ce=xt.map(du);return{next:function(){if(Pt>=bt)return{done:!0,value:null};for(var $e=Lu;Pt<bt&&($e=tf(xt,Ce,++Pt))===Lu;);if($e!==Lu||Pt===bt){var Cn=YA.apply(null,xt.slice(te,Pt));return te=Pt,{value:Cn,done:!1}}return{done:!0,value:null}}}},ks=function(Bt){for(var xt=Kh(Bt),bt=[],Pt;!(Pt=xt.next()).done;)Pt.value&&bt.push(Pt.value.slice());return bt},Fd=function(Bt){var xt=123;if(Bt.createRange){var bt=Bt.createRange();if(bt.getBoundingClientRect){var Pt=Bt.createElement("boundtest");Pt.style.height=xt+"px",Pt.style.display="block",Bt.body.appendChild(Pt),bt.selectNode(Pt);var te=bt.getBoundingClientRect(),Ce=Math.round(te.height);if(Bt.body.removeChild(Pt),Ce===xt)return!0}}return!1},rd=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 bt=Bt.createRange();xt.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var Pt=xt.firstChild,te=de(Pt.data).map(function(rn){return ve(rn)}),Ce=0,$e={},Cn=te.every(function(rn,hi){bt.setStart(Pt,Ce),bt.setEnd(Pt,Ce+rn.length);var gi=bt.getBoundingClientRect();Ce+=rn.length;var Qi=gi.x>$e.x||gi.y>$e.y;return $e=gi,hi===0?!0:Qi});return Bt.body.removeChild(xt),Cn},Yl=function(){return typeof new Image().crossOrigin!="undefined"},Ed=function(){return typeof new XMLHttpRequest().responseType=="string"},Md=function(Bt){var xt=new Image,bt=Bt.createElement("canvas"),Pt=bt.getContext("2d");if(!Pt)return!1;xt.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Pt.drawImage(xt,0,0),bt.toDataURL()}catch(te){return!1}return!0},Eu=function(Bt){return Bt[0]===0&&Bt[1]===255&&Bt[2]===0&&Bt[3]===255},XA=function(Bt){var xt=Bt.createElement("canvas"),bt=100;xt.width=bt,xt.height=bt;var Pt=xt.getContext("2d");if(!Pt)return Promise.reject(!1);Pt.fillStyle="rgb(0, 255, 0)",Pt.fillRect(0,0,bt,bt);var te=new Image,Ce=xt.toDataURL();te.src=Ce;var $e=od(bt,bt,0,0,te);return Pt.fillStyle="red",Pt.fillRect(0,0,bt,bt),ef($e).then(function(Cn){Pt.drawImage(Cn,0,0);var rn=Pt.getImageData(0,0,bt,bt).data;Pt.fillStyle="red",Pt.fillRect(0,0,bt,bt);var hi=Bt.createElement("div");return hi.style.backgroundImage="url("+Ce+")",hi.style.height=bt+"px",Eu(rn)?ef(od(bt,bt,0,0,hi)):Promise.reject(!1)}).then(function(Cn){return Pt.drawImage(Cn,0,0),Eu(Pt.getImageData(0,0,bt,bt).data)}).catch(function(){return!1})},od=function(Bt,xt,bt,Pt,te){var Ce="http://www.w3.org/2000/svg",$e=document.createElementNS(Ce,"svg"),Cn=document.createElementNS(Ce,"foreignObject");return $e.setAttributeNS(null,"width",Bt.toString()),$e.setAttributeNS(null,"height",xt.toString()),Cn.setAttributeNS(null,"width","100%"),Cn.setAttributeNS(null,"height","100%"),Cn.setAttributeNS(null,"x",bt.toString()),Cn.setAttributeNS(null,"y",Pt.toString()),Cn.setAttributeNS(null,"externalResourcesRequired","true"),$e.appendChild(Cn),Cn.appendChild(te),$e},ef=function(Bt){return new Promise(function(xt,bt){var Pt=new Image;Pt.onload=function(){return xt(Pt)},Pt.onerror=bt,Pt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Bt))})},Dl={get SUPPORT_RANGE_BOUNDS(){var Bt=Fd(document);return Object.defineProperty(Dl,"SUPPORT_RANGE_BOUNDS",{value:Bt}),Bt},get SUPPORT_WORD_BREAKING(){var Bt=Dl.SUPPORT_RANGE_BOUNDS&&rd(document);return Object.defineProperty(Dl,"SUPPORT_WORD_BREAKING",{value:Bt}),Bt},get SUPPORT_SVG_DRAWING(){var Bt=Md(document);return Object.defineProperty(Dl,"SUPPORT_SVG_DRAWING",{value:Bt}),Bt},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Bt=typeof Array.from=="function"&&typeof window.fetch=="function"?XA(document):Promise.resolve(!1);return Object.defineProperty(Dl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Bt}),Bt},get SUPPORT_CORS_IMAGES(){var Bt=Yl();return Object.defineProperty(Dl,"SUPPORT_CORS_IMAGES",{value:Bt}),Bt},get SUPPORT_RESPONSE_TYPE(){var Bt=Ed();return Object.defineProperty(Dl,"SUPPORT_RESPONSE_TYPE",{value:Bt}),Bt},get SUPPORT_CORS_XHR(){var Bt="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Dl,"SUPPORT_CORS_XHR",{value:Bt}),Bt},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Bt=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Dl,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Bt}),Bt}},nu=function(){function Bt(xt,bt){this.text=xt,this.bounds=bt}return Bt}(),wc=function(Bt,xt,bt,Pt){var te=LA(xt,bt),Ce=[],$e=0;return te.forEach(function(Cn){if(bt.textDecorationLine.length||Cn.trim().length>0)if(Dl.SUPPORT_RANGE_BOUNDS){var rn=Uc(Pt,$e,Cn.length).getClientRects();if(rn.length>1){var hi=hA(Cn),gi=0;hi.forEach(function(pt){Ce.push(new nu(pt,Se.fromDOMRectList(Bt,Uc(Pt,gi+$e,pt.length).getClientRects()))),gi+=pt.length})}else Ce.push(new nu(Cn,Se.fromDOMRectList(Bt,rn)))}else{var Qi=Pt.splitText(Cn.length);Ce.push(new nu(Cn,tl(Bt,Pt))),Pt=Qi}else Dl.SUPPORT_RANGE_BOUNDS||(Pt=Pt.splitText(Cn.length));$e+=Cn.length}),Ce},tl=function(Bt,xt){var bt=xt.ownerDocument;if(bt){var Pt=bt.createElement("html2canvaswrapper");Pt.appendChild(xt.cloneNode(!0));var te=xt.parentNode;if(te){te.replaceChild(Pt,xt);var Ce=We(Bt,Pt);return Pt.firstChild&&te.replaceChild(Pt.firstChild,Pt),Ce}}return Se.EMPTY},Uc=function(Bt,xt,bt){var Pt=Bt.ownerDocument;if(!Pt)throw new Error("Node has no owner document");var te=Pt.createRange();return te.setStart(Bt,xt),te.setEnd(Bt,xt+bt),te},hA=function(Bt){if(Dl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var xt=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(xt.segment(Bt)).map(function(bt){return bt.segment})}return ks(Bt)},AA=function(Bt,xt){if(Dl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var bt=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(bt.segment(Bt)).map(function(Pt){return Pt.segment})}return Nd(Bt,xt)},LA=function(Bt,xt){return xt.letterSpacing!==0?hA(Bt):AA(Bt,xt)},Sc=[32,160,4961,65792,65793,4153,4241],Nd=function(Bt,xt){for(var bt=qe(Bt,{lineBreak:xt.lineBreak,wordBreak:xt.overflowWrap==="break-word"?"break-word":xt.wordBreak}),Pt=[],te,Ce=function(){if(te.value){var $e=te.value.slice(),Cn=de($e),rn="";Cn.forEach(function(hi){Sc.indexOf(hi)===-1?rn+=ve(hi):(rn.length&&Pt.push(rn),Pt.push(ve(hi)),rn="")}),rn.length&&Pt.push(rn)}};!(te=bt.next()).done;)Ce();return Pt},xc=function(){function Bt(xt,bt,Pt){this.text=Id(bt.data,Pt.textTransform),this.textBounds=wc(xt,this.text,Pt,bt)}return Bt}(),Id=function(Bt,xt){switch(xt){case 1:return Bt.toLowerCase();case 3:return Bt.replace(Mu,Sh);case 2:return Bt.toUpperCase();default:return Bt}},Mu=/(^|\s|:|-|\(|\))([a-z])/g,Sh=function(Bt,xt,bt){return Bt.length>0?xt+bt.toUpperCase():Bt},sd=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;return te.src=Pt.currentSrc||Pt.src,te.intrinsicWidth=Pt.naturalWidth,te.intrinsicHeight=Pt.naturalHeight,te.context.cache.addImage(te.src),te}return xt}(eh),cA=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;return te.canvas=Pt,te.intrinsicWidth=Pt.width,te.intrinsicHeight=Pt.height,te}return xt}(eh),xh=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this,Ce=new XMLSerializer,$e=We(bt,Pt);return Pt.setAttribute("width",$e.width+"px"),Pt.setAttribute("height",$e.height+"px"),te.svg="data:image/svg+xml,"+encodeURIComponent(Ce.serializeToString(Pt)),te.intrinsicWidth=Pt.width.baseVal.value,te.intrinsicHeight=Pt.height.baseVal.value,te.context.cache.addImage(te.svg),te}return xt}(eh),dA=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;return te.value=Pt.value,te}return xt}(eh),FA=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;return te.start=Pt.start,te.reversed=typeof Pt.reversed=="boolean"&&Pt.reversed===!0,te}return xt}(eh),nf=[{type:15,flags:0,unit:"px",number:3}],Qc=[{type:16,flags:0,number:50}],Wh=function(Bt){return Bt.width>Bt.height?new Se(Bt.left+(Bt.width-Bt.height)/2,Bt.top,Bt.height,Bt.height):Bt.width<Bt.height?new Se(Bt.left,Bt.top+(Bt.height-Bt.width)/2,Bt.width,Bt.width):Bt},Td=function(Bt){var xt=Bt.type===gA?new Array(Bt.value.length+1).join("\u2022"):Bt.value;return xt.length===0?Bt.placeholder||"":xt},ZA="checkbox",fA="radio",gA="password",Rc=707406591,Ku=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;switch(te.type=Pt.type.toLowerCase(),te.checked=Pt.checked,te.value=Td(Pt),(te.type===ZA||te.type===fA)&&(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=Wh(te.bounds)),te.type){case ZA:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=nf;break;case fA:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=Qc;break}return te}return xt}(eh),ad=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this,Ce=Pt.options[Pt.selectedIndex||0];return te.value=Ce&&Ce.text||"",te}return xt}(eh),ld=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;return te.value=Pt.value,te}return xt}(eh),Hc=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;te.src=Pt.src,te.width=parseInt(Pt.width,10)||0,te.height=parseInt(Pt.height,10)||0,te.backgroundColor=te.styles.backgroundColor;try{if(Pt.contentWindow&&Pt.contentWindow.document&&Pt.contentWindow.document.documentElement){te.tree=ud(bt,Pt.contentWindow.document.documentElement);var Ce=Pt.contentWindow.document.documentElement?fc(bt,getComputedStyle(Pt.contentWindow.document.documentElement).backgroundColor):_h.TRANSPARENT,$e=Pt.contentWindow.document.body?fc(bt,getComputedStyle(Pt.contentWindow.document.body).backgroundColor):_h.TRANSPARENT;te.backgroundColor=pa(Ce)?pa($e)?te.styles.backgroundColor:$e:Ce}}catch(Cn){}return te}return xt}(eh),Bc=["OL","UL","MENU"],JA=function(Bt,xt,bt,Pt){for(var te=xt.firstChild,Ce=void 0;te;te=Ce)if(Ce=te.nextSibling,Hn(te)&&te.data.trim().length>0)bt.textNodes.push(new xc(Bt,te,bt.styles));else if(ci(te))if(hd(te)&&te.assignedNodes)te.assignedNodes().forEach(function(Cn){return JA(Bt,Cn,bt,Pt)});else{var $e=Cc(Bt,te);$e.styles.isVisible()&&(Vt(te,$e,Pt)?$e.flags|=4:_e($e.styles)&&($e.flags|=2),Bc.indexOf(te.tagName)!==-1&&($e.flags|=8),bt.elements.push($e),te.slot,te.shadowRoot?JA(Bt,te.shadowRoot,$e,Pt):!ju(te)&&!Ys(te)&&!Ch(te)&&JA(Bt,te,$e,Pt))}},Cc=function(Bt,xt){return oa(xt)?new sd(Bt,xt):fl(xt)?new cA(Bt,xt):Ys(xt)?new xh(Bt,xt):Qr(xt)?new dA(Bt,xt):_o(xt)?new FA(Bt,xt):vs(xt)?new Ku(Bt,xt):Ch(xt)?new ad(Bt,xt):ju(xt)?new ld(Bt,xt):Xa(xt)?new Hc(Bt,xt):new eh(Bt,xt)},ud=function(Bt,xt){var bt=Cc(Bt,xt);return bt.flags|=4,JA(Bt,xt,bt,bt),bt},Vt=function(Bt,xt,bt){return xt.styles.isPositionedWithZIndex()||xt.styles.opacity<1||xt.styles.isTransformed()||Ko(Bt)&&bt.styles.isTransparent()},_e=function(Bt){return Bt.isPositioned()||Bt.isFloating()},Hn=function(Bt){return Bt.nodeType===Node.TEXT_NODE},ci=function(Bt){return Bt.nodeType===Node.ELEMENT_NODE},Ri=function(Bt){return ci(Bt)&&typeof Bt.style!="undefined"&&!cr(Bt)},cr=function(Bt){return typeof Bt.className=="object"},Qr=function(Bt){return Bt.tagName==="LI"},_o=function(Bt){return Bt.tagName==="OL"},vs=function(Bt){return Bt.tagName==="INPUT"},Vs=function(Bt){return Bt.tagName==="HTML"},Ys=function(Bt){return Bt.tagName==="svg"},Ko=function(Bt){return Bt.tagName==="BODY"},fl=function(Bt){return Bt.tagName==="CANVAS"},gl=function(Bt){return Bt.tagName==="VIDEO"},oa=function(Bt){return Bt.tagName==="IMG"},Xa=function(Bt){return Bt.tagName==="IFRAME"},jl=function(Bt){return Bt.tagName==="STYLE"},Bh=function(Bt){return Bt.tagName==="SCRIPT"},ju=function(Bt){return Bt.tagName==="TEXTAREA"},Ch=function(Bt){return Bt.tagName==="SELECT"},hd=function(Bt){return Bt.tagName==="SLOT"},zc=function(Bt){return Bt.tagName.indexOf("-")>0},Ad=function(){function Bt(){this.counters={}}return Bt.prototype.getCounterValue=function(xt){var bt=this.counters[xt];return bt&&bt.length?bt[bt.length-1]:1},Bt.prototype.getCounterValues=function(xt){var bt=this.counters[xt];return bt||[]},Bt.prototype.pop=function(xt){var bt=this;xt.forEach(function(Pt){return bt.counters[Pt].pop()})},Bt.prototype.parse=function(xt){var bt=this,Pt=xt.counterIncrement,te=xt.counterReset,Ce=!0;Pt!==null&&Pt.forEach(function(Cn){var rn=bt.counters[Cn.counter];rn&&Cn.increment!==0&&(Ce=!1,rn.length||rn.push(1),rn[Math.max(0,rn.length-1)]+=Cn.increment)});var $e=[];return Ce&&te.forEach(function(Cn){var rn=bt.counters[Cn.counter];$e.push(Cn.counter),rn||(rn=bt.counters[Cn.counter]=[]),rn.push(Cn.reset)}),$e},Bt}(),Oh={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"]},$A={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"]},pA={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"]},Ba={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"]},Ul=function(Bt,xt,bt,Pt,te,Ce){return Bt<xt||Bt>bt?ct(Bt,te,Ce.length>0):Pt.integers.reduce(function($e,Cn,rn){for(;Bt>=Cn;)Bt-=Cn,$e+=Pt.values[rn];return $e},"")+Ce},Pc=function(Bt,xt,bt,Pt){var te="";do bt||Bt--,te=Pt(Bt)+te,Bt/=xt;while(Bt*xt>=xt);return te},el=function(Bt,xt,bt,Pt,te){var Ce=bt-xt+1;return(Bt<0?"-":"")+(Pc(Math.abs(Bt),Ce,Pt,function($e){return ve(Math.floor($e%Ce)+xt)})+te)},Wu=function(Bt,xt,bt){bt===void 0&&(bt=". ");var Pt=xt.length;return Pc(Math.abs(Bt),Pt,!1,function(te){return xt[Math.floor(te%Pt)]})+bt},Dh=1,su=2,nl=4,qA=8,Vu=function(Bt,xt,bt,Pt,te,Ce){if(Bt<-9999||Bt>9999)return ct(Bt,4,te.length>0);var $e=Math.abs(Bt),Cn=te;if($e===0)return xt[0]+Cn;for(var rn=0;$e>0&&rn<=4;rn++){var hi=$e%10;hi===0&&yl(Ce,Dh)&&Cn!==""?Cn=xt[hi]+Cn:hi>1||hi===1&&rn===0||hi===1&&rn===1&&yl(Ce,su)||hi===1&&rn===1&&yl(Ce,nl)&&Bt>100||hi===1&&rn>1&&yl(Ce,qA)?Cn=xt[hi]+(rn>0?bt[rn-1]:"")+Cn:hi===1&&rn>0&&(Cn=bt[rn-1]+Cn),$e=Math.floor($e/10)}return(Bt<0?Pt:"")+Cn},fu="\u5341\u767E\u5343\u842C",EA="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",ot="\uB9C8\uC774\uB108\uC2A4",ct=function(Bt,xt,bt){var Pt=bt?". ":"",te=bt?"\u3001":"",Ce=bt?", ":"",$e=bt?" ":"";switch(xt){case 0:return"\u2022"+$e;case 1:return"\u25E6"+$e;case 2:return"\u25FE"+$e;case 5:var Cn=el(Bt,48,57,!0,Pt);return Cn.length<4?"0"+Cn:Cn;case 4:return Wu(Bt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",te);case 6:return Ul(Bt,1,3999,Oh,3,Pt).toLowerCase();case 7:return Ul(Bt,1,3999,Oh,3,Pt);case 8:return el(Bt,945,969,!1,Pt);case 9:return el(Bt,97,122,!1,Pt);case 10:return el(Bt,65,90,!1,Pt);case 11:return el(Bt,1632,1641,!0,Pt);case 12:case 49:return Ul(Bt,1,9999,$A,3,Pt);case 35:return Ul(Bt,1,9999,$A,3,Pt).toLowerCase();case 13:return el(Bt,2534,2543,!0,Pt);case 14:case 30:return el(Bt,6112,6121,!0,Pt);case 15:return Wu(Bt,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",te);case 16:return Wu(Bt,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",te);case 17:case 48:return Vu(Bt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",fu,"\u8CA0",te,su|nl|qA);case 47:return Vu(Bt,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",EA,"\u8CA0",te,Dh|su|nl|qA);case 42:return Vu(Bt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",fu,"\u8D1F",te,su|nl|qA);case 41:return Vu(Bt,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",EA,"\u8D1F",te,Dh|su|nl|qA);case 26:return Vu(Bt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,te,0);case 25:return Vu(Bt,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,te,Dh|su|nl);case 31:return Vu(Bt,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",ot,Ce,Dh|su|nl);case 33:return Vu(Bt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",ot,Ce,0);case 32:return Vu(Bt,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",ot,Ce,Dh|su|nl);case 18:return el(Bt,2406,2415,!0,Pt);case 20:return Ul(Bt,1,19999,Ba,3,Pt);case 21:return el(Bt,2790,2799,!0,Pt);case 22:return el(Bt,2662,2671,!0,Pt);case 22:return Ul(Bt,1,10999,pA,3,Pt);case 23:return Wu(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 Wu(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 el(Bt,3302,3311,!0,Pt);case 28:return Wu(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 Wu(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 el(Bt,3792,3801,!0,Pt);case 37:return el(Bt,6160,6169,!0,Pt);case 38:return el(Bt,4160,4169,!0,Pt);case 39:return el(Bt,2918,2927,!0,Pt);case 40:return el(Bt,1776,1785,!0,Pt);case 43:return el(Bt,3046,3055,!0,Pt);case 44:return el(Bt,3174,3183,!0,Pt);case 45:return el(Bt,3664,3673,!0,Pt);case 46:return el(Bt,3872,3881,!0,Pt);case 3:default:return el(Bt,48,57,!0,Pt)}},At="data-html2canvas-ignore",mt=function(){function Bt(xt,bt,Pt){if(this.context=xt,this.options=Pt,this.scrolledElements=[],this.referenceElement=bt,this.counters=new Ad,this.quoteDepth=0,!bt.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(bt.ownerDocument.documentElement,!1)}return Bt.prototype.toIFrame=function(xt,bt){var Pt=this,te=qt(xt,bt);if(!te.contentWindow)return Promise.reject("Unable to find iframe window");var Ce=xt.defaultView.pageXOffset,$e=xt.defaultView.pageYOffset,Cn=te.contentWindow,rn=Cn.document,hi=Ne(te).then(function(){return Le(Pt,void 0,void 0,function(){var gi,Qi;return Te(this,function(pt){switch(pt.label){case 0:return this.scrolledElements.forEach(Yi),Cn&&(Cn.scrollTo(bt.left,bt.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Cn.scrollY!==bt.top||Cn.scrollX!==bt.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Cn.scrollX-bt.left,Cn.scrollY-bt.top,0,0))),gi=this.options.onclone,Qi=this.clonedReferenceElement,typeof Qi=="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,ae(rn)]:[3,4];case 3:pt.sent(),pt.label=4;case 4:return typeof gi=="function"?[2,Promise.resolve().then(function(){return gi(rn,Qi)}).then(function(){return te})]:[2,te]}})})});return rn.open(),rn.write(oi(document.doctype)+"<html></html>"),Zn(this.referenceElement.ownerDocument,Ce,$e),rn.replaceChild(rn.adoptNode(this.documentElement),rn.documentElement),rn.close(),hi},Bt.prototype.createElementClone=function(xt){if(ku(xt,2))debugger;if(fl(xt))return this.createCanvasClone(xt);if(gl(xt))return this.createVideoClone(xt);if(jl(xt))return this.createStyleClone(xt);var bt=xt.cloneNode(!1);return oa(bt)&&(oa(xt)&&xt.currentSrc&&xt.currentSrc!==xt.src&&(bt.src=xt.currentSrc,bt.srcset=""),bt.loading==="lazy"&&(bt.loading="eager")),zc(bt)?this.createCustomElementClone(bt):bt},Bt.prototype.createCustomElementClone=function(xt){var bt=document.createElement("html2canvascustomelement");return ze(xt.style,bt),bt},Bt.prototype.createStyleClone=function(xt){try{var bt=xt.sheet;if(bt&&bt.cssRules){var Pt=[].slice.call(bt.cssRules,0).reduce(function(Ce,$e){return $e&&typeof $e.cssText=="string"?Ce+$e.cssText:Ce},""),te=xt.cloneNode(!1);return te.textContent=Pt,te}}catch(Ce){if(this.context.logger.error("Unable to access cssRules property",Ce),Ce.name!=="SecurityError")throw Ce}return xt.cloneNode(!1)},Bt.prototype.createCanvasClone=function(xt){var bt;if(this.options.inlineImages&&xt.ownerDocument){var Pt=xt.ownerDocument.createElement("img");try{return Pt.src=xt.toDataURL(),Pt}catch(hi){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 Ce=xt.getContext("2d"),$e=te.getContext("2d");if($e)if(!this.options.allowTaint&&Ce)$e.putImageData(Ce.getImageData(0,0,xt.width,xt.height),0,0);else{var Cn=(bt=xt.getContext("webgl2"))!==null&&bt!==void 0?bt:xt.getContext("webgl");if(Cn){var rn=Cn.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(hi){this.context.logger.info("Unable to clone canvas as it is tainted",xt)}return te},Bt.prototype.createVideoClone=function(xt){var bt=xt.ownerDocument.createElement("canvas");bt.width=xt.offsetWidth,bt.height=xt.offsetHeight;var Pt=bt.getContext("2d");try{return Pt&&(Pt.drawImage(xt,0,0,bt.width,bt.height),this.options.allowTaint||Pt.getImageData(0,0,bt.width,bt.height)),bt}catch(Ce){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,bt,Pt){(!ci(bt)||!Bh(bt)&&!bt.hasAttribute(At)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(bt)))&&(!this.options.copyStyles||!ci(bt)||!jl(bt))&&xt.appendChild(this.cloneNode(bt,Pt))},Bt.prototype.cloneChildNodes=function(xt,bt,Pt){for(var te=this,Ce=xt.shadowRoot?xt.shadowRoot.firstChild:xt.firstChild;Ce;Ce=Ce.nextSibling)if(ci(Ce)&&hd(Ce)&&typeof Ce.assignedNodes=="function"){var $e=Ce.assignedNodes();$e.length&&$e.forEach(function(Cn){return te.appendChildNode(bt,Cn,Pt)})}else this.appendChildNode(bt,Ce,Pt)},Bt.prototype.cloneNode=function(xt,bt){if(Hn(xt))return document.createTextNode(xt.data);if(!xt.ownerDocument)return xt.cloneNode(!1);var Pt=xt.ownerDocument.defaultView;if(Pt&&ci(xt)&&(Ri(xt)||cr(xt))){var te=this.createElementClone(xt);te.style.transitionProperty="none";var Ce=Pt.getComputedStyle(xt),$e=Pt.getComputedStyle(xt,":before"),Cn=Pt.getComputedStyle(xt,":after");this.referenceElement===xt&&Ri(te)&&(this.clonedReferenceElement=te),Ko(te)&&Mo(te);var rn=this.counters.parse(new Su(this.context,Ce)),hi=this.resolvePseudoContent(xt,te,$e,Dt.BEFORE);zc(xt)&&(bt=!0),gl(xt)||this.cloneChildNodes(xt,te,bt),hi&&te.insertBefore(hi,te.firstChild);var gi=this.resolvePseudoContent(xt,te,Cn,Dt.AFTER);return gi&&te.appendChild(gi),this.counters.pop(rn),(Ce&&(this.options.copyStyles||cr(xt))&&!Xa(xt)||bt)&&ze(Ce,te),(xt.scrollTop!==0||xt.scrollLeft!==0)&&this.scrolledElements.push([te,xt.scrollLeft,xt.scrollTop]),(ju(xt)||Ch(xt))&&(ju(te)||Ch(te))&&(te.value=xt.value),te}return xt.cloneNode(!1)},Bt.prototype.resolvePseudoContent=function(xt,bt,Pt,te){var Ce=this;if(Pt){var $e=Pt.content,Cn=bt.ownerDocument;if(!(!Cn||!$e||$e==="none"||$e==="-moz-alt-content"||Pt.display==="none")){this.counters.parse(new Su(this.context,Pt));var rn=new xl(this.context,Pt),hi=Cn.createElement("html2canvaspseudoelement");ze(Pt,hi),rn.content.forEach(function(Qi){if(Qi.type===0)hi.appendChild(Cn.createTextNode(Qi.value));else if(Qi.type===22){var pt=Cn.createElement("img");pt.src=Qi.value,pt.style.opacity="1",hi.appendChild(pt)}else if(Qi.type===18){if(Qi.name==="attr"){var Lt=Qi.values.filter(ga);Lt.length&&hi.appendChild(Cn.createTextNode(xt.getAttribute(Lt[0].value)||""))}else if(Qi.name==="counter"){var Wt=Qi.values.filter(Iu),ie=Wt[0],Me=Wt[1];if(ie&&ga(ie)){var ke=Ce.counters.getCounterValue(ie.value),Ue=Me&&ga(Me)?tn.parse(Ce.context,Me.value):3;hi.appendChild(Cn.createTextNode(ct(ke,Ue,!1)))}}else if(Qi.name==="counters"){var Ke=Qi.values.filter(Iu),ie=Ke[0],en=Ke[1],Me=Ke[2];if(ie&&ga(ie)){var hn=Ce.counters.getCounterValues(ie.value),Dn=Me&&ga(Me)?tn.parse(Ce.context,Me.value):3,Fi=en&&en.type===0?en.value:"",Ei=hn.map(function(er){return ct(er,Dn,!1)}).join(Fi);hi.appendChild(Cn.createTextNode(Ei))}}}else if(Qi.type===20)switch(Qi.value){case"open-quote":hi.appendChild(Cn.createTextNode(Da(rn.quotes,Ce.quoteDepth++,!0)));break;case"close-quote":hi.appendChild(Cn.createTextNode(Da(rn.quotes,--Ce.quoteDepth,!1)));break;default:hi.appendChild(Cn.createTextNode(Qi.value))}}),hi.className=Ur+" "+yo;var gi=te===Dt.BEFORE?" "+Ur:" "+yo;return cr(bt)?bt.className.baseValue+=gi:bt.className+=gi,hi}}},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 bt=Bt.createElement("iframe");return bt.className="html2canvas-container",bt.style.visibility="hidden",bt.style.position="fixed",bt.style.left="-10000px",bt.style.top="0px",bt.style.border="0",bt.width=xt.width.toString(),bt.height=xt.height.toString(),bt.scrolling="no",bt.setAttribute(At,"true"),Bt.body.appendChild(bt),bt},le=function(Bt){return new Promise(function(xt){if(Bt.complete){xt();return}if(!Bt.src){xt();return}Bt.onload=xt,Bt.onerror=xt})},ae=function(Bt){return Promise.all([].slice.call(Bt.images,0).map(le))},Ne=function(Bt){return new Promise(function(xt,bt){var Pt=Bt.contentWindow;if(!Pt)return bt("No window assigned for iframe");var te=Pt.document;Pt.onload=Bt.onload=function(){Pt.onload=Bt.onload=null;var Ce=setInterval(function(){te.body.childNodes.length>0&&te.readyState==="complete"&&(clearInterval(Ce),xt(Bt))},50)}})},bn=["all","d","content"],ze=function(Bt,xt){for(var bt=Bt.length-1;bt>=0;bt--){var Pt=Bt.item(bt);bn.indexOf(Pt)===-1&&xt.style.setProperty(Pt,Bt.getPropertyValue(Pt))}return xt},oi=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},Zn=function(Bt,xt,bt){Bt&&Bt.defaultView&&(xt!==Bt.defaultView.pageXOffset||bt!==Bt.defaultView.pageYOffset)&&Bt.defaultView.scrollTo(xt,bt)},Yi=function(Bt){var xt=Bt[0],bt=Bt[1],Pt=Bt[2];xt.scrollLeft=bt,xt.scrollTop=Pt},or=":before",Lr=":after",Ur="___html2canvas___pseudoelement_before",yo="___html2canvas___pseudoelement_after",Wr=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,Mo=function(Bt){is(Bt,"."+Ur+or+Wr+`
|
|
|
.`+yo+Lr+Wr)},is=function(Bt,xt){var bt=Bt.ownerDocument;if(bt){var Pt=bt.createElement("style");Pt.textContent=xt,Bt.appendChild(Pt)}},Vr=function(){function Bt(){}return Bt.getOrigin=function(xt){var bt=Bt._link;return bt?(bt.href=xt,bt.href=bt.href,bt.protocol+bt.hostname+bt.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}(),ws=function(){function Bt(xt,bt){this.context=xt,this._options=bt,this._cache={}}return Bt.prototype.addImage=function(xt){var bt=Promise.resolve();return this.has(xt)||(Ca(xt)||Ll(xt))&&(this._cache[xt]=this.loadImage(xt)).catch(function(){}),bt},Bt.prototype.match=function(xt){return this._cache[xt]},Bt.prototype.loadImage=function(xt){return Le(this,void 0,void 0,function(){var bt,Pt,te,Ce,$e=this;return Te(this,function(Cn){switch(Cn.label){case 0:return bt=Vr.isSameOrigin(xt),Pt=!Zs(xt)&&this._options.useCORS===!0&&Dl.SUPPORT_CORS_IMAGES&&!bt,te=!Zs(xt)&&!bt&&!Ca(xt)&&typeof this._options.proxy=="string"&&Dl.SUPPORT_CORS_XHR&&!Pt,!bt&&this._options.allowTaint===!1&&!Zs(xt)&&!Ca(xt)&&!te&&!Pt?[2]:(Ce=xt,te?[4,this.proxy(Ce)]:[3,2]);case 1:Ce=Cn.sent(),Cn.label=2;case 2:return this.context.logger.debug("Added image "+xt.substring(0,256)),[4,new Promise(function(rn,hi){var gi=new Image;gi.onload=function(){return rn(gi)},gi.onerror=hi,(Hs(Ce)||Pt)&&(gi.crossOrigin="anonymous"),gi.src=Ce,gi.complete===!0&&setTimeout(function(){return rn(gi)},500),$e._options.imageTimeout>0&&setTimeout(function(){return hi("Timed out ("+$e._options.imageTimeout+"ms) loading image")},$e._options.imageTimeout)})];case 3:return[2,Cn.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 bt=this,Pt=this._options.proxy;if(!Pt)throw new Error("No proxy defined");var te=xt.substring(0,256);return new Promise(function(Ce,$e){var Cn=Dl.SUPPORT_RESPONSE_TYPE?"blob":"text",rn=new XMLHttpRequest;rn.onload=function(){if(rn.status===200)if(Cn==="text")Ce(rn.response);else{var Qi=new FileReader;Qi.addEventListener("load",function(){return Ce(Qi.result)},!1),Qi.addEventListener("error",function(pt){return $e(pt)},!1),Qi.readAsDataURL(rn.response)}else $e("Failed to proxy resource "+te+" with status code "+rn.status)},rn.onerror=$e;var hi=Pt.indexOf("?")>-1?"&":"?";if(rn.open("GET",""+Pt+hi+"url="+encodeURIComponent(xt)+"&responseType="+Cn),Cn!=="text"&&rn instanceof XMLHttpRequest&&(rn.responseType=Cn),bt._options.imageTimeout){var gi=bt._options.imageTimeout;rn.timeout=gi,rn.ontimeout=function(){return $e("Timed out ("+gi+"ms) proxying "+te)}}rn.send()})},Bt}(),Ma=/^data:image\/svg\+xml/i,Ql=/^data:image\/.*;base64,/i,va=/^data:image\/.*/i,Ll=function(Bt){return Dl.SUPPORT_SVG_DRAWING||!Pa(Bt)},Zs=function(Bt){return va.test(Bt)},Hs=function(Bt){return Ql.test(Bt)},Ca=function(Bt){return Bt.substr(0,4)==="blob"},Pa=function(Bt){return Bt.substr(-3).toLowerCase()==="svg"||Ma.test(Bt)},Hr=function(){function Bt(xt,bt){this.type=0,this.x=xt,this.y=bt}return Bt.prototype.add=function(xt,bt){return new Bt(this.x+xt,this.y+bt)},Bt}(),zs=function(Bt,xt,bt){return new Hr(Bt.x+(xt.x-Bt.x)*bt,Bt.y+(xt.y-Bt.y)*bt)},Qa=function(){function Bt(xt,bt,Pt,te){this.type=1,this.start=xt,this.startControl=bt,this.endControl=Pt,this.end=te}return Bt.prototype.subdivide=function(xt,bt){var Pt=zs(this.start,this.startControl,xt),te=zs(this.startControl,this.endControl,xt),Ce=zs(this.endControl,this.end,xt),$e=zs(Pt,te,xt),Cn=zs(te,Ce,xt),rn=zs($e,Cn,xt);return bt?new Bt(this.start,Pt,$e,rn):new Bt(rn,Cn,Ce,this.end)},Bt.prototype.add=function(xt,bt){return new Bt(this.start.add(xt,bt),this.startControl.add(xt,bt),this.endControl.add(xt,bt),this.end.add(xt,bt))},Bt.prototype.reverse=function(){return new Bt(this.end,this.endControl,this.startControl,this.start)},Bt}(),Ra=function(Bt){return Bt.type===1},gu=function(){function Bt(xt){var bt=xt.styles,Pt=xt.bounds,te=rA(bt.borderTopLeftRadius,Pt.width,Pt.height),Ce=te[0],$e=te[1],Cn=rA(bt.borderTopRightRadius,Pt.width,Pt.height),rn=Cn[0],hi=Cn[1],gi=rA(bt.borderBottomRightRadius,Pt.width,Pt.height),Qi=gi[0],pt=gi[1],Lt=rA(bt.borderBottomLeftRadius,Pt.width,Pt.height),Wt=Lt[0],ie=Lt[1],Me=[];Me.push((Ce+rn)/Pt.width),Me.push((Wt+Qi)/Pt.width),Me.push(($e+ie)/Pt.height),Me.push((hi+pt)/Pt.height);var ke=Math.max.apply(Math,Me);ke>1&&(Ce/=ke,$e/=ke,rn/=ke,hi/=ke,Qi/=ke,pt/=ke,Wt/=ke,ie/=ke);var Ue=Pt.width-rn,Ke=Pt.height-pt,en=Pt.width-Qi,hn=Pt.height-ie,Dn=bt.borderTopWidth,Fi=bt.borderRightWidth,Ei=bt.borderBottomWidth,ii=bt.borderLeftWidth,mr=Sa(bt.paddingTop,xt.bounds.width),er=Sa(bt.paddingRight,xt.bounds.width),di=Sa(bt.paddingBottom,xt.bounds.width),ui=Sa(bt.paddingLeft,xt.bounds.width);this.topLeftBorderDoubleOuterBox=Ce>0||$e>0?hs(Pt.left+ii/3,Pt.top+Dn/3,Ce-ii/3,$e-Dn/3,ta.TOP_LEFT):new Hr(Pt.left+ii/3,Pt.top+Dn/3),this.topRightBorderDoubleOuterBox=Ce>0||$e>0?hs(Pt.left+Ue,Pt.top+Dn/3,rn-Fi/3,hi-Dn/3,ta.TOP_RIGHT):new Hr(Pt.left+Pt.width-Fi/3,Pt.top+Dn/3),this.bottomRightBorderDoubleOuterBox=Qi>0||pt>0?hs(Pt.left+en,Pt.top+Ke,Qi-Fi/3,pt-Ei/3,ta.BOTTOM_RIGHT):new Hr(Pt.left+Pt.width-Fi/3,Pt.top+Pt.height-Ei/3),this.bottomLeftBorderDoubleOuterBox=Wt>0||ie>0?hs(Pt.left+ii/3,Pt.top+hn,Wt-ii/3,ie-Ei/3,ta.BOTTOM_LEFT):new Hr(Pt.left+ii/3,Pt.top+Pt.height-Ei/3),this.topLeftBorderDoubleInnerBox=Ce>0||$e>0?hs(Pt.left+ii*2/3,Pt.top+Dn*2/3,Ce-ii*2/3,$e-Dn*2/3,ta.TOP_LEFT):new Hr(Pt.left+ii*2/3,Pt.top+Dn*2/3),this.topRightBorderDoubleInnerBox=Ce>0||$e>0?hs(Pt.left+Ue,Pt.top+Dn*2/3,rn-Fi*2/3,hi-Dn*2/3,ta.TOP_RIGHT):new Hr(Pt.left+Pt.width-Fi*2/3,Pt.top+Dn*2/3),this.bottomRightBorderDoubleInnerBox=Qi>0||pt>0?hs(Pt.left+en,Pt.top+Ke,Qi-Fi*2/3,pt-Ei*2/3,ta.BOTTOM_RIGHT):new Hr(Pt.left+Pt.width-Fi*2/3,Pt.top+Pt.height-Ei*2/3),this.bottomLeftBorderDoubleInnerBox=Wt>0||ie>0?hs(Pt.left+ii*2/3,Pt.top+hn,Wt-ii*2/3,ie-Ei*2/3,ta.BOTTOM_LEFT):new Hr(Pt.left+ii*2/3,Pt.top+Pt.height-Ei*2/3),this.topLeftBorderStroke=Ce>0||$e>0?hs(Pt.left+ii/2,Pt.top+Dn/2,Ce-ii/2,$e-Dn/2,ta.TOP_LEFT):new Hr(Pt.left+ii/2,Pt.top+Dn/2),this.topRightBorderStroke=Ce>0||$e>0?hs(Pt.left+Ue,Pt.top+Dn/2,rn-Fi/2,hi-Dn/2,ta.TOP_RIGHT):new Hr(Pt.left+Pt.width-Fi/2,Pt.top+Dn/2),this.bottomRightBorderStroke=Qi>0||pt>0?hs(Pt.left+en,Pt.top+Ke,Qi-Fi/2,pt-Ei/2,ta.BOTTOM_RIGHT):new Hr(Pt.left+Pt.width-Fi/2,Pt.top+Pt.height-Ei/2),this.bottomLeftBorderStroke=Wt>0||ie>0?hs(Pt.left+ii/2,Pt.top+hn,Wt-ii/2,ie-Ei/2,ta.BOTTOM_LEFT):new Hr(Pt.left+ii/2,Pt.top+Pt.height-Ei/2),this.topLeftBorderBox=Ce>0||$e>0?hs(Pt.left,Pt.top,Ce,$e,ta.TOP_LEFT):new Hr(Pt.left,Pt.top),this.topRightBorderBox=rn>0||hi>0?hs(Pt.left+Ue,Pt.top,rn,hi,ta.TOP_RIGHT):new Hr(Pt.left+Pt.width,Pt.top),this.bottomRightBorderBox=Qi>0||pt>0?hs(Pt.left+en,Pt.top+Ke,Qi,pt,ta.BOTTOM_RIGHT):new Hr(Pt.left+Pt.width,Pt.top+Pt.height),this.bottomLeftBorderBox=Wt>0||ie>0?hs(Pt.left,Pt.top+hn,Wt,ie,ta.BOTTOM_LEFT):new Hr(Pt.left,Pt.top+Pt.height),this.topLeftPaddingBox=Ce>0||$e>0?hs(Pt.left+ii,Pt.top+Dn,Math.max(0,Ce-ii),Math.max(0,$e-Dn),ta.TOP_LEFT):new Hr(Pt.left+ii,Pt.top+Dn),this.topRightPaddingBox=rn>0||hi>0?hs(Pt.left+Math.min(Ue,Pt.width-Fi),Pt.top+Dn,Ue>Pt.width+Fi?0:Math.max(0,rn-Fi),Math.max(0,hi-Dn),ta.TOP_RIGHT):new Hr(Pt.left+Pt.width-Fi,Pt.top+Dn),this.bottomRightPaddingBox=Qi>0||pt>0?hs(Pt.left+Math.min(en,Pt.width-ii),Pt.top+Math.min(Ke,Pt.height-Ei),Math.max(0,Qi-Fi),Math.max(0,pt-Ei),ta.BOTTOM_RIGHT):new Hr(Pt.left+Pt.width-Fi,Pt.top+Pt.height-Ei),this.bottomLeftPaddingBox=Wt>0||ie>0?hs(Pt.left+ii,Pt.top+Math.min(hn,Pt.height-Ei),Math.max(0,Wt-ii),Math.max(0,ie-Ei),ta.BOTTOM_LEFT):new Hr(Pt.left+ii,Pt.top+Pt.height-Ei),this.topLeftContentBox=Ce>0||$e>0?hs(Pt.left+ii+ui,Pt.top+Dn+mr,Math.max(0,Ce-(ii+ui)),Math.max(0,$e-(Dn+mr)),ta.TOP_LEFT):new Hr(Pt.left+ii+ui,Pt.top+Dn+mr),this.topRightContentBox=rn>0||hi>0?hs(Pt.left+Math.min(Ue,Pt.width+ii+ui),Pt.top+Dn+mr,Ue>Pt.width+ii+ui?0:rn-ii+ui,hi-(Dn+mr),ta.TOP_RIGHT):new Hr(Pt.left+Pt.width-(Fi+er),Pt.top+Dn+mr),this.bottomRightContentBox=Qi>0||pt>0?hs(Pt.left+Math.min(en,Pt.width-(ii+ui)),Pt.top+Math.min(Ke,Pt.height+Dn+mr),Math.max(0,Qi-(Fi+er)),pt-(Ei+di),ta.BOTTOM_RIGHT):new Hr(Pt.left+Pt.width-(Fi+er),Pt.top+Pt.height-(Ei+di)),this.bottomLeftContentBox=Wt>0||ie>0?hs(Pt.left+ii+ui,Pt.top+hn,Math.max(0,Wt-(ii+ui)),ie-(Ei+di),ta.BOTTOM_LEFT):new Hr(Pt.left+ii+ui,Pt.top+Pt.height-(Ei+di))}return Bt}(),ta;(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"})(ta||(ta={}));var hs=function(Bt,xt,bt,Pt,te){var Ce=4*((Math.sqrt(2)-1)/3),$e=bt*Ce,Cn=Pt*Ce,rn=Bt+bt,hi=xt+Pt;switch(te){case ta.TOP_LEFT:return new Qa(new Hr(Bt,hi),new Hr(Bt,hi-Cn),new Hr(rn-$e,xt),new Hr(rn,xt));case ta.TOP_RIGHT:return new Qa(new Hr(Bt,xt),new Hr(Bt+$e,xt),new Hr(rn,hi-Cn),new Hr(rn,hi));case ta.BOTTOM_RIGHT:return new Qa(new Hr(rn,xt),new Hr(rn,xt+Cn),new Hr(Bt+$e,hi),new Hr(Bt,hi));case ta.BOTTOM_LEFT:default:return new Qa(new Hr(rn,hi),new Hr(rn-$e,hi),new Hr(Bt,xt+Cn),new Hr(Bt,xt))}},Fl=function(Bt){return[Bt.topLeftBorderBox,Bt.topRightBorderBox,Bt.bottomRightBorderBox,Bt.bottomLeftBorderBox]},wl=function(Bt){return[Bt.topLeftContentBox,Bt.topRightContentBox,Bt.bottomRightContentBox,Bt.bottomLeftContentBox]},MA=function(Bt){return[Bt.topLeftPaddingBox,Bt.topRightPaddingBox,Bt.bottomRightPaddingBox,Bt.bottomLeftPaddingBox]},Ph=function(){function Bt(xt,bt,Pt){this.offsetX=xt,this.offsetY=bt,this.matrix=Pt,this.type=0,this.target=6}return Bt}(),pu=function(){function Bt(xt,bt){this.path=xt,this.target=bt,this.type=1}return Bt}(),Nu=function(){function Bt(xt){this.opacity=xt,this.type=2,this.target=6}return Bt}(),Ha=function(Bt){return Bt.type===0},au=function(Bt){return Bt.type===1},mA=function(Bt){return Bt.type===2},bc=function(Bt,xt){return Bt.length===xt.length?Bt.some(function(bt,Pt){return bt===xt[Pt]}):!1},_f=function(Bt,xt,bt,Pt,te){return Bt.map(function(Ce,$e){switch($e){case 0:return Ce.add(xt,bt);case 1:return Ce.add(xt+Pt,bt);case 2:return Ce.add(xt+Pt,bt+te);case 3:return Ce.add(xt,bt+te)}return Ce})},Uu=function(){function Bt(xt){this.element=xt,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Bt}(),Sg=function(){function Bt(xt,bt){if(this.container=xt,this.parent=bt,this.effects=[],this.curves=new gu(this.container),this.container.styles.opacity<1&&this.effects.push(new Nu(this.container.styles.opacity)),this.container.styles.transform!==null){var Pt=this.container.bounds.left+this.container.styles.transformOrigin[0].number,te=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ce=this.container.styles.transform;this.effects.push(new Ph(Pt,te,Ce))}if(this.container.styles.overflowX!==0){var $e=Fl(this.curves),Cn=MA(this.curves);bc($e,Cn)?this.effects.push(new pu($e,6)):(this.effects.push(new pu($e,2)),this.effects.push(new pu(Cn,4)))}}return Bt.prototype.getEffects=function(xt){for(var bt=[2,3].indexOf(this.container.styles.position)===-1,Pt=this.parent,te=this.effects.slice(0);Pt;){var Ce=Pt.effects.filter(function(rn){return!au(rn)});if(bt||Pt.container.styles.position!==0||!Pt.parent){if(te.unshift.apply(te,Ce),bt=[2,3].indexOf(Pt.container.styles.position)===-1,Pt.container.styles.overflowX!==0){var $e=Fl(Pt.curves),Cn=MA(Pt.curves);bc($e,Cn)||te.unshift(new pu(Cn,6))}}else te.unshift.apply(te,Ce);Pt=Pt.parent}return te.filter(function(rn){return yl(rn.target,xt)})},Bt}(),tc=function(Bt,xt,bt,Pt){Bt.container.elements.forEach(function(te){var Ce=yl(te.flags,4),$e=yl(te.flags,2),Cn=new Sg(te,Bt);yl(te.styles.display,2048)&&Pt.push(Cn);var rn=yl(te.flags,8)?[]:Pt;if(Ce||$e){var hi=Ce||te.styles.isPositioned()?bt:xt,gi=new Uu(Cn);if(te.styles.isPositioned()||te.styles.opacity<1||te.styles.isTransformed()){var Qi=te.styles.zIndex.order;if(Qi<0){var pt=0;hi.negativeZIndex.some(function(Wt,ie){return Qi>Wt.element.container.styles.zIndex.order?(pt=ie,!1):pt>0}),hi.negativeZIndex.splice(pt,0,gi)}else if(Qi>0){var Lt=0;hi.positiveZIndex.some(function(Wt,ie){return Qi>=Wt.element.container.styles.zIndex.order?(Lt=ie+1,!1):Lt>0}),hi.positiveZIndex.splice(Lt,0,gi)}else hi.zeroOrAutoZIndexOrTransformedOrOpacity.push(gi)}else te.styles.isFloating()?hi.nonPositionedFloats.push(gi):hi.nonPositionedInlineLevel.push(gi);tc(Cn,gi,Ce?gi:bt,rn)}else te.styles.isInlineLevel()?xt.inlineLevel.push(Cn):xt.nonInlineLevel.push(Cn),tc(Cn,xt,bt,rn);yl(te.flags,8)&&vf(te,rn)})},vf=function(Bt,xt){for(var bt=Bt instanceof FA?Bt.start:1,Pt=Bt instanceof FA?Bt.reversed:!1,te=0;te<xt.length;te++){var Ce=xt[te];Ce.container instanceof dA&&typeof Ce.container.value=="number"&&Ce.container.value!==0&&(bt=Ce.container.value),Ce.listValue=ct(bt,Ce.container.styles.listStyleType,!0),bt+=Pt?-1:1}},yf=function(Bt){var xt=new Sg(Bt,null),bt=new Uu(xt),Pt=[];return tc(xt,bt,bt,Pt),vf(xt.container,Pt),bt},kd=function(Bt,xt){switch(xt){case 0:return Xl(Bt.topLeftBorderBox,Bt.topLeftPaddingBox,Bt.topRightBorderBox,Bt.topRightPaddingBox);case 1:return Xl(Bt.topRightBorderBox,Bt.topRightPaddingBox,Bt.bottomRightBorderBox,Bt.bottomRightPaddingBox);case 2:return Xl(Bt.bottomRightBorderBox,Bt.bottomRightPaddingBox,Bt.bottomLeftBorderBox,Bt.bottomLeftPaddingBox);case 3:default:return Xl(Bt.bottomLeftBorderBox,Bt.bottomLeftPaddingBox,Bt.topLeftBorderBox,Bt.topLeftPaddingBox)}},cd=function(Bt,xt){switch(xt){case 0:return Xl(Bt.topLeftBorderBox,Bt.topLeftBorderDoubleOuterBox,Bt.topRightBorderBox,Bt.topRightBorderDoubleOuterBox);case 1:return Xl(Bt.topRightBorderBox,Bt.topRightBorderDoubleOuterBox,Bt.bottomRightBorderBox,Bt.bottomRightBorderDoubleOuterBox);case 2:return Xl(Bt.bottomRightBorderBox,Bt.bottomRightBorderDoubleOuterBox,Bt.bottomLeftBorderBox,Bt.bottomLeftBorderDoubleOuterBox);case 3:default:return Xl(Bt.bottomLeftBorderBox,Bt.bottomLeftBorderDoubleOuterBox,Bt.topLeftBorderBox,Bt.topLeftBorderDoubleOuterBox)}},Gf=function(Bt,xt){switch(xt){case 0:return Xl(Bt.topLeftBorderDoubleInnerBox,Bt.topLeftPaddingBox,Bt.topRightBorderDoubleInnerBox,Bt.topRightPaddingBox);case 1:return Xl(Bt.topRightBorderDoubleInnerBox,Bt.topRightPaddingBox,Bt.bottomRightBorderDoubleInnerBox,Bt.bottomRightPaddingBox);case 2:return Xl(Bt.bottomRightBorderDoubleInnerBox,Bt.bottomRightPaddingBox,Bt.bottomLeftBorderDoubleInnerBox,Bt.bottomLeftPaddingBox);case 3:default:return Xl(Bt.bottomLeftBorderDoubleInnerBox,Bt.bottomLeftPaddingBox,Bt.topLeftBorderDoubleInnerBox,Bt.topLeftPaddingBox)}},Od=function(Bt,xt){switch(xt){case 0:return ec(Bt.topLeftBorderStroke,Bt.topRightBorderStroke);case 1:return ec(Bt.topRightBorderStroke,Bt.bottomRightBorderStroke);case 2:return ec(Bt.bottomRightBorderStroke,Bt.bottomLeftBorderStroke);case 3:default:return ec(Bt.bottomLeftBorderStroke,Bt.topLeftBorderStroke)}},ec=function(Bt,xt){var bt=[];return Ra(Bt)?bt.push(Bt.subdivide(.5,!1)):bt.push(Bt),Ra(xt)?bt.push(xt.subdivide(.5,!0)):bt.push(xt),bt},Xl=function(Bt,xt,bt,Pt){var te=[];return Ra(Bt)?te.push(Bt.subdivide(.5,!1)):te.push(Bt),Ra(bt)?te.push(bt.subdivide(.5,!0)):te.push(bt),Ra(Pt)?te.push(Pt.subdivide(.5,!0).reverse()):te.push(Pt),Ra(xt)?te.push(xt.subdivide(.5,!1).reverse()):te.push(xt),te},lu=function(Bt){var xt=Bt.bounds,bt=Bt.styles;return xt.add(bt.borderLeftWidth,bt.borderTopWidth,-(bt.borderRightWidth+bt.borderLeftWidth),-(bt.borderTopWidth+bt.borderBottomWidth))},Kf=function(Bt){var xt=Bt.styles,bt=Bt.bounds,Pt=Sa(xt.paddingLeft,bt.width),te=Sa(xt.paddingRight,bt.width),Ce=Sa(xt.paddingTop,bt.width),$e=Sa(xt.paddingBottom,bt.width);return bt.add(Pt+xt.borderLeftWidth,Ce+xt.borderTopWidth,-(xt.borderRightWidth+xt.borderLeftWidth+Pt+te),-(xt.borderTopWidth+xt.borderBottomWidth+Ce+$e))},Sp=function(Bt,xt){return Bt===0?xt.bounds:Bt===2?Kf(xt):lu(xt)},zg=function(Bt,xt){return Bt===0?xt.bounds:Bt===2?Kf(xt):lu(xt)},Dd=function(Bt,xt,bt){var Pt=Sp(Vh(Bt.styles.backgroundOrigin,xt),Bt),te=zg(Vh(Bt.styles.backgroundClip,xt),Bt),Ce=xp(Vh(Bt.styles.backgroundSize,xt),bt,Pt),$e=Ce[0],Cn=Ce[1],rn=rA(Vh(Bt.styles.backgroundPosition,xt),Pt.width-$e,Pt.height-Cn),hi=Yh(Vh(Bt.styles.backgroundRepeat,xt),rn,Ce,Pt,te),gi=Math.round(Pt.left+rn[0]),Qi=Math.round(Pt.top+rn[1]);return[hi,gi,Qi,$e,Cn]},jd=function(Bt){return ga(Bt)&&Bt.value===Ft.AUTO},Wf=function(Bt){return typeof Bt=="number"},xp=function(Bt,xt,bt){var Pt=xt[0],te=xt[1],Ce=xt[2],$e=Bt[0],Cn=Bt[1];if(!$e)return[0,0];if(fo($e)&&Cn&&fo(Cn))return[Sa($e,bt.width),Sa(Cn,bt.height)];var rn=Wf(Ce);if(ga($e)&&($e.value===Ft.CONTAIN||$e.value===Ft.COVER)){if(Wf(Ce)){var hi=bt.width/bt.height;return hi<Ce!=($e.value===Ft.COVER)?[bt.width,bt.width/Ce]:[bt.height*Ce,bt.height]}return[bt.width,bt.height]}var gi=Wf(Pt),Qi=Wf(te),pt=gi||Qi;if(jd($e)&&(!Cn||jd(Cn))){if(gi&&Qi)return[Pt,te];if(!rn&&!pt)return[bt.width,bt.height];if(pt&&rn){var Lt=gi?Pt:te*Ce,Wt=Qi?te:Pt/Ce;return[Lt,Wt]}var ie=gi?Pt:bt.width,Me=Qi?te:bt.height;return[ie,Me]}if(rn){var ke=0,Ue=0;return fo($e)?ke=Sa($e,bt.width):fo(Cn)&&(Ue=Sa(Cn,bt.height)),jd($e)?ke=Ue*Ce:(!Cn||jd(Cn))&&(Ue=ke/Ce),[ke,Ue]}var Ke=null,en=null;if(fo($e)?Ke=Sa($e,bt.width):Cn&&fo(Cn)&&(en=Sa(Cn,bt.height)),Ke!==null&&(!Cn||jd(Cn))&&(en=gi&&Qi?Ke/Pt*te:bt.height),en!==null&&jd($e)&&(Ke=gi&&Qi?en/te*Pt:bt.width),Ke!==null&&en!==null)return[Ke,en];throw new Error("Unable to calculate background-size for element")},Vh=function(Bt,xt){var bt=Bt[xt];return typeof bt=="undefined"?Bt[0]:bt},Yh=function(Bt,xt,bt,Pt,te){var Ce=xt[0],$e=xt[1],Cn=bt[0],rn=bt[1];switch(Bt){case 2:return[new Hr(Math.round(Pt.left),Math.round(Pt.top+$e)),new Hr(Math.round(Pt.left+Pt.width),Math.round(Pt.top+$e)),new Hr(Math.round(Pt.left+Pt.width),Math.round(rn+Pt.top+$e)),new Hr(Math.round(Pt.left),Math.round(rn+Pt.top+$e))];case 3:return[new Hr(Math.round(Pt.left+Ce),Math.round(Pt.top)),new Hr(Math.round(Pt.left+Ce+Cn),Math.round(Pt.top)),new Hr(Math.round(Pt.left+Ce+Cn),Math.round(Pt.height+Pt.top)),new Hr(Math.round(Pt.left+Ce),Math.round(Pt.height+Pt.top))];case 1:return[new Hr(Math.round(Pt.left+Ce),Math.round(Pt.top+$e)),new Hr(Math.round(Pt.left+Ce+Cn),Math.round(Pt.top+$e)),new Hr(Math.round(Pt.left+Ce+Cn),Math.round(Pt.top+$e+rn)),new Hr(Math.round(Pt.left+Ce),Math.round(Pt.top+$e+rn))];default:return[new Hr(Math.round(te.left),Math.round(te.top)),new Hr(Math.round(te.left+te.width),Math.round(te.top)),new Hr(Math.round(te.left+te.width),Math.round(te.height+te.top)),new Hr(Math.round(te.left),Math.round(te.height+te.top))]}},nc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",NA="Hidden Text",ic=function(){function Bt(xt){this._data={},this._document=xt}return Bt.prototype.parseMetrics=function(xt,bt){var Pt=this._document.createElement("div"),te=this._document.createElement("img"),Ce=this._document.createElement("span"),$e=this._document.body;Pt.style.visibility="hidden",Pt.style.fontFamily=xt,Pt.style.fontSize=bt,Pt.style.margin="0",Pt.style.padding="0",Pt.style.whiteSpace="nowrap",$e.appendChild(Pt),te.src=nc,te.width=1,te.height=1,te.style.margin="0",te.style.padding="0",te.style.verticalAlign="baseline",Ce.style.fontFamily=xt,Ce.style.fontSize=bt,Ce.style.margin="0",Ce.style.padding="0",Ce.appendChild(this._document.createTextNode(NA)),Pt.appendChild(Ce),Pt.appendChild(te);var Cn=te.offsetTop-Ce.offsetTop+2;Pt.removeChild(Ce),Pt.appendChild(this._document.createTextNode(NA)),Pt.style.lineHeight="normal",te.style.verticalAlign="super";var rn=te.offsetTop-Pt.offsetTop+2;return $e.removeChild(Pt),{baseline:Cn,middle:rn}},Bt.prototype.getMetrics=function(xt,bt){var Pt=xt+" "+bt;return typeof this._data[Pt]=="undefined"&&(this._data[Pt]=this.parseMetrics(xt,bt)),this._data[Pt]},Bt}(),rc=function(){function Bt(xt,bt){this.context=xt,this.options=bt}return Bt}(),Rl=1e4,Ud=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;return te._activeEffects=[],te.canvas=Pt.canvas?Pt.canvas:document.createElement("canvas"),te.ctx=te.canvas.getContext("2d"),Pt.canvas||(te.canvas.width=Math.floor(Pt.width*Pt.scale),te.canvas.height=Math.floor(Pt.height*Pt.scale),te.canvas.style.width=Pt.width+"px",te.canvas.style.height=Pt.height+"px"),te.fontMetrics=new ic(document),te.ctx.scale(te.options.scale,te.options.scale),te.ctx.translate(-Pt.x,-Pt.y),te.ctx.textBaseline="bottom",te._activeEffects=[],te.context.logger.debug("Canvas renderer initialized ("+Pt.width+"x"+Pt.height+") with scale "+Pt.scale),te}return xt.prototype.applyEffects=function(bt){for(var Pt=this;this._activeEffects.length;)this.popEffect();bt.forEach(function(te){return Pt.applyEffect(te)})},xt.prototype.applyEffect=function(bt){this.ctx.save(),mA(bt)&&(this.ctx.globalAlpha=bt.opacity),Ha(bt)&&(this.ctx.translate(bt.offsetX,bt.offsetY),this.ctx.transform(bt.matrix[0],bt.matrix[1],bt.matrix[2],bt.matrix[3],bt.matrix[4],bt.matrix[5]),this.ctx.translate(-bt.offsetX,-bt.offsetY)),au(bt)&&(this.path(bt.path),this.ctx.clip()),this._activeEffects.push(bt)},xt.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},xt.prototype.renderStack=function(bt){return Le(this,void 0,void 0,function(){var Pt;return Te(this,function(te){switch(te.label){case 0:return Pt=bt.element.container.styles,Pt.isVisible()?[4,this.renderStackContent(bt)]:[3,2];case 1:te.sent(),te.label=2;case 2:return[2]}})})},xt.prototype.renderNode=function(bt){return Le(this,void 0,void 0,function(){return Te(this,function(Pt){switch(Pt.label){case 0:if(yl(bt.container.flags,16))debugger;return bt.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(bt)]:[3,3];case 1:return Pt.sent(),[4,this.renderNodeContent(bt)];case 2:Pt.sent(),Pt.label=3;case 3:return[2]}})})},xt.prototype.renderTextWithLetterSpacing=function(bt,Pt,te){var Ce=this;if(Pt===0)this.ctx.fillText(bt.text,bt.bounds.left,bt.bounds.top+te);else{var $e=hA(bt.text);$e.reduce(function(Cn,rn){return Ce.ctx.fillText(rn,Cn,bt.bounds.top+te),Cn+Ce.ctx.measureText(rn).width},bt.bounds.left)}},xt.prototype.createFontStyle=function(bt){var Pt=bt.fontVariant.filter(function($e){return $e==="normal"||$e==="small-caps"}).join(""),te=Gg(bt.fontFamily).join(", "),Ce=Gl(bt.fontSize)?""+bt.fontSize.number+bt.fontSize.unit:bt.fontSize.number+"px";return[[bt.fontStyle,Pt,bt.fontWeight,Ce,te].join(" "),te,Ce]},xt.prototype.renderTextNode=function(bt,Pt){return Le(this,void 0,void 0,function(){var te,Ce,$e,Cn,rn,hi,gi,Qi,pt=this;return Te(this,function(Lt){return te=this.createFontStyle(Pt),Ce=te[0],$e=te[1],Cn=te[2],this.ctx.font=Ce,this.ctx.direction=Pt.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",rn=this.fontMetrics.getMetrics($e,Cn),hi=rn.baseline,gi=rn.middle,Qi=Pt.paintOrder,bt.textBounds.forEach(function(Wt){Qi.forEach(function(ie){switch(ie){case 0:pt.ctx.fillStyle=Ws(Pt.color),pt.renderTextWithLetterSpacing(Wt,Pt.letterSpacing,hi);var Me=Pt.textShadow;Me.length&&Wt.text.trim().length&&(Me.slice(0).reverse().forEach(function(ke){pt.ctx.shadowColor=Ws(ke.color),pt.ctx.shadowOffsetX=ke.offsetX.number*pt.options.scale,pt.ctx.shadowOffsetY=ke.offsetY.number*pt.options.scale,pt.ctx.shadowBlur=ke.blur.number,pt.renderTextWithLetterSpacing(Wt,Pt.letterSpacing,hi)}),pt.ctx.shadowColor="",pt.ctx.shadowOffsetX=0,pt.ctx.shadowOffsetY=0,pt.ctx.shadowBlur=0),Pt.textDecorationLine.length&&(pt.ctx.fillStyle=Ws(Pt.textDecorationColor||Pt.color),Pt.textDecorationLine.forEach(function(ke){switch(ke){case 1:pt.ctx.fillRect(Wt.bounds.left,Math.round(Wt.bounds.top+hi),Wt.bounds.width,1);break;case 2:pt.ctx.fillRect(Wt.bounds.left,Math.round(Wt.bounds.top),Wt.bounds.width,1);break;case 3:pt.ctx.fillRect(Wt.bounds.left,Math.ceil(Wt.bounds.top+gi),Wt.bounds.width,1);break}}));break;case 1:Pt.webkitTextStrokeWidth&&Wt.text.trim().length&&(pt.ctx.strokeStyle=Ws(Pt.webkitTextStrokeColor),pt.ctx.lineWidth=Pt.webkitTextStrokeWidth,pt.ctx.lineJoin=window.chrome?"miter":"round",pt.ctx.strokeText(Wt.text,Wt.bounds.left,Wt.bounds.top+hi)),pt.ctx.strokeStyle="",pt.ctx.lineWidth=0,pt.ctx.lineJoin="miter";break}})}),[2]})})},xt.prototype.renderReplacedElement=function(bt,Pt,te){if(te&&bt.intrinsicWidth>0&&bt.intrinsicHeight>0){var Ce=Kf(bt),$e=MA(Pt);this.path($e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(te,0,0,bt.intrinsicWidth,bt.intrinsicHeight,Ce.left,Ce.top,Ce.width,Ce.height),this.ctx.restore()}},xt.prototype.renderNodeContent=function(bt){return Le(this,void 0,void 0,function(){var Pt,te,Ce,$e,Cn,rn,Ue,Ue,hi,gi,Qi,pt,en,Lt,Wt,hn,ie,Me,ke,Ue,Ke,en,hn;return Te(this,function(Dn){switch(Dn.label){case 0:this.applyEffects(bt.getEffects(4)),Pt=bt.container,te=bt.curves,Ce=Pt.styles,$e=0,Cn=Pt.textNodes,Dn.label=1;case 1:return $e<Cn.length?(rn=Cn[$e],[4,this.renderTextNode(rn,Ce)]):[3,4];case 2:Dn.sent(),Dn.label=3;case 3:return $e++,[3,1];case 4:if(!(Pt instanceof sd))return[3,8];Dn.label=5;case 5:return Dn.trys.push([5,7,,8]),[4,this.context.cache.match(Pt.src)];case 6:return Ue=Dn.sent(),this.renderReplacedElement(Pt,te,Ue),[3,8];case 7:return Dn.sent(),this.context.logger.error("Error loading image "+Pt.src),[3,8];case 8:if(Pt instanceof cA&&this.renderReplacedElement(Pt,te,Pt.canvas),!(Pt instanceof xh))return[3,12];Dn.label=9;case 9:return Dn.trys.push([9,11,,12]),[4,this.context.cache.match(Pt.svg)];case 10:return Ue=Dn.sent(),this.renderReplacedElement(Pt,te,Ue),[3,12];case 11:return Dn.sent(),this.context.logger.error("Error loading svg "+Pt.svg.substring(0,255)),[3,12];case 12:return Pt instanceof Hc&&Pt.tree?(hi=new xt(this.context,{scale:this.options.scale,backgroundColor:Pt.backgroundColor,x:0,y:0,width:Pt.width,height:Pt.height}),[4,hi.render(Pt.tree)]):[3,14];case 13:gi=Dn.sent(),Pt.width&&Pt.height&&this.ctx.drawImage(gi,0,0,Pt.width,Pt.height,Pt.bounds.left,Pt.bounds.top,Pt.bounds.width,Pt.bounds.height),Dn.label=14;case 14:if(Pt instanceof Ku&&(Qi=Math.min(Pt.bounds.width,Pt.bounds.height),Pt.type===ZA?Pt.checked&&(this.ctx.save(),this.path([new Hr(Pt.bounds.left+Qi*.39363,Pt.bounds.top+Qi*.79),new Hr(Pt.bounds.left+Qi*.16,Pt.bounds.top+Qi*.5549),new Hr(Pt.bounds.left+Qi*.27347,Pt.bounds.top+Qi*.44071),new Hr(Pt.bounds.left+Qi*.39694,Pt.bounds.top+Qi*.5649),new Hr(Pt.bounds.left+Qi*.72983,Pt.bounds.top+Qi*.23),new Hr(Pt.bounds.left+Qi*.84,Pt.bounds.top+Qi*.34085),new Hr(Pt.bounds.left+Qi*.39363,Pt.bounds.top+Qi*.79)]),this.ctx.fillStyle=Ws(Rc),this.ctx.fill(),this.ctx.restore()):Pt.type===fA&&Pt.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Pt.bounds.left+Qi/2,Pt.bounds.top+Qi/2,Qi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ws(Rc),this.ctx.fill(),this.ctx.restore())),a0(Pt)&&Pt.value.length){switch(pt=this.createFontStyle(Ce),en=pt[0],Lt=pt[1],Wt=this.fontMetrics.getMetrics(en,Lt).baseline,this.ctx.font=en,this.ctx.fillStyle=Ws(Ce.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=us(Pt.styles.textAlign),hn=Kf(Pt),ie=0,Pt.styles.textAlign){case 1:ie+=hn.width/2;break;case 2:ie+=hn.width;break}Me=hn.add(ie,0,0,-hn.height/2+1),this.ctx.save(),this.path([new Hr(hn.left,hn.top),new Hr(hn.left+hn.width,hn.top),new Hr(hn.left+hn.width,hn.top+hn.height),new Hr(hn.left,hn.top+hn.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new nu(Pt.value,Me),Ce.letterSpacing,Wt),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!yl(Pt.styles.display,2048))return[3,20];if(Pt.styles.listStyleImage===null)return[3,19];if(ke=Pt.styles.listStyleImage,ke.type!==0)return[3,18];Ue=void 0,Ke=ke.url,Dn.label=15;case 15:return Dn.trys.push([15,17,,18]),[4,this.context.cache.match(Ke)];case 16:return Ue=Dn.sent(),this.ctx.drawImage(Ue,Pt.bounds.left-(Ue.width+10),Pt.bounds.top),[3,18];case 17:return Dn.sent(),this.context.logger.error("Error loading list-style-image "+Ke),[3,18];case 18:return[3,20];case 19:bt.listValue&&Pt.styles.listStyleType!==-1&&(en=this.createFontStyle(Ce)[0],this.ctx.font=en,this.ctx.fillStyle=Ws(Ce.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",hn=new Se(Pt.bounds.left,Pt.bounds.top+Sa(Pt.styles.paddingTop,Pt.bounds.width),Pt.bounds.width,tr(Ce.lineHeight,Ce.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new nu(bt.listValue,hn),Ce.letterSpacing,tr(Ce.lineHeight,Ce.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Dn.label=20;case 20:return[2]}})})},xt.prototype.renderStackContent=function(bt){return Le(this,void 0,void 0,function(){var Pt,te,ke,Ce,$e,ke,Cn,rn,ke,hi,gi,ke,Qi,pt,ke,Lt,Wt,ke,ie,Me,ke;return Te(this,function(Ue){switch(Ue.label){case 0:if(yl(bt.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(bt.element)];case 1:Ue.sent(),Pt=0,te=bt.negativeZIndex,Ue.label=2;case 2:return Pt<te.length?(ke=te[Pt],[4,this.renderStack(ke)]):[3,5];case 3:Ue.sent(),Ue.label=4;case 4:return Pt++,[3,2];case 5:return[4,this.renderNodeContent(bt.element)];case 6:Ue.sent(),Ce=0,$e=bt.nonInlineLevel,Ue.label=7;case 7:return Ce<$e.length?(ke=$e[Ce],[4,this.renderNode(ke)]):[3,10];case 8:Ue.sent(),Ue.label=9;case 9:return Ce++,[3,7];case 10:Cn=0,rn=bt.nonPositionedFloats,Ue.label=11;case 11:return Cn<rn.length?(ke=rn[Cn],[4,this.renderStack(ke)]):[3,14];case 12:Ue.sent(),Ue.label=13;case 13:return Cn++,[3,11];case 14:hi=0,gi=bt.nonPositionedInlineLevel,Ue.label=15;case 15:return hi<gi.length?(ke=gi[hi],[4,this.renderStack(ke)]):[3,18];case 16:Ue.sent(),Ue.label=17;case 17:return hi++,[3,15];case 18:Qi=0,pt=bt.inlineLevel,Ue.label=19;case 19:return Qi<pt.length?(ke=pt[Qi],[4,this.renderNode(ke)]):[3,22];case 20:Ue.sent(),Ue.label=21;case 21:return Qi++,[3,19];case 22:Lt=0,Wt=bt.zeroOrAutoZIndexOrTransformedOrOpacity,Ue.label=23;case 23:return Lt<Wt.length?(ke=Wt[Lt],[4,this.renderStack(ke)]):[3,26];case 24:Ue.sent(),Ue.label=25;case 25:return Lt++,[3,23];case 26:ie=0,Me=bt.positiveZIndex,Ue.label=27;case 27:return ie<Me.length?(ke=Me[ie],[4,this.renderStack(ke)]):[3,30];case 28:Ue.sent(),Ue.label=29;case 29:return ie++,[3,27];case 30:return[2]}})})},xt.prototype.mask=function(bt){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(bt.slice(0).reverse()),this.ctx.closePath()},xt.prototype.path=function(bt){this.ctx.beginPath(),this.formatPath(bt),this.ctx.closePath()},xt.prototype.formatPath=function(bt){var Pt=this;bt.forEach(function(te,Ce){var $e=Ra(te)?te.start:te;Ce===0?Pt.ctx.moveTo($e.x,$e.y):Pt.ctx.lineTo($e.x,$e.y),Ra(te)&&Pt.ctx.bezierCurveTo(te.startControl.x,te.startControl.y,te.endControl.x,te.endControl.y,te.end.x,te.end.y)})},xt.prototype.renderRepeat=function(bt,Pt,te,Ce){this.path(bt),this.ctx.fillStyle=Pt,this.ctx.translate(te,Ce),this.ctx.fill(),this.ctx.translate(-te,-Ce)},xt.prototype.resizeImage=function(bt,Pt,te){var Ce;if(bt.width===Pt&&bt.height===te)return bt;var $e=(Ce=this.canvas.ownerDocument)!==null&&Ce!==void 0?Ce:document,Cn=$e.createElement("canvas");Cn.width=Math.max(1,Pt),Cn.height=Math.max(1,te);var rn=Cn.getContext("2d");return rn.drawImage(bt,0,0,bt.width,bt.height,0,0,Pt,te),Cn},xt.prototype.renderBackgroundImage=function(bt){return Le(this,void 0,void 0,function(){var Pt,te,Ce,$e,Cn,rn;return Te(this,function(hi){switch(hi.label){case 0:Pt=bt.styles.backgroundImage.length-1,te=function(gi){var Qi,pt,Lt,mr,Cr,No,ui,pr,Ei,Wt,mr,Cr,No,ui,pr,ie,Me,ke,Ue,Ke,en,hn,Dn,Fi,Ei,ii,mr,er,di,ui,pr,Nr,Cr,No,wo,Tn,Fo,Na,Ia,Aa,sa,ia;return Te(this,function(ya){switch(ya.label){case 0:if(gi.type!==0)return[3,5];Qi=void 0,pt=gi.url,ya.label=1;case 1:return ya.trys.push([1,3,,4]),[4,Ce.context.cache.match(pt)];case 2:return Qi=ya.sent(),[3,4];case 3:return ya.sent(),Ce.context.logger.error("Error loading background-image "+pt),[3,4];case 4:return Qi&&(Lt=Dd(bt,Pt,[Qi.width,Qi.height,Qi.width/Qi.height]),mr=Lt[0],Cr=Lt[1],No=Lt[2],ui=Lt[3],pr=Lt[4],Ei=Ce.ctx.createPattern(Ce.resizeImage(Qi,ui,pr),"repeat"),Ce.renderRepeat(mr,Ei,Cr,No)),[3,6];case 5:gc(gi)?(Wt=Dd(bt,Pt,[null,null,null]),mr=Wt[0],Cr=Wt[1],No=Wt[2],ui=Wt[3],pr=Wt[4],ie=oA(gi.angle,ui,pr),Me=ie[0],ke=ie[1],Ue=ie[2],Ke=ie[3],en=ie[4],hn=document.createElement("canvas"),hn.width=ui,hn.height=pr,Dn=hn.getContext("2d"),Fi=Dn.createLinearGradient(ke,Ke,Ue,en),Bi(gi.stops,Me).forEach(function(Js){return Fi.addColorStop(Js.stop,Ws(Js.color))}),Dn.fillStyle=Fi,Dn.fillRect(0,0,ui,pr),ui>0&&pr>0&&(Ei=Ce.ctx.createPattern(hn,"repeat"),Ce.renderRepeat(mr,Ei,Cr,No))):na(gi)&&(ii=Dd(bt,Pt,[null,null,null]),mr=ii[0],er=ii[1],di=ii[2],ui=ii[3],pr=ii[4],Nr=gi.position.length===0?[kc]:gi.position,Cr=Sa(Nr[0],ui),No=Sa(Nr[Nr.length-1],pr),wo=Nh(gi,Cr,No,ui,pr),Tn=wo[0],Fo=wo[1],Tn>0&&Fo>0&&(Na=Ce.ctx.createRadialGradient(er+Cr,di+No,0,er+Cr,di+No,Tn),Bi(gi.stops,Tn*2).forEach(function(Js){return Na.addColorStop(Js.stop,Ws(Js.color))}),Ce.path(mr),Ce.ctx.fillStyle=Na,Tn!==Fo?(Ia=bt.bounds.left+.5*bt.bounds.width,Aa=bt.bounds.top+.5*bt.bounds.height,sa=Fo/Tn,ia=1/sa,Ce.ctx.save(),Ce.ctx.translate(Ia,Aa),Ce.ctx.transform(1,0,0,sa,0,0),Ce.ctx.translate(-Ia,-Aa),Ce.ctx.fillRect(er,ia*(di-Aa)+Aa,ui,pr*ia),Ce.ctx.restore()):Ce.ctx.fill())),ya.label=6;case 6:return Pt--,[2]}})},Ce=this,$e=0,Cn=bt.styles.backgroundImage.slice(0).reverse(),hi.label=1;case 1:return $e<Cn.length?(rn=Cn[$e],[5,te(rn)]):[3,4];case 2:hi.sent(),hi.label=3;case 3:return $e++,[3,1];case 4:return[2]}})})},xt.prototype.renderSolidBorder=function(bt,Pt,te){return Le(this,void 0,void 0,function(){return Te(this,function(Ce){return this.path(kd(te,Pt)),this.ctx.fillStyle=Ws(bt),this.ctx.fill(),[2]})})},xt.prototype.renderDoubleBorder=function(bt,Pt,te,Ce){return Le(this,void 0,void 0,function(){var $e,Cn;return Te(this,function(rn){switch(rn.label){case 0:return Pt<3?[4,this.renderSolidBorder(bt,te,Ce)]:[3,2];case 1:return rn.sent(),[2];case 2:return $e=cd(Ce,te),this.path($e),this.ctx.fillStyle=Ws(bt),this.ctx.fill(),Cn=Gf(Ce,te),this.path(Cn),this.ctx.fill(),[2]}})})},xt.prototype.renderNodeBackgroundAndBorders=function(bt){return Le(this,void 0,void 0,function(){var Pt,te,Ce,$e,Cn,rn,hi,gi,Qi=this;return Te(this,function(pt){switch(pt.label){case 0:return this.applyEffects(bt.getEffects(2)),Pt=bt.container.styles,te=!pa(Pt.backgroundColor)||Pt.backgroundImage.length,Ce=[{style:Pt.borderTopStyle,color:Pt.borderTopColor,width:Pt.borderTopWidth},{style:Pt.borderRightStyle,color:Pt.borderRightColor,width:Pt.borderRightWidth},{style:Pt.borderBottomStyle,color:Pt.borderBottomColor,width:Pt.borderBottomWidth},{style:Pt.borderLeftStyle,color:Pt.borderLeftColor,width:Pt.borderLeftWidth}],$e=wf(Vh(Pt.backgroundClip,0),bt.curves),te||Pt.boxShadow.length?(this.ctx.save(),this.path($e),this.ctx.clip(),pa(Pt.backgroundColor)||(this.ctx.fillStyle=Ws(Pt.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(bt.container)]):[3,2];case 1:pt.sent(),this.ctx.restore(),Pt.boxShadow.slice(0).reverse().forEach(function(Lt){Qi.ctx.save();var Wt=Fl(bt.curves),ie=Lt.inset?0:Rl,Me=_f(Wt,-ie+(Lt.inset?1:-1)*Lt.spread.number,(Lt.inset?1:-1)*Lt.spread.number,Lt.spread.number*(Lt.inset?-2:2),Lt.spread.number*(Lt.inset?-2:2));Lt.inset?(Qi.path(Wt),Qi.ctx.clip(),Qi.mask(Me)):(Qi.mask(Wt),Qi.ctx.clip(),Qi.path(Me)),Qi.ctx.shadowOffsetX=Lt.offsetX.number+ie,Qi.ctx.shadowOffsetY=Lt.offsetY.number,Qi.ctx.shadowColor=Ws(Lt.color),Qi.ctx.shadowBlur=Lt.blur.number,Qi.ctx.fillStyle=Lt.inset?Ws(Lt.color):"rgba(0,0,0,1)",Qi.ctx.fill(),Qi.ctx.restore()}),pt.label=2;case 2:Cn=0,rn=0,hi=Ce,pt.label=3;case 3:return rn<hi.length?(gi=hi[rn],gi.style!==0&&!pa(gi.color)&&gi.width>0?gi.style!==2?[3,5]:[4,this.renderDashedDottedBorder(gi.color,gi.width,Cn,bt.curves,2)]:[3,11]):[3,13];case 4:return pt.sent(),[3,11];case 5:return gi.style!==3?[3,7]:[4,this.renderDashedDottedBorder(gi.color,gi.width,Cn,bt.curves,3)];case 6:return pt.sent(),[3,11];case 7:return gi.style!==4?[3,9]:[4,this.renderDoubleBorder(gi.color,gi.width,Cn,bt.curves)];case 8:return pt.sent(),[3,11];case 9:return[4,this.renderSolidBorder(gi.color,Cn,bt.curves)];case 10:pt.sent(),pt.label=11;case 11:Cn++,pt.label=12;case 12:return rn++,[3,3];case 13:return[2]}})})},xt.prototype.renderDashedDottedBorder=function(bt,Pt,te,Ce,$e){return Le(this,void 0,void 0,function(){var Cn,rn,hi,gi,Qi,pt,Lt,Wt,ie,Me,ke,Ue,Ke,en,hn,Dn,hn,Dn;return Te(this,function(Fi){return this.ctx.save(),Cn=Od(Ce,te),rn=kd(Ce,te),$e===2&&(this.path(rn),this.ctx.clip()),Ra(rn[0])?(hi=rn[0].start.x,gi=rn[0].start.y):(hi=rn[0].x,gi=rn[0].y),Ra(rn[1])?(Qi=rn[1].end.x,pt=rn[1].end.y):(Qi=rn[1].x,pt=rn[1].y),te===0||te===2?Lt=Math.abs(hi-Qi):Lt=Math.abs(gi-pt),this.ctx.beginPath(),$e===3?this.formatPath(Cn):this.formatPath(rn.slice(0,2)),Wt=Pt<3?Pt*3:Pt*2,ie=Pt<3?Pt*2:Pt,$e===3&&(Wt=Pt,ie=Pt),Me=!0,Lt<=Wt*2?Me=!1:Lt<=Wt*2+ie?(ke=Lt/(2*Wt+ie),Wt*=ke,ie*=ke):(Ue=Math.floor((Lt+ie)/(Wt+ie)),Ke=(Lt-Ue*Wt)/(Ue-1),en=(Lt-(Ue+1)*Wt)/Ue,ie=en<=0||Math.abs(ie-Ke)<Math.abs(ie-en)?Ke:en),Me&&($e===3?this.ctx.setLineDash([0,Wt+ie]):this.ctx.setLineDash([Wt,ie])),$e===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Pt):this.ctx.lineWidth=Pt*2+1.1,this.ctx.strokeStyle=Ws(bt),this.ctx.stroke(),this.ctx.setLineDash([]),$e===2&&(Ra(rn[0])&&(hn=rn[3],Dn=rn[0],this.ctx.beginPath(),this.formatPath([new Hr(hn.end.x,hn.end.y),new Hr(Dn.start.x,Dn.start.y)]),this.ctx.stroke()),Ra(rn[1])&&(hn=rn[1],Dn=rn[2],this.ctx.beginPath(),this.formatPath([new Hr(hn.end.x,hn.end.y),new Hr(Dn.start.x,Dn.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},xt.prototype.render=function(bt){return Le(this,void 0,void 0,function(){var Pt;return Te(this,function(te){switch(te.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ws(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Pt=yf(bt),[4,this.renderStack(Pt)];case 1:return te.sent(),this.applyEffects([]),[2,this.canvas]}})})},xt}(rc),a0=function(Bt){return Bt instanceof ld||Bt instanceof ad?!0:Bt instanceof Ku&&Bt.type!==fA&&Bt.type!==ZA},wf=function(Bt,xt){switch(Bt){case 0:return Fl(xt);case 2:return wl(xt);case 1:default:return MA(xt)}},us=function(Bt){switch(Bt){case 1:return"center";case 2:return"right";case 0:default:return"left"}},_g=["-apple-system","system-ui"],Gg=function(Bt){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Bt.filter(function(xt){return _g.indexOf(xt)===-1}):Bt},Kg=function(Bt){Yt(xt,Bt);function xt(bt,Pt){var te=Bt.call(this,bt,Pt)||this;return te.canvas=Pt.canvas?Pt.canvas:document.createElement("canvas"),te.ctx=te.canvas.getContext("2d"),te.options=Pt,te.canvas.width=Math.floor(Pt.width*Pt.scale),te.canvas.height=Math.floor(Pt.height*Pt.scale),te.canvas.style.width=Pt.width+"px",te.canvas.style.height=Pt.height+"px",te.ctx.scale(te.options.scale,te.options.scale),te.ctx.translate(-Pt.x,-Pt.y),te.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Pt.width+"x"+Pt.height+" at "+Pt.x+","+Pt.y+") with scale "+Pt.scale),te}return xt.prototype.render=function(bt){return Le(this,void 0,void 0,function(){var Pt,te;return Te(this,function(Ce){switch(Ce.label){case 0:return Pt=od(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,bt),[4,dd(Pt)];case 1:return te=Ce.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ws(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}(rc),dd=function(Bt){return new Promise(function(xt,bt){var Pt=new Image;Pt.onload=function(){xt(Pt)},Pt.onerror=bt,Pt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Bt))})},fd=function(){function Bt(xt){var bt=xt.id,Pt=xt.enabled;this.id=bt,this.enabled=Pt,this.start=Date.now()}return Bt.prototype.debug=function(){for(var xt=[],bt=0;bt<arguments.length;bt++)xt[bt]=arguments[bt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,xn([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=[],bt=0;bt<arguments.length;bt++)xt[bt]=arguments[bt];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,xn([this.id,this.getTime()+"ms"],xt))},Bt.prototype.warn=function(){for(var xt=[],bt=0;bt<arguments.length;bt++)xt[bt]=arguments[bt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,xn([this.id,this.getTime()+"ms"],xt)):this.info.apply(this,xt))},Bt.prototype.error=function(){for(var xt=[],bt=0;bt<arguments.length;bt++)xt[bt]=arguments[bt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,xn([this.id,this.getTime()+"ms"],xt)):this.info.apply(this,xt))},Bt.instances={},Bt}(),Xh=function(){function Bt(xt,bt){var Pt;this.windowBounds=bt,this.instanceName="#"+Bt.instanceCount++,this.logger=new fd({id:this.instanceName,enabled:xt.logging}),this.cache=(Pt=xt.cache)!==null&&Pt!==void 0?Pt:new ws(this,xt)}return Bt.instanceCount=1,Bt}(),Vf=function(Bt,xt){return xt===void 0&&(xt={}),xg(Bt,xt)};typeof window!="undefined"&&Vr.setContext(window);var xg=function(Bt,xt){return Le(void 0,void 0,void 0,function(){var bt,Pt,te,Ce,$e,Cn,rn,hi,gi,Qi,pt,Lt,Wt,ie,Me,ke,Ue,Ke,en,hn,Fi,Dn,Fi,Ei,ii,mr,er,di,ui,pr,Nr,Cr,No,wo,Tn,Fo,Na,Ia,Aa,sa;return Te(this,function(ia){switch(ia.label){case 0:if(!Bt||typeof Bt!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(bt=Bt.ownerDocument,!bt)throw new Error("Element is not attached to a Document");if(Pt=bt.defaultView,!Pt)throw new Error("Document is not attached to a Window");return te={allowTaint:(Ei=xt.allowTaint)!==null&&Ei!==void 0?Ei:!1,imageTimeout:(ii=xt.imageTimeout)!==null&&ii!==void 0?ii:15e3,proxy:xt.proxy,useCORS:(mr=xt.useCORS)!==null&&mr!==void 0?mr:!1},Ce=Kt({logging:(er=xt.logging)!==null&&er!==void 0?er:!0,cache:xt.cache},te),$e={windowWidth:(di=xt.windowWidth)!==null&&di!==void 0?di:Pt.innerWidth,windowHeight:(ui=xt.windowHeight)!==null&&ui!==void 0?ui:Pt.innerHeight,scrollX:(pr=xt.scrollX)!==null&&pr!==void 0?pr:Pt.pageXOffset,scrollY:(Nr=xt.scrollY)!==null&&Nr!==void 0?Nr:Pt.pageYOffset},Cn=new Se($e.scrollX,$e.scrollY,$e.windowWidth,$e.windowHeight),rn=new Xh(Ce,Cn),hi=(Cr=xt.foreignObjectRendering)!==null&&Cr!==void 0?Cr:!1,gi={allowTaint:(No=xt.allowTaint)!==null&&No!==void 0?No:!1,onclone:xt.onclone,ignoreElements:xt.ignoreElements,inlineImages:hi,copyStyles:hi},rn.logger.debug("Starting document clone with size "+Cn.width+"x"+Cn.height+" scrolled to "+-Cn.left+","+-Cn.top),Qi=new mt(rn,Bt,gi),pt=Qi.clonedReferenceElement,pt?[4,Qi.toIFrame(bt,Cn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Lt=ia.sent(),Wt=Ko(pt)||Vs(pt)?je(pt.ownerDocument):We(rn,pt),ie=Wt.width,Me=Wt.height,ke=Wt.left,Ue=Wt.top,Ke=Wg(rn,pt,xt.backgroundColor),en={canvas:xt.canvas,backgroundColor:Ke,scale:(Tn=(wo=xt.scale)!==null&&wo!==void 0?wo:Pt.devicePixelRatio)!==null&&Tn!==void 0?Tn:1,x:((Fo=xt.x)!==null&&Fo!==void 0?Fo:0)+ke,y:((Na=xt.y)!==null&&Na!==void 0?Na:0)+Ue,width:(Ia=xt.width)!==null&&Ia!==void 0?Ia:Math.ceil(ie),height:(Aa=xt.height)!==null&&Aa!==void 0?Aa:Math.ceil(Me)},hi?(rn.logger.debug("Document cloned, using foreign object rendering"),Fi=new Kg(rn,en),[4,Fi.render(pt)]):[3,3];case 2:return hn=ia.sent(),[3,5];case 3:return rn.logger.debug("Document cloned, element located at "+ke+","+Ue+" with size "+ie+"x"+Me+" using computed rendering"),rn.logger.debug("Starting DOM parsing"),Dn=ud(rn,pt),Ke===Dn.styles.backgroundColor&&(Dn.styles.backgroundColor=_h.TRANSPARENT),rn.logger.debug("Starting renderer for element at "+en.x+","+en.y+" with size "+en.width+"x"+en.height),Fi=new Ud(rn,en),[4,Fi.render(Dn)];case 4:hn=ia.sent(),ia.label=5;case 5:return(!((sa=xt.removeContainer)!==null&&sa!==void 0)||sa)&&(mt.destroy(Lt)||rn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),rn.logger.debug("Finished rendering"),[2,hn]}})})},Wg=function(Bt,xt,bt){var Pt=xt.ownerDocument,te=Pt.documentElement?fc(Bt,getComputedStyle(Pt.documentElement).backgroundColor):_h.TRANSPARENT,Ce=Pt.body?fc(Bt,getComputedStyle(Pt.body).backgroundColor):_h.TRANSPARENT,$e=typeof bt=="string"?fc(Bt,bt):bt===null?_h.TRANSPARENT:4294967295;return xt===Pt.documentElement?pa(te)?pa(Ce)?$e:Ce:te:$e};return Vf})},44164:function(Ci,Ii,Yt){var Kt=Yt(97671);(function(Te,xn){Ci.exports=xn(Yt(73207),Yt(64270))})(self,function(Le,Te){return function(){var xn={"./src/plugin/hyperlinks.js":function(de,ve,It){"use strict";It.r(ve);var xe=It("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ee=It.n(xe),ge=It("./node_modules/core-js/modules/es.string.link.js"),Qt=It.n(ge),et=It("./src/worker.js"),nt=It("./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 Nt=this.prop.container,Rt=Nt.querySelectorAll("a"),Gt=(0,nt.unitConvert)(Nt.getBoundingClientRect(),this.prop.pageSize.k);ht=[],Array.prototype.forEach.call(Rt,function($t){for(var se=$t.getClientRects(),me=0;me<se.length;me++){var ce=(0,nt.unitConvert)(se[me],this.prop.pageSize.k);ce.left-=Gt.left,ce.top-=Gt.top;var Xe=Math.floor(ce.top/this.prop.pageSize.inner.height)+1,De=this.opt.margin[0]+ce.top%this.prop.pageSize.inner.height,ln=this.opt.margin[1]+ce.left;ht.push({page:Xe,top:De,left:ln,clientRect:ce,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 Nt=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(Nt)}})}},"./src/plugin/jspdf-plugin.js":function(de,ve,It){"use strict";It.r(ve);var xe=It("./node_modules/core-js/modules/es.symbol.js"),ee=It.n(xe),ge=It("./node_modules/core-js/modules/es.symbol.description.js"),Qt=It.n(ge),et=It("./node_modules/core-js/modules/es.object.to-string.js"),nt=It.n(et),ht=It("./node_modules/core-js/modules/es.symbol.iterator.js"),at=It.n(ht),ft=It("./node_modules/core-js/modules/es.array.iterator.js"),vt=It.n(ft),Nt=It("./node_modules/core-js/modules/es.string.iterator.js"),Rt=It.n(Nt),Gt=It("./node_modules/core-js/modules/web.dom-collections.iterator.js"),$t=It.n(Gt),se=It("jspdf"),me=It.n(se);function ce(Xe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ce=function(ln){return typeof ln}:ce=function(ln){return ln&&typeof Symbol=="function"&&ln.constructor===Symbol&&ln!==Symbol.prototype?"symbol":typeof ln},ce(Xe)}se.jsPDF.getPageSize=function(Xe,De,ln){if(ce(Xe)==="object"){var Oe=Xe;Xe=Oe.orientation,De=Oe.unit||De,ln=Oe.format||ln}De=De||"mm",ln=ln||"a4",Xe=(""+(Xe||"P")).toLowerCase();var mn=(""+ln).toLowerCase(),Kn={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 sn=1;break;case"mm":var sn=72/25.4;break;case"cm":var sn=72/2.54;break;case"in":var sn=72;break;case"px":var sn=72/96;break;case"pc":var sn=12;break;case"em":var sn=12;break;case"ex":var sn=6;break;default:throw"Invalid unit: "+De}if(Kn.hasOwnProperty(mn))var gn=Kn[mn][1]/sn,pn=Kn[mn][0]/sn;else try{var gn=ln[1],pn=ln[0]}catch(Ye){throw new Error("Invalid format: "+ln)}if(Xe==="p"||Xe==="portrait"){if(Xe="p",pn>gn){var fe=pn;pn=gn,gn=fe}}else if(Xe==="l"||Xe==="landscape"){if(Xe="l",gn>pn){var fe=pn;pn=gn,gn=fe}}else throw"Invalid orientation: "+Xe;var Zt={width:pn,height:gn,unit:De,k:sn};return Zt},ve.default=se.jsPDF},"./src/plugin/pagebreaks.js":function(de,ve,It){"use strict";It.r(ve);var xe=It("./node_modules/core-js/modules/es.array.concat.js"),ee=It.n(xe),ge=It("./node_modules/core-js/modules/es.array.slice.js"),Qt=It.n(ge),et=It("./node_modules/core-js/modules/es.array.join.js"),nt=It.n(et),ht=It("./node_modules/core-js/modules/web.dom-collections.for-each.js"),at=It.n(ht),ft=It("./node_modules/core-js/modules/es.object.keys.js"),vt=It.n(ft),Nt=It("./src/worker.js"),Rt=It("./src/utils.js"),Gt={toContainer:Nt.default.prototype.toContainer};Nt.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},Nt.default.prototype.toContainer=function(){return Gt.toContainer.call(this).then(function(){var me=this.prop.container,ce=this.prop.pageSize.inner.px.height,Xe=[].concat(this.opt.pagebreak.mode),De={avoidAll:Xe.indexOf("avoid-all")!==-1,css:Xe.indexOf("css")!==-1,legacy:Xe.indexOf("legacy")!==-1},ln={},Oe=this;["before","after","avoid"].forEach(function(sn){var gn=De.avoidAll&&sn==="avoid";ln[sn]=gn?[]:[].concat(Oe.opt.pagebreak[sn]||[]),ln[sn].length>0&&(ln[sn]=Array.prototype.slice.call(me.querySelectorAll(ln[sn].join(", "))))});var mn=me.querySelectorAll(".html2pdf__page-break");mn=Array.prototype.slice.call(mn);var Kn=me.querySelectorAll("*");Array.prototype.forEach.call(Kn,function(gn){var pn={before:!1,after:De.legacy&&mn.indexOf(gn)!==-1,avoid:De.avoidAll};if(De.css){var fe=window.getComputedStyle(gn),Zt=["always","page","left","right"],Ye=["avoid","avoid-page"];pn={before:pn.before||Zt.indexOf(fe.breakBefore||fe.pageBreakBefore)!==-1,after:pn.after||Zt.indexOf(fe.breakAfter||fe.pageBreakAfter)!==-1,avoid:pn.avoid||Ye.indexOf(fe.breakInside||fe.pageBreakInside)!==-1}}Object.keys(pn).forEach(function(xi){pn[xi]=pn[xi]||ln[xi].indexOf(gn)!==-1});var Gn=gn.getBoundingClientRect();if(pn.avoid&&!pn.before){var ri=Math.floor(Gn.top/ce),cn=Math.floor(Gn.bottom/ce),In=Math.abs(Gn.bottom-Gn.top)/ce;cn!==ri&&In<=1&&(pn.before=!0)}if(pn.before){var Wn=(0,Rt.createElement)("div",{style:{display:"block",height:ce-Gn.top%ce+"px"}});gn.parentNode.insertBefore(Wn,gn)}if(pn.after){var Wn=(0,Rt.createElement)("div",{style:{display:"block",height:ce-Gn.bottom%ce+"px"}});gn.parentNode.insertBefore(Wn,gn.nextSibling)}})})}},"./src/utils.js":function(de,ve,It){"use strict";It.r(ve),It.d(ve,{objType:function(){return Xe},createElement:function(){return De},cloneNode:function(){return ln},unitConvert:function(){return Oe},toPx:function(){return mn}});var xe=It("./node_modules/core-js/modules/es.number.constructor.js"),ee=It.n(xe),ge=It("./node_modules/core-js/modules/es.symbol.js"),Qt=It.n(ge),et=It("./node_modules/core-js/modules/es.symbol.description.js"),nt=It.n(et),ht=It("./node_modules/core-js/modules/es.object.to-string.js"),at=It.n(ht),ft=It("./node_modules/core-js/modules/es.symbol.iterator.js"),vt=It.n(ft),Nt=It("./node_modules/core-js/modules/es.array.iterator.js"),Rt=It.n(Nt),Gt=It("./node_modules/core-js/modules/es.string.iterator.js"),$t=It.n(Gt),se=It("./node_modules/core-js/modules/web.dom-collections.iterator.js"),me=It.n(se);function ce(Kn){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ce=function(gn){return typeof gn}:ce=function(gn){return gn&&typeof Symbol=="function"&&gn.constructor===Symbol&&gn!==Symbol.prototype?"symbol":typeof gn},ce(Kn)}var Xe=function(sn){var gn=ce(sn);return gn==="undefined"?"undefined":gn==="string"||sn instanceof String?"string":gn==="number"||sn instanceof Number?"number":gn==="function"||sn instanceof Function?"function":sn&&sn.constructor===Array?"array":sn&&sn.nodeType===1?"element":gn==="object"?"object":"unknown"},De=function(sn,gn){var pn=document.createElement(sn);if(gn.className&&(pn.className=gn.className),gn.innerHTML){pn.innerHTML=gn.innerHTML;for(var fe=pn.getElementsByTagName("script"),Zt=fe.length;Zt-- >0;null)fe[Zt].parentNode.removeChild(fe[Zt])}for(var Ye in gn.style)pn.style[Ye]=gn.style[Ye];return pn},ln=function Kn(sn,gn){for(var pn=sn.nodeType===3?document.createTextNode(sn.nodeValue):sn.cloneNode(!1),fe=sn.firstChild;fe;fe=fe.nextSibling)(gn===!0||fe.nodeType!==1||fe.nodeName!=="SCRIPT")&&pn.appendChild(Kn(fe,gn));return sn.nodeType===1&&(sn.nodeName==="CANVAS"?(pn.width=sn.width,pn.height=sn.height,pn.getContext("2d").drawImage(sn,0,0)):(sn.nodeName==="TEXTAREA"||sn.nodeName==="SELECT")&&(pn.value=sn.value),pn.addEventListener("load",function(){pn.scrollTop=sn.scrollTop,pn.scrollLeft=sn.scrollLeft},!0)),pn},Oe=function(sn,gn){if(Xe(sn)==="number")return sn*72/96/gn;var pn={};for(var fe in sn)pn[fe]=sn[fe]*72/96/gn;return pn},mn=function(sn,gn){return Math.floor(sn*gn/72*96)}},"./src/worker.js":function(de,ve,It){"use strict";It.r(ve);var xe=It("./node_modules/core-js/modules/es.object.assign.js"),ee=It.n(xe),ge=It("./node_modules/core-js/modules/es.array.map.js"),Qt=It.n(ge),et=It("./node_modules/core-js/modules/es.object.keys.js"),nt=It.n(et),ht=It("./node_modules/core-js/modules/es.array.concat.js"),at=It.n(ht),ft=It("./node_modules/core-js/modules/es.object.to-string.js"),vt=It.n(ft),Nt=It("./node_modules/core-js/modules/es.regexp.to-string.js"),Rt=It.n(Nt),Gt=It("./node_modules/core-js/modules/es.function.name.js"),$t=It.n(Gt),se=It("./node_modules/core-js/modules/web.dom-collections.for-each.js"),me=It.n(se),ce=It("jspdf"),Xe=It.n(ce),De=It("html2canvas"),ln=It.n(De),Oe=It("./src/utils.js"),mn=It("./node_modules/es6-promise/dist/es6-promise.js"),Kn=It.n(mn),sn=Kn().Promise,gn=function pn(fe){var Zt=Object.assign(pn.convert(sn.resolve()),JSON.parse(JSON.stringify(pn.template))),Ye=pn.convert(sn.resolve(),Zt);return Ye=Ye.setProgress(1,pn,1,[pn]),Ye=Ye.set(fe),Ye};gn.prototype=Object.create(sn.prototype),gn.prototype.constructor=gn,gn.convert=function(fe,Zt){return fe.__proto__=Zt||gn.prototype,fe},gn.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:{}}},gn.prototype.from=function(fe,Zt){function Ye(Gn){switch((0,Oe.objType)(Gn)){case"string":return"string";case"element":return Gn.nodeName.toLowerCase&&Gn.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(Zt=Zt||Ye(fe),Zt){case"string":return this.set({src:(0,Oe.createElement)("div",{innerHTML:fe})});case"element":return this.set({src:fe});case"canvas":return this.set({canvas:fe});case"img":return this.set({img:fe});default:return this.error("Unknown source type.")}})},gn.prototype.to=function(fe){switch(fe){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.")}},gn.prototype.toContainer=function(){var fe=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(fe).then(function(){var Ye={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Gn={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Ye.opacity=0;var ri=(0,Oe.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Oe.createElement)("div",{className:"html2pdf__overlay",style:Ye}),this.prop.container=(0,Oe.createElement)("div",{className:"html2pdf__container",style:Gn}),this.prop.container.appendChild(ri),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},gn.prototype.toCanvas=function(){var fe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(fe).then(function(){var Ye=Object.assign({},this.opt.html2canvas);return delete Ye.onrendered,De(this.prop.container,Ye)}).then(function(Ye){var Gn=this.opt.html2canvas.onrendered||function(){};Gn(Ye),this.prop.canvas=Ye,document.body.removeChild(this.prop.overlay)})},gn.prototype.toImg=function(){var fe=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(fe).then(function(){var Ye=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ye})},gn.prototype.toPdf=function(){var fe=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(fe).then(function(){var Ye=this.prop.canvas,Gn=this.opt,ri=Ye.height,cn=Math.floor(Ye.width*this.prop.pageSize.inner.ratio),In=Math.ceil(ri/cn),Wn=this.prop.pageSize.inner.height,xi=document.createElement("canvas"),pi=xi.getContext("2d");xi.width=Ye.width,xi.height=cn,this.prop.pdf=this.prop.pdf||new ce.jsPDF(Gn.jsPDF);for(var zi=0;zi<In;zi++){zi===In-1&&ri%cn!==0&&(xi.height=ri%cn,Wn=xi.height*this.prop.pageSize.inner.width/xi.width);var Ie=xi.width,Ai=xi.height;pi.fillStyle="white",pi.fillRect(0,0,Ie,Ai),pi.drawImage(Ye,0,zi*cn,Ie,Ai,0,0,Ie,Ai),zi&&this.prop.pdf.addPage();var Ti=xi.toDataURL("image/"+Gn.image.type,Gn.image.quality);this.prop.pdf.addImage(Ti,Gn.image.type,Gn.margin[1],Gn.margin[0],this.prop.pageSize.inner.width,Wn)}})},gn.prototype.output=function(fe,Zt,Ye){return Ye=Ye||"pdf",Ye.toLowerCase()==="img"||Ye.toLowerCase()==="image"?this.outputImg(fe,Zt):this.outputPdf(fe,Zt)},gn.prototype.outputPdf=function(fe,Zt){var Ye=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ye).then(function(){return this.prop.pdf.output(fe,Zt)})},gn.prototype.outputImg=function(fe,Zt){var Ye=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ye).then(function(){switch(fe){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 "'+fe+'" is not supported.'}})},gn.prototype.save=function(fe){var Zt=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Zt).set(fe?{filename:fe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},gn.prototype.set=function(fe){if((0,Oe.objType)(fe)!=="object")return this;var Zt=Object.keys(fe||{}).map(function(Ye){switch(Ye){case"margin":return this.setMargin.bind(this,fe.margin);case"jsPDF":return function(){return this.opt.jsPDF=fe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,fe.pageSize);default:return Ye in gn.template.prop?function(){this.prop[Ye]=fe[Ye]}:function(){this.opt[Ye]=fe[Ye]}}},this);return this.then(function(){return this.thenList(Zt)})},gn.prototype.get=function(fe,Zt){return this.then(function(){var Gn=fe in gn.template.prop?this.prop[fe]:this.opt[fe];return Zt?Zt(Gn):Gn})},gn.prototype.setMargin=function(fe){return this.then(function(){switch((0,Oe.objType)(fe)){case"number":fe=[fe,fe,fe,fe];case"array":if(fe.length===2&&(fe=[fe[0],fe[1],fe[0],fe[1]]),fe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=fe}).then(this.setPageSize)},gn.prototype.setPageSize=function(fe){return this.then(function(){fe=fe||ce.jsPDF.getPageSize(this.opt.jsPDF),fe.hasOwnProperty("inner")||(fe.inner={width:fe.width-this.opt.margin[1]-this.opt.margin[3],height:fe.height-this.opt.margin[0]-this.opt.margin[2]},fe.inner.px={width:(0,Oe.toPx)(fe.inner.width,fe.k),height:(0,Oe.toPx)(fe.inner.height,fe.k)},fe.inner.ratio=fe.inner.height/fe.inner.width),this.prop.pageSize=fe})},gn.prototype.setProgress=function(fe,Zt,Ye,Gn){return fe!=null&&(this.progress.val=fe),Zt!=null&&(this.progress.state=Zt),Ye!=null&&(this.progress.n=Ye),Gn!=null&&(this.progress.stack=Gn),this.progress.ratio=this.progress.val/this.progress.state,this},gn.prototype.updateProgress=function(fe,Zt,Ye,Gn){return this.setProgress(fe?this.progress.val+fe:null,Zt||null,Ye?this.progress.n+Ye:null,Gn?this.progress.stack.concat(Gn):null)},gn.prototype.then=function(fe,Zt){var Ye=this;return this.thenCore(fe,Zt,function(ri,cn){return Ye.updateProgress(null,null,1,[ri]),sn.prototype.then.call(this,function(Wn){return Ye.updateProgress(null,ri),Wn}).then(ri,cn).then(function(Wn){return Ye.updateProgress(1),Wn})})},gn.prototype.thenCore=function(fe,Zt,Ye){Ye=Ye||sn.prototype.then;var Gn=this;fe&&(fe=fe.bind(Gn)),Zt&&(Zt=Zt.bind(Gn));var ri=sn.toString().indexOf("[native code]")!==-1&&sn.name==="Promise",cn=ri?Gn:gn.convert(Object.assign({},Gn),sn.prototype),In=Ye.call(cn,fe,Zt);return gn.convert(In,Gn.__proto__)},gn.prototype.thenExternal=function(fe,Zt){return sn.prototype.then.call(this,fe,Zt)},gn.prototype.thenList=function(fe){var Zt=this;return fe.forEach(function(Gn){Zt=Zt.thenCore(Gn)}),Zt},gn.prototype.catch=function(pn){pn&&(pn=pn.bind(this));var fe=sn.prototype.catch.call(this,pn);return gn.convert(fe,this)},gn.prototype.catchExternal=function(fe){return sn.prototype.catch.call(this,fe)},gn.prototype.error=function(fe){return this.then(function(){throw new Error(fe)})},gn.prototype.using=gn.prototype.set,gn.prototype.saveAs=gn.prototype.save,gn.prototype.export=gn.prototype.output,gn.prototype.run=gn.prototype.then,ve.default=gn},"./node_modules/core-js/internals/a-function.js":function(de){de.exports=function(ve){if(typeof ve!="function")throw TypeError(String(ve)+" is not a function");return ve}},"./node_modules/core-js/internals/a-possible-prototype.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/is-object.js");de.exports=function(ee){if(!xe(ee)&&ee!==null)throw TypeError("Can't set "+String(ee)+" as a prototype");return ee}},"./node_modules/core-js/internals/add-to-unscopables.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/well-known-symbol.js"),ee=It("./node_modules/core-js/internals/object-create.js"),ge=It("./node_modules/core-js/internals/object-define-property.js"),Qt=xe("unscopables"),et=Array.prototype;et[Qt]==null&&ge.f(et,Qt,{configurable:!0,value:ee(null)}),de.exports=function(nt){et[Qt][nt]=!0}},"./node_modules/core-js/internals/an-object.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/is-object.js");de.exports=function(ee){if(!xe(ee))throw TypeError(String(ee)+" is not an object");return ee}},"./node_modules/core-js/internals/array-for-each.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/array-iteration.js").forEach,ee=It("./node_modules/core-js/internals/array-method-is-strict.js"),ge=ee("forEach");de.exports=ge?[].forEach:function(et){return xe(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-indexed-object.js"),ee=It("./node_modules/core-js/internals/to-length.js"),ge=It("./node_modules/core-js/internals/to-absolute-index.js"),Qt=function(et){return function(nt,ht,at){var ft=xe(nt),vt=ee(ft.length),Nt=ge(at,vt),Rt;if(et&&ht!=ht){for(;vt>Nt;)if(Rt=ft[Nt++],Rt!=Rt)return!0}else for(;vt>Nt;Nt++)if((et||Nt in ft)&&ft[Nt]===ht)return et||Nt||0;return!et&&-1}};de.exports={includes:Qt(!0),indexOf:Qt(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/function-bind-context.js"),ee=It("./node_modules/core-js/internals/indexed-object.js"),ge=It("./node_modules/core-js/internals/to-object.js"),Qt=It("./node_modules/core-js/internals/to-length.js"),et=It("./node_modules/core-js/internals/array-species-create.js"),nt=[].push,ht=function(at){var ft=at==1,vt=at==2,Nt=at==3,Rt=at==4,Gt=at==6,$t=at==7,se=at==5||Gt;return function(me,ce,Xe,De){for(var ln=ge(me),Oe=ee(ln),mn=xe(ce,Xe,3),Kn=Qt(Oe.length),sn=0,gn=De||et,pn=ft?gn(me,Kn):vt||$t?gn(me,0):void 0,fe,Zt;Kn>sn;sn++)if((se||sn in Oe)&&(fe=Oe[sn],Zt=mn(fe,sn,ln),at))if(ft)pn[sn]=Zt;else if(Zt)switch(at){case 3:return!0;case 5:return fe;case 6:return sn;case 2:nt.call(pn,fe)}else switch(at){case 4:return!1;case 7:nt.call(pn,fe)}return Gt?-1:Nt||Rt?Rt:pn}};de.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(de,ve,It){var xe=It("./node_modules/core-js/internals/fails.js"),ee=It("./node_modules/core-js/internals/well-known-symbol.js"),ge=It("./node_modules/core-js/internals/engine-v8-version.js"),Qt=ee("species");de.exports=function(et){return ge>=51||!xe(function(){var nt=[],ht=nt.constructor={};return ht[Qt]=function(){return{foo:1}},nt[et](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/fails.js");de.exports=function(ee,ge){var Qt=[][ee];return!!Qt&&xe(function(){Qt.call(null,ge||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/is-object.js"),ee=It("./node_modules/core-js/internals/is-array.js"),ge=It("./node_modules/core-js/internals/well-known-symbol.js"),Qt=ge("species");de.exports=function(et){var nt;return ee(et)&&(nt=et.constructor,typeof nt=="function"&&(nt===Array||ee(nt.prototype))?nt=void 0:xe(nt)&&(nt=nt[Qt],nt===null&&(nt=void 0))),nt===void 0?Array:nt}},"./node_modules/core-js/internals/array-species-create.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/array-species-constructor.js");de.exports=function(ee,ge){return new(xe(ee))(ge===0?0:ge)}},"./node_modules/core-js/internals/classof-raw.js":function(de){var ve={}.toString;de.exports=function(It){return ve.call(It).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-string-tag-support.js"),ee=It("./node_modules/core-js/internals/classof-raw.js"),ge=It("./node_modules/core-js/internals/well-known-symbol.js"),Qt=ge("toStringTag"),et=ee(function(){return arguments}())=="Arguments",nt=function(ht,at){try{return ht[at]}catch(ft){}};de.exports=xe?ee:function(ht){var at,ft,vt;return ht===void 0?"Undefined":ht===null?"Null":typeof(ft=nt(at=Object(ht),Qt))=="string"?ft:et?ee(at):(vt=ee(at))=="Object"&&typeof at.callee=="function"?"Arguments":vt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/has.js"),ee=It("./node_modules/core-js/internals/own-keys.js"),ge=It("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Qt=It("./node_modules/core-js/internals/object-define-property.js");de.exports=function(et,nt){for(var ht=ee(nt),at=Qt.f,ft=ge.f,vt=0;vt<ht.length;vt++){var Nt=ht[vt];xe(et,Nt)||at(et,Nt,ft(nt,Nt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/fails.js");de.exports=!xe(function(){function ee(){}return ee.prototype.constructor=null,Object.getPrototypeOf(new ee)!==ee.prototype})},"./node_modules/core-js/internals/create-html.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/require-object-coercible.js"),ee=It("./node_modules/core-js/internals/to-string.js"),ge=/"/g;de.exports=function(Qt,et,nt,ht){var at=ee(xe(Qt)),ft="<"+et;return nt!==""&&(ft+=" "+nt+'="'+ee(ht).replace(ge,""")+'"'),ft+">"+at+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,ee=It("./node_modules/core-js/internals/object-create.js"),ge=It("./node_modules/core-js/internals/create-property-descriptor.js"),Qt=It("./node_modules/core-js/internals/set-to-string-tag.js"),et=It("./node_modules/core-js/internals/iterators.js"),nt=function(){return this};de.exports=function(ht,at,ft){var vt=at+" Iterator";return ht.prototype=ee(xe,{next:ge(1,ft)}),Qt(ht,vt,!1,!0),et[vt]=nt,ht}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/descriptors.js"),ee=It("./node_modules/core-js/internals/object-define-property.js"),ge=It("./node_modules/core-js/internals/create-property-descriptor.js");de.exports=xe?function(Qt,et,nt){return ee.f(Qt,et,ge(1,nt))}:function(Qt,et,nt){return Qt[et]=nt,Qt}},"./node_modules/core-js/internals/create-property-descriptor.js":function(de){de.exports=function(ve,It){return{enumerable:!(ve&1),configurable:!(ve&2),writable:!(ve&4),value:It}}},"./node_modules/core-js/internals/create-property.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/to-property-key.js"),ee=It("./node_modules/core-js/internals/object-define-property.js"),ge=It("./node_modules/core-js/internals/create-property-descriptor.js");de.exports=function(Qt,et,nt){var ht=xe(et);ht in Qt?ee.f(Qt,ht,ge(0,nt)):Qt[ht]=nt}},"./node_modules/core-js/internals/define-iterator.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/create-iterator-constructor.js"),ge=It("./node_modules/core-js/internals/object-get-prototype-of.js"),Qt=It("./node_modules/core-js/internals/object-set-prototype-of.js"),et=It("./node_modules/core-js/internals/set-to-string-tag.js"),nt=It("./node_modules/core-js/internals/create-non-enumerable-property.js"),ht=It("./node_modules/core-js/internals/redefine.js"),at=It("./node_modules/core-js/internals/well-known-symbol.js"),ft=It("./node_modules/core-js/internals/is-pure.js"),vt=It("./node_modules/core-js/internals/iterators.js"),Nt=It("./node_modules/core-js/internals/iterators-core.js"),Rt=Nt.IteratorPrototype,Gt=Nt.BUGGY_SAFARI_ITERATORS,$t=at("iterator"),se="keys",me="values",ce="entries",Xe=function(){return this};de.exports=function(De,ln,Oe,mn,Kn,sn,gn){ee(Oe,ln,mn);var pn=function(pi){if(pi===Kn&&ri)return ri;if(!Gt&&pi in Ye)return Ye[pi];switch(pi){case se:return function(){return new Oe(this,pi)};case me:return function(){return new Oe(this,pi)};case ce:return function(){return new Oe(this,pi)}}return function(){return new Oe(this)}},fe=ln+" Iterator",Zt=!1,Ye=De.prototype,Gn=Ye[$t]||Ye["@@iterator"]||Kn&&Ye[Kn],ri=!Gt&&Gn||pn(Kn),cn=ln=="Array"&&Ye.entries||Gn,In,Wn,xi;if(cn&&(In=ge(cn.call(new De)),Rt!==Object.prototype&&In.next&&(!ft&&ge(In)!==Rt&&(Qt?Qt(In,Rt):typeof In[$t]!="function"&&nt(In,$t,Xe)),et(In,fe,!0,!0),ft&&(vt[fe]=Xe))),Kn==me&&Gn&&Gn.name!==me&&(Zt=!0,ri=function(){return Gn.call(this)}),(!ft||gn)&&Ye[$t]!==ri&&nt(Ye,$t,ri),vt[ln]=ri,Kn)if(Wn={values:pn(me),keys:sn?ri:pn(se),entries:pn(ce)},gn)for(xi in Wn)(Gt||Zt||!(xi in Ye))&&ht(Ye,xi,Wn[xi]);else xe({target:ln,proto:!0,forced:Gt||Zt},Wn);return Wn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/path.js"),ee=It("./node_modules/core-js/internals/has.js"),ge=It("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Qt=It("./node_modules/core-js/internals/object-define-property.js").f;de.exports=function(et){var nt=xe.Symbol||(xe.Symbol={});ee(nt,et)||Qt(nt,et,{value:ge.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/fails.js");de.exports=!xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/is-object.js"),ge=xe.document,Qt=ee(ge)&&ee(ge.createElement);de.exports=function(et){return Qt?ge.createElement(et):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(de){de.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(de,ve,It){var xe=It("./node_modules/core-js/internals/get-built-in.js");de.exports=xe("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/engine-user-agent.js"),ge=xe.process,Qt=xe.Deno,et=ge&&ge.versions||Qt&&Qt.version,nt=et&&et.v8,ht,at;nt?(ht=nt.split("."),at=ht[0]<4?1:ht[0]+ht[1]):ee&&(ht=ee.match(/Edge\/(\d+)/),(!ht||ht[1]>=74)&&(ht=ee.match(/Chrome\/(\d+)/),ht&&(at=ht[1]))),de.exports=at&&+at},"./node_modules/core-js/internals/enum-bug-keys.js":function(de){de.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,ge=It("./node_modules/core-js/internals/create-non-enumerable-property.js"),Qt=It("./node_modules/core-js/internals/redefine.js"),et=It("./node_modules/core-js/internals/set-global.js"),nt=It("./node_modules/core-js/internals/copy-constructor-properties.js"),ht=It("./node_modules/core-js/internals/is-forced.js");de.exports=function(at,ft){var vt=at.target,Nt=at.global,Rt=at.stat,Gt,$t,se,me,ce,Xe;if(Nt?$t=xe:Rt?$t=xe[vt]||et(vt,{}):$t=(xe[vt]||{}).prototype,$t)for(se in ft){if(ce=ft[se],at.noTargetGet?(Xe=ee($t,se),me=Xe&&Xe.value):me=$t[se],Gt=ht(Nt?se:vt+(Rt?".":"#")+se,at.forced),!Gt&&me!==void 0){if(typeof ce==typeof me)continue;nt(ce,me)}(at.sham||me&&me.sham)&&ge(ce,"sham",!0),Qt($t,se,ce,at)}}},"./node_modules/core-js/internals/fails.js":function(de){de.exports=function(ve){try{return!!ve()}catch(It){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/a-function.js");de.exports=function(ee,ge,Qt){if(xe(ee),ge===void 0)return ee;switch(Qt){case 0:return function(){return ee.call(ge)};case 1:return function(et){return ee.call(ge,et)};case 2:return function(et,nt){return ee.call(ge,et,nt)};case 3:return function(et,nt,ht){return ee.call(ge,et,nt,ht)}}return function(){return ee.apply(ge,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=function(ge){return typeof ge=="function"?ge:void 0};de.exports=function(ge,Qt){return arguments.length<2?ee(xe[ge]):xe[ge]&&xe[ge][Qt]}},"./node_modules/core-js/internals/global.js":function(de){var ve=function(It){return It&&It.Math==Math&&It};de.exports=ve(typeof globalThis=="object"&&globalThis)||ve(typeof window=="object"&&window)||ve(typeof self=="object"&&self)||ve(typeof Yt.g=="object"&&Yt.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-object.js"),ee={}.hasOwnProperty;de.exports=Object.hasOwn||function(Qt,et){return ee.call(xe(Qt),et)}},"./node_modules/core-js/internals/hidden-keys.js":function(de){de.exports={}},"./node_modules/core-js/internals/html.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/get-built-in.js");de.exports=xe("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/descriptors.js"),ee=It("./node_modules/core-js/internals/fails.js"),ge=It("./node_modules/core-js/internals/document-create-element.js");de.exports=!xe&&!ee(function(){return Object.defineProperty(ge("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/fails.js"),ee=It("./node_modules/core-js/internals/classof-raw.js"),ge="".split;de.exports=xe(function(){return!Object("z").propertyIsEnumerable(0)})?function(Qt){return ee(Qt)=="String"?ge.call(Qt,""):Object(Qt)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/is-object.js"),ee=It("./node_modules/core-js/internals/object-set-prototype-of.js");de.exports=function(ge,Qt,et){var nt,ht;return ee&&typeof(nt=Qt.constructor)=="function"&&nt!==et&&xe(ht=nt.prototype)&&ht!==et.prototype&&ee(ge,ht),ge}},"./node_modules/core-js/internals/inspect-source.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/shared-store.js"),ee=Function.toString;typeof xe.inspectSource!="function"&&(xe.inspectSource=function(ge){return ee.call(ge)}),de.exports=xe.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/native-weak-map.js"),ee=It("./node_modules/core-js/internals/global.js"),ge=It("./node_modules/core-js/internals/is-object.js"),Qt=It("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=It("./node_modules/core-js/internals/has.js"),nt=It("./node_modules/core-js/internals/shared-store.js"),ht=It("./node_modules/core-js/internals/shared-key.js"),at=It("./node_modules/core-js/internals/hidden-keys.js"),ft="Object already initialized",vt=ee.WeakMap,Nt,Rt,Gt,$t=function(Oe){return Gt(Oe)?Rt(Oe):Nt(Oe,{})},se=function(Oe){return function(mn){var Kn;if(!ge(mn)||(Kn=Rt(mn)).type!==Oe)throw TypeError("Incompatible receiver, "+Oe+" required");return Kn}};if(xe||nt.state){var me=nt.state||(nt.state=new vt),ce=me.get,Xe=me.has,De=me.set;Nt=function(Oe,mn){if(Xe.call(me,Oe))throw new TypeError(ft);return mn.facade=Oe,De.call(me,Oe,mn),mn},Rt=function(Oe){return ce.call(me,Oe)||{}},Gt=function(Oe){return Xe.call(me,Oe)}}else{var ln=ht("state");at[ln]=!0,Nt=function(Oe,mn){if(et(Oe,ln))throw new TypeError(ft);return mn.facade=Oe,Qt(Oe,ln,mn),mn},Rt=function(Oe){return et(Oe,ln)?Oe[ln]:{}},Gt=function(Oe){return et(Oe,ln)}}de.exports={set:Nt,get:Rt,has:Gt,enforce:$t,getterFor:se}},"./node_modules/core-js/internals/is-array.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/classof-raw.js");de.exports=Array.isArray||function(ge){return xe(ge)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/fails.js"),ee=/#|\.prototype\./,ge=function(at,ft){var vt=et[Qt(at)];return vt==ht?!0:vt==nt?!1:typeof ft=="function"?xe(ft):!!ft},Qt=ge.normalize=function(at){return String(at).replace(ee,".").toLowerCase()},et=ge.data={},nt=ge.NATIVE="N",ht=ge.POLYFILL="P";de.exports=ge},"./node_modules/core-js/internals/is-object.js":function(de){de.exports=function(ve){return typeof ve=="object"?ve!==null:typeof ve=="function"}},"./node_modules/core-js/internals/is-pure.js":function(de){de.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/get-built-in.js"),ee=It("./node_modules/core-js/internals/use-symbol-as-uid.js");de.exports=ee?function(ge){return typeof ge=="symbol"}:function(ge){var Qt=xe("Symbol");return typeof Qt=="function"&&Object(ge)instanceof Qt}},"./node_modules/core-js/internals/iterators-core.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/fails.js"),ee=It("./node_modules/core-js/internals/object-get-prototype-of.js"),ge=It("./node_modules/core-js/internals/create-non-enumerable-property.js"),Qt=It("./node_modules/core-js/internals/has.js"),et=It("./node_modules/core-js/internals/well-known-symbol.js"),nt=It("./node_modules/core-js/internals/is-pure.js"),ht=et("iterator"),at=!1,ft=function(){return this},vt,Nt,Rt;[].keys&&(Rt=[].keys(),"next"in Rt?(Nt=ee(ee(Rt)),Nt!==Object.prototype&&(vt=Nt)):at=!0);var Gt=vt==null||xe(function(){var $t={};return vt[ht].call($t)!==$t});Gt&&(vt={}),(!nt||Gt)&&!Qt(vt,ht)&&ge(vt,ht,ft),de.exports={IteratorPrototype:vt,BUGGY_SAFARI_ITERATORS:at}},"./node_modules/core-js/internals/iterators.js":function(de){de.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/engine-v8-version.js"),ee=It("./node_modules/core-js/internals/fails.js");de.exports=!!Object.getOwnPropertySymbols&&!ee(function(){var ge=Symbol();return!String(ge)||!(Object(ge)instanceof Symbol)||!Symbol.sham&&xe&&xe<41})},"./node_modules/core-js/internals/native-weak-map.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/inspect-source.js"),ge=xe.WeakMap;de.exports=typeof ge=="function"&&/native code/.test(ee(ge))},"./node_modules/core-js/internals/object-assign.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/descriptors.js"),ee=It("./node_modules/core-js/internals/fails.js"),ge=It("./node_modules/core-js/internals/object-keys.js"),Qt=It("./node_modules/core-js/internals/object-get-own-property-symbols.js"),et=It("./node_modules/core-js/internals/object-property-is-enumerable.js"),nt=It("./node_modules/core-js/internals/to-object.js"),ht=It("./node_modules/core-js/internals/indexed-object.js"),at=Object.assign,ft=Object.defineProperty;de.exports=!at||ee(function(){if(xe&&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={},Nt={},Rt=Symbol(),Gt="abcdefghijklmnopqrst";return vt[Rt]=7,Gt.split("").forEach(function($t){Nt[$t]=$t}),at({},vt)[Rt]!=7||ge(at({},Nt)).join("")!=Gt})?function(Nt,Rt){for(var Gt=nt(Nt),$t=arguments.length,se=1,me=Qt.f,ce=et.f;$t>se;)for(var Xe=ht(arguments[se++]),De=me?ge(Xe).concat(me(Xe)):ge(Xe),ln=De.length,Oe=0,mn;ln>Oe;)mn=De[Oe++],(!xe||ce.call(Xe,mn))&&(Gt[mn]=Xe[mn]);return Gt}:at},"./node_modules/core-js/internals/object-create.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/an-object.js"),ee=It("./node_modules/core-js/internals/object-define-properties.js"),ge=It("./node_modules/core-js/internals/enum-bug-keys.js"),Qt=It("./node_modules/core-js/internals/hidden-keys.js"),et=It("./node_modules/core-js/internals/html.js"),nt=It("./node_modules/core-js/internals/document-create-element.js"),ht=It("./node_modules/core-js/internals/shared-key.js"),at=">",ft="<",vt="prototype",Nt="script",Rt=ht("IE_PROTO"),Gt=function(){},$t=function(De){return ft+Nt+at+De+ft+"/"+Nt+at},se=function(De){De.write($t("")),De.close();var ln=De.parentWindow.Object;return De=null,ln},me=function(){var De=nt("iframe"),ln="java"+Nt+":",Oe;if(De.style)return De.style.display="none",et.appendChild(De),De.src=String(ln),Oe=De.contentWindow.document,Oe.open(),Oe.write($t("document.F=Object")),Oe.close(),Oe.F},ce,Xe=function(){try{ce=new ActiveXObject("htmlfile")}catch(ln){}Xe=document.domain&&ce?se(ce):me()||se(ce);for(var De=ge.length;De--;)delete Xe[vt][ge[De]];return Xe()};Qt[Rt]=!0,de.exports=Object.create||function(ln,Oe){var mn;return ln!==null?(Gt[vt]=xe(ln),mn=new Gt,Gt[vt]=null,mn[Rt]=ln):mn=Xe(),Oe===void 0?mn:ee(mn,Oe)}},"./node_modules/core-js/internals/object-define-properties.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/descriptors.js"),ee=It("./node_modules/core-js/internals/object-define-property.js"),ge=It("./node_modules/core-js/internals/an-object.js"),Qt=It("./node_modules/core-js/internals/object-keys.js");de.exports=xe?Object.defineProperties:function(nt,ht){ge(nt);for(var at=Qt(ht),ft=at.length,vt=0,Nt;ft>vt;)ee.f(nt,Nt=at[vt++],ht[Nt]);return nt}},"./node_modules/core-js/internals/object-define-property.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/descriptors.js"),ee=It("./node_modules/core-js/internals/ie8-dom-define.js"),ge=It("./node_modules/core-js/internals/an-object.js"),Qt=It("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;ve.f=xe?et:function(ht,at,ft){if(ge(ht),at=Qt(at),ge(ft),ee)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(de,ve,It){var xe=It("./node_modules/core-js/internals/descriptors.js"),ee=It("./node_modules/core-js/internals/object-property-is-enumerable.js"),ge=It("./node_modules/core-js/internals/create-property-descriptor.js"),Qt=It("./node_modules/core-js/internals/to-indexed-object.js"),et=It("./node_modules/core-js/internals/to-property-key.js"),nt=It("./node_modules/core-js/internals/has.js"),ht=It("./node_modules/core-js/internals/ie8-dom-define.js"),at=Object.getOwnPropertyDescriptor;ve.f=xe?at:function(vt,Nt){if(vt=Qt(vt),Nt=et(Nt),ht)try{return at(vt,Nt)}catch(Rt){}if(nt(vt,Nt))return ge(!ee.f.call(vt,Nt),vt[Nt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-indexed-object.js"),ee=It("./node_modules/core-js/internals/object-get-own-property-names.js").f,ge={}.toString,Qt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(nt){try{return ee(nt)}catch(ht){return Qt.slice()}};de.exports.f=function(ht){return Qt&&ge.call(ht)=="[object Window]"?et(ht):ee(xe(ht))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/object-keys-internal.js"),ee=It("./node_modules/core-js/internals/enum-bug-keys.js"),ge=ee.concat("length","prototype");ve.f=Object.getOwnPropertyNames||function(et){return xe(et,ge)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(de,ve){ve.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/has.js"),ee=It("./node_modules/core-js/internals/to-object.js"),ge=It("./node_modules/core-js/internals/shared-key.js"),Qt=It("./node_modules/core-js/internals/correct-prototype-getter.js"),et=ge("IE_PROTO"),nt=Object.prototype;de.exports=Qt?Object.getPrototypeOf:function(ht){return ht=ee(ht),xe(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(de,ve,It){var xe=It("./node_modules/core-js/internals/has.js"),ee=It("./node_modules/core-js/internals/to-indexed-object.js"),ge=It("./node_modules/core-js/internals/array-includes.js").indexOf,Qt=It("./node_modules/core-js/internals/hidden-keys.js");de.exports=function(et,nt){var ht=ee(et),at=0,ft=[],vt;for(vt in ht)!xe(Qt,vt)&&xe(ht,vt)&&ft.push(vt);for(;nt.length>at;)xe(ht,vt=nt[at++])&&(~ge(ft,vt)||ft.push(vt));return ft}},"./node_modules/core-js/internals/object-keys.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/object-keys-internal.js"),ee=It("./node_modules/core-js/internals/enum-bug-keys.js");de.exports=Object.keys||function(Qt){return xe(Qt,ee)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(de,ve){"use strict";var It={}.propertyIsEnumerable,xe=Object.getOwnPropertyDescriptor,ee=xe&&!It.call({1:2},1);ve.f=ee?function(Qt){var et=xe(this,Qt);return!!et&&et.enumerable}:It},"./node_modules/core-js/internals/object-set-prototype-of.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/an-object.js"),ee=It("./node_modules/core-js/internals/a-possible-prototype.js");de.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ge=!1,Qt={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(Qt,[]),ge=Qt instanceof Array}catch(nt){}return function(ht,at){return xe(ht),ee(at),ge?et.call(ht,at):ht.__proto__=at,ht}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/to-string-tag-support.js"),ee=It("./node_modules/core-js/internals/classof.js");de.exports=xe?{}.toString:function(){return"[object "+ee(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/is-object.js");de.exports=function(ee,ge){var Qt,et;if(ge==="string"&&typeof(Qt=ee.toString)=="function"&&!xe(et=Qt.call(ee))||typeof(Qt=ee.valueOf)=="function"&&!xe(et=Qt.call(ee))||ge!=="string"&&typeof(Qt=ee.toString)=="function"&&!xe(et=Qt.call(ee)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/get-built-in.js"),ee=It("./node_modules/core-js/internals/object-get-own-property-names.js"),ge=It("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Qt=It("./node_modules/core-js/internals/an-object.js");de.exports=xe("Reflect","ownKeys")||function(nt){var ht=ee.f(Qt(nt)),at=ge.f;return at?ht.concat(at(nt)):ht}},"./node_modules/core-js/internals/path.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js");de.exports=xe},"./node_modules/core-js/internals/redefine.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/create-non-enumerable-property.js"),ge=It("./node_modules/core-js/internals/has.js"),Qt=It("./node_modules/core-js/internals/set-global.js"),et=It("./node_modules/core-js/internals/inspect-source.js"),nt=It("./node_modules/core-js/internals/internal-state.js"),ht=nt.get,at=nt.enforce,ft=String(String).split("String");(de.exports=function(vt,Nt,Rt,Gt){var $t=Gt?!!Gt.unsafe:!1,se=Gt?!!Gt.enumerable:!1,me=Gt?!!Gt.noTargetGet:!1,ce;if(typeof Rt=="function"&&(typeof Nt=="string"&&!ge(Rt,"name")&&ee(Rt,"name",Nt),ce=at(Rt),ce.source||(ce.source=ft.join(typeof Nt=="string"?Nt:""))),vt===xe){se?vt[Nt]=Rt:Qt(Nt,Rt);return}else $t?!me&&vt[Nt]&&(se=!0):delete vt[Nt];se?vt[Nt]=Rt:ee(vt,Nt,Rt)})(Function.prototype,"toString",function(){return typeof this=="function"&&ht(this).source||et(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/an-object.js");de.exports=function(){var ee=xe(this),ge="";return ee.global&&(ge+="g"),ee.ignoreCase&&(ge+="i"),ee.multiline&&(ge+="m"),ee.dotAll&&(ge+="s"),ee.unicode&&(ge+="u"),ee.sticky&&(ge+="y"),ge}},"./node_modules/core-js/internals/require-object-coercible.js":function(de){de.exports=function(ve){if(ve==null)throw TypeError("Can't call method on "+ve);return ve}},"./node_modules/core-js/internals/set-global.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js");de.exports=function(ee,ge){try{Object.defineProperty(xe,ee,{value:ge,configurable:!0,writable:!0})}catch(Qt){xe[ee]=ge}return ge}},"./node_modules/core-js/internals/set-to-string-tag.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/object-define-property.js").f,ee=It("./node_modules/core-js/internals/has.js"),ge=It("./node_modules/core-js/internals/well-known-symbol.js"),Qt=ge("toStringTag");de.exports=function(et,nt,ht){et&&!ee(et=ht?et:et.prototype,Qt)&&xe(et,Qt,{configurable:!0,value:nt})}},"./node_modules/core-js/internals/shared-key.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/shared.js"),ee=It("./node_modules/core-js/internals/uid.js"),ge=xe("keys");de.exports=function(Qt){return ge[Qt]||(ge[Qt]=ee(Qt))}},"./node_modules/core-js/internals/shared-store.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/set-global.js"),ge="__core-js_shared__",Qt=xe[ge]||ee(ge,{});de.exports=Qt},"./node_modules/core-js/internals/shared.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/is-pure.js"),ee=It("./node_modules/core-js/internals/shared-store.js");(de.exports=function(ge,Qt){return ee[ge]||(ee[ge]=Qt!==void 0?Qt:{})})("versions",[]).push({version:"3.16.0",mode:xe?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/fails.js");de.exports=function(ee){return xe(function(){var ge=""[ee]('"');return ge!==ge.toLowerCase()||ge.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-integer.js"),ee=It("./node_modules/core-js/internals/to-string.js"),ge=It("./node_modules/core-js/internals/require-object-coercible.js"),Qt=function(et){return function(nt,ht){var at=ee(ge(nt)),ft=xe(ht),vt=at.length,Nt,Rt;return ft<0||ft>=vt?et?"":void 0:(Nt=at.charCodeAt(ft),Nt<55296||Nt>56319||ft+1===vt||(Rt=at.charCodeAt(ft+1))<56320||Rt>57343?et?at.charAt(ft):Nt:et?at.slice(ft,ft+2):(Nt-55296<<10)+(Rt-56320)+65536)}};de.exports={codeAt:Qt(!1),charAt:Qt(!0)}},"./node_modules/core-js/internals/string-trim.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/require-object-coercible.js"),ee=It("./node_modules/core-js/internals/to-string.js"),ge=It("./node_modules/core-js/internals/whitespaces.js"),Qt="["+ge+"]",et=RegExp("^"+Qt+Qt+"*"),nt=RegExp(Qt+Qt+"*$"),ht=function(at){return function(ft){var vt=ee(xe(ft));return at&1&&(vt=vt.replace(et,"")),at&2&&(vt=vt.replace(nt,"")),vt}};de.exports={start:ht(1),end:ht(2),trim:ht(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-integer.js"),ee=Math.max,ge=Math.min;de.exports=function(Qt,et){var nt=xe(Qt);return nt<0?ee(nt+et,0):ge(nt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/indexed-object.js"),ee=It("./node_modules/core-js/internals/require-object-coercible.js");de.exports=function(ge){return xe(ee(ge))}},"./node_modules/core-js/internals/to-integer.js":function(de){var ve=Math.ceil,It=Math.floor;de.exports=function(xe){return isNaN(xe=+xe)?0:(xe>0?It:ve)(xe)}},"./node_modules/core-js/internals/to-length.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-integer.js"),ee=Math.min;de.exports=function(ge){return ge>0?ee(xe(ge),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/require-object-coercible.js");de.exports=function(ee){return Object(xe(ee))}},"./node_modules/core-js/internals/to-primitive.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/is-object.js"),ee=It("./node_modules/core-js/internals/is-symbol.js"),ge=It("./node_modules/core-js/internals/ordinary-to-primitive.js"),Qt=It("./node_modules/core-js/internals/well-known-symbol.js"),et=Qt("toPrimitive");de.exports=function(nt,ht){if(!xe(nt)||ee(nt))return nt;var at=nt[et],ft;if(at!==void 0){if(ht===void 0&&(ht="default"),ft=at.call(nt,ht),!xe(ft)||ee(ft))return ft;throw TypeError("Can't convert object to primitive value")}return ht===void 0&&(ht="number"),ge(nt,ht)}},"./node_modules/core-js/internals/to-property-key.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-primitive.js"),ee=It("./node_modules/core-js/internals/is-symbol.js");de.exports=function(ge){var Qt=xe(ge,"string");return ee(Qt)?Qt:String(Qt)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/well-known-symbol.js"),ee=xe("toStringTag"),ge={};ge[ee]="z",de.exports=String(ge)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/is-symbol.js");de.exports=function(ee){if(xe(ee))throw TypeError("Cannot convert a Symbol value to a string");return String(ee)}},"./node_modules/core-js/internals/uid.js":function(de){var ve=0,It=Math.random();de.exports=function(xe){return"Symbol("+String(xe===void 0?"":xe)+")_"+(++ve+It).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/native-symbol.js");de.exports=xe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/well-known-symbol.js");ve.f=xe},"./node_modules/core-js/internals/well-known-symbol.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/shared.js"),ge=It("./node_modules/core-js/internals/has.js"),Qt=It("./node_modules/core-js/internals/uid.js"),et=It("./node_modules/core-js/internals/native-symbol.js"),nt=It("./node_modules/core-js/internals/use-symbol-as-uid.js"),ht=ee("wks"),at=xe.Symbol,ft=nt?at:at&&at.withoutSetter||Qt;de.exports=function(vt){return(!ge(ht,vt)||!(et||typeof ht[vt]=="string"))&&(et&&ge(at,vt)?ht[vt]=at[vt]:ht[vt]=ft("Symbol."+vt)),ht[vt]}},"./node_modules/core-js/internals/whitespaces.js":function(de){de.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(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/fails.js"),ge=It("./node_modules/core-js/internals/is-array.js"),Qt=It("./node_modules/core-js/internals/is-object.js"),et=It("./node_modules/core-js/internals/to-object.js"),nt=It("./node_modules/core-js/internals/to-length.js"),ht=It("./node_modules/core-js/internals/create-property.js"),at=It("./node_modules/core-js/internals/array-species-create.js"),ft=It("./node_modules/core-js/internals/array-method-has-species-support.js"),vt=It("./node_modules/core-js/internals/well-known-symbol.js"),Nt=It("./node_modules/core-js/internals/engine-v8-version.js"),Rt=vt("isConcatSpreadable"),Gt=9007199254740991,$t="Maximum allowed index exceeded",se=Nt>=51||!ee(function(){var De=[];return De[Rt]=!1,De.concat()[0]!==De}),me=ft("concat"),ce=function(De){if(!Qt(De))return!1;var ln=De[Rt];return ln!==void 0?!!ln:ge(De)},Xe=!se||!me;xe({target:"Array",proto:!0,forced:Xe},{concat:function(ln){var Oe=et(this),mn=at(Oe,0),Kn=0,sn,gn,pn,fe,Zt;for(sn=-1,pn=arguments.length;sn<pn;sn++)if(Zt=sn===-1?Oe:arguments[sn],ce(Zt)){if(fe=nt(Zt.length),Kn+fe>Gt)throw TypeError($t);for(gn=0;gn<fe;gn++,Kn++)gn in Zt&&ht(mn,Kn,Zt[gn])}else{if(Kn>=Gt)throw TypeError($t);ht(mn,Kn++,Zt)}return mn.length=Kn,mn}})},"./node_modules/core-js/modules/es.array.iterator.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/to-indexed-object.js"),ee=It("./node_modules/core-js/internals/add-to-unscopables.js"),ge=It("./node_modules/core-js/internals/iterators.js"),Qt=It("./node_modules/core-js/internals/internal-state.js"),et=It("./node_modules/core-js/internals/define-iterator.js"),nt="Array Iterator",ht=Qt.set,at=Qt.getterFor(nt);de.exports=et(Array,"Array",function(ft,vt){ht(this,{type:nt,target:xe(ft),index:0,kind:vt})},function(){var ft=at(this),vt=ft.target,Nt=ft.kind,Rt=ft.index++;return!vt||Rt>=vt.length?(ft.target=void 0,{value:void 0,done:!0}):Nt=="keys"?{value:Rt,done:!1}:Nt=="values"?{value:vt[Rt],done:!1}:{value:[Rt,vt[Rt]],done:!1}},"values"),ge.Arguments=ge.Array,ee("keys"),ee("values"),ee("entries")},"./node_modules/core-js/modules/es.array.join.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/indexed-object.js"),ge=It("./node_modules/core-js/internals/to-indexed-object.js"),Qt=It("./node_modules/core-js/internals/array-method-is-strict.js"),et=[].join,nt=ee!=Object,ht=Qt("join",",");xe({target:"Array",proto:!0,forced:nt||!ht},{join:function(ft){return et.call(ge(this),ft===void 0?",":ft)}})},"./node_modules/core-js/modules/es.array.map.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/array-iteration.js").map,ge=It("./node_modules/core-js/internals/array-method-has-species-support.js"),Qt=ge("map");xe({target:"Array",proto:!0,forced:!Qt},{map:function(nt){return ee(this,nt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/is-object.js"),ge=It("./node_modules/core-js/internals/is-array.js"),Qt=It("./node_modules/core-js/internals/to-absolute-index.js"),et=It("./node_modules/core-js/internals/to-length.js"),nt=It("./node_modules/core-js/internals/to-indexed-object.js"),ht=It("./node_modules/core-js/internals/create-property.js"),at=It("./node_modules/core-js/internals/well-known-symbol.js"),ft=It("./node_modules/core-js/internals/array-method-has-species-support.js"),vt=ft("slice"),Nt=at("species"),Rt=[].slice,Gt=Math.max;xe({target:"Array",proto:!0,forced:!vt},{slice:function(se,me){var ce=nt(this),Xe=et(ce.length),De=Qt(se,Xe),ln=Qt(me===void 0?Xe:me,Xe),Oe,mn,Kn;if(ge(ce)&&(Oe=ce.constructor,typeof Oe=="function"&&(Oe===Array||ge(Oe.prototype))?Oe=void 0:ee(Oe)&&(Oe=Oe[Nt],Oe===null&&(Oe=void 0)),Oe===Array||Oe===void 0))return Rt.call(ce,De,ln);for(mn=new(Oe===void 0?Array:Oe)(Gt(ln-De,0)),Kn=0;De<ln;De++,Kn++)De in ce&&ht(mn,Kn,ce[De]);return mn.length=Kn,mn}})},"./node_modules/core-js/modules/es.function.name.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/descriptors.js"),ee=It("./node_modules/core-js/internals/object-define-property.js").f,ge=Function.prototype,Qt=ge.toString,et=/^\s*function ([^ (]*)/,nt="name";xe&&!(nt in ge)&&ee(ge,nt,{configurable:!0,get:function(){try{return Qt.call(this).match(et)[1]}catch(ht){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/descriptors.js"),ee=It("./node_modules/core-js/internals/global.js"),ge=It("./node_modules/core-js/internals/is-forced.js"),Qt=It("./node_modules/core-js/internals/redefine.js"),et=It("./node_modules/core-js/internals/has.js"),nt=It("./node_modules/core-js/internals/classof-raw.js"),ht=It("./node_modules/core-js/internals/inherit-if-required.js"),at=It("./node_modules/core-js/internals/is-symbol.js"),ft=It("./node_modules/core-js/internals/to-primitive.js"),vt=It("./node_modules/core-js/internals/fails.js"),Nt=It("./node_modules/core-js/internals/object-create.js"),Rt=It("./node_modules/core-js/internals/object-get-own-property-names.js").f,Gt=It("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,$t=It("./node_modules/core-js/internals/object-define-property.js").f,se=It("./node_modules/core-js/internals/string-trim.js").trim,me="Number",ce=ee[me],Xe=ce.prototype,De=nt(Nt(Xe))==me,ln=function(gn){if(at(gn))throw TypeError("Cannot convert a Symbol value to a number");var pn=ft(gn,"number"),fe,Zt,Ye,Gn,ri,cn,In,Wn;if(typeof pn=="string"&&pn.length>2){if(pn=se(pn),fe=pn.charCodeAt(0),fe===43||fe===45){if(Zt=pn.charCodeAt(2),Zt===88||Zt===120)return NaN}else if(fe===48){switch(pn.charCodeAt(1)){case 66:case 98:Ye=2,Gn=49;break;case 79:case 111:Ye=8,Gn=55;break;default:return+pn}for(ri=pn.slice(2),cn=ri.length,In=0;In<cn;In++)if(Wn=ri.charCodeAt(In),Wn<48||Wn>Gn)return NaN;return parseInt(ri,Ye)}}return+pn};if(ge(me,!ce(" 0o1")||!ce("0b1")||ce("+0x1"))){for(var Oe=function(pn){var fe=arguments.length<1?0:pn,Zt=this;return Zt instanceof Oe&&(De?vt(function(){Xe.valueOf.call(Zt)}):nt(Zt)!=me)?ht(new ce(ln(fe)),Zt,Oe):ln(fe)},mn=xe?Rt(ce):"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(","),Kn=0,sn;mn.length>Kn;Kn++)et(ce,sn=mn[Kn])&&!et(Oe,sn)&&$t(Oe,sn,Gt(ce,sn));Oe.prototype=Xe,Xe.constructor=Oe,Qt(ee,me,Oe)}},"./node_modules/core-js/modules/es.object.assign.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/object-assign.js");xe({target:"Object",stat:!0,forced:Object.assign!==ee},{assign:ee})},"./node_modules/core-js/modules/es.object.keys.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/to-object.js"),ge=It("./node_modules/core-js/internals/object-keys.js"),Qt=It("./node_modules/core-js/internals/fails.js"),et=Qt(function(){ge(1)});xe({target:"Object",stat:!0,forced:et},{keys:function(ht){return ge(ee(ht))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/to-string-tag-support.js"),ee=It("./node_modules/core-js/internals/redefine.js"),ge=It("./node_modules/core-js/internals/object-to-string.js");xe||ee(Object.prototype,"toString",ge,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/redefine.js"),ee=It("./node_modules/core-js/internals/an-object.js"),ge=It("./node_modules/core-js/internals/to-string.js"),Qt=It("./node_modules/core-js/internals/fails.js"),et=It("./node_modules/core-js/internals/regexp-flags.js"),nt="toString",ht=RegExp.prototype,at=ht[nt],ft=Qt(function(){return at.call({source:"a",flags:"b"})!="/a/b"}),vt=at.name!=nt;(ft||vt)&&xe(RegExp.prototype,nt,function(){var Rt=ee(this),Gt=ge(Rt.source),$t=Rt.flags,se=ge($t===void 0&&Rt instanceof RegExp&&!("flags"in ht)?et.call(Rt):$t);return"/"+Gt+"/"+se},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/string-multibyte.js").charAt,ee=It("./node_modules/core-js/internals/to-string.js"),ge=It("./node_modules/core-js/internals/internal-state.js"),Qt=It("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",nt=ge.set,ht=ge.getterFor(et);Qt(String,"String",function(at){nt(this,{type:et,string:ee(at),index:0})},function(){var ft=ht(this),vt=ft.string,Nt=ft.index,Rt;return Nt>=vt.length?{value:void 0,done:!0}:(Rt=xe(vt,Nt),ft.index+=Rt.length,{value:Rt,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/create-html.js"),ge=It("./node_modules/core-js/internals/string-html-forced.js");xe({target:"String",proto:!0,forced:ge("link")},{link:function(et){return ee(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/descriptors.js"),ge=It("./node_modules/core-js/internals/global.js"),Qt=It("./node_modules/core-js/internals/has.js"),et=It("./node_modules/core-js/internals/is-object.js"),nt=It("./node_modules/core-js/internals/object-define-property.js").f,ht=It("./node_modules/core-js/internals/copy-constructor-properties.js"),at=ge.Symbol;if(ee&&typeof at=="function"&&(!("description"in at.prototype)||at().description!==void 0)){var ft={},vt=function(){var me=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),ce=this instanceof vt?new at(me):me===void 0?at():at(me);return me===""&&(ft[ce]=!0),ce};ht(vt,at);var Nt=vt.prototype=at.prototype;Nt.constructor=vt;var Rt=Nt.toString,Gt=String(at("test"))=="Symbol(test)",$t=/^Symbol\((.*)\)[^)]+$/;nt(Nt,"description",{configurable:!0,get:function(){var me=et(this)?this.valueOf():this,ce=Rt.call(me);if(Qt(ft,me))return"";var Xe=Gt?ce.slice(7,-1):ce.replace($t,"$1");return Xe===""?void 0:Xe}}),xe({global:!0,forced:!0},{Symbol:vt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/define-well-known-symbol.js");xe("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(de,ve,It){"use strict";var xe=It("./node_modules/core-js/internals/export.js"),ee=It("./node_modules/core-js/internals/global.js"),ge=It("./node_modules/core-js/internals/get-built-in.js"),Qt=It("./node_modules/core-js/internals/is-pure.js"),et=It("./node_modules/core-js/internals/descriptors.js"),nt=It("./node_modules/core-js/internals/native-symbol.js"),ht=It("./node_modules/core-js/internals/fails.js"),at=It("./node_modules/core-js/internals/has.js"),ft=It("./node_modules/core-js/internals/is-array.js"),vt=It("./node_modules/core-js/internals/is-object.js"),Nt=It("./node_modules/core-js/internals/is-symbol.js"),Rt=It("./node_modules/core-js/internals/an-object.js"),Gt=It("./node_modules/core-js/internals/to-object.js"),$t=It("./node_modules/core-js/internals/to-indexed-object.js"),se=It("./node_modules/core-js/internals/to-property-key.js"),me=It("./node_modules/core-js/internals/to-string.js"),ce=It("./node_modules/core-js/internals/create-property-descriptor.js"),Xe=It("./node_modules/core-js/internals/object-create.js"),De=It("./node_modules/core-js/internals/object-keys.js"),ln=It("./node_modules/core-js/internals/object-get-own-property-names.js"),Oe=It("./node_modules/core-js/internals/object-get-own-property-names-external.js"),mn=It("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Kn=It("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),sn=It("./node_modules/core-js/internals/object-define-property.js"),gn=It("./node_modules/core-js/internals/object-property-is-enumerable.js"),pn=It("./node_modules/core-js/internals/create-non-enumerable-property.js"),fe=It("./node_modules/core-js/internals/redefine.js"),Zt=It("./node_modules/core-js/internals/shared.js"),Ye=It("./node_modules/core-js/internals/shared-key.js"),Gn=It("./node_modules/core-js/internals/hidden-keys.js"),ri=It("./node_modules/core-js/internals/uid.js"),cn=It("./node_modules/core-js/internals/well-known-symbol.js"),In=It("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Wn=It("./node_modules/core-js/internals/define-well-known-symbol.js"),xi=It("./node_modules/core-js/internals/set-to-string-tag.js"),pi=It("./node_modules/core-js/internals/internal-state.js"),zi=It("./node_modules/core-js/internals/array-iteration.js").forEach,Ie=Ye("hidden"),Ai="Symbol",Ti="prototype",ue=cn("toPrimitive"),Tt=pi.set,Ct=pi.getterFor(Ai),zt=Object[Ti],Ht=ee.Symbol,Mt=ge("JSON","stringify"),be=Kn.f,Ge=sn.f,vn=Oe.f,Fn=gn.f,An=Zt("symbols"),kn=Zt("op-symbols"),Bn=Zt("string-to-symbol-registry"),Vn=Zt("symbol-to-string-registry"),bi=Zt("wks"),Pn=ee.QObject,an=!Pn||!Pn[Ti]||!Pn[Ti].findChild,ei=et&&ht(function(){return Xe(Ge({},"a",{get:function(){return Ge(this,"a",{value:7}).a}})).a!=7})?function(Jr,hr,to){var oo=be(zt,hr);oo&&delete zt[hr],Ge(Jr,hr,to),oo&&Jr!==zt&&Ge(zt,hr,oo)}:Ge,Ui=function(Jr,hr){var to=An[Jr]=Xe(Ht[Ti]);return Tt(to,{type:Ai,tag:Jr,description:hr}),et||(to.description=hr),to},Pi=function(hr,to,oo){hr===zt&&Pi(kn,to,oo),Rt(hr);var Jo=se(to);return Rt(oo),at(An,Jo)?(oo.enumerable?(at(hr,Ie)&&hr[Ie][Jo]&&(hr[Ie][Jo]=!1),oo=Xe(oo,{enumerable:ce(0,!1)})):(at(hr,Ie)||Ge(hr,Ie,ce(1,{})),hr[Ie][Jo]=!0),ei(hr,Jo,oo)):Ge(hr,Jo,oo)},sr=function(hr,to){Rt(hr);var oo=$t(to),Jo=De(oo).concat(Ho(oo));return zi(Jo,function(Ns){(!et||Ao.call(oo,Ns))&&Pi(hr,Ns,oo[Ns])}),hr},Or=function(hr,to){return to===void 0?Xe(hr):sr(Xe(hr),to)},Ao=function(hr){var to=se(hr),oo=Fn.call(this,to);return this===zt&&at(An,to)&&!at(kn,to)?!1:oo||!at(this,to)||!at(An,to)||at(this,Ie)&&this[Ie][to]?oo:!0},po=function(hr,to){var oo=$t(hr),Jo=se(to);if(!(oo===zt&&at(An,Jo)&&!at(kn,Jo))){var Ns=be(oo,Jo);return Ns&&at(An,Jo)&&!(at(oo,Ie)&&oo[Ie][Jo])&&(Ns.enumerable=!0),Ns}},Zr=function(hr){var to=vn($t(hr)),oo=[];return zi(to,function(Jo){!at(An,Jo)&&!at(Gn,Jo)&&oo.push(Jo)}),oo},Ho=function(hr){var to=hr===zt,oo=vn(to?kn:$t(hr)),Jo=[];return zi(oo,function(Ns){at(An,Ns)&&(!to||at(zt,Ns))&&Jo.push(An[Ns])}),Jo};if(nt||(Ht=function(){if(this instanceof Ht)throw TypeError("Symbol is not a constructor");var hr=!arguments.length||arguments[0]===void 0?void 0:me(arguments[0]),to=ri(hr),oo=function(Jo){this===zt&&oo.call(kn,Jo),at(this,Ie)&&at(this[Ie],to)&&(this[Ie][to]=!1),ei(this,to,ce(1,Jo))};return et&&an&&ei(zt,to,{configurable:!0,set:oo}),Ui(to,hr)},fe(Ht[Ti],"toString",function(){return Ct(this).tag}),fe(Ht,"withoutSetter",function(Jr){return Ui(ri(Jr),Jr)}),gn.f=Ao,sn.f=Pi,Kn.f=po,ln.f=Oe.f=Zr,mn.f=Ho,In.f=function(Jr){return Ui(cn(Jr),Jr)},et&&(Ge(Ht[Ti],"description",{configurable:!0,get:function(){return Ct(this).description}}),Qt||fe(zt,"propertyIsEnumerable",Ao,{unsafe:!0}))),xe({global:!0,wrap:!0,forced:!nt,sham:!nt},{Symbol:Ht}),zi(De(bi),function(Jr){Wn(Jr)}),xe({target:Ai,stat:!0,forced:!nt},{for:function(Jr){var hr=me(Jr);if(at(Bn,hr))return Bn[hr];var to=Ht(hr);return Bn[hr]=to,Vn[to]=hr,to},keyFor:function(hr){if(!Nt(hr))throw TypeError(hr+" is not a symbol");if(at(Vn,hr))return Vn[hr]},useSetter:function(){an=!0},useSimple:function(){an=!1}}),xe({target:"Object",stat:!0,forced:!nt,sham:!et},{create:Or,defineProperty:Pi,defineProperties:sr,getOwnPropertyDescriptor:po}),xe({target:"Object",stat:!0,forced:!nt},{getOwnPropertyNames:Zr,getOwnPropertySymbols:Ho}),xe({target:"Object",stat:!0,forced:ht(function(){mn.f(1)})},{getOwnPropertySymbols:function(hr){return mn.f(Gt(hr))}}),Mt){var Co=!nt||ht(function(){var Jr=Ht();return Mt([Jr])!="[null]"||Mt({a:Jr})!="{}"||Mt(Object(Jr))!="{}"});xe({target:"JSON",stat:!0,forced:Co},{stringify:function(hr,to,oo){for(var Jo=[hr],Ns=1,ys;arguments.length>Ns;)Jo.push(arguments[Ns++]);if(ys=to,!(!vt(to)&&hr===void 0||Nt(hr)))return ft(to)||(to=function(Xs,vo){if(typeof ys=="function"&&(vo=ys.call(this,Xs,vo)),!Nt(vo))return vo}),Jo[1]=to,Mt.apply(null,Jo)}})}Ht[Ti][ue]||pn(Ht[Ti],ue,Ht[Ti].valueOf),xi(Ht,Ai),Gn[Ie]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/dom-iterables.js"),ge=It("./node_modules/core-js/internals/array-for-each.js"),Qt=It("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var et in ee){var nt=xe[et],ht=nt&&nt.prototype;if(ht&&ht.forEach!==ge)try{Qt(ht,"forEach",ge)}catch(at){ht.forEach=ge}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(de,ve,It){var xe=It("./node_modules/core-js/internals/global.js"),ee=It("./node_modules/core-js/internals/dom-iterables.js"),ge=It("./node_modules/core-js/modules/es.array.iterator.js"),Qt=It("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=It("./node_modules/core-js/internals/well-known-symbol.js"),nt=et("iterator"),ht=et("toStringTag"),at=ge.values;for(var ft in ee){var vt=xe[ft],Nt=vt&&vt.prototype;if(Nt){if(Nt[nt]!==at)try{Qt(Nt,nt,at)}catch(Gt){Nt[nt]=at}if(Nt[ht]||Qt(Nt,ht,ft),ee[ft]){for(var Rt in ge)if(Nt[Rt]!==ge[Rt])try{Qt(Nt,Rt,ge[Rt])}catch(Gt){Nt[Rt]=ge[Rt]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(de){(function(ve,It){de.exports=It()})(this,function(){"use strict";function ve(Pn){var an=typeof Pn;return Pn!==null&&(an==="object"||an==="function")}function It(Pn){return typeof Pn=="function"}var xe=void 0;Array.isArray?xe=Array.isArray:xe=function(Pn){return Object.prototype.toString.call(Pn)==="[object Array]"};var ee=xe,ge=0,Qt=void 0,et=void 0,nt=function(an,ei){De[ge]=an,De[ge+1]=ei,ge+=2,ge===2&&(et?et(ln):mn())};function ht(Pn){et=Pn}function at(Pn){nt=Pn}var ft=typeof window!="undefined"?window:void 0,vt=ft||{},Nt=vt.MutationObserver||vt.WebKitMutationObserver,Rt=typeof self=="undefined"&&typeof Kt!="undefined"&&{}.toString.call(Kt)==="[object process]",Gt=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function $t(){return function(){return Kt.nextTick(ln)}}function se(){return typeof Qt!="undefined"?function(){Qt(ln)}:Xe()}function me(){var Pn=0,an=new Nt(ln),ei=document.createTextNode("");return an.observe(ei,{characterData:!0}),function(){ei.data=Pn=++Pn%2}}function ce(){var Pn=new MessageChannel;return Pn.port1.onmessage=ln,function(){return Pn.port2.postMessage(0)}}function Xe(){var Pn=setTimeout;return function(){return Pn(ln,1)}}var De=new Array(1e3);function ln(){for(var Pn=0;Pn<ge;Pn+=2){var an=De[Pn],ei=De[Pn+1];an(ei),De[Pn]=void 0,De[Pn+1]=void 0}ge=0}function Oe(){try{var Pn=Function("return this")().require("vertx");return Qt=Pn.runOnLoop||Pn.runOnContext,se()}catch(an){return Xe()}}var mn=void 0;Rt?mn=$t():Nt?mn=me():Gt?mn=ce():ft===void 0?mn=Oe():mn=Xe();function Kn(Pn,an){var ei=this,Ui=new this.constructor(pn);Ui[gn]===void 0&&Mt(Ui);var Pi=ei._state;if(Pi){var sr=arguments[Pi-1];nt(function(){return Tt(Pi,Ui,sr,ei._result)})}else Ti(ei,Ui,Pn,an);return Ui}function sn(Pn){var an=this;if(Pn&&typeof Pn=="object"&&Pn.constructor===an)return Pn;var ei=new an(pn);return pi(ei,Pn),ei}var gn=Math.random().toString(36).substring(2);function pn(){}var fe=void 0,Zt=1,Ye=2;function Gn(){return new TypeError("You cannot resolve a promise with itself")}function ri(){return new TypeError("A promises callback cannot return that same promise.")}function cn(Pn,an,ei,Ui){try{Pn.call(an,ei,Ui)}catch(Pi){return Pi}}function In(Pn,an,ei){nt(function(Ui){var Pi=!1,sr=cn(ei,an,function(Or){Pi||(Pi=!0,an!==Or?pi(Ui,Or):Ie(Ui,Or))},function(Or){Pi||(Pi=!0,Ai(Ui,Or))},"Settle: "+(Ui._label||" unknown promise"));!Pi&&sr&&(Pi=!0,Ai(Ui,sr))},Pn)}function Wn(Pn,an){an._state===Zt?Ie(Pn,an._result):an._state===Ye?Ai(Pn,an._result):Ti(an,void 0,function(ei){return pi(Pn,ei)},function(ei){return Ai(Pn,ei)})}function xi(Pn,an,ei){an.constructor===Pn.constructor&&ei===Kn&&an.constructor.resolve===sn?Wn(Pn,an):ei===void 0?Ie(Pn,an):It(ei)?In(Pn,an,ei):Ie(Pn,an)}function pi(Pn,an){if(Pn===an)Ai(Pn,Gn());else if(ve(an)){var ei=void 0;try{ei=an.then}catch(Ui){Ai(Pn,Ui);return}xi(Pn,an,ei)}else Ie(Pn,an)}function zi(Pn){Pn._onerror&&Pn._onerror(Pn._result),ue(Pn)}function Ie(Pn,an){Pn._state===fe&&(Pn._result=an,Pn._state=Zt,Pn._subscribers.length!==0&&nt(ue,Pn))}function Ai(Pn,an){Pn._state===fe&&(Pn._state=Ye,Pn._result=an,nt(zi,Pn))}function Ti(Pn,an,ei,Ui){var Pi=Pn._subscribers,sr=Pi.length;Pn._onerror=null,Pi[sr]=an,Pi[sr+Zt]=ei,Pi[sr+Ye]=Ui,sr===0&&Pn._state&&nt(ue,Pn)}function ue(Pn){var an=Pn._subscribers,ei=Pn._state;if(an.length!==0){for(var Ui=void 0,Pi=void 0,sr=Pn._result,Or=0;Or<an.length;Or+=3)Ui=an[Or],Pi=an[Or+ei],Ui?Tt(ei,Ui,Pi,sr):Pi(sr);Pn._subscribers.length=0}}function Tt(Pn,an,ei,Ui){var Pi=It(ei),sr=void 0,Or=void 0,Ao=!0;if(Pi){try{sr=ei(Ui)}catch(po){Ao=!1,Or=po}if(an===sr){Ai(an,ri());return}}else sr=Ui;an._state!==fe||(Pi&&Ao?pi(an,sr):Ao===!1?Ai(an,Or):Pn===Zt?Ie(an,sr):Pn===Ye&&Ai(an,sr))}function Ct(Pn,an){try{an(function(Ui){pi(Pn,Ui)},function(Ui){Ai(Pn,Ui)})}catch(ei){Ai(Pn,ei)}}var zt=0;function Ht(){return zt++}function Mt(Pn){Pn[gn]=zt++,Pn._state=void 0,Pn._result=void 0,Pn._subscribers=[]}function be(){return new Error("Array Methods must be provided an Array")}var Ge=function(){function Pn(an,ei){this._instanceConstructor=an,this.promise=new an(pn),this.promise[gn]||Mt(this.promise),ee(ei)?(this.length=ei.length,this._remaining=ei.length,this._result=new Array(this.length),this.length===0?Ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(ei),this._remaining===0&&Ie(this.promise,this._result))):Ai(this.promise,be())}return Pn.prototype._enumerate=function(ei){for(var Ui=0;this._state===fe&&Ui<ei.length;Ui++)this._eachEntry(ei[Ui],Ui)},Pn.prototype._eachEntry=function(ei,Ui){var Pi=this._instanceConstructor,sr=Pi.resolve;if(sr===sn){var Or=void 0,Ao=void 0,po=!1;try{Or=ei.then}catch(Ho){po=!0,Ao=Ho}if(Or===Kn&&ei._state!==fe)this._settledAt(ei._state,Ui,ei._result);else if(typeof Or!="function")this._remaining--,this._result[Ui]=ei;else if(Pi===Vn){var Zr=new Pi(pn);po?Ai(Zr,Ao):xi(Zr,ei,Or),this._willSettleAt(Zr,Ui)}else this._willSettleAt(new Pi(function(Ho){return Ho(ei)}),Ui)}else this._willSettleAt(sr(ei),Ui)},Pn.prototype._settledAt=function(ei,Ui,Pi){var sr=this.promise;sr._state===fe&&(this._remaining--,ei===Ye?Ai(sr,Pi):this._result[Ui]=Pi),this._remaining===0&&Ie(sr,this._result)},Pn.prototype._willSettleAt=function(ei,Ui){var Pi=this;Ti(ei,void 0,function(sr){return Pi._settledAt(Zt,Ui,sr)},function(sr){return Pi._settledAt(Ye,Ui,sr)})},Pn}();function vn(Pn){return new Ge(this,Pn).promise}function Fn(Pn){var an=this;return ee(Pn)?new an(function(ei,Ui){for(var Pi=Pn.length,sr=0;sr<Pi;sr++)an.resolve(Pn[sr]).then(ei,Ui)}):new an(function(ei,Ui){return Ui(new TypeError("You must pass an array to race."))})}function An(Pn){var an=this,ei=new an(pn);return Ai(ei,Pn),ei}function kn(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Bn(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Vn=function(){function Pn(an){this[gn]=Ht(),this._result=this._state=void 0,this._subscribers=[],pn!==an&&(typeof an!="function"&&kn(),this instanceof Pn?Ct(this,an):Bn())}return Pn.prototype.catch=function(ei){return this.then(null,ei)},Pn.prototype.finally=function(ei){var Ui=this,Pi=Ui.constructor;return It(ei)?Ui.then(function(sr){return Pi.resolve(ei()).then(function(){return sr})},function(sr){return Pi.resolve(ei()).then(function(){throw sr})}):Ui.then(ei,ei)},Pn}();Vn.prototype.then=Kn,Vn.all=vn,Vn.race=Fn,Vn.resolve=sn,Vn.reject=An,Vn._setScheduler=ht,Vn._setAsap=at,Vn._asap=nt;function bi(){var Pn=void 0;if(typeof Yt.g!="undefined")Pn=Yt.g;else if(typeof self!="undefined")Pn=self;else try{Pn=Function("return this")()}catch(Ui){throw new Error("polyfill failed because global object is unavailable in this environment")}var an=Pn.Promise;if(an){var ei=null;try{ei=Object.prototype.toString.call(an.resolve())}catch(Ui){}if(ei==="[object Promise]"&&!an.cast)return}Pn.Promise=Vn}return Vn.polyfill=bi,Vn.Promise=Vn,Vn})},html2canvas:function(de){"use strict";de.exports=Te},jspdf:function(de){"use strict";de.exports=Le}},Se={};function We(de){var ve=Se[de];if(ve!==void 0)return ve.exports;var It=Se[de]={exports:{}};return xn[de].call(It.exports,It,It.exports,We),It.exports}(function(){We.n=function(de){var ve=de&&de.__esModule?function(){return de.default}:function(){return de};return We.d(ve,{a:ve}),ve}})(),function(){We.d=function(de,ve){for(var It in ve)We.o(ve,It)&&!We.o(de,It)&&Object.defineProperty(de,It,{enumerable:!0,get:ve[It]})}}(),function(){We.o=function(de,ve){return Object.prototype.hasOwnProperty.call(de,ve)}}(),function(){We.r=function(de){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(de,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(de,"__esModule",{value:!0})}}();var je={};return function(){"use strict";We.r(je);var de=We("./src/worker.js"),ve=We("./src/plugin/jspdf-plugin.js"),It=We("./src/plugin/pagebreaks.js"),xe=We("./src/plugin/hyperlinks.js"),ee=function ge(Qt,et){var nt=new ge.Worker(et);return Qt?nt.from(Qt).save():nt};ee.Worker=de.default,je.default=ee}(),je=je.default,je}()})},73207:function(Ci,Ii,Yt){"use strict";Yt.r(Ii),Yt.d(Ii,{AcroForm:function(){return tu},AcroFormAppearance:function(){return fo},AcroFormButton:function(){return Ta},AcroFormCheckBox:function(){return iu},AcroFormChoiceField:function(){return $u},AcroFormComboBox:function(){return bo},AcroFormEditBox:function(){return ga},AcroFormListBox:function(){return Gl},AcroFormPasswordField:function(){return Nl},AcroFormPushButton:function(){return ql},AcroFormRadioButton:function(){return Kl},AcroFormTextField:function(){return Wl},GState:function(){return eo},ShadingPattern:function(){return Es},TilingPattern:function(){return Rs},default:function(){return vl},jsPDF:function(){return ho}});var Kt=Yt(39559),Le={},Te=function(wt,gt,yt,Ft,Ut){var Ot=new Worker(Le[gt]||(Le[gt]=URL.createObjectURL(new Blob([wt+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Ot.onmessage=function(Xt){var Jt=Xt.data,ne=Jt.$e$;if(ne){var Be=new Error(ne[0]);Be.code=ne[1],Be.stack=ne[2],Ut(Be,null)}else Ut(null,Jt)},Ot.postMessage(yt,Ft),Ot},xn=Uint8Array,Se=Uint16Array,We=Int32Array,je=new xn([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]),de=new xn([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]),ve=new xn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),It=function(wt,gt){for(var yt=new Se(31),Ft=0;Ft<31;++Ft)yt[Ft]=gt+=1<<wt[Ft-1];for(var Ut=new We(yt[30]),Ft=1;Ft<30;++Ft)for(var Ot=yt[Ft];Ot<yt[Ft+1];++Ot)Ut[Ot]=Ot-yt[Ft]<<5|Ft;return{b:yt,r:Ut}},xe=It(je,2),ee=xe.b,ge=xe.r;ee[28]=258,ge[258]=28;for(var Qt=It(de,0),et=Qt.b,nt=Qt.r,ht=new Se(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(wt,gt,yt){for(var Ft=wt.length,Ut=0,Ot=new Se(gt);Ut<Ft;++Ut)wt[Ut]&&++Ot[wt[Ut]-1];var Xt=new Se(gt);for(Ut=1;Ut<gt;++Ut)Xt[Ut]=Xt[Ut-1]+Ot[Ut-1]<<1;var Jt;if(yt){Jt=new Se(1<<gt);var ne=15-gt;for(Ut=0;Ut<Ft;++Ut)if(wt[Ut])for(var Be=Ut<<4|wt[Ut],Re=gt-wt[Ut],He=Xt[wt[Ut]-1]++<<Re,Ze=He|(1<<Re)-1;He<=Ze;++He)Jt[ht[He]>>ne]=Be}else for(Jt=new Se(Ft),Ut=0;Ut<Ft;++Ut)wt[Ut]&&(Jt[Ut]=ht[Xt[wt[Ut]-1]++]>>15-wt[Ut]);return Jt},Nt=new xn(288),at=0;at<144;++at)Nt[at]=8;for(var at=144;at<256;++at)Nt[at]=9;for(var at=256;at<280;++at)Nt[at]=7;for(var at=280;at<288;++at)Nt[at]=8;for(var Rt=new xn(32),at=0;at<32;++at)Rt[at]=5;var Gt=vt(Nt,9,0),$t=vt(Nt,9,1),se=vt(Rt,5,0),me=vt(Rt,5,1),ce=function(wt){for(var gt=wt[0],yt=1;yt<wt.length;++yt)wt[yt]>gt&&(gt=wt[yt]);return gt},Xe=function(wt,gt,yt){var Ft=gt/8|0;return(wt[Ft]|wt[Ft+1]<<8)>>(gt&7)&yt},De=function(wt,gt){var yt=gt/8|0;return(wt[yt]|wt[yt+1]<<8|wt[yt+2]<<16)>>(gt&7)},ln=function(wt){return(wt+7)/8|0},Oe=function(wt,gt,yt){return(gt==null||gt<0)&&(gt=0),(yt==null||yt>wt.length)&&(yt=wt.length),new xn(wt.subarray(gt,yt))},mn={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},Kn=["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"],sn=function(wt,gt,yt){var Ft=new Error(gt||Kn[wt]);if(Ft.code=wt,Error.captureStackTrace&&Error.captureStackTrace(Ft,sn),!yt)throw Ft;return Ft},gn=function(wt,gt,yt,Ft){var Ut=wt.length,Ot=Ft?Ft.length:0;if(!Ut||gt.f&&!gt.l)return yt||new xn(0);var Xt=!yt,Jt=Xt||gt.i!=2,ne=gt.i;Xt&&(yt=new xn(Ut*3));var Be=function(no){var Io=yt.length;if(no>Io){var Lo=new xn(Math.max(Io*2,no));Lo.set(yt),yt=Lo}},Re=gt.f||0,He=gt.p||0,Ze=gt.b||0,pe=gt.l,jn=gt.d,Sn=gt.m,Rn=gt.n,on=Ut*8;do{if(!pe){Re=Xe(wt,He,1);var On=Xe(wt,He+1,3);if(He+=3,On)if(On==1)pe=$t,jn=me,Sn=9,Rn=5;else if(On==2){var Ir=Xe(wt,He,31)+257,Wi=Xe(wt,He+10,15)+4,ai=Ir+Xe(wt,He+5,31)+1;He+=14;for(var Xi=new xn(ai),gr=new xn(19),yn=0;yn<Wi;++yn)gr[ve[yn]]=Xe(wt,He+yn*3,7);He+=Wi*3;for(var Ln=ce(gr),wi=(1<<Ln)-1,si=vt(gr,Ln,1),yn=0;yn<ai;){var Ar=si[Xe(wt,He,wi)];He+=Ar&15;var mi=Ar>>4;if(mi<16)Xi[yn++]=mi;else{var _i=0,dr=0;for(mi==16?(dr=3+Xe(wt,He,3),He+=2,_i=Xi[yn-1]):mi==17?(dr=3+Xe(wt,He,7),He+=3):mi==18&&(dr=11+Xe(wt,He,127),He+=7);dr--;)Xi[yn++]=_i}}var Mi=Xi.subarray(0,Ir),tr=Xi.subarray(Ir);Sn=ce(Mi),Rn=ce(tr),pe=vt(Mi,Sn,1),jn=vt(tr,Rn,1)}else sn(1);else{var mi=ln(He)+4,Di=wt[mi-4]|wt[mi-3]<<8,qi=mi+Di;if(qi>Ut){ne&&sn(0);break}Jt&&Be(Ze+Di),yt.set(wt.subarray(mi,qi),Ze),gt.b=Ze+=Di,gt.p=He=qi*8,gt.f=Re;continue}if(He>on){ne&&sn(0);break}}Jt&&Be(Ze+131072);for(var fr=(1<<Sn)-1,so=(1<<Rn)-1,tn=He;;tn=He){var _i=pe[De(wt,He)&fr],En=_i>>4;if(He+=_i&15,He>on){ne&&sn(0);break}if(_i||sn(2),En<256)yt[Ze++]=En;else if(En==256){tn=He,pe=null;break}else{var $n=En-254;if(En>264){var yn=En-257,fi=je[yn];$n=Xe(wt,He,(1<<fi)-1)+ee[yn],He+=fi}var ki=jn[De(wt,He)&so],Ki=ki>>4;ki||sn(3),He+=ki&15;var tr=et[Ki];if(Ki>3){var fi=de[Ki];tr+=De(wt,He)&(1<<fi)-1,He+=fi}if(He>on){ne&&sn(0);break}Jt&&Be(Ze+131072);var ir=Ze+$n;if(Ze<tr){var ji=Ot-tr,Kr=Math.min(tr,ir);for(ji+Ze<0&&sn(3);Ze<Kr;++Ze)yt[Ze]=Ft[ji+Ze]}for(;Ze<ir;++Ze)yt[Ze]=yt[Ze-tr]}}gt.l=pe,gt.p=tn,gt.b=Ze,gt.f=Re,pe&&(Re=1,gt.m=Sn,gt.d=jn,gt.n=Rn)}while(!Re);return Ze!=yt.length&&Xt?Oe(yt,0,Ze):yt.subarray(0,Ze)},pn=function(wt,gt,yt){yt<<=gt&7;var Ft=gt/8|0;wt[Ft]|=yt,wt[Ft+1]|=yt>>8},fe=function(wt,gt,yt){yt<<=gt&7;var Ft=gt/8|0;wt[Ft]|=yt,wt[Ft+1]|=yt>>8,wt[Ft+2]|=yt>>16},Zt=function(wt,gt){for(var yt=[],Ft=0;Ft<wt.length;++Ft)wt[Ft]&&yt.push({s:Ft,f:wt[Ft]});var Ut=yt.length,Ot=yt.slice();if(!Ut)return{t:xi,l:0};if(Ut==1){var Xt=new xn(yt[0].s+1);return Xt[yt[0].s]=1,{t:Xt,l:1}}yt.sort(function(qi,Ir){return qi.f-Ir.f}),yt.push({s:-1,f:25001});var Jt=yt[0],ne=yt[1],Be=0,Re=1,He=2;for(yt[0]={s:-1,f:Jt.f+ne.f,l:Jt,r:ne};Re!=Ut-1;)Jt=yt[yt[Be].f<yt[He].f?Be++:He++],ne=yt[Be!=Re&&yt[Be].f<yt[He].f?Be++:He++],yt[Re++]={s:-1,f:Jt.f+ne.f,l:Jt,r:ne};for(var Ze=Ot[0].s,Ft=1;Ft<Ut;++Ft)Ot[Ft].s>Ze&&(Ze=Ot[Ft].s);var pe=new Se(Ze+1),jn=Ye(yt[Re-1],pe,0);if(jn>gt){var Ft=0,Sn=0,Rn=jn-gt,on=1<<Rn;for(Ot.sort(function(Ir,Wi){return pe[Wi.s]-pe[Ir.s]||Ir.f-Wi.f});Ft<Ut;++Ft){var On=Ot[Ft].s;if(pe[On]>gt)Sn+=on-(1<<jn-pe[On]),pe[On]=gt;else break}for(Sn>>=Rn;Sn>0;){var mi=Ot[Ft].s;pe[mi]<gt?Sn-=1<<gt-pe[mi]++-1:++Ft}for(;Ft>=0&&Sn;--Ft){var Di=Ot[Ft].s;pe[Di]==gt&&(--pe[Di],++Sn)}jn=gt}return{t:new xn(pe),l:jn}},Ye=function(wt,gt,yt){return wt.s==-1?Math.max(Ye(wt.l,gt,yt+1),Ye(wt.r,gt,yt+1)):gt[wt.s]=yt},Gn=function(wt){for(var gt=wt.length;gt&&!wt[--gt];);for(var yt=new Se(++gt),Ft=0,Ut=wt[0],Ot=1,Xt=function(ne){yt[Ft++]=ne},Jt=1;Jt<=gt;++Jt)if(wt[Jt]==Ut&&Jt!=gt)++Ot;else{if(!Ut&&Ot>2){for(;Ot>138;Ot-=138)Xt(32754);Ot>2&&(Xt(Ot>10?Ot-11<<5|28690:Ot-3<<5|12305),Ot=0)}else if(Ot>3){for(Xt(Ut),--Ot;Ot>6;Ot-=6)Xt(8304);Ot>2&&(Xt(Ot-3<<5|8208),Ot=0)}for(;Ot--;)Xt(Ut);Ot=1,Ut=wt[Jt]}return{c:yt.subarray(0,Ft),n:gt}},ri=function(wt,gt){for(var yt=0,Ft=0;Ft<gt.length;++Ft)yt+=wt[Ft]*gt[Ft];return yt},cn=function(wt,gt,yt){var Ft=yt.length,Ut=ln(gt+2);wt[Ut]=Ft&255,wt[Ut+1]=Ft>>8,wt[Ut+2]=wt[Ut]^255,wt[Ut+3]=wt[Ut+1]^255;for(var Ot=0;Ot<Ft;++Ot)wt[Ut+Ot+4]=yt[Ot];return(Ut+4+Ft)*8},In=function(wt,gt,yt,Ft,Ut,Ot,Xt,Jt,ne,Be,Re){pn(gt,Re++,yt),++Ut[256];for(var He=Zt(Ut,15),Ze=He.t,pe=He.l,jn=Zt(Ot,15),Sn=jn.t,Rn=jn.l,on=Gn(Ze),On=on.c,mi=on.n,Di=Gn(Sn),qi=Di.c,Ir=Di.n,Wi=new Se(19),ai=0;ai<On.length;++ai)++Wi[On[ai]&31];for(var ai=0;ai<qi.length;++ai)++Wi[qi[ai]&31];for(var Xi=Zt(Wi,7),gr=Xi.t,yn=Xi.l,Ln=19;Ln>4&&!gr[ve[Ln-1]];--Ln);var wi=Be+5<<3,si=ri(Ut,Nt)+ri(Ot,Rt)+Xt,Ar=ri(Ut,Ze)+ri(Ot,Sn)+Xt+14+3*Ln+ri(Wi,gr)+2*Wi[16]+3*Wi[17]+7*Wi[18];if(ne>=0&&wi<=si&&wi<=Ar)return cn(gt,Re,wt.subarray(ne,ne+Be));var _i,dr,Mi,tr;if(pn(gt,Re,1+(Ar<si)),Re+=2,Ar<si){_i=vt(Ze,pe,0),dr=Ze,Mi=vt(Sn,Rn,0),tr=Sn;var fr=vt(gr,yn,0);pn(gt,Re,mi-257),pn(gt,Re+5,Ir-1),pn(gt,Re+10,Ln-4),Re+=14;for(var ai=0;ai<Ln;++ai)pn(gt,Re+3*ai,gr[ve[ai]]);Re+=3*Ln;for(var so=[On,qi],tn=0;tn<2;++tn)for(var En=so[tn],ai=0;ai<En.length;++ai){var $n=En[ai]&31;pn(gt,Re,fr[$n]),Re+=gr[$n],$n>15&&(pn(gt,Re,En[ai]>>5&127),Re+=En[ai]>>12)}}else _i=Gt,dr=Nt,Mi=se,tr=Rt;for(var ai=0;ai<Jt;++ai){var fi=Ft[ai];if(fi>255){var $n=fi>>18&31;fe(gt,Re,_i[$n+257]),Re+=dr[$n+257],$n>7&&(pn(gt,Re,fi>>23&31),Re+=je[$n]);var ki=fi&31;fe(gt,Re,Mi[ki]),Re+=tr[ki],ki>3&&(fe(gt,Re,fi>>5&8191),Re+=de[ki])}else fe(gt,Re,_i[fi]),Re+=dr[fi]}return fe(gt,Re,_i[256]),Re+dr[256]},Wn=new We([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xi=new xn(0),pi=function(wt,gt,yt,Ft,Ut,Ot){var Xt=Ot.z||wt.length,Jt=new xn(Ft+Xt+5*(1+Math.ceil(Xt/7e3))+Ut),ne=Jt.subarray(Ft,Jt.length-Ut),Be=Ot.l,Re=(Ot.r||0)&7;if(gt){Re&&(ne[0]=Ot.r>>3);for(var He=Wn[gt-1],Ze=He>>13,pe=He&8191,jn=(1<<yt)-1,Sn=Ot.p||new Se(32768),Rn=Ot.h||new Se(jn+1),on=Math.ceil(yt/3),On=2*on,mi=function(Fs){return(wt[Fs]^wt[Fs+1]<<on^wt[Fs+2]<<On)&jn},Di=new We(25e3),qi=new Se(288),Ir=new Se(32),Wi=0,ai=0,Xi=Ot.i||0,gr=0,yn=Ot.w||0,Ln=0;Xi+2<Xt;++Xi){var wi=mi(Xi),si=Xi&32767,Ar=Rn[wi];if(Sn[si]=Ar,Rn[wi]=si,yn<=Xi){var _i=Xt-Xi;if((Wi>7e3||gr>24576)&&(_i>423||!Be)){Re=In(wt,ne,0,Di,qi,Ir,ai,gr,Ln,Xi-Ln,Re),gr=Wi=ai=0,Ln=Xi;for(var dr=0;dr<286;++dr)qi[dr]=0;for(var dr=0;dr<30;++dr)Ir[dr]=0}var Mi=2,tr=0,fr=pe,so=si-Ar&32767;if(_i>2&&wi==mi(Xi-so))for(var tn=Math.min(Ze,_i)-1,En=Math.min(32767,Xi),$n=Math.min(258,_i);so<=En&&--fr&&si!=Ar;){if(wt[Xi+Mi]==wt[Xi+Mi-so]){for(var fi=0;fi<$n&&wt[Xi+fi]==wt[Xi+fi-so];++fi);if(fi>Mi){if(Mi=fi,tr=so,fi>tn)break;for(var ki=Math.min(so,fi-2),Ki=0,dr=0;dr<ki;++dr){var ir=Xi-so+dr&32767,ji=Sn[ir],Kr=ir-ji&32767;Kr>Ki&&(Ki=Kr,Ar=ir)}}}si=Ar,Ar=Sn[si],so+=si-Ar&32767}if(tr){Di[gr++]=268435456|ge[Mi]<<18|nt[tr];var no=ge[Mi]&31,Io=nt[tr]&31;ai+=je[no]+de[Io],++qi[257+no],++Ir[Io],yn=Xi+Mi,++Wi}else Di[gr++]=wt[Xi],++qi[wt[Xi]]}}for(Xi=Math.max(Xi,yn);Xi<Xt;++Xi)Di[gr++]=wt[Xi],++qi[wt[Xi]];Re=In(wt,ne,Be,Di,qi,Ir,ai,gr,Ln,Xi-Ln,Re),Be||(Ot.r=Re&7|ne[Re/8|0]<<3,Re-=7,Ot.h=Rn,Ot.p=Sn,Ot.i=Xi,Ot.w=yn)}else{for(var Xi=Ot.w||0;Xi<Xt+Be;Xi+=65535){var Lo=Xi+65535;Lo>=Xt&&(ne[Re/8|0]=Be,Lo=Xt),Re=cn(ne,Re+1,wt.subarray(Xi,Lo))}Ot.i=Xt}return Oe(Jt,0,Ft+ln(Re)+Ut)},zi=null,Ie=function(){var wt=-1;return{p:function(gt){for(var yt=wt,Ft=0;Ft<gt.length;++Ft)yt=zi[yt&255^gt[Ft]]^yt>>>8;wt=yt},d:function(){return~wt}}},Ai=function(){var wt=1,gt=0;return{p:function(yt){for(var Ft=wt,Ut=gt,Ot=yt.length|0,Xt=0;Xt!=Ot;){for(var Jt=Math.min(Xt+2655,Ot);Xt<Jt;++Xt)Ut+=Ft+=yt[Xt];Ft=(Ft&65535)+15*(Ft>>16),Ut=(Ut&65535)+15*(Ut>>16)}wt=Ft,gt=Ut},d:function(){return wt%=65521,gt%=65521,(wt&255)<<24|(wt&65280)<<8|(gt&255)<<8|gt>>8}}},Ti=function(wt,gt,yt,Ft,Ut){if(!Ut&&(Ut={l:1},gt.dictionary)){var Ot=gt.dictionary.subarray(-32768),Xt=new xn(Ot.length+wt.length);Xt.set(Ot),Xt.set(wt,Ot.length),wt=Xt,Ut.w=Ot.length}return pi(wt,gt.level==null?6:gt.level,gt.mem==null?Ut.l?Math.ceil(Math.max(8,Math.min(13,Math.log(wt.length)))*1.5):20:12+gt.mem,yt,Ft,Ut)},ue=function(wt,gt){var yt={};for(var Ft in wt)yt[Ft]=wt[Ft];for(var Ft in gt)yt[Ft]=gt[Ft];return yt},Tt=function(wt,gt,yt){for(var Ft=wt(),Ut=wt.toString(),Ot=Ut.slice(Ut.indexOf("[")+1,Ut.lastIndexOf("]")).replace(/\s+/g,"").split(","),Xt=0;Xt<Ft.length;++Xt){var Jt=Ft[Xt],ne=Ot[Xt];if(typeof Jt=="function"){gt+=";"+ne+"=";var Be=Jt.toString();if(Jt.prototype)if(Be.indexOf("[native code]")!=-1){var Re=Be.indexOf(" ",8)+1;gt+=Be.slice(Re,Be.indexOf("(",Re))}else{gt+=Be;for(var He in Jt.prototype)gt+=";"+ne+".prototype."+He+"="+Jt.prototype[He].toString()}else gt+=Be}else yt[ne]=Jt}return gt},Ct=null,zt=function(wt){var gt=[];for(var yt in wt)wt[yt].buffer&>.push((wt[yt]=new wt[yt].constructor(wt[yt])).buffer);return gt},Ht=function(wt,gt,yt,Ft){if(!Ct[yt]){for(var Ut="",Ot={},Xt=wt.length-1,Jt=0;Jt<Xt;++Jt)Ut=Tt(wt[Jt],Ut,Ot);Ct[yt]={c:Tt(wt[Xt],Ut,Ot),e:Ot}}var ne=ue({},Ct[yt].e);return Te(Ct[yt].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+gt.toString()+"}",yt,ne,zt(ne),Ft)},Mt=function(){return[xn,Se,We,je,de,ve,ee,et,$t,me,ht,Kn,vt,ce,Xe,De,ln,Oe,sn,gn,Xs,kn,Bn]},be=function(){return[xn,Se,We,je,de,ve,ge,nt,Gt,Nt,se,Rt,ht,Wn,xi,vt,pn,fe,Zt,Ye,Gn,ri,cn,In,ln,Oe,pi,Ti,oo,kn]},Ge=function(){return[sr,po,Pi,Ie,zi]},vn=function(){return[Or,Ao]},Fn=function(){return[Zr,Pi,Ai]},An=function(){return[Ho]},kn=function(wt){return postMessage(wt,[wt.buffer])},Bn=function(wt){return wt&&{out:wt.size&&new xn(wt.size),dictionary:wt.dictionary}},Vn=function(wt,gt,yt,Ft,Ut,Ot){var Xt=Ht(yt,Ft,Ut,function(Jt,ne){Xt.terminate(),Ot(Jt,ne)});return Xt.postMessage([wt,gt],gt.consume?[wt.buffer]:[]),function(){Xt.terminate()}},bi=function(wt){return wt.ondata=function(gt,yt){return postMessage([gt,yt],[gt.buffer])},function(gt){gt.data.length?(wt.push(gt.data[0],gt.data[1]),postMessage([gt.data[0].length])):wt.flush()}},Pn=function(wt,gt,yt,Ft,Ut,Ot,Xt){var Jt,ne=Ht(wt,Ft,Ut,function(Be,Re){Be?(ne.terminate(),gt.ondata.call(gt,Be)):Array.isArray(Re)?Re.length==1?(gt.queuedSize-=Re[0],gt.ondrain&>.ondrain(Re[0])):(Re[1]&&ne.terminate(),gt.ondata.call(gt,Be,Re[0],Re[1])):Xt(Re)});ne.postMessage(yt),gt.queuedSize=0,gt.push=function(Be,Re){gt.ondata||sn(5),Jt&>.ondata(sn(4,0,1),null,!!Re),gt.queuedSize+=Be.length,ne.postMessage([Be,Jt=Re],[Be.buffer])},gt.terminate=function(){ne.terminate()},Ot&&(gt.flush=function(){ne.postMessage([])})},an=function(wt,gt){return wt[gt]|wt[gt+1]<<8},ei=function(wt,gt){return(wt[gt]|wt[gt+1]<<8|wt[gt+2]<<16|wt[gt+3]<<24)>>>0},Ui=function(wt,gt){return ei(wt,gt)+ei(wt,gt+4)*4294967296},Pi=function(wt,gt,yt){for(;yt;++gt)wt[gt]=yt,yt>>>=8},sr=function(wt,gt){var yt=gt.filename;if(wt[0]=31,wt[1]=139,wt[2]=8,wt[8]=gt.level<2?4:gt.level==9?2:0,wt[9]=3,gt.mtime!=0&&Pi(wt,4,Math.floor(new Date(gt.mtime||Date.now())/1e3)),yt){wt[3]=8;for(var Ft=0;Ft<=yt.length;++Ft)wt[Ft+10]=yt.charCodeAt(Ft)}},Or=function(wt){(wt[0]!=31||wt[1]!=139||wt[2]!=8)&&sn(6,"invalid gzip data");var gt=wt[3],yt=10;gt&4&&(yt+=(wt[10]|wt[11]<<8)+2);for(var Ft=(gt>>3&1)+(gt>>4&1);Ft>0;Ft-=!wt[yt++]);return yt+(gt&2)},Ao=function(wt){var gt=wt.length;return(wt[gt-4]|wt[gt-3]<<8|wt[gt-2]<<16|wt[gt-1]<<24)>>>0},po=function(wt){return 10+(wt.filename?wt.filename.length+1:0)},Zr=function(wt,gt){var yt=gt.level,Ft=yt==0?0:yt<6?1:yt==9?3:2;if(wt[0]=120,wt[1]=Ft<<6|(gt.dictionary&&32),wt[1]|=31-(wt[0]<<8|wt[1])%31,gt.dictionary){var Ut=Ai();Ut.p(gt.dictionary),Pi(wt,2,Ut.d())}},Ho=function(wt,gt){return((wt[0]&15)!=8||wt[0]>>4>7||(wt[0]<<8|wt[1])%31)&&sn(6,"invalid zlib data"),(wt[1]>>5&1)==+!gt&&sn(6,"invalid zlib data: "+(wt[1]&32?"need":"unexpected")+" dictionary"),(wt[1]>>3&4)+2};function Co(wt,gt){return typeof wt=="function"&&(gt=wt,wt={}),this.ondata=gt,wt}var Jr=null,hr=null;function to(wt,gt,yt){return yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7),Vn(wt,gt,[be],function(Ft){return kn(oo(Ft.data[0],Ft.data[1]))},0,yt)}function oo(wt,gt){return Ti(wt,gt||{},0,0)}var Jo=null,Ns=null;function ys(wt,gt,yt){return yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7),Vn(wt,gt,[Mt],function(Ft){return kn(Xs(Ft.data[0],Bn(Ft.data[1])))},1,yt)}function Xs(wt,gt){return gn(wt,{i:2},gt&>.out,gt&>.dictionary)}var vo=null,jt=null;function la(wt,gt,yt){return yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7),Vn(wt,gt,[be,Ge,function(){return[os]}],function(Ft){return kn(os(Ft.data[0],Ft.data[1]))},2,yt)}function os(wt,gt){gt||(gt={});var yt=Ie(),Ft=wt.length;yt.p(wt);var Ut=Ti(wt,gt,po(gt),8),Ot=Ut.length;return sr(Ut,gt),Pi(Ut,Ot-8,yt.d()),Pi(Ut,Ot-4,Ft),Ut}var _s=null,Ss=null;function ca(wt,gt,yt){return yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7),Vn(wt,gt,[Mt,vn,function(){return[fa]}],function(Ft){return kn(fa(Ft.data[0],Ft.data[1]))},3,yt)}function fa(wt,gt){var yt=Or(wt);return yt+8>wt.length&&sn(6,"invalid gzip data"),gn(wt.subarray(yt,-8),{i:2},gt&>.out||new xn(Ao(wt)),gt&>.dictionary)}var Pr=null,Fr=null;function dn(wt,gt,yt){return yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7),Vn(wt,gt,[be,Fn,function(){return[nn]}],function(Ft){return kn(nn(Ft.data[0],Ft.data[1]))},4,yt)}function nn(wt,gt){gt||(gt={});var yt=Ai();yt.p(wt);var Ft=Ti(wt,gt,gt.dictionary?6:2,4);return Zr(Ft,gt),Pi(Ft,Ft.length-4,yt.d()),Ft}var he=null,Un=null;function Yn(wt,gt,yt){return yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7),Vn(wt,gt,[Mt,An,function(){return[Qe]}],function(Ft){return kn(Qe(Ft.data[0],Bn(Ft.data[1])))},5,yt)}function Qe(wt,gt){return gn(wt.subarray(Ho(wt,gt&>.dictionary),-4),{i:2},gt&>.out,gt&>.dictionary)}var ye=null,qe=null;function Mn(wt,gt,yt){return yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7),wt[0]==31&&wt[1]==139&&wt[2]==8?ca(wt,gt,yt):(wt[0]&15)!=8||wt[0]>>4>7||(wt[0]<<8|wt[1])%31?ys(wt,gt,yt):Yn(wt,gt,yt)}function li(wt,gt){return wt[0]==31&&wt[1]==139&&wt[2]==8?fa(wt,gt):(wt[0]&15)!=8||wt[0]>>4>7||(wt[0]<<8|wt[1])%31?Xs(wt,gt):Qe(wt,gt)}var Si=function(wt,gt,yt,Ft){for(var Ut in wt){var Ot=wt[Ut],Xt=gt+Ut,Jt=Ft;Array.isArray(Ot)&&(Jt=ue(Ft,Ot[1]),Ot=Ot[0]),Ot instanceof xn?yt[Xt]=[Ot,Jt]:(yt[Xt+="/"]=[new xn(0),Jt],Si(Ot,Xt,yt,Ft))}},Fe=typeof TextEncoder!="undefined"&&new TextEncoder,Qn=typeof TextDecoder!="undefined"&&new TextDecoder,Ni=0;try{Qn.decode(xi,{stream:!0}),Ni=1}catch(wt){}var lr=function(wt){for(var gt="",yt=0;;){var Ft=wt[yt++],Ut=(Ft>127)+(Ft>223)+(Ft>239);if(yt+Ut>wt.length)return{s:gt,r:Oe(wt,yt-1)};Ut?Ut==3?(Ft=((Ft&15)<<18|(wt[yt++]&63)<<12|(wt[yt++]&63)<<6|wt[yt++]&63)-65536,gt+=String.fromCharCode(55296|Ft>>10,56320|Ft&1023)):Ut&1?gt+=String.fromCharCode((Ft&31)<<6|wt[yt++]&63):gt+=String.fromCharCode((Ft&15)<<12|(wt[yt++]&63)<<6|wt[yt++]&63):gt+=String.fromCharCode(Ft)}},wn=null,Jn=null;function Br(wt,gt){if(gt){for(var yt=new xn(wt.length),Ft=0;Ft<wt.length;++Ft)yt[Ft]=wt.charCodeAt(Ft);return yt}if(Fe)return Fe.encode(wt);for(var Ut=wt.length,Ot=new xn(wt.length+(wt.length>>1)),Xt=0,Jt=function(Re){Ot[Xt++]=Re},Ft=0;Ft<Ut;++Ft){if(Xt+5>Ot.length){var ne=new xn(Xt+8+(Ut-Ft<<1));ne.set(Ot),Ot=ne}var Be=wt.charCodeAt(Ft);Be<128||gt?Jt(Be):Be<2048?(Jt(192|Be>>6),Jt(128|Be&63)):Be>55295&&Be<57344?(Be=65536+(Be&1047552)|wt.charCodeAt(++Ft)&1023,Jt(240|Be>>18),Jt(128|Be>>12&63),Jt(128|Be>>6&63),Jt(128|Be&63)):(Jt(224|Be>>12),Jt(128|Be>>6&63),Jt(128|Be&63))}return Oe(Ot,0,Xt)}function vr(wt,gt){if(gt){for(var yt="",Ft=0;Ft<wt.length;Ft+=16384)yt+=String.fromCharCode.apply(null,wt.subarray(Ft,Ft+16384));return yt}else{if(Qn)return Qn.decode(wt);var Ut=lr(wt),Ot=Ut.s,yt=Ut.r;return yt.length&&sn(8),Ot}}var Tr=function(wt){return wt==1?3:wt<6?2:wt==9?1:0},nr=function(wt,gt){return gt+30+an(wt,gt+26)+an(wt,gt+28)},yr=function(wt,gt,yt){var Ft=an(wt,gt+28),Ut=vr(wt.subarray(gt+46,gt+46+Ft),!(an(wt,gt+8)&2048)),Ot=gt+46+Ft,Xt=ei(wt,gt+20),Jt=yt&&Xt==4294967295?ar(wt,Ot):[Xt,ei(wt,gt+24),ei(wt,gt+42)],ne=Jt[0],Be=Jt[1],Re=Jt[2];return[an(wt,gt+10),ne,Be,Ut,Ot+an(wt,gt+30)+an(wt,gt+32),Re]},ar=function(wt,gt){for(;an(wt,gt)!=1;gt+=4+an(wt,gt+2));return[Ui(wt,gt+12),Ui(wt,gt+4),Ui(wt,gt+20)]},Er=function(wt){var gt=0;if(wt)for(var yt in wt){var Ft=wt[yt].length;Ft>65535&&sn(9),gt+=Ft+4}return gt},co=function(wt,gt,yt,Ft,Ut,Ot,Xt,Jt){var ne=Ft.length,Be=yt.extra,Re=Jt&&Jt.length,He=Er(Be);Pi(wt,gt,Xt!=null?33639248:67324752),gt+=4,Xt!=null&&(wt[gt++]=20,wt[gt++]=yt.os),wt[gt]=20,gt+=2,wt[gt++]=yt.flag<<1|(Ot<0&&8),wt[gt++]=Ut&&8,wt[gt++]=yt.compression&255,wt[gt++]=yt.compression>>8;var Ze=new Date(yt.mtime==null?Date.now():yt.mtime),pe=Ze.getFullYear()-1980;if((pe<0||pe>119)&&sn(10),Pi(wt,gt,pe<<25|Ze.getMonth()+1<<21|Ze.getDate()<<16|Ze.getHours()<<11|Ze.getMinutes()<<5|Ze.getSeconds()>>1),gt+=4,Ot!=-1&&(Pi(wt,gt,yt.crc),Pi(wt,gt+4,Ot<0?-Ot-2:Ot),Pi(wt,gt+8,yt.size)),Pi(wt,gt+12,ne),Pi(wt,gt+14,He),gt+=16,Xt!=null&&(Pi(wt,gt,Re),Pi(wt,gt+6,yt.attrs),Pi(wt,gt+10,Xt),gt+=14),wt.set(Ft,gt),gt+=ne,He)for(var jn in Be){var Sn=Be[jn],Rn=Sn.length;Pi(wt,gt,+jn),Pi(wt,gt+2,Rn),wt.set(Sn,gt+4),gt+=4+Rn}return Re&&(wt.set(Jt,gt),gt+=Re),gt},jo=function(wt,gt,yt,Ft,Ut){Pi(wt,gt,101010256),Pi(wt,gt+8,yt),Pi(wt,gt+10,yt),Pi(wt,gt+12,Ft),Pi(wt,gt+16,Ut)},Xn=null,Oo=null,as=null,Eo=null;function zn(wt,gt,yt){yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7);var Ft={};Si(wt,"",Ft,gt);var Ut=Object.keys(Ft),Ot=Ut.length,Xt=0,Jt=0,ne=Ot,Be=new Array(Ot),Re=[],He=function(){for(var Rn=0;Rn<Re.length;++Rn)Re[Rn]()},Ze=function(Rn,on){Uo(function(){yt(Rn,on)})};Uo(function(){Ze=yt});var pe=function(){var Rn=new xn(Jt+22),on=Xt,On=Jt-Xt;Jt=0;for(var mi=0;mi<ne;++mi){var Di=Be[mi];try{var qi=Di.c.length;co(Rn,Jt,Di,Di.f,Di.u,qi);var Ir=30+Di.f.length+Er(Di.extra),Wi=Jt+Ir;Rn.set(Di.c,Wi),co(Rn,Xt,Di,Di.f,Di.u,qi,Jt,Di.m),Xt+=16+Ir+(Di.m?Di.m.length:0),Jt=Wi+qi}catch(ai){return Ze(ai,null)}}jo(Rn,Xt,Be.length,On,on),Ze(null,Rn)};Ot||pe();for(var jn=function(Rn){var on=Ut[Rn],On=Ft[on],mi=On[0],Di=On[1],qi=Ie(),Ir=mi.length;qi.p(mi);var Wi=Br(on),ai=Wi.length,Xi=Di.comment,gr=Xi&&Br(Xi),yn=gr&&gr.length,Ln=Er(Di.extra),wi=Di.level==0?0:8,si=function(Ar,_i){if(Ar)He(),Ze(Ar,null);else{var dr=_i.length;Be[Rn]=ue(Di,{size:Ir,crc:qi.d(),c:_i,f:Wi,m:gr,u:ai!=on.length||gr&&Xi.length!=yn,compression:wi}),Xt+=30+ai+Ln+dr,Jt+=76+2*(ai+Ln)+(yn||0)+dr,--Ot||pe()}};if(ai>65535&&si(sn(11,0,1),null),!wi)si(null,mi);else if(Ir<16e4)try{si(null,oo(mi,Di))}catch(Ar){si(Ar,null)}else Re.push(to(mi,Di,si))},Sn=0;Sn<ne;++Sn)jn(Sn);return He}function Gi(wt,gt){gt||(gt={});var yt={},Ft=[];Si(wt,"",yt,gt);var Ut=0,Ot=0;for(var Xt in yt){var Jt=yt[Xt],ne=Jt[0],Be=Jt[1],Re=Be.level==0?0:8,He=Br(Xt),Ze=He.length,pe=Be.comment,jn=pe&&Br(pe),Sn=jn&&jn.length,Rn=Er(Be.extra);Ze>65535&&sn(11);var on=Re?oo(ne,Be):ne,On=on.length,mi=Ie();mi.p(ne),Ft.push(ue(Be,{size:ne.length,crc:mi.d(),c:on,f:He,m:jn,u:Ze!=Xt.length||jn&&pe.length!=Sn,o:Ut,compression:Re})),Ut+=30+Ze+Rn+On,Ot+=76+2*(Ze+Rn)+(Sn||0)+On}for(var Di=new xn(Ot+22),qi=Ut,Ir=Ot-Ut,Wi=0;Wi<Ft.length;++Wi){var He=Ft[Wi];co(Di,He.o,He,He.f,He.u,He.c.length);var ai=30+He.f.length+Er(He.extra);Di.set(He.c,He.o+ai),co(Di,Ut,He,He.f,He.u,He.c.length,He.o,He.m),Ut+=16+ai+(He.m?He.m.length:0)}return jo(Di,Ut,Ft.length,Ir,qi),Di}var wr=null,Dr=null,Mr=null,ao=null,Uo=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(wt){wt()};function lo(wt,gt,yt){yt||(yt=gt,gt={}),typeof yt!="function"&&sn(7);var Ft=[],Ut=function(){for(var Rn=0;Rn<Ft.length;++Rn)Ft[Rn]()},Ot={},Xt=function(Rn,on){Uo(function(){yt(Rn,on)})};Uo(function(){Xt=yt});for(var Jt=wt.length-22;ei(wt,Jt)!=101010256;--Jt)if(!Jt||wt.length-Jt>65558)return Xt(sn(13,0,1),null),Ut;var ne=an(wt,Jt+8);if(ne){var Be=ne,Re=ei(wt,Jt+16),He=Re==4294967295||Be==65535;if(He){var Ze=ei(wt,Jt-12);He=ei(wt,Ze)==101075792,He&&(Be=ne=ei(wt,Ze+32),Re=ei(wt,Ze+48))}for(var pe=gt&>.filter,jn=function(Rn){var on=yr(wt,Re,He),On=on[0],mi=on[1],Di=on[2],qi=on[3],Ir=on[4],Wi=on[5],ai=nr(wt,Wi);Re=Ir;var Xi=function(yn,Ln){yn?(Ut(),Xt(yn,null)):(Ln&&(Ot[qi]=Ln),--ne||Xt(null,Ot))};if(!pe||pe({name:qi,size:mi,originalSize:Di,compression:On}))if(!On)Xi(null,Oe(wt,ai,ai+mi));else if(On==8){var gr=wt.subarray(ai,ai+mi);if(Di<524288||mi>.8*Di)try{Xi(null,Xs(gr,{out:new xn(Di)}))}catch(yn){Xi(yn,null)}else Ft.push(ys(gr,{size:Di},Xi))}else Xi(sn(14,"unknown compression type "+On,1),null);else Xi(null,null)},Sn=0;Sn<Be;++Sn)jn(Sn)}else Xt(null,{});return Ut}function $r(wt,gt){for(var yt={},Ft=wt.length-22;ei(wt,Ft)!=101010256;--Ft)(!Ft||wt.length-Ft>65558)&&sn(13);var Ut=an(wt,Ft+8);if(!Ut)return{};var Ot=ei(wt,Ft+16),Xt=Ot==4294967295||Ut==65535;if(Xt){var Jt=ei(wt,Ft-12);Xt=ei(wt,Jt)==101075792,Xt&&(Ut=ei(wt,Jt+32),Ot=ei(wt,Jt+48))}for(var ne=gt&>.filter,Be=0;Be<Ut;++Be){var Re=yr(wt,Ot,Xt),He=Re[0],Ze=Re[1],pe=Re[2],jn=Re[3],Sn=Re[4],Rn=Re[5],on=nr(wt,Rn);Ot=Sn,(!ne||ne({name:jn,size:Ze,originalSize:pe,compression:He}))&&(He?He==8?yt[jn]=Xs(wt.subarray(on,on+Ze),{out:new xn(pe)}):sn(14,"unknown compression type "+He):yt[jn]=Oe(wt,on,on+Ze))}return yt}var br=function(){return typeof window!="undefined"?window:typeof Yt.g!="undefined"?Yt.g:typeof self!="undefined"?self:this}();function ni(){br.console&&typeof br.console.log=="function"&&br.console.log.apply(br.console,arguments)}var So={log:ni,warn:function(wt){br.console&&(typeof br.console.warn=="function"?br.console.warn.apply(br.console,arguments):ni.call(null,arguments))},error:function(wt){br.console&&(typeof br.console.error=="function"?br.console.error.apply(br.console,arguments):ni(wt))}};function qn(wt,gt,yt){var Ft=new XMLHttpRequest;Ft.open("GET",wt),Ft.responseType="blob",Ft.onload=function(){Bs(Ft.response,gt,yt)},Ft.onerror=function(){So.error("could not download file")},Ft.send()}function Go(wt){var gt=new XMLHttpRequest;gt.open("HEAD",wt,!1);try{gt.send()}catch(yt){}return gt.status>=200&>.status<=299}function Ds(wt){try{wt.dispatchEvent(new MouseEvent("click"))}catch(yt){var gt=document.createEvent("MouseEvents");gt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),wt.dispatchEvent(gt)}}var qo,ea,Bs=br.saveAs||((typeof window=="undefined"?"undefined":(0,Kt.Z)(window))!=="object"||window!==br?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(wt,gt,yt){var Ft=br.URL||br.webkitURL,Ut=document.createElement("a");gt=gt||wt.name||"download",Ut.download=gt,Ut.rel="noopener",typeof wt=="string"?(Ut.href=wt,Ut.origin!==location.origin?Go(Ut.href)?qn(wt,gt,yt):Ds(Ut,Ut.target="_blank"):Ds(Ut)):(Ut.href=Ft.createObjectURL(wt),setTimeout(function(){Ft.revokeObjectURL(Ut.href)},4e4),setTimeout(function(){Ds(Ut)},0))}:"msSaveOrOpenBlob"in navigator?function(wt,gt,yt){if(gt=gt||wt.name||"download",typeof wt=="string")if(Go(wt))qn(wt,gt,yt);else{var Ft=document.createElement("a");Ft.href=wt,Ft.target="_blank",setTimeout(function(){Ds(Ft)})}else navigator.msSaveOrOpenBlob(function(Ut,Ot){return Ot===void 0?Ot={autoBom:!1}:(0,Kt.Z)(Ot)!=="object"&&(So.warn("Deprecated: Expected third argument to be a object"),Ot={autoBom:!Ot}),Ot.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ut.type)?new Blob(["\uFEFF",Ut],{type:Ut.type}):Ut}(wt,yt),gt)}:function(wt,gt,yt,Ft){if((Ft=Ft||open("","_blank"))&&(Ft.document.title=Ft.document.body.innerText="downloading..."),typeof wt=="string")return qn(wt,gt,yt);var Ut=wt.type==="application/octet-stream",Ot=/constructor/i.test(br.HTMLElement)||br.safari,Xt=/CriOS\/[\d]+/.test(navigator.userAgent);if((Xt||Ut&&Ot)&&(typeof FileReader=="undefined"?"undefined":(0,Kt.Z)(FileReader))==="object"){var Jt=new FileReader;Jt.onloadend=function(){var Re=Jt.result;Re=Xt?Re:Re.replace(/^data:[^;]*;/,"data:attachment/file;"),Ft?Ft.location.href=Re:location=Re,Ft=null},Jt.readAsDataURL(wt)}else{var ne=br.URL||br.webkitURL,Be=ne.createObjectURL(wt);Ft?Ft.location=Be:location.href=Be,Ft=null,setTimeout(function(){ne.revokeObjectURL(Be)},4e4)}});function io(wt){var gt;wt=wt||"",this.ok=!1,wt.charAt(0)=="#"&&(wt=wt.substr(1,6)),wt={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"}[wt=(wt=wt.replace(/ /g,"")).toLowerCase()]||wt;for(var yt=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Jt){return[parseInt(Jt[1]),parseInt(Jt[2]),parseInt(Jt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Jt){return[parseInt(Jt[1],16),parseInt(Jt[2],16),parseInt(Jt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Jt){return[parseInt(Jt[1]+Jt[1],16),parseInt(Jt[2]+Jt[2],16),parseInt(Jt[3]+Jt[3],16)]}}],Ft=0;Ft<yt.length;Ft++){var Ut=yt[Ft].re,Ot=yt[Ft].process,Xt=Ut.exec(wt);Xt&&(gt=Ot(Xt),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 Jt=this.r.toString(16),ne=this.g.toString(16),Be=this.b.toString(16);return Jt.length==1&&(Jt="0"+Jt),ne.length==1&&(ne="0"+ne),Be.length==1&&(Be="0"+Be),"#"+Jt+ne+Be}}function uo(wt,gt){var yt=wt[0],Ft=wt[1],Ut=wt[2],Ot=wt[3];yt=Qo(yt,Ft,Ut,Ot,gt[0],7,-680876936),Ot=Qo(Ot,yt,Ft,Ut,gt[1],12,-389564586),Ut=Qo(Ut,Ot,yt,Ft,gt[2],17,606105819),Ft=Qo(Ft,Ut,Ot,yt,gt[3],22,-1044525330),yt=Qo(yt,Ft,Ut,Ot,gt[4],7,-176418897),Ot=Qo(Ot,yt,Ft,Ut,gt[5],12,1200080426),Ut=Qo(Ut,Ot,yt,Ft,gt[6],17,-1473231341),Ft=Qo(Ft,Ut,Ot,yt,gt[7],22,-45705983),yt=Qo(yt,Ft,Ut,Ot,gt[8],7,1770035416),Ot=Qo(Ot,yt,Ft,Ut,gt[9],12,-1958414417),Ut=Qo(Ut,Ot,yt,Ft,gt[10],17,-42063),Ft=Qo(Ft,Ut,Ot,yt,gt[11],22,-1990404162),yt=Qo(yt,Ft,Ut,Ot,gt[12],7,1804603682),Ot=Qo(Ot,yt,Ft,Ut,gt[13],12,-40341101),Ut=Qo(Ut,Ot,yt,Ft,gt[14],17,-1502002290),yt=Zi(yt,Ft=Qo(Ft,Ut,Ot,yt,gt[15],22,1236535329),Ut,Ot,gt[1],5,-165796510),Ot=Zi(Ot,yt,Ft,Ut,gt[6],9,-1069501632),Ut=Zi(Ut,Ot,yt,Ft,gt[11],14,643717713),Ft=Zi(Ft,Ut,Ot,yt,gt[0],20,-373897302),yt=Zi(yt,Ft,Ut,Ot,gt[5],5,-701558691),Ot=Zi(Ot,yt,Ft,Ut,gt[10],9,38016083),Ut=Zi(Ut,Ot,yt,Ft,gt[15],14,-660478335),Ft=Zi(Ft,Ut,Ot,yt,gt[4],20,-405537848),yt=Zi(yt,Ft,Ut,Ot,gt[9],5,568446438),Ot=Zi(Ot,yt,Ft,Ut,gt[14],9,-1019803690),Ut=Zi(Ut,Ot,yt,Ft,gt[3],14,-187363961),Ft=Zi(Ft,Ut,Ot,yt,gt[8],20,1163531501),yt=Zi(yt,Ft,Ut,Ot,gt[13],5,-1444681467),Ot=Zi(Ot,yt,Ft,Ut,gt[2],9,-51403784),Ut=Zi(Ut,Ot,yt,Ft,gt[7],14,1735328473),yt=oe(yt,Ft=Zi(Ft,Ut,Ot,yt,gt[12],20,-1926607734),Ut,Ot,gt[5],4,-378558),Ot=oe(Ot,yt,Ft,Ut,gt[8],11,-2022574463),Ut=oe(Ut,Ot,yt,Ft,gt[11],16,1839030562),Ft=oe(Ft,Ut,Ot,yt,gt[14],23,-35309556),yt=oe(yt,Ft,Ut,Ot,gt[1],4,-1530992060),Ot=oe(Ot,yt,Ft,Ut,gt[4],11,1272893353),Ut=oe(Ut,Ot,yt,Ft,gt[7],16,-155497632),Ft=oe(Ft,Ut,Ot,yt,gt[10],23,-1094730640),yt=oe(yt,Ft,Ut,Ot,gt[13],4,681279174),Ot=oe(Ot,yt,Ft,Ut,gt[0],11,-358537222),Ut=oe(Ut,Ot,yt,Ft,gt[3],16,-722521979),Ft=oe(Ft,Ut,Ot,yt,gt[6],23,76029189),yt=oe(yt,Ft,Ut,Ot,gt[9],4,-640364487),Ot=oe(Ot,yt,Ft,Ut,gt[12],11,-421815835),Ut=oe(Ut,Ot,yt,Ft,gt[15],16,530742520),yt=zo(yt,Ft=oe(Ft,Ut,Ot,yt,gt[2],23,-995338651),Ut,Ot,gt[0],6,-198630844),Ot=zo(Ot,yt,Ft,Ut,gt[7],10,1126891415),Ut=zo(Ut,Ot,yt,Ft,gt[14],15,-1416354905),Ft=zo(Ft,Ut,Ot,yt,gt[5],21,-57434055),yt=zo(yt,Ft,Ut,Ot,gt[12],6,1700485571),Ot=zo(Ot,yt,Ft,Ut,gt[3],10,-1894986606),Ut=zo(Ut,Ot,yt,Ft,gt[10],15,-1051523),Ft=zo(Ft,Ut,Ot,yt,gt[1],21,-2054922799),yt=zo(yt,Ft,Ut,Ot,gt[8],6,1873313359),Ot=zo(Ot,yt,Ft,Ut,gt[15],10,-30611744),Ut=zo(Ut,Ot,yt,Ft,gt[6],15,-1560198380),Ft=zo(Ft,Ut,Ot,yt,gt[13],21,1309151649),yt=zo(yt,Ft,Ut,Ot,gt[4],6,-145523070),Ot=zo(Ot,yt,Ft,Ut,gt[11],10,-1120210379),Ut=zo(Ut,Ot,yt,Ft,gt[2],15,718787259),Ft=zo(Ft,Ut,Ot,yt,gt[9],21,-343485551),wt[0]=_r(yt,wt[0]),wt[1]=_r(Ft,wt[1]),wt[2]=_r(Ut,wt[2]),wt[3]=_r(Ot,wt[3])}function Yo(wt,gt,yt,Ft,Ut,Ot){return gt=_r(_r(gt,wt),_r(Ft,Ot)),_r(gt<<Ut|gt>>>32-Ut,yt)}function Qo(wt,gt,yt,Ft,Ut,Ot,Xt){return Yo(gt&yt|~gt&Ft,wt,gt,Ut,Ot,Xt)}function Zi(wt,gt,yt,Ft,Ut,Ot,Xt){return Yo(gt&Ft|yt&~Ft,wt,gt,Ut,Ot,Xt)}function oe(wt,gt,yt,Ft,Ut,Ot,Xt){return Yo(gt^yt^Ft,wt,gt,Ut,Ot,Xt)}function zo(wt,gt,yt,Ft,Ut,Ot,Xt){return Yo(yt^(gt|~Ft),wt,gt,Ut,Ot,Xt)}function Qs(wt){var gt,yt=wt.length,Ft=[1732584193,-271733879,-1732584194,271733878];for(gt=64;gt<=wt.length;gt+=64)uo(Ft,_a(wt.substring(gt-64,gt)));wt=wt.substring(gt-64);var Ut=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(gt=0;gt<wt.length;gt++)Ut[gt>>2]|=wt.charCodeAt(gt)<<(gt%4<<3);if(Ut[gt>>2]|=128<<(gt%4<<3),gt>55)for(uo(Ft,Ut),gt=0;gt<16;gt++)Ut[gt]=0;return Ut[14]=8*yt,uo(Ft,Ut),Ft}function _a(wt){var gt,yt=[];for(gt=0;gt<64;gt+=4)yt[gt>>2]=wt.charCodeAt(gt)+(wt.charCodeAt(gt+1)<<8)+(wt.charCodeAt(gt+2)<<16)+(wt.charCodeAt(gt+3)<<24);return yt}qo=br.atob.bind(br),ea=br.btoa.bind(br);var hl="0123456789abcdef".split("");function Ka(wt){for(var gt="",yt=0;yt<4;yt++)gt+=hl[wt>>8*yt+4&15]+hl[wt>>8*yt&15];return gt}function ml(wt){return String.fromCharCode((255&wt)>>0,(65280&wt)>>8,(16711680&wt)>>16,(4278190080&wt)>>24)}function To(wt){return Qs(wt).map(ml).join("")}var Po=function(wt){for(var gt=0;gt<wt.length;gt++)wt[gt]=Ka(wt[gt]);return wt.join("")}(Qs("hello"))!="5d41402abc4b2a76b9719d911017c592";function _r(wt,gt){if(Po){var yt=(65535&wt)+(65535>);return(wt>>16)+(gt>>16)+(yt>>16)<<16|65535&yt}return wt+gt&4294967295}function As(wt,gt){var yt,Ft,Ut,Ot;if(wt!==yt){for(var Xt=(Ut=wt,Ot=1+(256/wt.length>>0),new Array(Ot+1).join(Ut)),Jt=[],ne=0;ne<256;ne++)Jt[ne]=ne;var Be=0;for(ne=0;ne<256;ne++){var Re=Jt[ne];Be=(Be+Re+Xt.charCodeAt(ne))%256,Jt[ne]=Jt[Be],Jt[Be]=Re}yt=wt,Ft=Jt}else Jt=Ft;var He=gt.length,Ze=0,pe=0,jn="";for(ne=0;ne<He;ne++)pe=(pe+(Re=Jt[Ze=(Ze+1)%256]))%256,Jt[Ze]=Jt[pe],Jt[pe]=Re,Xt=Jt[(Jt[Ze]+Jt[pe])%256],jn+=String.fromCharCode(gt.charCodeAt(ne)^Xt);return jn}var da={print:4,modify:8,copy:16,"annot-forms":32};function Rr(wt,gt,yt,Ft){this.v=1,this.r=2;var Ut=192;wt.forEach(function(Jt){if(da.perm!==void 0)throw new Error("Invalid permission: "+Jt);Ut+=da[Jt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Ot=(gt+this.padding).substr(0,32),Xt=(yt+this.padding).substr(0,32);this.O=this.processOwnerPassword(Ot,Xt),this.P=-(1+(255^Ut)),this.encryptionKey=To(Ot+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ft)).substr(0,5),this.U=As(this.encryptionKey,this.padding)}function jr(wt){if(/[^\u0000-\u00ff]/.test(wt))throw new Error("Invalid PDF Name Object: "+wt+", Only accept ASCII characters.");for(var gt="",yt=wt.length,Ft=0;Ft<yt;Ft++){var Ut=wt.charCodeAt(Ft);Ut<33||Ut===35||Ut===37||Ut===40||Ut===41||Ut===47||Ut===60||Ut===62||Ut===91||Ut===93||Ut===123||Ut===125||Ut>126?gt+="#"+("0"+Ut.toString(16)).slice(-2):gt+=wt[Ft]}return gt}function Li(wt){if((0,Kt.Z)(wt)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var gt={};this.subscribe=function(yt,Ft,Ut){if(Ut=Ut||!1,typeof yt!="string"||typeof Ft!="function"||typeof Ut!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");gt.hasOwnProperty(yt)||(gt[yt]={});var Ot=Math.random().toString(35);return gt[yt][Ot]=[Ft,!!Ut],Ot},this.unsubscribe=function(yt){for(var Ft in gt)if(gt[Ft][yt])return delete gt[Ft][yt],Object.keys(gt[Ft]).length===0&&delete gt[Ft],!0;return!1},this.publish=function(yt){if(gt.hasOwnProperty(yt)){var Ft=Array.prototype.slice.call(arguments,1),Ut=[];for(var Ot in gt[yt]){var Xt=gt[yt][Ot];try{Xt[0].apply(wt,Ft)}catch(Jt){br.console&&So.error("jsPDF PubSub Error",Jt.message,Jt)}Xt[1]&&Ut.push(Ot)}Ut.length&&Ut.forEach(this.unsubscribe)}},this.getTopics=function(){return gt}}function eo(wt){if(!(this instanceof eo))return new eo(wt);var gt="opacity,stroke-opacity".split(",");for(var yt in wt)wt.hasOwnProperty(yt)&>.indexOf(yt)>=0&&(this[yt]=wt[yt]);this.id="",this.objectNumber=-1}function cs(wt,gt){this.gState=wt,this.matrix=gt,this.id="",this.objectNumber=-1}function Es(wt,gt,yt,Ft,Ut){if(!(this instanceof Es))return new Es(wt,gt,yt,Ft,Ut);this.type=wt==="axial"?2:3,this.coords=gt,this.colors=yt,cs.call(this,Ft,Ut)}function Rs(wt,gt,yt,Ft,Ut){if(!(this instanceof Rs))return new Rs(wt,gt,yt,Ft,Ut);this.boundingBox=wt,this.xStep=gt,this.yStep=yt,this.stream="",this.cloneIndex=0,cs.call(this,Ft,Ut)}function ho(wt){var gt,yt=typeof arguments[0]=="string"?arguments[0]:"p",Ft=arguments[1],Ut=arguments[2],Ot=arguments[3],Xt=[],Jt=1,ne=16,Be="S",Re=null;(0,Kt.Z)(wt=wt||{})==="object"&&(yt=wt.orientation,Ft=wt.unit||Ft,Ut=wt.format||Ut,Ot=wt.compress||wt.compressPdf||Ot,(Re=wt.encryption||null)!==null&&(Re.userPassword=Re.userPassword||"",Re.ownerPassword=Re.ownerPassword||"",Re.userPermissions=Re.userPermissions||[]),Jt=typeof wt.userUnit=="number"?Math.abs(wt.userUnit):1,wt.precision!==void 0&&(gt=wt.precision),wt.floatPrecision!==void 0&&(ne=wt.floatPrecision),Be=wt.defaultPathOperation||"S"),Xt=wt.filters||(Ot===!0?["FlateEncode"]:Xt),Ft=Ft||"mm",yt=(""+(yt||"P")).toLowerCase();var He=wt.putOnlyUsedFonts||!1,Ze={},pe={internal:{},__private__:{}};pe.__private__.PubSub=Li;var jn="1.3",Sn=pe.__private__.getPdfVersion=function(){return jn};pe.__private__.setPdfVersion=function(Vt){jn=Vt};var Rn={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]};pe.__private__.getPageFormats=function(){return Rn};var on=pe.__private__.getPageFormat=function(Vt){return Rn[Vt]};Ut=Ut||"a4";var On={COMPAT:"compat",ADVANCED:"advanced"},mi=On.COMPAT;function Di(){this.saveGraphicsState(),_n(new gs(Ro,0,0,-Ro,0,Cc()*Ro).toString()+" cm"),this.setFontSize(this.getFontSize()/Ro),Be="n",mi=On.ADVANCED}function qi(){this.restoreGraphicsState(),Be="S",mi=On.COMPAT}var Ir=pe.__private__.combineFontStyleAndFontWeight=function(Vt,_e){if(Vt=="bold"&&_e=="normal"||Vt=="bold"&&_e==400||Vt=="normal"&&_e=="italic"||Vt=="bold"&&_e=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return _e&&(Vt=_e==400||_e==="normal"?Vt==="italic"?"italic":"normal":_e!=700&&_e!=="bold"||Vt!=="normal"?(_e==700?"bold":_e)+""+Vt:"bold"),Vt};pe.advancedAPI=function(Vt){var _e=mi===On.COMPAT;return _e&&Di.call(this),typeof Vt!="function"||(Vt(this),_e&&qi.call(this)),this},pe.compatAPI=function(Vt){var _e=mi===On.ADVANCED;return _e&&qi.call(this),typeof Vt!="function"||(Vt(this),_e&&Di.call(this)),this},pe.isAdvancedAPI=function(){return mi===On.ADVANCED};var Wi,ai=function(Vt){if(mi!==On.ADVANCED)throw new Error(Vt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Xi=pe.roundToPrecision=pe.__private__.roundToPrecision=function(Vt,_e){var Hn=gt||_e;if(isNaN(Vt)||isNaN(Hn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Vt.toFixed(Hn).replace(/0+$/,"")};Wi=pe.hpf=pe.__private__.hpf=typeof ne=="number"?function(Vt){if(isNaN(Vt))throw new Error("Invalid argument passed to jsPDF.hpf");return Xi(Vt,ne)}:ne==="smart"?function(Vt){if(isNaN(Vt))throw new Error("Invalid argument passed to jsPDF.hpf");return Xi(Vt,Vt>-1&&Vt<1?16:5)}:function(Vt){if(isNaN(Vt))throw new Error("Invalid argument passed to jsPDF.hpf");return Xi(Vt,16)};var gr=pe.f2=pe.__private__.f2=function(Vt){if(isNaN(Vt))throw new Error("Invalid argument passed to jsPDF.f2");return Xi(Vt,2)},yn=pe.__private__.f3=function(Vt){if(isNaN(Vt))throw new Error("Invalid argument passed to jsPDF.f3");return Xi(Vt,3)},Ln=pe.scale=pe.__private__.scale=function(Vt){if(isNaN(Vt))throw new Error("Invalid argument passed to jsPDF.scale");return mi===On.COMPAT?Vt*Ro:mi===On.ADVANCED?Vt:void 0},wi=function(Vt){return mi===On.COMPAT?Cc()-Vt:mi===On.ADVANCED?Vt:void 0},si=function(Vt){return Ln(wi(Vt))};pe.__private__.setPrecision=pe.setPrecision=function(Vt){typeof parseInt(Vt,10)=="number"&&(gt=parseInt(Vt,10))};var Ar,_i="00000000000000000000000000000000",dr=pe.__private__.getFileId=function(){return _i},Mi=pe.__private__.setFileId=function(Vt){return _i=Vt!==void 0&&/^[a-fA-F0-9]{32}$/.test(Vt)?Vt.toUpperCase():_i.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Re!==null&&(du=new Rr(Re.userPermissions,Re.userPassword,Re.ownerPassword,_i)),_i};pe.setFileId=function(Vt){return Mi(Vt),this},pe.getFileId=function(){return dr()};var tr=pe.__private__.convertDateToPDFDate=function(Vt){var _e=Vt.getTimezoneOffset(),Hn=_e<0?"+":"-",ci=Math.floor(Math.abs(_e/60)),Ri=Math.abs(_e%60),cr=[Hn,$n(ci),"'",$n(Ri),"'"].join("");return["D:",Vt.getFullYear(),$n(Vt.getMonth()+1),$n(Vt.getDate()),$n(Vt.getHours()),$n(Vt.getMinutes()),$n(Vt.getSeconds()),cr].join("")},fr=pe.__private__.convertPDFDateToDate=function(Vt){var _e=parseInt(Vt.substr(2,4),10),Hn=parseInt(Vt.substr(6,2),10)-1,ci=parseInt(Vt.substr(8,2),10),Ri=parseInt(Vt.substr(10,2),10),cr=parseInt(Vt.substr(12,2),10),Qr=parseInt(Vt.substr(14,2),10);return new Date(_e,Hn,ci,Ri,cr,Qr,0)},so=pe.__private__.setCreationDate=function(Vt){var _e;if(Vt===void 0&&(Vt=new Date),Vt instanceof Date)_e=tr(Vt);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(Vt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");_e=Vt}return Ar=_e},tn=pe.__private__.getCreationDate=function(Vt){var _e=Ar;return Vt==="jsDate"&&(_e=fr(Ar)),_e};pe.setCreationDate=function(Vt){return so(Vt),this},pe.getCreationDate=function(Vt){return tn(Vt)};var En,$n=pe.__private__.padd2=function(Vt){return("0"+parseInt(Vt)).slice(-2)},fi=pe.__private__.padd2Hex=function(Vt){return("00"+(Vt=Vt.toString())).substr(Vt.length)},ki=0,Ki=[],ir=[],ji=0,Kr=[],no=[],Io=!1,Lo=ir,Fs=function(){ki=0,ji=0,ir=[],Ki=[],Kr=[],nh=eu(),Ou=eu()};pe.__private__.setCustomOutputDestination=function(Vt){Io=!0,Lo=Vt};var rr=function(Vt){Io||(Lo=Vt)};pe.__private__.resetCustomOutputDestination=function(){Io=!1,Lo=ir};var _n=pe.__private__.out=function(Vt){return Vt=Vt.toString(),ji+=Vt.length+1,Lo.push(Vt),Lo},Is=pe.__private__.write=function(Vt){return _n(arguments.length===1?Vt.toString():Array.prototype.join.call(arguments," "))},Wo=pe.__private__.getArrayBuffer=function(Vt){for(var _e=Vt.length,Hn=new ArrayBuffer(_e),ci=new Uint8Array(Hn);_e--;)ci[_e]=Vt.charCodeAt(_e);return Hn},zr=[["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]];pe.__private__.getStandardFonts=function(){return zr};var ro=wt.fontSize||16;pe.__private__.setFontSize=pe.setFontSize=function(Vt){return ro=mi===On.ADVANCED?Vt/Ro:Vt,this};var qr,xo=pe.__private__.getFontSize=pe.getFontSize=function(){return mi===On.COMPAT?ro:ro*Ro},$o=wt.R2L||!1;pe.__private__.setR2L=pe.setR2L=function(Vt){return $o=Vt,this},pe.__private__.getR2L=pe.getR2L=function(){return $o};var ls,bs=pe.__private__.setZoomMode=function(Vt){var _e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Vt))qr=Vt;else if(isNaN(Vt)){if(_e.indexOf(Vt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Vt+'" is not recognized.');qr=Vt}else qr=parseInt(Vt,10)};pe.__private__.getZoomMode=function(){return qr};var Zo,js=pe.__private__.setPageMode=function(Vt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Vt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Vt+'" is not recognized.');ls=Vt};pe.__private__.getPageMode=function(){return ls};var Fa=pe.__private__.setLayoutMode=function(Vt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Vt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Vt+'" is not recognized.');Zo=Vt};pe.__private__.getLayoutMode=function(){return Zo},pe.__private__.setDisplayMode=pe.setDisplayMode=function(Vt,_e,Hn){return bs(Vt),Fa(_e),js(Hn),this};var xs={title:"",subject:"",author:"",keywords:"",creator:""};pe.__private__.getDocumentProperty=function(Vt){if(Object.keys(xs).indexOf(Vt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xs[Vt]},pe.__private__.getDocumentProperties=function(){return xs},pe.__private__.setDocumentProperties=pe.setProperties=pe.setDocumentProperties=function(Vt){for(var _e in xs)xs.hasOwnProperty(_e)&&Vt[_e]&&(xs[_e]=Vt[_e]);return this},pe.__private__.setDocumentProperty=function(Vt,_e){if(Object.keys(xs).indexOf(Vt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xs[Vt]=_e};var qs,Ro,Au,Ea,ds,$a={},Il={},Gh=[],ha={},yl={},Tl={},PA={},Ih=null,Ol=0,Ts=[],Da=new Li(pe),bA=wt.hotfixes||[],bu={},Th={},vh=[],gs=function Vt(_e,Hn,ci,Ri,cr,Qr){if(!(this instanceof Vt))return new Vt(_e,Hn,ci,Ri,cr,Qr);isNaN(_e)&&(_e=1),isNaN(Hn)&&(Hn=0),isNaN(ci)&&(ci=0),isNaN(Ri)&&(Ri=1),isNaN(cr)&&(cr=0),isNaN(Qr)&&(Qr=0),this._matrix=[_e,Hn,ci,Ri,cr,Qr]};Object.defineProperty(gs.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Vt){this._matrix[0]=Vt}}),Object.defineProperty(gs.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Vt){this._matrix[1]=Vt}}),Object.defineProperty(gs.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Vt){this._matrix[2]=Vt}}),Object.defineProperty(gs.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Vt){this._matrix[3]=Vt}}),Object.defineProperty(gs.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Vt){this._matrix[4]=Vt}}),Object.defineProperty(gs.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Vt){this._matrix[5]=Vt}}),Object.defineProperty(gs.prototype,"a",{get:function(){return this._matrix[0]},set:function(Vt){this._matrix[0]=Vt}}),Object.defineProperty(gs.prototype,"b",{get:function(){return this._matrix[1]},set:function(Vt){this._matrix[1]=Vt}}),Object.defineProperty(gs.prototype,"c",{get:function(){return this._matrix[2]},set:function(Vt){this._matrix[2]=Vt}}),Object.defineProperty(gs.prototype,"d",{get:function(){return this._matrix[3]},set:function(Vt){this._matrix[3]=Vt}}),Object.defineProperty(gs.prototype,"e",{get:function(){return this._matrix[4]},set:function(Vt){this._matrix[4]=Vt}}),Object.defineProperty(gs.prototype,"f",{get:function(){return this._matrix[5]},set:function(Vt){this._matrix[5]=Vt}}),Object.defineProperty(gs.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(gs.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(gs.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(gs.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),gs.prototype.join=function(Vt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Wi).join(Vt)},gs.prototype.multiply=function(Vt){var _e=Vt.sx*this.sx+Vt.shy*this.shx,Hn=Vt.sx*this.shy+Vt.shy*this.sy,ci=Vt.shx*this.sx+Vt.sy*this.shx,Ri=Vt.shx*this.shy+Vt.sy*this.sy,cr=Vt.tx*this.sx+Vt.ty*this.shx+this.tx,Qr=Vt.tx*this.shy+Vt.ty*this.sy+this.ty;return new gs(_e,Hn,ci,Ri,cr,Qr)},gs.prototype.decompose=function(){var Vt=this.sx,_e=this.shy,Hn=this.shx,ci=this.sy,Ri=this.tx,cr=this.ty,Qr=Math.sqrt(Vt*Vt+_e*_e),_o=(Vt/=Qr)*Hn+(_e/=Qr)*ci;Hn-=Vt*_o,ci-=_e*_o;var vs=Math.sqrt(Hn*Hn+ci*ci);return _o/=vs,Vt*(ci/=vs)<_e*(Hn/=vs)&&(Vt=-Vt,_e=-_e,_o=-_o,Qr=-Qr),{scale:new gs(Qr,0,0,vs,0,0),translate:new gs(1,0,0,1,Ri,cr),rotate:new gs(Vt,_e,-_e,Vt,0,0),skew:new gs(1,0,_o,1,0,0)}},gs.prototype.toString=function(Vt){return this.join(" ")},gs.prototype.inversed=function(){var Vt=this.sx,_e=this.shy,Hn=this.shx,ci=this.sy,Ri=this.tx,cr=this.ty,Qr=1/(Vt*ci-_e*Hn),_o=ci*Qr,vs=-_e*Qr,Vs=-Hn*Qr,Ys=Vt*Qr;return new gs(_o,vs,Vs,Ys,-_o*Ri-Vs*cr,-vs*Ri-Ys*cr)},gs.prototype.applyToPoint=function(Vt){var _e=Vt.x*this.sx+Vt.y*this.shx+this.tx,Hn=Vt.x*this.shy+Vt.y*this.sy+this.ty;return new gA(_e,Hn)},gs.prototype.applyToRectangle=function(Vt){var _e=this.applyToPoint(Vt),Hn=this.applyToPoint(new gA(Vt.x+Vt.w,Vt.y+Vt.h));return new Rc(_e.x,_e.y,Hn.x-_e.x,Hn.y-_e.y)},gs.prototype.clone=function(){var Vt=this.sx,_e=this.shy,Hn=this.shx,ci=this.sy,Ri=this.tx,cr=this.ty;return new gs(Vt,_e,Hn,ci,Ri,cr)},pe.Matrix=gs;var xl=pe.matrixMult=function(Vt,_e){return _e.multiply(Vt)},Su=new gs(1,0,0,1,0,0);pe.unitMatrix=pe.identityMatrix=Su;var Bo=function(Vt,_e){if(!yl[Vt]){var Hn=(_e instanceof Es?"Sh":"P")+(Object.keys(ha).length+1).toString(10);_e.id=Hn,yl[Vt]=Hn,ha[Hn]=_e,Da.publish("addPattern",_e)}};pe.ShadingPattern=Es,pe.TilingPattern=Rs,pe.addShadingPattern=function(Vt,_e){return ai("addShadingPattern()"),Bo(Vt,_e),this},pe.beginTilingPattern=function(Vt){ai("beginTilingPattern()"),ad(Vt.boundingBox[0],Vt.boundingBox[1],Vt.boundingBox[2]-Vt.boundingBox[0],Vt.boundingBox[3]-Vt.boundingBox[1],Vt.matrix)},pe.endTilingPattern=function(Vt,_e){ai("endTilingPattern()"),_e.stream=no[En].join(`
|
|
|
`),Bo(Vt,_e),Da.publish("endTilingPattern",_e),vh.pop().restore()};var Bl=pe.__private__.newObject=function(){var Vt=eu();return ku(Vt,!0),Vt},eu=pe.__private__.newObjectDeferred=function(){return ki++,Ki[ki]=function(){return ji},ki},ku=function(Vt,_e){return _e=typeof _e=="boolean"&&_e,Ki[Vt]=ji,_e&&_n(Vt+" 0 obj"),Vt},eh=pe.__private__.newAdditionalObject=function(){var Vt={objId:eu(),content:""};return Kr.push(Vt),Vt},nh=eu(),Ou=eu(),ih=pe.__private__.decodeColorString=function(Vt){var _e=Vt.split(" ");if(_e.length!==2||_e[1]!=="g"&&_e[1]!=="G")_e.length===5&&(_e[4]==="k"||_e[4]==="K")&&(_e=[(1-_e[0])*(1-_e[3]),(1-_e[1])*(1-_e[3]),(1-_e[2])*(1-_e[3]),"r"]);else{var Hn=parseFloat(_e[0]);_e=[Hn,Hn,Hn,"r"]}for(var ci="#",Ri=0;Ri<3;Ri++)ci+=("0"+Math.floor(255*parseFloat(_e[Ri])).toString(16)).slice(-2);return ci},_u=pe.__private__.encodeColorString=function(Vt){var _e;typeof Vt=="string"&&(Vt={ch1:Vt});var Hn=Vt.ch1,ci=Vt.ch2,Ri=Vt.ch3,cr=Vt.ch4,Qr=Vt.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Hn=="string"&&Hn.charAt(0)!=="#"){var _o=new io(Hn);if(_o.ok)Hn=_o.toHex();else if(!/^\d*\.?\d*$/.test(Hn))throw new Error('Invalid color "'+Hn+'" passed to jsPDF.encodeColorString.')}if(typeof Hn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Hn)&&(Hn="#"+Hn[1]+Hn[1]+Hn[2]+Hn[2]+Hn[3]+Hn[3]),typeof Hn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Hn)){var vs=parseInt(Hn.substr(1),16);Hn=vs>>16&255,ci=vs>>8&255,Ri=255&vs}if(ci===void 0||cr===void 0&&Hn===ci&&ci===Ri)if(typeof Hn=="string")_e=Hn+" "+Qr[0];else switch(Vt.precision){case 2:_e=gr(Hn/255)+" "+Qr[0];break;case 3:default:_e=yn(Hn/255)+" "+Qr[0]}else if(cr===void 0||(0,Kt.Z)(cr)==="object"){if(cr&&!isNaN(cr.a)&&cr.a===0)return _e=["1.","1.","1.",Qr[1]].join(" ");if(typeof Hn=="string")_e=[Hn,ci,Ri,Qr[1]].join(" ");else switch(Vt.precision){case 2:_e=[gr(Hn/255),gr(ci/255),gr(Ri/255),Qr[1]].join(" ");break;default:case 3:_e=[yn(Hn/255),yn(ci/255),yn(Ri/255),Qr[1]].join(" ")}}else if(typeof Hn=="string")_e=[Hn,ci,Ri,cr,Qr[2]].join(" ");else switch(Vt.precision){case 2:_e=[gr(Hn),gr(ci),gr(Ri),gr(cr),Qr[2]].join(" ");break;case 3:default:_e=[yn(Hn),yn(ci),yn(Ri),yn(cr),Qr[2]].join(" ")}return _e},Cl=pe.__private__.getFilters=function(){return Xt},Du=pe.__private__.putStream=function(Vt){var _e=(Vt=Vt||{}).data||"",Hn=Vt.filters||Cl(),ci=Vt.alreadyAppliedFilters||[],Ri=Vt.addLength1||!1,cr=_e.length,Qr=Vt.objectId,_o=function(Xa){return Xa};if(Re!==null&&Qr===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Re!==null&&(_o=du.encryptor(Qr,0));var vs={};Hn===!0&&(Hn=["FlateEncode"]);var Vs=Vt.additionalKeyValues||[],Ys=(vs=ho.API.processDataByFilters!==void 0?ho.API.processDataByFilters(_e,Hn):{data:_e,reverseChain:[]}).reverseChain+(Array.isArray(ci)?ci.join(" "):ci.toString());if(vs.data.length!==0&&(Vs.push({key:"Length",value:vs.data.length}),Ri===!0&&Vs.push({key:"Length1",value:cr})),Ys.length!=0)if(Ys.split("/").length-1==1)Vs.push({key:"Filter",value:Ys});else{Vs.push({key:"Filter",value:"["+Ys+"]"});for(var Ko=0;Ko<Vs.length;Ko+=1)if(Vs[Ko].key==="DecodeParms"){for(var fl=[],gl=0;gl<vs.reverseChain.split("/").length-1;gl+=1)fl.push("null");fl.push(Vs[Ko].value),Vs[Ko].value="["+fl.join(" ")+"]"}}_n("<<");for(var oa=0;oa<Vs.length;oa++)_n("/"+Vs[oa].key+" "+Vs[oa].value);_n(">>"),vs.data.length!==0&&(_n("stream"),_n(_o(vs.data)),_n("endstream"))},sA=pe.__private__.putPage=function(Vt){var _e=Vt.number,Hn=Vt.data,ci=Vt.objId,Ri=Vt.contentsObjId;ku(ci,!0),_n("<</Type /Page"),_n("/Parent "+Vt.rootDictionaryObjId+" 0 R"),_n("/Resources "+Vt.resourceDictionaryObjId+" 0 R"),_n("/MediaBox ["+parseFloat(Wi(Vt.mediaBox.bottomLeftX))+" "+parseFloat(Wi(Vt.mediaBox.bottomLeftY))+" "+Wi(Vt.mediaBox.topRightX)+" "+Wi(Vt.mediaBox.topRightY)+"]"),Vt.cropBox!==null&&_n("/CropBox ["+Wi(Vt.cropBox.bottomLeftX)+" "+Wi(Vt.cropBox.bottomLeftY)+" "+Wi(Vt.cropBox.topRightX)+" "+Wi(Vt.cropBox.topRightY)+"]"),Vt.bleedBox!==null&&_n("/BleedBox ["+Wi(Vt.bleedBox.bottomLeftX)+" "+Wi(Vt.bleedBox.bottomLeftY)+" "+Wi(Vt.bleedBox.topRightX)+" "+Wi(Vt.bleedBox.topRightY)+"]"),Vt.trimBox!==null&&_n("/TrimBox ["+Wi(Vt.trimBox.bottomLeftX)+" "+Wi(Vt.trimBox.bottomLeftY)+" "+Wi(Vt.trimBox.topRightX)+" "+Wi(Vt.trimBox.topRightY)+"]"),Vt.artBox!==null&&_n("/ArtBox ["+Wi(Vt.artBox.bottomLeftX)+" "+Wi(Vt.artBox.bottomLeftY)+" "+Wi(Vt.artBox.topRightX)+" "+Wi(Vt.artBox.topRightY)+"]"),typeof Vt.userUnit=="number"&&Vt.userUnit!==1&&_n("/UserUnit "+Vt.userUnit),Da.publish("putPage",{objId:ci,pageContext:Ts[_e],pageNumber:_e,page:Hn}),_n("/Contents "+Ri+" 0 R"),_n(">>"),_n("endobj");var cr=Hn.join(`
|
|
|
`);return mi===On.ADVANCED&&(cr+=`
|
|
|
Q`),ku(Ri,!0),Du({data:cr,filters:Cl(),objectId:Ri}),_n("endobj"),ci},Gu=pe.__private__.putPages=function(){var Vt,_e,Hn=[];for(Vt=1;Vt<=Ol;Vt++)Ts[Vt].objId=eu(),Ts[Vt].contentsObjId=eu();for(Vt=1;Vt<=Ol;Vt++)Hn.push(sA({number:Vt,data:no[Vt],objId:Ts[Vt].objId,contentsObjId:Ts[Vt].contentsObjId,mediaBox:Ts[Vt].mediaBox,cropBox:Ts[Vt].cropBox,bleedBox:Ts[Vt].bleedBox,trimBox:Ts[Vt].trimBox,artBox:Ts[Vt].artBox,userUnit:Ts[Vt].userUnit,rootDictionaryObjId:nh,resourceDictionaryObjId:Ou}));ku(nh,!0),_n("<</Type /Pages");var ci="/Kids [";for(_e=0;_e<Ol;_e++)ci+=Hn[_e]+" 0 R ";_n(ci+"]"),_n("/Count "+Ol),_n(">>"),_n("endobj"),Da.publish("postPutPages")},aA=function(Vt){Da.publish("putFont",{font:Vt,out:_n,newObject:Bl,putStream:Du}),Vt.isAlreadyPutted!==!0&&(Vt.objectNumber=Bl(),_n("<<"),_n("/Type /Font"),_n("/BaseFont /"+jr(Vt.postScriptName)),_n("/Subtype /Type1"),typeof Vt.encoding=="string"&&_n("/Encoding /"+Vt.encoding),_n("/FirstChar 32"),_n("/LastChar 255"),_n(">>"),_n("endobj"))},rh=function(){for(var Vt in $a)$a.hasOwnProperty(Vt)&&(He===!1||He===!0&&Ze.hasOwnProperty(Vt))&&aA($a[Vt])},_A=function(Vt){Vt.objectNumber=Bl();var _e=[];_e.push({key:"Type",value:"/XObject"}),_e.push({key:"Subtype",value:"/Form"}),_e.push({key:"BBox",value:"["+[Wi(Vt.x),Wi(Vt.y),Wi(Vt.x+Vt.width),Wi(Vt.y+Vt.height)].join(" ")+"]"}),_e.push({key:"Matrix",value:"["+Vt.matrix.toString()+"]"});var Hn=Vt.pages[1].join(`
|
|
|
`);Du({data:Hn,additionalKeyValues:_e,objectId:Vt.objectNumber}),_n("endobj")},pc=function(){for(var Vt in bu)bu.hasOwnProperty(Vt)&&_A(bu[Vt])},Pl=function(Vt,_e){var Hn,ci=[],Ri=1/(_e-1);for(Hn=0;Hn<1;Hn+=Ri)ci.push(Hn);if(ci.push(1),Vt[0].offset!=0){var cr={offset:0,color:Vt[0].color};Vt.unshift(cr)}if(Vt[Vt.length-1].offset!=1){var Qr={offset:1,color:Vt[Vt.length-1].color};Vt.push(Qr)}for(var _o="",vs=0,Vs=0;Vs<ci.length;Vs++){for(Hn=ci[Vs];Hn>Vt[vs+1].offset;)vs++;var Ys=Vt[vs].offset,Ko=(Hn-Ys)/(Vt[vs+1].offset-Ys),fl=Vt[vs].color,gl=Vt[vs+1].color;_o+=fi(Math.round((1-Ko)*fl[0]+Ko*gl[0]).toString(16))+fi(Math.round((1-Ko)*fl[1]+Ko*gl[1]).toString(16))+fi(Math.round((1-Ko)*fl[2]+Ko*gl[2]).toString(16))}return _o.trim()},mc=function(Vt,_e){_e||(_e=21);var Hn=Bl(),ci=Pl(Vt.colors,_e),Ri=[];Ri.push({key:"FunctionType",value:"0"}),Ri.push({key:"Domain",value:"[0.0 1.0]"}),Ri.push({key:"Size",value:"["+_e+"]"}),Ri.push({key:"BitsPerSample",value:"8"}),Ri.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ri.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Du({data:ci,additionalKeyValues:Ri,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Hn}),_n("endobj"),Vt.objectNumber=Bl(),_n("<< /ShadingType "+Vt.type),_n("/ColorSpace /DeviceRGB");var cr="/Coords ["+Wi(parseFloat(Vt.coords[0]))+" "+Wi(parseFloat(Vt.coords[1]))+" ";Vt.type===2?cr+=Wi(parseFloat(Vt.coords[2]))+" "+Wi(parseFloat(Vt.coords[3])):cr+=Wi(parseFloat(Vt.coords[2]))+" "+Wi(parseFloat(Vt.coords[3]))+" "+Wi(parseFloat(Vt.coords[4]))+" "+Wi(parseFloat(Vt.coords[5])),_n(cr+="]"),Vt.matrix&&_n("/Matrix ["+Vt.matrix.toString()+"]"),_n("/Function "+Hn+" 0 R"),_n("/Extend [true true]"),_n(">>"),_n("endobj")},GA=function(Vt,_e){var Hn=eu(),ci=Bl();_e.push({resourcesOid:Hn,objectOid:ci}),Vt.objectNumber=ci;var Ri=[];Ri.push({key:"Type",value:"/Pattern"}),Ri.push({key:"PatternType",value:"1"}),Ri.push({key:"PaintType",value:"1"}),Ri.push({key:"TilingType",value:"1"}),Ri.push({key:"BBox",value:"["+Vt.boundingBox.map(Wi).join(" ")+"]"}),Ri.push({key:"XStep",value:Wi(Vt.xStep)}),Ri.push({key:"YStep",value:Wi(Vt.yStep)}),Ri.push({key:"Resources",value:Hn+" 0 R"}),Vt.matrix&&Ri.push({key:"Matrix",value:"["+Vt.matrix.toString()+"]"}),Du({data:Vt.stream,additionalKeyValues:Ri,objectId:Vt.objectNumber}),_n("endobj")},lA=function(Vt){var _e;for(_e in ha)ha.hasOwnProperty(_e)&&(ha[_e]instanceof Es?mc(ha[_e]):ha[_e]instanceof Rs&&GA(ha[_e],Vt))},Dc=function(Vt){for(var _e in Vt.objectNumber=Bl(),_n("<<"),Vt)switch(_e){case"opacity":_n("/ca "+gr(Vt[_e]));break;case"stroke-opacity":_n("/CA "+gr(Vt[_e]))}_n(">>"),_n("endobj")},Zd=function(){var Vt;for(Vt in Tl)Tl.hasOwnProperty(Vt)&&Dc(Tl[Vt])},KA=function(){for(var Vt in _n("/XObject <<"),bu)bu.hasOwnProperty(Vt)&&bu[Vt].objectNumber>=0&&_n("/"+Vt+" "+bu[Vt].objectNumber+" 0 R");Da.publish("putXobjectDict"),_n(">>")},pf=function(){du.oid=Bl(),_n("<<"),_n("/Filter /Standard"),_n("/V "+du.v),_n("/R "+du.r),_n("/U <"+du.toHexString(du.U)+">"),_n("/O <"+du.toHexString(du.O)+">"),_n("/P "+du.P),_n(">>"),_n("endobj")},WA=function(){for(var Vt in _n("/Font <<"),$a)$a.hasOwnProperty(Vt)&&(He===!1||He===!0&&Ze.hasOwnProperty(Vt))&&_n("/"+Vt+" "+$a[Vt].objectNumber+" 0 R");_n(">>")},yh=function(){if(Object.keys(ha).length>0){for(var Vt in _n("/Shading <<"),ha)ha.hasOwnProperty(Vt)&&ha[Vt]instanceof Es&&ha[Vt].objectNumber>=0&&_n("/"+Vt+" "+ha[Vt].objectNumber+" 0 R");Da.publish("putShadingPatternDict"),_n(">>")}},jc=function(Vt){if(Object.keys(ha).length>0){for(var _e in _n("/Pattern <<"),ha)ha.hasOwnProperty(_e)&&ha[_e]instanceof pe.TilingPattern&&ha[_e].objectNumber>=0&&ha[_e].objectNumber<Vt&&_n("/"+_e+" "+ha[_e].objectNumber+" 0 R");Da.publish("putTilingPatternDict"),_n(">>")}},Jd=function(){if(Object.keys(Tl).length>0){var Vt;for(Vt in _n("/ExtGState <<"),Tl)Tl.hasOwnProperty(Vt)&&Tl[Vt].objectNumber>=0&&_n("/"+Vt+" "+Tl[Vt].objectNumber+" 0 R");Da.publish("putGStateDict"),_n(">>")}},bl=function(Vt){ku(Vt.resourcesOid,!0),_n("<<"),_n("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),WA(),yh(),jc(Vt.objectOid),Jd(),KA(),_n(">>"),_n("endobj")},vc=function(){var Vt=[];rh(),Zd(),pc(),lA(Vt),Da.publish("putResources"),Vt.forEach(bl),bl({resourcesOid:Ou,objectOid:Number.MAX_SAFE_INTEGER}),Da.publish("postPutResources")},qa=function(){Da.publish("putAdditionalObjects");for(var Vt=0;Vt<Kr.length;Vt++){var _e=Kr[Vt];ku(_e.objId,!0),_n(_e.content),_n("endobj")}Da.publish("postPutAdditionalObjects")},uA=function(Vt){Il[Vt.fontName]=Il[Vt.fontName]||{},Il[Vt.fontName][Vt.fontStyle]=Vt.id},yc=function(Vt,_e,Hn,ci,Ri){var cr={id:"F"+(Object.keys($a).length+1).toString(10),postScriptName:Vt,fontName:_e,fontStyle:Hn,encoding:ci,isStandardFont:Ri||!1,metadata:{}};return Da.publish("addFont",{font:cr,instance:this}),$a[cr.id]=cr,uA(cr),cr.id},Cd=function(Vt){for(var _e=0,Hn=zr.length;_e<Hn;_e++){var ci=yc.call(this,Vt[_e][0],Vt[_e][1],Vt[_e][2],zr[_e][3],!0);He===!1&&(Ze[ci]=!0);var Ri=Vt[_e][0].split("-");uA({id:ci,fontName:Ri[0],fontStyle:Ri[1]||""})}Da.publish("addFonts",{fonts:$a,dictionary:Il})},kh=function(Vt){return Vt.foo=function(){try{return Vt.apply(this,arguments)}catch(ci){var _e=ci.stack||"";~_e.indexOf(" at ")&&(_e=_e.split(" at ")[1]);var Hn="Error in function "+_e.split(`
|
|
|
`)[0].split("<")[0]+": "+ci.message;if(!br.console)throw new Error(Hn);br.console.error(Hn,ci),br.alert&&alert(Hn)}},Vt.foo.bar=Vt,Vt.foo},un=function(Vt,_e){var Hn,ci,Ri,cr,Qr,_o,vs,Vs,Ys;if(Ri=(_e=_e||{}).sourceEncoding||"Unicode",Qr=_e.outputEncoding,(_e.autoencode||Qr)&&$a[qs].metadata&&$a[qs].metadata[Ri]&&$a[qs].metadata[Ri].encoding&&(cr=$a[qs].metadata[Ri].encoding,!Qr&&$a[qs].encoding&&(Qr=$a[qs].encoding),!Qr&&cr.codePages&&(Qr=cr.codePages[0]),typeof Qr=="string"&&(Qr=cr[Qr]),Qr)){for(vs=!1,_o=[],Hn=0,ci=Vt.length;Hn<ci;Hn++)(Vs=Qr[Vt.charCodeAt(Hn)])?_o.push(String.fromCharCode(Vs)):_o.push(Vt[Hn]),_o[Hn].charCodeAt(0)>>8&&(vs=!0);Vt=_o.join("")}for(Hn=Vt.length;vs===void 0&&Hn!==0;)Vt.charCodeAt(Hn-1)>>8&&(vs=!0),Hn--;if(!vs)return Vt;for(_o=_e.noBOM?[]:[254,255],Hn=0,ci=Vt.length;Hn<ci;Hn++){if((Ys=(Vs=Vt.charCodeAt(Hn))>>8)>>8)throw new Error("Character at position "+Hn+" of string '"+Vt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");_o.push(Ys),_o.push(Vs-(Ys<<8))}return String.fromCharCode.apply(void 0,_o)},cu=pe.__private__.pdfEscape=pe.pdfEscape=function(Vt,_e){return un(Vt,_e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wh=pe.__private__.beginPage=function(Vt){no[++Ol]=[],Ts[Ol]={objId:0,contentsObjId:0,userUnit:Number(Jt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Vt[0]),topRightY:Number(Vt[1])}},ed(Ol),rr(no[En])},$d=function(Vt,_e){var Hn,ci,Ri;switch(yt=_e||yt,typeof Vt=="string"&&(Hn=on(Vt.toLowerCase()),Array.isArray(Hn)&&(ci=Hn[0],Ri=Hn[1])),Array.isArray(Vt)&&(ci=Vt[0]*Ro,Ri=Vt[1]*Ro),isNaN(ci)&&(ci=Ut[0],Ri=Ut[1]),(ci>14400||Ri>14400)&&(So.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ci=Math.min(14400,ci),Ri=Math.min(14400,Ri)),Ut=[ci,Ri],yt.substr(0,1)){case"l":Ri>ci&&(Ut=[Ri,ci]);break;case"p":ci>Ri&&(Ut=[Ri,ci])}wh(Ut),Sc(AA),_n(xh),Td!==0&&_n(Td+" J"),ZA!==0&&_n(ZA+" j"),Da.publish("addPage",{pageNumber:Ol})},Pd=function(Vt){Vt>0&&Vt<=Ol&&(no.splice(Vt,1),Ts.splice(Vt,1),Ol--,En>Ol&&(En=Ol),this.setPage(En))},ed=function(Vt){Vt>0&&Vt<=Ol&&(En=Vt)},nd=pe.__private__.getNumberOfPages=pe.getNumberOfPages=function(){return no.length-1},qd=function(Vt,_e,Hn){var ci,Ri=void 0;return Hn=Hn||{},Vt=Vt!==void 0?Vt:$a[qs].fontName,_e=_e!==void 0?_e:$a[qs].fontStyle,ci=Vt.toLowerCase(),Il[ci]!==void 0&&Il[ci][_e]!==void 0?Ri=Il[ci][_e]:Il[Vt]!==void 0&&Il[Vt][_e]!==void 0?Ri=Il[Vt][_e]:Hn.disableWarning===!1&&So.warn("Unable to look up font label for font '"+Vt+"', '"+_e+"'. Refer to getFontList() for available fonts."),Ri||Hn.noFallback||(Ri=Il.times[_e])==null&&(Ri=Il.times.normal),Ri},ou=pe.__private__.putInfo=function(){var Vt=Bl(),_e=function(ci){return ci};for(var Hn in Re!==null&&(_e=du.encryptor(Vt,0)),_n("<<"),_n("/Producer ("+cu(_e("jsPDF "+ho.version))+")"),xs)xs.hasOwnProperty(Hn)&&xs[Hn]&&_n("/"+Hn.substr(0,1).toUpperCase()+Hn.substr(1)+" ("+cu(_e(xs[Hn]))+")");_n("/CreationDate ("+cu(_e(Ar))+")"),_n(">>"),_n("endobj")},VA=pe.__private__.putCatalog=function(Vt){var _e=(Vt=Vt||{}).rootDictionaryObjId||nh;switch(Bl(),_n("<<"),_n("/Type /Catalog"),_n("/Pages "+_e+" 0 R"),qr||(qr="fullwidth"),qr){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 Hn=""+qr;Hn.substr(Hn.length-1)==="%"&&(qr=parseInt(qr)/100),typeof qr=="number"&&_n("/OpenAction [3 0 R /XYZ null null "+gr(qr)+"]")}switch(Zo||(Zo="continuous"),Zo){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")}ls&&_n("/PageMode /"+ls),Da.publish("putCatalog"),_n(">>"),_n("endobj")},bd=pe.__private__.putTrailer=function(){_n("trailer"),_n("<<"),_n("/Size "+(ki+1)),_n("/Root "+ki+" 0 R"),_n("/Info "+(ki-1)+" 0 R"),Re!==null&&_n("/Encrypt "+du.oid+" 0 R"),_n("/ID [ <"+_i+"> <"+_i+"> ]"),_n(">>")},Ld=pe.__private__.putHeader=function(){_n("%PDF-"+jn),_n("%\xBA\xDF\xAC\xE0")},mf=pe.__private__.putXRef=function(){var Vt="0000000000";_n("xref"),_n("0 "+(ki+1)),_n("0000000000 65535 f ");for(var _e=1;_e<=ki;_e++)typeof Ki[_e]=="function"?_n((Vt+Ki[_e]()).slice(-10)+" 00000 n "):Ki[_e]!==void 0?_n((Vt+Ki[_e]).slice(-10)+" 00000 n "):_n("0000000000 00000 n ")},YA=pe.__private__.buildDocument=function(){Fs(),rr(ir),Da.publish("buildDocument"),Ld(),Gu(),qa(),vc(),Re!==null&&pf(),ou(),VA();var Vt=ji;return mf(),bd(),_n("startxref"),_n(""+Vt),_n("%%EOF"),rr(no[En]),ir.join(`
|
|
|
`)},id=pe.__private__.getBlob=function(Vt){return new Blob([Wo(Vt)],{type:"application/pdf"})},Lu=pe.output=pe.__private__.output=kh(function(Vt,_e){switch(typeof(_e=_e||{})=="string"?_e={filename:_e}:_e.filename=_e.filename||"generated.pdf",Vt){case void 0:return YA();case"save":pe.save(_e.filename);break;case"arraybuffer":return Wo(YA());case"blob":return id(YA());case"bloburi":case"bloburl":if(br.URL!==void 0&&typeof br.URL.createObjectURL=="function")return br.URL&&br.URL.createObjectURL(id(YA()))||void 0;So.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Hn="",ci=YA();try{Hn=ea(ci)}catch(gl){Hn=ea(unescape(encodeURIComponent(ci)))}return"data:application/pdf;filename="+_e.filename+";base64,"+Hn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(br)==="[object Window]"){var Ri="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",cr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';_e.pdfObjectUrl&&(Ri=_e.pdfObjectUrl,cr="");var Qr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Ri+'"'+cr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(_e)+");<\/script></body></html>",_o=br.open();return _o!==null&&_o.document.write(Qr),_o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(br)==="[object Window]"){var vs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(_e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+_e.filename+'" width="500px" height="400px" /></body></html>',Vs=br.open();if(Vs!==null){Vs.document.write(vs);var Ys=this;Vs.document.documentElement.querySelector("#pdfViewer").onload=function(){Vs.document.title=_e.filename,Vs.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ys.output("bloburl"))}}return Vs}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 Ko='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",_e)+'"></iframe></body></html>',fl=br.open();if(fl!==null&&(fl.document.write(Ko),fl.document.title=_e.filename),fl||typeof safari=="undefined")return fl;break;case"datauri":case"dataurl":return br.document.location.href=this.output("datauristring",_e);default:return null}}),Fu=function(Vt){return Array.isArray(bA)===!0&&bA.indexOf(Vt)>-1};switch(Ft){case"pt":Ro=1;break;case"mm":Ro=72/25.4;break;case"cm":Ro=72/2.54;break;case"in":Ro=72;break;case"px":Ro=Fu("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ro=12;break;case"ex":Ro=6;break;default:if(typeof Ft!="number")throw new Error("Invalid unit: "+Ft);Ro=Ft}var du=null;so(),Mi();var tf=function(Vt){return Re!==null?du.encryptor(Vt,0):function(_e){return _e}},Kh=pe.__private__.getPageInfo=pe.getPageInfo=function(Vt){if(isNaN(Vt)||Vt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ts[Vt].objId,pageNumber:Vt,pageContext:Ts[Vt]}},ks=pe.__private__.getPageInfoByObjId=function(Vt){if(isNaN(Vt)||Vt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var _e in Ts)if(Ts[_e].objId===Vt)break;return Kh(_e)},Fd=pe.__private__.getCurrentPageInfo=pe.getCurrentPageInfo=function(){return{objId:Ts[En].objId,pageNumber:En,pageContext:Ts[En]}};pe.addPage=function(){return $d.apply(this,arguments),this},pe.setPage=function(){return ed.apply(this,arguments),rr.call(this,no[En]),this},pe.insertPage=function(Vt){return this.addPage(),this.movePage(En,Vt),this},pe.movePage=function(Vt,_e){var Hn,ci;if(Vt>_e){Hn=no[Vt],ci=Ts[Vt];for(var Ri=Vt;Ri>_e;Ri--)no[Ri]=no[Ri-1],Ts[Ri]=Ts[Ri-1];no[_e]=Hn,Ts[_e]=ci,this.setPage(_e)}else if(Vt<_e){Hn=no[Vt],ci=Ts[Vt];for(var cr=Vt;cr<_e;cr++)no[cr]=no[cr+1],Ts[cr]=Ts[cr+1];no[_e]=Hn,Ts[_e]=ci,this.setPage(_e)}return this},pe.deletePage=function(){return Pd.apply(this,arguments),this},pe.__private__.text=pe.text=function(Vt,_e,Hn,ci,Ri){var cr,Qr,_o,vs,Vs,Ys,Ko,fl,gl,oa=(ci=ci||{}).scope||this;if(typeof Vt=="number"&&typeof _e=="number"&&(typeof Hn=="string"||Array.isArray(Hn))){var Xa=Hn;Hn=_e,_e=Vt,Vt=Xa}if(arguments[3]instanceof gs?(ai("The transform parameter of text() with a Matrix value"),gl=Ri):(_o=arguments[4],vs=arguments[5],(0,Kt.Z)(Ko=arguments[3])==="object"&&Ko!==null||(typeof _o=="string"&&(vs=_o,_o=null),typeof Ko=="string"&&(vs=Ko,Ko=null),typeof Ko=="number"&&(_o=Ko,Ko=null),ci={flags:Ko,angle:_o,align:vs})),isNaN(_e)||isNaN(Hn)||Vt==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Vt.length===0)return oa;var jl="",Bh=!1,ju=typeof ci.lineHeightFactor=="number"?ci.lineHeightFactor:hA,Ch=oa.internal.scaleFactor;function hd(Zs){return Zs=Zs.split(" ").join(Array(ci.TabLen||9).join(" ")),cu(Zs,Ko)}function zc(Zs){for(var Hs,Ca=Zs.concat(),Pa=[],Hr=Ca.length;Hr--;)typeof(Hs=Ca.shift())=="string"?Pa.push(Hs):Array.isArray(Zs)&&(Hs.length===1||Hs[1]===void 0&&Hs[2]===void 0)?Pa.push(Hs[0]):Pa.push([Hs[0],Hs[1],Hs[2]]);return Pa}function Ad(Zs,Hs){var Ca;if(typeof Zs=="string")Ca=Hs(Zs)[0];else if(Array.isArray(Zs)){for(var Pa,Hr,zs=Zs.concat(),Qa=[],Ra=zs.length;Ra--;)typeof(Pa=zs.shift())=="string"?Qa.push(Hs(Pa)[0]):Array.isArray(Pa)&&typeof Pa[0]=="string"&&(Hr=Hs(Pa[0],Pa[1],Pa[2]),Qa.push([Hr[0],Hr[1],Hr[2]]));Ca=Qa}return Ca}var Oh=!1,$A=!0;if(typeof Vt=="string")Oh=!0;else if(Array.isArray(Vt)){var pA=Vt.concat();Qr=[];for(var Ba,Ul=pA.length;Ul--;)(typeof(Ba=pA.shift())!="string"||Array.isArray(Ba)&&typeof Ba[0]!="string")&&($A=!1);Oh=$A}if(Oh===!1)throw new Error('Type of text must be string or Array. "'+Vt+'" is not recognized.');typeof Vt=="string"&&(Vt=Vt.match(/[\r?\n]/)?Vt.split(/\r\n|\r|\n/g):[Vt]);var Pc=ro/oa.internal.scaleFactor,el=Pc*(ju-1);switch(ci.baseline){case"bottom":Hn-=el;break;case"top":Hn+=Pc-el;break;case"hanging":Hn+=Pc-2*el;break;case"middle":Hn+=Pc/2-el}if((Ys=ci.maxWidth||0)>0&&(typeof Vt=="string"?Vt=oa.splitTextToSize(Vt,Ys):Object.prototype.toString.call(Vt)==="[object Array]"&&(Vt=Vt.reduce(function(Zs,Hs){return Zs.concat(oa.splitTextToSize(Hs,Ys))},[]))),cr={text:Vt,x:_e,y:Hn,options:ci,mutex:{pdfEscape:cu,activeFontKey:qs,fonts:$a,activeFontSize:ro}},Da.publish("preProcessText",cr),Vt=cr.text,_o=(ci=cr.options).angle,!(gl instanceof gs)&&_o&&typeof _o=="number"){_o*=Math.PI/180,ci.rotationDirection===0&&(_o=-_o),mi===On.ADVANCED&&(_o=-_o);var Wu=Math.cos(_o),Dh=Math.sin(_o);gl=new gs(Wu,Dh,-Dh,Wu,0,0)}else _o&&_o instanceof gs&&(gl=_o);mi!==On.ADVANCED||gl||(gl=Su),(Vs=ci.charSpace||Qc)!==void 0&&(jl+=Wi(Ln(Vs))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(fl=ci.horizontalScale)!==void 0&&(jl+=Wi(100*fl)+` Tz
|
|
|
`),ci.lang;var su=-1,nl=ci.renderingMode!==void 0?ci.renderingMode:ci.stroke,qA=oa.internal.getCurrentPageInfo().pageContext;switch(nl){case 0:case!1:case"fill":su=0;break;case 1:case!0:case"stroke":su=1;break;case 2:case"fillThenStroke":su=2;break;case 3:case"invisible":su=3;break;case 4:case"fillAndAddForClipping":su=4;break;case 5:case"strokeAndAddPathForClipping":su=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":su=6;break;case 7:case"addToPathForClipping":su=7}var Vu=qA.usedRenderingMode!==void 0?qA.usedRenderingMode:-1;su!==-1?jl+=su+` Tr
|
|
|
`:Vu!==-1&&(jl+=`0 Tr
|
|
|
`),su!==-1&&(qA.usedRenderingMode=su),vs=ci.align||"left";var fu,EA=ro*ju,it=oa.internal.pageSize.getWidth(),ot=$a[qs];Vs=ci.charSpace||Qc,Ys=ci.maxWidth||0,Ko=Object.assign({autoencode:!0,noBOM:!0},ci.flags);var ct=[],At=function(Zs){return oa.getStringUnitWidth(Zs,{font:ot,charSpace:Vs,fontSize:ro,doKerning:!1})*ro/Ch};if(Object.prototype.toString.call(Vt)==="[object Array]"){var mt;Qr=zc(Vt),vs!=="left"&&(fu=Qr.map(At));var Dt,qt=0;if(vs==="right"){_e-=fu[0],Vt=[],Ul=Qr.length;for(var le=0;le<Ul;le++)le===0?(Dt=Mu(_e),mt=Sh(Hn)):(Dt=Ln(qt-fu[le]),mt=-EA),Vt.push([Qr[le],Dt,mt]),qt=fu[le]}else if(vs==="center"){_e-=fu[0]/2,Vt=[],Ul=Qr.length;for(var ae=0;ae<Ul;ae++)ae===0?(Dt=Mu(_e),mt=Sh(Hn)):(Dt=Ln((qt-fu[ae])/2),mt=-EA),Vt.push([Qr[ae],Dt,mt]),qt=fu[ae]}else if(vs==="left"){Vt=[],Ul=Qr.length;for(var Ne=0;Ne<Ul;Ne++)Vt.push(Qr[Ne])}else if(vs==="justify"&&ot.encoding==="Identity-H"){Vt=[],Ul=Qr.length,Ys=Ys!==0?Ys:it;for(var bn=0,ze=0;ze<Ul;ze++)if(mt=ze===0?Sh(Hn):-EA,Dt=ze===0?Mu(_e):bn,ze<Ul-1){var oi=Ln((Ys-fu[ze])/(Qr[ze].split(" ").length-1)),Zn=Qr[ze].split(" ");Vt.push([Zn[0]+" ",Dt,mt]),bn=0;for(var Yi=1;Yi<Zn.length;Yi++){var or=(At(Zn[Yi-1]+" "+Zn[Yi])-At(Zn[Yi]))*Ch+oi;Yi==Zn.length-1?Vt.push([Zn[Yi],or,0]):Vt.push([Zn[Yi]+" ",or,0]),bn-=or}}else Vt.push([Qr[ze],Dt,mt]);Vt.push(["",bn,0])}else{if(vs!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Vt=[],Ul=Qr.length,Ys=Ys!==0?Ys:it,ze=0;ze<Ul;ze++)mt=ze===0?Sh(Hn):-EA,Dt=ze===0?Mu(_e):0,ze<Ul-1?ct.push(Wi(Ln((Ys-fu[ze])/(Qr[ze].split(" ").length-1)))):ct.push(0),Vt.push([Qr[ze],Dt,mt])}}var Lr=typeof ci.R2L=="boolean"?ci.R2L:$o;Lr===!0&&(Vt=Ad(Vt,function(Zs,Hs,Ca){return[Zs.split("").reverse().join(""),Hs,Ca]})),cr={text:Vt,x:_e,y:Hn,options:ci,mutex:{pdfEscape:cu,activeFontKey:qs,fonts:$a,activeFontSize:ro}},Da.publish("postProcessText",cr),Vt=cr.text,Bh=cr.mutex.isHex||!1;var Ur=$a[qs].encoding;Ur!=="WinAnsiEncoding"&&Ur!=="StandardEncoding"||(Vt=Ad(Vt,function(Zs,Hs,Ca){return[hd(Zs),Hs,Ca]})),Qr=zc(Vt),Vt=[];for(var yo,Wr,Mo,is=0,Vr=1,ws=Array.isArray(Qr[0])?Vr:is,Ma="",Ql=function(Zs,Hs,Ca){var Pa="";return Ca instanceof gs?(Ca=typeof ci.angle=="number"?xl(Ca,new gs(1,0,0,1,Zs,Hs)):xl(new gs(1,0,0,1,Zs,Hs),Ca),mi===On.ADVANCED&&(Ca=xl(new gs(1,0,0,-1,0,0),Ca)),Pa=Ca.join(" ")+` Tm
|
|
|
`):Pa=Wi(Zs)+" "+Wi(Hs)+` Td
|
|
|
`,Pa},va=0;va<Qr.length;va++){switch(Ma="",ws){case Vr:Mo=(Bh?"<":"(")+Qr[va][0]+(Bh?">":")"),yo=parseFloat(Qr[va][1]),Wr=parseFloat(Qr[va][2]);break;case is:Mo=(Bh?"<":"(")+Qr[va]+(Bh?">":")"),yo=Mu(_e),Wr=Sh(Hn)}ct!==void 0&&ct[va]!==void 0&&(Ma=ct[va]+` Tw
|
|
|
`),va===0?Vt.push(Ma+Ql(yo,Wr,gl)+Mo):ws===is?Vt.push(Ma+Mo):ws===Vr&&Vt.push(Ma+Ql(yo,Wr,gl)+Mo)}Vt=ws===is?Vt.join(` Tj
|
|
|
T* `):Vt.join(` Tj
|
|
|
`),Vt+=` Tj
|
|
|
`;var Ll=`BT
|
|
|
/`;return Ll+=qs+" "+ro+` Tf
|
|
|
`,Ll+=Wi(ro*ju)+` TL
|
|
|
`,Ll+=FA+`
|
|
|
`,Ll+=jl,Ll+=Vt,_n(Ll+="ET"),Ze[qs]=!0,oa};var rd=pe.__private__.clip=pe.clip=function(Vt){return _n(Vt==="evenodd"?"W*":"W"),this};pe.clipEvenOdd=function(){return rd("evenodd")},pe.__private__.discardPath=pe.discardPath=function(){return _n("n"),this};var Yl=pe.__private__.isValidStyle=function(Vt){var _e=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Vt)!==-1&&(_e=!0),_e};pe.__private__.setDefaultPathOperation=pe.setDefaultPathOperation=function(Vt){return Yl(Vt)&&(Be=Vt),this};var Ed=pe.__private__.getStyle=pe.getStyle=function(Vt){var _e=Be;switch(Vt){case"D":case"S":_e="S";break;case"F":_e="f";break;case"FD":case"DF":_e="B";break;case"f":case"f*":case"B":case"B*":_e=Vt}return _e},Md=pe.close=function(){return _n("h"),this};pe.stroke=function(){return _n("S"),this},pe.fill=function(Vt){return Eu("f",Vt),this},pe.fillEvenOdd=function(Vt){return Eu("f*",Vt),this},pe.fillStroke=function(Vt){return Eu("B",Vt),this},pe.fillStrokeEvenOdd=function(Vt){return Eu("B*",Vt),this};var Eu=function(Vt,_e){(0,Kt.Z)(_e)==="object"?ef(_e,Vt):_n(Vt)},XA=function(Vt){Vt===null||mi===On.ADVANCED&&Vt===void 0||(Vt=Ed(Vt),_n(Vt))};function od(Vt,_e,Hn,ci,Ri){var cr=new Rs(_e||this.boundingBox,Hn||this.xStep,ci||this.yStep,this.gState,Ri||this.matrix);cr.stream=this.stream;var Qr=Vt+"$$"+this.cloneIndex+++"$$";return Bo(Qr,cr),cr}var ef=function(Vt,_e){var Hn=yl[Vt.key],ci=ha[Hn];if(ci instanceof Es)_n("q"),_n(Dl(_e)),ci.gState&&pe.setGState(ci.gState),_n(Vt.matrix.toString()+" cm"),_n("/"+Hn+" sh"),_n("Q");else if(ci instanceof Rs){var Ri=new gs(1,0,0,-1,0,Cc());Vt.matrix&&(Ri=Ri.multiply(Vt.matrix||Su),Hn=od.call(ci,Vt.key,Vt.boundingBox,Vt.xStep,Vt.yStep,Ri).id),_n("q"),_n("/Pattern cs"),_n("/"+Hn+" scn"),ci.gState&&pe.setGState(ci.gState),_n(_e),_n("Q")}},Dl=function(Vt){switch(Vt){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"}},nu=pe.moveTo=function(Vt,_e){return _n(Wi(Ln(Vt))+" "+Wi(si(_e))+" m"),this},wc=pe.lineTo=function(Vt,_e){return _n(Wi(Ln(Vt))+" "+Wi(si(_e))+" l"),this},tl=pe.curveTo=function(Vt,_e,Hn,ci,Ri,cr){return _n([Wi(Ln(Vt)),Wi(si(_e)),Wi(Ln(Hn)),Wi(si(ci)),Wi(Ln(Ri)),Wi(si(cr)),"c"].join(" ")),this};pe.__private__.line=pe.line=function(Vt,_e,Hn,ci,Ri){if(isNaN(Vt)||isNaN(_e)||isNaN(Hn)||isNaN(ci)||!Yl(Ri))throw new Error("Invalid arguments passed to jsPDF.line");return mi===On.COMPAT?this.lines([[Hn-Vt,ci-_e]],Vt,_e,[1,1],Ri||"S"):this.lines([[Hn-Vt,ci-_e]],Vt,_e,[1,1]).stroke()},pe.__private__.lines=pe.lines=function(Vt,_e,Hn,ci,Ri,cr){var Qr,_o,vs,Vs,Ys,Ko,fl,gl,oa,Xa,jl,Bh;if(typeof Vt=="number"&&(Bh=Hn,Hn=_e,_e=Vt,Vt=Bh),ci=ci||[1,1],cr=cr||!1,isNaN(_e)||isNaN(Hn)||!Array.isArray(Vt)||!Array.isArray(ci)||!Yl(Ri)||typeof cr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(nu(_e,Hn),Qr=ci[0],_o=ci[1],Vs=Vt.length,Xa=_e,jl=Hn,vs=0;vs<Vs;vs++)(Ys=Vt[vs]).length===2?(Xa=Ys[0]*Qr+Xa,jl=Ys[1]*_o+jl,wc(Xa,jl)):(Ko=Ys[0]*Qr+Xa,fl=Ys[1]*_o+jl,gl=Ys[2]*Qr+Xa,oa=Ys[3]*_o+jl,Xa=Ys[4]*Qr+Xa,jl=Ys[5]*_o+jl,tl(Ko,fl,gl,oa,Xa,jl));return cr&&Md(),XA(Ri),this},pe.path=function(Vt){for(var _e=0;_e<Vt.length;_e++){var Hn=Vt[_e],ci=Hn.c;switch(Hn.op){case"m":nu(ci[0],ci[1]);break;case"l":wc(ci[0],ci[1]);break;case"c":tl.apply(this,ci);break;case"h":Md()}}return this},pe.__private__.rect=pe.rect=function(Vt,_e,Hn,ci,Ri){if(isNaN(Vt)||isNaN(_e)||isNaN(Hn)||isNaN(ci)||!Yl(Ri))throw new Error("Invalid arguments passed to jsPDF.rect");return mi===On.COMPAT&&(ci=-ci),_n([Wi(Ln(Vt)),Wi(si(_e)),Wi(Ln(Hn)),Wi(Ln(ci)),"re"].join(" ")),XA(Ri),this},pe.__private__.triangle=pe.triangle=function(Vt,_e,Hn,ci,Ri,cr,Qr){if(isNaN(Vt)||isNaN(_e)||isNaN(Hn)||isNaN(ci)||isNaN(Ri)||isNaN(cr)||!Yl(Qr))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Hn-Vt,ci-_e],[Ri-Hn,cr-ci],[Vt-Ri,_e-cr]],Vt,_e,[1,1],Qr,!0),this},pe.__private__.roundedRect=pe.roundedRect=function(Vt,_e,Hn,ci,Ri,cr,Qr){if(isNaN(Vt)||isNaN(_e)||isNaN(Hn)||isNaN(ci)||isNaN(Ri)||isNaN(cr)||!Yl(Qr))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var _o=4/3*(Math.SQRT2-1);return Ri=Math.min(Ri,.5*Hn),cr=Math.min(cr,.5*ci),this.lines([[Hn-2*Ri,0],[Ri*_o,0,Ri,cr-cr*_o,Ri,cr],[0,ci-2*cr],[0,cr*_o,-Ri*_o,cr,-Ri,cr],[2*Ri-Hn,0],[-Ri*_o,0,-Ri,-cr*_o,-Ri,-cr],[0,2*cr-ci],[0,-cr*_o,Ri*_o,-cr,Ri,-cr]],Vt+Ri,_e,[1,1],Qr,!0),this},pe.__private__.ellipse=pe.ellipse=function(Vt,_e,Hn,ci,Ri){if(isNaN(Vt)||isNaN(_e)||isNaN(Hn)||isNaN(ci)||!Yl(Ri))throw new Error("Invalid arguments passed to jsPDF.ellipse");var cr=4/3*(Math.SQRT2-1)*Hn,Qr=4/3*(Math.SQRT2-1)*ci;return nu(Vt+Hn,_e),tl(Vt+Hn,_e-Qr,Vt+cr,_e-ci,Vt,_e-ci),tl(Vt-cr,_e-ci,Vt-Hn,_e-Qr,Vt-Hn,_e),tl(Vt-Hn,_e+Qr,Vt-cr,_e+ci,Vt,_e+ci),tl(Vt+cr,_e+ci,Vt+Hn,_e+Qr,Vt+Hn,_e),XA(Ri),this},pe.__private__.circle=pe.circle=function(Vt,_e,Hn,ci){if(isNaN(Vt)||isNaN(_e)||isNaN(Hn)||!Yl(ci))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Vt,_e,Hn,Hn,ci)},pe.setFont=function(Vt,_e,Hn){return Hn&&(_e=Ir(_e,Hn)),qs=qd(Vt,_e,{disableWarning:!1}),this};var Uc=pe.__private__.getFont=pe.getFont=function(){return $a[qd.apply(pe,arguments)]};pe.__private__.getFontList=pe.getFontList=function(){var Vt,_e,Hn={};for(Vt in Il)if(Il.hasOwnProperty(Vt))for(_e in Hn[Vt]=[],Il[Vt])Il[Vt].hasOwnProperty(_e)&&Hn[Vt].push(_e);return Hn},pe.addFont=function(Vt,_e,Hn,ci,Ri){var cr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&cr.indexOf(arguments[3])!==-1?Ri=arguments[3]:arguments[3]&&cr.indexOf(arguments[3])==-1&&(Hn=Ir(Hn,ci)),Ri=Ri||"Identity-H",yc.call(this,Vt,_e,Hn,Ri)};var hA,AA=wt.lineWidth||.200025,LA=pe.__private__.getLineWidth=pe.getLineWidth=function(){return AA},Sc=pe.__private__.setLineWidth=pe.setLineWidth=function(Vt){return AA=Vt,_n(Wi(Ln(Vt))+" w"),this};pe.__private__.setLineDash=ho.API.setLineDash=ho.API.setLineDashPattern=function(Vt,_e){if(Vt=Vt||[],_e=_e||0,isNaN(_e)||!Array.isArray(Vt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Vt=Vt.map(function(Hn){return Wi(Ln(Hn))}).join(" "),_e=Wi(Ln(_e)),_n("["+Vt+"] "+_e+" d"),this};var Nd=pe.__private__.getLineHeight=pe.getLineHeight=function(){return ro*hA};pe.__private__.getLineHeight=pe.getLineHeight=function(){return ro*hA};var xc=pe.__private__.setLineHeightFactor=pe.setLineHeightFactor=function(Vt){return typeof(Vt=Vt||1.15)=="number"&&(hA=Vt),this},Id=pe.__private__.getLineHeightFactor=pe.getLineHeightFactor=function(){return hA};xc(wt.lineHeight);var Mu=pe.__private__.getHorizontalCoordinate=function(Vt){return Ln(Vt)},Sh=pe.__private__.getVerticalCoordinate=function(Vt){return mi===On.ADVANCED?Vt:Ts[En].mediaBox.topRightY-Ts[En].mediaBox.bottomLeftY-Ln(Vt)},sd=pe.__private__.getHorizontalCoordinateString=pe.getHorizontalCoordinateString=function(Vt){return Wi(Mu(Vt))},cA=pe.__private__.getVerticalCoordinateString=pe.getVerticalCoordinateString=function(Vt){return Wi(Sh(Vt))},xh=wt.strokeColor||"0 G";pe.__private__.getStrokeColor=pe.getDrawColor=function(){return ih(xh)},pe.__private__.setStrokeColor=pe.setDrawColor=function(Vt,_e,Hn,ci){return xh=_u({ch1:Vt,ch2:_e,ch3:Hn,ch4:ci,pdfColorType:"draw",precision:2}),_n(xh),this};var dA=wt.fillColor||"0 g";pe.__private__.getFillColor=pe.getFillColor=function(){return ih(dA)},pe.__private__.setFillColor=pe.setFillColor=function(Vt,_e,Hn,ci){return dA=_u({ch1:Vt,ch2:_e,ch3:Hn,ch4:ci,pdfColorType:"fill",precision:2}),_n(dA),this};var FA=wt.textColor||"0 g",nf=pe.__private__.getTextColor=pe.getTextColor=function(){return ih(FA)};pe.__private__.setTextColor=pe.setTextColor=function(Vt,_e,Hn,ci){return FA=_u({ch1:Vt,ch2:_e,ch3:Hn,ch4:ci,pdfColorType:"text",precision:3}),this};var Qc=wt.charSpace,Wh=pe.__private__.getCharSpace=pe.getCharSpace=function(){return parseFloat(Qc||0)};pe.__private__.setCharSpace=pe.setCharSpace=function(Vt){if(isNaN(Vt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Qc=Vt,this};var Td=0;pe.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},pe.__private__.setLineCap=pe.setLineCap=function(Vt){var _e=pe.CapJoinStyles[Vt];if(_e===void 0)throw new Error("Line cap style of '"+Vt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Td=_e,_n(_e+" J"),this};var ZA=0;pe.__private__.setLineJoin=pe.setLineJoin=function(Vt){var _e=pe.CapJoinStyles[Vt];if(_e===void 0)throw new Error("Line join style of '"+Vt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ZA=_e,_n(_e+" j"),this},pe.__private__.setLineMiterLimit=pe.__private__.setMiterLimit=pe.setLineMiterLimit=pe.setMiterLimit=function(Vt){if(Vt=Vt||0,isNaN(Vt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return _n(Wi(Ln(Vt))+" M"),this},pe.GState=eo,pe.setGState=function(Vt){(Vt=typeof Vt=="string"?Tl[PA[Vt]]:fA(null,Vt)).equals(Ih)||(_n("/"+Vt.id+" gs"),Ih=Vt)};var fA=function(Vt,_e){if(!Vt||!PA[Vt]){var Hn=!1;for(var ci in Tl)if(Tl.hasOwnProperty(ci)&&Tl[ci].equals(_e)){Hn=!0;break}if(Hn)_e=Tl[ci];else{var Ri="GS"+(Object.keys(Tl).length+1).toString(10);Tl[Ri]=_e,_e.id=Ri}return Vt&&(PA[Vt]=_e.id),Da.publish("addGState",_e),_e}};pe.addGState=function(Vt,_e){return fA(Vt,_e),this},pe.saveGraphicsState=function(){return _n("q"),Gh.push({key:qs,size:ro,color:FA}),this},pe.restoreGraphicsState=function(){_n("Q");var Vt=Gh.pop();return qs=Vt.key,ro=Vt.size,FA=Vt.color,Ih=null,this},pe.setCurrentTransformationMatrix=function(Vt){return _n(Vt.toString()+" cm"),this},pe.comment=function(Vt){return _n("#"+Vt),this};var gA=function(Vt,_e){var Hn=Vt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Hn},set:function(cr){isNaN(cr)||(Hn=parseFloat(cr))}});var ci=_e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ci},set:function(cr){isNaN(cr)||(ci=parseFloat(cr))}});var Ri="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ri},set:function(cr){Ri=cr.toString()}}),this},Rc=function(Vt,_e,Hn,ci){gA.call(this,Vt,_e),this.type="rect";var Ri=Hn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ri},set:function(Qr){isNaN(Qr)||(Ri=parseFloat(Qr))}});var cr=ci||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return cr},set:function(Qr){isNaN(Qr)||(cr=parseFloat(Qr))}}),this},Ku=function(){this.page=Ol,this.currentPage=En,this.pages=no.slice(0),this.pagesContext=Ts.slice(0),this.x=Au,this.y=Ea,this.matrix=ds,this.width=Bc(En),this.height=Cc(En),this.outputDestination=Lo,this.id="",this.objectNumber=-1};Ku.prototype.restore=function(){Ol=this.page,En=this.currentPage,Ts=this.pagesContext,no=this.pages,Au=this.x,Ea=this.y,ds=this.matrix,JA(En,this.width),ud(En,this.height),Lo=this.outputDestination};var ad=function(Vt,_e,Hn,ci,Ri){vh.push(new Ku),Ol=En=0,no=[],Au=Vt,Ea=_e,ds=Ri,wh([Hn,ci])},ld=function(Vt){if(Th[Vt])vh.pop().restore();else{var _e=new Ku,Hn="Xo"+(Object.keys(bu).length+1).toString(10);_e.id=Hn,Th[Vt]=Hn,bu[Hn]=_e,Da.publish("addFormObject",_e),vh.pop().restore()}};for(var Hc in pe.beginFormObject=function(Vt,_e,Hn,ci,Ri){return ad(Vt,_e,Hn,ci,Ri),this},pe.endFormObject=function(Vt){return ld(Vt),this},pe.doFormObject=function(Vt,_e){var Hn=bu[Th[Vt]];return _n("q"),_n(_e.toString()+" cm"),_n("/"+Hn.id+" Do"),_n("Q"),this},pe.getFormObject=function(Vt){var _e=bu[Th[Vt]];return{x:_e.x,y:_e.y,width:_e.width,height:_e.height,matrix:_e.matrix}},pe.save=function(Vt,_e){return Vt=Vt||"generated.pdf",(_e=_e||{}).returnPromise=_e.returnPromise||!1,_e.returnPromise===!1?(Bs(id(YA()),Vt),typeof Bs.unload=="function"&&br.setTimeout&&setTimeout(Bs.unload,911),this):new Promise(function(Hn,ci){try{var Ri=Bs(id(YA()),Vt);typeof Bs.unload=="function"&&br.setTimeout&&setTimeout(Bs.unload,911),Hn(Ri)}catch(cr){ci(cr.message)}})},ho.API)ho.API.hasOwnProperty(Hc)&&(Hc==="events"&&ho.API.events.length?function(Vt,_e){var Hn,ci,Ri;for(Ri=_e.length-1;Ri!==-1;Ri--)Hn=_e[Ri][0],ci=_e[Ri][1],Vt.subscribe.apply(Vt,[Hn].concat(typeof ci=="function"?[ci]:ci))}(Da,ho.API.events):pe[Hc]=ho.API[Hc]);var Bc=pe.getPageWidth=function(Vt){return(Ts[Vt=Vt||En].mediaBox.topRightX-Ts[Vt].mediaBox.bottomLeftX)/Ro},JA=pe.setPageWidth=function(Vt,_e){Ts[Vt].mediaBox.topRightX=_e*Ro+Ts[Vt].mediaBox.bottomLeftX},Cc=pe.getPageHeight=function(Vt){return(Ts[Vt=Vt||En].mediaBox.topRightY-Ts[Vt].mediaBox.bottomLeftY)/Ro},ud=pe.setPageHeight=function(Vt,_e){Ts[Vt].mediaBox.topRightY=_e*Ro+Ts[Vt].mediaBox.bottomLeftY};return pe.internal={pdfEscape:cu,getStyle:Ed,getFont:Uc,getFontSize:xo,getCharSpace:Wh,getTextColor:nf,getLineHeight:Nd,getLineHeightFactor:Id,getLineWidth:LA,write:Is,getHorizontalCoordinate:Mu,getVerticalCoordinate:Sh,getCoordinateString:sd,getVerticalCoordinateString:cA,collections:{},newObject:Bl,newAdditionalObject:eh,newObjectDeferred:eu,newObjectDeferredBegin:ku,getFilters:Cl,putStream:Du,events:Da,scaleFactor:Ro,pageSize:{getWidth:function(){return Bc(En)},setWidth:function(Vt){JA(En,Vt)},getHeight:function(){return Cc(En)},setHeight:function(Vt){ud(En,Vt)}},encryptionOptions:Re,encryption:du,getEncryptor:tf,output:Lu,getNumberOfPages:nd,pages:no,out:_n,f2:gr,f3:yn,getPageInfo:Kh,getPageInfoByObjId:ks,getCurrentPageInfo:Fd,getPDFVersion:Sn,Point:gA,Rectangle:Rc,Matrix:gs,hasHotfix:Fu},Object.defineProperty(pe.internal.pageSize,"width",{get:function(){return Bc(En)},set:function(Vt){JA(En,Vt)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.internal.pageSize,"height",{get:function(){return Cc(En)},set:function(Vt){ud(En,Vt)},enumerable:!0,configurable:!0}),Cd.call(pe,zr),qs="F1",$d(Ut,yt),Da.publish("initialized"),pe}Rr.prototype.lsbFirstWord=function(wt){return String.fromCharCode(wt>>0&255,wt>>8&255,wt>>16&255,wt>>24&255)},Rr.prototype.toHexString=function(wt){return wt.split("").map(function(gt){return("0"+(255>.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Rr.prototype.hexToBytes=function(wt){for(var gt=[],yt=0;yt<wt.length;yt+=2)gt.push(String.fromCharCode(parseInt(wt.substr(yt,2),16)));return gt.join("")},Rr.prototype.processOwnerPassword=function(wt,gt){return As(To(gt).substr(0,5),wt)},Rr.prototype.encryptor=function(wt,gt){var yt=To(this.encryptionKey+String.fromCharCode(255&wt,wt>>8&255,wt>>16&255,255>,gt>>8&255)).substr(0,10);return function(Ft){return As(yt,Ft)}},eo.prototype.equals=function(wt){var gt,yt="id,objectNumber,equals";if(!wt||(0,Kt.Z)(wt)!==(0,Kt.Z)(this))return!1;var Ft=0;for(gt in this)if(!(yt.indexOf(gt)>=0)){if(this.hasOwnProperty(gt)&&!wt.hasOwnProperty(gt)||this[gt]!==wt[gt])return!1;Ft++}for(gt in wt)wt.hasOwnProperty(gt)&&yt.indexOf(gt)<0&&Ft--;return Ft===0},ho.API={events:[]},ho.version="3.0.0";var Cs=ho.API,Wa=1,_l=function(wt){return wt.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ja=function(wt){return wt.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ns=function(wt){return wt.toFixed(2)},Nn=function(wt){return wt.toFixed(5)};Cs.__acroform__={};var ua=function(wt,gt){wt.prototype=Object.create(gt.prototype),wt.prototype.constructor=wt},Ac=function(wt){return wt*Wa},$l=function(wt){var gt=new ba,yt=fo.internal.getHeight(wt)||0,Ft=fo.internal.getWidth(wt)||0;return gt.BBox=[0,0,Number(ns(Ft)),Number(ns(yt))],gt},nA=Cs.__acroform__.setBit=function(wt,gt){if(wt=wt||0,gt=gt||0,isNaN(wt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return wt|=1<<gt},Va=Cs.__acroform__.clearBit=function(wt,gt){if(wt=wt||0,gt=gt||0,isNaN(wt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return wt&=~(1<<gt)},cc=Cs.__acroform__.getBit=function(wt,gt){if(isNaN(wt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return wt&1<<gt?1:0},Al=Cs.__acroform__.getBitForPdf=function(wt,gt){if(isNaN(wt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return cc(wt,gt-1)},fs=Cs.__acroform__.setBitForPdf=function(wt,gt){if(isNaN(wt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return nA(wt,gt-1)},Gs=Cs.__acroform__.clearBitForPdf=function(wt,gt){if(isNaN(wt)||isNaN(gt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Va(wt,gt-1)},iA=Cs.__acroform__.calculateCoordinates=function(wt,gt){var yt=gt.internal.getHorizontalCoordinate,Ft=gt.internal.getVerticalCoordinate,Ut=wt[0],Ot=wt[1],Xt=wt[2],Jt=wt[3],ne={};return ne.lowerLeft_X=yt(Ut)||0,ne.lowerLeft_Y=Ft(Ot+Jt)||0,ne.upperRight_X=yt(Ut+Xt)||0,ne.upperRight_Y=Ft(Ot)||0,[Number(ns(ne.lowerLeft_X)),Number(ns(ne.lowerLeft_Y)),Number(ns(ne.upperRight_X)),Number(ns(ne.upperRight_Y))]},Do=function(wt){if(wt.appearanceStreamContent)return wt.appearanceStreamContent;if(wt.V||wt.DV){var gt=[],yt=wt._V||wt.DV,Ft=Ps(wt,yt),Ut=wt.scope.internal.getFont(wt.fontName,wt.fontStyle).id;gt.push("/Tx BMC"),gt.push("q"),gt.push("BT"),gt.push(wt.scope.__private__.encodeColorString(wt.color)),gt.push("/"+Ut+" "+ns(Ft.fontSize)+" Tf"),gt.push("1 0 0 1 0 0 Tm"),gt.push(Ft.text),gt.push("ET"),gt.push("Q"),gt.push("EMC");var Ot=$l(wt);return Ot.scope=wt.scope,Ot.stream=gt.join(`
|
|
|
`),Ot}},Ps=function(wt,gt){var yt=wt.fontSize===0?wt.maxFontSize:wt.fontSize,Ft={text:"",fontSize:""},Ut=(gt=(gt=gt.substr(0,1)=="("?gt.substr(1):gt).substr(gt.length-1)==")"?gt.substr(0,gt.length-1):gt).split(" ");Ut=wt.multiline?Ut.map(function(yn){return yn.split(`
|
|
|
`)}):Ut.map(function(yn){return[yn]});var Ot=yt,Xt=fo.internal.getHeight(wt)||0;Xt=Xt<0?-Xt:Xt;var Jt=fo.internal.getWidth(wt)||0;Jt=Jt<0?-Jt:Jt;var ne=function(yn,Ln,wi){if(yn+1<Ut.length){var si=Ln+" "+Ut[yn+1][0];return es(si,wt,wi).width<=Jt-4}return!1};Ot++;t:for(;Ot>0;){gt="",Ot--;var Be,Re,He=es("3",wt,Ot).height,Ze=wt.multiline?Xt-Ot:(Xt-He)/2,pe=Ze+=2,jn=0,Sn=0,Rn=0;if(Ot<=0){gt=`(...) Tj
|
|
|
`,gt+="% Width of Text: "+es(gt,wt,Ot=12).width+", FieldWidth:"+Jt+`
|
|
|
`;break}for(var on="",On=0,mi=0;mi<Ut.length;mi++)if(Ut.hasOwnProperty(mi)){var Di=!1;if(Ut[mi].length!==1&&Rn!==Ut[mi].length-1){if((He+2)*(On+2)+2>Xt)continue t;on+=Ut[mi][Rn],Di=!0,Sn=mi,mi--}else{on=(on+=Ut[mi][Rn]+" ").substr(on.length-1)==" "?on.substr(0,on.length-1):on;var qi=parseInt(mi),Ir=ne(qi,on,Ot),Wi=mi>=Ut.length-1;if(Ir&&!Wi){on+=" ",Rn=0;continue}if(Ir||Wi){if(Wi)Sn=qi;else if(wt.multiline&&(He+2)*(On+2)+2>Xt)continue t}else{if(!wt.multiline||(He+2)*(On+2)+2>Xt)continue t;Sn=qi}}for(var ai="",Xi=jn;Xi<=Sn;Xi++){var gr=Ut[Xi];if(wt.multiline){if(Xi===Sn){ai+=gr[Rn]+" ",Rn=(Rn+1)%gr.length;continue}if(Xi===jn){ai+=gr[gr.length-1]+" ";continue}}ai+=gr[0]+" "}switch(ai=ai.substr(ai.length-1)==" "?ai.substr(0,ai.length-1):ai,Re=es(ai,wt,Ot).width,wt.textAlign){case"right":Be=Jt-Re-2;break;case"center":Be=(Jt-Re)/2;break;case"left":default:Be=2}gt+=ns(Be)+" "+ns(pe)+` Td
|
|
|
`,gt+="("+_l(ai)+`) Tj
|
|
|
`,gt+=-ns(Be)+` 0 Td
|
|
|
`,pe=-(Ot+2),Re=0,jn=Di?Sn:Sn+1,On++,on=""}break}return Ft.text=gt,Ft.fontSize=Ot,Ft},es=function(wt,gt,yt){var Ft=gt.scope.internal.getFont(gt.fontName,gt.fontStyle),Ut=gt.scope.getStringUnitWidth(wt,{font:Ft,fontSize:parseFloat(yt),charSpace:0})*parseFloat(yt);return{height:gt.scope.getStringUnitWidth("3",{font:Ft,fontSize:parseFloat(yt),charSpace:0})*parseFloat(yt)*1.5,width:Ut}},Sr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},cl=function(wt,gt){var yt={type:"reference",object:wt};gt.internal.getPageInfo(wt.page).pageContext.annotations.find(function(Ft){return Ft.type===yt.type&&Ft.object===yt.object})===void 0&>.internal.getPageInfo(wt.page).pageContext.annotations.push(yt)},dl=function(wt,gt){for(var yt in wt)if(wt.hasOwnProperty(yt)){var Ft=yt,Ut=wt[yt];gt.internal.newObjectDeferredBegin(Ut.objId,!0),(0,Kt.Z)(Ut)==="object"&&typeof Ut.putStream=="function"&&Ut.putStream(),delete wt[Ft]}},vu=function(wt,gt){if(gt.scope=wt,wt.internal!==void 0&&(wt.internal.acroformPlugin===void 0||wt.internal.acroformPlugin.isInitialized===!1)){if(Ml.FieldNum=0,wt.internal.acroformPlugin=JSON.parse(JSON.stringify(Sr)),wt.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Wa=wt.internal.scaleFactor,wt.internal.acroformPlugin.acroFormDictionaryRoot=new Ya,wt.internal.acroformPlugin.acroFormDictionaryRoot.scope=wt,wt.internal.acroformPlugin.acroFormDictionaryRoot._eventID=wt.internal.events.subscribe("postPutResources",function(){(function(yt){yt.internal.events.unsubscribe(yt.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete yt.internal.acroformPlugin.acroFormDictionaryRoot._eventID,yt.internal.acroformPlugin.printedOut=!0})(wt)}),wt.internal.events.subscribe("buildDocument",function(){(function(yt){yt.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ft=yt.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ut in Ft)if(Ft.hasOwnProperty(Ut)){var Ot=Ft[Ut];Ot.objId=void 0,Ot.hasAnnotation&&cl(Ot,yt)}})(wt)}),wt.internal.events.subscribe("putCatalog",function(){(function(yt){if(yt.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");yt.internal.write("/AcroForm "+yt.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(wt)}),wt.internal.events.subscribe("postPutPages",function(yt){(function(Ft,Ut){var Ot=!Ft;for(var Xt in Ft||(Ut.internal.newObjectDeferredBegin(Ut.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ut.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ft=Ft||Ut.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ft.hasOwnProperty(Xt)){var Jt=Ft[Xt],ne=[],Be=Jt.Rect;if(Jt.Rect&&(Jt.Rect=iA(Jt.Rect,Ut)),Ut.internal.newObjectDeferredBegin(Jt.objId,!0),Jt.DA=fo.createDefaultAppearanceStream(Jt),(0,Kt.Z)(Jt)==="object"&&typeof Jt.getKeyValueListForStream=="function"&&(ne=Jt.getKeyValueListForStream()),Jt.Rect=Be,Jt.hasAppearanceStream&&!Jt.appearanceStreamContent){var Re=Do(Jt);ne.push({key:"AP",value:"<</N "+Re+">>"}),Ut.internal.acroformPlugin.xForms.push(Re)}if(Jt.appearanceStreamContent){var He="";for(var Ze in Jt.appearanceStreamContent)if(Jt.appearanceStreamContent.hasOwnProperty(Ze)){var pe=Jt.appearanceStreamContent[Ze];if(He+="/"+Ze+" ",He+="<<",Object.keys(pe).length>=1||Array.isArray(pe)){for(var Xt in pe)if(pe.hasOwnProperty(Xt)){var jn=pe[Xt];typeof jn=="function"&&(jn=jn.call(Ut,Jt)),He+="/"+Xt+" "+jn+" ",Ut.internal.acroformPlugin.xForms.indexOf(jn)>=0||Ut.internal.acroformPlugin.xForms.push(jn)}}else typeof(jn=pe)=="function"&&(jn=jn.call(Ut,Jt)),He+="/"+Xt+" "+jn,Ut.internal.acroformPlugin.xForms.indexOf(jn)>=0||Ut.internal.acroformPlugin.xForms.push(jn);He+=">>"}ne.push({key:"AP",value:`<<
|
|
|
`+He+">>"})}Ut.internal.putStream({additionalKeyValues:ne,objectId:Jt.objId}),Ut.internal.out("endobj")}Ot&&dl(Ut.internal.acroformPlugin.xForms,Ut)})(yt,wt)}),wt.internal.acroformPlugin.isInitialized=!0}},gh=Cs.__acroform__.arrayToPdfArray=function(wt,gt,yt){var Ft=function(Xt){return Xt};if(Array.isArray(wt)){for(var Ut="[",Ot=0;Ot<wt.length;Ot++)switch(Ot!==0&&(Ut+=" "),(0,Kt.Z)(wt[Ot])){case"boolean":case"number":case"object":Ut+=wt[Ot].toString();break;case"string":wt[Ot].substr(0,1)!=="/"?(gt!==void 0&&yt&&(Ft=yt.internal.getEncryptor(gt)),Ut+="("+_l(Ft(wt[Ot].toString()))+")"):Ut+=wt[Ot].toString()}return Ut+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Mh=function(wt,gt,yt){var Ft=function(Ut){return Ut};return gt!==void 0&&yt&&(Ft=yt.internal.getEncryptor(gt)),(wt=wt||"").toString(),wt="("+_l(Ft(wt))+")"},$i=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(wt){this._objId=wt}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};$i.prototype.toString=function(){return this.objId+" 0 R"},$i.prototype.putStream=function(){var wt=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:wt,objectId:this.objId}),this.scope.internal.out("endobj")},$i.prototype.getKeyValueListForStream=function(){var wt=[],gt=Object.getOwnPropertyNames(this).filter(function(Ot){return Ot!="content"&&Ot!="appearanceStreamContent"&&Ot!="scope"&&Ot!="objId"&&Ot.substring(0,1)!="_"});for(var yt in gt)if(Object.getOwnPropertyDescriptor(this,gt[yt]).configurable===!1){var Ft=gt[yt],Ut=this[Ft];Ut&&(Array.isArray(Ut)?wt.push({key:Ft,value:gh(Ut,this.objId,this.scope)}):Ut instanceof $i?(Ut.scope=this.scope,wt.push({key:Ft,value:Ut.objId+" 0 R"})):typeof Ut!="function"&&wt.push({key:Ft,value:Ut}))}return wt};var ba=function(){$i.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 wt,gt=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return gt},set:function(yt){gt=yt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(yt){wt=yt.trim()},get:function(){return wt||null}})};ua(ba,$i);var Ya=function(){$i.call(this);var wt,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(wt){var yt=function(Ft){return Ft};return this.scope&&(yt=this.scope.internal.getEncryptor(this.objId)),"("+_l(yt(wt))+")"}},set:function(yt){wt=yt}})};ua(Ya,$i);var Ml=function wt(){$i.call(this);var gt=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return gt},set:function(on){if(isNaN(on))throw new Error('Invalid value "'+on+'" for attribute F supplied.');gt=on}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Al(gt,3)},set:function(on){on?this.F=fs(gt,3):this.F=Gs(gt,3)}});var yt=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return yt},set:function(on){if(isNaN(on))throw new Error('Invalid value "'+on+'" for attribute Ff supplied.');yt=on}});var Ft=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ft.length!==0)return Ft},set:function(on){Ft=on!==void 0?on:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ft||isNaN(Ft[0])?0:Ft[0]},set:function(on){Ft[0]=on}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ft||isNaN(Ft[1])?0:Ft[1]},set:function(on){Ft[1]=on}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ft||isNaN(Ft[2])?0:Ft[2]},set:function(on){Ft[2]=on}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ft||isNaN(Ft[3])?0:Ft[3]},set:function(on){Ft[3]=on}});var Ut="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ut},set:function(on){switch(on){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ut=on;break;default:throw new Error('Invalid value "'+on+'" for attribute FT supplied.')}}});var Ot=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Ot||Ot.length<1){if(this instanceof Iu)return;Ot="FieldObject"+wt.FieldNum++}var on=function(On){return On};return this.scope&&(on=this.scope.internal.getEncryptor(this.objId)),"("+_l(on(Ot))+")"},set:function(on){Ot=on.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Ot},set:function(on){Ot=on}});var Xt="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Xt},set:function(on){Xt=on}});var Jt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Jt},set:function(on){Jt=on}});var ne=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ne},set:function(on){ne=on}});var Be=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Be===void 0?50/Wa:Be},set:function(on){Be=on}});var Re="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Re},set:function(on){Re=on}});var He="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!He||this instanceof Iu||this instanceof Wl))return Mh(He,this.objId,this.scope)},set:function(on){on=on.toString(),He=on}});var Ze=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Ze)return this instanceof Ta?Ze:Mh(Ze,this.objId,this.scope)},set:function(on){on=on.toString(),Ze=this instanceof Ta?on:on.substr(0,1)==="("?ja(on.substr(1,on.length-2)):ja(on)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ta?ja(Ze.substr(1,Ze.length-1)):Ze},set:function(on){on=on.toString(),Ze=this instanceof Ta?"/"+on:on}});var pe=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(pe)return pe},set:function(on){this.V=on}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(pe)return this instanceof Ta?pe:Mh(pe,this.objId,this.scope)},set:function(on){on=on.toString(),pe=this instanceof Ta?on:on.substr(0,1)==="("?ja(on.substr(1,on.length-2)):ja(on)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ta?ja(pe.substr(1,pe.length-1)):pe},set:function(on){on=on.toString(),pe=this instanceof Ta?"/"+on:on}}),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 jn,Sn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Sn},set:function(on){on=!!on,Sn=on}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(jn)return jn},set:function(on){jn=on}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,1)},set:function(on){on?this.Ff=fs(this.Ff,1):this.Ff=Gs(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,2)},set:function(on){on?this.Ff=fs(this.Ff,2):this.Ff=Gs(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,3)},set:function(on){on?this.Ff=fs(this.Ff,3):this.Ff=Gs(this.Ff,3)}});var Rn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Rn!==null)return Rn},set:function(on){if([0,1,2].indexOf(on)===-1)throw new Error('Invalid value "'+on+'" for attribute Q supplied.');Rn=on}}),Object.defineProperty(this,"textAlign",{get:function(){var on;switch(Rn){case 0:default:on="left";break;case 1:on="center";break;case 2:on="right"}return on},configurable:!0,enumerable:!0,set:function(on){switch(on){case"right":case 2:Rn=2;break;case"center":case 1:Rn=1;break;case"left":case 0:default:Rn=0}}})};ua(Ml,$i);var $u=function(){Ml.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var wt=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return wt},set:function(yt){wt=yt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return wt},set:function(yt){wt=yt}});var gt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return gh(gt,this.objId,this.scope)},set:function(yt){var Ft,Ut;Ut=[],typeof(Ft=yt)=="string"&&(Ut=function(Ot,Xt,Jt){Jt||(Jt=1);for(var ne,Be=[];ne=Xt.exec(Ot);)Be.push(ne[Jt]);return Be}(Ft,/\((.*?)\)/g)),gt=Ut}}),this.getOptions=function(){return gt},this.setOptions=function(yt){gt=yt,this.sort&>.sort()},this.addOption=function(yt){yt=(yt=yt||"").toString(),gt.push(yt),this.sort&>.sort()},this.removeOption=function(yt,Ft){for(Ft=Ft||!1,yt=(yt=yt||"").toString();gt.indexOf(yt)!==-1&&(gt.splice(gt.indexOf(yt),1),Ft!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,18)},set:function(yt){yt?this.Ff=fs(this.Ff,18):this.Ff=Gs(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,19)},set:function(yt){this.combo===!0&&(yt?this.Ff=fs(this.Ff,19):this.Ff=Gs(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,20)},set:function(yt){yt?(this.Ff=fs(this.Ff,20),gt.sort()):this.Ff=Gs(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,22)},set:function(yt){yt?this.Ff=fs(this.Ff,22):this.Ff=Gs(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,23)},set:function(yt){yt?this.Ff=fs(this.Ff,23):this.Ff=Gs(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,27)},set:function(yt){yt?this.Ff=fs(this.Ff,27):this.Ff=Gs(this.Ff,27)}}),this.hasAppearanceStream=!1};ua($u,Ml);var Gl=function(){$u.call(this),this.fontName="helvetica",this.combo=!1};ua(Gl,$u);var bo=function(){Gl.call(this),this.combo=!0};ua(bo,Gl);var ga=function(){bo.call(this),this.edit=!0};ua(ga,bo);var Ta=function(){Ml.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,15)},set:function(yt){yt?this.Ff=fs(this.Ff,15):this.Ff=Gs(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,16)},set:function(yt){yt?this.Ff=fs(this.Ff,16):this.Ff=Gs(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,17)},set:function(yt){yt?this.Ff=fs(this.Ff,17):this.Ff=Gs(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,26)},set:function(yt){yt?this.Ff=fs(this.Ff,26):this.Ff=Gs(this.Ff,26)}});var wt,gt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var yt=function(Ot){return Ot};if(this.scope&&(yt=this.scope.internal.getEncryptor(this.objId)),Object.keys(gt).length!==0){var Ft,Ut=[];for(Ft in Ut.push("<<"),gt)Ut.push("/"+Ft+" ("+_l(yt(gt[Ft]))+")");return Ut.push(">>"),Ut.join(`
|
|
|
`)}},set:function(yt){(0,Kt.Z)(yt)==="object"&&(gt=yt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return gt.CA||""},set:function(yt){typeof yt=="string"&&(gt.CA=yt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return wt},set:function(yt){wt=yt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return wt.substr(1,wt.length-1)},set:function(yt){wt="/"+yt}})};ua(Ta,Ml);var ql=function(){Ta.call(this),this.pushButton=!0};ua(ql,Ta);var Kl=function(){Ta.call(this),this.radio=!0,this.pushButton=!1;var wt=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return wt},set:function(gt){wt=gt!==void 0?gt:[]}})};ua(Kl,Ta);var Iu=function(){var wt,gt;Ml.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return wt},set:function(Ut){wt=Ut}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return gt},set:function(Ut){gt=Ut}});var yt,Ft={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ut=function(Jt){return Jt};this.scope&&(Ut=this.scope.internal.getEncryptor(this.objId));var Ot,Xt=[];for(Ot in Xt.push("<<"),Ft)Xt.push("/"+Ot+" ("+_l(Ut(Ft[Ot]))+")");return Xt.push(">>"),Xt.join(`
|
|
|
`)},set:function(Ut){(0,Kt.Z)(Ut)==="object"&&(Ft=Ut)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ft.CA||""},set:function(Ut){typeof Ut=="string"&&(Ft.CA=Ut)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return yt},set:function(Ut){yt=Ut}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return yt.substr(1,yt.length-1)},set:function(Ut){yt="/"+Ut}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=fo.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ua(Iu,Ml),Kl.prototype.setAppearance=function(wt){if(!("createAppearanceStream"in wt)||!("getCA"in wt))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var gt in this.Kids)if(this.Kids.hasOwnProperty(gt)){var yt=this.Kids[gt];yt.appearanceStreamContent=wt.createAppearanceStream(yt.optionName),yt.caption=wt.getCA()}},Kl.prototype.createOption=function(wt){var gt=new Iu;return gt.Parent=this,gt.optionName=wt,this.Kids.push(gt),$c.call(this.scope,gt),gt};var iu=function(){Ta.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=fo.CheckBox.createAppearanceStream()};ua(iu,Ta);var Wl=function(){Ml.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=fs(this.Ff,13):this.Ff=Gs(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,21)},set:function(gt){gt?this.Ff=fs(this.Ff,21):this.Ff=Gs(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,23)},set:function(gt){gt?this.Ff=fs(this.Ff,23):this.Ff=Gs(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,24)},set:function(gt){gt?this.Ff=fs(this.Ff,24):this.Ff=Gs(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,25)},set:function(gt){gt?this.Ff=fs(this.Ff,25):this.Ff=Gs(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,26)},set:function(gt){gt?this.Ff=fs(this.Ff,26):this.Ff=Gs(this.Ff,26)}});var wt=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return wt},set:function(gt){wt=gt}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return wt},set:function(gt){Number.isInteger(gt)&&(wt=gt)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ua(Wl,Ml);var Nl=function(){Wl.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,14)},set:function(wt){wt?this.Ff=fs(this.Ff,14):this.Ff=Gs(this.Ff,14)}}),this.password=!0};ua(Nl,Wl);var fo={CheckBox:{createAppearanceStream:function(){return{N:{On:fo.CheckBox.YesNormal},D:{On:fo.CheckBox.YesPushDown,Off:fo.CheckBox.OffPushDown}}},YesPushDown:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=[],Ft=wt.scope.internal.getFont(wt.fontName,wt.fontStyle).id,Ut=wt.scope.__private__.encodeColorString(wt.color),Ot=Ps(wt,wt.caption);return yt.push("0.749023 g"),yt.push("0 0 "+ns(fo.internal.getWidth(wt))+" "+ns(fo.internal.getHeight(wt))+" re"),yt.push("f"),yt.push("BMC"),yt.push("q"),yt.push("0 0 1 rg"),yt.push("/"+Ft+" "+ns(Ot.fontSize)+" Tf "+Ut),yt.push("BT"),yt.push(Ot.text),yt.push("ET"),yt.push("Q"),yt.push("EMC"),gt.stream=yt.join(`
|
|
|
`),gt},YesNormal:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=wt.scope.internal.getFont(wt.fontName,wt.fontStyle).id,Ft=wt.scope.__private__.encodeColorString(wt.color),Ut=[],Ot=fo.internal.getHeight(wt),Xt=fo.internal.getWidth(wt),Jt=Ps(wt,wt.caption);return Ut.push("1 g"),Ut.push("0 0 "+ns(Xt)+" "+ns(Ot)+" re"),Ut.push("f"),Ut.push("q"),Ut.push("0 0 1 rg"),Ut.push("0 0 "+ns(Xt-1)+" "+ns(Ot-1)+" re"),Ut.push("W"),Ut.push("n"),Ut.push("0 g"),Ut.push("BT"),Ut.push("/"+yt+" "+ns(Jt.fontSize)+" Tf "+Ft),Ut.push(Jt.text),Ut.push("ET"),Ut.push("Q"),gt.stream=Ut.join(`
|
|
|
`),gt},OffPushDown:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=[];return yt.push("0.749023 g"),yt.push("0 0 "+ns(fo.internal.getWidth(wt))+" "+ns(fo.internal.getHeight(wt))+" re"),yt.push("f"),gt.stream=yt.join(`
|
|
|
`),gt}},RadioButton:{Circle:{createAppearanceStream:function(wt){var gt={D:{Off:fo.RadioButton.Circle.OffPushDown},N:{}};return gt.N[wt]=fo.RadioButton.Circle.YesNormal,gt.D[wt]=fo.RadioButton.Circle.YesPushDown,gt},getCA:function(){return"l"},YesNormal:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=[],Ft=fo.internal.getWidth(wt)<=fo.internal.getHeight(wt)?fo.internal.getWidth(wt)/4:fo.internal.getHeight(wt)/4;Ft=Number((.9*Ft).toFixed(5));var Ut=fo.internal.Bezier_C,Ot=Number((Ft*Ut).toFixed(5));return yt.push("q"),yt.push("1 0 0 1 "+Nn(fo.internal.getWidth(wt)/2)+" "+Nn(fo.internal.getHeight(wt)/2)+" cm"),yt.push(Ft+" 0 m"),yt.push(Ft+" "+Ot+" "+Ot+" "+Ft+" 0 "+Ft+" c"),yt.push("-"+Ot+" "+Ft+" -"+Ft+" "+Ot+" -"+Ft+" 0 c"),yt.push("-"+Ft+" -"+Ot+" -"+Ot+" -"+Ft+" 0 -"+Ft+" c"),yt.push(Ot+" -"+Ft+" "+Ft+" -"+Ot+" "+Ft+" 0 c"),yt.push("f"),yt.push("Q"),gt.stream=yt.join(`
|
|
|
`),gt},YesPushDown:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=[],Ft=fo.internal.getWidth(wt)<=fo.internal.getHeight(wt)?fo.internal.getWidth(wt)/4:fo.internal.getHeight(wt)/4;Ft=Number((.9*Ft).toFixed(5));var Ut=Number((2*Ft).toFixed(5)),Ot=Number((Ut*fo.internal.Bezier_C).toFixed(5)),Xt=Number((Ft*fo.internal.Bezier_C).toFixed(5));return yt.push("0.749023 g"),yt.push("q"),yt.push("1 0 0 1 "+Nn(fo.internal.getWidth(wt)/2)+" "+Nn(fo.internal.getHeight(wt)/2)+" cm"),yt.push(Ut+" 0 m"),yt.push(Ut+" "+Ot+" "+Ot+" "+Ut+" 0 "+Ut+" c"),yt.push("-"+Ot+" "+Ut+" -"+Ut+" "+Ot+" -"+Ut+" 0 c"),yt.push("-"+Ut+" -"+Ot+" -"+Ot+" -"+Ut+" 0 -"+Ut+" c"),yt.push(Ot+" -"+Ut+" "+Ut+" -"+Ot+" "+Ut+" 0 c"),yt.push("f"),yt.push("Q"),yt.push("0 g"),yt.push("q"),yt.push("1 0 0 1 "+Nn(fo.internal.getWidth(wt)/2)+" "+Nn(fo.internal.getHeight(wt)/2)+" cm"),yt.push(Ft+" 0 m"),yt.push(Ft+" "+Xt+" "+Xt+" "+Ft+" 0 "+Ft+" c"),yt.push("-"+Xt+" "+Ft+" -"+Ft+" "+Xt+" -"+Ft+" 0 c"),yt.push("-"+Ft+" -"+Xt+" -"+Xt+" -"+Ft+" 0 -"+Ft+" c"),yt.push(Xt+" -"+Ft+" "+Ft+" -"+Xt+" "+Ft+" 0 c"),yt.push("f"),yt.push("Q"),gt.stream=yt.join(`
|
|
|
`),gt},OffPushDown:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=[],Ft=fo.internal.getWidth(wt)<=fo.internal.getHeight(wt)?fo.internal.getWidth(wt)/4:fo.internal.getHeight(wt)/4;Ft=Number((.9*Ft).toFixed(5));var Ut=Number((2*Ft).toFixed(5)),Ot=Number((Ut*fo.internal.Bezier_C).toFixed(5));return yt.push("0.749023 g"),yt.push("q"),yt.push("1 0 0 1 "+Nn(fo.internal.getWidth(wt)/2)+" "+Nn(fo.internal.getHeight(wt)/2)+" cm"),yt.push(Ut+" 0 m"),yt.push(Ut+" "+Ot+" "+Ot+" "+Ut+" 0 "+Ut+" c"),yt.push("-"+Ot+" "+Ut+" -"+Ut+" "+Ot+" -"+Ut+" 0 c"),yt.push("-"+Ut+" -"+Ot+" -"+Ot+" -"+Ut+" 0 -"+Ut+" c"),yt.push(Ot+" -"+Ut+" "+Ut+" -"+Ot+" "+Ut+" 0 c"),yt.push("f"),yt.push("Q"),gt.stream=yt.join(`
|
|
|
`),gt}},Cross:{createAppearanceStream:function(wt){var gt={D:{Off:fo.RadioButton.Cross.OffPushDown},N:{}};return gt.N[wt]=fo.RadioButton.Cross.YesNormal,gt.D[wt]=fo.RadioButton.Cross.YesPushDown,gt},getCA:function(){return"8"},YesNormal:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=[],Ft=fo.internal.calculateCross(wt);return yt.push("q"),yt.push("1 1 "+ns(fo.internal.getWidth(wt)-2)+" "+ns(fo.internal.getHeight(wt)-2)+" re"),yt.push("W"),yt.push("n"),yt.push(ns(Ft.x1.x)+" "+ns(Ft.x1.y)+" m"),yt.push(ns(Ft.x2.x)+" "+ns(Ft.x2.y)+" l"),yt.push(ns(Ft.x4.x)+" "+ns(Ft.x4.y)+" m"),yt.push(ns(Ft.x3.x)+" "+ns(Ft.x3.y)+" l"),yt.push("s"),yt.push("Q"),gt.stream=yt.join(`
|
|
|
`),gt},YesPushDown:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=fo.internal.calculateCross(wt),Ft=[];return Ft.push("0.749023 g"),Ft.push("0 0 "+ns(fo.internal.getWidth(wt))+" "+ns(fo.internal.getHeight(wt))+" re"),Ft.push("f"),Ft.push("q"),Ft.push("1 1 "+ns(fo.internal.getWidth(wt)-2)+" "+ns(fo.internal.getHeight(wt)-2)+" re"),Ft.push("W"),Ft.push("n"),Ft.push(ns(yt.x1.x)+" "+ns(yt.x1.y)+" m"),Ft.push(ns(yt.x2.x)+" "+ns(yt.x2.y)+" l"),Ft.push(ns(yt.x4.x)+" "+ns(yt.x4.y)+" m"),Ft.push(ns(yt.x3.x)+" "+ns(yt.x3.y)+" l"),Ft.push("s"),Ft.push("Q"),gt.stream=Ft.join(`
|
|
|
`),gt},OffPushDown:function(wt){var gt=$l(wt);gt.scope=wt.scope;var yt=[];return yt.push("0.749023 g"),yt.push("0 0 "+ns(fo.internal.getWidth(wt))+" "+ns(fo.internal.getHeight(wt))+" re"),yt.push("f"),gt.stream=yt.join(`
|
|
|
`),gt}}},createDefaultAppearanceStream:function(wt){var gt=wt.scope.internal.getFont(wt.fontName,wt.fontStyle).id,yt=wt.scope.__private__.encodeColorString(wt.color);return"/"+gt+" "+wt.fontSize+" Tf "+yt}};fo.internal={Bezier_C:.551915024494,calculateCross:function(wt){var gt=fo.internal.getWidth(wt),yt=fo.internal.getHeight(wt),Ft=Math.min(gt,yt);return{x1:{x:(gt-Ft)/2,y:(yt-Ft)/2+Ft},x2:{x:(gt-Ft)/2+Ft,y:(yt-Ft)/2},x3:{x:(gt-Ft)/2,y:(yt-Ft)/2},x4:{x:(gt-Ft)/2+Ft,y:(yt-Ft)/2+Ft}}}},fo.internal.getWidth=function(wt){var gt=0;return(0,Kt.Z)(wt)==="object"&&(gt=Ac(wt.Rect[2])),gt},fo.internal.getHeight=function(wt){var gt=0;return(0,Kt.Z)(wt)==="object"&&(gt=Ac(wt.Rect[3])),gt};var $c=Cs.addField=function(wt){if(vu(this,wt),!(wt instanceof Ml))throw new Error("Invalid argument passed to jsPDF.addField.");var gt;return(gt=wt).scope.internal.acroformPlugin.printedOut&&(gt.scope.internal.acroformPlugin.printedOut=!1,gt.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),gt.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(gt),wt.page=wt.scope.internal.getCurrentPageInfo().pageNumber,this};Cs.AcroFormChoiceField=$u,Cs.AcroFormListBox=Gl,Cs.AcroFormComboBox=bo,Cs.AcroFormEditBox=ga,Cs.AcroFormButton=Ta,Cs.AcroFormPushButton=ql,Cs.AcroFormRadioButton=Kl,Cs.AcroFormCheckBox=iu,Cs.AcroFormTextField=Wl,Cs.AcroFormPasswordField=Nl,Cs.AcroFormAppearance=fo,Cs.AcroForm={ChoiceField:$u,ListBox:Gl,ComboBox:bo,EditBox:ga,Button:Ta,PushButton:ql,RadioButton:Kl,CheckBox:iu,TextField:Wl,PasswordField:Nl,Appearance:fo},ho.AcroForm={ChoiceField:$u,ListBox:Gl,ComboBox:bo,EditBox:ga,Button:Ta,PushButton:ql,RadioButton:Kl,CheckBox:iu,TextField:Wl,PasswordField:Nl,Appearance:fo};var tu=ho.AcroForm;function kc(wt){return wt.reduce(function(gt,yt,Ft){return gt[yt]=Ft,gt},{})}(function(wt){wt.__addimage__={};var gt="UNKNOWN",yt={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]]},Ft=wt.__addimage__.getImageFileTypeByImageData=function(yn,Ln){var wi,si,Ar,_i,dr,Mi=gt;if((Ln=Ln||gt)==="RGBA"||yn.data!==void 0&&yn.data instanceof Uint8ClampedArray&&"height"in yn&&"width"in yn)return"RGBA";if(Ir(yn))for(dr in yt)for(Ar=yt[dr],wi=0;wi<Ar.length;wi+=1){for(_i=!0,si=0;si<Ar[wi].length;si+=1)if(Ar[wi][si]!==void 0&&Ar[wi][si]!==yn[si]){_i=!1;break}if(_i===!0){Mi=dr;break}}else for(dr in yt)for(Ar=yt[dr],wi=0;wi<Ar.length;wi+=1){for(_i=!0,si=0;si<Ar[wi].length;si+=1)if(Ar[wi][si]!==void 0&&Ar[wi][si]!==yn.charCodeAt(si)){_i=!1;break}if(_i===!0){Mi=dr;break}}return Mi===gt&&Ln!==gt&&(Mi=Ln),Mi},Ut=function yn(Ln){for(var wi=this.internal.write,si=this.internal.putStream,Ar=(0,this.internal.getFilters)();Ar.indexOf("FlateEncode")!==-1;)Ar.splice(Ar.indexOf("FlateEncode"),1);Ln.objectId=this.internal.newObject();var _i=[];if(_i.push({key:"Type",value:"/XObject"}),_i.push({key:"Subtype",value:"/Image"}),_i.push({key:"Width",value:Ln.width}),_i.push({key:"Height",value:Ln.height}),Ln.colorSpace===Rn.INDEXED?_i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ln.palette.length/3-1)+" "+("sMask"in Ln&&Ln.sMask!==void 0?Ln.objectId+2:Ln.objectId+1)+" 0 R]"}):(_i.push({key:"ColorSpace",value:"/"+Ln.colorSpace}),Ln.colorSpace===Rn.DEVICE_CMYK&&_i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),_i.push({key:"BitsPerComponent",value:Ln.bitsPerComponent}),"decodeParameters"in Ln&&Ln.decodeParameters!==void 0&&_i.push({key:"DecodeParms",value:"<<"+Ln.decodeParameters+">>"}),"transparency"in Ln&&Array.isArray(Ln.transparency)){for(var dr="",Mi=0,tr=Ln.transparency.length;Mi<tr;Mi++)dr+=Ln.transparency[Mi]+" "+Ln.transparency[Mi]+" ";_i.push({key:"Mask",value:"["+dr+"]"})}Ln.sMask!==void 0&&_i.push({key:"SMask",value:Ln.objectId+1+" 0 R"});var fr=Ln.filter!==void 0?["/"+Ln.filter]:void 0;if(si({data:Ln.data,additionalKeyValues:_i,alreadyAppliedFilters:fr,objectId:Ln.objectId}),wi("endobj"),"sMask"in Ln&&Ln.sMask!==void 0){var so="/Predictor "+Ln.predictor+" /Colors 1 /BitsPerComponent "+Ln.bitsPerComponent+" /Columns "+Ln.width,tn={width:Ln.width,height:Ln.height,colorSpace:"DeviceGray",bitsPerComponent:Ln.bitsPerComponent,decodeParameters:so,data:Ln.sMask};"filter"in Ln&&(tn.filter=Ln.filter),yn.call(this,tn)}if(Ln.colorSpace===Rn.INDEXED){var En=this.internal.newObject();si({data:ai(new Uint8Array(Ln.palette)),objectId:En}),wi("endobj")}},Ot=function(){var yn=this.internal.collections.addImage_images;for(var Ln in yn)Ut.call(this,yn[Ln])},Xt=function(){var yn,Ln=this.internal.collections.addImage_images,wi=this.internal.write;for(var si in Ln)wi("/I"+(yn=Ln[si]).index,yn.objectId,"0","R")},Jt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Ot),this.internal.events.subscribe("putXobjectDict",Xt))},ne=function(){var yn=this.internal.collections.addImage_images;return Jt.call(this),yn},Be=function(){return Object.keys(this.internal.collections.addImage_images).length},Re=function(yn){return typeof wt["process"+yn.toUpperCase()]=="function"},He=function(yn){return(0,Kt.Z)(yn)==="object"&&yn.nodeType===1},Ze=function(yn,Ln){if(yn.nodeName==="IMG"&&yn.hasAttribute("src")){var wi=""+yn.getAttribute("src");if(wi.indexOf("data:image/")===0)return qo(unescape(wi).split("base64,").pop());var si=wt.loadFile(wi,!0);if(si!==void 0)return si}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 Ar;switch(Ln){case"PNG":Ar="image/png";break;case"WEBP":Ar="image/webp";break;case"JPEG":case"JPG":default:Ar="image/jpeg"}return qo(yn.toDataURL(Ar,1).split("base64,").pop())}},pe=function(yn){var Ln=this.internal.collections.addImage_images;if(Ln){for(var wi in Ln)if(yn===Ln[wi].alias)return Ln[wi]}},jn=function(yn,Ln,wi){return yn||Ln||(yn=-96,Ln=-96),yn<0&&(yn=-1*wi.width*72/yn/this.internal.scaleFactor),Ln<0&&(Ln=-1*wi.height*72/Ln/this.internal.scaleFactor),yn===0&&(yn=Ln*wi.width/wi.height),Ln===0&&(Ln=yn*wi.height/wi.width),[yn,Ln]},Sn=function(yn,Ln,wi,si,Ar,_i){var dr=jn.call(this,wi,si,Ar),Mi=this.internal.getCoordinateString,tr=this.internal.getVerticalCoordinateString,fr=ne.call(this);if(wi=dr[0],si=dr[1],fr[Ar.index]=Ar,_i){_i*=Math.PI/180;var so=Math.cos(_i),tn=Math.sin(_i),En=function(fi){return fi.toFixed(4)},$n=[En(so),En(tn),En(-1*tn),En(so),0,0,"cm"]}this.internal.write("q"),_i?(this.internal.write([1,"0","0",1,Mi(yn),tr(Ln+si),"cm"].join(" ")),this.internal.write($n.join(" ")),this.internal.write([Mi(wi),"0","0",Mi(si),"0","0","cm"].join(" "))):this.internal.write([Mi(wi),"0","0",Mi(si),Mi(yn),tr(Ln+si),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ar.index+" Do"),this.internal.write("Q")},Rn=wt.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"};wt.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 on=wt.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},On=wt.__addimage__.sHashCode=function(yn){var Ln,wi,si=0;if(typeof yn=="string")for(wi=yn.length,Ln=0;Ln<wi;Ln++)si=(si<<5)-si+yn.charCodeAt(Ln),si|=0;else if(Ir(yn))for(wi=yn.byteLength/2,Ln=0;Ln<wi;Ln++)si=(si<<5)-si+yn[Ln],si|=0;return si},mi=wt.__addimage__.validateStringAsBase64=function(yn){(yn=yn||"").toString().trim();var Ln=!0;return yn.length===0&&(Ln=!1),yn.length%4!=0&&(Ln=!1),/^[A-Za-z0-9+/]+$/.test(yn.substr(0,yn.length-2))===!1&&(Ln=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(yn.substr(-2))===!1&&(Ln=!1),Ln},Di=wt.__addimage__.extractImageFromDataUrl=function(yn){var Ln=(yn=yn||"").split("base64,"),wi=null;if(Ln.length===2){var si=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Ln[0]);Array.isArray(si)&&(wi={mimeType:si[1],charset:si[2],data:Ln[1]})}return wi},qi=wt.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};wt.__addimage__.isArrayBuffer=function(yn){return qi()&&yn instanceof ArrayBuffer};var Ir=wt.__addimage__.isArrayBufferView=function(yn){return qi()&&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)},Wi=wt.__addimage__.binaryStringToUint8Array=function(yn){for(var Ln=yn.length,wi=new Uint8Array(Ln),si=0;si<Ln;si++)wi[si]=yn.charCodeAt(si);return wi},ai=wt.__addimage__.arrayBufferToBinaryString=function(yn){for(var Ln="",wi=Ir(yn)?yn:new Uint8Array(yn),si=0;si<wi.length;si+=8192)Ln+=String.fromCharCode.apply(null,wi.subarray(si,si+8192));return Ln};wt.addImage=function(){var yn,Ln,wi,si,Ar,_i,dr,Mi,tr;if(typeof arguments[1]=="number"?(Ln=gt,wi=arguments[1],si=arguments[2],Ar=arguments[3],_i=arguments[4],dr=arguments[5],Mi=arguments[6],tr=arguments[7]):(Ln=arguments[1],wi=arguments[2],si=arguments[3],Ar=arguments[4],_i=arguments[5],dr=arguments[6],Mi=arguments[7],tr=arguments[8]),(0,Kt.Z)(yn=arguments[0])==="object"&&!He(yn)&&"imageData"in yn){var fr=yn;yn=fr.imageData,Ln=fr.format||Ln||gt,wi=fr.x||wi||0,si=fr.y||si||0,Ar=fr.w||fr.width||Ar,_i=fr.h||fr.height||_i,dr=fr.alias||dr,Mi=fr.compression||Mi,tr=fr.rotation||fr.angle||tr}var so=this.internal.getFilters();if(Mi===void 0&&so.indexOf("FlateEncode")!==-1&&(Mi="SLOW"),isNaN(wi)||isNaN(si))throw new Error("Invalid coordinates passed to jsPDF.addImage");Jt.call(this);var tn=Xi.call(this,yn,Ln,dr,Mi);return Sn.call(this,wi,si,Ar,_i,tn,tr),this};var Xi=function(yn,Ln,wi,si){var Ar,_i,dr;if(typeof yn=="string"&&Ft(yn)===gt){yn=unescape(yn);var Mi=gr(yn,!1);(Mi!==""||(Mi=wt.loadFile(yn,!0))!==void 0)&&(yn=Mi)}if(He(yn)&&(yn=Ze(yn,Ln)),Ln=Ft(yn,Ln),!Re(Ln))throw new Error("addImage does not support files of type '"+Ln+"', please ensure that a plugin for '"+Ln+"' support is added.");if(((dr=wi)==null||dr.length===0)&&(wi=function(tr){return typeof tr=="string"||Ir(tr)?On(tr):Ir(tr.data)?On(tr.data):null}(yn)),(Ar=pe.call(this,wi))||(qi()&&(yn instanceof Uint8Array||Ln==="RGBA"||(_i=yn,yn=Wi(yn))),Ar=this["process"+Ln.toUpperCase()](yn,Be.call(this),wi,function(tr){return tr&&typeof tr=="string"&&(tr=tr.toUpperCase()),tr in wt.image_compression?tr:on.NONE}(si),_i)),!Ar)throw new Error("An unknown error occurred whilst processing the image.");return Ar},gr=wt.__addimage__.convertBase64ToBinaryString=function(yn,Ln){var wi;Ln=typeof Ln!="boolean"||Ln;var si,Ar="";if(typeof yn=="string"){si=(wi=Di(yn))!==null?wi.data:yn;try{Ar=qo(si)}catch(_i){if(Ln)throw mi(si)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+_i.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ar};wt.getImageProperties=function(yn){var Ln,wi,si="";if(He(yn)&&(yn=Ze(yn)),typeof yn=="string"&&Ft(yn)===gt&&((si=gr(yn,!1))===""&&(si=wt.loadFile(yn)||""),yn=si),wi=Ft(yn),!Re(wi))throw new Error("addImage does not support files of type '"+wi+"', please ensure that a plugin for '"+wi+"' support is added.");if(!qi()||yn instanceof Uint8Array||(yn=Wi(yn)),!(Ln=this["process"+wi.toUpperCase()](yn)))throw new Error("An unknown error occurred whilst processing the image");return Ln.fileType=wi,Ln}})(ho.API),function(wt){var gt=function(yt){if(yt!==void 0&&yt!="")return!0};ho.API.events.push(["addPage",function(yt){this.internal.getPageInfo(yt.pageNumber).pageContext.annotations=[]}]),wt.events.push(["putPage",function(yt){for(var Ft,Ut,Ot,Xt=this.internal.getCoordinateString,Jt=this.internal.getVerticalCoordinateString,ne=this.internal.getPageInfoByObjId(yt.objId),Be=yt.pageContext.annotations,Re=!1,He=0;He<Be.length&&!Re;He++)switch((Ft=Be[He]).type){case"link":(gt(Ft.options.url)||gt(Ft.options.pageNumber))&&(Re=!0);break;case"reference":case"text":case"freetext":Re=!0}if(Re!=0){this.internal.write("/Annots [");for(var Ze=0;Ze<Be.length;Ze++){Ft=Be[Ze];var pe=this.internal.pdfEscape,jn=this.internal.getEncryptor(yt.objId);switch(Ft.type){case"reference":this.internal.write(" "+Ft.object.objId+" 0 R ");break;case"text":var Sn=this.internal.newAdditionalObject(),Rn=this.internal.newAdditionalObject(),on=this.internal.getEncryptor(Sn.objId),On=Ft.title||"Note";Ot="<</Type /Annot /Subtype /Text "+(Ut="/Rect ["+Xt(Ft.bounds.x)+" "+Jt(Ft.bounds.y+Ft.bounds.h)+" "+Xt(Ft.bounds.x+Ft.bounds.w)+" "+Jt(Ft.bounds.y)+"] ")+"/Contents ("+pe(on(Ft.contents))+")",Ot+=" /Popup "+Rn.objId+" 0 R",Ot+=" /P "+ne.objId+" 0 R",Ot+=" /T ("+pe(on(On))+") >>",Sn.content=Ot;var mi=Sn.objId+" 0 R";Ot="<</Type /Annot /Subtype /Popup "+(Ut="/Rect ["+Xt(Ft.bounds.x+30)+" "+Jt(Ft.bounds.y+Ft.bounds.h)+" "+Xt(Ft.bounds.x+Ft.bounds.w+30)+" "+Jt(Ft.bounds.y)+"] ")+" /Parent "+mi,Ft.open&&(Ot+=" /Open true"),Ot+=" >>",Rn.content=Ot,this.internal.write(Sn.objId,"0 R",Rn.objId,"0 R");break;case"freetext":Ut="/Rect ["+Xt(Ft.bounds.x)+" "+Jt(Ft.bounds.y)+" "+Xt(Ft.bounds.x+Ft.bounds.w)+" "+Jt(Ft.bounds.y+Ft.bounds.h)+"] ";var Di=Ft.color||"#000000";Ot="<</Type /Annot /Subtype /FreeText "+Ut+"/Contents ("+pe(jn(Ft.contents))+")",Ot+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Di+")",Ot+=" /Border [0 0 0]",Ot+=" >>",this.internal.write(Ot);break;case"link":if(Ft.options.name){var qi=this.annotations._nameMap[Ft.options.name];Ft.options.pageNumber=qi.page,Ft.options.top=qi.y}else Ft.options.top||(Ft.options.top=0);if(Ut="/Rect ["+Ft.finalBounds.x+" "+Ft.finalBounds.y+" "+Ft.finalBounds.w+" "+Ft.finalBounds.h+"] ",Ot="",Ft.options.url)Ot="<</Type /Annot /Subtype /Link "+Ut+"/Border [0 0 0] /A <</S /URI /URI ("+pe(jn(Ft.options.url))+") >>";else if(Ft.options.pageNumber)switch(Ot="<</Type /Annot /Subtype /Link "+Ut+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ft.options.pageNumber).objId+" 0 R",Ft.options.magFactor=Ft.options.magFactor||"XYZ",Ft.options.magFactor){case"Fit":Ot+=" /Fit]";break;case"FitH":Ot+=" /FitH "+Ft.options.top+"]";break;case"FitV":Ft.options.left=Ft.options.left||0,Ot+=" /FitV "+Ft.options.left+"]";break;case"XYZ":default:var Ir=Jt(Ft.options.top);Ft.options.left=Ft.options.left||0,Ft.options.zoom===void 0&&(Ft.options.zoom=0),Ot+=" /XYZ "+Ft.options.left+" "+Ir+" "+Ft.options.zoom+"]"}Ot!=""&&(Ot+=" >>",this.internal.write(Ot))}}this.internal.write("]")}}]),wt.createAnnotation=function(yt){var Ft=this.internal.getCurrentPageInfo();switch(yt.type){case"link":this.link(yt.bounds.x,yt.bounds.y,yt.bounds.w,yt.bounds.h,yt);break;case"text":case"freetext":Ft.pageContext.annotations.push(yt)}},wt.link=function(yt,Ft,Ut,Ot,Xt){var Jt=this.internal.getCurrentPageInfo(),ne=this.internal.getCoordinateString,Be=this.internal.getVerticalCoordinateString;Jt.pageContext.annotations.push({finalBounds:{x:ne(yt),y:Be(Ft),w:ne(yt+Ut),h:Be(Ft+Ot)},options:Xt,type:"link"})},wt.textWithLink=function(yt,Ft,Ut,Ot){var Xt,Jt,ne=this.getTextWidth(yt),Be=this.internal.getLineHeight()/this.internal.scaleFactor;if(Ot.maxWidth!==void 0){Jt=Ot.maxWidth;var Re=this.splitTextToSize(yt,Jt).length;Xt=Math.ceil(Be*Re)}else Jt=ne,Xt=Be;return this.text(yt,Ft,Ut,Ot),Ut+=.2*Be,Ot.align==="center"&&(Ft-=ne/2),Ot.align==="right"&&(Ft-=ne),this.link(Ft,Ut-Be,Jt,Xt,Ot),ne},wt.getTextWidth=function(yt){var Ft=this.internal.getFontSize();return this.getStringUnitWidth(yt)*Ft/this.internal.scaleFactor}}(ho.API),function(wt){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]},yt={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}},Ft={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ut=[1570,1571,1573,1575];wt.__arabicParser__={};var Ot=wt.__arabicParser__.isInArabicSubstitutionA=function(Sn){return gt[Sn.charCodeAt(0)]!==void 0},Xt=wt.__arabicParser__.isArabicLetter=function(Sn){return typeof Sn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Sn)},Jt=wt.__arabicParser__.isArabicEndLetter=function(Sn){return Xt(Sn)&&Ot(Sn)&>[Sn.charCodeAt(0)].length<=2},ne=wt.__arabicParser__.isArabicAlfLetter=function(Sn){return Xt(Sn)&&Ut.indexOf(Sn.charCodeAt(0))>=0};wt.__arabicParser__.arabicLetterHasIsolatedForm=function(Sn){return Xt(Sn)&&Ot(Sn)&>[Sn.charCodeAt(0)].length>=1};var Be=wt.__arabicParser__.arabicLetterHasFinalForm=function(Sn){return Xt(Sn)&&Ot(Sn)&>[Sn.charCodeAt(0)].length>=2};wt.__arabicParser__.arabicLetterHasInitialForm=function(Sn){return Xt(Sn)&&Ot(Sn)&>[Sn.charCodeAt(0)].length>=3};var Re=wt.__arabicParser__.arabicLetterHasMedialForm=function(Sn){return Xt(Sn)&&Ot(Sn)&>[Sn.charCodeAt(0)].length==4},He=wt.__arabicParser__.resolveLigatures=function(Sn){var Rn=0,on=yt,On="",mi=0;for(Rn=0;Rn<Sn.length;Rn+=1)on[Sn.charCodeAt(Rn)]!==void 0?(mi++,typeof(on=on[Sn.charCodeAt(Rn)])=="number"&&(On+=String.fromCharCode(on),on=yt,mi=0),Rn===Sn.length-1&&(on=yt,On+=Sn.charAt(Rn-(mi-1)),Rn-=mi-1,mi=0)):(on=yt,On+=Sn.charAt(Rn-mi),Rn-=mi,mi=0);return On};wt.__arabicParser__.isArabicDiacritic=function(Sn){return Sn!==void 0&&Ft[Sn.charCodeAt(0)]!==void 0};var Ze=wt.__arabicParser__.getCorrectForm=function(Sn,Rn,on){return Xt(Sn)?Ot(Sn)===!1?-1:!Be(Sn)||!Xt(Rn)&&!Xt(on)||!Xt(on)&&Jt(Rn)||Jt(Sn)&&!Xt(Rn)||Jt(Sn)&&ne(Rn)||Jt(Sn)&&Jt(Rn)?0:Re(Sn)&&Xt(Rn)&&!Jt(Rn)&&Xt(on)&&Be(on)?3:Jt(Sn)||!Xt(on)?1:2:-1},pe=function(Sn){var Rn=0,on=0,On=0,mi="",Di="",qi="",Ir=(Sn=Sn||"").split("\\s+"),Wi=[];for(Rn=0;Rn<Ir.length;Rn+=1){for(Wi.push(""),on=0;on<Ir[Rn].length;on+=1)mi=Ir[Rn][on],Di=Ir[Rn][on-1],qi=Ir[Rn][on+1],Xt(mi)?(On=Ze(mi,Di,qi),Wi[Rn]+=On!==-1?String.fromCharCode(gt[mi.charCodeAt(0)][On]):mi):Wi[Rn]+=mi;Wi[Rn]=He(Wi[Rn])}return Wi.join(" ")},jn=wt.__arabicParser__.processArabic=wt.processArabic=function(){var Sn,Rn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,on=[];if(Array.isArray(Rn)){var On=0;for(on=[],On=0;On<Rn.length;On+=1)Array.isArray(Rn[On])?on.push([pe(Rn[On][0]),Rn[On][1],Rn[On][2]]):on.push([pe(Rn[On])]);Sn=on}else Sn=pe(Rn);return typeof arguments[0]=="string"?Sn:(arguments[0].text=Sn,arguments[0])};wt.events.push(["preProcessText",jn])}(ho.API),ho.API.autoPrint=function(wt){var gt;switch((wt=wt||{}).variant=wt.variant||"non-conform",wt.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(wt){var gt=function(){var yt=void 0;Object.defineProperty(this,"pdf",{get:function(){return yt},set:function(Jt){yt=Jt}});var Ft=150;Object.defineProperty(this,"width",{get:function(){return Ft},set:function(Jt){Ft=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?150:Jt,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ft+1)}});var Ut=300;Object.defineProperty(this,"height",{get:function(){return Ut},set:function(Jt){Ut=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?300:Jt,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ut+1)}});var Ot=[];Object.defineProperty(this,"childNodes",{get:function(){return Ot},set:function(Jt){Ot=Jt}});var Xt={};Object.defineProperty(this,"style",{get:function(){return Xt},set:function(Jt){Xt=Jt}}),Object.defineProperty(this,"parentNode",{})};gt.prototype.getContext=function(yt,Ft){var Ut;if((yt=yt||"2d")!=="2d")return null;for(Ut in Ft)this.pdf.context2d.hasOwnProperty(Ut)&&(this.pdf.context2d[Ut]=Ft[Ut]);return this.pdf.context2d._canvas=this,this.pdf.context2d},gt.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},wt.events.push(["initialized",function(){this.canvas=new gt,this.canvas.pdf=this}])}(ho.API),function(wt){var gt={left:0,top:0,bottom:0,right:0},yt=!1,Ft=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(),Ut.call(this))},Ut=function(){this.internal.__cell__.lastCell=new Ot,this.internal.__cell__.pages=1},Ot=function(){var ne=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ne},set:function(Sn){ne=Sn}});var Be=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Be},set:function(Sn){Be=Sn}});var Re=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Re},set:function(Sn){Re=Sn}});var He=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return He},set:function(Sn){He=Sn}});var Ze=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Ze},set:function(Sn){Ze=Sn}});var pe=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return pe},set:function(Sn){pe=Sn}});var jn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return jn},set:function(Sn){jn=Sn}}),this};Ot.prototype.clone=function(){return new Ot(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Ot.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},wt.setHeaderFunction=function(ne){return Ft.call(this),this.internal.__cell__.headerFunction=typeof ne=="function"?ne:void 0,this},wt.getTextDimensions=function(ne,Be){Ft.call(this);var Re=(Be=Be||{}).fontSize||this.getFontSize(),He=Be.font||this.getFont(),Ze=Be.scaleFactor||this.internal.scaleFactor,pe=0,jn=0,Sn=0,Rn=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 on=Be.maxWidth;on>0?typeof ne=="string"?ne=this.splitTextToSize(ne,on):Object.prototype.toString.call(ne)==="[object Array]"&&(ne=ne.reduce(function(mi,Di){return mi.concat(Rn.splitTextToSize(Di,on))},[])):ne=Array.isArray(ne)?ne:[ne];for(var On=0;On<ne.length;On++)pe<(Sn=this.getStringUnitWidth(ne[On],{font:He})*Re)&&(pe=Sn);return pe!==0&&(jn=ne.length),{w:pe/=Ze,h:Math.max((jn*Re*this.getLineHeightFactor()-Re*(this.getLineHeightFactor()-1))/Ze,0)}},wt.cellAddPage=function(){Ft.call(this),this.addPage();var ne=this.internal.__cell__.margins||gt;return this.internal.__cell__.lastCell=new Ot(ne.left,ne.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Xt=wt.cell=function(){var ne;ne=arguments[0]instanceof Ot?arguments[0]:new Ot(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ft.call(this);var Be=this.internal.__cell__.lastCell,Re=this.internal.__cell__.padding,He=this.internal.__cell__.margins||gt,Ze=this.internal.__cell__.tableHeaderRow,pe=this.internal.__cell__.printHeaders;return Be.lineNumber!==void 0&&(Be.lineNumber===ne.lineNumber?(ne.x=(Be.x||0)+(Be.width||0),ne.y=Be.y||0):Be.y+Be.height+ne.height+He.bottom>this.getPageHeight()?(this.cellAddPage(),ne.y=He.top,pe&&Ze&&(this.printHeaderRow(ne.lineNumber,!0),ne.y+=Ze[0].height)):ne.y=Be.y+Be.height||ne.y),ne.text[0]!==void 0&&(this.rect(ne.x,ne.y,ne.width,ne.height,yt===!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};wt.table=function(ne,Be,Re,He,Ze){if(Ft.call(this),!Re)throw new Error("No data for PDF table.");var pe,jn,Sn,Rn,on=[],On=[],mi=[],Di={},qi={},Ir=[],Wi=[],ai=(Ze=Ze||{}).autoSize||!1,Xi=Ze.printHeaders!==!1,gr=Ze.css&&Ze.css["font-size"]!==void 0?16*Ze.css["font-size"]:Ze.fontSize||12,yn=Ze.margins||Object.assign({width:this.getPageWidth()},gt),Ln=typeof Ze.padding=="number"?Ze.padding:3,wi=Ze.headerBackgroundColor||"#c8c8c8",si=Ze.headerTextColor||"#000";if(Ut.call(this),this.internal.__cell__.printHeaders=Xi,this.internal.__cell__.margins=yn,this.internal.__cell__.table_font_size=gr,this.internal.__cell__.padding=Ln,this.internal.__cell__.headerBackgroundColor=wi,this.internal.__cell__.headerTextColor=si,this.setFontSize(gr),He==null)On=on=Object.keys(Re[0]),mi=on.map(function(){return"left"});else if(Array.isArray(He)&&(0,Kt.Z)(He[0])==="object")for(on=He.map(function(fr){return fr.name}),On=He.map(function(fr){return fr.prompt||fr.name||""}),mi=He.map(function(fr){return fr.align||"left"}),pe=0;pe<He.length;pe+=1)qi[He[pe].name]=He[pe].width*(19.049976/25.4);else Array.isArray(He)&&typeof He[0]=="string"&&(On=on=He,mi=on.map(function(){return"left"}));if(ai||Array.isArray(He)&&typeof He[0]=="string")for(pe=0;pe<on.length;pe+=1){for(Di[Rn=on[pe]]=Re.map(function(fr){return fr[Rn]}),this.setFont(void 0,"bold"),Ir.push(this.getTextDimensions(On[pe],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),jn=Di[Rn],this.setFont(void 0,"normal"),Sn=0;Sn<jn.length;Sn+=1)Ir.push(this.getTextDimensions(jn[Sn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);qi[Rn]=Math.max.apply(null,Ir)+Ln+Ln,Ir=[]}if(Xi){var Ar={};for(pe=0;pe<on.length;pe+=1)Ar[on[pe]]={},Ar[on[pe]].text=On[pe],Ar[on[pe]].align=mi[pe];var _i=Jt.call(this,Ar,qi);Wi=on.map(function(fr){return new Ot(ne,Be,qi[fr],_i,Ar[fr].text,void 0,Ar[fr].align)}),this.setTableHeaderRow(Wi),this.printHeaderRow(1,!1)}var dr=He.reduce(function(fr,so){return fr[so.name]=so.align,fr},{});for(pe=0;pe<Re.length;pe+=1){"rowStart"in Ze&&Ze.rowStart instanceof Function&&Ze.rowStart({row:pe,data:Re[pe]},this);var Mi=Jt.call(this,Re[pe],qi);for(Sn=0;Sn<on.length;Sn+=1){var tr=Re[pe][on[Sn]];"cellStart"in Ze&&Ze.cellStart instanceof Function&&Ze.cellStart({row:pe,col:Sn,data:tr},this),Xt.call(this,new Ot(ne,Be,qi[on[Sn]],Mi,tr,pe+2,dr[on[Sn]]))}}return this.internal.__cell__.table_x=ne,this.internal.__cell__.table_y=Be,this};var Jt=function(ne,Be){var Re=this.internal.__cell__.padding,He=this.internal.__cell__.table_font_size,Ze=this.internal.scaleFactor;return Object.keys(ne).map(function(pe){var jn=ne[pe];return this.splitTextToSize(jn.hasOwnProperty("text")?jn.text:jn,Be[pe]-Re-Re)},this).map(function(pe){return this.getLineHeightFactor()*pe.length*He/Ze+Re+Re},this).reduce(function(pe,jn){return Math.max(pe,jn)},0)};wt.setTableHeaderRow=function(ne){Ft.call(this),this.internal.__cell__.tableHeaderRow=ne},wt.printHeaderRow=function(ne,Be){if(Ft.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Re;if(yt=!0,typeof this.internal.__cell__.headerFunction=="function"){var He=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Ot(He[0],He[1],He[2],He[3],void 0,-1)}this.setFont(void 0,"bold");for(var Ze=[],pe=0;pe<this.internal.__cell__.tableHeaderRow.length;pe+=1){Re=this.internal.__cell__.tableHeaderRow[pe].clone(),Be&&(Re.y=this.internal.__cell__.margins.top||0,Ze.push(Re)),Re.lineNumber=ne;var jn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Xt.call(this,Re),this.setTextColor(jn)}Ze.length>0&&this.setTableHeaderRow(Ze),this.setFont(void 0,"normal"),yt=!1}}(ho.API);var ph={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},rA=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Sa=kc(rA),qu=[100,200,300,400,500,600,700,800,900],qc=kc(qu);function zA(wt){var gt=wt.family.replace(/"|'/g,"").toLowerCase(),yt=function(Ot){return ph[Ot=Ot||"normal"]?Ot:"normal"}(wt.style),Ft=function(Ot){if(!Ot)return 400;if(typeof Ot=="number")return Ot>=100&&Ot<=900&&Ot%100==0?Ot:400;if(/^\d00$/.test(Ot))return parseInt(Ot);switch(Ot){case"bold":return 700;case"normal":default:return 400}}(wt.weight),Ut=function(Ot){return typeof Sa[Ot=Ot||"normal"]=="number"?Ot:"normal"}(wt.stretch);return{family:gt,style:yt,weight:Ft,stretch:Ut,src:wt.src||[],ref:wt.ref||{name:gt,style:[Ut,yt,Ft].join(" ")}}}function dc(wt,gt,yt,Ft){var Ut;for(Ut=yt;Ut>=0&&Ut<gt.length;Ut+=Ft)if(wt[gt[Ut]])return wt[gt[Ut]];for(Ut=yt;Ut>=0&&Ut<gt.length;Ut-=Ft)if(wt[gt[Ut]])return wt[gt[Ut]]}var ss={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ks={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ru(wt){return[wt.stretch,wt.style,wt.weight,wt.family].join(" ")}function Za(wt,gt,yt){for(var Ft=(yt=yt||{}).defaultFontFamily||"times",Ut=Object.assign({},ss,yt.genericFontFamilies||{}),Ot=null,Xt=null,Jt=0;Jt<gt.length;++Jt)if(Ut[(Ot=zA(gt[Jt])).family]&&(Ot.family=Ut[Ot.family]),wt.hasOwnProperty(Ot.family)){Xt=wt[Ot.family];break}if(!(Xt=Xt||wt[Ft]))throw new Error("Could not find a font-family for the rule '"+ru(Ot)+"' and default family '"+Ft+"'.");if(Xt=function(ne,Be){if(Be[ne])return Be[ne];var Re=Sa[ne],He=Re<=Sa.normal?-1:1,Ze=dc(Be,rA,Re,He);if(!Ze)throw new Error("Could not find a matching font-stretch value for "+ne);return Ze}(Ot.stretch,Xt),Xt=function(ne,Be){if(Be[ne])return Be[ne];for(var Re=ph[ne],He=0;He<Re.length;++He)if(Be[Re[He]])return Be[Re[He]];throw new Error("Could not find a matching font-style for "+ne)}(Ot.style,Xt),!(Xt=function(ne,Be){if(Be[ne])return Be[ne];if(ne===400&&Be[500])return Be[500];if(ne===500&&Be[400])return Be[400];var Re=qc[ne],He=dc(Be,qu,Re,ne<400?-1:1);if(!He)throw new Error("Could not find a matching font-weight for value "+ne);return He}(Ot.weight,Xt)))throw new Error("Failed to resolve a font for the rule '"+ru(Ot)+"'.");return Xt}function ka(wt){return wt.trimLeft()}function pa(wt,gt){for(var yt=0;yt<wt.length;){if(wt.charAt(yt)===gt)return[wt.substring(0,yt),wt.substring(yt+1)];yt+=1}return null}function Ws(wt){var gt=wt.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return gt===null?null:[gt[0],wt.substring(gt[0].length)]}var xa,ol,zh,Tu=["times"];(function(wt){var gt,yt,Ft,Ut,Ot,Xt,Jt,ne,Be,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 Xt,this.miterLimit=tn.miterLimit||10,this.lastPoint=tn.lastPoint||new Xt,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};wt.events.push(["initialized",function(){this.context2d=new He(this),gt=this.internal.f2,yt=this.internal.getCoordinateString,Ft=this.internal.getVerticalCoordinateString,Ut=this.internal.getHorizontalCoordinate,Ot=this.internal.getVerticalCoordinate,Xt=this.internal.Point,Jt=this.internal.Rectangle,ne=this.internal.Matrix,Be=new Re}]);var He=function(tn){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var En=tn;Object.defineProperty(this,"pdf",{get:function(){return En}});var $n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return $n},set:function(rr){$n=!!rr}});var fi=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return fi},set:function(rr){fi=!!rr}});var ki=0;Object.defineProperty(this,"posX",{get:function(){return ki},set:function(rr){isNaN(rr)||(ki=rr)}});var Ki=0;Object.defineProperty(this,"posY",{get:function(){return Ki},set:function(rr){isNaN(rr)||(Ki=rr)}}),Object.defineProperty(this,"margin",{get:function(){return Be.margin},set:function(rr){var _n;typeof rr=="number"?_n=[rr,rr,rr,rr]:((_n=new Array(4))[0]=rr[0],_n[1]=rr.length>=2?rr[1]:_n[0],_n[2]=rr.length>=3?rr[2]:_n[0],_n[3]=rr.length>=4?rr[3]:_n[1]),Be.margin=_n}});var ir=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ir},set:function(rr){ir=rr}});var ji=0;Object.defineProperty(this,"lastBreak",{get:function(){return ji},set:function(rr){ji=rr}});var Kr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Kr},set:function(rr){Kr=rr}}),Object.defineProperty(this,"ctx",{get:function(){return Be},set:function(rr){rr instanceof Re&&(Be=rr)}}),Object.defineProperty(this,"path",{get:function(){return Be.path},set:function(rr){Be.path=rr}});var no=[];Object.defineProperty(this,"ctxStack",{get:function(){return no},set:function(rr){no=rr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(rr){var _n;_n=Ze(rr),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(rr){var _n=Ze(rr);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(rr){["butt","round","square"].indexOf(rr)!==-1&&(this.ctx.lineCap=rr,this.pdf.setLineCap(rr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(rr){isNaN(rr)||(this.ctx.lineWidth=rr,this.pdf.setLineWidth(rr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(rr){["bevel","round","miter"].indexOf(rr)!==-1&&(this.ctx.lineJoin=rr,this.pdf.setLineJoin(rr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(rr){isNaN(rr)||(this.ctx.miterLimit=rr,this.pdf.setMiterLimit(rr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(rr){this.ctx.textBaseline=rr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(rr){["right","end","center","left","start"].indexOf(rr)!==-1&&(this.ctx.textAlign=rr)}});var Io=null;function Lo(rr,_n){if(Io===null){var Is=function(Wo){var zr=[];return Object.keys(Wo).forEach(function(ro){Wo[ro].forEach(function(qr){var xo=null;switch(qr){case"bold":xo={family:ro,weight:"bold"};break;case"italic":xo={family:ro,style:"italic"};break;case"bolditalic":xo={family:ro,weight:"bold",style:"italic"};break;case"":case"normal":xo={family:ro}}xo!==null&&(xo.ref={name:ro,style:qr},zr.push(xo))})}),zr}(rr.getFontList());Io=function(Wo){for(var zr={},ro=0;ro<Wo.length;++ro){var qr=zA(Wo[ro]),xo=qr.family,$o=qr.stretch,ls=qr.style,bs=qr.weight;zr[xo]=zr[xo]||{},zr[xo][$o]=zr[xo][$o]||{},zr[xo][$o][ls]=zr[xo][$o][ls]||{},zr[xo][$o][ls][bs]=qr}return zr}(Is.concat(_n))}return Io}var Fs=null;Object.defineProperty(this,"fontFaces",{get:function(){return Fs},set:function(rr){Io=null,Fs=rr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(rr){var _n;if(this.ctx.font=rr,(_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(rr))!==null){var Is=_n[1],Wo=(_n[2],_n[3]),zr=_n[4],ro=(_n[5],_n[6]),qr=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(zr)[2];zr=Math.floor(qr==="px"?parseFloat(zr)*this.pdf.internal.scaleFactor:qr==="em"?parseFloat(zr)*this.pdf.getFontSize():parseFloat(zr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(zr);var xo=function(xs){var qs,Ro,Au=[],Ea=xs.trim();if(Ea==="")return Tu;if(Ea in Ks)return[Ks[Ea]];for(;Ea!=="";){switch(Ro=null,qs=(Ea=ka(Ea)).charAt(0)){case'"':case"'":Ro=pa(Ea.substring(1),qs);break;default:Ro=Ws(Ea)}if(Ro===null||(Au.push(Ro[0]),(Ea=ka(Ro[1]))!==""&&Ea.charAt(0)!==","))return Tu;Ea=Ea.replace(/^,/,"")}return Au}(ro);if(this.fontFaces){var $o=Za(Lo(this.pdf,this.fontFaces),xo.map(function(xs){return{family:xs,stretch:"normal",weight:Wo,style:Is}}));this.pdf.setFont($o.ref.name,$o.ref.style)}else{var ls="";(Wo==="bold"||parseInt(Wo,10)>=700||Is==="bold")&&(ls="bold"),Is==="italic"&&(ls+="italic"),ls.length===0&&(ls="normal");for(var bs="",Zo={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"},js=0;js<xo.length;js++){if(this.pdf.internal.getFont(xo[js],ls,{noFallback:!0,disableWarning:!0})!==void 0){bs=xo[js];break}if(ls==="bolditalic"&&this.pdf.internal.getFont(xo[js],"bold",{noFallback:!0,disableWarning:!0})!==void 0)bs=xo[js],ls="bold";else if(this.pdf.internal.getFont(xo[js],"normal",{noFallback:!0,disableWarning:!0})!==void 0){bs=xo[js],ls="normal";break}}if(bs===""){for(var Fa=0;Fa<xo.length;Fa++)if(Zo[xo[Fa]]){bs=Zo[xo[Fa]];break}}bs=bs===""?"Times":bs,this.pdf.setFont(bs,ls)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(rr){this.ctx.globalCompositeOperation=rr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(rr){this.ctx.globalAlpha=rr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(rr){this.ctx.lineDashOffset=rr,so.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(rr){this.ctx.lineDash=rr,so.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(rr){this.ctx.ignoreClearRect=!!rr}})};He.prototype.setLineDash=function(tn){this.lineDash=tn},He.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},He.prototype.fill=function(){Di.call(this,"fill",!1)},He.prototype.stroke=function(){Di.call(this,"stroke",!1)},He.prototype.beginPath=function(){this.path=[{type:"begin"}]},He.prototype.moveTo=function(tn,En){if(isNaN(tn)||isNaN(En))throw So.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var $n=this.ctx.transform.applyToPoint(new Xt(tn,En));this.path.push({type:"mt",x:$n.x,y:$n.y}),this.ctx.lastPoint=new Xt(tn,En)},He.prototype.closePath=function(){var tn=new Xt(0,0),En=0;for(En=this.path.length-1;En!==-1;En--)if(this.path[En].type==="begin"&&(0,Kt.Z)(this.path[En+1])==="object"&&typeof this.path[En+1].x=="number"){tn=new Xt(this.path[En+1].x,this.path[En+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Xt(tn.x,tn.y)},He.prototype.lineTo=function(tn,En){if(isNaN(tn)||isNaN(En))throw So.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var $n=this.ctx.transform.applyToPoint(new Xt(tn,En));this.path.push({type:"lt",x:$n.x,y:$n.y}),this.ctx.lastPoint=new Xt($n.x,$n.y)},He.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Di.call(this,null,!0)},He.prototype.quadraticCurveTo=function(tn,En,$n,fi){if(isNaN($n)||isNaN(fi)||isNaN(tn)||isNaN(En))throw So.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ki=this.ctx.transform.applyToPoint(new Xt($n,fi)),Ki=this.ctx.transform.applyToPoint(new Xt(tn,En));this.path.push({type:"qct",x1:Ki.x,y1:Ki.y,x:ki.x,y:ki.y}),this.ctx.lastPoint=new Xt(ki.x,ki.y)},He.prototype.bezierCurveTo=function(tn,En,$n,fi,ki,Ki){if(isNaN(ki)||isNaN(Ki)||isNaN(tn)||isNaN(En)||isNaN($n)||isNaN(fi))throw So.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ir=this.ctx.transform.applyToPoint(new Xt(ki,Ki)),ji=this.ctx.transform.applyToPoint(new Xt(tn,En)),Kr=this.ctx.transform.applyToPoint(new Xt($n,fi));this.path.push({type:"bct",x1:ji.x,y1:ji.y,x2:Kr.x,y2:Kr.y,x:ir.x,y:ir.y}),this.ctx.lastPoint=new Xt(ir.x,ir.y)},He.prototype.arc=function(tn,En,$n,fi,ki,Ki){if(isNaN(tn)||isNaN(En)||isNaN($n)||isNaN(fi)||isNaN(ki))throw So.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Ki=!!Ki,!this.ctx.transform.isIdentity){var ir=this.ctx.transform.applyToPoint(new Xt(tn,En));tn=ir.x,En=ir.y;var ji=this.ctx.transform.applyToPoint(new Xt(0,$n)),Kr=this.ctx.transform.applyToPoint(new Xt(0,0));$n=Math.sqrt(Math.pow(ji.x-Kr.x,2)+Math.pow(ji.y-Kr.y,2))}Math.abs(ki-fi)>=2*Math.PI&&(fi=0,ki=2*Math.PI),this.path.push({type:"arc",x:tn,y:En,radius:$n,startAngle:fi,endAngle:ki,counterclockwise:Ki})},He.prototype.arcTo=function(tn,En,$n,fi,ki){throw new Error("arcTo not implemented.")},He.prototype.rect=function(tn,En,$n,fi){if(isNaN(tn)||isNaN(En)||isNaN($n)||isNaN(fi))throw So.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(tn,En),this.lineTo(tn+$n,En),this.lineTo(tn+$n,En+fi),this.lineTo(tn,En+fi),this.lineTo(tn,En),this.lineTo(tn+$n,En),this.lineTo(tn,En)},He.prototype.fillRect=function(tn,En,$n,fi){if(isNaN(tn)||isNaN(En)||isNaN($n)||isNaN(fi))throw So.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!pe.call(this)){var ki={};this.lineCap!=="butt"&&(ki.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ki.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(tn,En,$n,fi),this.fill(),ki.hasOwnProperty("lineCap")&&(this.lineCap=ki.lineCap),ki.hasOwnProperty("lineJoin")&&(this.lineJoin=ki.lineJoin)}},He.prototype.strokeRect=function(tn,En,$n,fi){if(isNaN(tn)||isNaN(En)||isNaN($n)||isNaN(fi))throw So.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");jn.call(this)||(this.beginPath(),this.rect(tn,En,$n,fi),this.stroke())},He.prototype.clearRect=function(tn,En,$n,fi){if(isNaN(tn)||isNaN(En)||isNaN($n)||isNaN(fi))throw So.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(tn,En,$n,fi))},He.prototype.save=function(tn){tn=typeof tn!="boolean"||tn;for(var En=this.pdf.internal.getCurrentPageInfo().pageNumber,$n=0;$n<this.pdf.internal.getNumberOfPages();$n++)this.pdf.setPage($n+1),this.pdf.internal.out("q");if(this.pdf.setPage(En),tn){this.ctx.fontSize=this.pdf.internal.getFontSize();var fi=new Re(this.ctx);this.ctxStack.push(this.ctx),this.ctx=fi}},He.prototype.restore=function(tn){tn=typeof tn!="boolean"||tn;for(var En=this.pdf.internal.getCurrentPageInfo().pageNumber,$n=0;$n<this.pdf.internal.getNumberOfPages();$n++)this.pdf.setPage($n+1),this.pdf.internal.out("Q");this.pdf.setPage(En),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)},He.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Ze=function(tn){var En,$n,fi,ki;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))En=0,$n=0,fi=0,ki=0;else{var Ki=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(tn);if(Ki!==null)En=parseInt(Ki[1]),$n=parseInt(Ki[2]),fi=parseInt(Ki[3]),ki=1;else if((Ki=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(tn))!==null)En=parseInt(Ki[1]),$n=parseInt(Ki[2]),fi=parseInt(Ki[3]),ki=parseFloat(Ki[4]);else{if(ki=1,typeof tn=="string"&&tn.charAt(0)!=="#"){var ir=new io(tn);tn=ir.ok?ir.toHex():"#000000"}tn.length===4?(En=tn.substring(1,2),En+=En,$n=tn.substring(2,3),$n+=$n,fi=tn.substring(3,4),fi+=fi):(En=tn.substring(1,3),$n=tn.substring(3,5),fi=tn.substring(5,7)),En=parseInt(En,16),$n=parseInt($n,16),fi=parseInt(fi,16)}}return{r:En,g:$n,b:fi,a:ki,style:tn}},pe=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},jn=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};He.prototype.fillText=function(tn,En,$n,fi){if(isNaN(En)||isNaN($n)||typeof tn!="string")throw So.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(fi=isNaN(fi)?void 0:fi,!pe.call(this)){var ki=Mi(this.ctx.transform.rotation),Ki=this.ctx.transform.scaleX;Ln.call(this,{text:tn,x:En,y:$n,scale:Ki,angle:ki,align:this.textAlign,maxWidth:fi})}},He.prototype.strokeText=function(tn,En,$n,fi){if(isNaN(En)||isNaN($n)||typeof tn!="string")throw So.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!jn.call(this)){fi=isNaN(fi)?void 0:fi;var ki=Mi(this.ctx.transform.rotation),Ki=this.ctx.transform.scaleX;Ln.call(this,{text:tn,x:En,y:$n,scale:Ki,renderingMode:"stroke",angle:ki,align:this.textAlign,maxWidth:fi})}},He.prototype.measureText=function(tn){if(typeof tn!="string")throw So.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var En=this.pdf,$n=this.pdf.internal.scaleFactor,fi=En.internal.getFontSize(),ki=En.getStringUnitWidth(tn)*fi/En.internal.scaleFactor,Ki=function(ir){var ji=(ir=ir||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ji}}),this};return new Ki({width:ki*=Math.round(96*$n/72*1e4)/1e4})},He.prototype.scale=function(tn,En){if(isNaN(tn)||isNaN(En))throw So.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var $n=new ne(tn,0,0,En,0,0);this.ctx.transform=this.ctx.transform.multiply($n)},He.prototype.rotate=function(tn){if(isNaN(tn))throw So.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var En=new ne(Math.cos(tn),Math.sin(tn),-Math.sin(tn),Math.cos(tn),0,0);this.ctx.transform=this.ctx.transform.multiply(En)},He.prototype.translate=function(tn,En){if(isNaN(tn)||isNaN(En))throw So.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var $n=new ne(1,0,0,1,tn,En);this.ctx.transform=this.ctx.transform.multiply($n)},He.prototype.transform=function(tn,En,$n,fi,ki,Ki){if(isNaN(tn)||isNaN(En)||isNaN($n)||isNaN(fi)||isNaN(ki)||isNaN(Ki))throw So.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ir=new ne(tn,En,$n,fi,ki,Ki);this.ctx.transform=this.ctx.transform.multiply(ir)},He.prototype.setTransform=function(tn,En,$n,fi,ki,Ki){tn=isNaN(tn)?1:tn,En=isNaN(En)?0:En,$n=isNaN($n)?0:$n,fi=isNaN(fi)?1:fi,ki=isNaN(ki)?0:ki,Ki=isNaN(Ki)?0:Ki,this.ctx.transform=new ne(tn,En,$n,fi,ki,Ki)};var Sn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};He.prototype.drawImage=function(tn,En,$n,fi,ki,Ki,ir,ji,Kr){var no=this.pdf.getImageProperties(tn),Io=1,Lo=1,Fs=1,rr=1;fi!==void 0&&ji!==void 0&&(Fs=ji/fi,rr=Kr/ki,Io=no.width/fi*ji/fi,Lo=no.height/ki*Kr/ki),Ki===void 0&&(Ki=En,ir=$n,En=0,$n=0),fi!==void 0&&ji===void 0&&(ji=fi,Kr=ki),fi===void 0&&ji===void 0&&(ji=no.width,Kr=no.height);for(var _n,Is=this.ctx.transform.decompose(),Wo=Mi(Is.rotate.shx),zr=new ne,ro=(zr=(zr=(zr=zr.multiply(Is.translate)).multiply(Is.skew)).multiply(Is.scale)).applyToRectangle(new Jt(Ki-En*Fs,ir-$n*rr,fi*Io,ki*Lo)),qr=Rn.call(this,ro),xo=[],$o=0;$o<qr.length;$o+=1)xo.indexOf(qr[$o])===-1&&xo.push(qr[$o]);if(mi(xo),this.autoPaging)for(var ls=xo[0],bs=xo[xo.length-1],Zo=ls;Zo<bs+1;Zo++){this.pdf.setPage(Zo);var js=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Fa=Zo===1?this.posY+this.margin[0]:this.margin[0],xs=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],qs=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ro=Zo===1?0:xs+(Zo-2)*qs;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],-Ro+Fa+this.ctx.prevPageLastElemOffset),qi.call(this,"fill",!0),this.path=Au}var Ea=JSON.parse(JSON.stringify(ro));Ea=On([Ea],this.posX+this.margin[3],-Ro+Fa+this.ctx.prevPageLastElemOffset)[0];var ds=(Zo>ls||Zo<bs)&&Sn.call(this);ds&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],js,qs,null).clip().discardPath()),this.pdf.addImage(tn,"JPEG",Ea.x,Ea.y,Ea.w,Ea.h,null,null,Wo),ds&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(tn,"JPEG",ro.x,ro.y,ro.w,ro.h,null,null,Wo)};var Rn=function(tn,En,$n){var fi=[];En=En||this.pdf.internal.pageSize.width,$n=$n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ki=this.posY+this.ctx.prevPageLastElemOffset;switch(tn.type){default:case"mt":case"lt":fi.push(Math.floor((tn.y+ki)/$n)+1);break;case"arc":fi.push(Math.floor((tn.y+ki-tn.radius)/$n)+1),fi.push(Math.floor((tn.y+ki+tn.radius)/$n)+1);break;case"qct":var Ki=tr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tn.x1,tn.y1,tn.x,tn.y);fi.push(Math.floor((Ki.y+ki)/$n)+1),fi.push(Math.floor((Ki.y+Ki.h+ki)/$n)+1);break;case"bct":var ir=fr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tn.x1,tn.y1,tn.x2,tn.y2,tn.x,tn.y);fi.push(Math.floor((ir.y+ki)/$n)+1),fi.push(Math.floor((ir.y+ir.h+ki)/$n)+1);break;case"rect":fi.push(Math.floor((tn.y+ki)/$n)+1),fi.push(Math.floor((tn.y+tn.h+ki)/$n)+1)}for(var ji=0;ji<fi.length;ji+=1)for(;this.pdf.internal.getNumberOfPages()<fi[ji];)on.call(this);return fi},on=function(){var tn=this.fillStyle,En=this.strokeStyle,$n=this.font,fi=this.lineCap,ki=this.lineWidth,Ki=this.lineJoin;this.pdf.addPage(),this.fillStyle=tn,this.strokeStyle=En,this.font=$n,this.lineCap=fi,this.lineWidth=ki,this.lineJoin=Ki},On=function(tn,En,$n){for(var fi=0;fi<tn.length;fi++)switch(tn[fi].type){case"bct":tn[fi].x2+=En,tn[fi].y2+=$n;case"qct":tn[fi].x1+=En,tn[fi].y1+=$n;case"mt":case"lt":case"arc":default:tn[fi].x+=En,tn[fi].y+=$n}return tn},mi=function(tn){return tn.sort(function(En,$n){return En-$n})},Di=function(tn,En){for(var $n,fi,ki=this.fillStyle,Ki=this.strokeStyle,ir=this.lineCap,ji=this.lineWidth,Kr=Math.abs(ji*this.ctx.transform.scaleX),no=this.lineJoin,Io=JSON.parse(JSON.stringify(this.path)),Lo=JSON.parse(JSON.stringify(this.path)),Fs=[],rr=0;rr<Lo.length;rr++)if(Lo[rr].x!==void 0)for(var _n=Rn.call(this,Lo[rr]),Is=0;Is<_n.length;Is+=1)Fs.indexOf(_n[Is])===-1&&Fs.push(_n[Is]);for(var Wo=0;Wo<Fs.length;Wo++)for(;this.pdf.internal.getNumberOfPages()<Fs[Wo];)on.call(this);if(mi(Fs),this.autoPaging)for(var zr=Fs[0],ro=Fs[Fs.length-1],qr=zr;qr<ro+1;qr++){this.pdf.setPage(qr),this.fillStyle=ki,this.strokeStyle=Ki,this.lineCap=ir,this.lineWidth=Kr,this.lineJoin=no;var xo=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],$o=qr===1?this.posY+this.margin[0]:this.margin[0],ls=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],bs=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Zo=qr===1?0:ls+(qr-2)*bs;if(this.ctx.clip_path.length!==0){var js=this.path;$n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=On($n,this.posX+this.margin[3],-Zo+$o+this.ctx.prevPageLastElemOffset),qi.call(this,tn,!0),this.path=js}if(fi=JSON.parse(JSON.stringify(Io)),this.path=On(fi,this.posX+this.margin[3],-Zo+$o+this.ctx.prevPageLastElemOffset),En===!1||qr===0){var Fa=(qr>zr||qr<ro)&&Sn.call(this);Fa&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xo,bs,null).clip().discardPath()),qi.call(this,tn,En),Fa&&this.pdf.restoreGraphicsState()}this.lineWidth=ji}else this.lineWidth=Kr,qi.call(this,tn,En),this.lineWidth=ji;this.path=Io},qi=function(tn,En){if((tn!=="stroke"||En||!jn.call(this))&&(tn==="stroke"||En||!pe.call(this))){for(var $n,fi,ki=[],Ki=this.path,ir=0;ir<Ki.length;ir++){var ji=Ki[ir];switch(ji.type){case"begin":ki.push({begin:!0});break;case"close":ki.push({close:!0});break;case"mt":ki.push({start:ji,deltas:[],abs:[]});break;case"lt":var Kr=ki.length;if(Ki[ir-1]&&!isNaN(Ki[ir-1].x)&&($n=[ji.x-Ki[ir-1].x,ji.y-Ki[ir-1].y],Kr>0)){for(;Kr>=0;Kr--)if(ki[Kr-1].close!==!0&&ki[Kr-1].begin!==!0){ki[Kr-1].deltas.push($n),ki[Kr-1].abs.push(ji);break}}break;case"bct":$n=[ji.x1-Ki[ir-1].x,ji.y1-Ki[ir-1].y,ji.x2-Ki[ir-1].x,ji.y2-Ki[ir-1].y,ji.x-Ki[ir-1].x,ji.y-Ki[ir-1].y],ki[ki.length-1].deltas.push($n);break;case"qct":var no=Ki[ir-1].x+2/3*(ji.x1-Ki[ir-1].x),Io=Ki[ir-1].y+2/3*(ji.y1-Ki[ir-1].y),Lo=ji.x+2/3*(ji.x1-ji.x),Fs=ji.y+2/3*(ji.y1-ji.y),rr=ji.x,_n=ji.y;$n=[no-Ki[ir-1].x,Io-Ki[ir-1].y,Lo-Ki[ir-1].x,Fs-Ki[ir-1].y,rr-Ki[ir-1].x,_n-Ki[ir-1].y],ki[ki.length-1].deltas.push($n);break;case"arc":ki.push({deltas:[],abs:[],arc:!0}),Array.isArray(ki[ki.length-1].abs)&&ki[ki.length-1].abs.push(ji)}}fi=En?null:tn==="stroke"?"stroke":"fill";for(var Is=!1,Wo=0;Wo<ki.length;Wo++)if(ki[Wo].arc)for(var zr=ki[Wo].abs,ro=0;ro<zr.length;ro++){var qr=zr[ro];qr.type==="arc"?ai.call(this,qr.x,qr.y,qr.radius,qr.startAngle,qr.endAngle,qr.counterclockwise,void 0,En,!Is):wi.call(this,qr.x,qr.y),Is=!0}else if(ki[Wo].close===!0)this.pdf.internal.out("h"),Is=!1;else if(ki[Wo].begin!==!0){var xo=ki[Wo].start.x,$o=ki[Wo].start.y;si.call(this,ki[Wo].deltas,xo,$o),Is=!0}fi&&Xi.call(this,fi),En&&gr.call(this)}},Ir=function(tn){var En=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,$n=En*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return tn-$n;case"top":return tn+En-$n;case"hanging":return tn+En-2*$n;case"middle":return tn+En/2-$n;case"ideographic":return tn;case"alphabetic":default:return tn}},Wi=function(tn){return tn+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};He.prototype.createLinearGradient=function(){var tn=function(){};return tn.colorStops=[],tn.addColorStop=function(En,$n){this.colorStops.push([En,$n])},tn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},tn.isCanvasGradient=!0,tn},He.prototype.createPattern=function(){return this.createLinearGradient()},He.prototype.createRadialGradient=function(){return this.createLinearGradient()};var ai=function(tn,En,$n,fi,ki,Ki,ir,ji,Kr){for(var no=_i.call(this,$n,fi,ki,Ki),Io=0;Io<no.length;Io++){var Lo=no[Io];Io===0&&(Kr?yn.call(this,Lo.x1+tn,Lo.y1+En):wi.call(this,Lo.x1+tn,Lo.y1+En)),Ar.call(this,tn,En,Lo.x2,Lo.y2,Lo.x3,Lo.y3,Lo.x4,Lo.y4)}ji?gr.call(this):Xi.call(this,ir)},Xi=function(tn){switch(tn){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},gr=function(){this.pdf.clip(),this.pdf.discardPath()},yn=function(tn,En){this.pdf.internal.out(yt(tn)+" "+Ft(En)+" m")},Ln=function(tn){var En;switch(tn.align){case"right":case"end":En="right";break;case"center":En="center";break;case"left":case"start":default:En="left"}var $n=this.pdf.getTextDimensions(tn.text),fi=Ir.call(this,tn.y),ki=Wi.call(this,fi)-$n.h,Ki=this.ctx.transform.applyToPoint(new Xt(tn.x,fi)),ir=this.ctx.transform.decompose(),ji=new ne;ji=(ji=(ji=ji.multiply(ir.translate)).multiply(ir.skew)).multiply(ir.scale);for(var Kr,no,Io,Lo=this.ctx.transform.applyToRectangle(new Jt(tn.x,fi,$n.w,$n.h)),Fs=ji.applyToRectangle(new Jt(tn.x,ki,$n.w,$n.h)),rr=Rn.call(this,Fs),_n=[],Is=0;Is<rr.length;Is+=1)_n.indexOf(rr[Is])===-1&&_n.push(rr[Is]);if(mi(_n),this.autoPaging)for(var Wo=_n[0],zr=_n[_n.length-1],ro=Wo;ro<zr+1;ro++){this.pdf.setPage(ro);var qr=ro===1?this.posY+this.margin[0]:this.margin[0],xo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],$o=this.pdf.internal.pageSize.height-this.margin[2],ls=$o-this.margin[0],bs=this.pdf.internal.pageSize.width-this.margin[1],Zo=bs-this.margin[3],js=ro===1?0:xo+(ro-2)*ls;if(this.ctx.clip_path.length!==0){var Fa=this.path;Kr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=On(Kr,this.posX+this.margin[3],-1*js+qr),qi.call(this,"fill",!0),this.path=Fa}var xs=On([JSON.parse(JSON.stringify(Fs))],this.posX+this.margin[3],-js+qr+this.ctx.prevPageLastElemOffset)[0];tn.scale>=.01&&(no=this.pdf.internal.getFontSize(),this.pdf.setFontSize(no*tn.scale),Io=this.lineWidth,this.lineWidth=Io*tn.scale);var qs=this.autoPaging!=="text";if(qs||xs.y+xs.h<=$o){if(qs||xs.y>=qr&&xs.x<=bs){var Ro=qs?tn.text:this.pdf.splitTextToSize(tn.text,tn.maxWidth||bs-xs.x)[0],Au=On([JSON.parse(JSON.stringify(Lo))],this.posX+this.margin[3],-js+qr+this.ctx.prevPageLastElemOffset)[0],Ea=qs&&(ro>Wo||ro<zr)&&Sn.call(this);Ea&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zo,ls,null).clip().discardPath()),this.pdf.text(Ro,Au.x,Au.y,{angle:tn.angle,align:En,renderingMode:tn.renderingMode}),Ea&&this.pdf.restoreGraphicsState()}}else xs.y<$o&&(this.ctx.prevPageLastElemOffset+=$o-xs.y);tn.scale>=.01&&(this.pdf.setFontSize(no),this.lineWidth=Io)}else tn.scale>=.01&&(no=this.pdf.internal.getFontSize(),this.pdf.setFontSize(no*tn.scale),Io=this.lineWidth,this.lineWidth=Io*tn.scale),this.pdf.text(tn.text,Ki.x+this.posX,Ki.y+this.posY,{angle:tn.angle,align:En,renderingMode:tn.renderingMode,maxWidth:tn.maxWidth}),tn.scale>=.01&&(this.pdf.setFontSize(no),this.lineWidth=Io)},wi=function(tn,En,$n,fi){$n=$n||0,fi=fi||0,this.pdf.internal.out(yt(tn+$n)+" "+Ft(En+fi)+" l")},si=function(tn,En,$n){return this.pdf.lines(tn,En,$n,null,null)},Ar=function(tn,En,$n,fi,ki,Ki,ir,ji){this.pdf.internal.out([gt(Ut($n+tn)),gt(Ot(fi+En)),gt(Ut(ki+tn)),gt(Ot(Ki+En)),gt(Ut(ir+tn)),gt(Ot(ji+En)),"c"].join(" "))},_i=function(tn,En,$n,fi){for(var ki=2*Math.PI,Ki=Math.PI/2;En>$n;)En-=ki;var ir=Math.abs($n-En);ir<ki&&fi&&(ir=ki-ir);for(var ji=[],Kr=fi?-1:1,no=En;ir>1e-5;){var Io=no+Kr*Math.min(ir,Ki);ji.push(dr.call(this,tn,no,Io)),ir-=Math.abs(Io-no),no=Io}return ji},dr=function(tn,En,$n){var fi=($n-En)/2,ki=tn*Math.cos(fi),Ki=tn*Math.sin(fi),ir=ki,ji=-Ki,Kr=ir*ir+ji*ji,no=Kr+ir*ki+ji*Ki,Io=4/3*(Math.sqrt(2*Kr*no)-no)/(ir*Ki-ji*ki),Lo=ir-Io*ji,Fs=ji+Io*ir,rr=Lo,_n=-Fs,Is=fi+En,Wo=Math.cos(Is),zr=Math.sin(Is);return{x1:tn*Math.cos(En),y1:tn*Math.sin(En),x2:Lo*Wo-Fs*zr,y2:Lo*zr+Fs*Wo,x3:rr*Wo-_n*zr,y3:rr*zr+_n*Wo,x4:tn*Math.cos($n),y4:tn*Math.sin($n)}},Mi=function(tn){return 180*tn/Math.PI},tr=function(tn,En,$n,fi,ki,Ki){var ir=tn+.5*($n-tn),ji=En+.5*(fi-En),Kr=ki+.5*($n-ki),no=Ki+.5*(fi-Ki),Io=Math.min(tn,ki,ir,Kr),Lo=Math.max(tn,ki,ir,Kr),Fs=Math.min(En,Ki,ji,no),rr=Math.max(En,Ki,ji,no);return new Jt(Io,Fs,Lo-Io,rr-Fs)},fr=function(tn,En,$n,fi,ki,Ki,ir,ji){var Kr,no,Io,Lo,Fs,rr,_n,Is,Wo,zr,ro,qr,xo,$o,ls=$n-tn,bs=fi-En,Zo=ki-$n,js=Ki-fi,Fa=ir-ki,xs=ji-Ki;for(no=0;no<41;no++)Wo=(_n=(Io=tn+(Kr=no/40)*ls)+Kr*((Fs=$n+Kr*Zo)-Io))+Kr*(Fs+Kr*(ki+Kr*Fa-Fs)-_n),zr=(Is=(Lo=En+Kr*bs)+Kr*((rr=fi+Kr*js)-Lo))+Kr*(rr+Kr*(Ki+Kr*xs-rr)-Is),no==0?(ro=Wo,qr=zr,xo=Wo,$o=zr):(ro=Math.min(ro,Wo),qr=Math.min(qr,zr),xo=Math.max(xo,Wo),$o=Math.max($o,zr));return new Jt(Math.round(ro),Math.round(qr),Math.round(xo-ro),Math.round($o-qr))},so=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var tn,En,$n=(tn=this.ctx.lineDash,En=this.ctx.lineDashOffset,JSON.stringify({lineDash:tn,lineDashOffset:En}));this.prevLineDash!==$n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=$n)}}})(ho.API),function(wt){var gt=function(Ot){var Xt,Jt,ne,Be,Re,He,Ze,pe,jn,Sn;for(/[^\x00-\xFF]/.test(Ot),Jt=[],ne=0,Be=(Ot+=Xt="\0\0\0\0".slice(Ot.length%4||4)).length;Be>ne;ne+=4)(Re=(Ot.charCodeAt(ne)<<24)+(Ot.charCodeAt(ne+1)<<16)+(Ot.charCodeAt(ne+2)<<8)+Ot.charCodeAt(ne+3))!==0?(He=(Re=((Re=((Re=((Re=(Re-(Sn=Re%85))/85)-(jn=Re%85))/85)-(pe=Re%85))/85)-(Ze=Re%85))/85)%85,Jt.push(He+33,Ze+33,pe+33,jn+33,Sn+33)):Jt.push(122);return function(Rn,on){for(var On=on;On>0;On--)Rn.pop()}(Jt,Xt.length),String.fromCharCode.apply(String,Jt)+"~>"},yt=function(Ot){var Xt,Jt,ne,Be,Re,He=String,Ze="length",pe=255,jn="charCodeAt",Sn="slice",Rn="replace";for(Ot[Sn](-2),Ot=Ot[Sn](0,-2)[Rn](/\s/g,"")[Rn]("z","!!!!!"),ne=[],Be=0,Re=(Ot+=Xt="uuuuu"[Sn](Ot[Ze]%5||5))[Ze];Re>Be;Be+=5)Jt=52200625*(Ot[jn](Be)-33)+614125*(Ot[jn](Be+1)-33)+7225*(Ot[jn](Be+2)-33)+85*(Ot[jn](Be+3)-33)+(Ot[jn](Be+4)-33),ne.push(pe&Jt>>24,pe&Jt>>16,pe&Jt>>8,pe&Jt);return function(on,On){for(var mi=On;mi>0;mi--)on.pop()}(ne,Xt[Ze]),He.fromCharCode.apply(He,ne)},Ft=function(Ot){var Xt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Ot=Ot.replace(/\s/g,"")).indexOf(">")!==-1&&(Ot=Ot.substr(0,Ot.indexOf(">"))),Ot.length%2&&(Ot+="0"),Xt.test(Ot)===!1)return"";for(var Jt="",ne=0;ne<Ot.length;ne+=2)Jt+=String.fromCharCode("0x"+(Ot[ne]+Ot[ne+1]));return Jt},Ut=function(Ot){for(var Xt=new Uint8Array(Ot.length),Jt=Ot.length;Jt--;)Xt[Jt]=Ot.charCodeAt(Jt);return Ot=(Xt=nn(Xt)).reduce(function(ne,Be){return ne+String.fromCharCode(Be)},"")};wt.processDataByFilters=function(Ot,Xt){var Jt=0,ne=Ot||"",Be=[];for(typeof(Xt=Xt||[])=="string"&&(Xt=[Xt]),Jt=0;Jt<Xt.length;Jt+=1)switch(Xt[Jt]){case"ASCII85Decode":case"/ASCII85Decode":ne=yt(ne),Be.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ne=gt(ne),Be.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ne=Ft(ne),Be.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ne=ne.split("").map(function(Re){return("0"+Re.charCodeAt().toString(16)).slice(-2)}).join("")+">",Be.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ne=Ut(ne),Be.push("/FlateDecode");break;default:throw new Error('The filter: "'+Xt[Jt]+'" is not implemented')}return{data:ne,reverseChain:Be.reverse().join(" ")}}}(ho.API),function(wt){wt.loadFile=function(gt,yt,Ft){return function(Ut,Ot,Xt){Ot=Ot!==!1,Xt=typeof Xt=="function"?Xt:function(){};var Jt=void 0;try{Jt=function(ne,Be,Re){var He=new XMLHttpRequest,Ze=0,pe=function(jn){var Sn=jn.length,Rn=[],on=String.fromCharCode;for(Ze=0;Ze<Sn;Ze+=1)Rn.push(on(255&jn.charCodeAt(Ze)));return Rn.join("")};if(He.open("GET",ne,!Be),He.overrideMimeType("text/plain; charset=x-user-defined"),Be===!1&&(He.onload=function(){He.status===200?Re(pe(this.responseText)):Re(void 0)}),He.send(null),Be&&He.status===200)return pe(He.responseText)}(Ut,Ot,Xt)}catch(ne){}return Jt}(gt,yt,Ft)},wt.loadImageFile=wt.loadFile}(ho.API),function(wt){function gt(){return(br.html2canvas?Promise.resolve(br.html2canvas):Promise.resolve().then(Yt.t.bind(Yt,64270,23))).catch(function(Xt){return Promise.reject(new Error("Could not load html2canvas: "+Xt))}).then(function(Xt){return Xt.default?Xt.default:Xt})}function yt(){return(br.DOMPurify?Promise.resolve(br.DOMPurify):Yt.e(7631).then(Yt.bind(Yt,87631))).catch(function(Xt){return Promise.reject(new Error("Could not load dompurify: "+Xt))}).then(function(Xt){return Xt.default?Xt.default:Xt})}var Ft=function(Xt){var Jt=(0,Kt.Z)(Xt);return Jt==="undefined"?"undefined":Jt==="string"||Xt instanceof String?"string":Jt==="number"||Xt instanceof Number?"number":Jt==="function"||Xt instanceof Function?"function":Xt&&Xt.constructor===Array?"array":Xt&&Xt.nodeType===1?"element":Jt==="object"?"object":"unknown"},Ut=function(Xt,Jt){var ne=document.createElement(Xt);for(var Be in Jt.className&&(ne.className=Jt.className),Jt.innerHTML&&Jt.dompurify&&(ne.innerHTML=Jt.dompurify.sanitize(Jt.innerHTML)),Jt.style)ne.style[Be]=Jt.style[Be];return ne},Ot=function Xt(Jt){var ne=Object.assign(Xt.convert(Promise.resolve()),JSON.parse(JSON.stringify(Xt.template))),Be=Xt.convert(Promise.resolve(),ne);return Be=(Be=Be.setProgress(1,Xt,1,[Xt])).set(Jt)};(Ot.prototype=Object.create(Promise.prototype)).constructor=Ot,Ot.convert=function(Xt,Jt){return Xt.__proto__=Jt||Ot.prototype,Xt},Ot.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"}},Ot.prototype.from=function(Xt,Jt){return this.then(function(){switch(Jt=Jt||function(ne){switch(Ft(ne)){case"string":return"string";case"element":return ne.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Xt)){case"string":return this.then(yt).then(function(ne){return this.set({src:Ut("div",{innerHTML:Xt,dompurify:ne})})});case"element":return this.set({src:Xt});case"canvas":return this.set({canvas:Xt});case"img":return this.set({img:Xt});default:return this.error("Unknown source type.")}})},Ot.prototype.to=function(Xt){switch(Xt){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.")}},Ot.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 Xt={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},Jt=function ne(Be,Re){for(var He=Be.nodeType===3?document.createTextNode(Be.nodeValue):Be.cloneNode(!1),Ze=Be.firstChild;Ze;Ze=Ze.nextSibling)Re!==!0&&Ze.nodeType===1&&Ze.nodeName==="SCRIPT"||He.appendChild(ne(Ze,Re));return Be.nodeType===1&&(Be.nodeName==="CANVAS"?(He.width=Be.width,He.height=Be.height,He.getContext("2d").drawImage(Be,0,0)):Be.nodeName!=="TEXTAREA"&&Be.nodeName!=="SELECT"||(He.value=Be.value),He.addEventListener("load",function(){He.scrollTop=Be.scrollTop,He.scrollLeft=Be.scrollLeft},!0)),He}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Jt.tagName==="BODY"&&(Xt.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ut("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ut("div",{className:"html2pdf__container",style:Xt}),this.prop.container.appendChild(Jt),this.prop.container.firstChild.appendChild(Ut("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"})},Ot.prototype.toCanvas=function(){var Xt=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Xt).then(gt).then(function(Jt){var ne=Object.assign({},this.opt.html2canvas);return delete ne.onrendered,Jt(this.prop.container,ne)}).then(function(Jt){(this.opt.html2canvas.onrendered||function(){})(Jt),this.prop.canvas=Jt,document.body.removeChild(this.prop.overlay)})},Ot.prototype.toContext2d=function(){var Xt=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Xt).then(gt).then(function(Jt){var ne=this.opt.jsPDF,Be=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,He=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 He.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=Be,Be)for(var Ze=0;Ze<Be.length;++Ze){var pe=Be[Ze],jn=pe.src.find(function(Sn){return Sn.format==="truetype"});jn&&ne.addFont(jn.url,pe.ref.name,pe.ref.style)}return He.windowHeight=He.windowHeight||0,He.windowHeight=He.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):He.windowHeight,ne.context2d.save(!0),Jt(this.prop.container,He)}).then(function(Jt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Jt),this.prop.canvas=Jt,document.body.removeChild(this.prop.overlay)})},Ot.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Xt=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Xt})},Ot.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Ot.prototype.output=function(Xt,Jt,ne){return(ne=ne||"pdf").toLowerCase()==="img"||ne.toLowerCase()==="image"?this.outputImg(Xt,Jt):this.outputPdf(Xt,Jt)},Ot.prototype.outputPdf=function(Xt,Jt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Xt,Jt)})},Ot.prototype.outputImg=function(Xt){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Xt){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 "'+Xt+'" is not supported.'}})},Ot.prototype.save=function(Xt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Xt?{filename:Xt}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ot.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Ot.prototype.set=function(Xt){if(Ft(Xt)!=="object")return this;var Jt=Object.keys(Xt||{}).map(function(ne){if(ne in Ot.template.prop)return function(){this.prop[ne]=Xt[ne]};switch(ne){case"margin":return this.setMargin.bind(this,Xt.margin);case"jsPDF":return function(){return this.opt.jsPDF=Xt.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Xt.pageSize);default:return function(){this.opt[ne]=Xt[ne]}}},this);return this.then(function(){return this.thenList(Jt)})},Ot.prototype.get=function(Xt,Jt){return this.then(function(){var ne=Xt in Ot.template.prop?this.prop[Xt]:this.opt[Xt];return Jt?Jt(ne):ne})},Ot.prototype.setMargin=function(Xt){return this.then(function(){switch(Ft(Xt)){case"number":Xt=[Xt,Xt,Xt,Xt];case"array":if(Xt.length===2&&(Xt=[Xt[0],Xt[1],Xt[0],Xt[1]]),Xt.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Xt}).then(this.setPageSize)},Ot.prototype.setPageSize=function(Xt){function Jt(ne,Be){return Math.floor(ne*Be/72*96)}return this.then(function(){(Xt=Xt||ho.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Xt.inner={width:Xt.width-this.opt.margin[1]-this.opt.margin[3],height:Xt.height-this.opt.margin[0]-this.opt.margin[2]},Xt.inner.px={width:Jt(Xt.inner.width,Xt.k),height:Jt(Xt.inner.height,Xt.k)},Xt.inner.ratio=Xt.inner.height/Xt.inner.width),this.prop.pageSize=Xt})},Ot.prototype.setProgress=function(Xt,Jt,ne,Be){return Xt!=null&&(this.progress.val=Xt),Jt!=null&&(this.progress.state=Jt),ne!=null&&(this.progress.n=ne),Be!=null&&(this.progress.stack=Be),this.progress.ratio=this.progress.val/this.progress.state,this},Ot.prototype.updateProgress=function(Xt,Jt,ne,Be){return this.setProgress(Xt?this.progress.val+Xt:null,Jt||null,ne?this.progress.n+ne:null,Be?this.progress.stack.concat(Be):null)},Ot.prototype.then=function(Xt,Jt){var ne=this;return this.thenCore(Xt,Jt,function(Be,Re){return ne.updateProgress(null,null,1,[Be]),Promise.prototype.then.call(this,function(He){return ne.updateProgress(null,Be),He}).then(Be,Re).then(function(He){return ne.updateProgress(1),He})})},Ot.prototype.thenCore=function(Xt,Jt,ne){ne=ne||Promise.prototype.then,Xt&&(Xt=Xt.bind(this)),Jt&&(Jt=Jt.bind(this));var Be=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Ot.convert(Object.assign({},this),Promise.prototype),Re=ne.call(Be,Xt,Jt);return Ot.convert(Re,this.__proto__)},Ot.prototype.thenExternal=function(Xt,Jt){return Promise.prototype.then.call(this,Xt,Jt)},Ot.prototype.thenList=function(Xt){var Jt=this;return Xt.forEach(function(ne){Jt=Jt.thenCore(ne)}),Jt},Ot.prototype.catch=function(Xt){Xt&&(Xt=Xt.bind(this));var Jt=Promise.prototype.catch.call(this,Xt);return Ot.convert(Jt,this)},Ot.prototype.catchExternal=function(Xt){return Promise.prototype.catch.call(this,Xt)},Ot.prototype.error=function(Xt){return this.then(function(){throw new Error(Xt)})},Ot.prototype.using=Ot.prototype.set,Ot.prototype.saveAs=Ot.prototype.save,Ot.prototype.export=Ot.prototype.output,Ot.prototype.run=Ot.prototype.then,ho.getPageSize=function(Xt,Jt,ne){if((0,Kt.Z)(Xt)==="object"){var Be=Xt;Xt=Be.orientation,Jt=Be.unit||Jt,ne=Be.format||ne}Jt=Jt||"mm",ne=ne||"a4",Xt=(""+(Xt||"P")).toLowerCase();var Re,He=(""+ne).toLowerCase(),Ze={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(Jt){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: "+Jt}var pe,jn=0,Sn=0;if(Ze.hasOwnProperty(He))jn=Ze[He][1]/Re,Sn=Ze[He][0]/Re;else try{jn=ne[1],Sn=ne[0]}catch(Rn){throw new Error("Invalid format: "+ne)}if(Xt==="p"||Xt==="portrait")Xt="p",Sn>jn&&(pe=Sn,Sn=jn,jn=pe);else{if(Xt!=="l"&&Xt!=="landscape")throw"Invalid orientation: "+Xt;Xt="l",jn>Sn&&(pe=Sn,Sn=jn,jn=pe)}return{width:Sn,height:jn,unit:Jt,k:Re,orientation:Xt}},wt.html=function(Xt,Jt){(Jt=Jt||{}).callback=Jt.callback||function(){},Jt.html2canvas=Jt.html2canvas||{},Jt.html2canvas.canvas=Jt.html2canvas.canvas||this.canvas,Jt.jsPDF=Jt.jsPDF||this,Jt.fontFaces=Jt.fontFaces?Jt.fontFaces.map(zA):null;var ne=new Ot(Jt);return Jt.worker?ne:ne.from(Xt).doCallback()}}(ho.API),ho.API.addJS=function(wt){return zh=wt,this.internal.events.subscribe("postPutResources",function(){xa=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(xa+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 ("+zh+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){xa!==void 0&&ol!==void 0&&this.internal.out("/Names <</JavaScript "+xa+" 0 R>>")}),this},function(wt){var gt;wt.events.push(["postPutResources",function(){var yt=this,Ft=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ut=yt.outline.render().split(/\r\n/),Ot=0;Ot<Ut.length;Ot++){var Xt=Ut[Ot],Jt=Ft.exec(Xt);if(Jt!=null){var ne=Jt[1];yt.internal.newObjectDeferredBegin(ne,!1)}yt.internal.write(Xt)}if(this.outline.createNamedDestinations){var Be=this.internal.pages.length,Re=[];for(Ot=0;Ot<Be;Ot++){var He=yt.internal.newObject();Re.push(He);var Ze=yt.internal.getPageInfo(Ot+1);yt.internal.write("<< /D["+Ze.objId+" 0 R /XYZ null null null]>> endobj")}var pe=yt.internal.newObject();for(yt.internal.write("<< /Names [ "),Ot=0;Ot<Re.length;Ot++)yt.internal.write("(page_"+(Ot+1)+")"+Re[Ot]+" 0 R");yt.internal.write(" ] >>","endobj"),gt=yt.internal.newObject(),yt.internal.write("<< /Dests "+pe+" 0 R"),yt.internal.write(">>","endobj")}}]),wt.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"))}]),wt.events.push(["initialized",function(){var yt=this;yt.outline={createNamedDestinations:!1,root:{children:[]}},yt.outline.add=function(Ft,Ut,Ot){var Xt={title:Ut,options:Ot,children:[]};return Ft==null&&(Ft=this.root),Ft.children.push(Xt),Xt},yt.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=yt,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},yt.outline.genIds_r=function(Ft){Ft.id=yt.internal.newObjectDeferred();for(var Ut=0;Ut<Ft.children.length;Ut++)this.genIds_r(Ft.children[Ut])},yt.outline.renderRoot=function(Ft){this.objStart(Ft),this.line("/Type /Outlines"),Ft.children.length>0&&(this.line("/First "+this.makeRef(Ft.children[0])),this.line("/Last "+this.makeRef(Ft.children[Ft.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ft)),this.objEnd()},yt.outline.renderItems=function(Ft){for(var Ut=this.ctx.pdf.internal.getVerticalCoordinateString,Ot=0;Ot<Ft.children.length;Ot++){var Xt=Ft.children[Ot];this.objStart(Xt),this.line("/Title "+this.makeString(Xt.title)),this.line("/Parent "+this.makeRef(Ft)),Ot>0&&this.line("/Prev "+this.makeRef(Ft.children[Ot-1])),Ot<Ft.children.length-1&&this.line("/Next "+this.makeRef(Ft.children[Ot+1])),Xt.children.length>0&&(this.line("/First "+this.makeRef(Xt.children[0])),this.line("/Last "+this.makeRef(Xt.children[Xt.children.length-1])));var Jt=this.count=this.count_r({count:0},Xt);if(Jt>0&&this.line("/Count "+Jt),Xt.options&&Xt.options.pageNumber){var ne=yt.internal.getPageInfo(Xt.options.pageNumber);this.line("/Dest ["+ne.objId+" 0 R /XYZ 0 "+Ut(0)+" 0]")}this.objEnd()}for(var Be=0;Be<Ft.children.length;Be++)this.renderItems(Ft.children[Be])},yt.outline.line=function(Ft){this.ctx.val+=Ft+`\r
|
|
|
`},yt.outline.makeRef=function(Ft){return Ft.id+" 0 R"},yt.outline.makeString=function(Ft){return"("+yt.internal.pdfEscape(Ft)+")"},yt.outline.objStart=function(Ft){this.ctx.val+=`\r
|
|
|
`+Ft.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},yt.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},yt.outline.count_r=function(Ft,Ut){for(var Ot=0;Ot<Ut.children.length;Ot++)Ft.count++,this.count_r(Ft,Ut.children[Ot]);return Ft.count}}])}(ho.API),function(wt){var gt=[192,193,194,195,196,197,198,199];wt.processJPEG=function(yt,Ft,Ut,Ot,Xt,Jt){var ne,Be=this.decode.DCT_DECODE,Re=null;if(typeof yt=="string"||this.__addimage__.isArrayBuffer(yt)||this.__addimage__.isArrayBufferView(yt)){switch(yt=Xt||yt,yt=this.__addimage__.isArrayBuffer(yt)?new Uint8Array(yt):yt,(ne=function(He){for(var Ze,pe=256*He.charCodeAt(4)+He.charCodeAt(5),jn=He.length,Sn={width:0,height:0,numcomponents:1},Rn=4;Rn<jn;Rn+=2){if(Rn+=pe,gt.indexOf(He.charCodeAt(Rn+1))!==-1){Ze=256*He.charCodeAt(Rn+5)+He.charCodeAt(Rn+6),Sn={width:256*He.charCodeAt(Rn+7)+He.charCodeAt(Rn+8),height:Ze,numcomponents:He.charCodeAt(Rn+9)};break}pe=256*He.charCodeAt(Rn+2)+He.charCodeAt(Rn+3)}return Sn}(yt=this.__addimage__.isArrayBufferView(yt)?this.__addimage__.arrayBufferToBinaryString(yt):yt)).numcomponents){case 1:Jt=this.color_spaces.DEVICE_GRAY;break;case 4:Jt=this.color_spaces.DEVICE_CMYK;break;case 3:Jt=this.color_spaces.DEVICE_RGB}Re={data:yt,width:ne.width,height:ne.height,colorSpace:Jt,bitsPerComponent:8,filter:Be,index:Ft,alias:Ut}}return Re}}(ho.API);var La,td,fc,_h,mo,zf=function(){var wt,gt,yt;function Ft(Ot){var Xt,Jt,ne,Be,Re,He,Ze,pe,jn,Sn,Rn,on,On,mi;for(this.data=Ot,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},He=null;;){switch(Xt=this.readUInt32(),jn=function(){var Di,qi;for(qi=[],Di=0;Di<4;++Di)qi.push(String.fromCharCode(this.data[this.pos++]));return qi}.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(Xt);break;case"fcTL":He&&this.animation.frames.push(He),this.pos+=4,He={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Re=this.readUInt16(),Be=this.readUInt16()||100,He.delay=1e3*Re/Be,He.disposeOp=this.data[this.pos++],He.blendOp=this.data[this.pos++],He.data=[];break;case"IDAT":case"fdAT":for(jn==="fdAT"&&(this.pos+=4,Xt-=4),Ot=(He!=null?He.data:void 0)||this.imgData,on=0;0<=Xt?on<Xt:on>Xt;0<=Xt?++on:--on)Ot.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(Xt),this.transparency.indexed.length>ne)throw new Error("More transparent colors than palette size");if((Sn=ne-this.transparency.indexed.length)>0)for(On=0;0<=Sn?On<Sn:On>Sn;0<=Sn?++On:--On)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Xt)[0];break;case 2:this.transparency.rgb=this.read(Xt)}break;case"tEXt":Ze=(Rn=this.read(Xt)).indexOf(0),pe=String.fromCharCode.apply(String,Rn.slice(0,Ze)),this.text[pe]=String.fromCharCode.apply(String,Rn.slice(Ze+1));break;case"IEND":return He&&this.animation.frames.push(He),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,Jt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Jt,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+=Xt}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ft.prototype.read=function(Ot){var Xt,Jt;for(Jt=[],Xt=0;0<=Ot?Xt<Ot:Xt>Ot;0<=Ot?++Xt:--Xt)Jt.push(this.data[this.pos++]);return Jt},Ft.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ft.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ft.prototype.decodePixels=function(Ot){var Xt=this.pixelBitlength/8,Jt=new Uint8Array(this.width*this.height*Xt),ne=0,Be=this;if(Ot==null&&(Ot=this.imgData),Ot.length===0)return new Uint8Array(0);function Re(He,Ze,pe,jn){var Sn,Rn,on,On,mi,Di,qi,Ir,Wi,ai,Xi,gr,yn,Ln,wi,si,Ar,_i,dr,Mi,tr,fr=Math.ceil((Be.width-He)/pe),so=Math.ceil((Be.height-Ze)/jn),tn=Be.width==fr&&Be.height==so;for(Ln=Xt*fr,gr=tn?Jt:new Uint8Array(Ln*so),Di=Ot.length,yn=0,Rn=0;yn<so&&ne<Di;){switch(Ot[ne++]){case 0:for(On=Ar=0;Ar<Ln;On=Ar+=1)gr[Rn++]=Ot[ne++];break;case 1:for(On=_i=0;_i<Ln;On=_i+=1)Sn=Ot[ne++],mi=On<Xt?0:gr[Rn-Xt],gr[Rn++]=(Sn+mi)%256;break;case 2:for(On=dr=0;dr<Ln;On=dr+=1)Sn=Ot[ne++],on=(On-On%Xt)/Xt,wi=yn&&gr[(yn-1)*Ln+on*Xt+On%Xt],gr[Rn++]=(wi+Sn)%256;break;case 3:for(On=Mi=0;Mi<Ln;On=Mi+=1)Sn=Ot[ne++],on=(On-On%Xt)/Xt,mi=On<Xt?0:gr[Rn-Xt],wi=yn&&gr[(yn-1)*Ln+on*Xt+On%Xt],gr[Rn++]=(Sn+Math.floor((mi+wi)/2))%256;break;case 4:for(On=tr=0;tr<Ln;On=tr+=1)Sn=Ot[ne++],on=(On-On%Xt)/Xt,mi=On<Xt?0:gr[Rn-Xt],yn===0?wi=si=0:(wi=gr[(yn-1)*Ln+on*Xt+On%Xt],si=on&&gr[(yn-1)*Ln+(on-1)*Xt+On%Xt]),qi=mi+wi-si,Ir=Math.abs(qi-mi),ai=Math.abs(qi-wi),Xi=Math.abs(qi-si),Wi=Ir<=ai&&Ir<=Xi?mi:ai<=Xi?wi:si,gr[Rn++]=(Sn+Wi)%256;break;default:throw new Error("Invalid filter algorithm: "+Ot[ne-1])}if(!tn){var En=((Ze+yn*jn)*Be.width+He)*Xt,$n=yn*Ln;for(On=0;On<fr;On+=1){for(var fi=0;fi<Xt;fi+=1)Jt[En++]=gr[$n++];En+=(pe-1)*Xt}}yn++}}return Ot=Qe(Ot),Be.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),Jt},Ft.prototype.decodePalette=function(){var Ot,Xt,Jt,ne,Be,Re,He,Ze,pe;for(Jt=this.palette,Re=this.transparency.indexed||[],Be=new Uint8Array((Re.length||0)+Jt.length),ne=0,Ot=0,Xt=He=0,Ze=Jt.length;He<Ze;Xt=He+=3)Be[ne++]=Jt[Xt],Be[ne++]=Jt[Xt+1],Be[ne++]=Jt[Xt+2],Be[ne++]=(pe=Re[Ot++])!=null?pe:255;return Be},Ft.prototype.copyToImageData=function(Ot,Xt){var Jt,ne,Be,Re,He,Ze,pe,jn,Sn,Rn,on;if(ne=this.colors,Sn=null,Jt=this.hasAlphaChannel,this.palette.length&&(Sn=(on=this._decodedPalette)!=null?on:this._decodedPalette=this.decodePalette(),ne=4,Jt=!0),jn=(Be=Ot.data||Ot).length,He=Sn||Xt,Re=Ze=0,ne===1)for(;Re<jn;)pe=Sn?4*Xt[Re/4]:Ze,Rn=He[pe++],Be[Re++]=Rn,Be[Re++]=Rn,Be[Re++]=Rn,Be[Re++]=Jt?He[pe++]:255,Ze=pe;else for(;Re<jn;)pe=Sn?4*Xt[Re/4]:Ze,Be[Re++]=He[pe++],Be[Re++]=He[pe++],Be[Re++]=He[pe++],Be[Re++]=Jt?He[pe++]:255,Ze=pe},Ft.prototype.decode=function(){var Ot;return Ot=new Uint8Array(this.width*this.height*4),this.copyToImageData(Ot,this.decodePixels()),Ot};var Ut=function(){if(Object.prototype.toString.call(br)==="[object Window]"){try{gt=br.document.createElement("canvas"),yt=gt.getContext("2d")}catch(Ot){return!1}return!0}return!1};return Ut(),wt=function(Ot){var Xt;if(Ut()===!0)return yt.width=Ot.width,yt.height=Ot.height,yt.clearRect(0,0,Ot.width,Ot.height),yt.putImageData(Ot,0,0),(Xt=new Image).src=gt.toDataURL(),Xt;throw new Error("This method requires a Browser with Canvas-capability.")},Ft.prototype.decodeFrames=function(Ot){var Xt,Jt,ne,Be,Re,He,Ze,pe;if(this.animation){for(pe=[],Jt=Re=0,He=(Ze=this.animation.frames).length;Re<He;Jt=++Re)Xt=Ze[Jt],ne=Ot.createImageData(Xt.width,Xt.height),Be=this.decodePixels(new Uint8Array(Xt.data)),this.copyToImageData(ne,Be),Xt.imageData=ne,pe.push(Xt.image=wt(ne));return pe}},Ft.prototype.renderFrame=function(Ot,Xt){var Jt,ne,Be;return Jt=(ne=this.animation.frames)[Xt],Be=ne[Xt-1],Xt===0&&Ot.clearRect(0,0,this.width,this.height),(Be!=null?Be.disposeOp:void 0)===1?Ot.clearRect(Be.xOffset,Be.yOffset,Be.width,Be.height):(Be!=null?Be.disposeOp:void 0)===2&&Ot.putImageData(Be.imageData,Be.xOffset,Be.yOffset),Jt.blendOp===0&&Ot.clearRect(Jt.xOffset,Jt.yOffset,Jt.width,Jt.height),Ot.drawImage(Jt.image,Jt.xOffset,Jt.yOffset)},Ft.prototype.animate=function(Ot){var Xt,Jt,ne,Be,Re,He,Ze=this;return Jt=0,He=this.animation,Be=He.numFrames,ne=He.frames,Re=He.numPlays,(Xt=function(){var pe,jn;if(pe=Jt++%Be,jn=ne[pe],Ze.renderFrame(Ot,pe),Be>1&&Jt/Be<Re)return Ze.animation._timeout=setTimeout(Xt,jn.delay)})()},Ft.prototype.stopAnimation=function(){var Ot;return clearTimeout((Ot=this.animation)!=null?Ot._timeout:void 0)},Ft.prototype.render=function(Ot){var Xt,Jt;return Ot._png&&Ot._png.stopAnimation(),Ot._png=this,Ot.width=this.width,Ot.height=this.height,Xt=Ot.getContext("2d"),this.animation?(this.decodeFrames(Xt),this.animate(Xt)):(Jt=Xt.createImageData(this.width,this.height),this.copyToImageData(Jt,this.decodePixels()),Xt.putImageData(Jt,0,0))},Ft}();function Je(wt){var gt=0;if(wt[gt++]!==71||wt[gt++]!==73||wt[gt++]!==70||wt[gt++]!==56||(wt[gt++]+1&253)!=56||wt[gt++]!==97)throw new Error("Invalid GIF 87a/89a header.");var yt=wt[gt++]|wt[gt++]<<8,Ft=wt[gt++]|wt[gt++]<<8,Ut=wt[gt++],Ot=Ut>>7,Xt=1<<(7&Ut)+1;wt[gt++],wt[gt++];var Jt=null,ne=null;Ot&&(Jt=gt,ne=Xt,gt+=3*Xt);var Be=!0,Re=[],He=0,Ze=null,pe=0,jn=null;for(this.width=yt,this.height=Ft;Be&><wt.length;)switch(wt[gt++]){case 33:switch(wt[gt++]){case 255:if(wt[gt]!==11||wt[gt+1]==78&&wt[gt+2]==69&&wt[gt+3]==84&&wt[gt+4]==83&&wt[gt+5]==67&&wt[gt+6]==65&&wt[gt+7]==80&&wt[gt+8]==69&&wt[gt+9]==50&&wt[gt+10]==46&&wt[gt+11]==48&&wt[gt+12]==3&&wt[gt+13]==1&&wt[gt+16]==0)gt+=14,jn=wt[gt++]|wt[gt++]<<8,gt++;else for(gt+=12;;){if(!((yn=wt[gt++])>=0))throw Error("Invalid block size");if(yn===0)break;gt+=yn}break;case 249:if(wt[gt++]!==4||wt[gt+4]!==0)throw new Error("Invalid graphics extension block.");var Sn=wt[gt++];He=wt[gt++]|wt[gt++]<<8,Ze=wt[gt++],!(1&Sn)&&(Ze=null),pe=Sn>>2&7,gt++;break;case 254:for(;;){if(!((yn=wt[gt++])>=0))throw Error("Invalid block size");if(yn===0)break;gt+=yn}break;default:throw new Error("Unknown graphic control label: 0x"+wt[gt-1].toString(16))}break;case 44:var Rn=wt[gt++]|wt[gt++]<<8,on=wt[gt++]|wt[gt++]<<8,On=wt[gt++]|wt[gt++]<<8,mi=wt[gt++]|wt[gt++]<<8,Di=wt[gt++],qi=Di>>6&1,Ir=1<<(7&Di)+1,Wi=Jt,ai=ne,Xi=!1;Di>>7&&(Xi=!0,Wi=gt,ai=Ir,gt+=3*Ir);var gr=gt;for(gt++;;){var yn;if(!((yn=wt[gt++])>=0))throw Error("Invalid block size");if(yn===0)break;gt+=yn}Re.push({x:Rn,y:on,width:On,height:mi,has_local_palette:Xi,palette_offset:Wi,palette_size:ai,data_offset:gr,data_length:gt-gr,transparent_index:Ze,interlaced:!!qi,delay:He,disposal:pe});break;case 59:Be=!1;break;default:throw new Error("Unknown gif block: 0x"+wt[gt-1].toString(16))}this.numFrames=function(){return Re.length},this.loopCount=function(){return jn},this.frameInfo=function(Ln){if(Ln<0||Ln>=Re.length)throw new Error("Frame index out of range.");return Re[Ln]},this.decodeAndBlitFrameBGRA=function(Ln,wi){var si=this.frameInfo(Ln),Ar=si.width*si.height,_i=new Uint8Array(Ar);Bi(wt,si.data_offset,_i,Ar);var dr=si.palette_offset,Mi=si.transparent_index;Mi===null&&(Mi=256);var tr=si.width,fr=yt-tr,so=tr,tn=4*(si.y*yt+si.x),En=4*((si.y+si.height)*yt+si.x),$n=tn,fi=4*fr;si.interlaced===!0&&(fi+=4*yt*7);for(var ki=8,Ki=0,ir=_i.length;Ki<ir;++Ki){var ji=_i[Ki];if(so===0&&(so=tr,($n+=fi)>=En&&(fi=4*fr+4*yt*(ki-1),$n=tn+(tr+fr)*(ki<<1),ki>>=1)),ji===Mi)$n+=4;else{var Kr=wt[dr+3*ji],no=wt[dr+3*ji+1],Io=wt[dr+3*ji+2];wi[$n++]=Io,wi[$n++]=no,wi[$n++]=Kr,wi[$n++]=255}--so}},this.decodeAndBlitFrameRGBA=function(Ln,wi){var si=this.frameInfo(Ln),Ar=si.width*si.height,_i=new Uint8Array(Ar);Bi(wt,si.data_offset,_i,Ar);var dr=si.palette_offset,Mi=si.transparent_index;Mi===null&&(Mi=256);var tr=si.width,fr=yt-tr,so=tr,tn=4*(si.y*yt+si.x),En=4*((si.y+si.height)*yt+si.x),$n=tn,fi=4*fr;si.interlaced===!0&&(fi+=4*yt*7);for(var ki=8,Ki=0,ir=_i.length;Ki<ir;++Ki){var ji=_i[Ki];if(so===0&&(so=tr,($n+=fi)>=En&&(fi=4*fr+4*yt*(ki-1),$n=tn+(tr+fr)*(ki<<1),ki>>=1)),ji===Mi)$n+=4;else{var Kr=wt[dr+3*ji],no=wt[dr+3*ji+1],Io=wt[dr+3*ji+2];wi[$n++]=Kr,wi[$n++]=no,wi[$n++]=Io,wi[$n++]=255}--so}}}function Bi(wt,gt,yt,Ft){for(var Ut=wt[gt++],Ot=1<<Ut,Xt=Ot+1,Jt=Xt+1,ne=Ut+1,Be=(1<<ne)-1,Re=0,He=0,Ze=0,pe=wt[gt++],jn=new Int32Array(4096),Sn=null;;){for(;Re<16&&pe!==0;)He|=wt[gt++]<<Re,Re+=8,pe===1?pe=wt[gt++]:--pe;if(Re<ne)break;var Rn=He&Be;if(He>>=ne,Re-=ne,Rn!==Ot){if(Rn===Xt)break;for(var on=Rn<Jt?Rn:Sn,On=0,mi=on;mi>Ot;)mi=jn[mi]>>8,++On;var Di=mi;if(Ze+On+(on!==Rn?1:0)>Ft)return void So.log("Warning, gif stream longer than expected.");yt[Ze++]=Di;var qi=Ze+=On;for(on!==Rn&&(yt[Ze++]=Di),mi=on;On--;)mi=jn[mi],yt[--qi]=255&mi,mi>>=8;Sn!==null&&Jt<4096&&(jn[Jt++]=Sn<<8|Di,Jt>=Be+1&&ne<12&&(++ne,Be=Be<<1|1)),Sn=Rn}else Jt=Xt+1,Be=(1<<(ne=Ut+1))-1,Sn=null}return Ze!==Ft&&So.log("Warning, gif stream shorter than expected."),yt}function ff(wt){var gt,yt,Ft,Ut,Ot,Xt=Math.floor,Jt=new Array(64),ne=new Array(64),Be=new Array(64),Re=new Array(64),He=new Array(65535),Ze=new Array(65535),pe=new Array(64),jn=new Array(64),Sn=[],Rn=0,on=7,On=new Array(64),mi=new Array(64),Di=new Array(64),qi=new Array(256),Ir=new Array(2048),Wi=[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],ai=[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],gr=[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],Ln=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],wi=[0,1,2,3,4,5,6,7,8,9,10,11],si=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ar=[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 _i(tn,En){for(var $n=0,fi=0,ki=new Array,Ki=1;Ki<=16;Ki++){for(var ir=1;ir<=tn[Ki];ir++)ki[En[fi]]=[],ki[En[fi]][0]=$n,ki[En[fi]][1]=Ki,fi++,$n++;$n*=2}return ki}function dr(tn){for(var En=tn[0],$n=tn[1]-1;$n>=0;)En&1<<$n&&(Rn|=1<<on),$n--,--on<0&&(Rn==255?(Mi(255),Mi(0)):Mi(Rn),on=7,Rn=0)}function Mi(tn){Sn.push(tn)}function tr(tn){Mi(tn>>8&255),Mi(255&tn)}function fr(tn,En,$n,fi,ki){for(var Ki,ir=ki[0],ji=ki[240],Kr=function(zr,ro){var qr,xo,$o,ls,bs,Zo,js,Fa,xs,qs,Ro=0;for(xs=0;xs<8;++xs){qr=zr[Ro],xo=zr[Ro+1],$o=zr[Ro+2],ls=zr[Ro+3],bs=zr[Ro+4],Zo=zr[Ro+5],js=zr[Ro+6];var Au=qr+(Fa=zr[Ro+7]),Ea=qr-Fa,ds=xo+js,$a=xo-js,Il=$o+Zo,Gh=$o-Zo,ha=ls+bs,yl=ls-bs,Tl=Au+ha,PA=Au-ha,Ih=ds+Il,Ol=ds-Il;zr[Ro]=Tl+Ih,zr[Ro+4]=Tl-Ih;var Ts=.707106781*(Ol+PA);zr[Ro+2]=PA+Ts,zr[Ro+6]=PA-Ts;var Da=.382683433*((Tl=yl+Gh)-(Ol=$a+Ea)),bA=.5411961*Tl+Da,bu=1.306562965*Ol+Da,Th=.707106781*(Ih=Gh+$a),vh=Ea+Th,gs=Ea-Th;zr[Ro+5]=gs+bA,zr[Ro+3]=gs-bA,zr[Ro+1]=vh+bu,zr[Ro+7]=vh-bu,Ro+=8}for(Ro=0,xs=0;xs<8;++xs){qr=zr[Ro],xo=zr[Ro+8],$o=zr[Ro+16],ls=zr[Ro+24],bs=zr[Ro+32],Zo=zr[Ro+40],js=zr[Ro+48];var xl=qr+(Fa=zr[Ro+56]),Su=qr-Fa,Bo=xo+js,Bl=xo-js,eu=$o+Zo,ku=$o-Zo,eh=ls+bs,nh=ls-bs,Ou=xl+eh,ih=xl-eh,_u=Bo+eu,Cl=Bo-eu;zr[Ro]=Ou+_u,zr[Ro+32]=Ou-_u;var Du=.707106781*(Cl+ih);zr[Ro+16]=ih+Du,zr[Ro+48]=ih-Du;var sA=.382683433*((Ou=nh+ku)-(Cl=Bl+Su)),Gu=.5411961*Ou+sA,aA=1.306562965*Cl+sA,rh=.707106781*(_u=ku+Bl),_A=Su+rh,pc=Su-rh;zr[Ro+40]=pc+Gu,zr[Ro+24]=pc-Gu,zr[Ro+8]=_A+aA,zr[Ro+56]=_A-aA,Ro++}for(xs=0;xs<64;++xs)qs=zr[xs]*ro[xs],pe[xs]=qs>0?qs+.5|0:qs-.5|0;return pe}(tn,En),no=0;no<64;++no)jn[Wi[no]]=Kr[no];var Io=jn[0]-$n;$n=jn[0],Io==0?dr(fi[0]):(dr(fi[Ze[Ki=32767+Io]]),dr(He[Ki]));for(var Lo=63;Lo>0&&jn[Lo]==0;)Lo--;if(Lo==0)return dr(ir),$n;for(var Fs,rr=1;rr<=Lo;){for(var _n=rr;jn[rr]==0&&rr<=Lo;)++rr;var Is=rr-_n;if(Is>=16){Fs=Is>>4;for(var Wo=1;Wo<=Fs;++Wo)dr(ji);Is&=15}Ki=32767+jn[rr],dr(ki[(Is<<4)+Ze[Ki]]),dr(He[Ki]),rr++}return Lo!=63&&dr(ir),$n}function so(tn){tn=Math.min(Math.max(tn,1),100),Ot!=tn&&(function(En){for(var $n=[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],fi=0;fi<64;fi++){var ki=Xt(($n[fi]*En+50)/100);ki=Math.min(Math.max(ki,1),255),Jt[Wi[fi]]=ki}for(var Ki=[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],ir=0;ir<64;ir++){var ji=Xt((Ki[ir]*En+50)/100);ji=Math.min(Math.max(ji,1),255),ne[Wi[ir]]=ji}for(var Kr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],no=0,Io=0;Io<8;Io++)for(var Lo=0;Lo<8;Lo++)Be[no]=1/(Jt[Wi[no]]*Kr[Io]*Kr[Lo]*8),Re[no]=1/(ne[Wi[no]]*Kr[Io]*Kr[Lo]*8),no++}(tn<50?Math.floor(5e3/tn):Math.floor(200-2*tn)),Ot=tn)}this.encode=function(tn,En){En&&so(En),Sn=new Array,Rn=0,on=7,tr(65496),tr(65504),tr(16),Mi(74),Mi(70),Mi(73),Mi(70),Mi(0),Mi(1),Mi(1),Mi(0),tr(1),tr(1),Mi(0),Mi(0),function(){tr(65499),tr(132),Mi(0);for(var xo=0;xo<64;xo++)Mi(Jt[xo]);Mi(1);for(var $o=0;$o<64;$o++)Mi(ne[$o])}(),function(xo,$o){tr(65472),tr(17),Mi(8),tr($o),tr(xo),Mi(3),Mi(1),Mi(17),Mi(0),Mi(2),Mi(17),Mi(1),Mi(3),Mi(17),Mi(1)}(tn.width,tn.height),function(){tr(65476),tr(418),Mi(0);for(var xo=0;xo<16;xo++)Mi(ai[xo+1]);for(var $o=0;$o<=11;$o++)Mi(Xi[$o]);Mi(16);for(var ls=0;ls<16;ls++)Mi(gr[ls+1]);for(var bs=0;bs<=161;bs++)Mi(yn[bs]);Mi(1);for(var Zo=0;Zo<16;Zo++)Mi(Ln[Zo+1]);for(var js=0;js<=11;js++)Mi(wi[js]);Mi(17);for(var Fa=0;Fa<16;Fa++)Mi(si[Fa+1]);for(var xs=0;xs<=161;xs++)Mi(Ar[xs])}(),tr(65498),tr(12),Mi(3),Mi(1),Mi(0),Mi(2),Mi(17),Mi(3),Mi(17),Mi(0),Mi(63),Mi(0);var $n=0,fi=0,ki=0;Rn=0,on=7,this.encode.displayName="_encode_";for(var Ki,ir,ji,Kr,no,Io,Lo,Fs,rr,_n=tn.data,Is=tn.width,Wo=tn.height,zr=4*Is,ro=0;ro<Wo;){for(Ki=0;Ki<zr;){for(no=zr*ro+Ki,Lo=-1,Fs=0,rr=0;rr<64;rr++)Io=no+(Fs=rr>>3)*zr+(Lo=4*(7&rr)),ro+Fs>=Wo&&(Io-=zr*(ro+1+Fs-Wo)),Ki+Lo>=zr&&(Io-=Ki+Lo-zr+4),ir=_n[Io++],ji=_n[Io++],Kr=_n[Io++],On[rr]=(Ir[ir]+Ir[ji+256>>0]+Ir[Kr+512>>0]>>16)-128,mi[rr]=(Ir[ir+768>>0]+Ir[ji+1024>>0]+Ir[Kr+1280>>0]>>16)-128,Di[rr]=(Ir[ir+1280>>0]+Ir[ji+1536>>0]+Ir[Kr+1792>>0]>>16)-128;$n=fr(On,Be,$n,gt,Ft),fi=fr(mi,Re,fi,yt,Ut),ki=fr(Di,Re,ki,yt,Ut),Ki+=32}ro+=8}if(on>=0){var qr=[];qr[1]=on+1,qr[0]=(1<<on+1)-1,dr(qr)}return tr(65497),new Uint8Array(Sn)},wt=wt||50,function(){for(var tn=String.fromCharCode,En=0;En<256;En++)qi[En]=tn(En)}(),gt=_i(ai,Xi),yt=_i(Ln,wi),Ft=_i(gr,yn),Ut=_i(si,Ar),function(){for(var tn=1,En=2,$n=1;$n<=15;$n++){for(var fi=tn;fi<En;fi++)Ze[32767+fi]=$n,He[32767+fi]=[],He[32767+fi][1]=$n,He[32767+fi][0]=fi;for(var ki=-(En-1);ki<=-tn;ki++)Ze[32767+ki]=$n,He[32767+ki]=[],He[32767+ki][1]=$n,He[32767+ki][0]=En-1+ki;tn<<=1,En<<=1}}(),function(){for(var tn=0;tn<256;tn++)Ir[tn]=19595*tn,Ir[tn+256>>0]=38470*tn,Ir[tn+512>>0]=7471*tn+32768,Ir[tn+768>>0]=-11059*tn,Ir[tn+1024>>0]=-21709*tn,Ir[tn+1280>>0]=32768*tn+8421375,Ir[tn+1536>>0]=-27439*tn,Ir[tn+1792>>0]=-5329*tn}(),so(wt)}function oA(wt,gt){if(this.pos=0,this.buffer=wt,this.datav=new DataView(wt.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 yu(wt){function gt(ai){if(!ai)throw Error("assert :P")}function yt(ai,Xi,gr){for(var yn=0;4>yn;yn++)if(ai[Xi+yn]!=gr.charCodeAt(yn))return!0;return!1}function Ft(ai,Xi,gr,yn,Ln){for(var wi=0;wi<Ln;wi++)ai[Xi+wi]=gr[yn+wi]}function Ut(ai,Xi,gr,yn){for(var Ln=0;Ln<yn;Ln++)ai[Xi+Ln]=gr}function Ot(ai){return new Int32Array(ai)}function Xt(ai,Xi){for(var gr=[],yn=0;yn<ai;yn++)gr.push(new Xi);return gr}function Jt(ai,Xi){var gr=[];return function yn(Ln,wi,si){for(var Ar=si[wi],_i=0;_i<Ar&&(Ln.push(si.length>wi+1?[]:new Xi),!(si.length<wi+1));_i++)yn(Ln[_i],wi+1,si)}(gr,0,ai),gr}var ne=function(){var ai=this;function Xi(pt,Lt){for(var Wt=1<<Lt-1>>>0;pt&Wt;)Wt>>>=1;return Wt?(pt&Wt-1)+Wt:pt}function gr(pt,Lt,Wt,ie,Me){gt(!(ie%Wt));do pt[Lt+(ie-=Wt)]=Me;while(0<ie)}function yn(pt,Lt,Wt,ie,Me){if(gt(2328>=Me),512>=Me)var ke=Ot(512);else if((ke=Ot(Me))==null)return 0;return function(Ue,Ke,en,hn,Dn,Fi){var Ei,ii,mr=Ke,er=1<<en,di=Ot(16),ui=Ot(16);for(gt(Dn!=0),gt(hn!=null),gt(Ue!=null),gt(0<en),ii=0;ii<Dn;++ii){if(15<hn[ii])return 0;++di[hn[ii]]}if(di[0]==Dn)return 0;for(ui[1]=0,Ei=1;15>Ei;++Ei){if(di[Ei]>1<<Ei)return 0;ui[Ei+1]=ui[Ei]+di[Ei]}for(ii=0;ii<Dn;++ii)Ei=hn[ii],0<hn[ii]&&(Fi[ui[Ei]++]=ii);if(ui[15]==1)return(hn=new Ln).g=0,hn.value=Fi[0],gr(Ue,mr,1,er,hn),er;var pr,Nr=-1,Cr=er-1,No=0,wo=1,Tn=1,Fo=1<<en;for(ii=0,Ei=1,Dn=2;Ei<=en;++Ei,Dn<<=1){if(wo+=Tn<<=1,0>(Tn-=di[Ei]))return 0;for(;0<di[Ei];--di[Ei])(hn=new Ln).g=Ei,hn.value=Fi[ii++],gr(Ue,mr+No,Dn,Fo,hn),No=Xi(No,Ei)}for(Ei=en+1,Dn=2;15>=Ei;++Ei,Dn<<=1){if(wo+=Tn<<=1,0>(Tn-=di[Ei]))return 0;for(;0<di[Ei];--di[Ei]){if(hn=new Ln,(No&Cr)!=Nr){for(mr+=Fo,pr=1<<(Nr=Ei)-en;15>Nr&&!(0>=(pr-=di[Nr]));)++Nr,pr<<=1;er+=Fo=1<<(pr=Nr-en),Ue[Ke+(Nr=No&Cr)].g=pr+en,Ue[Ke+Nr].value=mr-Ke-Nr}hn.g=Ei-en,hn.value=Fi[ii++],gr(Ue,mr+(No>>en),Dn,Fo,hn),No=Xi(No,Ei)}}return wo!=2*ui[15]-1?0:er}(pt,Lt,Wt,ie,Me,ke)}function Ln(){this.value=this.g=0}function wi(){this.value=this.g=0}function si(){this.G=Xt(5,Ln),this.H=Ot(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Xt(Ul,wi)}function Ar(pt,Lt,Wt,ie){gt(pt!=null),gt(Lt!=null),gt(2147483648>ie),pt.Ca=254,pt.I=0,pt.b=-8,pt.Ka=0,pt.oa=Lt,pt.pa=Wt,pt.Jd=Lt,pt.Yc=Wt+ie,pt.Zc=4<=ie?Wt+ie-4+1:Wt,Ki(pt)}function _i(pt,Lt){for(var Wt=0;0<Lt--;)Wt|=ji(pt,128)<<Lt;return Wt}function dr(pt,Lt){var Wt=_i(pt,Lt);return ir(pt)?-Wt:Wt}function Mi(pt,Lt,Wt,ie){var Me,ke=0;for(gt(pt!=null),gt(Lt!=null),gt(4294967288>ie),pt.Sb=ie,pt.Ra=0,pt.u=0,pt.h=0,4<ie&&(ie=4),Me=0;Me<ie;++Me)ke+=Lt[Wt+Me]<<8*Me;pt.Ra=ke,pt.bb=ie,pt.oa=Lt,pt.pa=Wt}function tr(pt){for(;8<=pt.u&&pt.bb<pt.Sb;)pt.Ra>>>=8,pt.Ra+=pt.oa[pt.pa+pt.bb]<<Wu-8>>>0,++pt.bb,pt.u-=8;$n(pt)&&(pt.h=1,pt.u=0)}function fr(pt,Lt){if(gt(0<=Lt),!pt.h&&Lt<=el){var Wt=En(pt)&Pc[Lt];return pt.u+=Lt,tr(pt),Wt}return pt.h=1,pt.u=0}function so(){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 En(pt){return pt.Ra>>>(pt.u&Wu-1)>>>0}function $n(pt){return gt(pt.bb<=pt.Sb),pt.h||pt.bb==pt.Sb&&pt.u>Wu}function fi(pt,Lt){pt.u=Lt,pt.h=$n(pt)}function ki(pt){pt.u>=Dh&&(gt(pt.u>=Dh),tr(pt))}function Ki(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 ir(pt){return _i(pt,1)}function ji(pt,Lt){var Wt=pt.Ca;0>pt.b&&Ki(pt);var ie=pt.b,Me=Wt*Lt>>>8,ke=(pt.I>>>ie>Me)+0;for(ke?(Wt-=Me,pt.I-=Me+1<<ie>>>0):Wt=Me+1,ie=Wt,Me=0;256<=ie;)Me+=8,ie>>=8;return ie=7^Me+su[ie],pt.b-=ie,pt.Ca=(Wt<<ie)-1,ke}function Kr(pt,Lt,Wt){pt[Lt+0]=Wt>>24&255,pt[Lt+1]=Wt>>16&255,pt[Lt+2]=Wt>>8&255,pt[Lt+3]=Wt>>0&255}function no(pt,Lt){return pt[Lt+0]<<0|pt[Lt+1]<<8}function Io(pt,Lt){return no(pt,Lt)|pt[Lt+2]<<16}function Lo(pt,Lt){return no(pt,Lt)|no(pt,Lt+2)<<16}function Fs(pt,Lt){var Wt=1<<Lt;return gt(pt!=null),gt(0<Lt),pt.X=Ot(Wt),pt.X==null?0:(pt.Mb=32-Lt,pt.Xa=Lt,1)}function rr(pt,Lt){gt(pt!=null),gt(Lt!=null),gt(pt.Xa==Lt.Xa),Ft(Lt.X,0,pt.X,0,1<<Lt.Xa)}function _n(){this.X=[],this.Xa=this.Mb=0}function Is(pt,Lt,Wt,ie){gt(Wt!=null),gt(ie!=null);var Me=Wt[0],ke=ie[0];return Me==0&&(Me=(pt*ke+Lt/2)/Lt),ke==0&&(ke=(Lt*Me+pt/2)/pt),0>=Me||0>=ke?0:(Wt[0]=Me,ie[0]=ke,1)}function Wo(pt,Lt){return pt+(1<<Lt)-1>>>Lt}function zr(pt,Lt){return((4278255360&pt)+(4278255360&Lt)>>>0&4278255360)+((16711935&pt)+(16711935&Lt)>>>0&16711935)>>>0}function ro(pt,Lt){ai[Lt]=function(Wt,ie,Me,ke,Ue,Ke,en){var hn;for(hn=0;hn<Ue;++hn){var Dn=ai[pt](Ke[en+hn-1],Me,ke+hn);Ke[en+hn]=zr(Wt[ie+hn],Dn)}}}function qr(){this.ud=this.hd=this.jd=0}function xo(pt,Lt){return((4278124286&(pt^Lt))>>>1)+(pt&Lt)>>>0}function $o(pt){return 0<=pt&&256>pt?pt:0>pt?0:255<pt?255:void 0}function ls(pt,Lt){return $o(pt+(pt-Lt+.5>>1))}function bs(pt,Lt,Wt){return Math.abs(Lt-Wt)-Math.abs(pt-Wt)}function Zo(pt,Lt,Wt,ie,Me,ke,Ue){for(ie=ke[Ue-1],Wt=0;Wt<Me;++Wt)ke[Ue+Wt]=ie=zr(pt[Lt+Wt],ie)}function js(pt,Lt,Wt,ie,Me){var ke;for(ke=0;ke<Wt;++ke){var Ue=pt[Lt+ke],Ke=Ue>>8&255,en=16711935&(en=(en=16711935&Ue)+((Ke<<16)+Ke));ie[Me+ke]=(4278255360&Ue)+en>>>0}}function Fa(pt,Lt){Lt.jd=pt>>0&255,Lt.hd=pt>>8&255,Lt.ud=pt>>16&255}function xs(pt,Lt,Wt,ie,Me,ke){var Ue;for(Ue=0;Ue<ie;++Ue){var Ke=Lt[Wt+Ue],en=Ke>>>8,hn=Ke,Dn=255&(Dn=(Dn=Ke>>>16)+((pt.jd<<24>>24)*(en<<24>>24)>>>5));hn=255&(hn=(hn=hn+((pt.hd<<24>>24)*(en<<24>>24)>>>5))+((pt.ud<<24>>24)*(Dn<<24>>24)>>>5)),Me[ke+Ue]=(4278255360&Ke)+(Dn<<16)+hn}}function qs(pt,Lt,Wt,ie,Me){ai[Lt]=function(ke,Ue,Ke,en,hn,Dn,Fi,Ei,ii){for(en=Fi;en<Ei;++en)for(Fi=0;Fi<ii;++Fi)hn[Dn++]=Me(Ke[ie(ke[Ue++])])},ai[pt]=function(ke,Ue,Ke,en,hn,Dn,Fi){var Ei=8>>ke.b,ii=ke.Ea,mr=ke.K[0],er=ke.w;if(8>Ei)for(ke=(1<<ke.b)-1,er=(1<<Ei)-1;Ue<Ke;++Ue){var di,ui=0;for(di=0;di<ii;++di)di&ke||(ui=ie(en[hn++])),Dn[Fi++]=Me(mr[ui&er]),ui>>=Ei}else ai["VP8LMapColor"+Wt](en,hn,mr,er,Dn,Fi,Ue,Ke,ii)}}function Ro(pt,Lt,Wt,ie,Me){for(Wt=Lt+Wt;Lt<Wt;){var ke=pt[Lt++];ie[Me++]=ke>>16&255,ie[Me++]=ke>>8&255,ie[Me++]=ke>>0&255}}function Au(pt,Lt,Wt,ie,Me){for(Wt=Lt+Wt;Lt<Wt;){var ke=pt[Lt++];ie[Me++]=ke>>16&255,ie[Me++]=ke>>8&255,ie[Me++]=ke>>0&255,ie[Me++]=ke>>24&255}}function Ea(pt,Lt,Wt,ie,Me){for(Wt=Lt+Wt;Lt<Wt;){var ke=(Ue=pt[Lt++])>>16&240|Ue>>12&15,Ue=Ue>>0&240|Ue>>28&15;ie[Me++]=ke,ie[Me++]=Ue}}function ds(pt,Lt,Wt,ie,Me){for(Wt=Lt+Wt;Lt<Wt;){var ke=(Ue=pt[Lt++])>>16&248|Ue>>13&7,Ue=Ue>>5&224|Ue>>3&31;ie[Me++]=ke,ie[Me++]=Ue}}function $a(pt,Lt,Wt,ie,Me){for(Wt=Lt+Wt;Lt<Wt;){var ke=pt[Lt++];ie[Me++]=ke>>0&255,ie[Me++]=ke>>8&255,ie[Me++]=ke>>16&255}}function Il(pt,Lt,Wt,ie,Me,ke){if(ke==0)for(Wt=Lt+Wt;Lt<Wt;)Kr(ie,((ke=pt[Lt++])[0]>>24|ke[1]>>8&65280|ke[2]<<8&16711680|ke[3]<<24)>>>0),Me+=32;else Ft(ie,Me,pt,Lt,Wt)}function Gh(pt,Lt){ai[Lt][0]=ai[pt+"0"],ai[Lt][1]=ai[pt+"1"],ai[Lt][2]=ai[pt+"2"],ai[Lt][3]=ai[pt+"3"],ai[Lt][4]=ai[pt+"4"],ai[Lt][5]=ai[pt+"5"],ai[Lt][6]=ai[pt+"6"],ai[Lt][7]=ai[pt+"7"],ai[Lt][8]=ai[pt+"8"],ai[Lt][9]=ai[pt+"9"],ai[Lt][10]=ai[pt+"10"],ai[Lt][11]=ai[pt+"11"],ai[Lt][12]=ai[pt+"12"],ai[Lt][13]=ai[pt+"13"],ai[Lt][14]=ai[pt+"0"],ai[Lt][15]=ai[pt+"0"]}function ha(pt){return pt==mA||pt==bc||pt==_f||pt==Uu}function yl(){this.eb=[],this.size=this.A=this.fb=0}function Tl(){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 PA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new yl,this.f.kb=new Tl,this.sd=null}function Ih(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ol(){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 Ts(pt){return alert("todo:WebPSamplerProcessPlane"),pt.T}function Da(pt,Lt){var Wt=pt.T,ie=Lt.ba.f.RGBA,Me=ie.eb,ke=ie.fb+pt.ka*ie.A,Ue=Rl[Lt.ba.S],Ke=pt.y,en=pt.O,hn=pt.f,Dn=pt.N,Fi=pt.ea,Ei=pt.W,ii=Lt.cc,mr=Lt.dc,er=Lt.Mc,di=Lt.Nc,ui=pt.ka,pr=pt.ka+pt.T,Nr=pt.U,Cr=Nr+1>>1;for(ui==0?Ue(Ke,en,null,null,hn,Dn,Fi,Ei,hn,Dn,Fi,Ei,Me,ke,null,null,Nr):(Ue(Lt.ec,Lt.fc,Ke,en,ii,mr,er,di,hn,Dn,Fi,Ei,Me,ke-ie.A,Me,ke,Nr),++Wt);ui+2<pr;ui+=2)ii=hn,mr=Dn,er=Fi,di=Ei,Dn+=pt.Rc,Ei+=pt.Rc,ke+=2*ie.A,Ue(Ke,(en+=2*pt.fa)-pt.fa,Ke,en,ii,mr,er,di,hn,Dn,Fi,Ei,Me,ke-ie.A,Me,ke,Nr);return en+=pt.fa,pt.j+pr<pt.o?(Ft(Lt.ec,Lt.fc,Ke,en,Nr),Ft(Lt.cc,Lt.dc,hn,Dn,Cr),Ft(Lt.Mc,Lt.Nc,Fi,Ei,Cr),Wt--):1&pr||Ue(Ke,en,null,null,hn,Dn,Fi,Ei,hn,Dn,Fi,Ei,Me,ke+ie.A,null,null,Nr),Wt}function bA(pt,Lt,Wt){var ie=pt.F,Me=[pt.J];if(ie!=null){var ke=pt.U,Ue=Lt.ba.S,Ke=Ue==Nu||Ue==_f;Lt=Lt.ba.f.RGBA;var en=[0],hn=pt.ka;en[0]=pt.T,pt.Kb&&(hn==0?--en[0]:(--hn,Me[0]-=pt.width),pt.j+pt.ka+pt.T==pt.o&&(en[0]=pt.o-pt.j-hn));var Dn=Lt.eb;hn=Lt.fb+hn*Lt.A,pt=Hs(ie,Me[0],pt.width,ke,en,Dn,hn+(Ke?0:3),Lt.A),gt(Wt==en),pt&&ha(Ue)&&Ll(Dn,hn,Ke,ke,en,Lt.A)}return 0}function bu(pt){var Lt=pt.ma,Wt=Lt.ba.S,ie=11>Wt,Me=Wt==MA||Wt==pu||Wt==Nu||Wt==Ha||Wt==12||ha(Wt);if(Lt.memory=null,Lt.Ib=null,Lt.Jb=null,Lt.Nd=null,!$A(Lt.Oa,pt,Me?11:12))return 0;if(Me&&ha(Wt)&&Qr(),pt.da)alert("todo:use_scaling");else{if(ie){if(Lt.Ib=Ts,pt.Kb){if(Wt=pt.U+1>>1,Lt.memory=Ot(pt.U+2*Wt),Lt.memory==null)return 0;Lt.ec=Lt.memory,Lt.fc=0,Lt.cc=Lt.ec,Lt.dc=Lt.fc+pt.U,Lt.Mc=Lt.cc,Lt.Nc=Lt.dc+Wt,Lt.Ib=Da,Qr()}}else alert("todo:EmitYUV");Me&&(Lt.Jb=bA,ie&&Ri())}if(ie&&!Bt){for(pt=0;256>pt;++pt)xt[pt]=89858*(pt-128)+fd>>dd,te[pt]=-22014*(pt-128)+fd,Pt[pt]=-45773*(pt-128),bt[pt]=113618*(pt-128)+fd>>dd;for(pt=Xh;pt<Vf;++pt)Lt=76283*(pt-16)+fd>>dd,Ce[pt-Xh]=ju(Lt,255),$e[pt-Xh]=ju(Lt+8>>4,15);Bt=1}return 1}function Th(pt){var Lt=pt.ma,Wt=pt.U,ie=pt.T;return gt(!(1&pt.ka)),0>=Wt||0>=ie?0:(Wt=Lt.Ib(pt,Lt),Lt.Jb!=null&&Lt.Jb(pt,Lt,Wt),Lt.Dc+=Wt,1)}function vh(pt){pt.ma.memory=null}function gs(pt,Lt,Wt,ie){return fr(pt,8)!=47?0:(Lt[0]=fr(pt,14)+1,Wt[0]=fr(pt,14)+1,ie[0]=fr(pt,1),fr(pt,3)!=0?0:!pt.h)}function xl(pt,Lt){if(4>pt)return pt+1;var Wt=pt-2>>1;return(2+(1&pt)<<Wt)+fr(Lt,Wt)+1}function Su(pt,Lt){return 120<Lt?Lt-120:1<=(Wt=((Wt=cd[Lt-1])>>4)*pt+(8-(15&Wt)))?Wt:1;var Wt}function Bo(pt,Lt,Wt){var ie=En(Wt),Me=pt[Lt+=255&ie].g-8;return 0<Me&&(fi(Wt,Wt.u+8),ie=En(Wt),Lt+=pt[Lt].value,Lt+=ie&(1<<Me)-1),fi(Wt,Wt.u+pt[Lt].g),pt[Lt].value}function Bl(pt,Lt,Wt){return Wt.g+=pt.g,Wt.value+=pt.value<<Lt>>>0,gt(8>=Wt.g),pt.g}function eu(pt,Lt,Wt){var ie=pt.xc;return gt((Lt=ie==0?0:pt.vc[pt.md*(Wt>>ie)+(Lt>>ie)])<pt.Wb),pt.Ya[Lt]}function ku(pt,Lt,Wt,ie){var Me=pt.ab,ke=pt.c*Lt,Ue=pt.C;Lt=Ue+Lt;var Ke=Wt,en=ie;for(ie=pt.Ta,Wt=pt.Ua;0<Me--;){var hn=pt.gc[Me],Dn=Ue,Fi=Lt,Ei=Ke,ii=en,mr=(en=ie,Ke=Wt,hn.Ea);switch(gt(Dn<Fi),gt(Fi<=hn.nc),hn.hc){case 2:Vu(Ei,ii,(Fi-Dn)*mr,en,Ke);break;case 0:var er=Dn,di=Fi,ui=en,pr=Ke,Nr=(Fo=hn).Ea;er==0&&(nl(Ei,ii,null,null,1,ui,pr),Zo(Ei,ii+1,0,0,Nr-1,ui,pr+1),ii+=Nr,pr+=Nr,++er);for(var Cr=1<<Fo.b,No=Cr-1,wo=Wo(Nr,Fo.b),Tn=Fo.K,Fo=Fo.w+(er>>Fo.b)*wo;er<di;){var Na=Tn,Ia=Fo,Aa=1;for(qA(Ei,ii,ui,pr-Nr,1,ui,pr);Aa<Nr;){var sa=(Aa&~No)+Cr;sa>Nr&&(sa=Nr),(0,ct[Na[Ia++]>>8&15])(Ei,ii+ +Aa,ui,pr+Aa-Nr,sa-Aa,ui,pr+Aa),Aa=sa}ii+=Nr,pr+=Nr,++er&No||(Fo+=wo)}Fi!=hn.nc&&Ft(en,Ke-mr,en,Ke+(Fi-Dn-1)*mr,mr);break;case 1:for(mr=Ei,di=ii,Nr=(Ei=hn.Ea)-(pr=Ei&~(ui=(ii=1<<hn.b)-1)),er=Wo(Ei,hn.b),Cr=hn.K,hn=hn.w+(Dn>>hn.b)*er;Dn<Fi;){for(No=Cr,wo=hn,Tn=new qr,Fo=di+pr,Na=di+Ei;di<Fo;)Fa(No[wo++],Tn),At(Tn,mr,di,ii,en,Ke),di+=ii,Ke+=ii;di<Na&&(Fa(No[wo++],Tn),At(Tn,mr,di,Nr,en,Ke),di+=Nr,Ke+=Nr),++Dn&ui||(hn+=er)}break;case 3:if(Ei==en&&ii==Ke&&0<hn.b){for(di=en,Ei=mr=Ke+(Fi-Dn)*mr-(pr=(Fi-Dn)*Wo(hn.Ea,hn.b)),ii=en,ui=Ke,er=[],pr=(Nr=pr)-1;0<=pr;--pr)er[pr]=ii[ui+pr];for(pr=Nr-1;0<=pr;--pr)di[Ei+pr]=er[pr];fu(hn,Dn,Fi,en,mr,en,Ke)}else fu(hn,Dn,Fi,Ei,ii,en,Ke)}Ke=ie,en=Wt}en!=Wt&&Ft(ie,Wt,Ke,en,ke)}function eh(pt,Lt){var Wt=pt.V,ie=pt.Ba+pt.c*pt.C,Me=Lt-pt.C;if(gt(Lt<=pt.l.o),gt(16>=Me),0<Me){var ke=pt.l,Ue=pt.Ta,Ke=pt.Ua,en=ke.width;if(ku(pt,Me,Wt,ie),Me=Ke=[Ke],gt((Wt=pt.C)<(ie=Lt)),gt(ke.v<ke.va),ie>ke.o&&(ie=ke.o),Wt<ke.j){var hn=ke.j-Wt;Wt=ke.j,Me[0]+=hn*en}if(Wt>=ie?Wt=0:(Me[0]+=4*ke.v,ke.ka=Wt-ke.j,ke.U=ke.va-ke.v,ke.T=ie-Wt,Wt=1),Wt){if(Ke=Ke[0],11>(Wt=pt.ca).S){var Dn=Wt.f.RGBA,Fi=(ie=Wt.S,Me=ke.U,ke=ke.T,hn=Dn.eb,Dn.A),Ei=ke;for(Dn=Dn.fb+pt.Ma*Dn.A;0<Ei--;){var ii=Ue,mr=Ke,er=Me,di=hn,ui=Dn;switch(ie){case wl:mt(ii,mr,er,di,ui);break;case MA:Dt(ii,mr,er,di,ui);break;case mA:Dt(ii,mr,er,di,ui),Ll(di,ui,0,er,1,0);break;case Ph:ae(ii,mr,er,di,ui);break;case pu:Il(ii,mr,er,di,ui,1);break;case bc:Il(ii,mr,er,di,ui,1),Ll(di,ui,0,er,1,0);break;case Nu:Il(ii,mr,er,di,ui,0);break;case _f:Il(ii,mr,er,di,ui,0),Ll(di,ui,1,er,1,0);break;case Ha:qt(ii,mr,er,di,ui);break;case Uu:qt(ii,mr,er,di,ui),Zs(di,ui,er,1,0);break;case au:le(ii,mr,er,di,ui);break;default:gt(0)}Ke+=en,Dn+=Fi}pt.Ma+=ke}else alert("todo:EmitRescaledRowsYUVA");gt(pt.Ma<=Wt.height)}}pt.C=Lt,gt(pt.C<=pt.i)}function nh(pt){var Lt;if(0<pt.ua)return 0;for(Lt=0;Lt<pt.Wb;++Lt){var Wt=pt.Ya[Lt].G,ie=pt.Ya[Lt].H;if(0<Wt[1][ie[1]+0].g||0<Wt[2][ie[2]+0].g||0<Wt[3][ie[3]+0].g)return 0}return 1}function Ou(pt,Lt,Wt,ie,Me,ke){if(pt.Z!=0){var Ue=pt.qd,Ke=pt.rd;for(gt(rc[pt.Z]!=null);Lt<Wt;++Lt)rc[pt.Z](Ue,Ke,ie,Me,ie,Me,ke),Ue=ie,Ke=Me,Me+=ke;pt.qd=Ue,pt.rd=Ke}}function ih(pt,Lt){var Wt=pt.l.ma,ie=Wt.Z==0||Wt.Z==1?pt.l.j:pt.C;if(ie=pt.C<ie?ie:pt.C,gt(Lt<=pt.l.o),Lt>ie){var Me=pt.l.width,ke=Wt.ca,Ue=Wt.tb+Me*ie,Ke=pt.V,en=pt.Ba+pt.c*ie,hn=pt.gc;gt(pt.ab==1),gt(hn[0].hc==3),it(hn[0],ie,Lt,Ke,en,ke,Ue),Ou(Wt,ie,Lt,ke,Ue,Me)}pt.C=pt.Ma=Lt}function _u(pt,Lt,Wt,ie,Me,ke,Ue){var Ke=pt.$/ie,en=pt.$%ie,hn=pt.m,Dn=pt.s,Fi=Wt+pt.$,Ei=Fi;Me=Wt+ie*Me;var ii=Wt+ie*ke,mr=280+Dn.ua,er=pt.Pb?Ke:16777216,di=0<Dn.ua?Dn.Wa:null,ui=Dn.wc,pr=Fi<ii?eu(Dn,en,Ke):null;gt(pt.C<ke),gt(ii<=Me);var Nr=!1;t:for(;;){for(;Nr||Fi<ii;){var Cr=0;if(Ke>=er){var No=Fi-Wt;gt((er=pt).Pb),er.wd=er.m,er.xd=No,0<er.s.ua&&rr(er.s.Wa,er.s.vb),er=Ke+Od}if(en&ui||(pr=eu(Dn,en,Ke)),gt(pr!=null),pr.Qb&&(Lt[Fi]=pr.qb,Nr=!0),!Nr)if(ki(hn),pr.jc){Cr=hn,No=Lt;var wo=Fi,Tn=pr.pd[En(Cr)&Ul-1];gt(pr.jc),256>Tn.g?(fi(Cr,Cr.u+Tn.g),No[wo]=Tn.value,Cr=0):(fi(Cr,Cr.u+Tn.g-256),gt(256<=Tn.value),Cr=Tn.value),Cr==0&&(Nr=!0)}else Cr=Bo(pr.G[0],pr.H[0],hn);if(hn.h)break;if(Nr||256>Cr){if(!Nr)if(pr.nd)Lt[Fi]=(pr.qb|Cr<<8)>>>0;else{if(ki(hn),Nr=Bo(pr.G[1],pr.H[1],hn),ki(hn),No=Bo(pr.G[2],pr.H[2],hn),wo=Bo(pr.G[3],pr.H[3],hn),hn.h)break;Lt[Fi]=(wo<<24|Nr<<16|Cr<<8|No)>>>0}if(Nr=!1,++Fi,++en>=ie&&(en=0,++Ke,Ue!=null&&Ke<=ke&&!(Ke%16)&&Ue(pt,Ke),di!=null))for(;Ei<Fi;)Cr=Lt[Ei++],di.X[(506832829*Cr&4294967295)>>>di.Mb]=Cr}else if(280>Cr){if(Cr=xl(Cr-256,hn),No=Bo(pr.G[4],pr.H[4],hn),ki(hn),No=Su(ie,No=xl(No,hn)),hn.h)break;if(Fi-Wt<No||Me-Fi<Cr)break t;for(wo=0;wo<Cr;++wo)Lt[Fi+wo]=Lt[Fi+wo-No];for(Fi+=Cr,en+=Cr;en>=ie;)en-=ie,++Ke,Ue!=null&&Ke<=ke&&!(Ke%16)&&Ue(pt,Ke);if(gt(Fi<=Me),en&ui&&(pr=eu(Dn,en,Ke)),di!=null)for(;Ei<Fi;)Cr=Lt[Ei++],di.X[(506832829*Cr&4294967295)>>>di.Mb]=Cr}else{if(!(Cr<mr))break t;for(Nr=Cr-280,gt(di!=null);Ei<Fi;)Cr=Lt[Ei++],di.X[(506832829*Cr&4294967295)>>>di.Mb]=Cr;Cr=Fi,gt(!(Nr>>>(No=di).Xa)),Lt[Cr]=No.X[Nr],Nr=!0}Nr||gt(hn.h==$n(hn))}if(pt.Pb&&hn.h&&Fi<Me)gt(pt.m.h),pt.a=5,pt.m=pt.wd,pt.$=pt.xd,0<pt.s.ua&&rr(pt.s.vb,pt.s.Wa);else{if(hn.h)break t;Ue!=null&&Ue(pt,Ke>ke?ke:Ke),pt.a=0,pt.$=Fi-Wt}return 1}return pt.a=3,0}function Cl(pt){gt(pt!=null),pt.vc=null,pt.yc=null,pt.Ya=null;var Lt=pt.Wa;Lt!=null&&(Lt.X=null),pt.vb=null,gt(pt!=null)}function Du(){var pt=new ld;return pt==null?null:(pt.a=0,pt.xb=ic,Gh("Predictor","VP8LPredictors"),Gh("Predictor","VP8LPredictors_C"),Gh("PredictorAdd","VP8LPredictorsAdd"),Gh("PredictorAdd","VP8LPredictorsAdd_C"),Vu=js,At=xs,mt=Ro,Dt=Au,qt=Ea,le=ds,ae=$a,ai.VP8LMapColor32b=EA,ai.VP8LMapColor8b=ot,pt)}function sA(pt,Lt,Wt,ie,Me){var ke=1,Ue=[pt],Ke=[Lt],en=ie.m,hn=ie.s,Dn=null,Fi=0;t:for(;;){if(Wt)for(;ke&&fr(en,1);){var Ei=Ue,ii=Ke,mr=ie,er=1,di=mr.m,ui=mr.gc[mr.ab],pr=fr(di,2);if(mr.Oc&1<<pr)ke=0;else{switch(mr.Oc|=1<<pr,ui.hc=pr,ui.Ea=Ei[0],ui.nc=ii[0],ui.K=[null],++mr.ab,gt(4>=mr.ab),pr){case 0:case 1:ui.b=fr(di,3)+2,er=sA(Wo(ui.Ea,ui.b),Wo(ui.nc,ui.b),0,mr,ui.K),ui.K=ui.K[0];break;case 3:var Nr,Cr=fr(di,8)+1,No=16<Cr?0:4<Cr?1:2<Cr?2:3;if(Ei[0]=Wo(ui.Ea,No),ui.b=No,Nr=er=sA(Cr,1,0,mr,ui.K)){var wo,Tn=Cr,Fo=ui,Na=1<<(8>>Fo.b),Ia=Ot(Na);if(Ia==null)Nr=0;else{var Aa=Fo.K[0],sa=Fo.w;for(Ia[0]=Fo.K[0][0],wo=1;wo<1*Tn;++wo)Ia[wo]=zr(Aa[sa+wo],Ia[wo-1]);for(;wo<4*Na;++wo)Ia[wo]=0;Fo.K[0]=null,Fo.K[0]=Ia,Nr=1}}er=Nr;break;case 2:break;default:gt(0)}ke=er}}if(Ue=Ue[0],Ke=Ke[0],ke&&fr(en,1)&&!(ke=1<=(Fi=fr(en,4))&&11>=Fi)){ie.a=3;break t}var ia;if(ia=ke)e:{var ya,Js,oh,IA=ie,Yu=Ue,TA=Ke,za=Fi,kA=Wt,OA=IA.m,sh=IA.s,bh=[null],vA=1,Lc=0,gd=Gf[za];n:for(;;){if(kA&&fr(OA,1)){var pl=fr(OA,3)+2,rf=Wo(Yu,pl),pd=Wo(TA,pl),Yf=rf*pd;if(!sA(rf,pd,0,IA,bh))break n;for(bh=bh[0],sh.xc=pl,ya=0;ya<Yf;++ya){var md=bh[ya]>>8&65535;bh[ya]=md,md>=vA&&(vA=md+1)}}if(OA.h)break n;for(Js=0;5>Js;++Js){var xu=vf[Js];!Js&&0<za&&(xu+=1<<za),Lc<xu&&(Lc=xu)}var Vg=Xt(vA*gd,Ln),Bp=vA,Yg=Xt(Bp,si);if(Yg==null)var yA=null;else gt(65536>=Bp),yA=Yg;var Bg=Ot(Lc);if(yA==null||Bg==null||Vg==null){IA.a=1;break n}var Xg=Vg;for(ya=oh=0;ya<vA;++ya){var mu=yA[ya],wA=mu.G,Qu=mu.H,il=0,Xf=1,Zg=0;for(Js=0;5>Js;++Js){xu=vf[Js],wA[Js]=Xg,Qu[Js]=oh,!Js&&0<za&&(xu+=1<<za);r:{var Cg,Zf=xu,Jf=IA,Yr=Bg,Sf=Xg,Pg=oh,Jg=0,vd=Jf.m,Cp=fr(vd,1);if(Ut(Yr,0,0,Zf),Cp){var xf=fr(vd,1)+1,em=fr(vd,1),l0=fr(vd,em==0?1:8);Yr[l0]=1,xf==2&&(Yr[l0=fr(vd,8)]=1);var DA=1}else{var Pp=Ot(19),bp=fr(vd,4)+4;if(19<bp){Jf.a=3;var Ls=0;break r}for(Cg=0;Cg<bp;++Cg)Pp[kd[Cg]]=fr(vd,3);var jA=void 0,bg=void 0,Lg=Jf,u0=Pp,of=Zf,SA=Yr,$f=0,sf=Lg.m,h0=8,$g=Xt(128,Ln);i:for(;yn($g,0,7,u0,19);){if(fr(sf,1)){var Lp=2+2*fr(sf,3);if((jA=2+fr(sf,Lp))>of)break i}else jA=of;for(bg=0;bg<of&&jA--;){ki(sf);var Fp=$g[0+(127&En(sf))];fi(sf,sf.u+Fp.g);var qf=Fp.value;if(16>qf)SA[bg++]=qf,qf!=0&&(h0=qf);else{var A0=qf==16,c0=qf-16,d0=tc[c0],qg=fr(sf,Sg[c0])+d0;if(bg+qg>of)break i;for(var tp=A0?h0:0;0<qg--;)SA[bg++]=tp}}$f=1;break i}$f||(Lg.a=3),DA=$f}(DA=DA&&!vd.h)&&(Jg=yn(Sf,Pg,8,Yr,Zf)),DA&&Jg!=0?Ls=Jg:(Jf.a=3,Ls=0)}if(Ls==0)break n;if(Xf&&yf[Js]==1&&(Xf=Xg[oh].g==0),il+=Xg[oh].g,oh+=Ls,3>=Js){var Fg,f0=Bg[0];for(Fg=1;Fg<xu;++Fg)Bg[Fg]>f0&&(f0=Bg[Fg]);Zg+=f0}}if(mu.nd=Xf,mu.Qb=0,Xf&&(mu.qb=(wA[3][Qu[3]+0].value<<24|wA[1][Qu[1]+0].value<<16|wA[2][Qu[2]+0].value)>>>0,il==0&&256>wA[0][Qu[0]+0].value&&(mu.Qb=1,mu.qb+=wA[0][Qu[0]+0].value<<8)),mu.jc=!mu.Qb&&6>Zg,mu.jc){var Eg,Qd=mu;for(Eg=0;Eg<Ul;++Eg){var yd=Eg,Rd=Qd.pd[yd],Bf=Qd.G[0][Qd.H[0]+yd];256<=Bf.value?(Rd.g=Bf.g+256,Rd.value=Bf.value):(Rd.g=0,Rd.value=0,yd>>=Bl(Bf,8,Rd),yd>>=Bl(Qd.G[1][Qd.H[1]+yd],16,Rd),yd>>=Bl(Qd.G[2][Qd.H[2]+yd],0,Rd),Bl(Qd.G[3][Qd.H[3]+yd],24,Rd))}}}sh.vc=bh,sh.Wb=vA,sh.Ya=yA,sh.yc=Vg,ia=1;break e}ia=0}if(!(ke=ia)){ie.a=3;break t}if(0<Fi){if(hn.ua=1<<Fi,!Fs(hn.Wa,Fi)){ie.a=1,ke=0;break t}}else hn.ua=0;var Ep=ie,Ru=Ue,Mp=Ke,ep=Ep.s,oc=ep.xc;if(Ep.c=Ru,Ep.i=Mp,ep.md=Wo(Ru,oc),ep.wc=oc==0?-1:(1<<oc)-1,Wt){ie.xb=NA;break t}if((Dn=Ot(Ue*Ke))==null){ie.a=1,ke=0;break t}ke=(ke=_u(ie,Dn,0,Ue,Ke,Ke,null))&&!en.h;break t}return ke?(Me!=null?Me[0]=Dn:(gt(Dn==null),gt(Wt)),ie.$=0,Wt||Cl(hn)):Cl(hn),ke}function Gu(pt,Lt){var Wt=pt.c*pt.i,ie=Wt+Lt+16*Lt;return gt(pt.c<=Lt),pt.V=Ot(ie),pt.V==null?(pt.Ta=null,pt.Ua=0,pt.a=1,0):(pt.Ta=pt.V,pt.Ua=pt.Ba+Wt+Lt,1)}function aA(pt,Lt){var Wt=pt.C,ie=Lt-Wt,Me=pt.V,ke=pt.Ba+pt.c*Wt;for(gt(Lt<=pt.l.o);0<ie;){var Ue=16<ie?16:ie,Ke=pt.l.ma,en=pt.l.width,hn=en*Ue,Dn=Ke.ca,Fi=Ke.tb+en*Wt,Ei=pt.Ta,ii=pt.Ua;ku(pt,Ue,Me,ke),Ca(Ei,ii,Dn,Fi,hn),Ou(Ke,Wt,Wt+Ue,Dn,Fi,en),ie-=Ue,Me+=Ue*pt.c,Wt+=Ue}gt(Wt==Lt),pt.C=pt.Ma=Lt}function rh(){this.ub=this.yd=this.td=this.Rb=0}function _A(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function pc(){this.Fb=this.Bb=this.Cb=0,this.Zb=Ot(4),this.Lb=Ot(4)}function Pl(){this.Yb=function(){var pt=[];return function Lt(Wt,ie,Me){for(var ke=Me[ie],Ue=0;Ue<ke&&(Wt.push(Me.length>ie+1?[]:0),!(Me.length<ie+1));Ue++)Lt(Wt[Ue],ie+1,Me)}(pt,0,[3,11]),pt}()}function mc(){this.jb=Ot(3),this.Wc=Jt([4,8],Pl),this.Xc=Jt([4,17],Pl)}function GA(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Ot(4),this.od=new Ot(4)}function lA(){this.ld=this.La=this.dd=this.tc=0}function Dc(){this.Na=this.la=0}function Zd(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function KA(){this.ad=Ot(384),this.Za=0,this.Ob=Ot(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function pf(){this.uc=this.M=this.Nb=0,this.wa=Array(new lA),this.Y=0,this.ya=Array(new KA),this.aa=0,this.l=new jc}function WA(){this.y=Ot(16),this.f=Ot(8),this.ea=Ot(8)}function yh(){this.cb=this.a=0,this.sc="",this.m=new so,this.Od=new rh,this.Kc=new _A,this.ed=new GA,this.Qa=new pc,this.Ic=this.$c=this.Aa=0,this.D=new pf,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Xt(8,so),this.ia=0,this.pb=Xt(4,Zd),this.Pa=new mc,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new WA),this.Hd=0,this.rb=Array(new Dc),this.sb=0,this.wa=Array(new lA),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 KA),this.L=this.aa=0,this.gd=Jt([4,2],lA),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 jc(){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 Jd(){var pt=new yh;return pt!=null&&(pt.a=0,pt.sc="OK",pt.cb=0,pt.Xb=0,lu||(lu=uA)),pt}function bl(pt,Lt,Wt){return pt.a==0&&(pt.a=Lt,pt.sc=Wt,pt.cb=0),0}function vc(pt,Lt,Wt){return 3<=Wt&&pt[Lt+0]==157&&pt[Lt+1]==1&&pt[Lt+2]==42}function qa(pt,Lt){if(pt==null)return 0;if(pt.a=0,pt.sc="OK",Lt==null)return bl(pt,2,"null VP8Io passed to VP8GetHeaders()");var Wt=Lt.data,ie=Lt.w,Me=Lt.ha;if(4>Me)return bl(pt,7,"Truncated header.");var ke=Wt[ie+0]|Wt[ie+1]<<8|Wt[ie+2]<<16,Ue=pt.Od;if(Ue.Rb=!(1&ke),Ue.td=ke>>1&7,Ue.yd=ke>>4&1,Ue.ub=ke>>5,3<Ue.td)return bl(pt,3,"Incorrect keyframe parameters.");if(!Ue.yd)return bl(pt,4,"Frame not displayable.");ie+=3,Me-=3;var Ke=pt.Kc;if(Ue.Rb){if(7>Me)return bl(pt,7,"cannot parse picture header");if(!vc(Wt,ie,Me))return bl(pt,3,"Bad code word");Ke.c=16383&(Wt[ie+4]<<8|Wt[ie+3]),Ke.Td=Wt[ie+4]>>6,Ke.i=16383&(Wt[ie+6]<<8|Wt[ie+5]),Ke.Ud=Wt[ie+6]>>6,ie+=7,Me-=7,pt.za=Ke.c+15>>4,pt.Ub=Ke.i+15>>4,Lt.width=Ke.c,Lt.height=Ke.i,Lt.Da=0,Lt.j=0,Lt.v=0,Lt.va=Lt.width,Lt.o=Lt.height,Lt.da=0,Lt.ib=Lt.width,Lt.hb=Lt.height,Lt.U=Lt.width,Lt.T=Lt.height,Ut((ke=pt.Pa).jb,0,255,ke.jb.length),gt((ke=pt.Qa)!=null),ke.Cb=0,ke.Bb=0,ke.Fb=1,Ut(ke.Zb,0,0,ke.Zb.length),Ut(ke.Lb,0,0,ke.Lb)}if(Ue.ub>Me)return bl(pt,7,"bad partition length");Ar(ke=pt.m,Wt,ie,Ue.ub),ie+=Ue.ub,Me-=Ue.ub,Ue.Rb&&(Ke.Ld=ir(ke),Ke.Kd=ir(ke)),Ke=pt.Qa;var en,hn=pt.Pa;if(gt(ke!=null),gt(Ke!=null),Ke.Cb=ir(ke),Ke.Cb){if(Ke.Bb=ir(ke),ir(ke)){for(Ke.Fb=ir(ke),en=0;4>en;++en)Ke.Zb[en]=ir(ke)?dr(ke,7):0;for(en=0;4>en;++en)Ke.Lb[en]=ir(ke)?dr(ke,6):0}if(Ke.Bb)for(en=0;3>en;++en)hn.jb[en]=ir(ke)?_i(ke,8):255}else Ke.Bb=0;if(ke.Ka)return bl(pt,3,"cannot parse segment header");if((Ke=pt.ed).zd=ir(ke),Ke.Tb=_i(ke,6),Ke.wb=_i(ke,3),Ke.Pc=ir(ke),Ke.Pc&&ir(ke)){for(hn=0;4>hn;++hn)ir(ke)&&(Ke.vd[hn]=dr(ke,6));for(hn=0;4>hn;++hn)ir(ke)&&(Ke.od[hn]=dr(ke,6))}if(pt.L=Ke.Tb==0?0:Ke.zd?1:2,ke.Ka)return bl(pt,3,"cannot parse filter header");var Dn=Me;if(Me=en=ie,ie=en+Dn,Ke=Dn,pt.Xb=(1<<_i(pt.m,2))-1,Dn<3*(hn=pt.Xb))Wt=7;else{for(en+=3*hn,Ke-=3*hn,Dn=0;Dn<hn;++Dn){var Fi=Wt[Me+0]|Wt[Me+1]<<8|Wt[Me+2]<<16;Fi>Ke&&(Fi=Ke),Ar(pt.Jc[+Dn],Wt,en,Fi),en+=Fi,Ke-=Fi,Me+=3}Ar(pt.Jc[+hn],Wt,en,Ke),Wt=en<ie?0:5}if(Wt!=0)return bl(pt,Wt,"cannot parse partitions");for(Wt=_i(en=pt.m,7),Me=ir(en)?dr(en,4):0,ie=ir(en)?dr(en,4):0,Ke=ir(en)?dr(en,4):0,hn=ir(en)?dr(en,4):0,en=ir(en)?dr(en,4):0,Dn=pt.Qa,Fi=0;4>Fi;++Fi){if(Dn.Cb){var Ei=Dn.Zb[Fi];Dn.Fb||(Ei+=Wt)}else{if(0<Fi){pt.pb[Fi]=pt.pb[0];continue}Ei=Wt}var ii=pt.pb[Fi];ii.Sc[0]=ec[ju(Ei+Me,127)],ii.Sc[1]=Xl[ju(Ei+0,127)],ii.Eb[0]=2*ec[ju(Ei+ie,127)],ii.Eb[1]=101581*Xl[ju(Ei+Ke,127)]>>16,8>ii.Eb[1]&&(ii.Eb[1]=8),ii.Qc[0]=ec[ju(Ei+hn,117)],ii.Qc[1]=Xl[ju(Ei+en,127)],ii.lc=Ei+en}if(!Ue.Rb)return bl(pt,4,"Not a key frame.");for(ir(ke),Ue=pt.Pa,Wt=0;4>Wt;++Wt){for(Me=0;8>Me;++Me)for(ie=0;3>ie;++ie)for(Ke=0;11>Ke;++Ke)hn=ji(ke,Wf[Wt][Me][ie][Ke])?_i(ke,8):Dd[Wt][Me][ie][Ke],Ue.Wc[Wt][Me].Yb[ie][Ke]=hn;for(Me=0;17>Me;++Me)Ue.Xc[Wt][Me]=Ue.Wc[Wt][xp[Me]]}return pt.kc=ir(ke),pt.kc&&(pt.Bd=_i(ke,8)),pt.cb=1}function uA(pt,Lt,Wt,ie,Me,ke,Ue){var Ke=Lt[Me].Yb[Wt];for(Wt=0;16>Me;++Me){if(!ji(pt,Ke[Wt+0]))return Me;for(;!ji(pt,Ke[Wt+1]);)if(Ke=Lt[++Me].Yb[0],Wt=0,Me==16)return 16;var en=Lt[Me+1].Yb;if(ji(pt,Ke[Wt+2])){var hn=pt,Dn=0;if(ji(hn,(Ei=Ke)[(Fi=Wt)+3]))if(ji(hn,Ei[Fi+6])){for(Ke=0,Fi=2*(Dn=ji(hn,Ei[Fi+8]))+(Ei=ji(hn,Ei[Fi+9+Dn])),Dn=0,Ei=Kf[Fi];Ei[Ke];++Ke)Dn+=Dn+ji(hn,Ei[Ke]);Dn+=3+(8<<Fi)}else ji(hn,Ei[Fi+7])?(Dn=7+2*ji(hn,165),Dn+=ji(hn,145)):Dn=5+ji(hn,159);else Dn=ji(hn,Ei[Fi+4])?3+ji(hn,Ei[Fi+5]):2;Ke=en[2]}else Dn=1,Ke=en[1];en=Ue+Sp[Me],0>(hn=pt).b&&Ki(hn);var Fi,Ei=hn.b,ii=(Fi=hn.Ca>>1)-(hn.I>>Ei)>>31;--hn.b,hn.Ca+=ii,hn.Ca|=1,hn.I-=(Fi+1&ii)<<Ei,ke[en]=((Dn^ii)-ii)*ie[(0<Me)+0]}return 16}function yc(pt){var Lt=pt.rb[pt.sb-1];Lt.la=0,Lt.Na=0,Ut(pt.zc,0,0,pt.zc.length),pt.ja=0}function Cd(pt,Lt){if(pt==null)return 0;if(Lt==null)return bl(pt,2,"NULL VP8Io parameter in VP8Decode().");if(!pt.cb&&!qa(pt,Lt))return 0;if(gt(pt.cb),Lt.ac==null||Lt.ac(Lt)){Lt.ob&&(pt.L=0);var Wt=rn[pt.L];if(pt.L==2?(pt.yb=0,pt.zb=0):(pt.yb=Lt.v-Wt>>4,pt.zb=Lt.j-Wt>>4,0>pt.yb&&(pt.yb=0),0>pt.zb&&(pt.zb=0)),pt.Va=Lt.o+15+Wt>>4,pt.Hb=Lt.va+15+Wt>>4,pt.Hb>pt.za&&(pt.Hb=pt.za),pt.Va>pt.Ub&&(pt.Va=pt.Ub),0<pt.L){var ie=pt.ed;for(Wt=0;4>Wt;++Wt){var Me;if(pt.Qa.Cb){var ke=pt.Qa.Lb[Wt];pt.Qa.Fb||(ke+=ie.Tb)}else ke=ie.Tb;for(Me=0;1>=Me;++Me){var Ue=pt.gd[Wt][Me],Ke=ke;if(ie.Pc&&(Ke+=ie.vd[0],Me&&(Ke+=ie.od[0])),0<(Ke=0>Ke?0:63<Ke?63:Ke)){var en=Ke;0<ie.wb&&(en=4<ie.wb?en>>2:en>>1)>9-ie.wb&&(en=9-ie.wb),1>en&&(en=1),Ue.dd=en,Ue.tc=2*Ke+en,Ue.ld=40<=Ke?2:15<=Ke?1:0}else Ue.tc=0;Ue.La=Me}}}Wt=0}else bl(pt,6,"Frame setup failed"),Wt=pt.a;if(Wt=Wt==0){if(Wt){pt.$c=0,0<pt.Aa||(pt.Ic=gi);t:{Wt=pt.Ic,ie=4*(en=pt.za);var hn=32*en,Dn=en+1,Fi=0<pt.L?en*(0<pt.Aa?2:1):0,Ei=(pt.Aa==2?2:1)*en;if((Ue=ie+832+(Me=3*(16*Wt+rn[pt.L])/2*hn)+(ke=pt.Fa!=null&&0<pt.Fa.length?pt.Kc.c*pt.Kc.i:0))!=Ue)Wt=0;else{if(Ue>pt.Vb){if(pt.Vb=0,pt.Ec=Ot(Ue),pt.Fc=0,pt.Ec==null){Wt=bl(pt,1,"no memory during frame initialization.");break t}pt.Vb=Ue}Ue=pt.Ec,Ke=pt.Fc,pt.Ac=Ue,pt.Bc=Ke,Ke+=ie,pt.Gd=Xt(hn,WA),pt.Hd=0,pt.rb=Xt(Dn+1,Dc),pt.sb=1,pt.wa=Fi?Xt(Fi,lA):null,pt.Y=0,pt.D.Nb=0,pt.D.wa=pt.wa,pt.D.Y=pt.Y,0<pt.Aa&&(pt.D.Y+=en),gt(!0),pt.oc=Ue,pt.pc=Ke,Ke+=832,pt.ya=Xt(Ei,KA),pt.aa=0,pt.D.ya=pt.ya,pt.D.aa=pt.aa,pt.Aa==2&&(pt.D.aa+=en),pt.R=16*en,pt.B=8*en,en=(hn=rn[pt.L])*pt.R,hn=hn/2*pt.B,pt.sa=Ue,pt.ta=Ke+en,pt.qa=pt.sa,pt.ra=pt.ta+16*Wt*pt.R+hn,pt.Ha=pt.qa,pt.Ia=pt.ra+8*Wt*pt.B+hn,pt.$c=0,Ke+=Me,pt.mb=ke?Ue:null,pt.nb=ke?Ke:null,gt(Ke+ke<=pt.Fc+pt.Vb),yc(pt),Ut(pt.Ac,pt.Bc,0,ie),Wt=1}}if(Wt){if(Lt.ka=0,Lt.y=pt.sa,Lt.O=pt.ta,Lt.f=pt.qa,Lt.N=pt.ra,Lt.ea=pt.Ha,Lt.Vd=pt.Ia,Lt.fa=pt.R,Lt.Rc=pt.B,Lt.F=null,Lt.J=0,!Ra){for(Wt=-255;255>=Wt;++Wt)Pa[255+Wt]=0>Wt?-Wt:Wt;for(Wt=-1020;1020>=Wt;++Wt)Hr[1020+Wt]=-128>Wt?-128:127<Wt?127:Wt;for(Wt=-112;112>=Wt;++Wt)zs[112+Wt]=-16>Wt?-16:15<Wt?15:Wt;for(Wt=-255;510>=Wt;++Wt)Qa[255+Wt]=0>Wt?0:255<Wt?255:Wt;Ra=1}Ne=ou,bn=Pd,oi=ed,Zn=nd,Yi=qd,ze=$d,or=dA,Lr=FA,Ur=Wh,yo=Td,Wr=nf,Mo=Qc,is=ZA,Vr=fA,ws=Id,Ma=Mu,Ql=Sh,va=sd,Yh[0]=Yl,Yh[1]=bd,Yh[2]=Fd,Yh[3]=rd,Yh[4]=Ed,Yh[5]=Eu,Yh[6]=Md,Yh[7]=XA,Yh[8]=ef,Yh[9]=od,Vh[0]=Fu,Vh[1]=mf,Vh[2]=YA,Vh[3]=id,Vh[4]=du,Vh[5]=tf,Vh[6]=Kh,nc[0]=tl,nc[1]=Ld,nc[2]=Dl,nc[3]=nu,nc[4]=hA,nc[5]=Uc,nc[6]=AA,Wt=1}else Wt=0}Wt&&(Wt=function(ii,mr){for(ii.M=0;ii.M<ii.Va;++ii.M){var er,di=ii.Jc[ii.M&ii.Xb],ui=ii.m,pr=ii;for(er=0;er<pr.za;++er){var Nr=ui,Cr=pr,No=Cr.Ac,wo=Cr.Bc+4*er,Tn=Cr.zc,Fo=Cr.ya[Cr.aa+er];if(Cr.Qa.Bb?Fo.$b=ji(Nr,Cr.Pa.jb[0])?2+ji(Nr,Cr.Pa.jb[2]):ji(Nr,Cr.Pa.jb[1]):Fo.$b=0,Cr.kc&&(Fo.Ad=ji(Nr,Cr.Bd)),Fo.Za=!ji(Nr,145)+0,Fo.Za){var Na=Fo.Ob,Ia=0;for(Cr=0;4>Cr;++Cr){var Aa,sa=Tn[0+Cr];for(Aa=0;4>Aa;++Aa){sa=jd[No[wo+Aa]][sa];for(var ia=zg[ji(Nr,sa[0])];0<ia;)ia=zg[2*ia+ji(Nr,sa[ia])];sa=-ia,No[wo+Aa]=sa}Ft(Na,Ia,No,wo,4),Ia+=4,Tn[0+Cr]=sa}}else sa=ji(Nr,156)?ji(Nr,128)?1:3:ji(Nr,163)?2:0,Fo.Ob[0]=sa,Ut(No,wo,sa,4),Ut(Tn,0,sa,4);Fo.Dd=ji(Nr,142)?ji(Nr,114)?ji(Nr,183)?1:3:2:0}if(pr.m.Ka)return bl(ii,7,"Premature end-of-partition0 encountered.");for(;ii.ja<ii.za;++ii.ja){if(pr=di,Nr=(ui=ii).rb[ui.sb-1],No=ui.rb[ui.sb+ui.ja],er=ui.ya[ui.aa+ui.ja],wo=ui.kc?er.Ad:0)Nr.la=No.la=0,er.Za||(Nr.Na=No.Na=0),er.Hc=0,er.Gc=0,er.ia=0;else{var ya,Js;if(Nr=No,No=pr,wo=ui.Pa.Xc,Tn=ui.ya[ui.aa+ui.ja],Fo=ui.pb[Tn.$b],Cr=Tn.ad,Na=0,Ia=ui.rb[ui.sb-1],sa=Aa=0,Ut(Cr,Na,0,384),Tn.Za)var oh=0,IA=wo[3];else{ia=Ot(16);var Yu=Nr.Na+Ia.Na;if(Yu=lu(No,wo[1],Yu,Fo.Eb,0,ia,0),Nr.Na=Ia.Na=(0<Yu)+0,1<Yu)Ne(ia,0,Cr,Na);else{var TA=ia[0]+3>>3;for(ia=0;256>ia;ia+=16)Cr[Na+ia]=TA}oh=1,IA=wo[0]}var za=15&Nr.la,kA=15&Ia.la;for(ia=0;4>ia;++ia){var OA=1&kA;for(TA=Js=0;4>TA;++TA)za=za>>1|(OA=(Yu=lu(No,IA,Yu=OA+(1&za),Fo.Sc,oh,Cr,Na))>oh)<<7,Js=Js<<2|(3<Yu?3:1<Yu?2:Cr[Na+0]!=0),Na+=16;za>>=4,kA=kA>>1|OA<<7,Aa=(Aa<<8|Js)>>>0}for(IA=za,oh=kA>>4,ya=0;4>ya;ya+=2){for(Js=0,za=Nr.la>>4+ya,kA=Ia.la>>4+ya,ia=0;2>ia;++ia){for(OA=1&kA,TA=0;2>TA;++TA)Yu=OA+(1&za),za=za>>1|(OA=0<(Yu=lu(No,wo[2],Yu,Fo.Qc,0,Cr,Na)))<<3,Js=Js<<2|(3<Yu?3:1<Yu?2:Cr[Na+0]!=0),Na+=16;za>>=2,kA=kA>>1|OA<<5}sa|=Js<<4*ya,IA|=za<<4<<ya,oh|=(240&kA)<<ya}Nr.la=IA,Ia.la=oh,Tn.Hc=Aa,Tn.Gc=sa,Tn.ia=43690&sa?0:Fo.ia,wo=!(Aa|sa)}if(0<ui.L&&(ui.wa[ui.Y+ui.ja]=ui.gd[er.$b][er.Za],ui.wa[ui.Y+ui.ja].La|=!wo),pr.Ka)return bl(ii,7,"Premature end-of-file encountered.")}if(yc(ii),ui=mr,pr=1,er=(di=ii).D,Nr=0<di.L&&di.M>=di.zb&&di.M<=di.Va,di.Aa==0)t:{if(er.M=di.M,er.uc=Nr,Ad(di,er),pr=1,er=(Js=di.D).Nb,Nr=(sa=rn[di.L])*di.R,No=sa/2*di.B,ia=16*er*di.R,TA=8*er*di.B,wo=di.sa,Tn=di.ta-Nr+ia,Fo=di.qa,Cr=di.ra-No+TA,Na=di.Ha,Ia=di.Ia-No+TA,kA=(za=Js.M)==0,Aa=za>=di.Va-1,di.Aa==2&&Ad(di,Js),Js.uc)for(OA=(Yu=di).D.M,gt(Yu.D.uc),Js=Yu.yb;Js<Yu.Hb;++Js){oh=Js,IA=OA;var sh=(bh=(xu=Yu).D).Nb;ya=xu.R;var bh=bh.wa[bh.Y+oh],vA=xu.sa,Lc=xu.ta+16*sh*ya+16*oh,gd=bh.dd,pl=bh.tc;if(pl!=0)if(gt(3<=pl),xu.L==1)0<oh&&Ma(vA,Lc,ya,pl+4),bh.La&&va(vA,Lc,ya,pl),0<IA&&ws(vA,Lc,ya,pl+4),bh.La&&Ql(vA,Lc,ya,pl);else{var rf=xu.B,pd=xu.qa,Yf=xu.ra+8*sh*rf+8*oh,md=xu.Ha,xu=xu.Ia+8*sh*rf+8*oh;sh=bh.ld,0<oh&&(Lr(vA,Lc,ya,pl+4,gd,sh),yo(pd,Yf,md,xu,rf,pl+4,gd,sh)),bh.La&&(Mo(vA,Lc,ya,pl,gd,sh),Vr(pd,Yf,md,xu,rf,pl,gd,sh)),0<IA&&(or(vA,Lc,ya,pl+4,gd,sh),Ur(pd,Yf,md,xu,rf,pl+4,gd,sh)),bh.La&&(Wr(vA,Lc,ya,pl,gd,sh),is(pd,Yf,md,xu,rf,pl,gd,sh))}}if(di.ia&&alert("todo:DitherRow"),ui.put!=null){if(Js=16*za,za=16*(za+1),kA?(ui.y=di.sa,ui.O=di.ta+ia,ui.f=di.qa,ui.N=di.ra+TA,ui.ea=di.Ha,ui.W=di.Ia+TA):(Js-=sa,ui.y=wo,ui.O=Tn,ui.f=Fo,ui.N=Cr,ui.ea=Na,ui.W=Ia),Aa||(za-=sa),za>ui.o&&(za=ui.o),ui.F=null,ui.J=null,di.Fa!=null&&0<di.Fa.length&&Js<za&&(ui.J=ud(di,ui,Js,za-Js),ui.F=di.mb,ui.F==null&&ui.F.length==0)){pr=bl(di,3,"Could not decode alpha data.");break t}Js<ui.j&&(sa=ui.j-Js,Js=ui.j,gt(!(1&sa)),ui.O+=di.R*sa,ui.N+=di.B*(sa>>1),ui.W+=di.B*(sa>>1),ui.F!=null&&(ui.J+=ui.width*sa)),Js<za&&(ui.O+=ui.v,ui.N+=ui.v>>1,ui.W+=ui.v>>1,ui.F!=null&&(ui.J+=ui.v),ui.ka=Js-ui.j,ui.U=ui.va-ui.v,ui.T=za-Js,pr=ui.put(ui))}er+1!=di.Ic||Aa||(Ft(di.sa,di.ta-Nr,wo,Tn+16*di.R,Nr),Ft(di.qa,di.ra-No,Fo,Cr+8*di.B,No),Ft(di.Ha,di.Ia-No,Na,Ia+8*di.B,No))}if(!pr)return bl(ii,6,"Output aborted.")}return 1}(pt,Lt)),Lt.bc!=null&&Lt.bc(Lt),Wt&=1}return Wt?(pt.cb=0,Wt):0}function kh(pt,Lt,Wt,ie,Me){Me=pt[Lt+Wt+32*ie]+(Me>>3),pt[Lt+Wt+32*ie]=-256&Me?0>Me?0:255:Me}function un(pt,Lt,Wt,ie,Me,ke){kh(pt,Lt,0,Wt,ie+Me),kh(pt,Lt,1,Wt,ie+ke),kh(pt,Lt,2,Wt,ie-ke),kh(pt,Lt,3,Wt,ie-Me)}function cu(pt){return(20091*pt>>16)+pt}function wh(pt,Lt,Wt,ie){var Me,ke=0,Ue=Ot(16);for(Me=0;4>Me;++Me){var Ke=pt[Lt+0]+pt[Lt+8],en=pt[Lt+0]-pt[Lt+8],hn=(35468*pt[Lt+4]>>16)-cu(pt[Lt+12]),Dn=cu(pt[Lt+4])+(35468*pt[Lt+12]>>16);Ue[ke+0]=Ke+Dn,Ue[ke+1]=en+hn,Ue[ke+2]=en-hn,Ue[ke+3]=Ke-Dn,ke+=4,Lt++}for(Me=ke=0;4>Me;++Me)Ke=(pt=Ue[ke+0]+4)+Ue[ke+8],en=pt-Ue[ke+8],hn=(35468*Ue[ke+4]>>16)-cu(Ue[ke+12]),kh(Wt,ie,0,0,Ke+(Dn=cu(Ue[ke+4])+(35468*Ue[ke+12]>>16))),kh(Wt,ie,1,0,en+hn),kh(Wt,ie,2,0,en-hn),kh(Wt,ie,3,0,Ke-Dn),ke++,ie+=32}function $d(pt,Lt,Wt,ie){var Me=pt[Lt+0]+4,ke=35468*pt[Lt+4]>>16,Ue=cu(pt[Lt+4]),Ke=35468*pt[Lt+1]>>16;un(Wt,ie,0,Me+Ue,pt=cu(pt[Lt+1]),Ke),un(Wt,ie,1,Me+ke,pt,Ke),un(Wt,ie,2,Me-ke,pt,Ke),un(Wt,ie,3,Me-Ue,pt,Ke)}function Pd(pt,Lt,Wt,ie,Me){wh(pt,Lt,Wt,ie),Me&&wh(pt,Lt+16,Wt,ie+4)}function ed(pt,Lt,Wt,ie){bn(pt,Lt+0,Wt,ie,1),bn(pt,Lt+32,Wt,ie+128,1)}function nd(pt,Lt,Wt,ie){var Me;for(pt=pt[Lt+0]+4,Me=0;4>Me;++Me)for(Lt=0;4>Lt;++Lt)kh(Wt,ie,Lt,Me,pt)}function qd(pt,Lt,Wt,ie){pt[Lt+0]&&Zn(pt,Lt+0,Wt,ie),pt[Lt+16]&&Zn(pt,Lt+16,Wt,ie+4),pt[Lt+32]&&Zn(pt,Lt+32,Wt,ie+128),pt[Lt+48]&&Zn(pt,Lt+48,Wt,ie+128+4)}function ou(pt,Lt,Wt,ie){var Me,ke=Ot(16);for(Me=0;4>Me;++Me){var Ue=pt[Lt+0+Me]+pt[Lt+12+Me],Ke=pt[Lt+4+Me]+pt[Lt+8+Me],en=pt[Lt+4+Me]-pt[Lt+8+Me],hn=pt[Lt+0+Me]-pt[Lt+12+Me];ke[0+Me]=Ue+Ke,ke[8+Me]=Ue-Ke,ke[4+Me]=hn+en,ke[12+Me]=hn-en}for(Me=0;4>Me;++Me)Ue=(pt=ke[0+4*Me]+3)+ke[3+4*Me],Ke=ke[1+4*Me]+ke[2+4*Me],en=ke[1+4*Me]-ke[2+4*Me],hn=pt-ke[3+4*Me],Wt[ie+0]=Ue+Ke>>3,Wt[ie+16]=hn+en>>3,Wt[ie+32]=Ue-Ke>>3,Wt[ie+48]=hn-en>>3,ie+=64}function VA(pt,Lt,Wt){var ie,Me=Lt-32,ke=hs,Ue=255-pt[Me-1];for(ie=0;ie<Wt;++ie){var Ke,en=ke,hn=Ue+pt[Lt-1];for(Ke=0;Ke<Wt;++Ke)pt[Lt+Ke]=en[hn+pt[Me+Ke]];Lt+=32}}function bd(pt,Lt){VA(pt,Lt,4)}function Ld(pt,Lt){VA(pt,Lt,8)}function mf(pt,Lt){VA(pt,Lt,16)}function YA(pt,Lt){var Wt;for(Wt=0;16>Wt;++Wt)Ft(pt,Lt+32*Wt,pt,Lt-32,16)}function id(pt,Lt){var Wt;for(Wt=16;0<Wt;--Wt)Ut(pt,Lt,pt[Lt-1],16),Lt+=32}function Lu(pt,Lt,Wt){var ie;for(ie=0;16>ie;++ie)Ut(Lt,Wt+32*ie,pt,16)}function Fu(pt,Lt){var Wt,ie=16;for(Wt=0;16>Wt;++Wt)ie+=pt[Lt-1+32*Wt]+pt[Lt+Wt-32];Lu(ie>>5,pt,Lt)}function du(pt,Lt){var Wt,ie=8;for(Wt=0;16>Wt;++Wt)ie+=pt[Lt-1+32*Wt];Lu(ie>>4,pt,Lt)}function tf(pt,Lt){var Wt,ie=8;for(Wt=0;16>Wt;++Wt)ie+=pt[Lt+Wt-32];Lu(ie>>4,pt,Lt)}function Kh(pt,Lt){Lu(128,pt,Lt)}function ks(pt,Lt,Wt){return pt+2*Lt+Wt+2>>2}function Fd(pt,Lt){var Wt,ie=Lt-32;for(ie=new Uint8Array([ks(pt[ie-1],pt[ie+0],pt[ie+1]),ks(pt[ie+0],pt[ie+1],pt[ie+2]),ks(pt[ie+1],pt[ie+2],pt[ie+3]),ks(pt[ie+2],pt[ie+3],pt[ie+4])]),Wt=0;4>Wt;++Wt)Ft(pt,Lt+32*Wt,ie,0,ie.length)}function rd(pt,Lt){var Wt=pt[Lt-1],ie=pt[Lt-1+32],Me=pt[Lt-1+64],ke=pt[Lt-1+96];Kr(pt,Lt+0,16843009*ks(pt[Lt-1-32],Wt,ie)),Kr(pt,Lt+32,16843009*ks(Wt,ie,Me)),Kr(pt,Lt+64,16843009*ks(ie,Me,ke)),Kr(pt,Lt+96,16843009*ks(Me,ke,ke))}function Yl(pt,Lt){var Wt,ie=4;for(Wt=0;4>Wt;++Wt)ie+=pt[Lt+Wt-32]+pt[Lt-1+32*Wt];for(ie>>=3,Wt=0;4>Wt;++Wt)Ut(pt,Lt+32*Wt,ie,4)}function Ed(pt,Lt){var Wt=pt[Lt-1+0],ie=pt[Lt-1+32],Me=pt[Lt-1+64],ke=pt[Lt-1-32],Ue=pt[Lt+0-32],Ke=pt[Lt+1-32],en=pt[Lt+2-32],hn=pt[Lt+3-32];pt[Lt+0+96]=ks(ie,Me,pt[Lt-1+96]),pt[Lt+1+96]=pt[Lt+0+64]=ks(Wt,ie,Me),pt[Lt+2+96]=pt[Lt+1+64]=pt[Lt+0+32]=ks(ke,Wt,ie),pt[Lt+3+96]=pt[Lt+2+64]=pt[Lt+1+32]=pt[Lt+0+0]=ks(Ue,ke,Wt),pt[Lt+3+64]=pt[Lt+2+32]=pt[Lt+1+0]=ks(Ke,Ue,ke),pt[Lt+3+32]=pt[Lt+2+0]=ks(en,Ke,Ue),pt[Lt+3+0]=ks(hn,en,Ke)}function Md(pt,Lt){var Wt=pt[Lt+1-32],ie=pt[Lt+2-32],Me=pt[Lt+3-32],ke=pt[Lt+4-32],Ue=pt[Lt+5-32],Ke=pt[Lt+6-32],en=pt[Lt+7-32];pt[Lt+0+0]=ks(pt[Lt+0-32],Wt,ie),pt[Lt+1+0]=pt[Lt+0+32]=ks(Wt,ie,Me),pt[Lt+2+0]=pt[Lt+1+32]=pt[Lt+0+64]=ks(ie,Me,ke),pt[Lt+3+0]=pt[Lt+2+32]=pt[Lt+1+64]=pt[Lt+0+96]=ks(Me,ke,Ue),pt[Lt+3+32]=pt[Lt+2+64]=pt[Lt+1+96]=ks(ke,Ue,Ke),pt[Lt+3+64]=pt[Lt+2+96]=ks(Ue,Ke,en),pt[Lt+3+96]=ks(Ke,en,en)}function Eu(pt,Lt){var Wt=pt[Lt-1+0],ie=pt[Lt-1+32],Me=pt[Lt-1+64],ke=pt[Lt-1-32],Ue=pt[Lt+0-32],Ke=pt[Lt+1-32],en=pt[Lt+2-32],hn=pt[Lt+3-32];pt[Lt+0+0]=pt[Lt+1+64]=ke+Ue+1>>1,pt[Lt+1+0]=pt[Lt+2+64]=Ue+Ke+1>>1,pt[Lt+2+0]=pt[Lt+3+64]=Ke+en+1>>1,pt[Lt+3+0]=en+hn+1>>1,pt[Lt+0+96]=ks(Me,ie,Wt),pt[Lt+0+64]=ks(ie,Wt,ke),pt[Lt+0+32]=pt[Lt+1+96]=ks(Wt,ke,Ue),pt[Lt+1+32]=pt[Lt+2+96]=ks(ke,Ue,Ke),pt[Lt+2+32]=pt[Lt+3+96]=ks(Ue,Ke,en),pt[Lt+3+32]=ks(Ke,en,hn)}function XA(pt,Lt){var Wt=pt[Lt+0-32],ie=pt[Lt+1-32],Me=pt[Lt+2-32],ke=pt[Lt+3-32],Ue=pt[Lt+4-32],Ke=pt[Lt+5-32],en=pt[Lt+6-32],hn=pt[Lt+7-32];pt[Lt+0+0]=Wt+ie+1>>1,pt[Lt+1+0]=pt[Lt+0+64]=ie+Me+1>>1,pt[Lt+2+0]=pt[Lt+1+64]=Me+ke+1>>1,pt[Lt+3+0]=pt[Lt+2+64]=ke+Ue+1>>1,pt[Lt+0+32]=ks(Wt,ie,Me),pt[Lt+1+32]=pt[Lt+0+96]=ks(ie,Me,ke),pt[Lt+2+32]=pt[Lt+1+96]=ks(Me,ke,Ue),pt[Lt+3+32]=pt[Lt+2+96]=ks(ke,Ue,Ke),pt[Lt+3+64]=ks(Ue,Ke,en),pt[Lt+3+96]=ks(Ke,en,hn)}function od(pt,Lt){var Wt=pt[Lt-1+0],ie=pt[Lt-1+32],Me=pt[Lt-1+64],ke=pt[Lt-1+96];pt[Lt+0+0]=Wt+ie+1>>1,pt[Lt+2+0]=pt[Lt+0+32]=ie+Me+1>>1,pt[Lt+2+32]=pt[Lt+0+64]=Me+ke+1>>1,pt[Lt+1+0]=ks(Wt,ie,Me),pt[Lt+3+0]=pt[Lt+1+32]=ks(ie,Me,ke),pt[Lt+3+32]=pt[Lt+1+64]=ks(Me,ke,ke),pt[Lt+3+64]=pt[Lt+2+64]=pt[Lt+0+96]=pt[Lt+1+96]=pt[Lt+2+96]=pt[Lt+3+96]=ke}function ef(pt,Lt){var Wt=pt[Lt-1+0],ie=pt[Lt-1+32],Me=pt[Lt-1+64],ke=pt[Lt-1+96],Ue=pt[Lt-1-32],Ke=pt[Lt+0-32],en=pt[Lt+1-32],hn=pt[Lt+2-32];pt[Lt+0+0]=pt[Lt+2+32]=Wt+Ue+1>>1,pt[Lt+0+32]=pt[Lt+2+64]=ie+Wt+1>>1,pt[Lt+0+64]=pt[Lt+2+96]=Me+ie+1>>1,pt[Lt+0+96]=ke+Me+1>>1,pt[Lt+3+0]=ks(Ke,en,hn),pt[Lt+2+0]=ks(Ue,Ke,en),pt[Lt+1+0]=pt[Lt+3+32]=ks(Wt,Ue,Ke),pt[Lt+1+32]=pt[Lt+3+64]=ks(ie,Wt,Ue),pt[Lt+1+64]=pt[Lt+3+96]=ks(Me,ie,Wt),pt[Lt+1+96]=ks(ke,Me,ie)}function Dl(pt,Lt){var Wt;for(Wt=0;8>Wt;++Wt)Ft(pt,Lt+32*Wt,pt,Lt-32,8)}function nu(pt,Lt){var Wt;for(Wt=0;8>Wt;++Wt)Ut(pt,Lt,pt[Lt-1],8),Lt+=32}function wc(pt,Lt,Wt){var ie;for(ie=0;8>ie;++ie)Ut(Lt,Wt+32*ie,pt,8)}function tl(pt,Lt){var Wt,ie=8;for(Wt=0;8>Wt;++Wt)ie+=pt[Lt+Wt-32]+pt[Lt-1+32*Wt];wc(ie>>4,pt,Lt)}function Uc(pt,Lt){var Wt,ie=4;for(Wt=0;8>Wt;++Wt)ie+=pt[Lt+Wt-32];wc(ie>>3,pt,Lt)}function hA(pt,Lt){var Wt,ie=4;for(Wt=0;8>Wt;++Wt)ie+=pt[Lt-1+32*Wt];wc(ie>>3,pt,Lt)}function AA(pt,Lt){wc(128,pt,Lt)}function LA(pt,Lt,Wt){var ie=pt[Lt-Wt],Me=pt[Lt+0],ke=3*(Me-ie)+gu[1020+pt[Lt-2*Wt]-pt[Lt+Wt]],Ue=ta[112+(ke+4>>3)];pt[Lt-Wt]=hs[255+ie+ta[112+(ke+3>>3)]],pt[Lt+0]=hs[255+Me-Ue]}function Sc(pt,Lt,Wt,ie){var Me=pt[Lt+0],ke=pt[Lt+Wt];return Fl[255+pt[Lt-2*Wt]-pt[Lt-Wt]]>ie||Fl[255+ke-Me]>ie}function Nd(pt,Lt,Wt,ie){return 4*Fl[255+pt[Lt-Wt]-pt[Lt+0]]+Fl[255+pt[Lt-2*Wt]-pt[Lt+Wt]]<=ie}function xc(pt,Lt,Wt,ie,Me){var ke=pt[Lt-3*Wt],Ue=pt[Lt-2*Wt],Ke=pt[Lt-Wt],en=pt[Lt+0],hn=pt[Lt+Wt],Dn=pt[Lt+2*Wt],Fi=pt[Lt+3*Wt];return 4*Fl[255+Ke-en]+Fl[255+Ue-hn]>ie?0:Fl[255+pt[Lt-4*Wt]-ke]<=Me&&Fl[255+ke-Ue]<=Me&&Fl[255+Ue-Ke]<=Me&&Fl[255+Fi-Dn]<=Me&&Fl[255+Dn-hn]<=Me&&Fl[255+hn-en]<=Me}function Id(pt,Lt,Wt,ie){var Me=2*ie+1;for(ie=0;16>ie;++ie)Nd(pt,Lt+ie,Wt,Me)&&LA(pt,Lt+ie,Wt)}function Mu(pt,Lt,Wt,ie){var Me=2*ie+1;for(ie=0;16>ie;++ie)Nd(pt,Lt+ie*Wt,1,Me)&&LA(pt,Lt+ie*Wt,1)}function Sh(pt,Lt,Wt,ie){var Me;for(Me=3;0<Me;--Me)Id(pt,Lt+=4*Wt,Wt,ie)}function sd(pt,Lt,Wt,ie){var Me;for(Me=3;0<Me;--Me)Mu(pt,Lt+=4,Wt,ie)}function cA(pt,Lt,Wt,ie,Me,ke,Ue,Ke){for(ke=2*ke+1;0<Me--;){if(xc(pt,Lt,Wt,ke,Ue))if(Sc(pt,Lt,Wt,Ke))LA(pt,Lt,Wt);else{var en=pt,hn=Lt,Dn=Wt,Fi=en[hn-2*Dn],Ei=en[hn-Dn],ii=en[hn+0],mr=en[hn+Dn],er=en[hn+2*Dn],di=27*(pr=gu[1020+3*(ii-Ei)+gu[1020+Fi-mr]])+63>>7,ui=18*pr+63>>7,pr=9*pr+63>>7;en[hn-3*Dn]=hs[255+en[hn-3*Dn]+pr],en[hn-2*Dn]=hs[255+Fi+ui],en[hn-Dn]=hs[255+Ei+di],en[hn+0]=hs[255+ii-di],en[hn+Dn]=hs[255+mr-ui],en[hn+2*Dn]=hs[255+er-pr]}Lt+=ie}}function xh(pt,Lt,Wt,ie,Me,ke,Ue,Ke){for(ke=2*ke+1;0<Me--;){if(xc(pt,Lt,Wt,ke,Ue))if(Sc(pt,Lt,Wt,Ke))LA(pt,Lt,Wt);else{var en=pt,hn=Lt,Dn=Wt,Fi=en[hn-Dn],Ei=en[hn+0],ii=en[hn+Dn],mr=ta[112+((er=3*(Ei-Fi))+4>>3)],er=ta[112+(er+3>>3)],di=mr+1>>1;en[hn-2*Dn]=hs[255+en[hn-2*Dn]+di],en[hn-Dn]=hs[255+Fi+er],en[hn+0]=hs[255+Ei-mr],en[hn+Dn]=hs[255+ii-di]}Lt+=ie}}function dA(pt,Lt,Wt,ie,Me,ke){cA(pt,Lt,Wt,1,16,ie,Me,ke)}function FA(pt,Lt,Wt,ie,Me,ke){cA(pt,Lt,1,Wt,16,ie,Me,ke)}function nf(pt,Lt,Wt,ie,Me,ke){var Ue;for(Ue=3;0<Ue;--Ue)xh(pt,Lt+=4*Wt,Wt,1,16,ie,Me,ke)}function Qc(pt,Lt,Wt,ie,Me,ke){var Ue;for(Ue=3;0<Ue;--Ue)xh(pt,Lt+=4,1,Wt,16,ie,Me,ke)}function Wh(pt,Lt,Wt,ie,Me,ke,Ue,Ke){cA(pt,Lt,Me,1,8,ke,Ue,Ke),cA(Wt,ie,Me,1,8,ke,Ue,Ke)}function Td(pt,Lt,Wt,ie,Me,ke,Ue,Ke){cA(pt,Lt,1,Me,8,ke,Ue,Ke),cA(Wt,ie,1,Me,8,ke,Ue,Ke)}function ZA(pt,Lt,Wt,ie,Me,ke,Ue,Ke){xh(pt,Lt+4*Me,Me,1,8,ke,Ue,Ke),xh(Wt,ie+4*Me,Me,1,8,ke,Ue,Ke)}function fA(pt,Lt,Wt,ie,Me,ke,Ue,Ke){xh(pt,Lt+4,1,Me,8,ke,Ue,Ke),xh(Wt,ie+4,1,Me,8,ke,Ue,Ke)}function gA(){this.ba=new PA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ol,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Rc(){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 Ku(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ad(){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 si,this.yc=new Ln}function ld(){this.xb=this.a=0,this.l=new jc,this.ca=new PA,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 ad,this.ab=0,this.gc=Xt(4,Ku),this.Oc=0}function Hc(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new jc,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Bc(pt,Lt,Wt,ie,Me,ke,Ue){for(pt=pt==null?0:pt[Lt+0],Lt=0;Lt<Ue;++Lt)Me[ke+Lt]=pt+Wt[ie+Lt]&255,pt=Me[ke+Lt]}function JA(pt,Lt,Wt,ie,Me,ke,Ue){var Ke;if(pt==null)Bc(null,null,Wt,ie,Me,ke,Ue);else for(Ke=0;Ke<Ue;++Ke)Me[ke+Ke]=pt[Lt+Ke]+Wt[ie+Ke]&255}function Cc(pt,Lt,Wt,ie,Me,ke,Ue){if(pt==null)Bc(null,null,Wt,ie,Me,ke,Ue);else{var Ke,en=pt[Lt+0],hn=en,Dn=en;for(Ke=0;Ke<Ue;++Ke)hn=Dn+(en=pt[Lt+Ke])-hn,Dn=Wt[ie+Ke]+(-256&hn?0>hn?0:255:hn)&255,hn=en,Me[ke+Ke]=Dn}}function ud(pt,Lt,Wt,ie){var Me=Lt.width,ke=Lt.o;if(gt(pt!=null&&Lt!=null),0>Wt||0>=ie||Wt+ie>ke)return null;if(!pt.Cc){if(pt.ga==null){var Ue;if(pt.ga=new Hc,(Ue=pt.ga==null)||(Ue=Lt.width*Lt.o,gt(pt.Gb.length==0),pt.Gb=Ot(Ue),pt.Uc=0,pt.Gb==null?Ue=0:(pt.mb=pt.Gb,pt.nb=pt.Uc,pt.rc=null,Ue=1),Ue=!Ue),!Ue){Ue=pt.ga;var Ke=pt.Fa,en=pt.P,hn=pt.qc,Dn=pt.mb,Fi=pt.nb,Ei=en+1,ii=hn-1,mr=Ue.l;if(gt(Ke!=null&&Dn!=null&&Lt!=null),rc[0]=null,rc[1]=Bc,rc[2]=JA,rc[3]=Cc,Ue.ca=Dn,Ue.tb=Fi,Ue.c=Lt.width,Ue.i=Lt.height,gt(0<Ue.c&&0<Ue.i),1>=hn)Lt=0;else if(Ue.$a=Ke[en+0]>>0&3,Ue.Z=Ke[en+0]>>2&3,Ue.Lc=Ke[en+0]>>4&3,en=Ke[en+0]>>6&3,0>Ue.$a||1<Ue.$a||4<=Ue.Z||1<Ue.Lc||en)Lt=0;else if(mr.put=Th,mr.ac=bu,mr.bc=vh,mr.ma=Ue,mr.width=Lt.width,mr.height=Lt.height,mr.Da=Lt.Da,mr.v=Lt.v,mr.va=Lt.va,mr.j=Lt.j,mr.o=Lt.o,Ue.$a)t:{gt(Ue.$a==1),Lt=Du();e:for(;;){if(Lt==null){Lt=0;break t}if(gt(Ue!=null),Ue.mc=Lt,Lt.c=Ue.c,Lt.i=Ue.i,Lt.l=Ue.l,Lt.l.ma=Ue,Lt.l.width=Ue.c,Lt.l.height=Ue.i,Lt.a=0,Mi(Lt.m,Ke,Ei,ii),!sA(Ue.c,Ue.i,1,Lt,null)||(Lt.ab==1&&Lt.gc[0].hc==3&&nh(Lt.s)?(Ue.ic=1,Ke=Lt.c*Lt.i,Lt.Ta=null,Lt.Ua=0,Lt.V=Ot(Ke),Lt.Ba=0,Lt.V==null?(Lt.a=1,Lt=0):Lt=1):(Ue.ic=0,Lt=Gu(Lt,Ue.c)),!Lt))break e;Lt=1;break t}Ue.mc=null,Lt=0}else Lt=ii>=Ue.c*Ue.i;Ue=!Lt}if(Ue)return null;pt.ga.Lc!=1?pt.Ga=0:ie=ke-Wt}gt(pt.ga!=null),gt(Wt+ie<=ke);t:{if(Lt=(Ke=pt.ga).c,ke=Ke.l.o,Ke.$a==0){if(Ei=pt.rc,ii=pt.Vc,mr=pt.Fa,en=pt.P+1+Wt*Lt,hn=pt.mb,Dn=pt.nb+Wt*Lt,gt(en<=pt.P+pt.qc),Ke.Z!=0)for(gt(rc[Ke.Z]!=null),Ue=0;Ue<ie;++Ue)rc[Ke.Z](Ei,ii,mr,en,hn,Dn,Lt),Ei=hn,ii=Dn,Dn+=Lt,en+=Lt;else for(Ue=0;Ue<ie;++Ue)Ft(hn,Dn,mr,en,Lt),Ei=hn,ii=Dn,Dn+=Lt,en+=Lt;pt.rc=Ei,pt.Vc=ii}else{if(gt(Ke.mc!=null),Lt=Wt+ie,gt((Ue=Ke.mc)!=null),gt(Lt<=Ue.i),Ue.C>=Lt)Lt=1;else if(Ke.ic||Ri(),Ke.ic){Ke=Ue.V,Ei=Ue.Ba,ii=Ue.c;var er=Ue.i,di=(mr=1,en=Ue.$/ii,hn=Ue.$%ii,Dn=Ue.m,Fi=Ue.s,Ue.$),ui=ii*er,pr=ii*Lt,Nr=Fi.wc,Cr=di<pr?eu(Fi,hn,en):null;gt(di<=ui),gt(Lt<=er),gt(nh(Fi));e:for(;;){for(;!Dn.h&&di<pr;){if(hn&Nr||(Cr=eu(Fi,hn,en)),gt(Cr!=null),ki(Dn),256>(er=Bo(Cr.G[0],Cr.H[0],Dn)))Ke[Ei+di]=er,++di,++hn>=ii&&(hn=0,++en<=Lt&&!(en%16)&&ih(Ue,en));else{if(!(280>er)){mr=0;break e}er=xl(er-256,Dn);var No,wo=Bo(Cr.G[4],Cr.H[4],Dn);if(ki(Dn),!(di>=(wo=Su(ii,wo=xl(wo,Dn)))&&ui-di>=er)){mr=0;break e}for(No=0;No<er;++No)Ke[Ei+di+No]=Ke[Ei+di+No-wo];for(di+=er,hn+=er;hn>=ii;)hn-=ii,++en<=Lt&&!(en%16)&&ih(Ue,en);di<pr&&hn&Nr&&(Cr=eu(Fi,hn,en))}gt(Dn.h==$n(Dn))}ih(Ue,en>Lt?Lt:en);break e}!mr||Dn.h&&di<ui?(mr=0,Ue.a=Dn.h?5:3):Ue.$=di,Lt=mr}else Lt=_u(Ue,Ue.V,Ue.Ba,Ue.c,Ue.i,Lt,aA);if(!Lt){ie=0;break t}}Wt+ie>=ke&&(pt.Cc=1),ie=1}if(!ie)return null;if(pt.Cc&&((ie=pt.ga)!=null&&(ie.mc=null),pt.ga=null,0<pt.Ga))return alert("todo:WebPDequantizeLevels"),null}return pt.nb+Wt*Me}function Vt(pt,Lt,Wt,ie,Me,ke){for(;0<Me--;){var Ue,Ke=pt,en=Lt+(Wt?1:0),hn=pt,Dn=Lt+(Wt?0:3);for(Ue=0;Ue<ie;++Ue){var Fi=hn[Dn+4*Ue];Fi!=255&&(Fi*=32897,Ke[en+4*Ue+0]=Ke[en+4*Ue+0]*Fi>>23,Ke[en+4*Ue+1]=Ke[en+4*Ue+1]*Fi>>23,Ke[en+4*Ue+2]=Ke[en+4*Ue+2]*Fi>>23)}Lt+=ke}}function _e(pt,Lt,Wt,ie,Me){for(;0<ie--;){var ke;for(ke=0;ke<Wt;++ke){var Ue=pt[Lt+2*ke+0],Ke=15&(hn=pt[Lt+2*ke+1]),en=4369*Ke,hn=(240&hn|hn>>4)*en>>16;pt[Lt+2*ke+0]=(240&Ue|Ue>>4)*en>>16&240|(15&Ue|Ue<<4)*en>>16>>4&15,pt[Lt+2*ke+1]=240&hn|Ke}Lt+=Me}}function Hn(pt,Lt,Wt,ie,Me,ke,Ue,Ke){var en,hn,Dn=255;for(hn=0;hn<Me;++hn){for(en=0;en<ie;++en){var Fi=pt[Lt+en];ke[Ue+4*en]=Fi,Dn&=Fi}Lt+=Wt,Ue+=Ke}return Dn!=255}function ci(pt,Lt,Wt,ie,Me){var ke;for(ke=0;ke<Me;++ke)Wt[ie+ke]=pt[Lt+ke]>>8}function Ri(){Ll=Vt,Zs=_e,Hs=Hn,Ca=ci}function cr(pt,Lt,Wt){ai[pt]=function(ie,Me,ke,Ue,Ke,en,hn,Dn,Fi,Ei,ii,mr,er,di,ui,pr,Nr){var Cr,No=Nr-1>>1,wo=Ke[en+0]|hn[Dn+0]<<16,Tn=Fi[Ei+0]|ii[mr+0]<<16;gt(ie!=null);var Fo=3*wo+Tn+131074>>2;for(Lt(ie[Me+0],255&Fo,Fo>>16,er,di),ke!=null&&(Fo=3*Tn+wo+131074>>2,Lt(ke[Ue+0],255&Fo,Fo>>16,ui,pr)),Cr=1;Cr<=No;++Cr){var Na=Ke[en+Cr]|hn[Dn+Cr]<<16,Ia=Fi[Ei+Cr]|ii[mr+Cr]<<16,Aa=wo+Na+Tn+Ia+524296,sa=Aa+2*(Na+Tn)>>3;Fo=sa+wo>>1,wo=(Aa=Aa+2*(wo+Ia)>>3)+Na>>1,Lt(ie[Me+2*Cr-1],255&Fo,Fo>>16,er,di+(2*Cr-1)*Wt),Lt(ie[Me+2*Cr-0],255&wo,wo>>16,er,di+(2*Cr-0)*Wt),ke!=null&&(Fo=Aa+Tn>>1,wo=sa+Ia>>1,Lt(ke[Ue+2*Cr-1],255&Fo,Fo>>16,ui,pr+(2*Cr-1)*Wt),Lt(ke[Ue+2*Cr+0],255&wo,wo>>16,ui,pr+(2*Cr+0)*Wt)),wo=Na,Tn=Ia}1&Nr||(Fo=3*wo+Tn+131074>>2,Lt(ie[Me+Nr-1],255&Fo,Fo>>16,er,di+(Nr-1)*Wt),ke!=null&&(Fo=3*Tn+wo+131074>>2,Lt(ke[Ue+Nr-1],255&Fo,Fo>>16,ui,pr+(Nr-1)*Wt)))}}function Qr(){Rl[wl]=Ud,Rl[MA]=wf,Rl[Ph]=a0,Rl[pu]=us,Rl[Nu]=_g,Rl[Ha]=Gg,Rl[au]=Kg,Rl[mA]=wf,Rl[bc]=us,Rl[_f]=_g,Rl[Uu]=Gg}function _o(pt){return pt&~Wg?0>pt?0:255:pt>>xg}function vs(pt,Lt){return _o((19077*pt>>8)+(26149*Lt>>8)-14234)}function Vs(pt,Lt,Wt){return _o((19077*pt>>8)-(6419*Lt>>8)-(13320*Wt>>8)+8708)}function Ys(pt,Lt){return _o((19077*pt>>8)+(33050*Lt>>8)-17685)}function Ko(pt,Lt,Wt,ie,Me){ie[Me+0]=vs(pt,Wt),ie[Me+1]=Vs(pt,Lt,Wt),ie[Me+2]=Ys(pt,Lt)}function fl(pt,Lt,Wt,ie,Me){ie[Me+0]=Ys(pt,Lt),ie[Me+1]=Vs(pt,Lt,Wt),ie[Me+2]=vs(pt,Wt)}function gl(pt,Lt,Wt,ie,Me){var ke=Vs(pt,Lt,Wt);Lt=ke<<3&224|Ys(pt,Lt)>>3,ie[Me+0]=248&vs(pt,Wt)|ke>>5,ie[Me+1]=Lt}function oa(pt,Lt,Wt,ie,Me){var ke=240&Ys(pt,Lt)|15;ie[Me+0]=240&vs(pt,Wt)|Vs(pt,Lt,Wt)>>4,ie[Me+1]=ke}function Xa(pt,Lt,Wt,ie,Me){ie[Me+0]=255,Ko(pt,Lt,Wt,ie,Me+1)}function jl(pt,Lt,Wt,ie,Me){fl(pt,Lt,Wt,ie,Me),ie[Me+3]=255}function Bh(pt,Lt,Wt,ie,Me){Ko(pt,Lt,Wt,ie,Me),ie[Me+3]=255}function ju(pt,Lt){return 0>pt?0:pt>Lt?Lt:pt}function Ch(pt,Lt,Wt){ai[pt]=function(ie,Me,ke,Ue,Ke,en,hn,Dn,Fi){for(var Ei=Dn+(-2&Fi)*Wt;Dn!=Ei;)Lt(ie[Me+0],ke[Ue+0],Ke[en+0],hn,Dn),Lt(ie[Me+1],ke[Ue+0],Ke[en+0],hn,Dn+Wt),Me+=2,++Ue,++en,Dn+=2*Wt;1&Fi&&Lt(ie[Me+0],ke[Ue+0],Ke[en+0],hn,Dn)}}function hd(pt,Lt,Wt){return Wt==0?pt==0?Lt==0?6:5:Lt==0?4:0:Wt}function zc(pt,Lt,Wt,ie,Me){switch(pt>>>30){case 3:bn(Lt,Wt,ie,Me,0);break;case 2:ze(Lt,Wt,ie,Me);break;case 1:Zn(Lt,Wt,ie,Me)}}function Ad(pt,Lt){var Wt,ie,Me=Lt.M,ke=Lt.Nb,Ue=pt.oc,Ke=pt.pc+40,en=pt.oc,hn=pt.pc+584,Dn=pt.oc,Fi=pt.pc+600;for(Wt=0;16>Wt;++Wt)Ue[Ke+32*Wt-1]=129;for(Wt=0;8>Wt;++Wt)en[hn+32*Wt-1]=129,Dn[Fi+32*Wt-1]=129;for(0<Me?Ue[Ke-1-32]=en[hn-1-32]=Dn[Fi-1-32]=129:(Ut(Ue,Ke-32-1,127,21),Ut(en,hn-32-1,127,9),Ut(Dn,Fi-32-1,127,9)),ie=0;ie<pt.za;++ie){var Ei=Lt.ya[Lt.aa+ie];if(0<ie){for(Wt=-1;16>Wt;++Wt)Ft(Ue,Ke+32*Wt-4,Ue,Ke+32*Wt+12,4);for(Wt=-1;8>Wt;++Wt)Ft(en,hn+32*Wt-4,en,hn+32*Wt+4,4),Ft(Dn,Fi+32*Wt-4,Dn,Fi+32*Wt+4,4)}var ii=pt.Gd,mr=pt.Hd+ie,er=Ei.ad,di=Ei.Hc;if(0<Me&&(Ft(Ue,Ke-32,ii[mr].y,0,16),Ft(en,hn-32,ii[mr].f,0,8),Ft(Dn,Fi-32,ii[mr].ea,0,8)),Ei.Za){var ui=Ue,pr=Ke-32+16;for(0<Me&&(ie>=pt.za-1?Ut(ui,pr,ii[mr].y[15],4):Ft(ui,pr,ii[mr+1].y,0,4)),Wt=0;4>Wt;Wt++)ui[pr+128+Wt]=ui[pr+256+Wt]=ui[pr+384+Wt]=ui[pr+0+Wt];for(Wt=0;16>Wt;++Wt,di<<=2)ui=Ue,pr=Ke+Cn[Wt],Yh[Ei.Ob[Wt]](ui,pr),zc(di,er,16*+Wt,ui,pr)}else if(ui=hd(ie,Me,Ei.Ob[0]),Vh[ui](Ue,Ke),di!=0)for(Wt=0;16>Wt;++Wt,di<<=2)zc(di,er,16*+Wt,Ue,Ke+Cn[Wt]);for(Wt=Ei.Gc,ui=hd(ie,Me,Ei.Dd),nc[ui](en,hn),nc[ui](Dn,Fi),di=er,ui=en,pr=hn,255&(Ei=Wt>>0)&&(170&Ei?oi(di,256,ui,pr):Yi(di,256,ui,pr)),Ei=Dn,di=Fi,255&(Wt>>=8)&&(170&Wt?oi(er,320,Ei,di):Yi(er,320,Ei,di)),Me<pt.Ub-1&&(Ft(ii[mr].y,0,Ue,Ke+480,16),Ft(ii[mr].f,0,en,hn+224,8),Ft(ii[mr].ea,0,Dn,Fi+224,8)),Wt=8*ke*pt.B,ii=pt.sa,mr=pt.ta+16*ie+16*ke*pt.R,er=pt.qa,Ei=pt.ra+8*ie+Wt,di=pt.Ha,ui=pt.Ia+8*ie+Wt,Wt=0;16>Wt;++Wt)Ft(ii,mr+Wt*pt.R,Ue,Ke+32*Wt,16);for(Wt=0;8>Wt;++Wt)Ft(er,Ei+Wt*pt.B,en,hn+32*Wt,8),Ft(di,ui+Wt*pt.B,Dn,Fi+32*Wt,8)}}function Oh(pt,Lt,Wt,ie,Me,ke,Ue,Ke,en){var hn=[0],Dn=[0],Fi=0,Ei=en!=null?en.kd:0,ii=en!=null?en:new Rc;if(pt==null||12>Wt)return 7;ii.data=pt,ii.w=Lt,ii.ha=Wt,Lt=[Lt],Wt=[Wt],ii.gb=[ii.gb];t:{var mr=Lt,er=Wt,di=ii.gb;if(gt(pt!=null),gt(er!=null),gt(di!=null),di[0]=0,12<=er[0]&&!yt(pt,mr[0],"RIFF")){if(yt(pt,mr[0]+8,"WEBP")){di=3;break t}var ui=Lo(pt,mr[0]+4);if(12>ui||4294967286<ui){di=3;break t}if(Ei&&ui>er[0]-8){di=7;break t}di[0]=ui,mr[0]+=12,er[0]-=12}di=0}if(di!=0)return di;for(ui=0<ii.gb[0],Wt=Wt[0];;){t:{var pr=pt;er=Lt,di=Wt;var Nr=hn,Cr=Dn,No=mr=[0];if((Fo=Fi=[Fi])[0]=0,8>di[0])di=7;else{if(!yt(pr,er[0],"VP8X")){if(Lo(pr,er[0]+4)!=10){di=3;break t}if(18>di[0]){di=7;break t}var wo=Lo(pr,er[0]+8),Tn=1+Io(pr,er[0]+12);if(2147483648<=Tn*(pr=1+Io(pr,er[0]+15))){di=3;break t}No!=null&&(No[0]=wo),Nr!=null&&(Nr[0]=Tn),Cr!=null&&(Cr[0]=pr),er[0]+=18,di[0]-=18,Fo[0]=1}di=0}}if(Fi=Fi[0],mr=mr[0],di!=0)return di;if(er=!!(2&mr),!ui&&Fi)return 3;if(ke!=null&&(ke[0]=!!(16&mr)),Ue!=null&&(Ue[0]=er),Ke!=null&&(Ke[0]=0),Ue=hn[0],mr=Dn[0],Fi&&er&&en==null){di=0;break}if(4>Wt){di=7;break}if(ui&&Fi||!ui&&!Fi&&!yt(pt,Lt[0],"ALPH")){Wt=[Wt],ii.na=[ii.na],ii.P=[ii.P],ii.Sa=[ii.Sa];t:{wo=pt,di=Lt,ui=Wt;var Fo=ii.gb;Nr=ii.na,Cr=ii.P,No=ii.Sa,Tn=22,gt(wo!=null),gt(ui!=null),pr=di[0];var Na=ui[0];for(gt(Nr!=null),gt(No!=null),Nr[0]=null,Cr[0]=null,No[0]=0;;){if(di[0]=pr,ui[0]=Na,8>Na){di=7;break t}var Ia=Lo(wo,pr+4);if(4294967286<Ia){di=3;break t}var Aa=8+Ia+1&-2;if(Tn+=Aa,0<Fo&&Tn>Fo){di=3;break t}if(!yt(wo,pr,"VP8 ")||!yt(wo,pr,"VP8L")){di=0;break t}if(Na[0]<Aa){di=7;break t}yt(wo,pr,"ALPH")||(Nr[0]=wo,Cr[0]=pr+8,No[0]=Ia),pr+=Aa,Na-=Aa}}if(Wt=Wt[0],ii.na=ii.na[0],ii.P=ii.P[0],ii.Sa=ii.Sa[0],di!=0)break}Wt=[Wt],ii.Ja=[ii.Ja],ii.xa=[ii.xa];t:if(Fo=pt,di=Lt,ui=Wt,Nr=ii.gb[0],Cr=ii.Ja,No=ii.xa,wo=di[0],pr=!yt(Fo,wo,"VP8 "),Tn=!yt(Fo,wo,"VP8L"),gt(Fo!=null),gt(ui!=null),gt(Cr!=null),gt(No!=null),8>ui[0])di=7;else{if(pr||Tn){if(Fo=Lo(Fo,wo+4),12<=Nr&&Fo>Nr-12){di=3;break t}if(Ei&&Fo>ui[0]-8){di=7;break t}Cr[0]=Fo,di[0]+=8,ui[0]-=8,No[0]=Tn}else No[0]=5<=ui[0]&&Fo[wo+0]==47&&!(Fo[wo+4]>>5),Cr[0]=ui[0];di=0}if(Wt=Wt[0],ii.Ja=ii.Ja[0],ii.xa=ii.xa[0],Lt=Lt[0],di!=0)break;if(4294967286<ii.Ja)return 3;if(Ke==null||er||(Ke[0]=ii.xa?2:1),Ue=[Ue],mr=[mr],ii.xa){if(5>Wt){di=7;break}Ke=Ue,Ei=mr,er=ke,pt==null||5>Wt?pt=0:5<=Wt&&pt[Lt+0]==47&&!(pt[Lt+4]>>5)?(ui=[0],Fo=[0],Nr=[0],Mi(Cr=new tn,pt,Lt,Wt),gs(Cr,ui,Fo,Nr)?(Ke!=null&&(Ke[0]=ui[0]),Ei!=null&&(Ei[0]=Fo[0]),er!=null&&(er[0]=Nr[0]),pt=1):pt=0):pt=0}else{if(10>Wt){di=7;break}Ke=mr,pt==null||10>Wt||!vc(pt,Lt+3,Wt-3)?pt=0:(Ei=pt[Lt+0]|pt[Lt+1]<<8|pt[Lt+2]<<16,er=16383&(pt[Lt+7]<<8|pt[Lt+6]),pt=16383&(pt[Lt+9]<<8|pt[Lt+8]),1&Ei||3<(Ei>>1&7)||!(Ei>>4&1)||Ei>>5>=ii.Ja||!er||!pt?pt=0:(Ue&&(Ue[0]=er),Ke&&(Ke[0]=pt),pt=1))}if(!pt||(Ue=Ue[0],mr=mr[0],Fi&&(hn[0]!=Ue||Dn[0]!=mr)))return 3;en!=null&&(en[0]=ii,en.offset=Lt-en.w,gt(4294967286>Lt-en.w),gt(en.offset==en.ha-Wt));break}return di==0||di==7&&Fi&&en==null?(ke!=null&&(ke[0]|=ii.na!=null&&0<ii.na.length),ie!=null&&(ie[0]=Ue),Me!=null&&(Me[0]=mr),0):di}function $A(pt,Lt,Wt){var ie=Lt.width,Me=Lt.height,ke=0,Ue=0,Ke=ie,en=Me;if(Lt.Da=pt!=null&&0<pt.Da,Lt.Da&&(Ke=pt.cd,en=pt.bd,ke=pt.v,Ue=pt.j,11>Wt||(ke&=-2,Ue&=-2),0>ke||0>Ue||0>=Ke||0>=en||ke+Ke>ie||Ue+en>Me))return 0;if(Lt.v=ke,Lt.j=Ue,Lt.va=ke+Ke,Lt.o=Ue+en,Lt.U=Ke,Lt.T=en,Lt.da=pt!=null&&0<pt.da,Lt.da){if(!Is(Ke,en,Wt=[pt.ib],ke=[pt.hb]))return 0;Lt.ib=Wt[0],Lt.hb=ke[0]}return Lt.ob=pt!=null&&pt.ob,Lt.Kb=pt==null||!pt.Sd,Lt.da&&(Lt.ob=Lt.ib<3*ie/4&&Lt.hb<3*Me/4,Lt.Kb=0),1}function pA(pt){if(pt==null)return 2;if(11>pt.S){var Lt=pt.f.RGBA;Lt.fb+=(pt.height-1)*Lt.A,Lt.A=-Lt.A}else Lt=pt.f.kb,pt=pt.height,Lt.O+=(pt-1)*Lt.fa,Lt.fa=-Lt.fa,Lt.N+=(pt-1>>1)*Lt.Ab,Lt.Ab=-Lt.Ab,Lt.W+=(pt-1>>1)*Lt.Db,Lt.Db=-Lt.Db,Lt.F!=null&&(Lt.J+=(pt-1)*Lt.lb,Lt.lb=-Lt.lb);return 0}function Ba(pt,Lt,Wt,ie){if(ie==null||0>=pt||0>=Lt)return 2;if(Wt!=null){if(Wt.Da){var Me=Wt.cd,ke=Wt.bd,Ue=-2&Wt.v,Ke=-2&Wt.j;if(0>Ue||0>Ke||0>=Me||0>=ke||Ue+Me>pt||Ke+ke>Lt)return 2;pt=Me,Lt=ke}if(Wt.da){if(!Is(pt,Lt,Me=[Wt.ib],ke=[Wt.hb]))return 2;pt=Me[0],Lt=ke[0]}}ie.width=pt,ie.height=Lt;t:{var en=ie.width,hn=ie.height;if(pt=ie.S,0>=en||0>=hn||!(pt>=wl&&13>pt))pt=2;else{if(0>=ie.Rd&&ie.sd==null){Ue=ke=Me=Lt=0;var Dn=(Ke=en*Qi[pt])*hn;if(11>pt||(ke=(hn+1)/2*(Lt=(en+1)/2),pt==12&&(Ue=(Me=en)*hn)),(hn=Ot(Dn+2*ke+Ue))==null){pt=1;break t}ie.sd=hn,11>pt?((en=ie.f.RGBA).eb=hn,en.fb=0,en.A=Ke,en.size=Dn):((en=ie.f.kb).y=hn,en.O=0,en.fa=Ke,en.Fd=Dn,en.f=hn,en.N=0+Dn,en.Ab=Lt,en.Cd=ke,en.ea=hn,en.W=0+Dn+ke,en.Db=Lt,en.Ed=ke,pt==12&&(en.F=hn,en.J=0+Dn+2*ke),en.Tc=Ue,en.lb=Me)}if(Lt=1,Me=ie.S,ke=ie.width,Ue=ie.height,Me>=wl&&13>Me)if(11>Me)pt=ie.f.RGBA,Lt&=(Ke=Math.abs(pt.A))*(Ue-1)+ke<=pt.size,Lt&=Ke>=ke*Qi[Me],Lt&=pt.eb!=null;else{pt=ie.f.kb,Ke=(ke+1)/2,Dn=(Ue+1)/2,en=Math.abs(pt.fa),hn=Math.abs(pt.Ab);var Fi=Math.abs(pt.Db),Ei=Math.abs(pt.lb),ii=Ei*(Ue-1)+ke;Lt&=en*(Ue-1)+ke<=pt.Fd,Lt&=hn*(Dn-1)+Ke<=pt.Cd,Lt=(Lt&=Fi*(Dn-1)+Ke<=pt.Ed)&en>=ke&hn>=Ke&Fi>=Ke,Lt&=pt.y!=null,Lt&=pt.f!=null,Lt&=pt.ea!=null,Me==12&&(Lt&=Ei>=ke,Lt&=ii<=pt.Tc,Lt&=pt.F!=null)}else Lt=0;pt=Lt?0:2}}return pt!=0||Wt!=null&&Wt.fd&&(pt=pA(ie)),pt}var Ul=64,Pc=[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],el=24,Wu=32,Dh=8,su=[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];ro("Predictor0","PredictorAdd0"),ai.Predictor0=function(){return 4278190080},ai.Predictor1=function(pt){return pt},ai.Predictor2=function(pt,Lt,Wt){return Lt[Wt+0]},ai.Predictor3=function(pt,Lt,Wt){return Lt[Wt+1]},ai.Predictor4=function(pt,Lt,Wt){return Lt[Wt-1]},ai.Predictor5=function(pt,Lt,Wt){return xo(xo(pt,Lt[Wt+1]),Lt[Wt+0])},ai.Predictor6=function(pt,Lt,Wt){return xo(pt,Lt[Wt-1])},ai.Predictor7=function(pt,Lt,Wt){return xo(pt,Lt[Wt+0])},ai.Predictor8=function(pt,Lt,Wt){return xo(Lt[Wt-1],Lt[Wt+0])},ai.Predictor9=function(pt,Lt,Wt){return xo(Lt[Wt+0],Lt[Wt+1])},ai.Predictor10=function(pt,Lt,Wt){return xo(xo(pt,Lt[Wt-1]),xo(Lt[Wt+0],Lt[Wt+1]))},ai.Predictor11=function(pt,Lt,Wt){var ie=Lt[Wt+0];return 0>=bs(ie>>24&255,pt>>24&255,(Lt=Lt[Wt-1])>>24&255)+bs(ie>>16&255,pt>>16&255,Lt>>16&255)+bs(ie>>8&255,pt>>8&255,Lt>>8&255)+bs(255&ie,255&pt,255&Lt)?ie:pt},ai.Predictor12=function(pt,Lt,Wt){var ie=Lt[Wt+0];return($o((pt>>24&255)+(ie>>24&255)-((Lt=Lt[Wt-1])>>24&255))<<24|$o((pt>>16&255)+(ie>>16&255)-(Lt>>16&255))<<16|$o((pt>>8&255)+(ie>>8&255)-(Lt>>8&255))<<8|$o((255&pt)+(255&ie)-(255&Lt)))>>>0},ai.Predictor13=function(pt,Lt,Wt){var ie=Lt[Wt-1];return(ls((pt=xo(pt,Lt[Wt+0]))>>24&255,ie>>24&255)<<24|ls(pt>>16&255,ie>>16&255)<<16|ls(pt>>8&255,ie>>8&255)<<8|ls(pt>>0&255,ie>>0&255))>>>0};var nl=ai.PredictorAdd0;ai.PredictorAdd1=Zo,ro("Predictor2","PredictorAdd2"),ro("Predictor3","PredictorAdd3"),ro("Predictor4","PredictorAdd4"),ro("Predictor5","PredictorAdd5"),ro("Predictor6","PredictorAdd6"),ro("Predictor7","PredictorAdd7"),ro("Predictor8","PredictorAdd8"),ro("Predictor9","PredictorAdd9"),ro("Predictor10","PredictorAdd10"),ro("Predictor11","PredictorAdd11"),ro("Predictor12","PredictorAdd12"),ro("Predictor13","PredictorAdd13");var qA=ai.PredictorAdd2;qs("ColorIndexInverseTransform","MapARGB","32b",function(pt){return pt>>8&255},function(pt){return pt}),qs("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(pt){return pt},function(pt){return pt>>8&255});var Vu,fu=ai.ColorIndexInverseTransform,EA=ai.MapARGB,it=ai.VP8LColorIndexInverseTransformAlpha,ot=ai.MapAlpha,ct=ai.VP8LPredictorsAdd=[];ct.length=16,(ai.VP8LPredictors=[]).length=16,(ai.VP8LPredictorsAdd_C=[]).length=16,(ai.VP8LPredictors_C=[]).length=16;var At,mt,Dt,qt,le,ae,Ne,bn,ze,oi,Zn,Yi,or,Lr,Ur,yo,Wr,Mo,is,Vr,ws,Ma,Ql,va,Ll,Zs,Hs,Ca,Pa=Ot(511),Hr=Ot(2041),zs=Ot(225),Qa=Ot(767),Ra=0,gu=Hr,ta=zs,hs=Qa,Fl=Pa,wl=0,MA=1,Ph=2,pu=3,Nu=4,Ha=5,au=6,mA=7,bc=8,_f=9,Uu=10,Sg=[2,3,7],tc=[3,3,11],vf=[280,256,256,256,40],yf=[0,1,1,1,0],kd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],cd=[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],Gf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Od=8,ec=[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],Xl=[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],lu=null,Kf=[[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]],Sp=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],zg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Dd=[[[[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]]]],jd=[[[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]]],Wf=[[[[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]]]],xp=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Vh=[],Yh=[],nc=[],NA=1,ic=2,rc=[],Rl=[];cr("UpsampleRgbLinePair",Ko,3),cr("UpsampleBgrLinePair",fl,3),cr("UpsampleRgbaLinePair",Bh,4),cr("UpsampleBgraLinePair",jl,4),cr("UpsampleArgbLinePair",Xa,4),cr("UpsampleRgba4444LinePair",oa,2),cr("UpsampleRgb565LinePair",gl,2);var Ud=ai.UpsampleRgbLinePair,a0=ai.UpsampleBgrLinePair,wf=ai.UpsampleRgbaLinePair,us=ai.UpsampleBgraLinePair,_g=ai.UpsampleArgbLinePair,Gg=ai.UpsampleRgba4444LinePair,Kg=ai.UpsampleRgb565LinePair,dd=16,fd=1<<dd-1,Xh=-227,Vf=482,xg=6,Wg=(256<<xg)-1,Bt=0,xt=Ot(256),bt=Ot(256),Pt=Ot(256),te=Ot(256),Ce=Ot(Vf-Xh),$e=Ot(Vf-Xh);Ch("YuvToRgbRow",Ko,3),Ch("YuvToBgrRow",fl,3),Ch("YuvToRgbaRow",Bh,4),Ch("YuvToBgraRow",jl,4),Ch("YuvToArgbRow",Xa,4),Ch("YuvToRgba4444Row",oa,2),Ch("YuvToRgb565Row",gl,2);var Cn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],rn=[0,2,8],hi=[8,7,6,4,4,2,2,2,1,1,1,1],gi=1;this.WebPDecodeRGBA=function(pt,Lt,Wt,ie,Me){var ke=MA,Ue=new gA,Ke=new PA;Ue.ba=Ke,Ke.S=ke,Ke.width=[Ke.width],Ke.height=[Ke.height];var en=Ke.width,hn=Ke.height,Dn=new Ih;if(Dn==null||pt==null)var Fi=2;else gt(Dn!=null),Fi=Oh(pt,Lt,Wt,Dn.width,Dn.height,Dn.Pd,Dn.Qd,Dn.format,null);if(Fi!=0?en=0:(en!=null&&(en[0]=Dn.width[0]),hn!=null&&(hn[0]=Dn.height[0]),en=1),en){Ke.width=Ke.width[0],Ke.height=Ke.height[0],ie!=null&&(ie[0]=Ke.width),Me!=null&&(Me[0]=Ke.height);t:{if(ie=new jc,(Me=new Rc).data=pt,Me.w=Lt,Me.ha=Wt,Me.kd=1,Lt=[0],gt(Me!=null),((pt=Oh(Me.data,Me.w,Me.ha,null,null,null,Lt,null,Me))==0||pt==7)&&Lt[0]&&(pt=4),(Lt=pt)==0){if(gt(Ue!=null),ie.data=Me.data,ie.w=Me.w+Me.offset,ie.ha=Me.ha-Me.offset,ie.put=Th,ie.ac=bu,ie.bc=vh,ie.ma=Ue,Me.xa){if((pt=Du())==null){Ue=1;break t}if(function(Ei,ii){var mr=[0],er=[0],di=[0];e:for(;;){if(Ei==null)return 0;if(ii==null)return Ei.a=2,0;if(Ei.l=ii,Ei.a=0,Mi(Ei.m,ii.data,ii.w,ii.ha),!gs(Ei.m,mr,er,di)){Ei.a=3;break e}if(Ei.xb=ic,ii.width=mr[0],ii.height=er[0],!sA(mr[0],er[0],1,Ei,null))break e;return 1}return gt(Ei.a!=0),0}(pt,ie)){if(ie=(Lt=Ba(ie.width,ie.height,Ue.Oa,Ue.ba))==0){e:{ie=pt;n:for(;;){if(ie==null){ie=0;break e}if(gt(ie.s.yc!=null),gt(ie.s.Ya!=null),gt(0<ie.s.Wb),gt((Wt=ie.l)!=null),gt((Me=Wt.ma)!=null),ie.xb!=0){if(ie.ca=Me.ba,ie.tb=Me.tb,gt(ie.ca!=null),!$A(Me.Oa,Wt,pu)){ie.a=2;break n}if(!Gu(ie,Wt.width)||Wt.da)break n;if((Wt.da||ha(ie.ca.S))&&Ri(),11>ie.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ie.ca.f.kb.F!=null&&Ri()),ie.Pb&&0<ie.s.ua&&ie.s.vb.X==null&&!Fs(ie.s.vb,ie.s.Wa.Xa)){ie.a=1;break n}ie.xb=0}if(!_u(ie,ie.V,ie.Ba,ie.c,ie.i,Wt.o,eh))break n;Me.Dc=ie.Ma,ie=1;break e}gt(ie.a!=0),ie=0}ie=!ie}ie&&(Lt=pt.a)}else Lt=pt.a}else{if((pt=new Jd)==null){Ue=1;break t}if(pt.Fa=Me.na,pt.P=Me.P,pt.qc=Me.Sa,qa(pt,ie)){if((Lt=Ba(ie.width,ie.height,Ue.Oa,Ue.ba))==0){if(pt.Aa=0,Wt=Ue.Oa,gt((Me=pt)!=null),Wt!=null){if(0<(en=0>(en=Wt.Md)?0:100<en?255:255*en/100)){for(hn=Dn=0;4>hn;++hn)12>(Fi=Me.pb[hn]).lc&&(Fi.ia=en*hi[0>Fi.lc?0:Fi.lc]>>3),Dn|=Fi.ia;Dn&&(alert("todo:VP8InitRandom"),Me.ia=1)}Me.Ga=Wt.Id,100<Me.Ga?Me.Ga=100:0>Me.Ga&&(Me.Ga=0)}Cd(pt,ie)||(Lt=pt.a)}}else Lt=pt.a}Lt==0&&Ue.Oa!=null&&Ue.Oa.fd&&(Lt=pA(Ue.ba))}Ue=Lt}ke=Ue!=0?null:11>ke?Ke.f.RGBA.eb:Ke.f.kb.y}else ke=null;return ke};var Qi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Be(ai,Xi){for(var gr="",yn=0;yn<4;yn++)gr+=String.fromCharCode(ai[Xi++]);return gr}function Re(ai,Xi){return(ai[Xi+0]<<0|ai[Xi+1]<<8|ai[Xi+2]<<16)>>>0}function He(ai,Xi){return(ai[Xi+0]<<0|ai[Xi+1]<<8|ai[Xi+2]<<16|ai[Xi+3]<<24)>>>0}new ne;var Ze=[0],pe=[0],jn=[],Sn=new ne,Rn=wt,on=function(ai,Xi){var gr={},yn=0,Ln=!1,wi=0,si=0;if(gr.frames=[],!function(En,$n,fi,ki){for(var Ki=0;Ki<ki;Ki++)if(En[$n+Ki]!=fi.charCodeAt(Ki))return!0;return!1}(ai,Xi,"RIFF",4)){var Ar,_i;for(He(ai,Xi+=4),Xi+=8;Xi<ai.length;){var dr=Be(ai,Xi),Mi=He(ai,Xi+=4);Xi+=4;var tr=Mi+(1&Mi);switch(dr){case"VP8 ":case"VP8L":gr.frames[yn]===void 0&&(gr.frames[yn]={}),(tn=gr.frames[yn]).src_off=Ln?si:Xi-8,tn.src_size=wi+Mi+8,yn++,Ln&&(Ln=!1,wi=0,si=0);break;case"VP8X":(tn=gr.header={}).feature_flags=ai[Xi];var fr=Xi+4;tn.canvas_width=1+Re(ai,fr),fr+=3,tn.canvas_height=1+Re(ai,fr),fr+=3;break;case"ALPH":Ln=!0,wi=tr+8,si=Xi-8;break;case"ANIM":(tn=gr.header).bgcolor=He(ai,Xi),fr=Xi+4,tn.loop_count=(Ar=ai)[(_i=fr)+0]<<0|Ar[_i+1]<<8,fr+=2;break;case"ANMF":var so,tn;(tn=gr.frames[yn]={}).offset_x=2*Re(ai,Xi),Xi+=3,tn.offset_y=2*Re(ai,Xi),Xi+=3,tn.width=1+Re(ai,Xi),Xi+=3,tn.height=1+Re(ai,Xi),Xi+=3,tn.duration=Re(ai,Xi),Xi+=3,so=ai[Xi++],tn.dispose=1&so,tn.blend=so>>1&1}dr!="ANMF"&&(Xi+=tr)}return gr}}(Rn,0);on.response=Rn,on.rgbaoutput=!0,on.dataurl=!1;var On=on.header?on.header:null,mi=on.frames?on.frames:null;if(On){On.loop_counter=On.loop_count,Ze=[On.canvas_height],pe=[On.canvas_width];for(var Di=0;Di<mi.length&&mi[Di].blend!=0;Di++);}var qi=mi[0],Ir=Sn.WebPDecodeRGBA(Rn,qi.src_off,qi.src_size,pe,Ze);qi.rgba=Ir,qi.imgwidth=pe[0],qi.imgheight=Ze[0];for(var Wi=0;Wi<pe[0]*Ze[0]*4;Wi++)jn[Wi]=Ir[Wi];return this.width=pe,this.height=Ze,this.data=jn,this}(function(wt){var gt=function(){return typeof nn=="function"},yt=function(Ze,pe,jn,Sn){var Rn=4,on=Xt;switch(Sn){case wt.image_compression.FAST:Rn=1,on=Ot;break;case wt.image_compression.MEDIUM:Rn=6,on=Jt;break;case wt.image_compression.SLOW:Rn=9,on=ne}Ze=Ft(Ze,pe,jn,on);var On=nn(Ze,{level:Rn});return wt.__addimage__.arrayBufferToBinaryString(On)},Ft=function(Ze,pe,jn,Sn){for(var Rn,on,On,mi=Ze.length/pe,Di=new Uint8Array(Ze.length+mi),qi=Re(),Ir=0;Ir<mi;Ir+=1){if(On=Ir*pe,Rn=Ze.subarray(On,On+pe),Sn)Di.set(Sn(Rn,jn,on),On+Ir);else{for(var Wi,ai=qi.length,Xi=[];Wi<ai;Wi+=1)Xi[Wi]=qi[Wi](Rn,jn,on);var gr=He(Xi.concat());Di.set(Xi[gr],On+Ir)}on=Rn}return Di},Ut=function(Ze){var pe=Array.apply([],Ze);return pe.unshift(0),pe},Ot=function(Ze,pe){var jn,Sn=[],Rn=Ze.length;Sn[0]=1;for(var on=0;on<Rn;on+=1)jn=Ze[on-pe]||0,Sn[on+1]=Ze[on]-jn+256&255;return Sn},Xt=function(Ze,pe,jn){var Sn,Rn=[],on=Ze.length;Rn[0]=2;for(var On=0;On<on;On+=1)Sn=jn&&jn[On]||0,Rn[On+1]=Ze[On]-Sn+256&255;return Rn},Jt=function(Ze,pe,jn){var Sn,Rn,on=[],On=Ze.length;on[0]=3;for(var mi=0;mi<On;mi+=1)Sn=Ze[mi-pe]||0,Rn=jn&&jn[mi]||0,on[mi+1]=Ze[mi]+256-(Sn+Rn>>>1)&255;return on},ne=function(Ze,pe,jn){var Sn,Rn,on,On,mi=[],Di=Ze.length;mi[0]=4;for(var qi=0;qi<Di;qi+=1)Sn=Ze[qi-pe]||0,Rn=jn&&jn[qi]||0,on=jn&&jn[qi-pe]||0,On=Be(Sn,Rn,on),mi[qi+1]=Ze[qi]-On+256&255;return mi},Be=function(Ze,pe,jn){if(Ze===pe&&pe===jn)return Ze;var Sn=Math.abs(pe-jn),Rn=Math.abs(Ze-jn),on=Math.abs(Ze+pe-jn-jn);return Sn<=Rn&&Sn<=on?Ze:Rn<=on?pe:jn},Re=function(){return[Ut,Ot,Xt,Jt,ne]},He=function(Ze){var pe=Ze.map(function(jn){return jn.reduce(function(Sn,Rn){return Sn+Math.abs(Rn)},0)});return pe.indexOf(Math.min.apply(null,pe))};wt.processPNG=function(Ze,pe,jn,Sn){var Rn,on,On,mi,Di,qi,Ir,Wi,ai,Xi,gr,yn,Ln,wi,si,Ar=this.decode.FLATE_DECODE,_i="";if(this.__addimage__.isArrayBuffer(Ze)&&(Ze=new Uint8Array(Ze)),this.__addimage__.isArrayBufferView(Ze)){if(Ze=(On=new zf(Ze)).imgData,on=On.bits,Rn=On.colorSpace,Di=On.colors,[4,6].indexOf(On.colorType)!==-1){if(On.bits===8){ai=(Wi=On.pixelBitlength==32?new Uint32Array(On.decodePixels().buffer):On.pixelBitlength==16?new Uint16Array(On.decodePixels().buffer):new Uint8Array(On.decodePixels().buffer)).length,gr=new Uint8Array(ai*On.colors),Xi=new Uint8Array(ai);var dr,Mi=On.pixelBitlength-On.bits;for(wi=0,si=0;wi<ai;wi++){for(Ln=Wi[wi],dr=0;dr<Mi;)gr[si++]=Ln>>>dr&255,dr+=On.bits;Xi[wi]=Ln>>>dr&255}}if(On.bits===16){ai=(Wi=new Uint32Array(On.decodePixels().buffer)).length,gr=new Uint8Array(ai*(32/On.pixelBitlength)*On.colors),Xi=new Uint8Array(ai*(32/On.pixelBitlength)),yn=On.colors>1,wi=0,si=0;for(var tr=0;wi<ai;)Ln=Wi[wi++],gr[si++]=Ln>>>0&255,yn&&(gr[si++]=Ln>>>16&255,Ln=Wi[wi++],gr[si++]=Ln>>>0&255),Xi[tr++]=Ln>>>16&255;on=8}Sn!==wt.image_compression.NONE&>()?(Ze=yt(gr,On.width*On.colors,On.colors,Sn),Ir=yt(Xi,On.width,1,Sn)):(Ze=gr,Ir=Xi,Ar=void 0)}if(On.colorType===3&&(Rn=this.color_spaces.INDEXED,qi=On.palette,On.transparency.indexed)){var fr=On.transparency.indexed,so=0;for(wi=0,ai=fr.length;wi<ai;++wi)so+=fr[wi];if((so/=255)===ai-1&&fr.indexOf(0)!==-1)mi=[fr.indexOf(0)];else if(so!==ai){for(Wi=On.decodePixels(),Xi=new Uint8Array(Wi.length),wi=0,ai=Wi.length;wi<ai;wi++)Xi[wi]=fr[Wi[wi]];Ir=yt(Xi,On.width,1)}}var tn=function(En){var $n;switch(En){case wt.image_compression.FAST:$n=11;break;case wt.image_compression.MEDIUM:$n=13;break;case wt.image_compression.SLOW:$n=14;break;default:$n=12}return $n}(Sn);return Ar===this.decode.FLATE_DECODE&&(_i="/Predictor "+tn+" "),_i+="/Colors "+Di+" /BitsPerComponent "+on+" /Columns "+On.width,(this.__addimage__.isArrayBuffer(Ze)||this.__addimage__.isArrayBufferView(Ze))&&(Ze=this.__addimage__.arrayBufferToBinaryString(Ze)),(Ir&&this.__addimage__.isArrayBuffer(Ir)||this.__addimage__.isArrayBufferView(Ir))&&(Ir=this.__addimage__.arrayBufferToBinaryString(Ir)),{alias:jn,data:Ze,index:pe,filter:Ar,decodeParameters:_i,transparency:mi,palette:qi,sMask:Ir,predictor:tn,width:On.width,height:On.height,bitsPerComponent:on,colorSpace:Rn}}}})(ho.API),function(wt){wt.processGIF89A=function(gt,yt,Ft,Ut){var Ot=new Je(gt),Xt=Ot.width,Jt=Ot.height,ne=[];Ot.decodeAndBlitFrameRGBA(0,ne);var Be={data:ne,width:Xt,height:Jt},Re=new ff(100).encode(Be,100);return wt.processJPEG.call(this,Re,yt,Ft,Ut)},wt.processGIF87A=wt.processGIF89A}(ho.API),oA.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 wt=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(wt);for(var gt=0;gt<wt;gt++){var yt=this.datav.getUint8(this.pos++,!0),Ft=this.datav.getUint8(this.pos++,!0),Ut=this.datav.getUint8(this.pos++,!0),Ot=this.datav.getUint8(this.pos++,!0);this.palette[gt]={red:Ut,green:Ft,blue:yt,quad:Ot}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},oA.prototype.parseBGR=function(){this.pos=this.offset;try{var wt="bit"+this.bitPP,gt=this.width*this.height*4;this.data=new Uint8Array(gt),this[wt]()}catch(yt){So.log("bit decode error:"+yt)}},oA.prototype.bit1=function(){var wt,gt=Math.ceil(this.width/8),yt=gt%4;for(wt=this.height-1;wt>=0;wt--){for(var Ft=this.bottom_up?wt:this.height-1-wt,Ut=0;Ut<gt;Ut++)for(var Ot=this.datav.getUint8(this.pos++,!0),Xt=Ft*this.width*4+8*Ut*4,Jt=0;Jt<8&&8*Ut+Jt<this.width;Jt++){var ne=this.palette[Ot>>7-Jt&1];this.data[Xt+4*Jt]=ne.blue,this.data[Xt+4*Jt+1]=ne.green,this.data[Xt+4*Jt+2]=ne.red,this.data[Xt+4*Jt+3]=255}yt!==0&&(this.pos+=4-yt)}},oA.prototype.bit4=function(){for(var wt=Math.ceil(this.width/2),gt=wt%4,yt=this.height-1;yt>=0;yt--){for(var Ft=this.bottom_up?yt:this.height-1-yt,Ut=0;Ut<wt;Ut++){var Ot=this.datav.getUint8(this.pos++,!0),Xt=Ft*this.width*4+2*Ut*4,Jt=Ot>>4,ne=15&Ot,Be=this.palette[Jt];if(this.data[Xt]=Be.blue,this.data[Xt+1]=Be.green,this.data[Xt+2]=Be.red,this.data[Xt+3]=255,2*Ut+1>=this.width)break;Be=this.palette[ne],this.data[Xt+4]=Be.blue,this.data[Xt+4+1]=Be.green,this.data[Xt+4+2]=Be.red,this.data[Xt+4+3]=255}gt!==0&&(this.pos+=4-gt)}},oA.prototype.bit8=function(){for(var wt=this.width%4,gt=this.height-1;gt>=0;gt--){for(var yt=this.bottom_up?gt:this.height-1-gt,Ft=0;Ft<this.width;Ft++){var Ut=this.datav.getUint8(this.pos++,!0),Ot=yt*this.width*4+4*Ft;if(Ut<this.palette.length){var Xt=this.palette[Ut];this.data[Ot]=Xt.red,this.data[Ot+1]=Xt.green,this.data[Ot+2]=Xt.blue,this.data[Ot+3]=255}else this.data[Ot]=255,this.data[Ot+1]=255,this.data[Ot+2]=255,this.data[Ot+3]=255}wt!==0&&(this.pos+=4-wt)}},oA.prototype.bit15=function(){for(var wt=this.width%3,gt=parseInt("11111",2),yt=this.height-1;yt>=0;yt--){for(var Ft=this.bottom_up?yt:this.height-1-yt,Ut=0;Ut<this.width;Ut++){var Ot=this.datav.getUint16(this.pos,!0);this.pos+=2;var Xt=(Ot>)/gt*255|0,Jt=(Ot>>5>)/gt*255|0,ne=(Ot>>10>)/gt*255|0,Be=Ot>>15?255:0,Re=Ft*this.width*4+4*Ut;this.data[Re]=ne,this.data[Re+1]=Jt,this.data[Re+2]=Xt,this.data[Re+3]=Be}this.pos+=wt}},oA.prototype.bit16=function(){for(var wt=this.width%3,gt=parseInt("11111",2),yt=parseInt("111111",2),Ft=this.height-1;Ft>=0;Ft--){for(var Ut=this.bottom_up?Ft:this.height-1-Ft,Ot=0;Ot<this.width;Ot++){var Xt=this.datav.getUint16(this.pos,!0);this.pos+=2;var Jt=(Xt>)/gt*255|0,ne=(Xt>>5&yt)/yt*255|0,Be=(Xt>>11)/gt*255|0,Re=Ut*this.width*4+4*Ot;this.data[Re]=Be,this.data[Re+1]=ne,this.data[Re+2]=Jt,this.data[Re+3]=255}this.pos+=wt}},oA.prototype.bit24=function(){for(var wt=this.height-1;wt>=0;wt--){for(var gt=this.bottom_up?wt:this.height-1-wt,yt=0;yt<this.width;yt++){var Ft=this.datav.getUint8(this.pos++,!0),Ut=this.datav.getUint8(this.pos++,!0),Ot=this.datav.getUint8(this.pos++,!0),Xt=gt*this.width*4+4*yt;this.data[Xt]=Ot,this.data[Xt+1]=Ut,this.data[Xt+2]=Ft,this.data[Xt+3]=255}this.pos+=this.width%4}},oA.prototype.bit32=function(){for(var wt=this.height-1;wt>=0;wt--)for(var gt=this.bottom_up?wt:this.height-1-wt,yt=0;yt<this.width;yt++){var Ft=this.datav.getUint8(this.pos++,!0),Ut=this.datav.getUint8(this.pos++,!0),Ot=this.datav.getUint8(this.pos++,!0),Xt=this.datav.getUint8(this.pos++,!0),Jt=gt*this.width*4+4*yt;this.data[Jt]=Ot,this.data[Jt+1]=Ut,this.data[Jt+2]=Ft,this.data[Jt+3]=Xt}},oA.prototype.getData=function(){return this.data},function(wt){wt.processBMP=function(gt,yt,Ft,Ut){var Ot=new oA(gt,!1),Xt=Ot.width,Jt=Ot.height,ne={data:Ot.getData(),width:Xt,height:Jt},Be=new ff(100).encode(ne,100);return wt.processJPEG.call(this,Be,yt,Ft,Ut)}}(ho.API),yu.prototype.getData=function(){return this.data},function(wt){wt.processWEBP=function(gt,yt,Ft,Ut){var Ot=new yu(gt,!1),Xt=Ot.width,Jt=Ot.height,ne={data:Ot.getData(),width:Xt,height:Jt},Be=new ff(100).encode(ne,100);return wt.processJPEG.call(this,Be,yt,Ft,Ut)}}(ho.API),ho.API.processRGBA=function(wt,gt,yt){for(var Ft=wt.data,Ut=Ft.length,Ot=new Uint8Array(Ut/4*3),Xt=new Uint8Array(Ut/4),Jt=0,ne=0,Be=0;Be<Ut;Be+=4){var Re=Ft[Be],He=Ft[Be+1],Ze=Ft[Be+2],pe=Ft[Be+3];Ot[Jt++]=Re,Ot[Jt++]=He,Ot[Jt++]=Ze,Xt[ne++]=pe}var jn=this.__addimage__.arrayBufferToBinaryString(Ot);return{alpha:this.__addimage__.arrayBufferToBinaryString(Xt),data:jn,index:gt,alias:yt,colorSpace:"DeviceRGB",bitsPerComponent:8,width:wt.width,height:wt.height}},ho.API.setLanguage=function(wt){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"}[wt]!==void 0&&(this.internal.languageSettings.languageCode=wt,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},La=ho.API,td=La.getCharWidthsArray=function(wt,gt){var yt,Ft,Ut=(gt=gt||{}).font||this.internal.getFont(),Ot=gt.fontSize||this.internal.getFontSize(),Xt=gt.charSpace||this.internal.getCharSpace(),Jt=gt.widths?gt.widths:Ut.metadata.Unicode.widths,ne=Jt.fof?Jt.fof:1,Be=gt.kerning?gt.kerning:Ut.metadata.Unicode.kerning,Re=Be.fof?Be.fof:1,He=gt.doKerning!==!1,Ze=0,pe=wt.length,jn=0,Sn=Jt[0]||ne,Rn=[];for(yt=0;yt<pe;yt++)Ft=wt.charCodeAt(yt),typeof Ut.metadata.widthOfString=="function"?Rn.push((Ut.metadata.widthOfGlyph(Ut.metadata.characterToGlyph(Ft))+Xt*(1e3/Ot)||0)/1e3):(Ze=He&&(0,Kt.Z)(Be[Ft])==="object"&&!isNaN(parseInt(Be[Ft][jn],10))?Be[Ft][jn]/Re:0,Rn.push((Jt[Ft]||Sn)/ne+Ze)),jn=Ft;return Rn},fc=La.getStringUnitWidth=function(wt,gt){var yt=(gt=gt||{}).fontSize||this.internal.getFontSize(),Ft=gt.font||this.internal.getFont(),Ut=gt.charSpace||this.internal.getCharSpace();return La.processArabic&&(wt=La.processArabic(wt)),typeof Ft.metadata.widthOfString=="function"?Ft.metadata.widthOfString(wt,yt,Ut)/yt:td.apply(this,arguments).reduce(function(Ot,Xt){return Ot+Xt},0)},_h=function(wt,gt,yt,Ft){for(var Ut=[],Ot=0,Xt=wt.length,Jt=0;Ot!==Xt&&Jt+gt[Ot]<yt;)Jt+=gt[Ot],Ot++;Ut.push(wt.slice(0,Ot));var ne=Ot;for(Jt=0;Ot!==Xt;)Jt+gt[Ot]>Ft&&(Ut.push(wt.slice(ne,Ot)),Jt=0,ne=Ot),Jt+=gt[Ot],Ot++;return ne!==Ot&&Ut.push(wt.slice(ne,Ot)),Ut},mo=function(wt,gt,yt){yt||(yt={});var Ft,Ut,Ot,Xt,Jt,ne,Be,Re=[],He=[Re],Ze=yt.textIndent||0,pe=0,jn=0,Sn=wt.split(" "),Rn=td.apply(this,[" ",yt])[0];if(ne=yt.lineIndent===-1?Sn[0].length+2:yt.lineIndent||0){var on=Array(ne).join(" "),On=[];Sn.map(function(Di){(Di=Di.split(/\s*\n/)).length>1?On=On.concat(Di.map(function(qi,Ir){return(Ir&&qi.length?`
|
|
|
`:"")+qi})):On.push(Di[0])}),Sn=On,ne=fc.apply(this,[on,yt])}for(Ot=0,Xt=Sn.length;Ot<Xt;Ot++){var mi=0;if(Ft=Sn[Ot],ne&&Ft[0]==`
|
|
|
`&&(Ft=Ft.substr(1),mi=1),Ze+pe+(jn=(Ut=td.apply(this,[Ft,yt])).reduce(function(Di,qi){return Di+qi},0))>gt||mi){if(jn>gt){for(Jt=_h.apply(this,[Ft,Ut,gt-(Ze+pe),gt]),Re.push(Jt.shift()),Re=[Jt.pop()];Jt.length;)He.push([Jt.shift()]);jn=Ut.slice(Ft.length-(Re[0]?Re[0].length:0)).reduce(function(Di,qi){return Di+qi},0)}else Re=[Ft];He.push(Re),Ze=jn+ne,pe=Rn}else Re.push(Ft),Ze+=pe+jn,pe=Rn}return Be=ne?function(Di,qi){return(qi?on:"")+Di.join(" ")}:function(Di){return Di.join(" ")},He.map(Be)},La.splitTextToSize=function(wt,gt,yt){var Ft,Ut=(yt=yt||{}).fontSize||this.internal.getFontSize(),Ot=function(Re){if(Re.widths&&Re.kerning)return{widths:Re.widths,kerning:Re.kerning};var He=this.internal.getFont(Re.fontName,Re.fontStyle);return He.metadata.Unicode?{widths:He.metadata.Unicode.widths||{0:1},kerning:He.metadata.Unicode.kerning||{}}:{font:He.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,yt);Ft=Array.isArray(wt)?wt:String(wt).split(/\r?\n/);var Xt=1*this.internal.scaleFactor*gt/Ut;Ot.textIndent=yt.textIndent?1*yt.textIndent*this.internal.scaleFactor/Ut:0,Ot.lineIndent=yt.lineIndent;var Jt,ne,Be=[];for(Jt=0,ne=Ft.length;Jt<ne;Jt++)Be=Be.concat(mo.apply(this,[Ft[Jt],Xt,Ot]));return Be},function(wt){wt.__fontmetrics__=wt.__fontmetrics__||{};for(var gt="klmnopqrstuvwxyz",yt={},Ft={},Ut=0;Ut<gt.length;Ut++)yt[gt[Ut]]="0123456789abcdef"[Ut],Ft["0123456789abcdef"[Ut]]=gt[Ut];var Ot=function(He){return"0x"+parseInt(He,10).toString(16)},Xt=wt.__fontmetrics__.compress=function(He){var Ze,pe,jn,Sn,Rn=["{"];for(var on in He){if(Ze=He[on],isNaN(parseInt(on,10))?pe="'"+on+"'":(on=parseInt(on,10),pe=(pe=Ot(on).slice(2)).slice(0,-1)+Ft[pe.slice(-1)]),typeof Ze=="number")Ze<0?(jn=Ot(Ze).slice(3),Sn="-"):(jn=Ot(Ze).slice(2),Sn=""),jn=Sn+jn.slice(0,-1)+Ft[jn.slice(-1)];else{if((0,Kt.Z)(Ze)!=="object")throw new Error("Don't know what to do with value type "+(0,Kt.Z)(Ze)+".");jn=Xt(Ze)}Rn.push(pe+jn)}return Rn.push("}"),Rn.join("")},Jt=wt.__fontmetrics__.uncompress=function(He){if(typeof He!="string")throw new Error("Invalid argument passed to uncompress.");for(var Ze,pe,jn,Sn,Rn={},on=1,On=Rn,mi=[],Di="",qi="",Ir=He.length-1,Wi=1;Wi<Ir;Wi+=1)(Sn=He[Wi])=="'"?Ze?(jn=Ze.join(""),Ze=void 0):Ze=[]:Ze?Ze.push(Sn):Sn=="{"?(mi.push([On,jn]),On={},jn=void 0):Sn=="}"?((pe=mi.pop())[0][pe[1]]=On,jn=void 0,On=pe[0]):Sn=="-"?on=-1:jn===void 0?yt.hasOwnProperty(Sn)?(Di+=yt[Sn],jn=parseInt(Di,16)*on,on=1,Di=""):Di+=Sn:yt.hasOwnProperty(Sn)?(qi+=yt[Sn],On[jn]=parseInt(qi,16)*on,on=1,jn=void 0,qi=""):qi+=Sn;return Rn},ne={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Jt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Be={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":Jt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Jt("{'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":Jt("{'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:Jt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Jt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Jt("{'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:Jt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Jt("{'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":Jt("{'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:Jt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Jt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Jt("{'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":Jt("{'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":Jt("{'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}}}")}};wt.events.push(["addFont",function(He){var Ze=He.font,pe=Re.Unicode[Ze.postScriptName];pe&&(Ze.metadata.Unicode={},Ze.metadata.Unicode.widths=pe.widths,Ze.metadata.Unicode.kerning=pe.kerning);var jn=Be.Unicode[Ze.postScriptName];jn&&(Ze.metadata.Unicode.encoding=jn,Ze.encoding=jn.codePages[0])}])}(ho.API),function(wt){var gt=function(yt){for(var Ft=yt.length,Ut=new Uint8Array(Ft),Ot=0;Ot<Ft;Ot++)Ut[Ot]=yt.charCodeAt(Ot);return Ut};wt.API.events.push(["addFont",function(yt){var Ft=void 0,Ut=yt.font,Ot=yt.instance;if(!Ut.isStandardFont){if(Ot===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ut.postScriptName+"').");if(typeof(Ft=Ot.existsFileInVFS(Ut.postScriptName)===!1?Ot.loadFile(Ut.postScriptName):Ot.getFileFromVFS(Ut.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ut.postScriptName+"').");(function(Xt,Jt){Jt=/^\x00\x01\x00\x00/.test(Jt)?gt(Jt):gt(qo(Jt)),Xt.metadata=wt.API.TTFFont.open(Jt),Xt.metadata.Unicode=Xt.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Xt.metadata.glyIdsUsed=[0]})(Ut,Ft)}}])}(ho),function(wt){function gt(){return(br.canvg?Promise.resolve(br.canvg):Yt.e(6949).then(Yt.bind(Yt,46949))).catch(function(yt){return Promise.reject(new Error("Could not load canvg: "+yt))}).then(function(yt){return yt.default?yt.default:yt})}ho.API.addSvgAsImage=function(yt,Ft,Ut,Ot,Xt,Jt,ne,Be){if(isNaN(Ft)||isNaN(Ut))throw So.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Ot)||isNaN(Xt))throw So.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=Ot,Re.height=Xt;var He=Re.getContext("2d");He.fillStyle="#fff",He.fillRect(0,0,Re.width,Re.height);var Ze={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},pe=this;return gt().then(function(jn){return jn.fromString(He,yt,Ze)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(jn){return jn.render(Ze)}).then(function(){pe.addImage(Re.toDataURL("image/jpeg",1),Ft,Ut,Ot,Xt,ne,Be)})}}(),ho.API.putTotalPages=function(wt){var gt,yt=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(gt=new RegExp(wt,"g"),yt=this.internal.getNumberOfPages()):(gt=new RegExp(this.pdfEscape16(wt,this.internal.getFont()),"g"),yt=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ft=1;Ft<=this.internal.getNumberOfPages();Ft++)for(var Ut=0;Ut<this.internal.pages[Ft].length;Ut++)this.internal.pages[Ft][Ut]=this.internal.pages[Ft][Ut].replace(gt,yt);return this},ho.API.viewerPreferences=function(wt,gt){var yt;wt=wt||{},gt=gt||!1;var Ft,Ut,Ot,Xt={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}},Jt=Object.keys(Xt),ne=[],Be=0,Re=0,He=0;function Ze(jn,Sn){var Rn,on=!1;for(Rn=0;Rn<jn.length;Rn+=1)jn[Rn]===Sn&&(on=!0);return on}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Xt)),this.internal.viewerpreferences.isSubscribed=!1),yt=this.internal.viewerpreferences.configuration,wt==="reset"||gt===!0){var pe=Jt.length;for(He=0;He<pe;He+=1)yt[Jt[He]].value=yt[Jt[He]].defaultValue,yt[Jt[He]].explicitSet=!1}if((0,Kt.Z)(wt)==="object"){for(Ut in wt)if(Ot=wt[Ut],Ze(Jt,Ut)&&Ot!==void 0){if(yt[Ut].type==="boolean"&&typeof Ot=="boolean")yt[Ut].value=Ot;else if(yt[Ut].type==="name"&&Ze(yt[Ut].valueSet,Ot))yt[Ut].value=Ot;else if(yt[Ut].type==="integer"&&Number.isInteger(Ot))yt[Ut].value=Ot;else if(yt[Ut].type==="array"){for(Be=0;Be<Ot.length;Be+=1)if(Ft=!0,Ot[Be].length===1&&typeof Ot[Be][0]=="number")ne.push(String(Ot[Be]-1));else if(Ot[Be].length>1){for(Re=0;Re<Ot[Be].length;Re+=1)typeof Ot[Be][Re]!="number"&&(Ft=!1);Ft===!0&&ne.push([Ot[Be][0]-1,Ot[Be][1]-1].join(" "))}yt[Ut].value="["+ne.join(" ")+"]"}else yt[Ut].value=yt[Ut].defaultValue;yt[Ut].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var jn,Sn=[];for(jn in yt)yt[jn].explicitSet===!0&&(yt[jn].type==="name"?Sn.push("/"+jn+" /"+yt[jn].value):Sn.push("/"+jn+" "+yt[jn].value));Sn.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+Sn.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=yt,this},function(wt){var gt=function(){var Ft='<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>',Ut=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Ot=unescape(encodeURIComponent(Ft)),Xt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Jt=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ne=unescape(encodeURIComponent("</x:xmpmeta>")),Be=Ot.length+Xt.length+Jt.length+Ut.length+ne.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Be+" >>"),this.internal.write("stream"),this.internal.write(Ut+Ot+Xt+Jt+ne),this.internal.write("endstream"),this.internal.write("endobj")},yt=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};wt.addMetadata=function(Ft,Ut){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ft,namespaceuri:Ut||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",yt),this.internal.events.subscribe("postPutResources",gt)),this}}(ho.API),function(wt){var gt=wt.API,yt=gt.pdfEscape16=function(Ot,Xt){for(var Jt,ne=Xt.metadata.Unicode.widths,Be=["","0","00","000","0000"],Re=[""],He=0,Ze=Ot.length;He<Ze;++He){if(Jt=Xt.metadata.characterToGlyph(Ot.charCodeAt(He)),Xt.metadata.glyIdsUsed.push(Jt),Xt.metadata.toUnicode[Jt]=Ot.charCodeAt(He),ne.indexOf(Jt)==-1&&(ne.push(Jt),ne.push([parseInt(Xt.metadata.widthOfGlyph(Jt),10)])),Jt=="0")return Re.join("");Jt=Jt.toString(16),Re.push(Be[4-Jt.length],Jt)}return Re.join("")},Ft=function(Ot){var Xt,Jt,ne,Be,Re,He,Ze;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=[],He=0,Ze=(Jt=Object.keys(Ot).sort(function(pe,jn){return pe-jn})).length;He<Ze;He++)Xt=Jt[He],ne.length>=100&&(Re+=`
|
|
|
`+ne.length+` beginbfchar
|
|
|
`+ne.join(`
|
|
|
`)+`
|
|
|
endbfchar`,ne=[]),Ot[Xt]!==void 0&&Ot[Xt]!==null&&typeof Ot[Xt].toString=="function"&&(Be=("0000"+Ot[Xt].toString(16)).slice(-4),Xt=("0000"+(+Xt).toString(16)).slice(-4),ne.push("<"+Xt+"><"+Be+">"));return ne.length&&(Re+=`
|
|
|
`+ne.length+` beginbfchar
|
|
|
`+ne.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),Re+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};gt.events.push(["putFont",function(Ot){(function(Xt){var Jt=Xt.font,ne=Xt.out,Be=Xt.newObject,Re=Xt.putStream;if(Jt.metadata instanceof wt.API.TTFFont&&Jt.encoding==="Identity-H"){for(var He=Jt.metadata.Unicode.widths,Ze=Jt.metadata.subset.encode(Jt.metadata.glyIdsUsed,1),pe="",jn=0;jn<Ze.length;jn++)pe+=String.fromCharCode(Ze[jn]);var Sn=Be();Re({data:pe,addLength1:!0,objectId:Sn}),ne("endobj");var Rn=Be();Re({data:Ft(Jt.metadata.toUnicode),addLength1:!0,objectId:Rn}),ne("endobj");var on=Be();ne("<<"),ne("/Type /FontDescriptor"),ne("/FontName /"+jr(Jt.fontName)),ne("/FontFile2 "+Sn+" 0 R"),ne("/FontBBox "+wt.API.PDFObject.convert(Jt.metadata.bbox)),ne("/Flags "+Jt.metadata.flags),ne("/StemV "+Jt.metadata.stemV),ne("/ItalicAngle "+Jt.metadata.italicAngle),ne("/Ascent "+Jt.metadata.ascender),ne("/Descent "+Jt.metadata.decender),ne("/CapHeight "+Jt.metadata.capHeight),ne(">>"),ne("endobj");var On=Be();ne("<<"),ne("/Type /Font"),ne("/BaseFont /"+jr(Jt.fontName)),ne("/FontDescriptor "+on+" 0 R"),ne("/W "+wt.API.PDFObject.convert(He)),ne("/CIDToGIDMap /Identity"),ne("/DW 1000"),ne("/Subtype /CIDFontType2"),ne("/CIDSystemInfo"),ne("<<"),ne("/Supplement 0"),ne("/Registry (Adobe)"),ne("/Ordering ("+Jt.encoding+")"),ne(">>"),ne(">>"),ne("endobj"),Jt.objectNumber=Be(),ne("<<"),ne("/Type /Font"),ne("/Subtype /Type0"),ne("/ToUnicode "+Rn+" 0 R"),ne("/BaseFont /"+jr(Jt.fontName)),ne("/Encoding /"+Jt.encoding),ne("/DescendantFonts ["+On+" 0 R]"),ne(">>"),ne("endobj"),Jt.isAlreadyPutted=!0}})(Ot)}]),gt.events.push(["putFont",function(Ot){(function(Xt){var Jt=Xt.font,ne=Xt.out,Be=Xt.newObject,Re=Xt.putStream;if(Jt.metadata instanceof wt.API.TTFFont&&Jt.encoding==="WinAnsiEncoding"){for(var He=Jt.metadata.rawData,Ze="",pe=0;pe<He.length;pe++)Ze+=String.fromCharCode(He[pe]);var jn=Be();Re({data:Ze,addLength1:!0,objectId:jn}),ne("endobj");var Sn=Be();Re({data:Ft(Jt.metadata.toUnicode),addLength1:!0,objectId:Sn}),ne("endobj");var Rn=Be();ne("<<"),ne("/Descent "+Jt.metadata.decender),ne("/CapHeight "+Jt.metadata.capHeight),ne("/StemV "+Jt.metadata.stemV),ne("/Type /FontDescriptor"),ne("/FontFile2 "+jn+" 0 R"),ne("/Flags 96"),ne("/FontBBox "+wt.API.PDFObject.convert(Jt.metadata.bbox)),ne("/FontName /"+jr(Jt.fontName)),ne("/ItalicAngle "+Jt.metadata.italicAngle),ne("/Ascent "+Jt.metadata.ascender),ne(">>"),ne("endobj"),Jt.objectNumber=Be();for(var on=0;on<Jt.metadata.hmtx.widths.length;on++)Jt.metadata.hmtx.widths[on]=parseInt(Jt.metadata.hmtx.widths[on]*(1e3/Jt.metadata.head.unitsPerEm));ne("<</Subtype/TrueType/Type/Font/ToUnicode "+Sn+" 0 R/BaseFont/"+jr(Jt.fontName)+"/FontDescriptor "+Rn+" 0 R/Encoding/"+Jt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+wt.API.PDFObject.convert(Jt.metadata.hmtx.widths)+">>"),ne("endobj"),Jt.isAlreadyPutted=!0}})(Ot)}]);var Ut=function(Ot){var Xt,Jt=Ot.text||"",ne=Ot.x,Be=Ot.y,Re=Ot.options||{},He=Ot.mutex||{},Ze=He.pdfEscape,pe=He.activeFontKey,jn=He.fonts,Sn=pe,Rn="",on=0,On="",mi=jn[Sn].encoding;if(jn[Sn].encoding!=="Identity-H")return{text:Jt,x:ne,y:Be,options:Re,mutex:He};for(On=Jt,Sn=pe,Array.isArray(Jt)&&(On=Jt[0]),on=0;on<On.length;on+=1)jn[Sn].metadata.hasOwnProperty("cmap")&&(Xt=jn[Sn].metadata.cmap.unicode.codeMap[On[on].charCodeAt(0)]),Xt||On[on].charCodeAt(0)<256&&jn[Sn].metadata.hasOwnProperty("Unicode")?Rn+=On[on]:Rn+="";var Di="";return parseInt(Sn.slice(1))<14||mi==="WinAnsiEncoding"?Di=Ze(Rn,Sn).split("").map(function(qi){return qi.charCodeAt(0).toString(16)}).join(""):mi==="Identity-H"&&(Di=yt(Rn,jn[Sn])),He.isHex=!0,{text:Di,x:ne,y:Be,options:Re,mutex:He}};gt.events.push(["postProcessText",function(Ot){var Xt=Ot.text||"",Jt=[],ne={text:Xt,x:Ot.x,y:Ot.y,options:Ot.options,mutex:Ot.mutex};if(Array.isArray(Xt)){var Be=0;for(Be=0;Be<Xt.length;Be+=1)Array.isArray(Xt[Be])&&Xt[Be].length===3?Jt.push([Ut(Object.assign({},ne,{text:Xt[Be][0]})).text,Xt[Be][1],Xt[Be][2]]):Jt.push(Ut(Object.assign({},ne,{text:Xt[Be]})).text);Ot.text=Jt}else Ot.text=Ut(Object.assign({},ne,{text:Xt})).text}])}(ho),function(wt){var gt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};wt.existsFileInVFS=function(yt){return gt.call(this),this.internal.vFS[yt]!==void 0},wt.addFileToVFS=function(yt,Ft){return gt.call(this),this.internal.vFS[yt]=Ft,this},wt.getFileFromVFS=function(yt){return gt.call(this),this.internal.vFS[yt]!==void 0?this.internal.vFS[yt]:null}}(ho.API),function(wt){wt.__bidiEngine__=wt.prototype.__bidiEngine__=function(Ft){var Ut,Ot,Xt,Jt,ne,Be,Re,He=gt,Ze=[[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]],pe=[[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]],jn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Sn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Rn=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],on=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 Di=function(yn){var Ln=yn.charCodeAt(),wi=Ln>>8,si=Sn[wi];return si!==void 0?He[256*si+(255&Ln)]:wi===252||wi===253?"AL":on.test(wi)?"L":wi===8?"R":"N"},qi=function(yn){for(var Ln,wi=0;wi<yn.length;wi++){if((Ln=Di(yn.charAt(wi)))==="L")return!1;if(Ln==="R")return!0}return!1},Ir=function(yn,Ln,wi,si){var Ar,_i,dr,Mi,tr=Ln[si];switch(tr){case"L":case"R":On=!1;break;case"N":case"AN":break;case"EN":On&&(tr="AN");break;case"AL":On=!0,tr="R";break;case"WS":tr="N";break;case"CS":si<1||si+1>=Ln.length||(Ar=wi[si-1])!=="EN"&&Ar!=="AN"||(_i=Ln[si+1])!=="EN"&&_i!=="AN"?tr="N":On&&(_i="AN"),tr=_i===Ar?_i:"N";break;case"ES":tr=(Ar=si>0?wi[si-1]:"B")==="EN"&&si+1<Ln.length&&Ln[si+1]==="EN"?"EN":"N";break;case"ET":if(si>0&&wi[si-1]==="EN"){tr="EN";break}if(On){tr="N";break}for(dr=si+1,Mi=Ln.length;dr<Mi&&Ln[dr]==="ET";)dr++;tr=dr<Mi&&Ln[dr]==="EN"?"EN":"N";break;case"NSM":if(Xt&&!Jt){for(Mi=Ln.length,dr=si+1;dr<Mi&&Ln[dr]==="NSM";)dr++;if(dr<Mi){var fr=yn[si],so=fr>=1425&&fr<=2303||fr===64286;if(Ar=Ln[dr],so&&(Ar==="R"||Ar==="AL")){tr="R";break}}}tr=si<1||(Ar=Ln[si-1])==="B"?"N":wi[si-1];break;case"B":On=!1,Ut=!0,tr=mi;break;case"S":Ot=!0,tr="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":On=!1;break;case"BN":tr="N"}return tr},Wi=function(yn,Ln,wi){var si=yn.split("");return wi&&ai(si,wi,{hiLevel:mi}),si.reverse(),Ln&&Ln.reverse(),si.join("")},ai=function(yn,Ln,wi){var si,Ar,_i,dr,Mi,tr=-1,fr=yn.length,so=0,tn=[],En=mi?pe:Ze,$n=[];for(On=!1,Ut=!1,Ot=!1,Ar=0;Ar<fr;Ar++)$n[Ar]=Di(yn[Ar]);for(_i=0;_i<fr;_i++){if(Mi=so,tn[_i]=Ir(yn,$n,tn,_i),si=240&(so=En[Mi][jn[tn[_i]]]),so&=15,Ln[_i]=dr=En[so][5],si>0)if(si===16){for(Ar=tr;Ar<_i;Ar++)Ln[Ar]=1;tr=-1}else tr=-1;if(En[so][6])tr===-1&&(tr=_i);else if(tr>-1){for(Ar=tr;Ar<_i;Ar++)Ln[Ar]=dr;tr=-1}$n[_i]==="B"&&(Ln[_i]=0),wi.hiLevel|=dr}Ot&&function(fi,ki,Ki){for(var ir=0;ir<Ki;ir++)if(fi[ir]==="S"){ki[ir]=mi;for(var ji=ir-1;ji>=0&&fi[ji]==="WS";ji--)ki[ji]=mi}}($n,Ln,fr)},Xi=function(yn,Ln,wi,si,Ar){if(!(Ar.hiLevel<yn)){if(yn===1&&mi===1&&!Ut)return Ln.reverse(),void(wi&&wi.reverse());for(var _i,dr,Mi,tr,fr=Ln.length,so=0;so<fr;){if(si[so]>=yn){for(Mi=so+1;Mi<fr&&si[Mi]>=yn;)Mi++;for(tr=so,dr=Mi-1;tr<dr;tr++,dr--)_i=Ln[tr],Ln[tr]=Ln[dr],Ln[dr]=_i,wi&&(_i=wi[tr],wi[tr]=wi[dr],wi[dr]=_i);so=Mi}so++}}},gr=function(yn,Ln,wi){var si=yn.split(""),Ar={hiLevel:mi};return wi||(wi=[]),ai(si,wi,Ar),function(_i,dr,Mi){if(Mi.hiLevel!==0&&Re)for(var tr,fr=0;fr<_i.length;fr++)dr[fr]===1&&(tr=Rn.indexOf(_i[fr]))>=0&&(_i[fr]=Rn[tr+1])}(si,wi,Ar),Xi(2,si,Ln,wi,Ar),Xi(1,si,Ln,wi,Ar),si.join("")};return this.__bidiEngine__.doBidiReorder=function(yn,Ln,wi){if(function(Ar,_i){if(_i)for(var dr=0;dr<Ar.length;dr++)_i[dr]=dr;Jt===void 0&&(Jt=qi(Ar)),Be===void 0&&(Be=qi(Ar))}(yn,Ln),Xt||!ne||Be)if(Xt&&ne&&Jt^Be)mi=Jt?1:0,yn=Wi(yn,Ln,wi);else if(!Xt&&ne&&Be)mi=Jt?1:0,yn=gr(yn,Ln,wi),yn=Wi(yn,Ln);else if(!Xt||Jt||ne||Be){if(Xt&&!ne&&Jt^Be)yn=Wi(yn,Ln),Jt?(mi=0,yn=gr(yn,Ln,wi)):(mi=1,yn=gr(yn,Ln,wi),yn=Wi(yn,Ln));else if(Xt&&Jt&&!ne&&Be)mi=1,yn=gr(yn,Ln,wi),yn=Wi(yn,Ln);else if(!Xt&&!ne&&Jt^Be){var si=Re;Jt?(mi=1,yn=gr(yn,Ln,wi),mi=0,Re=!1,yn=gr(yn,Ln,wi),Re=si):(mi=0,yn=gr(yn,Ln,wi),yn=Wi(yn,Ln),mi=1,Re=!1,yn=gr(yn,Ln,wi),Re=si,yn=Wi(yn,Ln))}}else mi=0,yn=gr(yn,Ln,wi);else mi=Jt?1:0,yn=gr(yn,Ln,wi);return yn},this.__bidiEngine__.setOptions=function(yn){yn&&(Xt=yn.isInputVisual,ne=yn.isOutputVisual,Jt=yn.isInputRtl,Be=yn.isOutputRtl,Re=yn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ft),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"],yt=new wt.__bidiEngine__({isInputVisual:!0});wt.API.events.push(["postProcessText",function(Ft){var Ut=Ft.text,Ot=(Ft.x,Ft.y,Ft.options||{}),Xt=(Ft.mutex,Ot.lang,[]);if(Ot.isInputVisual=typeof Ot.isInputVisual!="boolean"||Ot.isInputVisual,yt.setOptions(Ot),Object.prototype.toString.call(Ut)==="[object Array]"){var Jt=0;for(Xt=[],Jt=0;Jt<Ut.length;Jt+=1)Object.prototype.toString.call(Ut[Jt])==="[object Array]"?Xt.push([yt.doBidiReorder(Ut[Jt][0]),Ut[Jt][1],Ut[Jt][2]]):Xt.push([yt.doBidiReorder(Ut[Jt])]);Ft.text=Xt}else Ft.text=yt.doBidiReorder(Ut);yt.setOptions({isInputVisual:!0})}])}(ho),ho.API.TTFFont=function(){function wt(gt){var yt;if(this.rawData=gt,yt=this.contents=new Nh(gt),this.contents.pos=4,yt.readString(4)==="ttcf")throw new Error("TTCF not supported.");yt.pos=0,this.parse(),this.subset=new Ja(this),this.registerTTF()}return wt.open=function(gt){return new wt(gt)},wt.prototype.parse=function(){return this.directory=new gf(this.contents),this.head=new Xo(this),this.name=new Ua(this),this.cmap=new th(this),this.toUnicode={},this.hhea=new sl(this),this.maxp=new mh(this),this.hmtx=new Vl(this),this.post=new kl(this),this.os2=new Ms(this),this.loca=new Oa(this),this.glyf=new na(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]},wt.prototype.registerTTF=function(){var gt,yt,Ft,Ut,Ot;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Xt,Jt,ne,Be;for(Be=[],Xt=0,Jt=(ne=this.bbox).length;Xt<Jt;Xt++)gt=ne[Xt],Be.push(Math.round(gt*this.scaleFactor));return Be}.call(this),this.stemV=0,this.post.exists?(Ft=255&(Ut=this.post.italic_angle),32768&(yt=Ut>>16)&&(yt=-(1+(65535^yt))),this.italicAngle=+(yt+"."+Ft)):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=(Ot=this.familyClass)===1||Ot===2||Ot===3||Ot===4||Ot===5||Ot===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")},wt.prototype.characterToGlyph=function(gt){var yt;return((yt=this.cmap.unicode)!=null?yt.codeMap[gt]:void 0)||0},wt.prototype.widthOfGlyph=function(gt){var yt;return yt=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(gt).advance*yt},wt.prototype.widthOfString=function(gt,yt,Ft){var Ut,Ot,Xt,Jt;for(Xt=0,Ot=0,Jt=(gt=""+gt).length;0<=Jt?Ot<Jt:Ot>Jt;Ot=0<=Jt?++Ot:--Ot)Ut=gt.charCodeAt(Ot),Xt+=this.widthOfGlyph(this.characterToGlyph(Ut))+Ft*(1e3/yt)||0;return Xt*(yt/1e3)},wt.prototype.lineHeight=function(gt,yt){var Ft;return yt==null&&(yt=!1),Ft=yt?this.lineGap:0,(this.ascender+Ft-this.decender)/1e3*gt},wt}();var wu,Nh=function(){function wt(gt){this.data=gt!=null?gt:[],this.pos=0,this.length=this.data.length}return wt.prototype.readByte=function(){return this.data[this.pos++]},wt.prototype.writeByte=function(gt){return this.data[this.pos++]=gt},wt.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},wt.prototype.writeUInt32=function(gt){return this.writeByte(gt>>>24&255),this.writeByte(gt>>16&255),this.writeByte(gt>>8&255),this.writeByte(255>)},wt.prototype.readInt32=function(){var gt;return(gt=this.readUInt32())>=2147483648?gt-4294967296:gt},wt.prototype.writeInt32=function(gt){return gt<0&&(gt+=4294967296),this.writeUInt32(gt)},wt.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},wt.prototype.writeUInt16=function(gt){return this.writeByte(gt>>8&255),this.writeByte(255>)},wt.prototype.readInt16=function(){var gt;return(gt=this.readUInt16())>=32768?gt-65536:gt},wt.prototype.writeInt16=function(gt){return gt<0&&(gt+=65536),this.writeUInt16(gt)},wt.prototype.readString=function(gt){var yt,Ft;for(Ft=[],yt=0;0<=gt?yt<gt:yt>gt;yt=0<=gt?++yt:--yt)Ft[yt]=String.fromCharCode(this.readByte());return Ft.join("")},wt.prototype.writeString=function(gt){var yt,Ft,Ut;for(Ut=[],yt=0,Ft=gt.length;0<=Ft?yt<Ft:yt>Ft;yt=0<=Ft?++yt:--yt)Ut.push(this.writeByte(gt.charCodeAt(yt)));return Ut},wt.prototype.readShort=function(){return this.readInt16()},wt.prototype.writeShort=function(gt){return this.writeInt16(gt)},wt.prototype.readLongLong=function(){var gt,yt,Ft,Ut,Ot,Xt,Jt,ne;return gt=this.readByte(),yt=this.readByte(),Ft=this.readByte(),Ut=this.readByte(),Ot=this.readByte(),Xt=this.readByte(),Jt=this.readByte(),ne=this.readByte(),128>?-1*(72057594037927940*(255^gt)+281474976710656*(255^yt)+1099511627776*(255^Ft)+4294967296*(255^Ut)+16777216*(255^Ot)+65536*(255^Xt)+256*(255^Jt)+(255^ne)+1):72057594037927940*gt+281474976710656*yt+1099511627776*Ft+4294967296*Ut+16777216*Ot+65536*Xt+256*Jt+ne},wt.prototype.writeLongLong=function(gt){var yt,Ft;return yt=Math.floor(gt/4294967296),Ft=4294967295>,this.writeByte(yt>>24&255),this.writeByte(yt>>16&255),this.writeByte(yt>>8&255),this.writeByte(255&yt),this.writeByte(Ft>>24&255),this.writeByte(Ft>>16&255),this.writeByte(Ft>>8&255),this.writeByte(255&Ft)},wt.prototype.readInt=function(){return this.readInt32()},wt.prototype.writeInt=function(gt){return this.writeInt32(gt)},wt.prototype.read=function(gt){var yt,Ft;for(yt=[],Ft=0;0<=gt?Ft<gt:Ft>gt;Ft=0<=gt?++Ft:--Ft)yt.push(this.readByte());return yt},wt.prototype.write=function(gt){var yt,Ft,Ut,Ot;for(Ot=[],Ft=0,Ut=gt.length;Ft<Ut;Ft++)yt=gt[Ft],Ot.push(this.writeByte(yt));return Ot},wt}(),gf=function(){var wt;function gt(yt){var Ft,Ut,Ot;for(this.scalarType=yt.readInt(),this.tableCount=yt.readShort(),this.searchRange=yt.readShort(),this.entrySelector=yt.readShort(),this.rangeShift=yt.readShort(),this.tables={},Ut=0,Ot=this.tableCount;0<=Ot?Ut<Ot:Ut>Ot;Ut=0<=Ot?++Ut:--Ut)Ft={tag:yt.readString(4),checksum:yt.readInt(),offset:yt.readInt(),length:yt.readInt()},this.tables[Ft.tag]=Ft}return gt.prototype.encode=function(yt){var Ft,Ut,Ot,Xt,Jt,ne,Be,Re,He,Ze,pe,jn,Sn;for(Sn in pe=Object.keys(yt).length,ne=Math.log(2),He=16*Math.floor(Math.log(pe)/ne),Xt=Math.floor(He/ne),Re=16*pe-He,(Ut=new Nh).writeInt(this.scalarType),Ut.writeShort(pe),Ut.writeShort(He),Ut.writeShort(Xt),Ut.writeShort(Re),Ot=16*pe,Be=Ut.pos+Ot,Jt=null,jn=[],yt)for(Ze=yt[Sn],Ut.writeString(Sn),Ut.writeInt(wt(Ze)),Ut.writeInt(Be),Ut.writeInt(Ze.length),jn=jn.concat(Ze),Sn==="head"&&(Jt=Be),Be+=Ze.length;Be%4;)jn.push(0),Be++;return Ut.write(jn),Ft=2981146554-wt(Ut.data),Ut.pos=Jt+8,Ut.writeUInt32(Ft),Ut.data},wt=function(yt){var Ft,Ut,Ot,Xt;for(yt=gc.call(yt);yt.length%4;)yt.push(0);for(Ot=new Nh(yt),Ut=0,Ft=0,Xt=yt.length;Ft<Xt;Ft=Ft+=4)Ut+=Ot.readUInt32();return 4294967295&Ut},gt}(),Oc={}.hasOwnProperty,ma=function(wt,gt){for(var yt in gt)Oc.call(gt,yt)&&(wt[yt]=gt[yt]);function Ft(){this.constructor=wt}return Ft.prototype=gt.prototype,wt.prototype=new Ft,wt.__super__=gt.prototype,wt};wu=function(){function wt(gt){var yt;this.file=gt,yt=this.file.directory.tables[this.tag],this.exists=!!yt,yt&&(this.offset=yt.offset,this.length=yt.length,this.parse(this.file.contents))}return wt.prototype.parse=function(){},wt.prototype.encode=function(){},wt.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},wt}();var Xo=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="head",gt.prototype.parse=function(yt){return yt.pos=this.offset,this.version=yt.readInt(),this.revision=yt.readInt(),this.checkSumAdjustment=yt.readInt(),this.magicNumber=yt.readInt(),this.flags=yt.readShort(),this.unitsPerEm=yt.readShort(),this.created=yt.readLongLong(),this.modified=yt.readLongLong(),this.xMin=yt.readShort(),this.yMin=yt.readShort(),this.xMax=yt.readShort(),this.yMax=yt.readShort(),this.macStyle=yt.readShort(),this.lowestRecPPEM=yt.readShort(),this.fontDirectionHint=yt.readShort(),this.indexToLocFormat=yt.readShort(),this.glyphDataFormat=yt.readShort()},gt.prototype.encode=function(yt){var Ft;return(Ft=new Nh).writeInt(this.version),Ft.writeInt(this.revision),Ft.writeInt(this.checkSumAdjustment),Ft.writeInt(this.magicNumber),Ft.writeShort(this.flags),Ft.writeShort(this.unitsPerEm),Ft.writeLongLong(this.created),Ft.writeLongLong(this.modified),Ft.writeShort(this.xMin),Ft.writeShort(this.yMin),Ft.writeShort(this.xMax),Ft.writeShort(this.yMax),Ft.writeShort(this.macStyle),Ft.writeShort(this.lowestRecPPEM),Ft.writeShort(this.fontDirectionHint),Ft.writeShort(yt),Ft.writeShort(this.glyphDataFormat),Ft.data},gt}(),Cu=function(){function wt(gt,yt){var Ft,Ut,Ot,Xt,Jt,ne,Be,Re,He,Ze,pe,jn,Sn,Rn,on,On,mi;switch(this.platformID=gt.readUInt16(),this.encodingID=gt.readShort(),this.offset=yt+gt.readInt(),He=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(pe=gt.readUInt16(),Ze=pe/2,gt.pos+=6,Ot=function(){var Di,qi;for(qi=[],ne=Di=0;0<=Ze?Di<Ze:Di>Ze;ne=0<=Ze?++Di:--Di)qi.push(gt.readUInt16());return qi}(),gt.pos+=2,Sn=function(){var Di,qi;for(qi=[],ne=Di=0;0<=Ze?Di<Ze:Di>Ze;ne=0<=Ze?++Di:--Di)qi.push(gt.readUInt16());return qi}(),Be=function(){var Di,qi;for(qi=[],ne=Di=0;0<=Ze?Di<Ze:Di>Ze;ne=0<=Ze?++Di:--Di)qi.push(gt.readUInt16());return qi}(),Re=function(){var Di,qi;for(qi=[],ne=Di=0;0<=Ze?Di<Ze:Di>Ze;ne=0<=Ze?++Di:--Di)qi.push(gt.readUInt16());return qi}(),Ut=(this.length-gt.pos+this.offset)/2,Jt=function(){var Di,qi;for(qi=[],ne=Di=0;0<=Ut?Di<Ut:Di>Ut;ne=0<=Ut?++Di:--Di)qi.push(gt.readUInt16());return qi}(),ne=on=0,mi=Ot.length;on<mi;ne=++on)for(Rn=Ot[ne],Ft=On=jn=Sn[ne];jn<=Rn?On<=Rn:On>=Rn;Ft=jn<=Rn?++On:--On)Re[ne]===0?Xt=Ft+Be[ne]:(Xt=Jt[Re[ne]/2+(Ft-jn)-(Ze-ne)]||0)!==0&&(Xt+=Be[ne]),this.codeMap[Ft]=65535&Xt}gt.pos=He}return wt.encode=function(gt,yt){var Ft,Ut,Ot,Xt,Jt,ne,Be,Re,He,Ze,pe,jn,Sn,Rn,on,On,mi,Di,qi,Ir,Wi,ai,Xi,gr,yn,Ln,wi,si,Ar,_i,dr,Mi,tr,fr,so,tn,En,$n,fi,ki,Ki,ir,ji,Kr,no,Io;switch(si=new Nh,Xt=Object.keys(gt).sort(function(Lo,Fs){return Lo-Fs}),yt){case"macroman":for(Sn=0,Rn=function(){var Lo=[];for(jn=0;jn<256;++jn)Lo.push(0);return Lo}(),On={0:0},Ot={},Ar=0,tr=Xt.length;Ar<tr;Ar++)On[ji=gt[Ut=Xt[Ar]]]==null&&(On[ji]=++Sn),Ot[Ut]={old:gt[Ut],new:On[gt[Ut]]},Rn[Ut]=On[gt[Ut]];return si.writeUInt16(1),si.writeUInt16(0),si.writeUInt32(12),si.writeUInt16(0),si.writeUInt16(262),si.writeUInt16(0),si.write(Rn),{charMap:Ot,subtable:si.data,maxGlyphID:Sn+1};case"unicode":for(Ln=[],He=[],mi=0,On={},Ft={},on=Be=null,_i=0,fr=Xt.length;_i<fr;_i++)On[qi=gt[Ut=Xt[_i]]]==null&&(On[qi]=++mi),Ft[Ut]={old:qi,new:On[qi]},Jt=On[qi]-Ut,on!=null&&Jt===Be||(on&&He.push(on),Ln.push(Ut),Be=Jt),on=Ut;for(on&&He.push(on),He.push(65535),Ln.push(65535),gr=2*(Xi=Ln.length),ai=2*Math.pow(Math.log(Xi)/Math.LN2,2),Ze=Math.log(ai/2)/Math.LN2,Wi=2*Xi-ai,ne=[],Ir=[],pe=[],jn=dr=0,so=Ln.length;dr<so;jn=++dr){if(yn=Ln[jn],Re=He[jn],yn===65535){ne.push(0),Ir.push(0);break}if(yn-(wi=Ft[yn].new)>=32768)for(ne.push(0),Ir.push(2*(pe.length+Xi-jn)),Ut=Mi=yn;yn<=Re?Mi<=Re:Mi>=Re;Ut=yn<=Re?++Mi:--Mi)pe.push(Ft[Ut].new);else ne.push(wi-yn),Ir.push(0)}for(si.writeUInt16(3),si.writeUInt16(1),si.writeUInt32(12),si.writeUInt16(4),si.writeUInt16(16+8*Xi+2*pe.length),si.writeUInt16(0),si.writeUInt16(gr),si.writeUInt16(ai),si.writeUInt16(Ze),si.writeUInt16(Wi),Ki=0,tn=He.length;Ki<tn;Ki++)Ut=He[Ki],si.writeUInt16(Ut);for(si.writeUInt16(0),ir=0,En=Ln.length;ir<En;ir++)Ut=Ln[ir],si.writeUInt16(Ut);for(Kr=0,$n=ne.length;Kr<$n;Kr++)Jt=ne[Kr],si.writeUInt16(Jt);for(no=0,fi=Ir.length;no<fi;no++)Di=Ir[no],si.writeUInt16(Di);for(Io=0,ki=pe.length;Io<ki;Io++)Sn=pe[Io],si.writeUInt16(Sn);return{charMap:Ft,subtable:si.data,maxGlyphID:mi+1}}},wt}(),th=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="cmap",gt.prototype.parse=function(yt){var Ft,Ut,Ot;for(yt.pos=this.offset,this.version=yt.readUInt16(),Ot=yt.readUInt16(),this.tables=[],this.unicode=null,Ut=0;0<=Ot?Ut<Ot:Ut>Ot;Ut=0<=Ot?++Ut:--Ut)Ft=new Cu(yt,this.offset),this.tables.push(Ft),Ft.isUnicode&&this.unicode==null&&(this.unicode=Ft);return!0},gt.encode=function(yt,Ft){var Ut,Ot;return Ft==null&&(Ft="macroman"),Ut=Cu.encode(yt,Ft),(Ot=new Nh).writeUInt16(0),Ot.writeUInt16(1),Ut.table=Ot.data.concat(Ut.subtable),Ut},gt}(),sl=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="hhea",gt.prototype.parse=function(yt){return yt.pos=this.offset,this.version=yt.readInt(),this.ascender=yt.readShort(),this.decender=yt.readShort(),this.lineGap=yt.readShort(),this.advanceWidthMax=yt.readShort(),this.minLeftSideBearing=yt.readShort(),this.minRightSideBearing=yt.readShort(),this.xMaxExtent=yt.readShort(),this.caretSlopeRise=yt.readShort(),this.caretSlopeRun=yt.readShort(),this.caretOffset=yt.readShort(),yt.pos+=8,this.metricDataFormat=yt.readShort(),this.numberOfMetrics=yt.readUInt16()},gt}(),Ms=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="OS/2",gt.prototype.parse=function(yt){if(yt.pos=this.offset,this.version=yt.readUInt16(),this.averageCharWidth=yt.readShort(),this.weightClass=yt.readUInt16(),this.widthClass=yt.readUInt16(),this.type=yt.readShort(),this.ySubscriptXSize=yt.readShort(),this.ySubscriptYSize=yt.readShort(),this.ySubscriptXOffset=yt.readShort(),this.ySubscriptYOffset=yt.readShort(),this.ySuperscriptXSize=yt.readShort(),this.ySuperscriptYSize=yt.readShort(),this.ySuperscriptXOffset=yt.readShort(),this.ySuperscriptYOffset=yt.readShort(),this.yStrikeoutSize=yt.readShort(),this.yStrikeoutPosition=yt.readShort(),this.familyClass=yt.readShort(),this.panose=function(){var Ft,Ut;for(Ut=[],Ft=0;Ft<10;++Ft)Ut.push(yt.readByte());return Ut}(),this.charRange=function(){var Ft,Ut;for(Ut=[],Ft=0;Ft<4;++Ft)Ut.push(yt.readInt());return Ut}(),this.vendorID=yt.readString(4),this.selection=yt.readShort(),this.firstCharIndex=yt.readShort(),this.lastCharIndex=yt.readShort(),this.version>0&&(this.ascent=yt.readShort(),this.descent=yt.readShort(),this.lineGap=yt.readShort(),this.winAscent=yt.readShort(),this.winDescent=yt.readShort(),this.codePageRange=function(){var Ft,Ut;for(Ut=[],Ft=0;Ft<2;Ft=++Ft)Ut.push(yt.readInt());return Ut}(),this.version>1))return this.xHeight=yt.readShort(),this.capHeight=yt.readShort(),this.defaultChar=yt.readShort(),this.breakChar=yt.readShort(),this.maxContext=yt.readShort()},gt}(),kl=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="post",gt.prototype.parse=function(yt){var Ft,Ut,Ot;switch(yt.pos=this.offset,this.format=yt.readInt(),this.italicAngle=yt.readInt(),this.underlinePosition=yt.readShort(),this.underlineThickness=yt.readShort(),this.isFixedPitch=yt.readInt(),this.minMemType42=yt.readInt(),this.maxMemType42=yt.readInt(),this.minMemType1=yt.readInt(),this.maxMemType1=yt.readInt(),this.format){case 65536:break;case 131072:var Xt;for(Ut=yt.readUInt16(),this.glyphNameIndex=[],Xt=0;0<=Ut?Xt<Ut:Xt>Ut;Xt=0<=Ut?++Xt:--Xt)this.glyphNameIndex.push(yt.readUInt16());for(this.names=[],Ot=[];yt.pos<this.offset+this.length;)Ft=yt.readByte(),Ot.push(this.names.push(yt.readString(Ft)));return Ot;case 151552:return Ut=yt.readUInt16(),this.offsets=yt.read(Ut);case 196608:break;case 262144:return this.map=function(){var Jt,ne,Be;for(Be=[],Xt=Jt=0,ne=this.file.maxp.numGlyphs;0<=ne?Jt<ne:Jt>ne;Xt=0<=ne?++Jt:--Jt)Be.push(yt.readUInt32());return Be}.call(this)}},gt}(),zu=function(wt,gt){this.raw=wt,this.length=wt.length,this.platformID=gt.platformID,this.encodingID=gt.encodingID,this.languageID=gt.languageID},Ua=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="name",gt.prototype.parse=function(yt){var Ft,Ut,Ot,Xt,Jt,ne,Be,Re,He,Ze,pe;for(yt.pos=this.offset,yt.readShort(),Ft=yt.readShort(),ne=yt.readShort(),Ut=[],Xt=0;0<=Ft?Xt<Ft:Xt>Ft;Xt=0<=Ft?++Xt:--Xt)Ut.push({platformID:yt.readShort(),encodingID:yt.readShort(),languageID:yt.readShort(),nameID:yt.readShort(),length:yt.readShort(),offset:this.offset+ne+yt.readShort()});for(Be={},Xt=He=0,Ze=Ut.length;He<Ze;Xt=++He)Ot=Ut[Xt],yt.pos=Ot.offset,Re=yt.readString(Ot.length),Jt=new zu(Re,Ot),Be[pe=Ot.nameID]==null&&(Be[pe]=[]),Be[Ot.nameID].push(Jt);this.strings=Be,this.copyright=Be[0],this.fontFamily=Be[1],this.fontSubfamily=Be[2],this.uniqueSubfamily=Be[3],this.fontName=Be[4],this.version=Be[5];try{this.postscriptName=Be[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(jn){this.postscriptName=Be[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Be[7],this.manufacturer=Be[8],this.designer=Be[9],this.description=Be[10],this.vendorUrl=Be[11],this.designerUrl=Be[12],this.license=Be[13],this.licenseUrl=Be[14],this.preferredFamily=Be[15],this.preferredSubfamily=Be[17],this.compatibleFull=Be[18],this.sampleText=Be[19]},gt}(),mh=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="maxp",gt.prototype.parse=function(yt){return yt.pos=this.offset,this.version=yt.readInt(),this.numGlyphs=yt.readUInt16(),this.maxPoints=yt.readUInt16(),this.maxContours=yt.readUInt16(),this.maxCompositePoints=yt.readUInt16(),this.maxComponentContours=yt.readUInt16(),this.maxZones=yt.readUInt16(),this.maxTwilightPoints=yt.readUInt16(),this.maxStorage=yt.readUInt16(),this.maxFunctionDefs=yt.readUInt16(),this.maxInstructionDefs=yt.readUInt16(),this.maxStackElements=yt.readUInt16(),this.maxSizeOfInstructions=yt.readUInt16(),this.maxComponentElements=yt.readUInt16(),this.maxComponentDepth=yt.readUInt16()},gt}(),Vl=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="hmtx",gt.prototype.parse=function(yt){var Ft,Ut,Ot,Xt,Jt,ne,Be;for(yt.pos=this.offset,this.metrics=[],Ft=0,ne=this.file.hhea.numberOfMetrics;0<=ne?Ft<ne:Ft>ne;Ft=0<=ne?++Ft:--Ft)this.metrics.push({advance:yt.readUInt16(),lsb:yt.readInt16()});for(Ot=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Re,He;for(He=[],Ft=Re=0;0<=Ot?Re<Ot:Re>Ot;Ft=0<=Ot?++Re:--Re)He.push(yt.readInt16());return He}(),this.widths=function(){var Re,He,Ze,pe;for(pe=[],Re=0,He=(Ze=this.metrics).length;Re<He;Re++)Xt=Ze[Re],pe.push(Xt.advance);return pe}.call(this),Ut=this.widths[this.widths.length-1],Be=[],Ft=Jt=0;0<=Ot?Jt<Ot:Jt>Ot;Ft=0<=Ot?++Jt:--Jt)Be.push(this.widths.push(Ut));return Be},gt.prototype.forGlyph=function(yt){return yt in this.metrics?this.metrics[yt]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[yt-this.metrics.length]}},gt}(),gc=[].slice,na=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="glyf",gt.prototype.parse=function(){return this.cache={}},gt.prototype.glyphFor=function(yt){var Ft,Ut,Ot,Xt,Jt,ne,Be,Re,He,Ze;return yt in this.cache?this.cache[yt]:(Xt=this.file.loca,Ft=this.file.contents,Ut=Xt.indexOf(yt),(Ot=Xt.lengthOf(yt))===0?this.cache[yt]=null:(Ft.pos=this.offset+Ut,Jt=(ne=new Nh(Ft.read(Ot))).readShort(),Re=ne.readShort(),Ze=ne.readShort(),Be=ne.readShort(),He=ne.readShort(),this.cache[yt]=Jt===-1?new $s(ne,Re,Ze,Be,He):new Pu(ne,Jt,Re,Ze,Be,He),this.cache[yt]))},gt.prototype.encode=function(yt,Ft,Ut){var Ot,Xt,Jt,ne,Be;for(Jt=[],Xt=[],ne=0,Be=Ft.length;ne<Be;ne++)Ot=yt[Ft[ne]],Xt.push(Jt.length),Ot&&(Jt=Jt.concat(Ot.encode(Ut)));return Xt.push(Jt.length),{table:Jt,offsets:Xt}},gt}(),Pu=function(){function wt(gt,yt,Ft,Ut,Ot,Xt){this.raw=gt,this.numberOfContours=yt,this.xMin=Ft,this.yMin=Ut,this.xMax=Ot,this.yMax=Xt,this.compound=!1}return wt.prototype.encode=function(){return this.raw.data},wt}(),$s=function(){function wt(gt,yt,Ft,Ut,Ot){var Xt,Jt;for(this.raw=gt,this.xMin=yt,this.yMin=Ft,this.xMax=Ut,this.yMax=Ot,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Xt=this.raw;Jt=Xt.readShort(),this.glyphOffsets.push(Xt.pos),this.glyphIDs.push(Xt.readUInt16()),32&Jt;)Xt.pos+=1&Jt?4:2,128&Jt?Xt.pos+=8:64&Jt?Xt.pos+=4:8&Jt&&(Xt.pos+=2)}return wt.prototype.encode=function(){var gt,yt,Ft;for(yt=new Nh(gc.call(this.raw.data)),gt=0,Ft=this.glyphIDs.length;gt<Ft;++gt)yt.pos=this.glyphOffsets[gt];return yt.data},wt}(),Oa=function(wt){function gt(){return gt.__super__.constructor.apply(this,arguments)}return ma(gt,wu),gt.prototype.tag="loca",gt.prototype.parse=function(yt){var Ft,Ut;return yt.pos=this.offset,Ft=this.file.head.indexToLocFormat,this.offsets=Ft===0?function(){var Ot,Xt;for(Xt=[],Ut=0,Ot=this.length;Ut<Ot;Ut+=2)Xt.push(2*yt.readUInt16());return Xt}.call(this):function(){var Ot,Xt;for(Xt=[],Ut=0,Ot=this.length;Ut<Ot;Ut+=4)Xt.push(yt.readUInt32());return Xt}.call(this)},gt.prototype.indexOf=function(yt){return this.offsets[yt]},gt.prototype.lengthOf=function(yt){return this.offsets[yt+1]-this.offsets[yt]},gt.prototype.encode=function(yt,Ft){for(var Ut=new Uint32Array(this.offsets.length),Ot=0,Xt=0,Jt=0;Jt<Ut.length;++Jt)if(Ut[Jt]=Ot,Xt<Ft.length&&Ft[Xt]==Jt){++Xt,Ut[Jt]=Ot;var ne=this.offsets[Jt],Be=this.offsets[Jt+1]-ne;Be>0&&(Ot+=Be)}for(var Re=new Array(4*Ut.length),He=0;He<Ut.length;++He)Re[4*He+3]=255&Ut[He],Re[4*He+2]=(65280&Ut[He])>>8,Re[4*He+1]=(16711680&Ut[He])>>16,Re[4*He]=(4278190080&Ut[He])>>24;return Re},gt}(),Ja=function(){function wt(gt){this.font=gt,this.subset={},this.unicodes={},this.next=33}return wt.prototype.generateCmap=function(){var gt,yt,Ft,Ut,Ot;for(yt in Ut=this.font.cmap.tables[0].codeMap,gt={},Ot=this.subset)Ft=Ot[yt],gt[yt]=Ut[Ft];return gt},wt.prototype.glyphsFor=function(gt){var yt,Ft,Ut,Ot,Xt,Jt,ne;for(Ut={},Xt=0,Jt=gt.length;Xt<Jt;Xt++)Ut[Ot=gt[Xt]]=this.font.glyf.glyphFor(Ot);for(Ot in yt=[],Ut)(Ft=Ut[Ot])!=null&&Ft.compound&&yt.push.apply(yt,Ft.glyphIDs);if(yt.length>0)for(Ot in ne=this.glyphsFor(yt))Ft=ne[Ot],Ut[Ot]=Ft;return Ut},wt.prototype.encode=function(gt,yt){var Ft,Ut,Ot,Xt,Jt,ne,Be,Re,He,Ze,pe,jn,Sn,Rn,on;for(Ut in Ft=th.encode(this.generateCmap(),"unicode"),Xt=this.glyphsFor(gt),pe={0:0},on=Ft.charMap)pe[(ne=on[Ut]).old]=ne.new;for(jn in Ze=Ft.maxGlyphID,Xt)jn in pe||(pe[jn]=Ze++);return Re=function(On){var mi,Di;for(mi in Di={},On)Di[On[mi]]=mi;return Di}(pe),He=Object.keys(Re).sort(function(On,mi){return On-mi}),Sn=function(){var On,mi,Di;for(Di=[],On=0,mi=He.length;On<mi;On++)Jt=He[On],Di.push(Re[Jt]);return Di}(),Ot=this.font.glyf.encode(Xt,Sn,pe),Be=this.font.loca.encode(Ot.offsets,Sn),Rn={cmap:this.font.cmap.raw(),glyf:Ot.table,loca:Be,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(yt)},this.font.os2.exists&&(Rn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Rn)},wt}();ho.API.PDFObject=function(){var wt;function gt(){}return wt=function(yt,Ft){return(Array(Ft+1).join("0")+yt).slice(-Ft)},gt.convert=function(yt){var Ft,Ut,Ot,Xt;if(Array.isArray(yt))return"["+function(){var Jt,ne,Be;for(Be=[],Jt=0,ne=yt.length;Jt<ne;Jt++)Ft=yt[Jt],Be.push(gt.convert(Ft));return Be}().join(" ")+"]";if(typeof yt=="string")return"/"+yt;if(yt!=null&&yt.isString)return"("+yt+")";if(yt instanceof Date)return"(D:"+wt(yt.getUTCFullYear(),4)+wt(yt.getUTCMonth(),2)+wt(yt.getUTCDate(),2)+wt(yt.getUTCHours(),2)+wt(yt.getUTCMinutes(),2)+wt(yt.getUTCSeconds(),2)+"Z)";if({}.toString.call(yt)==="[object Object]"){for(Ut in Ot=["<<"],yt)Xt=yt[Ut],Ot.push("/"+Ut+" "+gt.convert(Xt));return Ot.push(">>"),Ot.join(`
|
|
|
`)}return""+yt},gt}();var vl=ho},2859:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{hP:function(){return Ti}});var Kt=function(ue,Tt){return(Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,zt){Ct.__proto__=zt}||function(Ct,zt){for(var Ht in zt)Object.prototype.hasOwnProperty.call(zt,Ht)&&(Ct[Ht]=zt[Ht])})(ue,Tt)};function Le(ue,Tt){function Ct(){this.constructor=ue}Kt(ue,Tt),ue.prototype=Tt===null?Object.create(Tt):(Ct.prototype=Tt.prototype,new Ct)}function Te(ue,Tt,Ct,zt){return new(Ct||(Ct=Promise))(function(Ht,Mt){function be(Fn){try{vn(zt.next(Fn))}catch(An){Mt(An)}}function Ge(Fn){try{vn(zt.throw(Fn))}catch(An){Mt(An)}}function vn(Fn){var An;Fn.done?Ht(Fn.value):(An=Fn.value,An instanceof Ct?An:new Ct(function(kn){kn(An)})).then(be,Ge)}vn((zt=zt.apply(ue,Tt||[])).next())})}function xn(ue,Tt){var Ct,zt,Ht,Mt,be={label:0,sent:function(){if(1&Ht[0])throw Ht[1];return Ht[1]},trys:[],ops:[]};return Mt={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(Mt[Symbol.iterator]=function(){return this}),Mt;function Ge(vn){return function(Fn){return function(An){if(Ct)throw new TypeError("Generator is already executing.");for(;be;)try{if(Ct=1,zt&&(Ht=2&An[0]?zt.return:An[0]?zt.throw||((Ht=zt.return)&&Ht.call(zt),0):zt.next)&&!(Ht=Ht.call(zt,An[1])).done)return Ht;switch(zt=0,Ht&&(An=[2&An[0],Ht.value]),An[0]){case 0:case 1:Ht=An;break;case 4:return be.label++,{value:An[1],done:!1};case 5:be.label++,zt=An[1],An=[0];continue;case 7:An=be.ops.pop(),be.trys.pop();continue;default:if(Ht=be.trys,!((Ht=Ht.length>0&&Ht[Ht.length-1])||An[0]!==6&&An[0]!==2)){be=0;continue}if(An[0]===3&&(!Ht||An[1]>Ht[0]&&An[1]<Ht[3])){be.label=An[1];break}if(An[0]===6&&be.label<Ht[1]){be.label=Ht[1],Ht=An;break}if(Ht&&be.label<Ht[2]){be.label=Ht[2],be.ops.push(An);break}Ht[2]&&be.ops.pop(),be.trys.pop();continue}An=Tt.call(ue,be)}catch(kn){An=[6,kn],zt=0}finally{Ct=Ht=0}if(5&An[0])throw An[1];return{value:An[0]?An[1]:void 0,done:!0}}([vn,Fn])}}}function Se(){for(var ue=0,Tt=0,Ct=arguments.length;Tt<Ct;Tt++)ue+=arguments[Tt].length;var zt=Array(ue),Ht=0;for(Tt=0;Tt<Ct;Tt++)for(var Mt=arguments[Tt],be=0,Ge=Mt.length;be<Ge;be++,Ht++)zt[Ht]=Mt[be];return zt}var We=function(){function ue(){}return ue.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ue.setAttributes=function(Tt,Ct){for(var zt=0,Ht=Ct;zt<Ht.length;zt++){var Mt=Ht[zt],be=Mt[0],Ge=Mt[1];Tt.setAttribute(be,Ge)}},ue.createRect=function(Tt,Ct,zt){var Ht=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ht.setAttribute("width",Tt.toString()),Ht.setAttribute("height",Ct.toString()),zt&&ue.setAttributes(Ht,zt),Ht},ue.createLine=function(Tt,Ct,zt,Ht,Mt){var be=document.createElementNS("http://www.w3.org/2000/svg","line");return be.setAttribute("x1",Tt.toString()),be.setAttribute("y1",Ct.toString()),be.setAttribute("x2",zt.toString()),be.setAttribute("y2",Ht.toString()),Mt&&ue.setAttributes(be,Mt),be},ue.createPolygon=function(Tt,Ct){var zt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return zt.setAttribute("points",Tt),Ct&&ue.setAttributes(zt,Ct),zt},ue.createCircle=function(Tt,Ct){var zt=document.createElementNS("http://www.w3.org/2000/svg","circle");return zt.setAttribute("cx",(Tt/2).toString()),zt.setAttribute("cy",(Tt/2).toString()),zt.setAttribute("r",Tt.toString()),Ct&&ue.setAttributes(zt,Ct),zt},ue.createEllipse=function(Tt,Ct,zt){var Ht=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ht.setAttribute("cx",(Tt/2).toString()),Ht.setAttribute("cy",(Ct/2).toString()),Ht.setAttribute("rx",(Tt/2).toString()),Ht.setAttribute("ry",(Ct/2).toString()),zt&&ue.setAttributes(Ht,zt),Ht},ue.createGroup=function(Tt){var Ct=document.createElementNS("http://www.w3.org/2000/svg","g");return Tt&&ue.setAttributes(Ct,Tt),Ct},ue.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ue.createMarker=function(Tt,Ct,zt,Ht,Mt,be,Ge){var vn=document.createElementNS("http://www.w3.org/2000/svg","marker");return ue.setAttributes(vn,[["id",Tt],["orient",Ct],["markerWidth",zt.toString()],["markerHeight",Ht.toString()],["refX",Mt.toString()],["refY",be.toString()]]),vn.appendChild(Ge),vn},ue.createText=function(Tt){var Ct=document.createElementNS("http://www.w3.org/2000/svg","text");return Ct.setAttribute("x","0"),Ct.setAttribute("y","0"),Tt&&ue.setAttributes(Ct,Tt),Ct},ue.createTSpan=function(Tt,Ct){var zt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return zt.textContent=Tt,Ct&&ue.setAttributes(zt,Ct),zt},ue.createImage=function(Tt){var Ct=document.createElementNS("http://www.w3.org/2000/svg","image");return Tt&&ue.setAttributes(Ct,Tt),Ct},ue.createPoint=function(Tt,Ct){var zt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return zt.x=Tt,zt.y=Ct,zt},ue.createPath=function(Tt,Ct){var zt=document.createElementNS("http://www.w3.org/2000/svg","path");return zt.setAttribute("d",Tt),Ct&&ue.setAttributes(zt,Ct),zt},ue}(),je=function(){function ue(){}return ue.addKey=function(Tt){ue.key=Tt},Object.defineProperty(ue,"isLicensed",{get:function(){return!!ue.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ue.key)},enumerable:!1,configurable:!0}),ue}(),de=function(){function ue(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ue.prototype.rasterize=function(Tt,Ct,zt){var Ht=this;return new Promise(function(Mt){var be=zt!==void 0?zt:document.createElement("canvas");Tt===null&&(Ht.markersOnly=!0,Ht.naturalSize=!1);var Ge=document.createElementNS("http://www.w3.org/2000/svg","svg");Ge.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ge.setAttribute("width",Ct.width.baseVal.valueAsString),Ge.setAttribute("height",Ct.height.baseVal.valueAsString),Ge.setAttribute("viewBox","0 0 "+Ct.viewBox.baseVal.width.toString()+" "+Ct.viewBox.baseVal.height.toString()),Ge.innerHTML=Ct.innerHTML,Ht.naturalSize===!0?(Ge.width.baseVal.value=Tt.naturalWidth,Ge.height.baseVal.value=Tt.naturalHeight):Ht.width!==void 0&&Ht.height!==void 0&&(Ge.width.baseVal.value=Ht.width,Ge.height.baseVal.value=Ht.height),be.width=Ge.width.baseVal.value,be.height=Ge.height.baseVal.value;var vn=Ge.outerHTML,Fn=be.getContext("2d");Ht.markersOnly!==!0&&Fn.drawImage(Tt,0,0,be.width,be.height);var An=window.URL,kn=new Image(be.width,be.height);kn.setAttribute("crossOrigin","anonymous");var Bn=new Blob([vn],{type:"image/svg+xml"}),Vn=An.createObjectURL(Bn);kn.onload=function(){Fn.drawImage(kn,0,0),An.revokeObjectURL(Vn);var bi=be.toDataURL(Ht.imageType,Ht.imageQuality);Mt(bi)},kn.src=Vn})},ue}(),ve=function(){},It=function(){function ue(Tt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Tt+"_"}return Object.defineProperty(ue.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ue.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(ue.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ue.prototype.addClass=function(Tt){return this.styleSheet===void 0&&this.addStyleSheet(),Tt.name=""+this.classNamePrefix+Tt.localName,this.classes.push(Tt),this.styleSheet.sheet.insertRule("."+Tt.name+" {"+Tt.style+"}",this.styleSheet.sheet.cssRules.length),Tt},ue.prototype.addRule=function(Tt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Tt),this.styleSheet.sheet.insertRule(Tt.selector+" {"+Tt.style+"}",this.styleSheet.sheet.cssRules.length)},ue.prototype.addStyleSheet=function(){var Tt;this.styleSheet=document.createElement("style"),((Tt=this.styleSheetRoot)!==null&&Tt!==void 0?Tt:document.head).appendChild(this.styleSheet),this.addRule(new xe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new xe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new xe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ee("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ee("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ue.prototype.removeStyleSheet=function(){var Tt;this.styleSheet&&(((Tt=this.styleSheetRoot)!==null&&Tt!==void 0?Tt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ue}(),xe=function(ue,Tt){this.selector=ue,this.style=Tt},ee=function(ue,Tt){this.localName=ue,this.style=Tt},ge=function(){function ue(Tt,Ct,zt,Ht,Mt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Tt,this.displayMode=Ct,this.markerItems=zt,this.uiStyleSettings=Ht,this.styles=Mt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ue.prototype.show=function(Tt){var Ct=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Tt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var zt=document.createElement("div");zt.className=this.toolbarBlockStyleClass.name,zt.style.whiteSpace="nowrap",this.uiContainer.appendChild(zt),this.addActionButton(zt,'<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(zt,'<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(zt,'<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(zt,'<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(zt,'<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(zt,'<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(zt,'<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(zt,'<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(Mt){var be=document.createElement("div");be.className=""+Ct.toolbarButtonStyleClass.name,be.setAttribute("data-type-name",Mt.typeName),be.innerHTML=Mt.icon,be.addEventListener("click",function(){Ct.markerToolbarButtonClicked(be,Mt)}),Ct.buttons.push(be),Ct.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 Ht=document.createElement("div");Ht.className=this.toolbarBlockStyleClass.name,Ht.style.whiteSpace="nowrap",Ht.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ht),this.addActionButton(Ht,'<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(Ht,'<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()},ue.prototype.addButtonClickListener=function(Tt){this.buttonClickListeners.push(Tt)},ue.prototype.removeButtonClickListener=function(Tt){this.buttonClickListeners.indexOf(Tt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Tt),1)},ue.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ue.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Tt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ct=0;Ct<this.markerButtons.length;Ct++)Ct<Tt||Ct===Tt&&this.markerButtons.length-1===Tt?this.markerButtonBlock.appendChild(this.markerButtons[Ct]):(Ct===Tt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ct]))}},ue.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")},ue.prototype.resetButtonStyles=function(){var Tt=this;this.buttons.forEach(function(Ct){Ct.className=Ct.className.replace(Tt.uiStyleSettings.toolbarButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarButtonStyleColorsClassName:Tt.toolbarButtonStyleColorsClass.name,"").trim(),Ct.className=Ct.className.replace(Tt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Tt.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ct.className+=" "+(Tt.uiStyleSettings.toolbarButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarButtonStyleColorsClassName:Tt.toolbarButtonStyleColorsClass.name)})},ue.prototype.addActionButton=function(Tt,Ct,zt){var Ht=this,Mt=document.createElement("div");switch(Mt.className=""+this.toolbarButtonStyleClass.name,Mt.innerHTML=Ct,Mt.setAttribute("data-action",zt),Mt.addEventListener("click",function(){Ht.actionToolbarButtonClicked(Mt,zt)}),zt){case"select":Mt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Mt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Mt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Mt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Mt.style.fill=this.uiStyleSettings.closeButtonColor}Tt.appendChild(Mt),this.buttons.push(Mt)},ue.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ee("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 ee("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ee("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ee("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 ee("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Tt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ee("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Tt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Tt)+`px;
|
|
|
padding: `+Tt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ee("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ee("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new xe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new xe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ue.prototype.markerToolbarButtonClicked=function(Tt,Ct){this.setActiveButton(Tt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(zt){return zt("marker",Ct)}),this.markerButtonOverflowBlock.style.display="none"},ue.prototype.actionToolbarButtonClicked=function(Tt,Ct){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(zt){return zt("action",Ct)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ue.prototype.setActiveButton=function(Tt){this.resetButtonStyles(),Tt.className=Tt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Tt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ue.prototype.setActiveMarkerButton=function(Tt){var Ct=this.markerButtons.find(function(zt){return zt.getAttribute("data-type-name")===Tt});Ct&&this.setActiveButton(Ct)},ue.prototype.setCurrentMarker=function(Tt){var Ct=this;this.currentMarker=Tt,this.buttons.filter(function(zt){return/delete|notes/.test(zt.getAttribute("data-action"))}).forEach(function(zt){Ct.currentMarker===void 0?(zt.style.fillOpacity="0.4",zt.style.pointerEvents="none"):(zt.style.fillOpacity="1",zt.style.pointerEvents="all")})},ue}(),Qt=function(){function ue(Tt,Ct,zt,Ht){this.panels=[],this.panelButtons=[],this.markerjsContainer=Tt,this.displayMode=Ct,this.uiStyleSettings=zt,this.styles=Ht,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ue.prototype.addStyles=function(){var Tt;this.toolboxStyleClass=this.styles.addClass(new ee("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 ee("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Ct=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ee("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ee("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ee("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 ee("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Tt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Tt!==void 0?Tt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ee("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
|
padding: `+Ct+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ee("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ee("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new xe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new xe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ue.prototype.show=function(Tt){var Ct;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Tt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ct=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ct!==void 0?Ct:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ue.prototype.setPanelButtons=function(Tt){var Ct,zt,Ht=this;this.panels=Tt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ct=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ct!==void 0?Ct:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((zt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&zt!==void 0?zt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Mt){var be;Mt.uiStyleSettings=Ht.uiStyleSettings;var Ge=document.createElement("div");Ge.className=Ht.toolboxButtonStyleClass.name+" "+((be=Ht.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&be!==void 0?be:Ht.toolboxButtonStyleColorsClass.name),Ge.innerHTML=Mt.icon,Ge.title=Mt.title,Ge.addEventListener("click",function(){Ht.panelButtonClick(Mt)}),Ht.panelButtons.push(Ge),Ht.buttonRow.appendChild(Ge)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ue.prototype.panelButtonClick=function(Tt){var Ct=this,zt=-1;if(Tt!==this.activePanel){zt=this.panels.indexOf(Tt),this.panelRow.innerHTML="";var Ht=Tt.getUi();Ht.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ht),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=Tt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ct.displayMode==="inline"?Ct.panelRow.style.display="none":Ct.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Mt,be){var Ge,vn;Mt.className=Ct.toolboxButtonStyleClass.name+" "+(be===zt?""+((Ge=Ct.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:Ct.toolboxActiveButtonStyleColorsClass.name):""+((vn=Ct.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vn!==void 0?vn:Ct.toolboxButtonStyleColorsClass.name))})},ue}(),et=function(ue,Tt){this.title=ue,this.icon=Tt},nt=function(ue){function Tt(Ct,zt,Ht,Mt){var be=ue.call(this,Ct,Mt||'<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=zt,be.currentColor=Ht,be.setCurrentColor=be.setCurrentColor.bind(be),be.getColorBox=be.getColorBox.bind(be),be}return Le(Tt,ue),Tt.prototype.getUi=function(){var Ct=this,zt=document.createElement("div");return zt.style.overflow="hidden",zt.style.whiteSpace="nowrap",this.colors.forEach(function(Ht){var Mt=Ct.getColorBox(Ht);zt.appendChild(Mt),Ct.colorBoxes.push(Mt)}),zt},Tt.prototype.getColorBox=function(Ct){var zt=this,Ht=this.uiStyleSettings.toolbarHeight/4,Mt=this.uiStyleSettings.toolbarHeight-Ht,be=document.createElement("div");be.style.display="inline-block",be.style.boxSizing="content-box",be.style.width=Mt-2+"px",be.style.height=Mt-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=(Mt+2)/2+"px",be.style.borderColor=Ct===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){zt.setCurrentColor(Ct,be)});var Ge=document.createElement("div");return Ge.style.display="inline-block",Ge.style.width=Mt-2+"px",Ge.style.height=Mt-2+"px",Ge.style.backgroundColor=Ct,Ge.style.borderRadius=Mt/2+"px",Ct==="transparent"&&(Ge.style.fill=this.uiStyleSettings.toolboxAccentColor,Ge.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(Ge),be},Tt.prototype.setCurrentColor=function(Ct,zt){var Ht=this;this.currentColor=Ct,this.colorBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===zt?Ht.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ct)},Tt}(et),ht=function(){function ue(Tt,Ct,zt){this._state="new",this._isSelected=!1,this._container=Tt,this._overlayContainer=Ct,this.globalSettings=zt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ue.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(Tt){return!1},Object.defineProperty(ue.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ue.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ue.prototype.pointerDown=function(Tt,Ct){},ue.prototype.dblClick=function(Tt,Ct){},ue.prototype.manipulate=function(Tt){},ue.prototype.pointerUp=function(Tt){this.stateChanged()},ue.prototype.dispose=function(){},ue.prototype.addMarkerVisualToContainer=function(Tt){this.container.childNodes.length>0?this.container.insertBefore(Tt,this.container.childNodes[0]):this.container.appendChild(Tt)},ue.prototype.getState=function(){return{typeName:ue.typeName,state:this.state,notes:this.notes}},ue.prototype.restoreState=function(Tt){this._state=Tt.state,this.notes=Tt.notes},ue.prototype.scale=function(Tt,Ct){},ue.prototype.colorChanged=function(Tt){this.onColorChanged&&this.onColorChanged(Tt),this.stateChanged()},ue.prototype.fillColorChanged=function(Tt){this.onFillColorChanged&&this.onFillColorChanged(Tt),this.stateChanged()},ue.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Tt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Tt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Tt)&&this.onStateChanged(this)}},ue.typeName="MarkerBase",ue}(),at=function(){function ue(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ue.prototype.findGripByVisual=function(Tt){return this.topLeft.ownsTarget(Tt)?this.topLeft:this.topCenter.ownsTarget(Tt)?this.topCenter:this.topRight.ownsTarget(Tt)?this.topRight:this.centerLeft.ownsTarget(Tt)?this.centerLeft:this.centerRight.ownsTarget(Tt)?this.centerRight:this.bottomLeft.ownsTarget(Tt)?this.bottomLeft:this.bottomCenter.ownsTarget(Tt)?this.bottomCenter:this.bottomRight.ownsTarget(Tt)?this.bottomRight:void 0},ue}(),ft=function(){function ue(){this.GRIP_SIZE=10,this.visual=We.createGroup(),this.visual.appendChild(We.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(We.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ue.prototype.ownsTarget=function(Tt){return Tt===this.visual||Tt===this.visual.childNodes[0]||Tt===this.visual.childNodes[1]},ue}(),vt=function(){function ue(){}return ue.toITransformMatrix=function(Tt){return{a:Tt.a,b:Tt.b,c:Tt.c,d:Tt.d,e:Tt.e,f:Tt.f}},ue.toSVGMatrix=function(Tt,Ct){return Tt.a=Ct.a,Tt.b=Ct.b,Tt.c=Ct.c,Tt.d=Ct.d,Tt.e=Ct.e,Tt.f=Ct.f,Tt},ue}(),Nt=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.left=0,Mt.top=0,Mt.width=0,Mt.height=0,Mt.defaultSize={x:50,y:20},Mt.offsetX=0,Mt.offsetY=0,Mt.rotationAngle=0,Mt.CB_DISTANCE=10,Mt._suppressMarkerCreateEvent=!1,Mt.container.transform.baseVal.appendItem(We.createTransform()),Mt.setupControlBox(),Mt}return Le(Tt,ue),Object.defineProperty(Tt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"visual",{get:function(){return this._visual},set:function(Ct){this._visual=Ct;var zt=We.createTransform();this._visual.transform.baseVal.appendItem(zt)},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(Ct){return!!ue.prototype.ownsTarget.call(this,Ct)||!!(this.controlGrips.findGripByVisual(Ct)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ct))},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.state==="new"&&(this.left=Ct.x,this.top=Ct.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ht=this.unrotatePoint(Ct);if(this.manipulationStartX=Ht.x,this.manipulationStartY=Ht.y,this.offsetX=Ht.x-this.left,this.offsetY=Ht.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(zt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(zt)){this.activeGrip=this.rotatorGrip;var Mt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Mt.x-this.width/2,this.top=Mt.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"},Tt.prototype.pointerUp=function(Ct){var zt=this.state;ue.prototype.pointerUp.call(this,Ct),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ct),this._state="select",zt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Tt.prototype.moveVisual=function(Ct){this.visual.style.transform="translate("+Ct.x+"px, "+Ct.y+"px)"},Tt.prototype.manipulate=function(Ct){var zt=this.unrotatePoint(Ct);this.state==="creating"?this.resize(Ct):this.state==="move"?(this.left=this.manipulationStartLeft+(zt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(zt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(zt):this.state==="rotate"&&this.rotate(Ct)},Tt.prototype.resize=function(Ct){var zt=this.manipulationStartLeft,Ht=this.manipulationStartWidth,Mt=this.manipulationStartTop,be=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:zt=this.manipulationStartLeft+Ct.x-this.manipulationStartX,Ht=this.manipulationStartWidth+this.manipulationStartLeft-zt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ht=this.manipulationStartWidth+Ct.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Mt=this.manipulationStartTop+Ct.y-this.manipulationStartY,be=this.manipulationStartHeight+this.manipulationStartTop-Mt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:be=this.manipulationStartHeight+Ct.y-this.manipulationStartY}Ht>=0?(this.left=zt,this.width=Ht):(this.left=zt+Ht,this.width=-Ht),be>=0?(this.top=Mt,this.height=be):(this.top=Mt+be,this.height=-be),this.setSize()},Tt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Tt.prototype.rotate=function(Ct){if(Math.abs(Ct.x-this.centerX)>.1){var zt=Math.sign(Ct.x-this.centerX);this.rotationAngle=180*Math.atan((Ct.y-this.centerY)/(Ct.x-this.centerX))/Math.PI+90*zt,this.applyRotation()}},Tt.prototype.applyRotation=function(){var Ct=this.container.transform.baseVal.getItem(0);Ct.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ct,0)},Tt.prototype.rotatePoint=function(Ct){if(this.rotationAngle===0)return Ct;var zt=this.container.getCTM(),Ht=We.createPoint(Ct.x,Ct.y);return{x:(Ht=Ht.matrixTransform(zt)).x,y:Ht.y}},Tt.prototype.unrotatePoint=function(Ct){if(this.rotationAngle===0)return Ct;var zt=this.container.getCTM();zt=zt.inverse();var Ht=We.createPoint(Ct.x,Ct.y);return{x:(Ht=Ht.matrixTransform(zt)).x,y:Ht.y}},Tt.prototype.select=function(){ue.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Tt.prototype.deselect=function(){ue.prototype.deselect.call(this),this.controlBox.style.display="none"},Tt.prototype.setupControlBox=function(){this.controlBox=We.createGroup();var Ct=We.createTransform();Ct.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ct),this.container.appendChild(this.controlBox),this.controlRect=We.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=We.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 at,this.addControlGrips(),this.controlBox.style.display="none"},Tt.prototype.adjustControlBox=function(){var Ct=this.controlBox.transform.baseVal.getItem(0);Ct.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ct,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()},Tt.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()},Tt.prototype.createGrip=function(){var Ct=new ft;return Ct.visual.transform.baseVal.appendItem(We.createTransform()),this.controlBox.appendChild(Ct.visual),Ct},Tt.prototype.positionGrips=function(){var Ct=this.controlGrips.topLeft.GRIP_SIZE,zt=-Ct/2,Ht=zt,Mt=(this.width+this.CB_DISTANCE)/2-Ct/2,be=(this.height+this.CB_DISTANCE)/2-Ct/2,Ge=this.height+this.CB_DISTANCE-Ct/2,vn=this.width+this.CB_DISTANCE-Ct/2;this.positionGrip(this.controlGrips.topLeft.visual,zt,Ht),this.positionGrip(this.controlGrips.topCenter.visual,Mt,Ht),this.positionGrip(this.controlGrips.topRight.visual,vn,Ht),this.positionGrip(this.controlGrips.centerLeft.visual,zt,be),this.positionGrip(this.controlGrips.centerRight.visual,vn,be),this.positionGrip(this.controlGrips.bottomLeft.visual,zt,Ge),this.positionGrip(this.controlGrips.bottomCenter.visual,Mt,Ge),this.positionGrip(this.controlGrips.bottomRight.visual,vn,Ge),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Mt,Ht-3*this.CB_DISTANCE)},Tt.prototype.positionGrip=function(Ct,zt,Ht){var Mt=Ct.transform.baseVal.getItem(0);Mt.setTranslate(zt,Ht),Ct.transform.baseVal.replaceItem(Mt,0)},Tt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Tt.prototype.showControlBox=function(){this.controlBox.style.display=""},Tt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:vt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:vt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ue.prototype.getState.call(this))},Tt.prototype.restoreState=function(Ct){ue.prototype.restoreState.call(this,Ct);var zt=Ct;this.left=zt.left,this.top=zt.top,this.width=zt.width,this.height=zt.height,this.rotationAngle=zt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,zt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,zt.containerTransformMatrix))},Tt.prototype.scale=function(Ct,zt){ue.prototype.scale.call(this,Ct,zt);var Ht=this.rotatePoint({x:this.left,y:this.top}),Mt=this.unrotatePoint({x:Ht.x*Ct,y:Ht.y*zt});this.left=Mt.x,this.top=Mt.y,this.width=this.width*Ct,this.height=this.height*zt,this.adjustControlBox()},Tt}(ht),Rt=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.fillColor="transparent",Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.opacity=1,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setFillColor=Mt.setFillColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.createVisual=Mt.createVisual.bind(Mt),Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return!(!ue.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual)},Tt.prototype.createVisual=function(){this.visual=We.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)},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},Tt.prototype.manipulate=function(Ct){ue.prototype.manipulate.call(this,Ct)},Tt.prototype.resize=function(Ct){ue.prototype.resize.call(this,Ct),this.setSize()},Tt.prototype.setSize=function(){ue.prototype.setSize.call(this),We.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Tt.prototype.pointerUp=function(Ct){ue.prototype.pointerUp.call(this,Ct),this.setSize()},Tt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.visual&&We.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},Tt.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.visual&&We.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Tt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.visual&&We.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.visual&&We.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Tt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ue.prototype.getState.call(this))},Tt.prototype.restoreState=function(Ct){var zt=Ct;this.fillColor=zt.fillColor,this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.opacity=zt.opacity,this.createVisual(),ue.prototype.restoreState.call(this,Ct),this.setSize()},Tt.prototype.scale=function(Ct,zt){ue.prototype.scale.call(this,Ct,zt),this.setSize()},Tt.title="Rectangle marker",Tt}(Nt),Gt=function(ue){function Tt(Ct,zt,Ht,Mt){var be=ue.call(this,Ct,Mt||'<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=zt,be.currentWidth=Ht,be.setCurrentWidth=be.setCurrentWidth.bind(be),be}return Le(Tt,ue),Tt.prototype.getUi=function(){var Ct=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",this.widths.forEach(function(Ht){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.flexGrow="2",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.borderColor=Ht===Ct.currentWidth?Ct.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){Ct.setCurrentWidth(Ht,Mt)}),zt.appendChild(Mt);var be=document.createElement("div");be.innerText=Ht.toString(),be.style.marginRight="5px",Mt.appendChild(be);var Ge=document.createElement("div");Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.display="flex",Ge.style.alignItems="center";var vn=document.createElement("hr");vn.style.minWidth="20px",vn.style.border="0px",vn.style.borderTop=Ht+"px solid "+Ct.uiStyleSettings.toolboxColor,vn.style.flexGrow="2",Ge.appendChild(vn),Mt.appendChild(Ge),Ct.widthBoxes.push(Mt)}),zt},Tt.prototype.setCurrentWidth=function(Ct,zt){var Ht=this;this.currentWidth=Ct,this.widthBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===zt?Ht.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Tt}(et),$t=function(ue){function Tt(Ct,zt,Ht,Mt){var be=ue.call(this,Ct,Mt||'<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=zt,be.currentStyle=Ht,be.setCurrentStyle=be.setCurrentStyle.bind(be),be}return Le(Tt,ue),Tt.prototype.getUi=function(){var Ct=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",this.styles.forEach(function(Ht){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.overflow="hidden",Mt.style.maxWidth=100/Ct.styles.length-5+"%",Mt.style.borderColor=Ht===Ct.currentStyle?Ct.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){Ct.setCurrentStyle(Ht,Mt)}),zt.appendChild(Mt);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.overflow="hidden";var Ge=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ct.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ht!==""?'stroke-dasharray="'+Ht+'"':"")+` />
|
|
|
</svg>`;be.innerHTML=Ge,Mt.appendChild(be),Ct.styleBoxes.push(Mt)}),zt},Tt.prototype.setCurrentStyle=function(Ct,zt){var Ht=this;this.currentStyle=Ct,this.styleBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===zt?Ht.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Tt}(et),se=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.strokeColor=Ht.defaultColor,Mt.strokeWidth=Ht.defaultStrokeWidth,Mt.strokeDasharray=Ht.defaultStrokeDasharray,Mt.strokePanel=new nt("Line color",Ht.defaultColorSet,Ht.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new Gt("Line width",Ht.defaultStrokeWidths,Ht.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new $t("Line style",Ht.defaultStrokeDasharrays,Ht.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return Le(Tt,ue),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=ue.prototype.getState.call(this);return Ct.typeName=Tt.typeName,Ct},Tt.typeName="FrameMarker",Tt.title="Frame marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Tt}(Rt),me=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"},ce=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.x1=0,Mt.y1=0,Mt.x2=0,Mt.y2=0,Mt.defaultLength=50,Mt.manipulationStartX=0,Mt.manipulationStartY=0,Mt.manipulationStartX1=0,Mt.manipulationStartY1=0,Mt.manipulationStartX2=0,Mt.manipulationStartY2=0,Mt.setupControlBox(),Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return!!ue.prototype.ownsTarget.call(this,Ct)||!(!this.grip1.ownsTarget(Ct)&&!this.grip2.ownsTarget(Ct))},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.manipulationStartX=Ct.x,this.manipulationStartY=Ct.y,this.state==="new"&&(this.x1=Ct.x,this.y1=Ct.y,this.x2=Ct.x,this.y2=Ct.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(zt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(zt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Tt.prototype.pointerUp=function(Ct){var zt=this.state;ue.prototype.pointerUp.call(this,Ct),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(Ct),this._state="select",zt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Tt.prototype.adjustVisual=function(){},Tt.prototype.manipulate=function(Ct){this.state==="creating"?this.resize(Ct):this.state==="move"?(this.x1=this.manipulationStartX1+Ct.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ct.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ct.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ct.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ct)},Tt.prototype.resize=function(Ct){switch(this.activeGrip){case this.grip1:this.x1=Ct.x,this.y1=Ct.y;break;case this.grip2:case void 0:this.x2=Ct.x,this.y2=Ct.y}this.adjustVisual(),this.adjustControlBox()},Tt.prototype.select=function(){ue.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Tt.prototype.deselect=function(){ue.prototype.deselect.call(this),this.controlBox.style.display="none"},Tt.prototype.setupControlBox=function(){this.controlBox=We.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Tt.prototype.adjustControlBox=function(){this.positionGrips()},Tt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Tt.prototype.createGrip=function(){var Ct=new ft;return Ct.visual.transform.baseVal.appendItem(We.createTransform()),this.controlBox.appendChild(Ct.visual),Ct},Tt.prototype.positionGrips=function(){var Ct=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ct/2,this.y1-Ct/2),this.positionGrip(this.grip2.visual,this.x2-Ct/2,this.y2-Ct/2)},Tt.prototype.positionGrip=function(Ct,zt,Ht){var Mt=Ct.transform.baseVal.getItem(0);Mt.setTranslate(zt,Ht),Ct.transform.baseVal.replaceItem(Mt,0)},Tt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ue.prototype.getState.call(this))},Tt.prototype.restoreState=function(Ct){ue.prototype.restoreState.call(this,Ct);var zt=Ct;this.x1=zt.x1,this.y1=zt.y1,this.x2=zt.x2,this.y2=zt.y2},Tt.prototype.scale=function(Ct,zt){ue.prototype.scale.call(this,Ct,zt),this.x1=this.x1*Ct,this.y1=this.y1*zt,this.x2=this.x2*Ct,this.y2=this.y2*zt,this.adjustVisual(),this.adjustControlBox()},Tt}(ht),Xe=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.strokeColor=Ht.defaultColor,Mt.strokeWidth=Ht.defaultStrokeWidth,Mt.strokeDasharray=Ht.defaultStrokeDasharray,Mt.strokePanel=new nt("Line color",Ht.defaultColorSet,Ht.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new Gt("Line width",Ht.defaultStrokeWidths,Ht.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new $t("Line style",Ht.defaultStrokeDasharrays,Ht.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return!(!ue.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.selectorLine&&Ct!==this.visibleLine)},Tt.prototype.createVisual=function(){this.visual=We.createGroup(),this.selectorLine=We.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=We.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)},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Tt.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()),We.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),We.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),We.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Tt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.adjustVisual(),this.colorChanged(Ct)},Tt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.adjustVisual()},Tt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ue.prototype.getState.call(this));return Ct.typeName=Tt.typeName,Ct},Tt.prototype.restoreState=function(Ct){ue.prototype.restoreState.call(this,Ct);var zt=Ct;this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.createVisual(),this.adjustVisual()},Tt.typeName="LineMarker",Tt.title="Line marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Tt}(ce),De=function(ue){function Tt(Ct,zt,Ht,Mt){var be=ue.call(this,Ct,Mt||'<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=zt,be.currentFont=Ht,be.setCurrentFont=be.setCurrentFont.bind(be),be}return Le(Tt,ue),Tt.prototype.getUi=function(){var Ct=this,zt=document.createElement("div");return zt.style.overflow="hidden",zt.style.flexGrow="2",this.fonts.forEach(function(Ht){var Mt=document.createElement("div");Mt.style.display="inline-block",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.overflow="hidden",Mt.style.maxWidth=100/Ct.fonts.length-5+"%",Mt.style.borderColor=Ht===Ct.currentFont?Ct.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){Ct.setCurrentFont(Ht,Mt)}),zt.appendChild(Mt);var be=document.createElement("div");be.style.display="flex",be.style.minHeight="20px",be.style.flexGrow="2",be.style.fontFamily=Ht,be.style.overflow="hidden";var Ge=document.createElement("div");Ge.style.whiteSpace="nowrap",Ge.style.overflow="hidden",Ge.style.textOverflow="ellipsis",Ge.innerHTML="The quick brown fox jumps over the lazy dog",be.appendChild(Ge),Mt.appendChild(be),Ct.fontBoxes.push(Mt)}),zt},Tt.prototype.setCurrentFont=function(Ct,zt){var Ht=this;this.currentFont=Ct,this.fontBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===zt?Ht.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Tt}(et),ln=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.color="transparent",Mt.padding=5,Mt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Mt.text=Mt.DEFAULT_TEXT,Mt.isMoved=!1,Mt.color=Ht.defaultColor,Mt.fontFamily=Ht.defaultFontFamily,Mt.defaultSize={x:100,y:30},Mt.setColor=Mt.setColor.bind(Mt),Mt.setFont=Mt.setFont.bind(Mt),Mt.renderText=Mt.renderText.bind(Mt),Mt.sizeText=Mt.sizeText.bind(Mt),Mt.textEditDivClicked=Mt.textEditDivClicked.bind(Mt),Mt.showTextEditor=Mt.showTextEditor.bind(Mt),Mt.setSize=Mt.setSize.bind(Mt),Mt.positionTextEditor=Mt.positionTextEditor.bind(Mt),Mt.colorPanel=new nt("Color",Ht.defaultColorSet,Ht.defaultColor),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.fontFamilyPanel=new De("Font",Ht.defaultFontFamilies,Ht.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){if(ue.prototype.ownsTarget.call(this,Ct)||Ct===this.visual||Ct===this.textElement||Ct===this.bgRectangle)return!0;var zt=!1;return this.textElement.childNodes.forEach(function(Ht){Ht===Ct&&(zt=!0)}),zt},Tt.prototype.createVisual=function(){this.visual=We.createGroup(),this.bgRectangle=We.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=We.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(We.createTransform()),this.textElement.transform.baseVal.appendItem(We.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.isMoved=!1,this.pointerDownPoint=Ct,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},Tt.prototype.renderText=function(){var Ct=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(zt){Ct.textElement.appendChild(We.createTSpan(zt.trim()===""?" ":zt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Tt.prototype.getTextScale=function(){var Ct=this.textElement.getBBox(),zt=1;if(Ct.width>0&&Ct.height>0){var Ht=(1*this.width-this.width*this.padding*2/100)/Ct.width,Mt=(1*this.height-this.height*this.padding*2/100)/Ct.height;zt=Math.min(Ht,Mt)}return zt},Tt.prototype.getTextPosition=function(Ct){var zt=this.textElement.getBBox(),Ht=0,Mt=0;return zt.width>0&&zt.height>0&&(Ht=(this.width-zt.width*Ct)/2,Mt=this.height/2-zt.height*Ct/2),{x:Ht,y:Mt}},Tt.prototype.sizeText=function(){var Ct=this.textElement.getBBox(),zt=this.getTextScale(),Ht=this.getTextPosition(zt);Ht.y-=Ct.y*zt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ht.x+"px, "+Ht.y+"px) scale("+zt+", "+zt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ht.x,Ht.y),this.textElement.transform.baseVal.getItem(1).setScale(zt,zt))},Tt.prototype.manipulate=function(Ct){ue.prototype.manipulate.call(this,Ct),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ct.x-this.pointerDownPoint.x)>5||Math.abs(Ct.y-this.pointerDownPoint.y)>5)},Tt.prototype.resize=function(Ct){ue.prototype.resize.call(this,Ct),this.isMoved=!0,this.setSize(),this.sizeText()},Tt.prototype.setSize=function(){ue.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(We.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),We.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Tt.prototype.pointerUp=function(Ct){var zt=this.state;zt==="creating"&&(this._suppressMarkerCreateEvent=!0),ue.prototype.pointerUp.call(this,Ct),this.setSize(),(zt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Tt.prototype.showTextEditor=function(){var Ct=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(zt){zt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var zt=Number.parseFloat(Ct.textEditor.style.fontSize);Ct.textEditor.clientWidth>=Number.parseInt(Ct.textEditor.style.maxWidth)&&zt>.9;)zt-=.1,Ct.textEditor.style.fontSize=Math.max(zt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(zt){zt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(zt){if(zt.clipboardData){var Ht=zt.clipboardData.getData("text"),Mt=window.getSelection();if(!Mt.rangeCount)return!1;Mt.deleteFromDocument(),Mt.getRangeAt(0).insertNode(document.createTextNode(Ht)),zt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ct.textEditDivClicked(Ct.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Tt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ct=this.getTextScale(),zt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ht=this.textElement.getBBox(),Mt={x:Ht.width*Ct,y:Ht.height*Ct};zt.x-=Mt.x/2,zt.y-=Mt.y/2,this.textEditor.style.top=zt.y+"px",this.textEditor.style.left=zt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-zt.x+"px",this.textEditor.style.fontSize=Math.max(16*Ct,12)+"px",this.textElement.style.display="none"}},Tt.prototype.textEditDivClicked=function(Ct){this.text=Ct.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Tt.prototype.select=function(){ue.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Tt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ue.prototype.deselect.call(this)},Tt.prototype.dblClick=function(Ct,zt){ue.prototype.dblClick.call(this,Ct,zt),this.showTextEditor()},Tt.prototype.setColor=function(Ct){this.textElement&&We.setAttributes(this.textElement,[["fill",Ct]]),this.color=Ct,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ct)},Tt.prototype.setFont=function(Ct){this.textElement&&We.setAttributes(this.textElement,[["font-family",Ct]]),this.fontFamily=Ct,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Tt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Tt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ue.prototype.getState.call(this));return Ct.typeName=Tt.typeName,Ct},Tt.prototype.restoreState=function(Ct){var zt=Ct;this.color=zt.color,this.fontFamily=zt.fontFamily,this.padding=zt.padding,this.text=zt.text,this.createVisual(),ue.prototype.restoreState.call(this,Ct),this.setSize()},Tt.prototype.scale=function(Ct,zt){ue.prototype.scale.call(this,Ct,zt),this.setSize(),this.sizeText(),this.positionTextEditor()},Tt.typeName="TextMarker",Tt.title="Text marker",Tt.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>',Tt}(Nt),Oe=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.color="transparent",Mt.lineWidth=3,Mt.drawing=!1,Mt.pixelRatio=1,Mt.color=Ht.defaultColor,Mt.lineWidth=Ht.defaultStrokeWidth,Mt.pixelRatio=Ht.freehandPixelRatio,Mt.setColor=Mt.setColor.bind(Mt),Mt.addCanvas=Mt.addCanvas.bind(Mt),Mt.finishCreation=Mt.finishCreation.bind(Mt),Mt.setLineWidth=Mt.setLineWidth.bind(Mt),Mt.colorPanel=new nt("Color",Ht.defaultColorSet,Ht.defaultColor),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.lineWidthPanel=new Gt("Line width",Ht.defaultStrokeWidths,Ht.defaultStrokeWidth),Mt.lineWidthPanel.onWidthChanged=Mt.setLineWidth,Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return!(!ue.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.drawingImage)},Tt.prototype.createVisual=function(){this.visual=We.createGroup(),this.drawingImage=We.createImage(),this.visual.appendChild(this.drawingImage);var Ct=We.createTransform();this.visual.transform.baseVal.appendItem(Ct),this.addMarkerVisualToContainer(this.visual)},Tt.prototype.pointerDown=function(Ct,zt){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(Ct.x,Ct.y),this.drawing=!0):ue.prototype.pointerDown.call(this,Ct,zt)},Tt.prototype.manipulate=function(Ct){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ct.x,Ct.y),this.canvasContext.stroke()):ue.prototype.manipulate.call(this,Ct)},Tt.prototype.resize=function(Ct){ue.prototype.resize.call(this,Ct),We.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),We.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Tt.prototype.pointerUp=function(Ct){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ue.prototype.pointerUp.call(this,Ct)},Tt.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)},Tt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ue.prototype.select.call(this)},Tt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ue.prototype.deselect.call(this)},Tt.prototype.finishCreation=function(){for(var Ct=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),zt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ht=zt[0],Mt=zt[1],be=zt[2],Ge=zt[3],vn=!1,Fn=0;Fn<this.canvasElement.height;Fn++)for(var An=0;An<this.canvasElement.width;An++)Ct.data[Fn*this.canvasElement.width*4+4*An+3]>0&&(vn=!0,Fn<Mt&&(Mt=Fn),An<Ht&&(Ht=An),Fn>Ge&&(Ge=Fn),An>be&&(be=An));if(vn){this.left=Ht/this.pixelRatio,this.top=Mt/this.pixelRatio,this.width=(be-Ht)/this.pixelRatio,this.height=(Ge-Mt)/this.pixelRatio;var kn=document.createElement("canvas");kn.width=be-Ht,kn.height=Ge-Mt,kn.getContext("2d").putImageData(this.canvasContext.getImageData(Ht,Mt,be-Ht,Ge-Mt),0,0),this.drawingImgUrl=kn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Tt.prototype.setDrawingImage=function(){We.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),We.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Tt.prototype.setColor=function(Ct){this.color=Ct,this.colorChanged(Ct)},Tt.prototype.setLineWidth=function(Ct){this.lineWidth=Ct},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=Object.assign({drawingImgUrl:this.drawingImgUrl},ue.prototype.getState.call(this));return Ct.typeName=Tt.typeName,Ct},Tt.prototype.restoreState=function(Ct){this.createVisual(),ue.prototype.restoreState.call(this,Ct),this.drawingImgUrl=Ct.drawingImgUrl,this.setDrawingImage()},Tt.prototype.scale=function(Ct,zt){ue.prototype.scale.call(this,Ct,zt),this.setDrawingImage()},Tt.typeName="FreehandMarker",Tt.title="Freehand marker",Tt.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>',Tt}(Nt),mn=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,Ht||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Mt.typeBoxes=[],Mt.currentType=zt,Mt.setCurrentType=Mt.setCurrentType.bind(Mt),Mt}return Le(Tt,ue),Tt.prototype.getUi=function(){var Ct=this,zt=document.createElement("div");zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2";for(var Ht=function(Ge){var vn="both";switch(Ge){case 0:vn="both";break;case 1:vn="start";break;case 2:vn="end";break;case 3:vn="none"}var Fn=document.createElement("div");if(Fn.style.display="flex",Fn.style.flexGrow="2",Fn.style.alignItems="center",Fn.style.justifyContent="space-between",Fn.style.padding="5px",Fn.style.borderWidth="2px",Fn.style.borderStyle="solid",Fn.style.borderColor=vn===Mt.currentType?Mt.uiStyleSettings.toolboxAccentColor:"transparent",Fn.addEventListener("click",function(){Ct.setCurrentType(vn,Fn)}),zt.appendChild(Fn),vn==="both"||vn==="start"){var An=document.createElement("div");An.style.display="flex",An.style.alignItems="center",An.style.minHeight="20px",An.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="`+(Mt.uiStyleSettings!==void 0?Mt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,An.style.marginLeft="5px",Fn.appendChild(An)}var kn=document.createElement("div");kn.style.display="flex",kn.style.alignItems="center",kn.style.minHeight="20px",kn.style.flexGrow="2";var Bn=document.createElement("hr");if(Bn.style.minWidth="20px",Bn.style.border="0px",Bn.style.borderTop="3px solid "+(Mt.uiStyleSettings!==void 0?Mt.uiStyleSettings.toolboxColor:"#eeeeee"),Bn.style.flexGrow="2",kn.appendChild(Bn),Fn.appendChild(kn),vn==="both"||vn==="end"){var Vn=document.createElement("div");Vn.style.display="flex",Vn.style.alignItems="center",Vn.style.minHeight="20px",Vn.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="`+(Mt.uiStyleSettings!==void 0?Mt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Vn.style.marginRight="5px",Fn.appendChild(Vn)}Mt.typeBoxes.push(Fn)},Mt=this,be=0;be<4;be++)Ht(be);return zt},Tt.prototype.setCurrentType=function(Ct,zt){var Ht=this;this.currentType=Ct,this.typeBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===zt?Ht.uiStyleSettings!==void 0?Ht.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Tt}(et),Kn=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.arrowType="end",Mt.arrowBaseHeight=10,Mt.arrowBaseWidth=10,Mt.getArrowPoints=Mt.getArrowPoints.bind(Mt),Mt.setArrowType=Mt.setArrowType.bind(Mt),Mt.arrowTypePanel=new mn("Arrow type","end"),Mt.arrowTypePanel.onArrowTypeChanged=Mt.setArrowType,Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return!(!ue.prototype.ownsTarget.call(this,Ct)&&Ct!==this.arrow1&&Ct!==this.arrow2)},Tt.prototype.getArrowPoints=function(Ct,zt){var Ht=this.arrowBaseWidth+2*this.strokeWidth,Mt=this.arrowBaseHeight+2*this.strokeWidth;return Ct-Ht/2+","+(zt+Mt/2)+" "+Ct+","+(zt-Mt/2)+" "+(Ct+Ht/2)+","+(zt+Mt/2)},Tt.prototype.createTips=function(){this.arrow1=We.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(We.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=We.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(We.createTransform()),this.visual.appendChild(this.arrow2)},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.state==="creating"&&this.createTips()},Tt.prototype.adjustVisual=function(){if(ue.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",We.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),We.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ct=0;Math.abs(this.x1-this.x2)>.1&&(Ct=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var zt=this.arrow1.transform.baseVal.getItem(0);zt.setRotate(Ct,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(zt,0);var Ht=this.arrow2.transform.baseVal.getItem(0);Ht.setRotate(Ct+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ht,0)}},Tt.prototype.setArrowType=function(Ct){this.arrowType=Ct,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=Object.assign({arrowType:this.arrowType},ue.prototype.getState.call(this));return Ct.typeName=Tt.typeName,Ct},Tt.prototype.restoreState=function(Ct){ue.prototype.restoreState.call(this,Ct);var zt=Ct;this.arrowType=zt.arrowType,this.createTips(),this.adjustVisual()},Tt.typeName="ArrowMarker",Tt.title="Arrow marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Tt}(Xe),sn=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.fillColor=Ht.defaultFillColor,Mt.strokeWidth=0,Mt.fillPanel=new nt("Color",Ht.defaultColorSet,Ht.defaultFillColor),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt}return Le(Tt,ue),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=ue.prototype.getState.call(this);return Ct.typeName=Tt.typeName,Ct},Tt.typeName="CoverMarker",Tt.title="Cover marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Tt}(Rt),gn=function(ue){function Tt(Ct,zt,Ht,Mt){var be=ue.call(this,Ct,Mt||'<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=zt,be.currentOpacity=Ht,be.setCurrentOpacity=be.setCurrentOpacity.bind(be),be}return Le(Tt,ue),Tt.prototype.getUi=function(){var Ct=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",zt.style.justifyContent="space-between",this.opacities.forEach(function(Ht){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.justifyContent="center",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.borderColor=Ht===Ct.currentOpacity?Ct.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){Ct.setCurrentOpacity(Ht,Mt)}),zt.appendChild(Mt);var be=document.createElement("div");be.innerText=100*Ht+"%",Mt.appendChild(be),Ct.opacityBoxes.push(Mt)}),zt},Tt.prototype.setCurrentOpacity=function(Ct,zt){var Ht=this;this.currentOpacity=Ct,this.opacityBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===zt?Ht.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Tt}(et),pn=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.setOpacity=Mt.setOpacity.bind(Mt),Mt.fillColor=Ht.defaultHighlightColor,Mt.strokeWidth=0,Mt.opacity=Ht.defaultHighlightOpacity,Mt.fillPanel=new nt("Color",Ht.defaultColorSet,Mt.fillColor),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt.opacityPanel=new gn("Opacity",Ht.defaultOpacitySteps,Mt.opacity),Mt.opacityPanel.onOpacityChanged=Mt.setOpacity,Mt}return Le(Tt,ue),Tt.prototype.setOpacity=function(Ct){this.opacity=Ct,this.visual&&We.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=ue.prototype.getState.call(this);return Ct.typeName=Tt.typeName,Ct},Tt.typeName="HighlightMarker",Tt.title="Highlight marker",Tt.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>',Tt}(sn),fe='<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>',Zt='<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>',Ye=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.bgColor="transparent",Mt.tipPosition={x:0,y:0},Mt.tipBase1Position={x:0,y:0},Mt.tipBase2Position={x:0,y:0},Mt.tipMoving=!1,Mt.color=Ht.defaultStrokeColor,Mt.bgColor=Ht.defaultFillColor,Mt.fontFamily=Ht.defaultFontFamily,Mt.defaultSize={x:100,y:30},Mt.setBgColor=Mt.setBgColor.bind(Mt),Mt.getTipPoints=Mt.getTipPoints.bind(Mt),Mt.positionTip=Mt.positionTip.bind(Mt),Mt.setTipPoints=Mt.setTipPoints.bind(Mt),Mt.colorPanel=new nt("Text color",Ht.defaultColorSet,Mt.color,fe),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.bgColorPanel=new nt("Fill color",Ht.defaultColorSet,Mt.bgColor,Zt),Mt.bgColorPanel.onColorChanged=Mt.setBgColor,Mt.fontFamilyPanel=new De("Font",Ht.defaultFontFamilies,Ht.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt.tipGrip=new ft,Mt.tipGrip.visual.transform.baseVal.appendItem(We.createTransform()),Mt.controlBox.appendChild(Mt.tipGrip.visual),Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return ue.prototype.ownsTarget.call(this,Ct)||this.tipGrip.ownsTarget(Ct)||this.tip===Ct},Tt.prototype.createTip=function(){We.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=We.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Tt.prototype.pointerDown=function(Ct,zt){this.state==="new"&&ue.prototype.pointerDown.call(this,Ct,zt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(zt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ue.prototype.pointerDown.call(this,Ct,zt)},Tt.prototype.pointerUp=function(Ct){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ue.prototype.pointerUp.call(this,Ct);else{var zt=this.state==="creating";ue.prototype.pointerUp.call(this,Ct),this.setTipPoints(zt),this.positionTip()}},Tt.prototype.manipulate=function(Ct){if(this.tipMoving){var zt=this.unrotatePoint(Ct);this.tipPosition={x:zt.x-this.manipulationStartLeft,y:zt.y-this.manipulationStartTop},this.positionTip()}else ue.prototype.manipulate.call(this,Ct)},Tt.prototype.setBgColor=function(Ct){this.bgRectangle&&this.tip&&(We.setAttributes(this.bgRectangle,[["fill",Ct]]),We.setAttributes(this.tip,[["fill",Ct]])),this.bgColor=Ct,this.fillColorChanged(Ct)},Tt.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},Tt.prototype.setTipPoints=function(Ct){Ct===void 0&&(Ct=!1);var zt=Math.min(this.height/2,15),Ht=this.height/5;Ct&&(this.tipPosition={x:zt+Ht/2,y:this.height+20});var Mt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Mt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ht=this.width/5,zt=Math.min(this.width/2,15),this.tipBase1Position={x:zt,y:0},this.tipBase2Position={x:zt+Ht,y:0}):(this.tipBase1Position={x:0,y:zt},this.tipBase2Position={x:0,y:zt+Ht}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Mt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ht=this.width/5,zt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-zt-Ht,y:0},this.tipBase2Position={x:this.width-zt,y:0}):(this.tipBase1Position={x:this.width,y:zt},this.tipBase2Position={x:this.width,y:zt+Ht}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Mt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ht=this.width/5,zt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-zt-Ht,y:this.height},this.tipBase2Position={x:this.width-zt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-zt-Ht},this.tipBase2Position={x:this.width,y:this.height-zt}):Mt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ht=this.width/5,zt=Math.min(this.width/2,15),this.tipBase1Position={x:zt,y:this.height},this.tipBase2Position={x:zt+Ht,y:this.height}):(this.tipBase1Position={x:0,y:this.height-zt},this.tipBase2Position={x:0,y:this.height-zt-Ht})},Tt.prototype.resize=function(Ct){ue.prototype.resize.call(this,Ct),this.positionTip()},Tt.prototype.positionTip=function(){We.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ct=this.tipGrip.visual.transform.baseVal.getItem(0);Ct.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ct,0)},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Tt.prototype.select=function(){this.positionTip(),ue.prototype.select.call(this)},Tt.prototype.getState=function(){var Ct=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ue.prototype.getState.call(this));return Ct.typeName=Tt.typeName,Ct},Tt.prototype.restoreState=function(Ct){var zt=Ct;this.bgColor=zt.bgColor,this.tipPosition=zt.tipPosition,ue.prototype.restoreState.call(this,Ct),this.createTip(),this.setTipPoints()},Tt.prototype.scale=function(Ct,zt){ue.prototype.scale.call(this,Ct,zt),this.tipPosition={x:this.tipPosition.x*Ct,y:this.tipPosition.y*zt},this.positionTip()},Tt.typeName="CalloutMarker",Tt.title="Callout marker",Tt.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>',Tt}(ln),Gn=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.fillColor="transparent",Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.opacity=1,Mt.strokeColor=Ht.defaultColor,Mt.strokeWidth=Ht.defaultStrokeWidth,Mt.strokeDasharray=Ht.defaultStrokeDasharray,Mt.fillColor=Ht.defaultFillColor,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setFillColor=Mt.setFillColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.setOpacity=Mt.setOpacity.bind(Mt),Mt.createVisual=Mt.createVisual.bind(Mt),Mt.strokePanel=new nt("Line color",Se(Ht.defaultColorSet,["transparent"]),Ht.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.fillPanel=new nt("Fill color",Se(Ht.defaultColorSet,["transparent"]),Mt.fillColor,Zt),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt.strokeWidthPanel=new Gt("Line width",Ht.defaultStrokeWidths,Ht.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new $t("Line style",Ht.defaultStrokeDasharrays,Ht.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt.opacityPanel=new gn("Opacity",Ht.defaultOpacitySteps,Mt.opacity),Mt.opacityPanel.onOpacityChanged=Mt.setOpacity,Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return!(!ue.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual)},Tt.prototype.createVisual=function(){this.visual=We.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)},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},Tt.prototype.manipulate=function(Ct){ue.prototype.manipulate.call(this,Ct)},Tt.prototype.resize=function(Ct){ue.prototype.resize.call(this,Ct),this.setSize()},Tt.prototype.setSize=function(){ue.prototype.setSize.call(this),We.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Tt.prototype.pointerUp=function(Ct){ue.prototype.pointerUp.call(this,Ct),this.setSize()},Tt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.visual&&We.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},Tt.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.visual&&We.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ct),this.stateChanged()},Tt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.visual&&We.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.visual&&We.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Tt.prototype.setOpacity=function(Ct){this.opacity=Ct,this.visual&&We.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ue.prototype.getState.call(this));return Ct.typeName=Tt.typeName,Ct},Tt.prototype.restoreState=function(Ct){var zt=Ct;this.fillColor=zt.fillColor,this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.opacity=zt.opacity,this.createVisual(),ue.prototype.restoreState.call(this,Ct),this.setSize()},Tt.prototype.scale=function(Ct,zt){ue.prototype.scale.call(this,Ct,zt),this.setSize()},Tt.typeName="EllipseMarker",Tt.title="Ellipse marker",Tt.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>',Tt}(Nt),ri=function(ue){function Tt(Ct,zt,Ht){return ue.call(this,Ct,zt,Ht)||this}return Le(Tt,ue),Object.defineProperty(Tt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(Ct){return!(!ue.prototype.ownsTarget.call(this,Ct)&&Ct!==this.tip1&&Ct!==this.tip2)},Tt.prototype.createTips=function(){this.tip1=We.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(We.createTransform()),this.visual.appendChild(this.tip1),this.tip2=We.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(We.createTransform()),this.visual.appendChild(this.tip2)},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.state==="creating"&&this.createTips()},Tt.prototype.adjustVisual=function(){if(ue.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(We.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()]]),We.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 Ct=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),zt=this.tip1.transform.baseVal.getItem(0);zt.setRotate(Ct,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(zt,0);var Ht=this.tip2.transform.baseVal.getItem(0);Ht.setRotate(Ct+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ht,0)}},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=ue.prototype.getState.call(this);return Ct.typeName=Tt.typeName,Ct},Tt.prototype.restoreState=function(Ct){ue.prototype.restoreState.call(this,Ct),this.createTips(),this.adjustVisual()},Tt.typeName="MeasurementMarker",Tt.title="Measurement marker",Tt.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>',Tt}(Xe),cn=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.strokePanel.colors=Ht.defaultColorSet,Mt.fillColor="transparent",Mt}return Le(Tt,ue),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=ue.prototype.getState.call(this);return Ct.typeName=Tt.typeName,Ct},Tt.typeName="EllipseFrameMarker",Tt.title="Ellipse frame marker",Tt.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>',Tt}(Gn),In=function(){function ue(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ue.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ue.prototype.addUndoStep=function(Tt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Tt)||(this.undoStack.push(Tt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Tt)&&this.redoStack.splice(0,this.redoStack.length))},ue.prototype.replaceLastUndoStep=function(Tt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Tt)},ue.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ue.prototype.undo=function(){if(this.undoStack.length>1){var Tt=this.undoStack.pop();return Tt!==void 0&&this.redoStack.push(Tt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ue.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ue}(),Wn=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.curveX=0,Mt.curveY=0,Mt.manipulationStartCurveX=0,Mt.manipulationStartCurveY=0,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.positionGrips=Mt.positionGrips.bind(Mt),Mt.addControlGrips=Mt.addControlGrips.bind(Mt),Mt.adjustVisual=Mt.adjustVisual.bind(Mt),Mt.setupControlBox=Mt.setupControlBox.bind(Mt),Mt.resize=Mt.resize.bind(Mt),Mt.strokeColor=Ht.defaultColor,Mt.strokeWidth=Ht.defaultStrokeWidth,Mt.strokeDasharray=Ht.defaultStrokeDasharray,Mt.strokePanel=new nt("Line color",Ht.defaultColorSet,Ht.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new Gt("Line width",Ht.defaultStrokeWidths,Ht.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new $t("Line style",Ht.defaultStrokeDasharrays,Ht.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return!(!ue.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.selectorCurve&&Ct!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ct))},Tt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Tt.prototype.createVisual=function(){this.visual=We.createGroup(),this.selectorCurve=We.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=We.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)},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ct.x,this.curveY=Ct.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(zt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Tt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),We.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),We.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),We.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Tt.prototype.setupControlBox=function(){ue.prototype.setupControlBox.call(this),this.curveControlLine1=We.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=We.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)},Tt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ue.prototype.addControlGrips.call(this)},Tt.prototype.positionGrips=function(){ue.prototype.positionGrips.call(this);var Ct=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ct/2,this.curveY-Ct/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()))},Tt.prototype.manipulate=function(Ct){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ct.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ct.y-this.manipulationStartY),ue.prototype.manipulate.call(this,Ct)},Tt.prototype.resize=function(Ct){this.activeGrip===this.curveGrip&&(this.curveX=Ct.x,this.curveY=Ct.y),ue.prototype.resize.call(this,Ct),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Tt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.adjustVisual(),this.colorChanged(Ct)},Tt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.adjustVisual()},Tt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.adjustVisual()},Tt.prototype.scale=function(Ct,zt){this.curveX=this.curveX*Ct,this.curveY=this.curveY*zt,ue.prototype.scale.call(this,Ct,zt)},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ue.prototype.getState.call(this));return Ct.typeName=Tt.typeName,Ct},Tt.prototype.restoreState=function(Ct){ue.prototype.restoreState.call(this,Ct);var zt=Ct;this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.curveX=zt.curveX,this.curveY=zt.curveY,this.createVisual(),this.adjustVisual()},Tt.typeName="CurveMarker",Tt.title="Curve marker",Tt.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>',Tt}(ce),xi=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,zt,Ht)||this;return Mt.fillColor="transparent",Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.textColor="transparent",Mt.fontSize="1rem",Mt.isMoved=!1,Mt.captionText="Caption",Mt.PADDING=5,Mt.captionBoxWidth=0,Mt.captionBoxHeight=0,Mt.strokeColor=Ht.defaultColor,Mt.strokeWidth=Ht.defaultStrokeWidth,Mt.strokeDasharray=Ht.defaultStrokeDasharray,Mt.fillColor=Ht.defaultFillColor,Mt.textColor=Ht.defaultStrokeColor,Mt.fontFamily=Ht.defaultFontFamily,Mt.fontSize=Ht.defaultCaptionFontSize,Mt.captionText=Ht.defaultCaptionText,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setFillColor=Mt.setFillColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.createVisual=Mt.createVisual.bind(Mt),Mt.sizeCaption=Mt.sizeCaption.bind(Mt),Mt.setCaptionText=Mt.setCaptionText.bind(Mt),Mt.showTextEditor=Mt.showTextEditor.bind(Mt),Mt.positionTextEditor=Mt.positionTextEditor.bind(Mt),Mt.finishTextEditing=Mt.finishTextEditing.bind(Mt),Mt.setFont=Mt.setFont.bind(Mt),Mt.setTextColor=Mt.setTextColor.bind(Mt),Mt.strokePanel=new nt("Line color",Se(Ht.defaultColorSet,["transparent"]),Mt.strokeColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.fillPanel=new nt("Fill color",Se(Ht.defaultColorSet,["transparent"]),Mt.fillColor,Zt),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt.strokeWidthPanel=new Gt("Line width",Ht.defaultStrokeWidths,Ht.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new $t("Line style",Ht.defaultStrokeDasharrays,Ht.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt.fontFamilyPanel=new De("Font",Ht.defaultFontFamilies,Ht.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt.textColorPanel=new nt("Text color",Ht.defaultColorSet,Mt.textColor,fe),Mt.textColorPanel.onColorChanged=Mt.setTextColor,Mt}return Le(Tt,ue),Tt.prototype.ownsTarget=function(Ct){return!(!ue.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.frame&&Ct!==this.captionBg&&Ct!==this.captionElement)},Tt.prototype.createVisual=function(){this.visual=We.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=We.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=We.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=We.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()},Tt.prototype.setCaptionText=function(Ct){this.captionText=Ct,this.captionElement.textContent=this.captionText,this.sizeCaption()},Tt.prototype.pointerDown=function(Ct,zt){ue.prototype.pointerDown.call(this,Ct,zt),this.isMoved=!1,this.pointerDownPoint=Ct,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},Tt.prototype.manipulate=function(Ct){ue.prototype.manipulate.call(this,Ct),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ct.x-this.pointerDownPoint.x)>5||Math.abs(Ct.y-this.pointerDownPoint.y)>5)},Tt.prototype.resize=function(Ct){ue.prototype.resize.call(this,Ct),this.setSize()},Tt.prototype.sizeCaption=function(){var Ct=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ct.width+2*this.PADDING,this.captionBoxHeight=Ct.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),We.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')"]]),We.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')"]])},Tt.prototype.showTextEditor=function(){var Ct=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(zt){zt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(zt){zt.key==="Enter"&&Ct.finishTextEditing(Ct.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(zt){zt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ct.finishTextEditing(Ct.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ct.finishTextEditing(Ct.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Tt.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"))},Tt.prototype.finishTextEditing=function(Ct){this.setCaptionText(Ct.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Tt.prototype.setFont=function(Ct){this.captionElement&&We.setAttributes(this.captionElement,[["font-family",Ct]]),this.fontFamily=Ct,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Tt.prototype.setTextColor=function(Ct){this.captionElement&&We.setAttributes(this.captionElement,[["fill",Ct]]),this.textColor=Ct,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Tt.prototype.setSize=function(){ue.prototype.setSize.call(this),We.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Tt.prototype.pointerUp=function(Ct){ue.prototype.pointerUp.call(this,Ct),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Tt.prototype.dblClick=function(Ct,zt){ue.prototype.dblClick.call(this,Ct,zt),this.showTextEditor()},Tt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.frame&&We.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},Tt.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.captionBg&&We.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ct),this.stateChanged()},Tt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.frame&&We.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.frame&&We.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var Ct=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},ue.prototype.getState.call(this));return Ct.typeName=this.typeName,Ct},Tt.prototype.restoreState=function(Ct){var zt=Ct;this.fillColor=zt.fillColor,this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.textColor=zt.textColor,this.fontFamily=zt.fontFamily,this.captionText=zt.captionText,this.fontSize=zt.fontSize,this.createVisual(),ue.prototype.restoreState.call(this,Ct),this.setSize()},Tt.prototype.scale=function(Ct,zt){ue.prototype.scale.call(this,Ct,zt),this.setSize()},Tt.typeName="CaptionFrameMarker",Tt.title="Caption frame marker",Tt.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>',Tt}(Nt),pi=function(){function ue(Tt,Ct){Ct===void 0&&(Ct=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Tt,this.cancelable=Ct}return Object.defineProperty(ue.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ue.prototype.preventDefault=function(){this._defaultPrevented=!0},ue}(),zi=function(ue){function Tt(Ct,zt,Ht){var Mt=ue.call(this,Ct,!1)||this;return Mt.dataUrl=zt,Mt.state=Ht,Mt}return Le(Tt,ue),Tt}(pi),Ie=function(ue){function Tt(Ct,zt,Ht){Ht===void 0&&(Ht=!1);var Mt=ue.call(this,Ct,Ht)||this;return Mt.marker=zt,Mt}return Le(Tt,ue),Tt}(pi),Ai=function(){function ue(){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 ue.prototype.addEventListener=function(Tt,Ct){this[Tt].push(Ct)},ue.prototype.removeEventListener=function(Tt,Ct){var zt=this[Tt].indexOf(Ct);zt>-1&&this[Tt].splice(zt,1)},ue}(),Ti=function(){function ue(Tt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new me,this._isOpen=!1,this.undoRedoManager=new In,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 Ai,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ue.instanceCounter++,this.styles=new It(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Tt,this.targetRoot=document.body,this.width=Tt.clientWidth,this.height=Tt.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(ue.prototype,"ALL_MARKER_TYPES",{get:function(){return[se,Oe,Kn,ln,cn,Gn,pn,Ye,ri,sn,Xe,Wn,xi]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[se,Oe,Kn,ln,Gn,pn,Ye]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"BASIC_MARKER_TYPES",{get:function(){return[se,Oe,Kn,ln,pn]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Tt){var Ct=this;this._availableMarkerTypes.splice(0),Tt.forEach(function(zt){if(typeof zt=="string"){var Ht=Ct.ALL_MARKER_TYPES.find(function(Mt){return Mt.typeName===zt});Ht!==void 0&&Ct._availableMarkerTypes.push(Ht)}else Ct._availableMarkerTypes.push(zt)})},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Tt){this._zoomLevel=Tt,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(ue.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ue.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),je.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ue.prototype.show=function(){var Tt=this;this.styles.styleSheetRoot===void 0&&ve.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ve.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ct){return Ct(new pi(Tt))})},ue.prototype.render=function(){return Te(this,void 0,void 0,function(){var Tt;return xn(this,function(Ct){switch(Ct.label){case 0:return this.setCurrentMarker(),(Tt=new de).naturalSize=this.renderAtNaturalSize,Tt.imageType=this.renderImageType,Tt.imageQuality=this.renderImageQuality,Tt.markersOnly=this.renderMarkersOnly,Tt.width=this.renderWidth,Tt.height=this.renderHeight,[4,Tt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ct.sent(),[4,Tt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ct.sent()]}})})},ue.prototype.close=function(Tt){var Ct=this;if(Tt===void 0&&(Tt=!1),this.isOpen){var zt=!1;Tt||this.eventListeners.beforeclose.forEach(function(Ht){var Mt=new pi(Ct,!0);Ht(Mt),Mt.defaultPrevented&&(zt=!0)}),zt||(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(Ht){return Ht(new pi(Ct))}),this.detachEvents(),this._isOpen=!1)}},ue.prototype.addMarkersToToolbar=function(){for(var Tt,Ct=[],zt=0;zt<arguments.length;zt++)Ct[zt]=arguments[zt];(Tt=this._availableMarkerTypes).push.apply(Tt,Ct)},ue.prototype.addRenderEventListener=function(Tt){this.addEventListener("render",function(Ct){Tt(Ct.dataUrl,Ct.state)})},ue.prototype.removeRenderEventListener=function(Tt){},ue.prototype.addCloseEventListener=function(Tt){this.addEventListener("close",function(){Tt()})},ue.prototype.removeCloseEventListener=function(Tt){},ue.prototype.setupResizeObserver=function(){var Tt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Tt.resize(Tt.target.clientWidth,Tt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Tt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ue.prototype.onPopupTargetResize=function(){var Tt=1*this.target.clientWidth/this.target.clientHeight,Ct=this.editorCanvas.clientWidth/Tt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Tt:this.editorCanvas.clientWidth,zt=Ct<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Tt;this.resize(Ct,zt)},ue.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ue.prototype.resize=function(Tt,Ct){this._isResizing=!0;var zt=Tt/this.imageWidth,Ht=Ct/this.imageHeight;this.imageWidth=Math.round(Tt),this.imageHeight=Math.round(Ct),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(zt,Ht),this._isResizing=!1},ue.prototype.scaleMarkers=function(Tt,Ct){var zt,Ht=this;this._currentMarker&&this._currentMarker instanceof ln?this._currentMarker.scale(Tt,Ct):(zt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Mt){Mt!==Ht._currentMarker&&Mt.scale(Tt,Ct)}),zt!==void 0&&this.setCurrentMarker(zt)},ue.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"},ue.prototype.setTopLeft=function(){var Tt=this.editingTarget.getBoundingClientRect(),Ct=this.editorCanvas.getBoundingClientRect();this.left=Tt.left-Ct.left,this.top=Tt.top-Ct.top},ue.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)},ue.prototype.addDefs=function(){for(var Tt,Ct=[],zt=0;zt<arguments.length;zt++)Ct[zt]=arguments[zt];this.defs=We.createDefs(),this.addDefsToImage(),(Tt=this.defs).append.apply(Tt,Ct)},ue.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ue.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)},ue.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ue.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ue.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)},ue.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ue.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)},ue.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 Tt=document.createElement("a");Tt.href="https://markerjs.com/",Tt.target="_blank",Tt.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>',Tt.title="Powered by marker.js",Tt.style.display="grid",Tt.style.alignItems="center",Tt.style.justifyItems="center",Tt.style.padding="3px",Tt.style.width="20px",Tt.style.height="20px",this.logoUI.appendChild(Tt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ue.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")},ue.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"},ue.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ue.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 Tt=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=Tt+"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 ge(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 Qt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ue.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ue.prototype.removeMarker=function(Tt){this.markerImage.removeChild(Tt.container),this.markers.indexOf(Tt)>-1&&this.markers.splice(this.markers.indexOf(Tt),1),Tt.dispose()},ue.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())},ue.prototype.toolbarButtonClicked=function(Tt,Ct){if(Tt==="marker"&&Ct!==void 0)this.createNewMarker(Ct);else if(Tt==="action")switch(Ct){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()}},ue.prototype.deleteSelectedMarker=function(){var Tt=this;if(this._currentMarker!==void 0){var Ct=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ht){var Mt=new Ie(Tt,Tt._currentMarker,!0);Ht(Mt),Mt.defaultPrevented&&(Ct=!0)}),!Ct){var zt=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(Ht){return Ht(new Ie(Tt,zt))})}}},ue.prototype.clear=function(){var Tt=this,Ct=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(be){var Ge=new Ie(Tt,void 0,!0);be(Ge),Ge.defaultPrevented&&(Ct=!0)}),!Ct)){this.setCurrentMarker();for(var zt=function(be){var Ge=Ht.markers[be];Ht.setCurrentMarker(Ht.markers[be]),Ht._currentMarker.dispose(),Ht.markerImage.removeChild(Ht._currentMarker.container),Ht.markers.splice(Ht.markers.indexOf(Ht._currentMarker),1),Ht.eventListeners.markerdelete.forEach(function(vn){return vn(new Ie(Tt,Ge))})},Ht=this,Mt=this.markers.length-1;Mt>=0;Mt--)zt(Mt);this.addUndoStep()}},Object.defineProperty(ue.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ue.prototype.showNotesEditor=function(){var Tt;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=(Tt=this._currentMarker.notes)!==null&&Tt!==void 0?Tt:"",this.overlayContainer.appendChild(this.notesArea))},ue.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)},ue.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ue.prototype.addUndoStep=function(){var Tt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ct=this.getState(),zt=this.undoRedoManager.getLastUndoStep();if(!zt||zt.width===Ct.width&&zt.height===Ct.height){var Ht=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ct),Ht<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Mt){return Mt(new pi(Tt))})}else this.undoRedoManager.replaceLastUndoStep(Ct),this.eventListeners.statechange.forEach(function(Mt){return Mt(new pi(Tt))})}},ue.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ue.prototype.undoStep=function(){var Tt=this,Ct=this.undoRedoManager.undo();Ct!==void 0&&(this.restoreState(Ct),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(zt){return zt(new pi(Tt))}))},ue.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ue.prototype.redoStep=function(){var Tt=this,Ct=this.undoRedoManager.redo();Ct!==void 0&&(this.restoreState(Ct),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(zt){return zt(new pi(Tt))}))},ue.prototype.stepZoom=function(){var Tt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Tt<this.zoomSteps.length-1?this.zoomSteps[Tt+1]:this.zoomSteps[0]},ue.prototype.panTo=function(Tt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Tt.x,top:this.prevPanPoint.y-Tt.y}),this.prevPanPoint=Tt},ue.prototype.startRenderAndClose=function(){return Te(this,void 0,void 0,function(){var Tt,Ct,zt=this;return xn(this,function(Ht){switch(Ht.label){case 0:return[4,this.render()];case 1:return Tt=Ht.sent(),Ct=this.getState(),this.eventListeners.render.forEach(function(Mt){return Mt(new zi(zt,Tt,Ct))}),this.close(!0),[2]}})})},ue.prototype.getState=function(Tt){Tt===!0&&this.setCurrentMarker();var Ct={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(zt){return Ct.markers.push(zt.getState())}),Ct},ue.prototype.restoreState=function(Tt){var Ct=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Tt.markers.forEach(function(zt){var Ht=Ct._availableMarkerTypes.find(function(be){return be.typeName===zt.typeName});if(Ht!==void 0){var Mt=Ct.addNewMarker(Ht);Mt.restoreState(zt),Ct.markers.push(Mt)}}),Tt.width&&Tt.height&&(Tt.width!==this.imageWidth||Tt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Tt.width,this.imageHeight/Tt.height),this.eventListeners.restorestate.forEach(function(zt){return zt(new pi(Ct))})},ue.prototype.addNewMarker=function(Tt){var Ct=We.createGroup();return this.markerImage.appendChild(Ct),new Tt(Ct,this.overlayContainer,this.settings)},ue.prototype.createNewMarker=function(Tt){var Ct,zt=this;(Ct=typeof Tt=="string"?this._availableMarkerTypes.find(function(Ht){return Ht.typeName===Tt}):Tt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ct),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(Ct.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ht){return Ht(new Ie(zt,zt._currentMarker))}))},ue.prototype.markerCreated=function(Tt){var Ct=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Tt),this.setCurrentMarker(Tt),Tt instanceof Oe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Oe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(zt){return zt(new Ie(Ct,Ct._currentMarker))})},ue.prototype.colorChanged=function(Tt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Tt,this.settings.defaultStrokeColor=Tt)},ue.prototype.fillColorChanged=function(Tt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Tt)},ue.prototype.markerStateChanged=function(Tt){var Ct=this;this.eventListeners.markerchange.forEach(function(zt){return zt(new Ie(Ct,Tt))})},ue.prototype.setCurrentMarker=function(Tt){var Ct=this;this._currentMarker!==Tt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(zt){return zt(new Ie(Ct,Ct._currentMarker))})),this._currentMarker=Tt,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(zt){return zt(new Ie(Ct,Ct._currentMarker))}))},ue.prototype.onPointerDown=function(Tt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Tt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ct=this.markers.find(function(zt){return zt.ownsTarget(Tt.target)});Ct!==void 0?(this.setCurrentMarker(Ct),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY),Tt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Tt.clientX,y:Tt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY))},ue.prototype.onDblClick=function(Tt){if(this._isFocused||this.focus(),this.mode==="select"){var Ct=this.markers.find(function(zt){return zt.ownsTarget(Tt.target)});Ct!==void 0&&Ct!==this._currentMarker&&this.setCurrentMarker(Ct),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY),Tt.target):this.setCurrentMarker()}},ue.prototype.onPointerMove=function(Tt){this.touchPoints!==1&&Tt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Tt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY)):this.zoomLevel>1&&this.panTo({x:Tt.clientX,y:Tt.clientY}))},ue.prototype.onPointerUp=function(Tt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY)),this.isDragging=!1,this.addUndoStep()},ue.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ue.prototype.onKeyUp=function(Tt){this._currentMarker===void 0||this.notesArea!==void 0||Tt.key!=="Delete"&&Tt.key!=="Backspace"||this.deleteSelectedMarker()},ue.prototype.clientToLocalCoordinates=function(Tt,Ct){var zt=this.markerImage.getBoundingClientRect();return{x:(Tt-zt.left)/this.zoomLevel,y:(Ct-zt.top)/this.zoomLevel}},ue.prototype.onWindowResize=function(){this.positionUI()},ue.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Tt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Tt+"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()},ue.prototype.addLicenseKey=function(Tt){je.addKey(Tt)},ue.prototype.addEventListener=function(Tt,Ct){this.eventListeners.addEventListener(Tt,Ct)},ue.prototype.removeEventListener=function(Tt,Ct){this.eventListeners.removeEventListener(Tt,Ct)},ue.prototype.renderState=function(Tt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Tt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ue.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ue.prototype.focus=function(){var Tt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ct){return Ct(new pi(Tt))}))},ue.prototype.blur=function(){var Tt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ct){return Ct(new pi(Tt))}))},ue.instanceCounter=0,ue}()},17115:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{ZP:function(){return je}});var Kt=Yt(33606),Le=Yt(59301),Te=Yt(47273),xn=0,Se=(0,Te.Z)();function We(){var de;return Se?(de=xn,xn+=1):de="TEST_OR_SSR",de}function je(de){var ve=Le.useState(),It=(0,Kt.Z)(ve,2),xe=It[0],ee=It[1];return Le.useEffect(function(){ee("rc_select_".concat(We()))},[]),de||xe}},77861:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Ac:function(){return Vn},Xo:function(){return Co},Wx:function(){return hr},ZP:function(){return Yn},lk:function(){return Nt}});var Kt=Yt(92413),Le=Yt(26407),Te=Yt(400),xn=Yt(33708),Se=Yt(33606),We=Yt(37061),je=Yt(39559),de=Yt(18929),ve=Yt(48736),It=Yt(59301),xe=Yt(92310),ee=Yt.n(xe),ge=Yt(34280),Qt=Yt(49658),et=Yt(10228),nt=Yt(8654),ht=function(ye){var qe=ye.className,Mn=ye.customizeIcon,li=ye.customizeIconProps,Si=ye.onMouseDown,Fe=ye.onClick,Qn=ye.children,Ni;return typeof Mn=="function"?Ni=Mn(li):Ni=Mn,It.createElement("span",{className:qe,onMouseDown:function(wn){wn.preventDefault(),Si&&Si(wn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Fe,"aria-hidden":!0},Ni!==void 0?Ni:It.createElement("span",{className:ee()(qe.split(/\s+/).map(function(lr){return"".concat(lr,"-icon")}))},Qn))},at=ht;function ft(Qe,ye,qe,Mn,li){var Si=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,Ni=It.useMemo(function(){if((0,je.Z)(Mn)==="object")return Mn.clearIcon;if(li)return li},[Mn,li]),lr=It.useMemo(function(){return!!(!Si&&Mn&&(qe.length||Fe)&&!(Qn==="combobox"&&Fe===""))},[Mn,Si,qe.length,Fe,Qn]);return{allowClear:lr,clearIcon:It.createElement(at,{className:"".concat(Qe,"-clear"),onMouseDown:ye,customizeIcon:Ni},"\xD7")}}var vt=It.createContext(null);function Nt(){return It.useContext(vt)}function Rt(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ye=It.useState(!1),qe=(0,Se.Z)(ye,2),Mn=qe[0],li=qe[1],Si=It.useRef(null),Fe=function(){window.clearTimeout(Si.current)};It.useEffect(function(){return Fe},[]);var Qn=function(lr,wn){Fe(),Si.current=window.setTimeout(function(){li(lr),wn&&wn()},Qe)};return[Mn,Qn,Fe]}function Gt(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ye=It.useRef(null),qe=It.useRef(null);It.useEffect(function(){return function(){window.clearTimeout(qe.current)}},[]);function Mn(li){(li||ye.current===null)&&(ye.current=li),window.clearTimeout(qe.current),qe.current=window.setTimeout(function(){ye.current=null},Qe)}return[function(){return ye.current},Mn]}function $t(Qe,ye,qe,Mn){var li=It.useRef(null);li.current={open:ye,triggerOpen:qe,customizedTrigger:Mn},It.useEffect(function(){function Si(Fe){var Qn;if(!((Qn=li.current)!==null&&Qn!==void 0&&Qn.customizedTrigger)){var Ni=Fe.target;Ni.shadowRoot&&Fe.composed&&(Ni=Fe.composedPath()[0]||Ni),li.current.open&&Qe().filter(function(lr){return lr}).every(function(lr){return!lr.contains(Ni)&&lr!==Ni})&&li.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Si),function(){return window.removeEventListener("mousedown",Si)}},[])}var se=Yt(26112),me=Yt(11780),ce=function(ye,qe){var Mn,li,Si=ye.prefixCls,Fe=ye.id,Qn=ye.inputElement,Ni=ye.disabled,lr=ye.tabIndex,wn=ye.autoFocus,Jn=ye.autoComplete,Br=ye.editable,vr=ye.activeDescendantId,Tr=ye.value,nr=ye.maxLength,yr=ye.onKeyDown,ar=ye.onMouseDown,Er=ye.onChange,co=ye.onPaste,jo=ye.onCompositionStart,Xn=ye.onCompositionEnd,Oo=ye.open,as=ye.attrs,Eo=Qn||It.createElement("input",null),zn=Eo,Gi=zn.ref,wr=zn.props,Dr=wr.onKeyDown,Mr=wr.onChange,ao=wr.onMouseDown,Uo=wr.onCompositionStart,lo=wr.onCompositionEnd,$r=wr.style;return(0,ve.Kp)(!("maxLength"in Eo.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Eo=It.cloneElement(Eo,(0,xn.Z)((0,xn.Z)((0,xn.Z)({type:"search"},wr),{},{id:Fe,ref:(0,nt.sQ)(qe,Gi),disabled:Ni,tabIndex:lr,autoComplete:Jn||"off",autoFocus:wn,className:ee()("".concat(Si,"-selection-search-input"),(Mn=Eo)===null||Mn===void 0||(li=Mn.props)===null||li===void 0?void 0:li.className),role:"combobox","aria-label":"Search","aria-expanded":Oo||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Fe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Fe,"_list"),"aria-activedescendant":Oo?vr:void 0},as),{},{value:Br?Tr:"",maxLength:nr,readOnly:!Br,unselectable:Br?null:"on",style:(0,xn.Z)((0,xn.Z)({},$r),{},{opacity:Br?null:0}),onKeyDown:function(ni){yr(ni),Dr&&Dr(ni)},onMouseDown:function(ni){ar(ni),ao&&ao(ni)},onChange:function(ni){Er(ni),Mr&&Mr(ni)},onCompositionStart:function(ni){jo(ni),Uo&&Uo(ni)},onCompositionEnd:function(ni){Xn(ni),lo&&lo(ni)},onPaste:co})),Eo},Xe=It.forwardRef(ce);Xe.displayName="Input";var De=Xe;function ln(Qe){return Array.isArray(Qe)?Qe:Qe!==void 0?[Qe]:[]}var Oe=typeof window!="undefined"&&window.document&&window.document.documentElement,mn=Oe;function Kn(Qe){return Qe!=null}function sn(Qe){return!Qe&&Qe!==0}function gn(Qe){return["string","number"].includes((0,je.Z)(Qe))}function pn(Qe){var ye=void 0;return Qe&&(gn(Qe.title)?ye=Qe.title.toString():gn(Qe.label)&&(ye=Qe.label.toString())),ye}function fe(Qe,ye){mn?It.useLayoutEffect(Qe,ye):It.useEffect(Qe,ye)}function Zt(Qe){var ye;return(ye=Qe.key)!==null&&ye!==void 0?ye:Qe.value}var Ye=function(ye){ye.preventDefault(),ye.stopPropagation()},Gn=function(ye){var qe=ye.id,Mn=ye.prefixCls,li=ye.values,Si=ye.open,Fe=ye.searchValue,Qn=ye.autoClearSearchValue,Ni=ye.inputRef,lr=ye.placeholder,wn=ye.disabled,Jn=ye.mode,Br=ye.showSearch,vr=ye.autoFocus,Tr=ye.autoComplete,nr=ye.activeDescendantId,yr=ye.tabIndex,ar=ye.removeIcon,Er=ye.maxTagCount,co=ye.maxTagTextLength,jo=ye.maxTagPlaceholder,Xn=jo===void 0?function(zo){return"+ ".concat(zo.length," ...")}:jo,Oo=ye.tagRender,as=ye.onToggleOpen,Eo=ye.onRemove,zn=ye.onInputChange,Gi=ye.onInputPaste,wr=ye.onInputKeyDown,Dr=ye.onInputMouseDown,Mr=ye.onInputCompositionStart,ao=ye.onInputCompositionEnd,Uo=It.useRef(null),lo=(0,It.useState)(0),$r=(0,Se.Z)(lo,2),br=$r[0],ni=$r[1],So=(0,It.useState)(!1),qn=(0,Se.Z)(So,2),Go=qn[0],Ds=qn[1],qo="".concat(Mn,"-selection"),ea=Si||Jn==="multiple"&&Qn===!1||Jn==="tags"?Fe:"",Bs=Jn==="tags"||Jn==="multiple"&&Qn===!1||Br&&(Si||Go);fe(function(){ni(Uo.current.scrollWidth)},[ea]);function io(zo,Qs,_a,hl,Ka){return It.createElement("span",{className:ee()("".concat(qo,"-item"),(0,Te.Z)({},"".concat(qo,"-item-disabled"),_a)),title:pn(zo)},It.createElement("span",{className:"".concat(qo,"-item-content")},Qs),hl&&It.createElement(at,{className:"".concat(qo,"-item-remove"),onMouseDown:Ye,onClick:Ka,customizeIcon:ar},"\xD7"))}function uo(zo,Qs,_a,hl,Ka){var ml=function(Po){Ye(Po),as(!Si)};return It.createElement("span",{onMouseDown:ml},Oo({label:Qs,value:zo,disabled:_a,closable:hl,onClose:Ka}))}function Yo(zo){var Qs=zo.disabled,_a=zo.label,hl=zo.value,Ka=!wn&&!Qs,ml=_a;if(typeof co=="number"&&(typeof _a=="string"||typeof _a=="number")){var To=String(ml);To.length>co&&(ml="".concat(To.slice(0,co),"..."))}var Po=function(As){As&&As.stopPropagation(),Eo(zo)};return typeof Oo=="function"?uo(hl,ml,Qs,Ka,Po):io(zo,ml,Qs,Ka,Po)}function Qo(zo){var Qs=typeof Xn=="function"?Xn(zo):Xn;return io({title:Qs},Qs,!1)}var Zi=It.createElement("div",{className:"".concat(qo,"-search"),style:{width:br},onFocus:function(){Ds(!0)},onBlur:function(){Ds(!1)}},It.createElement(De,{ref:Ni,open:Si,prefixCls:Mn,id:qe,inputElement:null,disabled:wn,autoFocus:vr,autoComplete:Tr,editable:Bs,activeDescendantId:nr,value:ea,onKeyDown:wr,onMouseDown:Dr,onChange:zn,onPaste:Gi,onCompositionStart:Mr,onCompositionEnd:ao,tabIndex:yr,attrs:(0,se.Z)(ye,!0)}),It.createElement("span",{ref:Uo,className:"".concat(qo,"-search-mirror"),"aria-hidden":!0},ea,"\xA0")),oe=It.createElement(me.Z,{prefixCls:"".concat(qo,"-overflow"),data:li,renderItem:Yo,renderRest:Qo,suffix:Zi,itemKey:Zt,maxCount:Er});return It.createElement(It.Fragment,null,oe,!li.length&&!ea&&It.createElement("span",{className:"".concat(qo,"-placeholder")},lr))},ri=Gn,cn=function(ye){var qe=ye.inputElement,Mn=ye.prefixCls,li=ye.id,Si=ye.inputRef,Fe=ye.disabled,Qn=ye.autoFocus,Ni=ye.autoComplete,lr=ye.activeDescendantId,wn=ye.mode,Jn=ye.open,Br=ye.values,vr=ye.placeholder,Tr=ye.tabIndex,nr=ye.showSearch,yr=ye.searchValue,ar=ye.activeValue,Er=ye.maxLength,co=ye.onInputKeyDown,jo=ye.onInputMouseDown,Xn=ye.onInputChange,Oo=ye.onInputPaste,as=ye.onInputCompositionStart,Eo=ye.onInputCompositionEnd,zn=ye.title,Gi=It.useState(!1),wr=(0,Se.Z)(Gi,2),Dr=wr[0],Mr=wr[1],ao=wn==="combobox",Uo=ao||nr,lo=Br[0],$r=yr||"";ao&&ar&&!Dr&&($r=ar),It.useEffect(function(){ao&&Mr(!1)},[ao,ar]);var br=wn!=="combobox"&&!Jn&&!nr?!1:!!$r,ni=zn===void 0?pn(lo):zn,So=function(){if(lo)return null;var Go=br?{visibility:"hidden"}:void 0;return It.createElement("span",{className:"".concat(Mn,"-selection-placeholder"),style:Go},vr)};return It.createElement(It.Fragment,null,It.createElement("span",{className:"".concat(Mn,"-selection-search")},It.createElement(De,{ref:Si,prefixCls:Mn,id:li,open:Jn,inputElement:qe,disabled:Fe,autoFocus:Qn,autoComplete:Ni,editable:Uo,activeDescendantId:lr,value:$r,onKeyDown:co,onMouseDown:jo,onChange:function(Go){Mr(!0),Xn(Go)},onPaste:Oo,onCompositionStart:as,onCompositionEnd:Eo,tabIndex:Tr,attrs:(0,se.Z)(ye,!0),maxLength:ao?Er:void 0})),!ao&&lo?It.createElement("span",{className:"".concat(Mn,"-selection-item"),title:ni,style:br?{visibility:"hidden"}:void 0},lo.label):null,So())},In=cn;function Wn(Qe){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(Qe)}var xi=function(ye,qe){var Mn=(0,It.useRef)(null),li=(0,It.useRef)(!1),Si=ye.prefixCls,Fe=ye.open,Qn=ye.mode,Ni=ye.showSearch,lr=ye.tokenWithEnter,wn=ye.autoClearSearchValue,Jn=ye.onSearch,Br=ye.onSearchSubmit,vr=ye.onToggleOpen,Tr=ye.onInputKeyDown,nr=ye.domRef;It.useImperativeHandle(qe,function(){return{focus:function(){Mn.current.focus()},blur:function(){Mn.current.blur()}}});var yr=Gt(0),ar=(0,Se.Z)(yr,2),Er=ar[0],co=ar[1],jo=function($r){var br=$r.which;(br===et.Z.UP||br===et.Z.DOWN)&&$r.preventDefault(),Tr&&Tr($r),br===et.Z.ENTER&&Qn==="tags"&&!li.current&&!Fe&&(Br==null||Br($r.target.value)),Wn(br)&&vr(!0)},Xn=function(){co(!0)},Oo=(0,It.useRef)(null),as=function($r){Jn($r,!0,li.current)!==!1&&vr(!0)},Eo=function(){li.current=!0},zn=function($r){li.current=!1,Qn!=="combobox"&&as($r.target.value)},Gi=function($r){var br=$r.target.value;if(lr&&Oo.current&&/[\r\n]/.test(Oo.current)){var ni=Oo.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");br=br.replace(ni,Oo.current)}Oo.current=null,as(br)},wr=function($r){var br=$r.clipboardData,ni=br.getData("text");Oo.current=ni},Dr=function($r){var br=$r.target;if(br!==Mn.current){var ni=document.body.style.msTouchAction!==void 0;ni?setTimeout(function(){Mn.current.focus()}):Mn.current.focus()}},Mr=function($r){var br=Er();$r.target!==Mn.current&&!br&&Qn!=="combobox"&&$r.preventDefault(),(Qn!=="combobox"&&(!Ni||!br)||!Fe)&&(Fe&&wn!==!1&&Jn("",!0,!1),vr())},ao={inputRef:Mn,onInputKeyDown:jo,onInputMouseDown:Xn,onInputChange:Gi,onInputPaste:wr,onInputCompositionStart:Eo,onInputCompositionEnd:zn},Uo=Qn==="multiple"||Qn==="tags"?It.createElement(ri,(0,Kt.Z)({},ye,ao)):It.createElement(In,(0,Kt.Z)({},ye,ao));return It.createElement("div",{ref:nr,className:"".concat(Si,"-selector"),onClick:Dr,onMouseDown:Mr},Uo)},pi=It.forwardRef(xi);pi.displayName="Selector";var zi=pi,Ie=Yt(35593),Ai=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ti=function(ye){var qe=ye===!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"}}},ue=function(ye,qe){var Mn=ye.prefixCls,li=ye.disabled,Si=ye.visible,Fe=ye.children,Qn=ye.popupElement,Ni=ye.animation,lr=ye.transitionName,wn=ye.dropdownStyle,Jn=ye.dropdownClassName,Br=ye.direction,vr=Br===void 0?"ltr":Br,Tr=ye.placement,nr=ye.builtinPlacements,yr=ye.dropdownMatchSelectWidth,ar=ye.dropdownRender,Er=ye.dropdownAlign,co=ye.getPopupContainer,jo=ye.empty,Xn=ye.getTriggerDOMNode,Oo=ye.onPopupVisibleChange,as=ye.onPopupMouseEnter,Eo=(0,We.Z)(ye,Ai),zn="".concat(Mn,"-dropdown"),Gi=Qn;ar&&(Gi=ar(Qn));var wr=It.useMemo(function(){return nr||Ti(yr)},[nr,yr]),Dr=Ni?"".concat(zn,"-").concat(Ni):lr,Mr=typeof yr=="number",ao=It.useMemo(function(){return Mr?null:yr===!1?"minWidth":"width"},[yr,Mr]),Uo=wn;Mr&&(Uo=(0,xn.Z)((0,xn.Z)({},Uo),{},{width:yr}));var lo=It.useRef(null);return It.useImperativeHandle(qe,function(){return{getPopupElement:function(){return lo.current}}}),It.createElement(Ie.Z,(0,Kt.Z)({},Eo,{showAction:Oo?["click"]:[],hideAction:Oo?["click"]:[],popupPlacement:Tr||(vr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:wr,prefixCls:zn,popupTransitionName:Dr,popup:It.createElement("div",{ref:lo,onMouseEnter:as},Gi),stretch:ao,popupAlign:Er,popupVisible:Si,getPopupContainer:co,popupClassName:ee()(Jn,(0,Te.Z)({},"".concat(zn,"-empty"),jo)),popupStyle:Uo,getTriggerDOMNode:Xn,onPopupVisibleChange:Oo}),Fe)},Tt=It.forwardRef(ue);Tt.displayName="SelectTrigger";var Ct=Tt,zt=Yt(34589);function Ht(Qe,ye){var qe=Qe.key,Mn;return"value"in Qe&&(Mn=Qe.value),qe!=null?qe:Mn!==void 0?Mn:"rc-index-key-".concat(ye)}function Mt(Qe,ye){var qe=Qe||{},Mn=qe.label,li=qe.value,Si=qe.options,Fe=qe.groupLabel,Qn=Mn||(ye?"children":"label");return{label:Qn,value:li||"value",options:Si||"options",groupLabel:Fe||Qn}}function be(Qe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=ye.fieldNames,Mn=ye.childrenAsData,li=[],Si=Mt(qe,!1),Fe=Si.label,Qn=Si.value,Ni=Si.options,lr=Si.groupLabel;function wn(Jn,Br){Jn.forEach(function(vr){if(Br||!(Ni in vr)){var Tr=vr[Qn];li.push({key:Ht(vr,li.length),groupOption:Br,data:vr,label:vr[Fe],value:Tr})}else{var nr=vr[lr];nr===void 0&&Mn&&(nr=vr.label),li.push({key:Ht(vr,li.length),group:!0,data:vr,label:nr}),wn(vr[Ni],!0)}})}return wn(Qe,!1),li}function Ge(Qe){var ye=(0,xn.Z)({},Qe);return"props"in ye||Object.defineProperty(ye,"props",{get:function(){return(0,ve.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ye}}),ye}function vn(Qe,ye){if(!ye||!ye.length)return null;var qe=!1;function Mn(Si,Fe){var Qn=(0,zt.Z)(Fe),Ni=Qn[0],lr=Qn.slice(1);if(!Ni)return[Si];var wn=Si.split(Ni);return qe=qe||wn.length>1,wn.reduce(function(Jn,Br){return[].concat((0,Le.Z)(Jn),(0,Le.Z)(Mn(Br,lr)))},[]).filter(function(Jn){return Jn})}var li=Mn(Qe,ye);return qe?li:null}var Fn=["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"],An=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function kn(Qe){return Qe==="tags"||Qe==="multiple"}var Bn=It.forwardRef(function(Qe,ye){var qe,Mn,li=Qe.id,Si=Qe.prefixCls,Fe=Qe.className,Qn=Qe.showSearch,Ni=Qe.tagRender,lr=Qe.direction,wn=Qe.omitDomProps,Jn=Qe.displayValues,Br=Qe.onDisplayValuesChange,vr=Qe.emptyOptions,Tr=Qe.notFoundContent,nr=Tr===void 0?"Not Found":Tr,yr=Qe.onClear,ar=Qe.mode,Er=Qe.disabled,co=Qe.loading,jo=Qe.getInputElement,Xn=Qe.getRawInputElement,Oo=Qe.open,as=Qe.defaultOpen,Eo=Qe.onDropdownVisibleChange,zn=Qe.activeValue,Gi=Qe.onActiveValueChange,wr=Qe.activeDescendantId,Dr=Qe.searchValue,Mr=Qe.autoClearSearchValue,ao=Qe.onSearch,Uo=Qe.onSearchSplit,lo=Qe.tokenSeparators,$r=Qe.allowClear,br=Qe.suffixIcon,ni=Qe.clearIcon,So=Qe.OptionList,qn=Qe.animation,Go=Qe.transitionName,Ds=Qe.dropdownStyle,qo=Qe.dropdownClassName,ea=Qe.dropdownMatchSelectWidth,Bs=Qe.dropdownRender,io=Qe.dropdownAlign,uo=Qe.placement,Yo=Qe.builtinPlacements,Qo=Qe.getPopupContainer,Zi=Qe.showAction,oe=Zi===void 0?[]:Zi,zo=Qe.onFocus,Qs=Qe.onBlur,_a=Qe.onKeyUp,hl=Qe.onKeyDown,Ka=Qe.onMouseDown,ml=(0,We.Z)(Qe,Fn),To=kn(ar),Po=(Qn!==void 0?Qn:To)||ar==="combobox",_r=(0,xn.Z)({},ml);An.forEach(function(ss){delete _r[ss]}),wn==null||wn.forEach(function(ss){delete _r[ss]});var As=It.useState(!1),da=(0,Se.Z)(As,2),Rr=da[0],jr=da[1];It.useEffect(function(){jr((0,Qt.Z)())},[]);var Li=It.useRef(null),eo=It.useRef(null),cs=It.useRef(null),Es=It.useRef(null),Rs=It.useRef(null),ho=Rt(),Cs=(0,Se.Z)(ho,3),Wa=Cs[0],_l=Cs[1],ja=Cs[2];It.useImperativeHandle(ye,function(){var ss,Ks;return{focus:(ss=Es.current)===null||ss===void 0?void 0:ss.focus,blur:(Ks=Es.current)===null||Ks===void 0?void 0:Ks.blur,scrollTo:function(Za){var ka;return(ka=Rs.current)===null||ka===void 0?void 0:ka.scrollTo(Za)}}});var ns=It.useMemo(function(){var ss;if(ar!=="combobox")return Dr;var Ks=(ss=Jn[0])===null||ss===void 0?void 0:ss.value;return typeof Ks=="string"||typeof Ks=="number"?String(Ks):""},[Dr,ar,Jn]),Nn=ar==="combobox"&&typeof jo=="function"&&jo()||null,ua=typeof Xn=="function"&&Xn(),Ac=(0,nt.x1)(eo,ua==null||(qe=ua.props)===null||qe===void 0?void 0:qe.ref),$l=It.useState(!1),nA=(0,Se.Z)($l,2),Va=nA[0],cc=nA[1];(0,ge.Z)(function(){cc(!0)},[]);var Al=(0,de.Z)(!1,{defaultValue:as,value:Oo}),fs=(0,Se.Z)(Al,2),Gs=fs[0],iA=fs[1],Do=Va?Gs:!1,Ps=!nr&&vr;(Er||Ps&&Do&&ar==="combobox")&&(Do=!1);var es=Ps?!1:Do,Sr=It.useCallback(function(ss){var Ks=ss!==void 0?ss:!Do;Er||(iA(Ks),Do!==Ks&&(Eo==null||Eo(Ks)))},[Er,Do,iA,Eo]),cl=It.useMemo(function(){return(lo||[]).some(function(ss){return[`
|
|
|
`,`\r
|
|
|
`].includes(ss)})},[lo]),dl=function(Ks,ru,Za){var ka=!0,pa=Ks;Gi==null||Gi(null);var Ws=Za?null:vn(Ks,lo);return ar!=="combobox"&&Ws&&(pa="",Uo==null||Uo(Ws),Sr(!1),ka=!1),ao&&ns!==pa&&ao(pa,{source:ru?"typing":"effect"}),ka},vu=function(Ks){!Ks||!Ks.trim()||ao(Ks,{source:"submit"})};It.useEffect(function(){!Do&&!To&&ar!=="combobox"&&dl("",!1,!1)},[Do]),It.useEffect(function(){Gs&&Er&&iA(!1),Er&&_l(!1)},[Er]);var gh=Gt(),Mh=(0,Se.Z)(gh,2),$i=Mh[0],ba=Mh[1],Ya=function(Ks){var ru=$i(),Za=Ks.which;if(Za===et.Z.ENTER&&(ar!=="combobox"&&Ks.preventDefault(),Do||Sr(!0)),ba(!!ns),Za===et.Z.BACKSPACE&&!ru&&To&&!ns&&Jn.length){for(var ka=(0,Le.Z)(Jn),pa=null,Ws=ka.length-1;Ws>=0;Ws-=1){var xa=ka[Ws];if(!xa.disabled){ka.splice(Ws,1),pa=xa;break}}pa&&Br(ka,{type:"remove",values:[pa]})}for(var ol=arguments.length,zh=new Array(ol>1?ol-1:0),Tu=1;Tu<ol;Tu++)zh[Tu-1]=arguments[Tu];if(Do&&Rs.current){var La;(La=Rs.current).onKeyDown.apply(La,[Ks].concat(zh))}hl==null||hl.apply(void 0,[Ks].concat(zh))},Ml=function(Ks){for(var ru=arguments.length,Za=new Array(ru>1?ru-1:0),ka=1;ka<ru;ka++)Za[ka-1]=arguments[ka];if(Do&&Rs.current){var pa;(pa=Rs.current).onKeyUp.apply(pa,[Ks].concat(Za))}_a==null||_a.apply(void 0,[Ks].concat(Za))},$u=function(Ks){var ru=Jn.filter(function(Za){return Za!==Ks});Br(ru,{type:"remove",values:[Ks]})},Gl=It.useRef(!1),bo=function(){_l(!0),Er||(zo&&!Gl.current&&zo.apply(void 0,arguments),oe.includes("focus")&&Sr(!0)),Gl.current=!0},ga=function(){_l(!1,function(){Gl.current=!1,Sr(!1)}),!Er&&(ns&&(ar==="tags"?ao(ns,{source:"submit"}):ar==="multiple"&&ao("",{source:"blur"})),Qs&&Qs.apply(void 0,arguments))},Ta=[];It.useEffect(function(){return function(){Ta.forEach(function(ss){return clearTimeout(ss)}),Ta.splice(0,Ta.length)}},[]);var ql=function(Ks){var ru,Za=Ks.target,ka=(ru=cs.current)===null||ru===void 0?void 0:ru.getPopupElement();if(ka&&ka.contains(Za)){var pa=setTimeout(function(){var zh=Ta.indexOf(pa);if(zh!==-1&&Ta.splice(zh,1),ja(),!Rr&&!ka.contains(document.activeElement)){var Tu;(Tu=Es.current)===null||Tu===void 0||Tu.focus()}});Ta.push(pa)}for(var Ws=arguments.length,xa=new Array(Ws>1?Ws-1:0),ol=1;ol<Ws;ol++)xa[ol-1]=arguments[ol];Ka==null||Ka.apply(void 0,[Ks].concat(xa))},Kl=It.useState({}),Iu=(0,Se.Z)(Kl,2),iu=Iu[1];function Wl(){iu({})}var Nl;ua&&(Nl=function(Ks){Sr(Ks)}),$t(function(){var ss;return[Li.current,(ss=cs.current)===null||ss===void 0?void 0:ss.getPopupElement()]},es,Sr,!!ua);var fo=It.useMemo(function(){return(0,xn.Z)((0,xn.Z)({},Qe),{},{notFoundContent:nr,open:Do,triggerOpen:es,id:li,showSearch:Po,multiple:To,toggleOpen:Sr})},[Qe,nr,es,Do,li,Po,To,Sr]),$c=!!br||co,tu;$c&&(tu=It.createElement(at,{className:ee()("".concat(Si,"-arrow"),(0,Te.Z)({},"".concat(Si,"-arrow-loading"),co)),customizeIcon:br,customizeIconProps:{loading:co,searchValue:ns,open:Do,focused:Wa,showSearch:Po}}));var kc=function(){var Ks;yr==null||yr(),(Ks=Es.current)===null||Ks===void 0||Ks.focus(),Br([],{type:"clear",values:Jn}),dl("",!1,!1)},ph=ft(Si,kc,Jn,$r,ni,Er,ns,ar),rA=ph.allowClear,Sa=ph.clearIcon,qu=It.createElement(So,{ref:Rs}),qc=ee()(Si,Fe,(Mn={},(0,Te.Z)(Mn,"".concat(Si,"-focused"),Wa),(0,Te.Z)(Mn,"".concat(Si,"-multiple"),To),(0,Te.Z)(Mn,"".concat(Si,"-single"),!To),(0,Te.Z)(Mn,"".concat(Si,"-allow-clear"),$r),(0,Te.Z)(Mn,"".concat(Si,"-show-arrow"),$c),(0,Te.Z)(Mn,"".concat(Si,"-disabled"),Er),(0,Te.Z)(Mn,"".concat(Si,"-loading"),co),(0,Te.Z)(Mn,"".concat(Si,"-open"),Do),(0,Te.Z)(Mn,"".concat(Si,"-customize-input"),Nn),(0,Te.Z)(Mn,"".concat(Si,"-show-search"),Po),Mn)),zA=It.createElement(Ct,{ref:cs,disabled:Er,prefixCls:Si,visible:es,popupElement:qu,animation:qn,transitionName:Go,dropdownStyle:Ds,dropdownClassName:qo,direction:lr,dropdownMatchSelectWidth:ea,dropdownRender:Bs,dropdownAlign:io,placement:uo,builtinPlacements:Yo,getPopupContainer:Qo,empty:vr,getTriggerDOMNode:function(){return eo.current},onPopupVisibleChange:Nl,onPopupMouseEnter:Wl},ua?It.cloneElement(ua,{ref:Ac}):It.createElement(zi,(0,Kt.Z)({},Qe,{domRef:eo,prefixCls:Si,inputElement:Nn,ref:Es,id:li,showSearch:Po,autoClearSearchValue:Mr,mode:ar,activeDescendantId:wr,tagRender:Ni,values:Jn,open:Do,onToggleOpen:Sr,activeValue:zn,searchValue:ns,onSearch:dl,onSearchSubmit:vu,onRemove:$u,tokenWithEnter:cl}))),dc;return ua?dc=zA:dc=It.createElement("div",(0,Kt.Z)({className:qc},_r,{ref:Li,onMouseDown:ql,onKeyDown:Ya,onKeyUp:Ml,onFocus:bo,onBlur:ga}),Wa&&!Do&&It.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Jn.map(function(ss){var Ks=ss.label,ru=ss.value;return["number","string"].includes((0,je.Z)(Ks))?Ks:ru}).join(", "))),zA,tu,rA&&Sa),It.createElement(vt.Provider,{value:fo},dc)}),Vn=Bn,bi=function(Qe,ye){var qe=It.useRef({values:new Map,options:new Map}),Mn=It.useMemo(function(){var Si=qe.current,Fe=Si.values,Qn=Si.options,Ni=Qe.map(function(Jn){if(Jn.label===void 0){var Br;return(0,xn.Z)((0,xn.Z)({},Jn),{},{label:(Br=Fe.get(Jn.value))===null||Br===void 0?void 0:Br.label})}return Jn}),lr=new Map,wn=new Map;return Ni.forEach(function(Jn){lr.set(Jn.value,Jn),wn.set(Jn.value,ye.get(Jn.value)||Qn.get(Jn.value))}),qe.current.values=lr,qe.current.options=wn,Ni},[Qe,ye]),li=It.useCallback(function(Si){return ye.get(Si)||qe.current.options.get(Si)},[ye]);return[Mn,li]};function Pn(Qe,ye){return ln(Qe).join("").toUpperCase().includes(ye)}var an=function(Qe,ye,qe,Mn,li){return It.useMemo(function(){if(!qe||Mn===!1)return Qe;var Si=ye.options,Fe=ye.label,Qn=ye.value,Ni=[],lr=typeof Mn=="function",wn=qe.toUpperCase(),Jn=lr?Mn:function(vr,Tr){return li?Pn(Tr[li],wn):Tr[Si]?Pn(Tr[Fe!=="children"?Fe:"label"],wn):Pn(Tr[Qn],wn)},Br=lr?function(vr){return Ge(vr)}:function(vr){return vr};return Qe.forEach(function(vr){if(vr[Si]){var Tr=Jn(qe,Br(vr));if(Tr)Ni.push(vr);else{var nr=vr[Si].filter(function(yr){return Jn(qe,Br(yr))});nr.length&&Ni.push((0,xn.Z)((0,xn.Z)({},vr),{},(0,Te.Z)({},Si,nr)))}return}Jn(qe,Br(vr))&&Ni.push(vr)}),Ni},[Qe,Mn,li,qe,ye])},ei=Yt(17115),Ui=Yt(11592),Pi=["children","value"],sr=["children"];function Or(Qe){var ye=Qe,qe=ye.key,Mn=ye.props,li=Mn.children,Si=Mn.value,Fe=(0,We.Z)(Mn,Pi);return(0,xn.Z)({key:qe,value:Si!==void 0?Si:qe,children:li},Fe)}function Ao(Qe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ui.Z)(Qe).map(function(qe,Mn){if(!It.isValidElement(qe)||!qe.type)return null;var li=qe,Si=li.type.isSelectOptGroup,Fe=li.key,Qn=li.props,Ni=Qn.children,lr=(0,We.Z)(Qn,sr);return ye||!Si?Or(qe):(0,xn.Z)((0,xn.Z)({key:"__RC_SELECT_GRP__".concat(Fe===null?Mn:Fe,"__"),label:Fe},lr),{},{options:Ao(Ni)})}).filter(function(qe){return qe})}function po(Qe,ye,qe,Mn,li){return It.useMemo(function(){var Si=Qe,Fe=!Qe;Fe&&(Si=Ao(ye));var Qn=new Map,Ni=new Map,lr=function(Br,vr,Tr){Tr&&typeof Tr=="string"&&Br.set(vr[Tr],vr)};function wn(Jn){for(var Br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vr=0;vr<Jn.length;vr+=1){var Tr=Jn[vr];!Tr[qe.options]||Br?(Qn.set(Tr[qe.value],Tr),lr(Ni,Tr,qe.label),lr(Ni,Tr,Mn),lr(Ni,Tr,li)):wn(Tr[qe.options],!0)}}return wn(Si),{options:Si,valueOptions:Qn,labelOptions:Ni}},[Qe,ye,qe,Mn,li])}function Zr(Qe){var ye=It.useRef();ye.current=Qe;var qe=It.useCallback(function(){return ye.current.apply(ye,arguments)},[]);return qe}var Ho=function(){return null};Ho.isSelectOptGroup=!0;var Co=Ho,Jr=function(){return null};Jr.isSelectOption=!0;var hr=Jr,to=Yt(80547),oo=Yt(2738),Jo=Yt(4409),Ns=It.createContext(null),ys=Ns;function Xs(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var vo=["disabled","title","children","style","className"];function jt(Qe){return typeof Qe=="string"||typeof Qe=="number"}var la=function(ye,qe){var Mn=Nt(),li=Mn.prefixCls,Si=Mn.id,Fe=Mn.open,Qn=Mn.multiple,Ni=Mn.mode,lr=Mn.searchValue,wn=Mn.toggleOpen,Jn=Mn.notFoundContent,Br=Mn.onPopupScroll,vr=It.useContext(ys),Tr=vr.flattenOptions,nr=vr.onActiveValue,yr=vr.defaultActiveFirstOption,ar=vr.onSelect,Er=vr.menuItemSelectedIcon,co=vr.rawValues,jo=vr.fieldNames,Xn=vr.virtual,Oo=vr.direction,as=vr.listHeight,Eo=vr.listItemHeight,zn="".concat(li,"-item"),Gi=(0,to.Z)(function(){return Tr},[Fe,Tr],function(io,uo){return uo[0]&&io[1]!==uo[1]}),wr=It.useRef(null),Dr=function(uo){uo.preventDefault()},Mr=function(uo){wr.current&&wr.current.scrollTo(typeof uo=="number"?{index:uo}:uo)},ao=function(uo){for(var Yo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Qo=Gi.length,Zi=0;Zi<Qo;Zi+=1){var oe=(uo+Zi*Yo+Qo)%Qo,zo=Gi[oe],Qs=zo.group,_a=zo.data;if(!Qs&&!_a.disabled)return oe}return-1},Uo=It.useState(function(){return ao(0)}),lo=(0,Se.Z)(Uo,2),$r=lo[0],br=lo[1],ni=function(uo){var Yo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;br(uo);var Qo={source:Yo?"keyboard":"mouse"},Zi=Gi[uo];if(!Zi){nr(null,-1,Qo);return}nr(Zi.value,uo,Qo)};(0,It.useEffect)(function(){ni(yr!==!1?ao(0):-1)},[Gi.length,lr]);var So=It.useCallback(function(io){return co.has(io)&&Ni!=="combobox"},[Ni,(0,Le.Z)(co).toString(),co.size]);(0,It.useEffect)(function(){var io=setTimeout(function(){if(!Qn&&Fe&&co.size===1){var Yo=Array.from(co)[0],Qo=Gi.findIndex(function(Zi){var oe=Zi.data;return oe.value===Yo});Qo!==-1&&(ni(Qo),Mr(Qo))}});if(Fe){var uo;(uo=wr.current)===null||uo===void 0||uo.scrollTo(void 0)}return function(){return clearTimeout(io)}},[Fe,lr,Tr.length]);var qn=function(uo){uo!==void 0&&ar(uo,{selected:!co.has(uo)}),Qn||wn(!1)};if(It.useImperativeHandle(qe,function(){return{onKeyDown:function(uo){var Yo=uo.which,Qo=uo.ctrlKey;switch(Yo){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var Zi=0;if(Yo===et.Z.UP?Zi=-1:Yo===et.Z.DOWN?Zi=1:Xs()&&Qo&&(Yo===et.Z.N?Zi=1:Yo===et.Z.P&&(Zi=-1)),Zi!==0){var oe=ao($r+Zi,Zi);Mr(oe),ni(oe,!0)}break}case et.Z.ENTER:{var zo=Gi[$r];zo&&!zo.data.disabled?qn(zo.value):qn(void 0),Fe&&uo.preventDefault();break}case et.Z.ESC:wn(!1),Fe&&uo.stopPropagation()}},onKeyUp:function(){},scrollTo:function(uo){Mr(uo)}}}),Gi.length===0)return It.createElement("div",{role:"listbox",id:"".concat(Si,"_list"),className:"".concat(zn,"-empty"),onMouseDown:Dr},Jn);var Go=Object.keys(jo).map(function(io){return jo[io]}),Ds=function(uo){return uo.label};function qo(io,uo){var Yo=io.group;return{role:Yo?"presentation":"option",id:"".concat(Si,"_list_").concat(uo)}}var ea=function(uo){var Yo=Gi[uo];if(!Yo)return null;var Qo=Yo.data||{},Zi=Qo.value,oe=Yo.group,zo=(0,se.Z)(Qo,!0),Qs=Ds(Yo);return Yo?It.createElement("div",(0,Kt.Z)({"aria-label":typeof Qs=="string"&&!oe?Qs:null},zo,{key:uo},qo(Yo,uo),{"aria-selected":So(Zi)}),Zi):null},Bs={role:"listbox",id:"".concat(Si,"_list")};return It.createElement(It.Fragment,null,Xn&&It.createElement("div",(0,Kt.Z)({},Bs,{style:{height:0,width:0,overflow:"hidden"}}),ea($r-1),ea($r),ea($r+1)),It.createElement(Jo.Z,{itemKey:"key",ref:wr,data:Gi,height:as,itemHeight:Eo,fullHeight:!1,onMouseDown:Dr,onScroll:Br,virtual:Xn,direction:Oo,innerProps:Xn?null:Bs},function(io,uo){var Yo,Qo=io.group,Zi=io.groupOption,oe=io.data,zo=io.label,Qs=io.value,_a=oe.key;if(Qo){var hl,Ka=(hl=oe.title)!==null&&hl!==void 0?hl:jt(zo)?zo.toString():void 0;return It.createElement("div",{className:ee()(zn,"".concat(zn,"-group")),title:Ka},zo!==void 0?zo:_a)}var ml=oe.disabled,To=oe.title,Po=oe.children,_r=oe.style,As=oe.className,da=(0,We.Z)(oe,vo),Rr=(0,oo.Z)(da,Go),jr=So(Qs),Li="".concat(zn,"-option"),eo=ee()(zn,Li,As,(Yo={},(0,Te.Z)(Yo,"".concat(Li,"-grouped"),Zi),(0,Te.Z)(Yo,"".concat(Li,"-active"),$r===uo&&!ml),(0,Te.Z)(Yo,"".concat(Li,"-disabled"),ml),(0,Te.Z)(Yo,"".concat(Li,"-selected"),jr),Yo)),cs=Ds(io),Es=!Er||typeof Er=="function"||jr,Rs=typeof cs=="number"?cs:cs||Qs,ho=jt(Rs)?Rs.toString():void 0;return To!==void 0&&(ho=To),It.createElement("div",(0,Kt.Z)({},(0,se.Z)(Rr),Xn?{}:qo(io,uo),{"aria-selected":jr,className:eo,title:ho,onMouseMove:function(){$r===uo||ml||ni(uo)},onClick:function(){ml||qn(Qs)},style:_r}),It.createElement("div",{className:"".concat(Li,"-content")},Rs),It.isValidElement(Er)||jr,Es&&It.createElement(at,{className:"".concat(zn,"-option-state"),customizeIcon:Er,customizeIconProps:{isSelected:jr}},jr?"\u2713":null))}))},os=It.forwardRef(la);os.displayName="OptionList";var _s=os;function Ss(Qe){var ye=Qe.mode,qe=Qe.options,Mn=Qe.children,li=Qe.backfill,Si=Qe.allowClear,Fe=Qe.placeholder,Qn=Qe.getInputElement,Ni=Qe.showSearch,lr=Qe.onSearch,wn=Qe.defaultOpen,Jn=Qe.autoFocus,Br=Qe.labelInValue,vr=Qe.value,Tr=Qe.inputValue,nr=Qe.optionLabelProp,yr=isMultiple(ye),ar=Ni!==void 0?Ni:yr||ye==="combobox",Er=qe||convertChildrenToData(Mn);if(warning(ye!=="tags"||Er.every(function(Oo){return!Oo.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ye==="tags"||ye==="combobox"){var co=Er.some(function(Oo){return Oo.options?Oo.options.some(function(as){return typeof("value"in as?as.value:as.key)=="number"}):typeof("value"in Oo?Oo.value:Oo.key)=="number"});warning(!co,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ye!=="combobox"||!nr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ye==="combobox"||!li,"`backfill` only works with `combobox` mode."),warning(ye==="combobox"||!Qn,"`getInputElement` only work with `combobox` mode."),noteOnce(ye!=="combobox"||!Qn||!Si||!Fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),lr&&!ar&&ye!=="combobox"&&ye!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!wn||Jn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),vr!=null){var jo=toArray(vr);warning(!Br||jo.every(function(Oo){return _typeof(Oo)==="object"&&("key"in Oo||"value"in Oo)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!yr||Array.isArray(vr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Mn){var Xn=null;toNodeArray(Mn).some(function(Oo){if(!React.isValidElement(Oo)||!Oo.type)return!1;var as=Oo,Eo=as.type;if(Eo.isSelectOption)return!1;if(Eo.isSelectOptGroup){var zn=toNodeArray(Oo.props.children).every(function(Gi){return!React.isValidElement(Gi)||!Oo.type||Gi.type.isSelectOption?!0:(Xn=Gi.type,!1)});return!zn}return Xn=Eo,!0}),Xn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Xn.displayName||Xn.name||Xn,"`.")),warning(Tr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ca(Qe,ye){if(Qe){var qe=function Mn(li){for(var Si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe=0;Fe<li.length;Fe++){var Qn=li[Fe];if(Qn[ye==null?void 0:ye.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Si&&Array.isArray(Qn[ye==null?void 0:ye.options])&&Mn(Qn[ye==null?void 0:ye.options],!0))break}};qe(Qe)}}var fa=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"],Fr=["inputValue"];function dn(Qe){return!Qe||(0,je.Z)(Qe)!=="object"}var nn=It.forwardRef(function(Qe,ye){var qe=Qe.id,Mn=Qe.mode,li=Qe.prefixCls,Si=li===void 0?"rc-select":li,Fe=Qe.backfill,Qn=Qe.fieldNames,Ni=Qe.inputValue,lr=Qe.searchValue,wn=Qe.onSearch,Jn=Qe.autoClearSearchValue,Br=Jn===void 0?!0:Jn,vr=Qe.onSelect,Tr=Qe.onDeselect,nr=Qe.dropdownMatchSelectWidth,yr=nr===void 0?!0:nr,ar=Qe.filterOption,Er=Qe.filterSort,co=Qe.optionFilterProp,jo=Qe.optionLabelProp,Xn=Qe.options,Oo=Qe.children,as=Qe.defaultActiveFirstOption,Eo=Qe.menuItemSelectedIcon,zn=Qe.virtual,Gi=Qe.direction,wr=Qe.listHeight,Dr=wr===void 0?200:wr,Mr=Qe.listItemHeight,ao=Mr===void 0?20:Mr,Uo=Qe.value,lo=Qe.defaultValue,$r=Qe.labelInValue,br=Qe.onChange,ni=(0,We.Z)(Qe,Pr),So=(0,ei.ZP)(qe),qn=kn(Mn),Go=!!(!Xn&&Oo),Ds=It.useMemo(function(){return ar===void 0&&Mn==="combobox"?!1:ar},[ar,Mn]),qo=It.useMemo(function(){return Mt(Qn,Go)},[JSON.stringify(Qn),Go]),ea=(0,de.Z)("",{value:lr!==void 0?lr:Ni,postState:function(Ps){return Ps||""}}),Bs=(0,Se.Z)(ea,2),io=Bs[0],uo=Bs[1],Yo=po(Xn,Oo,qo,co,jo),Qo=Yo.valueOptions,Zi=Yo.labelOptions,oe=Yo.options,zo=It.useCallback(function(Do){var Ps=ln(Do);return Ps.map(function(es){var Sr,cl,dl,vu,gh;if(dn(es))Sr=es;else{var Mh;dl=es.key,cl=es.label,Sr=(Mh=es.value)!==null&&Mh!==void 0?Mh:dl}var $i=Qo.get(Sr);if($i){var ba;if(cl===void 0&&(cl=$i==null?void 0:$i[jo||qo.label]),dl===void 0&&(dl=(ba=$i==null?void 0:$i.key)!==null&&ba!==void 0?ba:Sr),vu=$i==null?void 0:$i.disabled,gh=$i==null?void 0:$i.title,0)var Ya}return{label:cl,value:Sr,key:dl,disabled:vu,title:gh}})},[qo,jo,Qo]),Qs=(0,de.Z)(lo,{value:Uo}),_a=(0,Se.Z)(Qs,2),hl=_a[0],Ka=_a[1],ml=It.useMemo(function(){var Do,Ps=zo(hl);return Mn==="combobox"&&sn((Do=Ps[0])===null||Do===void 0?void 0:Do.value)?[]:Ps},[hl,zo,Mn]),To=bi(ml,Qo),Po=(0,Se.Z)(To,2),_r=Po[0],As=Po[1],da=It.useMemo(function(){if(!Mn&&_r.length===1){var Do=_r[0];if(Do.value===null&&(Do.label===null||Do.label===void 0))return[]}return _r.map(function(Ps){var es;return(0,xn.Z)((0,xn.Z)({},Ps),{},{label:(es=Ps.label)!==null&&es!==void 0?es:Ps.value})})},[Mn,_r]),Rr=It.useMemo(function(){return new Set(_r.map(function(Do){return Do.value}))},[_r]);It.useEffect(function(){if(Mn==="combobox"){var Do,Ps=(Do=_r[0])===null||Do===void 0?void 0:Do.value;uo(Kn(Ps)?String(Ps):"")}},[_r]);var jr=Zr(function(Do,Ps){var es,Sr=Ps!=null?Ps:Do;return es={},(0,Te.Z)(es,qo.value,Do),(0,Te.Z)(es,qo.label,Sr),es}),Li=It.useMemo(function(){if(Mn!=="tags")return oe;var Do=(0,Le.Z)(oe),Ps=function(Sr){return Qo.has(Sr)};return(0,Le.Z)(_r).sort(function(es,Sr){return es.value<Sr.value?-1:1}).forEach(function(es){var Sr=es.value;Ps(Sr)||Do.push(jr(Sr,es.label))}),Do},[jr,oe,Qo,_r,Mn]),eo=an(Li,qo,io,Ds,co),cs=It.useMemo(function(){return Mn!=="tags"||!io||eo.some(function(Do){return Do[co||"value"]===io})||eo.some(function(Do){return Do[qo.value]===io})?eo:[jr(io)].concat((0,Le.Z)(eo))},[jr,co,Mn,eo,io,qo]),Es=It.useMemo(function(){return Er?(0,Le.Z)(cs).sort(function(Do,Ps){return Er(Do,Ps)}):cs},[cs,Er]),Rs=It.useMemo(function(){return be(Es,{fieldNames:qo,childrenAsData:Go})},[Es,qo,Go]),ho=function(Ps){var es=zo(Ps);if(Ka(es),br&&(es.length!==_r.length||es.some(function(dl,vu){var gh;return((gh=_r[vu])===null||gh===void 0?void 0:gh.value)!==(dl==null?void 0:dl.value)}))){var Sr=$r?es:es.map(function(dl){return dl.value}),cl=es.map(function(dl){return Ge(As(dl.value))});br(qn?Sr:Sr[0],qn?cl:cl[0])}},Cs=It.useState(null),Wa=(0,Se.Z)(Cs,2),_l=Wa[0],ja=Wa[1],ns=It.useState(0),Nn=(0,Se.Z)(ns,2),ua=Nn[0],Ac=Nn[1],$l=as!==void 0?as:Mn!=="combobox",nA=It.useCallback(function(Do,Ps){var es=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Sr=es.source,cl=Sr===void 0?"keyboard":Sr;Ac(Ps),Fe&&Mn==="combobox"&&Do!==null&&cl==="keyboard"&&ja(String(Do))},[Fe,Mn]),Va=function(Ps,es,Sr){var cl=function(){var Gl,bo=As(Ps);return[$r?{label:bo==null?void 0:bo[qo.label],value:Ps,key:(Gl=bo==null?void 0:bo.key)!==null&&Gl!==void 0?Gl:Ps}:Ps,Ge(bo)]};if(es&&vr){var dl=cl(),vu=(0,Se.Z)(dl,2),gh=vu[0],Mh=vu[1];vr(gh,Mh)}else if(!es&&Tr&&Sr!=="clear"){var $i=cl(),ba=(0,Se.Z)($i,2),Ya=ba[0],Ml=ba[1];Tr(Ya,Ml)}},cc=Zr(function(Do,Ps){var es,Sr=qn?Ps.selected:!0;Sr?es=qn?[].concat((0,Le.Z)(_r),[Do]):[Do]:es=_r.filter(function(cl){return cl.value!==Do}),ho(es),Va(Do,Sr),Mn==="combobox"?ja(""):(!kn||Br)&&(uo(""),ja(""))}),Al=function(Ps,es){ho(Ps);var Sr=es.type,cl=es.values;(Sr==="remove"||Sr==="clear")&&cl.forEach(function(dl){Va(dl.value,!1,Sr)})},fs=function(Ps,es){if(uo(Ps),ja(null),es.source==="submit"){var Sr=(Ps||"").trim();if(Sr){var cl=Array.from(new Set([].concat((0,Le.Z)(Rr),[Sr])));ho(cl),Va(Sr,!0),uo("")}return}es.source!=="blur"&&(Mn==="combobox"&&ho(Ps),wn==null||wn(Ps))},Gs=function(Ps){var es=Ps;Mn!=="tags"&&(es=Ps.map(function(cl){var dl=Zi.get(cl);return dl==null?void 0:dl.value}).filter(function(cl){return cl!==void 0}));var Sr=Array.from(new Set([].concat((0,Le.Z)(Rr),(0,Le.Z)(es))));ho(Sr),Sr.forEach(function(cl){Va(cl,!0)})},iA=It.useMemo(function(){var Do=zn!==!1&&yr!==!1;return(0,xn.Z)((0,xn.Z)({},Yo),{},{flattenOptions:Rs,onActiveValue:nA,defaultActiveFirstOption:$l,onSelect:cc,menuItemSelectedIcon:Eo,rawValues:Rr,fieldNames:qo,virtual:Do,direction:Gi,listHeight:Dr,listItemHeight:ao,childrenAsData:Go})},[Yo,Rs,nA,$l,cc,Eo,Rr,qo,zn,yr,Dr,ao,Go]);return It.createElement(ys.Provider,{value:iA},It.createElement(Vn,(0,Kt.Z)({},ni,{id:So,prefixCls:Si,ref:ye,omitDomProps:Fr,mode:Mn,displayValues:da,onDisplayValuesChange:Al,direction:Gi,searchValue:io,onSearch:fs,autoClearSearchValue:Br,onSearchSplit:Gs,dropdownMatchSelectWidth:yr,OptionList:_s,emptyOptions:!Rs.length,activeValue:_l,activeDescendantId:"".concat(So,"_list_").concat(ua)})))}),he=nn;he.Option=hr,he.OptGroup=Co;var Un=he,Yn=Un},9296:function(Ci,Ii,Yt){"use strict";Yt.r(Ii),Yt.d(Ii,{ResizableTextArea:function(){return Xe},default:function(){return sn}});var Kt=Yt(92413),Le=Yt(33708),Te=Yt(400),xn=Yt(39559),Se=Yt(33606),We=Yt(37061),je=Yt(26407),de=Yt(92310),ve=Yt.n(de),It=Yt(93681),xe=Yt(5643),ee=Yt(18929),ge=Yt(59301),Qt=Yt(29301),et=Yt(34280),nt=Yt(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 Nt(gn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe=gn.getAttribute("id")||gn.getAttribute("data-reactid")||gn.getAttribute("name");if(pn&&ft[fe])return ft[fe];var Zt=window.getComputedStyle(gn),Ye=Zt.getPropertyValue("box-sizing")||Zt.getPropertyValue("-moz-box-sizing")||Zt.getPropertyValue("-webkit-box-sizing"),Gn=parseFloat(Zt.getPropertyValue("padding-bottom"))+parseFloat(Zt.getPropertyValue("padding-top")),ri=parseFloat(Zt.getPropertyValue("border-bottom-width"))+parseFloat(Zt.getPropertyValue("border-top-width")),cn=at.map(function(Wn){return"".concat(Wn,":").concat(Zt.getPropertyValue(Wn))}).join(";"),In={sizingStyle:cn,paddingSize:Gn,borderSize:ri,boxSizing:Ye};return pn&&fe&&(ft[fe]=In),In}function Rt(gn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Zt=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)),gn.getAttribute("wrap")?vt.setAttribute("wrap",gn.getAttribute("wrap")):vt.removeAttribute("wrap");var Ye=Nt(gn,pn),Gn=Ye.paddingSize,ri=Ye.borderSize,cn=Ye.boxSizing,In=Ye.sizingStyle;vt.setAttribute("style","".concat(In,";").concat(ht)),vt.value=gn.value||gn.placeholder||"";var Wn=void 0,xi=void 0,pi,zi=vt.scrollHeight;if(cn==="border-box"?zi+=ri:cn==="content-box"&&(zi-=Gn),fe!==null||Zt!==null){vt.value=" ";var Ie=vt.scrollHeight-Gn;fe!==null&&(Wn=Ie*fe,cn==="border-box"&&(Wn=Wn+Gn+ri),zi=Math.max(Wn,zi)),Zt!==null&&(xi=Ie*Zt,cn==="border-box"&&(xi=xi+Gn+ri),pi=zi>xi?"":"hidden",zi=Math.min(xi,zi))}var Ai={height:zi,overflowY:pi,resize:"none"};return Wn&&(Ai.minHeight=Wn),xi&&(Ai.maxHeight=xi),Ai}var Gt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$t=0,se=1,me=2,ce=ge.forwardRef(function(gn,pn){var fe=gn,Zt=fe.prefixCls,Ye=fe.onPressEnter,Gn=fe.defaultValue,ri=fe.value,cn=fe.autoSize,In=fe.onResize,Wn=fe.className,xi=fe.style,pi=fe.disabled,zi=fe.onChange,Ie=fe.onInternalAutoSize,Ai=(0,We.Z)(fe,Gt),Ti=(0,ee.Z)(Gn,{value:ri,postState:function(Co){return Co!=null?Co:""}}),ue=(0,Se.Z)(Ti,2),Tt=ue[0],Ct=ue[1],zt=function(Co){Ct(Co.target.value),zi==null||zi(Co)},Ht=ge.useRef();ge.useImperativeHandle(pn,function(){return{textArea:Ht.current}});var Mt=ge.useMemo(function(){return cn&&(0,xn.Z)(cn)==="object"?[cn.minRows,cn.maxRows]:[]},[cn]),be=(0,Se.Z)(Mt,2),Ge=be[0],vn=be[1],Fn=!!cn,An=function(){try{if(document.activeElement===Ht.current){var Co=Ht.current,Jr=Co.selectionStart,hr=Co.selectionEnd,to=Co.scrollTop;Ht.current.setSelectionRange(Jr,hr),Ht.current.scrollTop=to}}catch(oo){}},kn=ge.useState(me),Bn=(0,Se.Z)(kn,2),Vn=Bn[0],bi=Bn[1],Pn=ge.useState(),an=(0,Se.Z)(Pn,2),ei=an[0],Ui=an[1],Pi=function(){bi($t)};(0,et.Z)(function(){Fn&&Pi()},[ri,Ge,vn,Fn]),(0,et.Z)(function(){if(Vn===$t)bi(se);else if(Vn===se){var Ho=Rt(Ht.current,!1,Ge,vn);bi(me),Ui(Ho)}else An()},[Vn]);var sr=ge.useRef(),Or=function(){nt.Z.cancel(sr.current)},Ao=function(Co){Vn===me&&(In==null||In(Co),cn&&(Or(),sr.current=(0,nt.Z)(function(){Pi()})))};ge.useEffect(function(){return Or},[]);var po=Fn?ei:null,Zr=(0,Le.Z)((0,Le.Z)({},xi),po);return(Vn===$t||Vn===se)&&(Zr.overflowY="hidden",Zr.overflowX="hidden"),ge.createElement(Qt.Z,{onResize:Ao,disabled:!(cn||In)},ge.createElement("textarea",(0,Kt.Z)({},Ai,{ref:Ht,style:Zr,className:ve()(Zt,Wn,(0,Te.Z)({},"".concat(Zt,"-disabled"),pi)),disabled:pi,value:Tt,onChange:zt})))}),Xe=ce,De=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ln(gn,pn){return(0,je.Z)(gn||"").slice(0,pn).join("")}function Oe(gn,pn,fe,Zt){var Ye=fe;return gn?Ye=ln(fe,Zt):(0,je.Z)(pn||"").length<fe.length&&(0,je.Z)(fe||"").length>Zt&&(Ye=pn),Ye}var mn=ge.forwardRef(function(gn,pn){var fe,Zt=gn.defaultValue,Ye=gn.value,Gn=gn.onFocus,ri=gn.onBlur,cn=gn.onChange,In=gn.allowClear,Wn=gn.maxLength,xi=gn.onCompositionStart,pi=gn.onCompositionEnd,zi=gn.suffix,Ie=gn.prefixCls,Ai=Ie===void 0?"rc-textarea":Ie,Ti=gn.classes,ue=gn.showCount,Tt=gn.className,Ct=gn.style,zt=gn.disabled,Ht=gn.hidden,Mt=gn.classNames,be=gn.styles,Ge=gn.onResize,vn=(0,We.Z)(gn,De),Fn=(0,ee.Z)(Zt,{value:Ye,defaultValue:Zt}),An=(0,Se.Z)(Fn,2),kn=An[0],Bn=An[1],Vn=(0,ge.useRef)(null),bi=ge.useState(!1),Pn=(0,Se.Z)(bi,2),an=Pn[0],ei=Pn[1],Ui=ge.useState(!1),Pi=(0,Se.Z)(Ui,2),sr=Pi[0],Or=Pi[1],Ao=ge.useRef(),po=ge.useRef(0),Zr=ge.useState(null),Ho=(0,Se.Z)(Zr,2),Co=Ho[0],Jr=Ho[1],hr=function(){var dn;(dn=Vn.current)===null||dn===void 0||dn.textArea.focus()};(0,ge.useImperativeHandle)(pn,function(){return{resizableTextArea:Vn.current,focus:hr,blur:function(){var dn;(dn=Vn.current)===null||dn===void 0||dn.textArea.blur()}}}),(0,ge.useEffect)(function(){ei(function(Fr){return!zt&&Fr})},[zt]);var to=Number(Wn)>0,oo=function(dn){Or(!0),Ao.current=kn,po.current=dn.currentTarget.selectionStart,xi==null||xi(dn)},Jo=function(dn){Or(!1);var nn=dn.currentTarget.value;if(to){var he,Un=po.current>=Wn+1||po.current===((he=Ao.current)===null||he===void 0?void 0:he.length);nn=Oe(Un,Ao.current,nn,Wn)}nn!==kn&&(Bn(nn),(0,xe.rJ)(dn.currentTarget,dn,cn,nn)),pi==null||pi(dn)},Ns=function(dn){var nn=dn.target.value;if(!sr&&to){var he=dn.target.selectionStart>=Wn+1||dn.target.selectionStart===nn.length||!dn.target.selectionStart;nn=Oe(he,kn,nn,Wn)}Bn(nn),(0,xe.rJ)(dn.currentTarget,dn,cn,nn)},ys=function(dn){var nn=vn.onPressEnter,he=vn.onKeyDown;dn.key==="Enter"&&nn&&nn(dn),he==null||he(dn)},Xs=function(dn){ei(!0),Gn==null||Gn(dn)},vo=function(dn){ei(!1),ri==null||ri(dn)},jt=function(dn){var nn;Bn(""),hr(),(0,xe.rJ)((nn=Vn.current)===null||nn===void 0?void 0:nn.textArea,dn,cn)},la=(0,xe.D7)(kn);!sr&&to&&Ye==null&&(la=ln(la,Wn));var os=zi,_s;if(ue){var Ss=(0,je.Z)(la).length;(0,xn.Z)(ue)==="object"?_s=ue.formatter({value:la,count:Ss,maxLength:Wn}):_s="".concat(Ss).concat(to?" / ".concat(Wn):""),os=ge.createElement(ge.Fragment,null,os,ge.createElement("span",{className:ve()("".concat(Ai,"-data-count"),Mt==null?void 0:Mt.count),style:be==null?void 0:be.count},_s))}var ca=function(dn){var nn;Ge==null||Ge(dn),(nn=Vn.current)!==null&&nn!==void 0&&nn.textArea.style.height&&Jr(!0)},fa=!vn.autoSize&&!ue&&!In,Pr=ge.createElement(It.BaseInput,{value:la,allowClear:In,handleReset:jt,suffix:os,prefixCls:Ai,classes:{affixWrapper:ve()(Ti==null?void 0:Ti.affixWrapper,(fe={},(0,Te.Z)(fe,"".concat(Ai,"-show-count"),ue),(0,Te.Z)(fe,"".concat(Ai,"-textarea-allow-clear"),In),fe))},disabled:zt,focused:an,className:Tt,style:(0,Le.Z)((0,Le.Z)({},Ct),Co&&!fa?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _s=="string"?_s:void 0}},hidden:Ht,inputElement:ge.createElement(Xe,(0,Kt.Z)({},vn,{onKeyDown:ys,onChange:Ns,onFocus:Xs,onBlur:vo,onCompositionStart:oo,onCompositionEnd:Jo,className:Mt==null?void 0:Mt.textarea,style:(0,Le.Z)((0,Le.Z)({},be==null?void 0:be.textarea),{},{resize:Ct==null?void 0:Ct.resize}),disabled:zt,prefixCls:Ai,onResize:ca,ref:Vn}))});return Pr}),Kn=mn,sn=Kn},4409:function(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return ue}});var Kt=Yt(92413),Le=Yt(39559),Te=Yt(33708),xn=Yt(400),Se=Yt(33606),We=Yt(37061),je=Yt(92310),de=Yt.n(je),ve=Yt(29301),It=Yt(70425),xe=Yt(34280),ee=Yt(59301),ge=Yt(4676),Qt=ee.forwardRef(function(Tt,Ct){var zt=Tt.height,Ht=Tt.offsetY,Mt=Tt.offsetX,be=Tt.children,Ge=Tt.prefixCls,vn=Tt.onInnerResize,Fn=Tt.innerProps,An=Tt.rtl,kn=Tt.extra,Bn={},Vn={display:"flex",flexDirection:"column"};return Ht!==void 0&&(Bn={height:zt,position:"relative",overflow:"hidden"},Vn=(0,Te.Z)((0,Te.Z)({},Vn),{},(0,xn.Z)((0,xn.Z)((0,xn.Z)((0,xn.Z)((0,xn.Z)({transform:"translateY(".concat(Ht,"px)")},An?"marginRight":"marginLeft",-Mt),"position","absolute"),"left",0),"right",0),"top",0))),ee.createElement("div",{style:Bn},ee.createElement(ve.Z,{onResize:function(Pn){var an=Pn.offsetHeight;an&&vn&&vn()}},ee.createElement("div",(0,Kt.Z)({style:Vn,className:de()((0,xn.Z)({},"".concat(Ge,"-holder-inner"),Ge)),ref:Ct},Fn),be,kn)))});Qt.displayName="Filler";var et=Qt;function nt(Tt){var Ct=Tt.children,zt=Tt.setRef,Ht=ee.useCallback(function(Mt){zt(Mt)},[]);return ee.cloneElement(Ct,{ref:Ht})}function ht(Tt,Ct,zt,Ht,Mt,be,Ge,vn){var Fn=vn.getKey;return Tt.slice(Ct,zt+1).map(function(An,kn){var Bn=Ct+kn,Vn=Ge(An,Bn,{style:{width:Ht},offsetX:Mt}),bi=Fn(An);return ee.createElement(nt,{key:bi,setRef:function(an){return be(An,an)}},Vn)})}function at(Tt,Ct,zt,Ht){var Mt=zt-Tt,be=Ct-zt,Ge=Math.min(Mt,be)*2;if(Ht<=Ge){var vn=Math.floor(Ht/2);return Ht%2?zt+vn+1:zt-vn}return Mt>be?zt-(Ht-be):zt+(Ht-Mt)}function ft(Tt,Ct,zt){var Ht=Tt.length,Mt=Ct.length,be,Ge;if(Ht===0&&Mt===0)return null;Ht<Mt?(be=Tt,Ge=Ct):(be=Ct,Ge=Tt);var vn={__EMPTY_ITEM__:!0};function Fn(Pn){return Pn!==void 0?zt(Pn):vn}for(var An=null,kn=Math.abs(Ht-Mt)!==1,Bn=0;Bn<Ge.length;Bn+=1){var Vn=Fn(be[Bn]),bi=Fn(Ge[Bn]);if(Vn!==bi){An=Bn,kn=kn||Vn!==Fn(Ge[Bn+1]);break}}return An===null?null:{index:An,multiple:kn}}function vt(Tt,Ct,zt){var Ht=ee.useState(Tt),Mt=(0,Se.Z)(Ht,2),be=Mt[0],Ge=Mt[1],vn=ee.useState(null),Fn=(0,Se.Z)(vn,2),An=Fn[0],kn=Fn[1];return ee.useEffect(function(){var Bn=ft(be||[],Tt||[],Ct);(Bn==null?void 0:Bn.index)!==void 0&&(zt==null||zt(Bn.index),kn(Tt[Bn.index])),Ge(Tt)},[Tt]),[An]}var Nt=Yt(16089),Rt=(typeof navigator=="undefined"?"undefined":(0,Le.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Gt=Rt,$t=function(Tt,Ct,zt,Ht){var Mt=(0,ee.useRef)(!1),be=(0,ee.useRef)(null);function Ge(){clearTimeout(be.current),Mt.current=!0,be.current=setTimeout(function(){Mt.current=!1},50)}var vn=(0,ee.useRef)({top:Tt,bottom:Ct,left:zt,right:Ht});return vn.current.top=Tt,vn.current.bottom=Ct,vn.current.left=zt,vn.current.right=Ht,function(Fn,An){var kn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Bn=Fn?An<0&&vn.current.left||An>0&&vn.current.right:An<0&&vn.current.top||An>0&&vn.current.bottom;return kn&&Bn?(clearTimeout(be.current),Mt.current=!1):(!Bn||Mt.current)&&Ge(),!Mt.current&&Bn}};function se(Tt,Ct,zt,Ht,Mt,be,Ge){var vn=(0,ee.useRef)(0),Fn=(0,ee.useRef)(null),An=(0,ee.useRef)(null),kn=(0,ee.useRef)(!1),Bn=$t(Ct,zt,Ht,Mt);function Vn(Pi,sr){if(Nt.Z.cancel(Fn.current),!Bn(!1,sr)){var Or=Pi;if(!Or._virtualHandled)Or._virtualHandled=!0;else return;vn.current+=sr,An.current=sr,Gt||Or.preventDefault(),Fn.current=(0,Nt.Z)(function(){var Ao=kn.current?10:1;Ge(vn.current*Ao,!1),vn.current=0})}}function bi(Pi,sr){Ge(sr,!0),Gt||Pi.preventDefault()}var Pn=(0,ee.useRef)(null),an=(0,ee.useRef)(null);function ei(Pi){if(Tt){Nt.Z.cancel(an.current),an.current=(0,Nt.Z)(function(){Pn.current=null},2);var sr=Pi.deltaX,Or=Pi.deltaY,Ao=Pi.shiftKey,po=sr,Zr=Or;(Pn.current==="sx"||!Pn.current&&Ao&&Or&&!sr)&&(po=Or,Zr=0,Pn.current="sx");var Ho=Math.abs(po),Co=Math.abs(Zr);Pn.current===null&&(Pn.current=be&&Ho>Co?"x":"y"),Pn.current==="y"?Vn(Pi,Zr):bi(Pi,po)}}function Ui(Pi){Tt&&(kn.current=Pi.detail===An.current)}return[ei,Ui]}function me(Tt,Ct,zt,Ht){var Mt=ee.useMemo(function(){return[new Map,[]]},[Tt,zt.id,Ht]),be=(0,Se.Z)(Mt,2),Ge=be[0],vn=be[1],Fn=function(kn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kn,Vn=Ge.get(kn),bi=Ge.get(Bn);if(Vn===void 0||bi===void 0)for(var Pn=Tt.length,an=vn.length;an<Pn;an+=1){var ei,Ui=Tt[an],Pi=Ct(Ui);Ge.set(Pi,an);var sr=(ei=zt.get(Pi))!==null&&ei!==void 0?ei:Ht;if(vn[an]=(vn[an-1]||0)+sr,Pi===kn&&(Vn=an),Pi===Bn&&(bi=an),Vn!==void 0&&bi!==void 0)break}return{top:vn[Vn-1]||0,bottom:vn[bi]}};return Fn}var ce=Yt(76846),Xe=Yt(6909),De=Yt(4771),ln=function(){function Tt(){(0,Xe.Z)(this,Tt),(0,xn.Z)(this,"maps",void 0),(0,xn.Z)(this,"id",0),(0,xn.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,De.Z)(Tt,[{key:"set",value:function(zt,Ht){this.maps[zt]=Ht,this.id+=1,this.diffKeys.add(zt)}},{key:"get",value:function(zt){return this.maps[zt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Tt}(),Oe=ln;function mn(Tt){var Ct=parseFloat(Tt);return isNaN(Ct)?0:Ct}function Kn(Tt,Ct,zt){var Ht=ee.useState(0),Mt=(0,Se.Z)(Ht,2),be=Mt[0],Ge=Mt[1],vn=(0,ee.useRef)(new Map),Fn=(0,ee.useRef)(new Oe),An=(0,ee.useRef)(0);function kn(){An.current+=1}function Bn(){var bi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;kn();var Pn=function(){var Ui=!1;vn.current.forEach(function(Pi,sr){if(Pi&&Pi.offsetParent){var Or=(0,ce.ZP)(Pi),Ao=Or.offsetHeight,po=getComputedStyle(Or),Zr=po.marginTop,Ho=po.marginBottom,Co=mn(Zr),Jr=mn(Ho),hr=Ao+Co+Jr;Fn.current.get(sr)!==hr&&(Fn.current.set(sr,hr),Ui=!0)}}),Ui&&Ge(function(Pi){return Pi+1})};if(bi)Pn();else{An.current+=1;var an=An.current;Promise.resolve().then(function(){an===An.current&&Pn()})}}function Vn(bi,Pn){var an=Tt(bi),ei=vn.current.get(an);Pn?(vn.current.set(an,Pn),Bn()):vn.current.delete(an),!ei!=!Pn&&(Pn?Ct==null||Ct(bi):zt==null||zt(bi))}return(0,ee.useEffect)(function(){return kn},[]),[Vn,Bn,Fn.current,be]}var sn=14/15;function gn(Tt,Ct,zt){var Ht=(0,ee.useRef)(!1),Mt=(0,ee.useRef)(0),be=(0,ee.useRef)(0),Ge=(0,ee.useRef)(null),vn=(0,ee.useRef)(null),Fn,An=function(bi){if(Ht.current){var Pn=Math.ceil(bi.touches[0].pageX),an=Math.ceil(bi.touches[0].pageY),ei=Mt.current-Pn,Ui=be.current-an,Pi=Math.abs(ei)>Math.abs(Ui);Pi?Mt.current=Pn:be.current=an;var sr=zt(Pi,Pi?ei:Ui,!1,bi);sr&&bi.preventDefault(),clearInterval(vn.current),sr&&(vn.current=setInterval(function(){Pi?ei*=sn:Ui*=sn;var Or=Math.floor(Pi?ei:Ui);(!zt(Pi,Or,!0)||Math.abs(Or)<=.1)&&clearInterval(vn.current)},16))}},kn=function(){Ht.current=!1,Fn()},Bn=function(bi){Fn(),bi.touches.length===1&&!Ht.current&&(Ht.current=!0,Mt.current=Math.ceil(bi.touches[0].pageX),be.current=Math.ceil(bi.touches[0].pageY),Ge.current=bi.target,Ge.current.addEventListener("touchmove",An,{passive:!1}),Ge.current.addEventListener("touchend",kn,{passive:!0}))};Fn=function(){Ge.current&&(Ge.current.removeEventListener("touchmove",An),Ge.current.removeEventListener("touchend",kn))},(0,xe.Z)(function(){return Tt&&Ct.current.addEventListener("touchstart",Bn,{passive:!0}),function(){var Vn;(Vn=Ct.current)===null||Vn===void 0||Vn.removeEventListener("touchstart",Bn),Fn(),clearInterval(vn.current)}},[Tt])}function pn(Tt){return Math.floor(Math.pow(Tt,.5))}function fe(Tt,Ct){var zt="touches"in Tt?Tt.touches[0]:Tt;return zt[Ct?"pageX":"pageY"]-window[Ct?"scrollX":"scrollY"]}function Zt(Tt,Ct,zt){ee.useEffect(function(){var Ht=Ct.current;if(Tt&&Ht){var Mt=!1,be,Ge,vn=function(){Nt.Z.cancel(be)},Fn=function Vn(){vn(),be=(0,Nt.Z)(function(){zt(Ge),Vn()})},An=function(bi){if(!bi.target.draggable){var Pn=bi;Pn._virtualHandled||(Pn._virtualHandled=!0,Mt=!0)}},kn=function(){Mt=!1,vn()},Bn=function(bi){if(Mt){var Pn=fe(bi,!1),an=Ht.getBoundingClientRect(),ei=an.top,Ui=an.bottom;if(Pn<=ei){var Pi=ei-Pn;Ge=-pn(Pi),Fn()}else if(Pn>=Ui){var sr=Pn-Ui;Ge=pn(sr),Fn()}else vn()}};return Ht.addEventListener("mousedown",An),Ht.ownerDocument.addEventListener("mouseup",kn),Ht.ownerDocument.addEventListener("mousemove",Bn),function(){Ht.removeEventListener("mousedown",An),Ht.ownerDocument.removeEventListener("mouseup",kn),Ht.ownerDocument.removeEventListener("mousemove",Bn),vn()}}},[Tt])}var Ye=10;function Gn(Tt,Ct,zt,Ht,Mt,be,Ge,vn){var Fn=ee.useRef(),An=ee.useState(null),kn=(0,Se.Z)(An,2),Bn=kn[0],Vn=kn[1];return(0,xe.Z)(function(){if(Bn&&Bn.times<Ye){if(!Tt.current){Vn(function(jt){return(0,Te.Z)({},jt)});return}be();var bi=Bn.targetAlign,Pn=Bn.originAlign,an=Bn.index,ei=Bn.offset,Ui=Tt.current.clientHeight,Pi=!1,sr=bi,Or=null;if(Ui){for(var Ao=bi||Pn,po=0,Zr=0,Ho=0,Co=Math.min(Ct.length-1,an),Jr=0;Jr<=Co;Jr+=1){var hr=Mt(Ct[Jr]);Zr=po;var to=zt.get(hr);Ho=Zr+(to===void 0?Ht:to),po=Ho}for(var oo=Ao==="top"?ei:Ui-ei,Jo=Co;Jo>=0;Jo-=1){var Ns=Mt(Ct[Jo]),ys=zt.get(Ns);if(ys===void 0){Pi=!0;break}if(oo-=ys,oo<=0)break}switch(Ao){case"top":Or=Zr-ei;break;case"bottom":Or=Ho-Ui+ei;break;default:{var Xs=Tt.current.scrollTop,vo=Xs+Ui;Zr<Xs?sr="top":Ho>vo&&(sr="bottom")}}Or!==null&&Ge(Or),Or!==Bn.lastTop&&(Pi=!0)}Pi&&Vn((0,Te.Z)((0,Te.Z)({},Bn),{},{times:Bn.times+1,targetAlign:sr,lastTop:Or}))}},[Bn,Tt.current]),function(bi){if(bi==null){vn();return}if(Nt.Z.cancel(Fn.current),typeof bi=="number")Ge(bi);else if(bi&&(0,Le.Z)(bi)==="object"){var Pn,an=bi.align;"index"in bi?Pn=bi.index:Pn=Ct.findIndex(function(Pi){return Mt(Pi)===bi.key});var ei=bi.offset,Ui=ei===void 0?0:ei;Vn({times:0,index:Pn,offset:Ui,originAlign:an})}}}var ri=ee.forwardRef(function(Tt,Ct){var zt=Tt.prefixCls,Ht=Tt.rtl,Mt=Tt.scrollOffset,be=Tt.scrollRange,Ge=Tt.onStartMove,vn=Tt.onStopMove,Fn=Tt.onScroll,An=Tt.horizontal,kn=Tt.spinSize,Bn=Tt.containerSize,Vn=Tt.style,bi=Tt.thumbStyle,Pn=Tt.showScrollBar,an=ee.useState(!1),ei=(0,Se.Z)(an,2),Ui=ei[0],Pi=ei[1],sr=ee.useState(null),Or=(0,Se.Z)(sr,2),Ao=Or[0],po=Or[1],Zr=ee.useState(null),Ho=(0,Se.Z)(Zr,2),Co=Ho[0],Jr=Ho[1],hr=!Ht,to=ee.useRef(),oo=ee.useRef(),Jo=ee.useState(Pn),Ns=(0,Se.Z)(Jo,2),ys=Ns[0],Xs=Ns[1],vo=ee.useRef(),jt=function(){Pn===!0||Pn===!1||(clearTimeout(vo.current),Xs(!0),vo.current=setTimeout(function(){Xs(!1)},3e3))},la=be-Bn||0,os=Bn-kn||0,_s=ee.useMemo(function(){if(Mt===0||la===0)return 0;var Un=Mt/la;return Un*os},[Mt,la,os]),Ss=function(Yn){Yn.stopPropagation(),Yn.preventDefault()},ca=ee.useRef({top:_s,dragging:Ui,pageY:Ao,startTop:Co});ca.current={top:_s,dragging:Ui,pageY:Ao,startTop:Co};var fa=function(Yn){Pi(!0),po(fe(Yn,An)),Jr(ca.current.top),Ge(),Yn.stopPropagation(),Yn.preventDefault()};ee.useEffect(function(){var Un=function(qe){qe.preventDefault()},Yn=to.current,Qe=oo.current;return Yn.addEventListener("touchstart",Un,{passive:!1}),Qe.addEventListener("touchstart",fa,{passive:!1}),function(){Yn.removeEventListener("touchstart",Un),Qe.removeEventListener("touchstart",fa)}},[]);var Pr=ee.useRef();Pr.current=la;var Fr=ee.useRef();Fr.current=os,ee.useEffect(function(){if(Ui){var Un,Yn=function(qe){var Mn=ca.current,li=Mn.dragging,Si=Mn.pageY,Fe=Mn.startTop;Nt.Z.cancel(Un);var Qn=to.current.getBoundingClientRect(),Ni=Bn/(An?Qn.width:Qn.height);if(li){var lr=(fe(qe,An)-Si)*Ni,wn=Fe;!hr&&An?wn-=lr:wn+=lr;var Jn=Pr.current,Br=Fr.current,vr=Br?wn/Br:0,Tr=Math.ceil(vr*Jn);Tr=Math.max(Tr,0),Tr=Math.min(Tr,Jn),Un=(0,Nt.Z)(function(){Fn(Tr,An)})}},Qe=function(){Pi(!1),vn()};return window.addEventListener("mousemove",Yn,{passive:!0}),window.addEventListener("touchmove",Yn,{passive:!0}),window.addEventListener("mouseup",Qe,{passive:!0}),window.addEventListener("touchend",Qe,{passive:!0}),function(){window.removeEventListener("mousemove",Yn),window.removeEventListener("touchmove",Yn),window.removeEventListener("mouseup",Qe),window.removeEventListener("touchend",Qe),Nt.Z.cancel(Un)}}},[Ui]),ee.useEffect(function(){return jt(),function(){clearTimeout(vo.current)}},[Mt]),ee.useImperativeHandle(Ct,function(){return{delayHidden:jt}});var dn="".concat(zt,"-scrollbar"),nn={position:"absolute",visibility:ys?null:"hidden"},he={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return An?(nn.height=8,nn.left=0,nn.right=0,nn.bottom=0,he.height="100%",he.width=kn,hr?he.left=_s:he.right=_s):(nn.width=8,nn.top=0,nn.bottom=0,hr?nn.right=0:nn.left=0,he.width="100%",he.height=kn,he.top=_s),ee.createElement("div",{ref:to,className:de()(dn,(0,xn.Z)((0,xn.Z)((0,xn.Z)({},"".concat(dn,"-horizontal"),An),"".concat(dn,"-vertical"),!An),"".concat(dn,"-visible"),ys)),style:(0,Te.Z)((0,Te.Z)({},nn),Vn),onMouseDown:Ss,onMouseMove:jt},ee.createElement("div",{ref:oo,className:de()("".concat(dn,"-thumb"),(0,xn.Z)({},"".concat(dn,"-thumb-moving"),Ui)),style:(0,Te.Z)((0,Te.Z)({},he),bi),onMouseDown:fa}))}),cn=ri,In=20;function Wn(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,zt=Tt/Ct*Tt;return isNaN(zt)&&(zt=0),zt=Math.max(zt,In),Math.floor(zt)}var xi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],pi=[],zi={overflowY:"auto",overflowAnchor:"none"};function Ie(Tt,Ct){var zt=Tt.prefixCls,Ht=zt===void 0?"rc-virtual-list":zt,Mt=Tt.className,be=Tt.height,Ge=Tt.itemHeight,vn=Tt.fullHeight,Fn=vn===void 0?!0:vn,An=Tt.style,kn=Tt.data,Bn=Tt.children,Vn=Tt.itemKey,bi=Tt.virtual,Pn=Tt.direction,an=Tt.scrollWidth,ei=Tt.component,Ui=ei===void 0?"div":ei,Pi=Tt.onScroll,sr=Tt.onVirtualScroll,Or=Tt.onVisibleChange,Ao=Tt.innerProps,po=Tt.extraRender,Zr=Tt.styles,Ho=Tt.showScrollBar,Co=Ho===void 0?"optional":Ho,Jr=(0,We.Z)(Tt,xi),hr=ee.useCallback(function(To){return typeof Vn=="function"?Vn(To):To==null?void 0:To[Vn]},[Vn]),to=Kn(hr,null,null),oo=(0,Se.Z)(to,4),Jo=oo[0],Ns=oo[1],ys=oo[2],Xs=oo[3],vo=!!(bi!==!1&&be&&Ge),jt=ee.useMemo(function(){return Object.values(ys.maps).reduce(function(To,Po){return To+Po},0)},[ys.id,ys.maps]),la=vo&&kn&&(Math.max(Ge*kn.length,jt)>be||!!an),os=Pn==="rtl",_s=de()(Ht,(0,xn.Z)({},"".concat(Ht,"-rtl"),os),Mt),Ss=kn||pi,ca=(0,ee.useRef)(),fa=(0,ee.useRef)(),Pr=(0,ee.useRef)(),Fr=(0,ee.useState)(0),dn=(0,Se.Z)(Fr,2),nn=dn[0],he=dn[1],Un=(0,ee.useState)(0),Yn=(0,Se.Z)(Un,2),Qe=Yn[0],ye=Yn[1],qe=(0,ee.useState)(!1),Mn=(0,Se.Z)(qe,2),li=Mn[0],Si=Mn[1],Fe=function(){Si(!0)},Qn=function(){Si(!1)},Ni={getKey:hr};function lr(To){he(function(Po){var _r;typeof To=="function"?_r=To(Po):_r=To;var As=Uo(_r);return ca.current.scrollTop=As,As})}var wn=(0,ee.useRef)({start:0,end:Ss.length}),Jn=(0,ee.useRef)(),Br=vt(Ss,hr),vr=(0,Se.Z)(Br,1),Tr=vr[0];Jn.current=Tr;var nr=ee.useMemo(function(){if(!vo)return{scrollHeight:void 0,start:0,end:Ss.length-1,offset:void 0};if(!la){var To;return{scrollHeight:((To=fa.current)===null||To===void 0?void 0:To.offsetHeight)||0,start:0,end:Ss.length-1,offset:void 0}}for(var Po=0,_r,As,da,Rr=Ss.length,jr=0;jr<Rr;jr+=1){var Li=Ss[jr],eo=hr(Li),cs=ys.get(eo),Es=Po+(cs===void 0?Ge:cs);Es>=nn&&_r===void 0&&(_r=jr,As=Po),Es>nn+be&&da===void 0&&(da=jr),Po=Es}return _r===void 0&&(_r=0,As=0,da=Math.ceil(be/Ge)),da===void 0&&(da=Ss.length-1),da=Math.min(da+1,Ss.length-1),{scrollHeight:Po,start:_r,end:da,offset:As}},[la,vo,nn,Ss,Xs,be]),yr=nr.scrollHeight,ar=nr.start,Er=nr.end,co=nr.offset;wn.current.start=ar,wn.current.end=Er,ee.useLayoutEffect(function(){var To=ys.getRecord();if(To.size===1){var Po=Array.from(To)[0],_r=hr(Ss[ar]);if(_r===Po){var As=ys.get(Po),da=As-Ge;lr(function(Rr){return Rr+da})}}ys.resetRecord()},[yr]);var jo=ee.useState({width:0,height:be}),Xn=(0,Se.Z)(jo,2),Oo=Xn[0],as=Xn[1],Eo=function(Po){as({width:Po.offsetWidth,height:Po.offsetHeight})},zn=(0,ee.useRef)(),Gi=(0,ee.useRef)(),wr=ee.useMemo(function(){return Wn(Oo.width,an)},[Oo.width,an]),Dr=ee.useMemo(function(){return Wn(Oo.height,yr)},[Oo.height,yr]),Mr=yr-be,ao=(0,ee.useRef)(Mr);ao.current=Mr;function Uo(To){var Po=To;return Number.isNaN(ao.current)||(Po=Math.min(Po,ao.current)),Po=Math.max(Po,0),Po}var lo=nn<=0,$r=nn>=Mr,br=Qe<=0,ni=Qe>=an,So=$t(lo,$r,br,ni),qn=function(){return{x:os?-Qe:Qe,y:nn}},Go=(0,ee.useRef)(qn()),Ds=(0,It.useEvent)(function(To){if(sr){var Po=(0,Te.Z)((0,Te.Z)({},qn()),To);(Go.current.x!==Po.x||Go.current.y!==Po.y)&&(sr(Po),Go.current=Po)}});function qo(To,Po){var _r=To;Po?((0,ge.flushSync)(function(){ye(_r)}),Ds()):lr(_r)}function ea(To){var Po=To.currentTarget.scrollTop;Po!==nn&&lr(Po),Pi==null||Pi(To),Ds()}var Bs=function(Po){var _r=Po,As=an?an-Oo.width:0;return _r=Math.max(_r,0),_r=Math.min(_r,As),_r},io=(0,It.useEvent)(function(To,Po){Po?((0,ge.flushSync)(function(){ye(function(_r){var As=_r+(os?-To:To);return Bs(As)})}),Ds()):lr(function(_r){var As=_r+To;return As})}),uo=se(vo,lo,$r,br,ni,!!an,io),Yo=(0,Se.Z)(uo,2),Qo=Yo[0],Zi=Yo[1];gn(vo,ca,function(To,Po,_r,As){var da=As;return So(To,Po,_r)?!1:!da||!da._virtualHandled?(da&&(da._virtualHandled=!0),Qo({preventDefault:function(){},deltaX:To?Po:0,deltaY:To?0:Po}),!0):!1}),Zt(la,ca,function(To){lr(function(Po){return Po+To})}),(0,xe.Z)(function(){function To(_r){var As=lo&&_r.detail<0,da=$r&&_r.detail>0;vo&&!As&&!da&&_r.preventDefault()}var Po=ca.current;return Po.addEventListener("wheel",Qo,{passive:!1}),Po.addEventListener("DOMMouseScroll",Zi,{passive:!0}),Po.addEventListener("MozMousePixelScroll",To,{passive:!1}),function(){Po.removeEventListener("wheel",Qo),Po.removeEventListener("DOMMouseScroll",Zi),Po.removeEventListener("MozMousePixelScroll",To)}},[vo,lo,$r]),(0,xe.Z)(function(){if(an){var To=Bs(Qe);ye(To),Ds({x:To})}},[Oo.width,an]);var oe=function(){var Po,_r;(Po=zn.current)===null||Po===void 0||Po.delayHidden(),(_r=Gi.current)===null||_r===void 0||_r.delayHidden()},zo=Gn(ca,Ss,ys,Ge,hr,function(){return Ns(!0)},lr,oe);ee.useImperativeHandle(Ct,function(){return{nativeElement:Pr.current,getScrollInfo:qn,scrollTo:function(Po){function _r(As){return As&&(0,Le.Z)(As)==="object"&&("left"in As||"top"in As)}_r(Po)?(Po.left!==void 0&&ye(Bs(Po.left)),zo(Po.top)):zo(Po)}}}),(0,xe.Z)(function(){if(Or){var To=Ss.slice(ar,Er+1);Or(To,Ss)}},[ar,Er,Ss]);var Qs=me(Ss,hr,ys,Ge),_a=po==null?void 0:po({start:ar,end:Er,virtual:la,offsetX:Qe,offsetY:co,rtl:os,getSize:Qs}),hl=ht(Ss,ar,Er,an,Qe,Jo,Bn,Ni),Ka=null;be&&(Ka=(0,Te.Z)((0,xn.Z)({},Fn?"height":"maxHeight",be),zi),vo&&(Ka.overflowY="hidden",an&&(Ka.overflowX="hidden"),li&&(Ka.pointerEvents="none")));var ml={};return os&&(ml.dir="rtl"),ee.createElement("div",(0,Kt.Z)({ref:Pr,style:(0,Te.Z)((0,Te.Z)({},An),{},{position:"relative"}),className:_s},ml,Jr),ee.createElement(ve.Z,{onResize:Eo},ee.createElement(Ui,{className:"".concat(Ht,"-holder"),style:Ka,ref:ca,onScroll:ea,onMouseEnter:oe},ee.createElement(et,{prefixCls:Ht,height:yr,offsetX:Qe,offsetY:co,scrollWidth:an,onInnerResize:Ns,ref:fa,innerProps:Ao,rtl:os,extra:_a},hl))),la&&yr>be&&ee.createElement(cn,{ref:zn,prefixCls:Ht,scrollOffset:nn,scrollRange:yr,rtl:os,onScroll:qo,onStartMove:Fe,onStopMove:Qn,spinSize:Dr,containerSize:Oo.height,style:Zr==null?void 0:Zr.verticalScrollBar,thumbStyle:Zr==null?void 0:Zr.verticalScrollBarThumb,showScrollBar:Co}),la&&an>Oo.width&&ee.createElement(cn,{ref:Gi,prefixCls:Ht,scrollOffset:Qe,scrollRange:an,rtl:os,onScroll:qo,onStartMove:Fe,onStopMove:Qn,spinSize:wr,containerSize:Oo.width,horizontal:!0,style:Zr==null?void 0:Zr.horizontalScrollBar,thumbStyle:Zr==null?void 0:Zr.horizontalScrollBarThumb,showScrollBar:Co}))}var Ai=ee.forwardRef(Ie);Ai.displayName="List";var Ti=Ai,ue=Ti},93314:function(Ci){"use strict";Ci.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(Ci){"use strict";Ci.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(Ci){"use strict";Ci.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(Ci){"use strict";Ci.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(Ci,Ii,Yt){"use strict";Yt.d(Ii,{Z:function(){return de}});const Kt=ve=>typeof ve=="object"&&ve!=null&&ve.nodeType===1,Le=(ve,It)=>(!It||ve!=="hidden")&&ve!=="visible"&&ve!=="clip",Te=(ve,It)=>{if(ve.clientHeight<ve.scrollHeight||ve.clientWidth<ve.scrollWidth){const xe=getComputedStyle(ve,null);return Le(xe.overflowY,It)||Le(xe.overflowX,It)||(ee=>{const ge=(Qt=>{if(!Qt.ownerDocument||!Qt.ownerDocument.defaultView)return null;try{return Qt.ownerDocument.defaultView.frameElement}catch(et){return null}})(ee);return!!ge&&(ge.clientHeight<ee.scrollHeight||ge.clientWidth<ee.scrollWidth)})(ve)}return!1},xn=(ve,It,xe,ee,ge,Qt,et,nt)=>Qt<ve&&et>It||Qt>ve&&et<It?0:Qt<=ve&&nt<=xe||et>=It&&nt>=xe?Qt-ve-ee:et>It&&nt<xe||Qt<ve&&nt>xe?et-It+ge:0,Se=ve=>{const It=ve.parentElement;return It==null?ve.getRootNode().host||null:It},We=(ve,It)=>{var xe,ee,ge,Qt;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ht,boundary:at,skipOverflowHiddenElements:ft}=It,vt=typeof at=="function"?at:ri=>ri!==at;if(!Kt(ve))throw new TypeError("Invalid target");const Nt=document.scrollingElement||document.documentElement,Rt=[];let Gt=ve;for(;Kt(Gt)&&vt(Gt);){if(Gt=Se(Gt),Gt===Nt){Rt.push(Gt);break}Gt!=null&&Gt===document.body&&Te(Gt)&&!Te(document.documentElement)||Gt!=null&&Te(Gt,ft)&&Rt.push(Gt)}const $t=(ee=(xe=window.visualViewport)==null?void 0:xe.width)!=null?ee:innerWidth,se=(Qt=(ge=window.visualViewport)==null?void 0:ge.height)!=null?Qt:innerHeight,{scrollX:me,scrollY:ce}=window,{height:Xe,width:De,top:ln,right:Oe,bottom:mn,left:Kn}=ve.getBoundingClientRect(),{top:sn,right:gn,bottom:pn,left:fe}=(ri=>{const cn=window.getComputedStyle(ri);return{top:parseFloat(cn.scrollMarginTop)||0,right:parseFloat(cn.scrollMarginRight)||0,bottom:parseFloat(cn.scrollMarginBottom)||0,left:parseFloat(cn.scrollMarginLeft)||0}})(ve);let Zt=nt==="start"||nt==="nearest"?ln-sn:nt==="end"?mn+pn:ln+Xe/2-sn+pn,Ye=ht==="center"?Kn+De/2-fe+gn:ht==="end"?Oe+gn:Kn-fe;const Gn=[];for(let ri=0;ri<Rt.length;ri++){const cn=Rt[ri],{height:In,width:Wn,top:xi,right:pi,bottom:zi,left:Ie}=cn.getBoundingClientRect();if(et==="if-needed"&&ln>=0&&Kn>=0&&mn<=se&&Oe<=$t&&(cn===Nt&&!Te(cn)||ln>=xi&&mn<=zi&&Kn>=Ie&&Oe<=pi))return Gn;const Ai=getComputedStyle(cn),Ti=parseInt(Ai.borderLeftWidth,10),ue=parseInt(Ai.borderTopWidth,10),Tt=parseInt(Ai.borderRightWidth,10),Ct=parseInt(Ai.borderBottomWidth,10);let zt=0,Ht=0;const Mt="offsetWidth"in cn?cn.offsetWidth-cn.clientWidth-Ti-Tt:0,be="offsetHeight"in cn?cn.offsetHeight-cn.clientHeight-ue-Ct:0,Ge="offsetWidth"in cn?cn.offsetWidth===0?0:Wn/cn.offsetWidth:0,vn="offsetHeight"in cn?cn.offsetHeight===0?0:In/cn.offsetHeight:0;if(Nt===cn)zt=nt==="start"?Zt:nt==="end"?Zt-se:nt==="nearest"?xn(ce,ce+se,se,ue,Ct,ce+Zt,ce+Zt+Xe,Xe):Zt-se/2,Ht=ht==="start"?Ye:ht==="center"?Ye-$t/2:ht==="end"?Ye-$t:xn(me,me+$t,$t,Ti,Tt,me+Ye,me+Ye+De,De),zt=Math.max(0,zt+ce),Ht=Math.max(0,Ht+me);else{zt=nt==="start"?Zt-xi-ue:nt==="end"?Zt-zi+Ct+be:nt==="nearest"?xn(xi,zi,In,ue,Ct+be,Zt,Zt+Xe,Xe):Zt-(xi+In/2)+be/2,Ht=ht==="start"?Ye-Ie-Ti:ht==="center"?Ye-(Ie+Wn/2)+Mt/2:ht==="end"?Ye-pi+Tt+Mt:xn(Ie,pi,Wn,Ti,Tt+Mt,Ye,Ye+De,De);const{scrollLeft:Fn,scrollTop:An}=cn;zt=vn===0?0:Math.max(0,Math.min(An+zt/vn,cn.scrollHeight-In/vn+be)),Ht=Ge===0?0:Math.max(0,Math.min(Fn+Ht/Ge,cn.scrollWidth-Wn/Ge+Mt)),Zt+=An-zt,Ye+=Fn-Ht}Gn.push({el:cn,top:zt,left:Ht})}return Gn},je=ve=>ve===!1?{block:"end",inline:"nearest"}:(It=>It===Object(It)&&Object.keys(It).length!==0)(ve)?ve:{block:"start",inline:"nearest"};function de(ve,It){if(!ve.isConnected||!(ge=>{let Qt=ge;for(;Qt&&Qt.parentNode;){if(Qt.parentNode===document)return!0;Qt=Qt.parentNode instanceof ShadowRoot?Qt.parentNode.host:Qt.parentNode}return!1})(ve))return;const xe=(ge=>{const Qt=window.getComputedStyle(ge);return{top:parseFloat(Qt.scrollMarginTop)||0,right:parseFloat(Qt.scrollMarginRight)||0,bottom:parseFloat(Qt.scrollMarginBottom)||0,left:parseFloat(Qt.scrollMarginLeft)||0}})(ve);if((ge=>typeof ge=="object"&&typeof ge.behavior=="function")(It))return It.behavior(We(ve,It));const ee=typeof It=="boolean"||It==null?void 0:It.behavior;for(const{el:ge,top:Qt,left:et}of We(ve,je(It))){const nt=Qt-xe.top+xe.bottom,ht=et-xe.left+xe.right;ge.scroll({top:nt,left:ht,behavior:ee})}}}}]);
|