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

1370 lines
2.6 MiB

This file contains ambiguous Unicode characters!

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

!(function(){var lw=Object.defineProperty,uw=Object.defineProperties;var cw=Object.getOwnPropertyDescriptors;var rv=Object.getOwnPropertySymbols;var wx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable;var _y=Math.pow,xx=(Rn,Mn,ve)=>Mn in Rn?lw(Rn,Mn,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Rn[Mn]=ve,ha=(Rn,Mn)=>{for(var ve in Mn||(Mn={}))wx.call(Mn,ve)&&xx(Rn,ve,Mn[ve]);if(rv)for(var ve of rv(Mn))Px.call(Mn,ve)&&xx(Rn,ve,Mn[ve]);return Rn},tl=(Rn,Mn)=>uw(Rn,cw(Mn));var ov=(Rn,Mn)=>{var ve={};for(var ye in Rn)wx.call(Rn,ye)&&Mn.indexOf(ye)<0&&(ve[ye]=Rn[ye]);if(Rn!=null&&rv)for(var ye of rv(Rn))Mn.indexOf(ye)<0&&Px.call(Rn,ye)&&(ve[ye]=Rn[ye]);return ve};var Cx=(Rn,Mn,ve)=>new Promise((ye,Oe)=>{var He=qe=>{try{$e(ve.next(qe))}catch(De){Oe(De)}},Rt=qe=>{try{$e(ve.throw(qe))}catch(De){Oe(De)}},$e=qe=>qe.done?ye(qe.value):Promise.resolve(qe.value).then(He,Rt);$e((ve=ve.apply(Rn,Mn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{89489:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},59477:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},40001:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},49198:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},87169:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},73331:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},15277:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},52671:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},8657:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},56082:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},33853:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},15075:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},43531:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},61485:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},38819:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},47472:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(et,Ot){return Oe.createElement($e.Z,(0,ye.Z)({},et,{ref:Ot,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De},87954:function(Rn,Mn,ve){"use strict";ve.d(Mn,{LB:function(){return di},g4:function(){return cn},VK:function(){return Lt},Cj:function(){return Mr},O1:function(){return cr},Zj:function(){return Wi}});var ye=ve(59301),Oe=ve(4676),He=ve(35241);const Rt={display:"none"};function $e(yt){let{id:Bt,value:ln}=yt;return ye.createElement("div",{id:Bt,style:Rt},ln)}function qe(yt){let{id:Bt,announcement:ln,ariaLiveType:jn="assertive"}=yt;const ri={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ye.createElement("div",{id:Bt,style:ri,role:"status","aria-live":jn,"aria-atomic":!0},ln)}function De(){const[yt,Bt]=(0,ye.useState)("");return{announce:(0,ye.useCallback)(jn=>{jn!=null&&Bt(jn)},[]),announcement:yt}}const Tt=(0,ye.createContext)(null);function Et(yt){const Bt=(0,ye.useContext)(Tt);(0,ye.useEffect)(()=>{if(!Bt)throw new Error("useDndMonitor must be used within a children of <DndContext>");return Bt(yt)},[yt,Bt])}function et(){const[yt]=(0,ye.useState)(()=>new Set),Bt=(0,ye.useCallback)(jn=>(yt.add(jn),()=>yt.delete(jn)),[yt]);return[(0,ye.useCallback)(jn=>{let{type:ri,event:tn}=jn;yt.forEach(bn=>{var Xn;return(Xn=bn[ri])==null?void 0:Xn.call(bn,tn)})},[yt]),Bt]}const Ot={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},it={onDragStart(yt){let{active:Bt}=yt;return"Picked up draggable item "+Bt.id+"."},onDragOver(yt){let{active:Bt,over:ln}=yt;return ln?"Draggable item "+Bt.id+" was moved over droppable area "+ln.id+".":"Draggable item "+Bt.id+" is no longer over a droppable area."},onDragEnd(yt){let{active:Bt,over:ln}=yt;return ln?"Draggable item "+Bt.id+" was dropped over droppable area "+ln.id:"Draggable item "+Bt.id+" was dropped."},onDragCancel(yt){let{active:Bt}=yt;return"Dragging was cancelled. Draggable item "+Bt.id+" was dropped."}};function Pt(yt){let{announcements:Bt=it,container:ln,hiddenTextDescribedById:jn,screenReaderInstructions:ri=Ot}=yt;const{announce:tn,announcement:bn}=De(),Xn=(0,He.Ld)("DndLiveRegion"),[Kn,Ei]=(0,ye.useState)(!1);if((0,ye.useEffect)(()=>{Ei(!0)},[]),Et((0,ye.useMemo)(()=>({onDragStart(Ai){let{active:Bi}=Ai;tn(Bt.onDragStart({active:Bi}))},onDragMove(Ai){let{active:Bi,over:zn}=Ai;Bt.onDragMove&&tn(Bt.onDragMove({active:Bi,over:zn}))},onDragOver(Ai){let{active:Bi,over:zn}=Ai;tn(Bt.onDragOver({active:Bi,over:zn}))},onDragEnd(Ai){let{active:Bi,over:zn}=Ai;tn(Bt.onDragEnd({active:Bi,over:zn}))},onDragCancel(Ai){let{active:Bi,over:zn}=Ai;tn(Bt.onDragCancel({active:Bi,over:zn}))}}),[tn,Bt])),!Kn)return null;const vr=ye.createElement(ye.Fragment,null,ye.createElement($e,{id:jn,value:ri.draggable}),ye.createElement(qe,{id:Xn,announcement:bn}));return ln?(0,Oe.createPortal)(vr,ln):vr}var Me;(function(yt){yt.DragStart="dragStart",yt.DragMove="dragMove",yt.DragEnd="dragEnd",yt.DragCancel="dragCancel",yt.DragOver="dragOver",yt.RegisterDroppable="registerDroppable",yt.SetDroppableDisabled="setDroppableDisabled",yt.UnregisterDroppable="unregisterDroppable"})(Me||(Me={}));function te(){}function ne(yt,Bt){return useMemo(()=>({sensor:yt,options:Bt!=null?Bt:{}}),[yt,Bt])}function ce(){for(var yt=arguments.length,Bt=new Array(yt),ln=0;ln<yt;ln++)Bt[ln]=arguments[ln];return useMemo(()=>[...Bt].filter(jn=>jn!=null),[...Bt])}const se=Object.freeze({x:0,y:0});function ge(yt,Bt){return Math.sqrt(Math.pow(yt.x-Bt.x,2)+Math.pow(yt.y-Bt.y,2))}function me(yt,Bt){const ln=getEventCoordinates(yt);if(!ln)return"0 0";const jn={x:(ln.x-Bt.left)/Bt.width*100,y:(ln.y-Bt.top)/Bt.height*100};return jn.x+"% "+jn.y+"%"}function Ce(yt,Bt){let{data:{value:ln}}=yt,{data:{value:jn}}=Bt;return ln-jn}function Fe(yt,Bt){let{data:{value:ln}}=yt,{data:{value:jn}}=Bt;return jn-ln}function Pe(yt){let{left:Bt,top:ln,height:jn,width:ri}=yt;return[{x:Bt,y:ln},{x:Bt+ri,y:ln},{x:Bt,y:ln+jn},{x:Bt+ri,y:ln+jn}]}function Ie(yt,Bt){if(!yt||yt.length===0)return null;const[ln]=yt;return Bt?ln[Bt]:ln}function Ge(yt,Bt,ln){return Bt===void 0&&(Bt=yt.left),ln===void 0&&(ln=yt.top),{x:Bt+yt.width*.5,y:ln+yt.height*.5}}const Ke=yt=>{let{collisionRect:Bt,droppableRects:ln,droppableContainers:jn}=yt;const ri=Ge(Bt,Bt.left,Bt.top),tn=[];for(const bn of jn){const{id:Xn}=bn,Kn=ln.get(Xn);if(Kn){const Ei=ge(Ge(Kn),ri);tn.push({id:Xn,data:{droppableContainer:bn,value:Ei}})}}return tn.sort(Ce)},Ye=yt=>{let{collisionRect:Bt,droppableRects:ln,droppableContainers:jn}=yt;const ri=Pe(Bt),tn=[];for(const bn of jn){const{id:Xn}=bn,Kn=ln.get(Xn);if(Kn){const Ei=Pe(Kn),vr=ri.reduce((Bi,zn,pr)=>Bi+ge(Ei[pr],zn),0),Ai=Number((vr/4).toFixed(4));tn.push({id:Xn,data:{droppableContainer:bn,value:Ai}})}}return tn.sort(Ce)};function pt(yt,Bt){const ln=Math.max(Bt.top,yt.top),jn=Math.max(Bt.left,yt.left),ri=Math.min(Bt.left+Bt.width,yt.left+yt.width),tn=Math.min(Bt.top+Bt.height,yt.top+yt.height),bn=ri-jn,Xn=tn-ln;if(jn<ri&&ln<tn){const Kn=Bt.width*Bt.height,Ei=yt.width*yt.height,vr=bn*Xn,Ai=vr/(Kn+Ei-vr);return Number(Ai.toFixed(4))}return 0}const Je=yt=>{let{collisionRect:Bt,droppableRects:ln,droppableContainers:jn}=yt;const ri=[];for(const tn of jn){const{id:bn}=tn,Xn=ln.get(bn);if(Xn){const Kn=pt(Xn,Bt);Kn>0&&ri.push({id:bn,data:{droppableContainer:tn,value:Kn}})}}return ri.sort(Fe)};function kt(yt,Bt){const{top:ln,left:jn,bottom:ri,right:tn}=Bt;return ln<=yt.y&&yt.y<=ri&&jn<=yt.x&&yt.x<=tn}const Xe=yt=>{let{droppableContainers:Bt,droppableRects:ln,pointerCoordinates:jn}=yt;if(!jn)return[];const ri=[];for(const tn of Bt){const{id:bn}=tn,Xn=ln.get(bn);if(Xn&&kt(jn,Xn)){const Ei=Pe(Xn).reduce((Ai,Bi)=>Ai+ge(jn,Bi),0),vr=Number((Ei/4).toFixed(4));ri.push({id:bn,data:{droppableContainer:tn,value:vr}})}}return ri.sort(Ce)};function Wt(yt,Bt,ln){return tl(ha({},yt),{scaleX:Bt&&ln?Bt.width/ln.width:1,scaleY:Bt&&ln?Bt.height/ln.height:1})}function zt(yt,Bt){return yt&&Bt?{x:yt.left-Bt.left,y:yt.top-Bt.top}:se}function jt(yt){return function(ln){for(var jn=arguments.length,ri=new Array(jn>1?jn-1:0),tn=1;tn<jn;tn++)ri[tn-1]=arguments[tn];return ri.reduce((bn,Xn)=>tl(ha({},bn),{top:bn.top+yt*Xn.y,bottom:bn.bottom+yt*Xn.y,left:bn.left+yt*Xn.x,right:bn.right+yt*Xn.x}),ha({},ln))}}const Mt=jt(1);function Ut(yt){if(yt.startsWith("matrix3d(")){const Bt=yt.slice(9,-1).split(/, /);return{x:+Bt[12],y:+Bt[13],scaleX:+Bt[0],scaleY:+Bt[5]}}else if(yt.startsWith("matrix(")){const Bt=yt.slice(7,-1).split(/, /);return{x:+Bt[4],y:+Bt[5],scaleX:+Bt[0],scaleY:+Bt[3]}}return null}function ft(yt,Bt,ln){const jn=Ut(Bt);if(!jn)return yt;const{scaleX:ri,scaleY:tn,x:bn,y:Xn}=jn,Kn=yt.left-bn-(1-ri)*parseFloat(ln),Ei=yt.top-Xn-(1-tn)*parseFloat(ln.slice(ln.indexOf(" ")+1)),vr=ri?yt.width/ri:yt.width,Ai=tn?yt.height/tn:yt.height;return{width:vr,height:Ai,top:Ei,right:Kn+vr,bottom:Ei+Ai,left:Kn}}const Re={ignoreTransform:!1};function Lt(yt,Bt){Bt===void 0&&(Bt=Re);let ln=yt.getBoundingClientRect();if(Bt.ignoreTransform){const{transform:Ei,transformOrigin:vr}=(0,He.Jj)(yt).getComputedStyle(yt);Ei&&(ln=ft(ln,Ei,vr))}const{top:jn,left:ri,width:tn,height:bn,bottom:Xn,right:Kn}=ln;return{top:jn,left:ri,width:tn,height:bn,bottom:Xn,right:Kn}}function yn(yt){return Lt(yt,{ignoreTransform:!0})}function mn(yt){const Bt=yt.innerWidth,ln=yt.innerHeight;return{top:0,left:0,right:Bt,bottom:ln,width:Bt,height:ln}}function Nt(yt,Bt){return Bt===void 0&&(Bt=(0,He.Jj)(yt).getComputedStyle(yt)),Bt.position==="fixed"}function en(yt,Bt){Bt===void 0&&(Bt=(0,He.Jj)(yt).getComputedStyle(yt));const ln=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(ri=>{const tn=Bt[ri];return typeof tn=="string"?ln.test(tn):!1})}function nn(yt,Bt){const ln=[];function jn(ri){if(Bt!=null&&ln.length>=Bt||!ri)return ln;if((0,He.qk)(ri)&&ri.scrollingElement!=null&&!ln.includes(ri.scrollingElement))return ln.push(ri.scrollingElement),ln;if(!(0,He.Re)(ri)||(0,He.vZ)(ri)||ln.includes(ri))return ln;const tn=(0,He.Jj)(yt).getComputedStyle(ri);return ri!==yt&&en(ri,tn)&&ln.push(ri),Nt(ri,tn)?ln:jn(ri.parentNode)}return yt?jn(yt):ln}function On(yt){const[Bt]=nn(yt,1);return Bt!=null?Bt:null}function dn(yt){return!He.Nq||!yt?null:(0,He.FJ)(yt)?yt:(0,He.UG)(yt)?(0,He.qk)(yt)||yt===(0,He.r3)(yt).scrollingElement?window:(0,He.Re)(yt)?yt:null:null}function Tn(yt){return(0,He.FJ)(yt)?yt.scrollX:yt.scrollLeft}function mt(yt){return(0,He.FJ)(yt)?yt.scrollY:yt.scrollTop}function Gn(yt){return{x:Tn(yt),y:mt(yt)}}var xn;(function(yt){yt[yt.Forward=1]="Forward",yt[yt.Backward=-1]="Backward"})(xn||(xn={}));function tt(yt){return!He.Nq||!yt?!1:yt===document.scrollingElement}function Ee(yt){const Bt={x:0,y:0},ln=tt(yt)?{height:window.innerHeight,width:window.innerWidth}:{height:yt.clientHeight,width:yt.clientWidth},jn={x:yt.scrollWidth-ln.width,y:yt.scrollHeight-ln.height},ri=yt.scrollTop<=Bt.y,tn=yt.scrollLeft<=Bt.x,bn=yt.scrollTop>=jn.y,Xn=yt.scrollLeft>=jn.x;return{isTop:ri,isLeft:tn,isBottom:bn,isRight:Xn,maxScroll:jn,minScroll:Bt}}const we={x:.2,y:.2};function Be(yt,Bt,ln,jn,ri){let{top:tn,left:bn,right:Xn,bottom:Kn}=ln;jn===void 0&&(jn=10),ri===void 0&&(ri=we);const{isTop:Ei,isBottom:vr,isLeft:Ai,isRight:Bi}=Ee(yt),zn={x:0,y:0},pr={x:0,y:0},kr={height:Bt.height*ri.y,width:Bt.width*ri.x};return!Ei&&tn<=Bt.top+kr.height?(zn.y=xn.Backward,pr.y=jn*Math.abs((Bt.top+kr.height-tn)/kr.height)):!vr&&Kn>=Bt.bottom-kr.height&&(zn.y=xn.Forward,pr.y=jn*Math.abs((Bt.bottom-kr.height-Kn)/kr.height)),!Bi&&Xn>=Bt.right-kr.width?(zn.x=xn.Forward,pr.x=jn*Math.abs((Bt.right-kr.width-Xn)/kr.width)):!Ai&&bn<=Bt.left+kr.width&&(zn.x=xn.Backward,pr.x=jn*Math.abs((Bt.left+kr.width-bn)/kr.width)),{direction:zn,speed:pr}}function ke(yt){if(yt===document.scrollingElement){const{innerWidth:tn,innerHeight:bn}=window;return{top:0,left:0,right:tn,bottom:bn,width:tn,height:bn}}const{top:Bt,left:ln,right:jn,bottom:ri}=yt.getBoundingClientRect();return{top:Bt,left:ln,right:jn,bottom:ri,width:yt.clientWidth,height:yt.clientHeight}}function Se(yt){return yt.reduce((Bt,ln)=>(0,He.IH)(Bt,Gn(ln)),se)}function st(yt){return yt.reduce((Bt,ln)=>Bt+Tn(ln),0)}function At(yt){return yt.reduce((Bt,ln)=>Bt+mt(ln),0)}function Ve(yt,Bt){if(Bt===void 0&&(Bt=Lt),!yt)return;const{top:ln,left:jn,bottom:ri,right:tn}=Bt(yt);On(yt)&&(ri<=0||tn<=0||ln>=window.innerHeight||jn>=window.innerWidth)&&yt.scrollIntoView({block:"center",inline:"center"})}const We=[["x",["left","right"],st],["y",["top","bottom"],At]];class Ct{constructor(Bt,ln){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const jn=nn(ln),ri=Se(jn);this.rect=ha({},Bt),this.width=Bt.width,this.height=Bt.height;for(const[tn,bn,Xn]of We)for(const Kn of bn)Object.defineProperty(this,Kn,{get:()=>{const Ei=Xn(jn),vr=ri[tn]-Ei;return this.rect[Kn]+vr},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class bt{constructor(Bt){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(ln=>{var jn;return(jn=this.target)==null?void 0:jn.removeEventListener(...ln)})},this.target=Bt}add(Bt,ln,jn){var ri;(ri=this.target)==null||ri.addEventListener(Bt,ln,jn),this.listeners.push([Bt,ln,jn])}}function dt(yt){const{EventTarget:Bt}=(0,He.Jj)(yt);return yt instanceof Bt?yt:(0,He.r3)(yt)}function Ht(yt,Bt){const ln=Math.abs(yt.x),jn=Math.abs(yt.y);return typeof Bt=="number"?Math.sqrt(_y(ln,2)+_y(jn,2))>Bt:"x"in Bt&&"y"in Bt?ln>Bt.x&&jn>Bt.y:"x"in Bt?ln>Bt.x:"y"in Bt?jn>Bt.y:!1}var En;(function(yt){yt.Click="click",yt.DragStart="dragstart",yt.Keydown="keydown",yt.ContextMenu="contextmenu",yt.Resize="resize",yt.SelectionChange="selectionchange",yt.VisibilityChange="visibilitychange"})(En||(En={}));function An(yt){yt.preventDefault()}function qt(yt){yt.stopPropagation()}var cn;(function(yt){yt.Space="Space",yt.Down="ArrowDown",yt.Right="ArrowRight",yt.Left="ArrowLeft",yt.Up="ArrowUp",yt.Esc="Escape",yt.Enter="Enter",yt.Tab="Tab"})(cn||(cn={}));const qn={start:[cn.Space,cn.Enter],cancel:[cn.Esc],end:[cn.Space,cn.Enter,cn.Tab]},wn=(yt,Bt)=>{let{currentCoordinates:ln}=Bt;switch(yt.code){case cn.Right:return tl(ha({},ln),{x:ln.x+25});case cn.Left:return tl(ha({},ln),{x:ln.x-25});case cn.Down:return tl(ha({},ln),{y:ln.y+25});case cn.Up:return tl(ha({},ln),{y:ln.y-25})}};class vi{constructor(Bt){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=Bt;const{event:{target:ln}}=Bt;this.props=Bt,this.listeners=new bt((0,He.r3)(ln)),this.windowListeners=new bt((0,He.Jj)(ln)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(En.Resize,this.handleCancel),this.windowListeners.add(En.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(En.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:Bt,onStart:ln}=this.props,jn=Bt.node.current;jn&&Ve(jn),ln(se)}handleKeyDown(Bt){if((0,He.vd)(Bt)){const{active:ln,context:jn,options:ri}=this.props,{keyboardCodes:tn=qn,coordinateGetter:bn=wn,scrollBehavior:Xn="smooth"}=ri,{code:Kn}=Bt;if(tn.end.includes(Kn)){this.handleEnd(Bt);return}if(tn.cancel.includes(Kn)){this.handleCancel(Bt);return}const{collisionRect:Ei}=jn.current,vr=Ei?{x:Ei.left,y:Ei.top}:se;this.referenceCoordinates||(this.referenceCoordinates=vr);const Ai=bn(Bt,{active:ln,context:jn.current,currentCoordinates:vr});if(Ai){const Bi=(0,He.$X)(Ai,vr),zn={x:0,y:0},{scrollableAncestors:pr}=jn.current;for(const kr of pr){const po=Bt.code,{isTop:to,isRight:Jr,isLeft:eo,isBottom:Zo,maxScroll:$o,minScroll:ia}=Ee(kr),qo=ke(kr),Sn={x:Math.min(po===cn.Right?qo.right-qo.width/2:qo.right,Math.max(po===cn.Right?qo.left:qo.left+qo.width/2,Ai.x)),y:Math.min(po===cn.Down?qo.bottom-qo.height/2:qo.bottom,Math.max(po===cn.Down?qo.top:qo.top+qo.height/2,Ai.y))},oa=po===cn.Right&&!Jr||po===cn.Left&&!eo,vs=po===cn.Down&&!Zo||po===cn.Up&&!to;if(oa&&Sn.x!==Ai.x){const Ga=kr.scrollLeft+Bi.x,Zs=po===cn.Right&&Ga<=$o.x||po===cn.Left&&Ga>=ia.x;if(Zs&&!Bi.y){kr.scrollTo({left:Ga,behavior:Xn});return}Zs?zn.x=kr.scrollLeft-Ga:zn.x=po===cn.Right?kr.scrollLeft-$o.x:kr.scrollLeft-ia.x,zn.x&&kr.scrollBy({left:-zn.x,behavior:Xn});break}else if(vs&&Sn.y!==Ai.y){const Ga=kr.scrollTop+Bi.y,Zs=po===cn.Down&&Ga<=$o.y||po===cn.Up&&Ga>=ia.y;if(Zs&&!Bi.x){kr.scrollTo({top:Ga,behavior:Xn});return}Zs?zn.y=kr.scrollTop-Ga:zn.y=po===cn.Down?kr.scrollTop-$o.y:kr.scrollTop-ia.y,zn.y&&kr.scrollBy({top:-zn.y,behavior:Xn});break}}this.handleMove(Bt,(0,He.IH)((0,He.$X)(Ai,this.referenceCoordinates),zn))}}}handleMove(Bt,ln){const{onMove:jn}=this.props;Bt.preventDefault(),jn(ln)}handleEnd(Bt){const{onEnd:ln}=this.props;Bt.preventDefault(),this.detach(),ln()}handleCancel(Bt){const{onCancel:ln}=this.props;Bt.preventDefault(),this.detach(),ln()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}vi.activators=[{eventName:"onKeyDown",handler:(yt,Bt,ln)=>{let{keyboardCodes:jn=qn,onActivation:ri}=Bt,{active:tn}=ln;const{code:bn}=yt.nativeEvent;if(jn.start.includes(bn)){const Xn=tn.activatorNode.current;return Xn&&yt.target!==Xn?!1:(yt.preventDefault(),ri==null||ri({event:yt.nativeEvent}),!0)}return!1}}];function ei(yt){return!!(yt&&"distance"in yt)}function Li(yt){return!!(yt&&"delay"in yt)}class Vi{constructor(Bt,ln,jn){var ri;jn===void 0&&(jn=dt(Bt.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=Bt,this.events=ln;const{event:tn}=Bt,{target:bn}=tn;this.props=Bt,this.events=ln,this.document=(0,He.r3)(bn),this.documentListeners=new bt(this.document),this.listeners=new bt(jn),this.windowListeners=new bt((0,He.Jj)(bn)),this.initialCoordinates=(ri=(0,He.DC)(tn))!=null?ri:se,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:Bt,props:{options:{activationConstraint:ln,bypassActivationConstraint:jn}}}=this;if(this.listeners.add(Bt.move.name,this.handleMove,{passive:!1}),this.listeners.add(Bt.end.name,this.handleEnd),Bt.cancel&&this.listeners.add(Bt.cancel.name,this.handleCancel),this.windowListeners.add(En.Resize,this.handleCancel),this.windowListeners.add(En.DragStart,An),this.windowListeners.add(En.VisibilityChange,this.handleCancel),this.windowListeners.add(En.ContextMenu,An),this.documentListeners.add(En.Keydown,this.handleKeydown),ln){if(jn!=null&&jn({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Li(ln)){this.timeoutId=setTimeout(this.handleStart,ln.delay),this.handlePending(ln);return}if(ei(ln)){this.handlePending(ln);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(Bt,ln){const{active:jn,onPending:ri}=this.props;ri(jn,Bt,this.initialCoordinates,ln)}handleStart(){const{initialCoordinates:Bt}=this,{onStart:ln}=this.props;Bt&&(this.activated=!0,this.documentListeners.add(En.Click,qt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(En.SelectionChange,this.removeTextSelection),ln(Bt))}handleMove(Bt){var ln;const{activated:jn,initialCoordinates:ri,props:tn}=this,{onMove:bn,options:{activationConstraint:Xn}}=tn;if(!ri)return;const Kn=(ln=(0,He.DC)(Bt))!=null?ln:se,Ei=(0,He.$X)(ri,Kn);if(!jn&&Xn){if(ei(Xn)){if(Xn.tolerance!=null&&Ht(Ei,Xn.tolerance))return this.handleCancel();if(Ht(Ei,Xn.distance))return this.handleStart()}if(Li(Xn)&&Ht(Ei,Xn.tolerance))return this.handleCancel();this.handlePending(Xn,Ei);return}Bt.cancelable&&Bt.preventDefault(),bn(Kn)}handleEnd(){const{onAbort:Bt,onEnd:ln}=this.props;this.detach(),this.activated||Bt(this.props.active),ln()}handleCancel(){const{onAbort:Bt,onCancel:ln}=this.props;this.detach(),this.activated||Bt(this.props.active),ln()}handleKeydown(Bt){Bt.code===cn.Esc&&this.handleCancel()}removeTextSelection(){var Bt;(Bt=this.document.getSelection())==null||Bt.removeAllRanges()}}const zi={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Bn extends Vi{constructor(Bt){const{event:ln}=Bt,jn=(0,He.r3)(ln.target);super(Bt,zi,jn)}}Bn.activators=[{eventName:"onPointerDown",handler:(yt,Bt)=>{let{nativeEvent:ln}=yt,{onActivation:jn}=Bt;return!ln.isPrimary||ln.button!==0?!1:(jn==null||jn({event:ln}),!0)}}];const rr={move:{name:"mousemove"},end:{name:"mouseup"}};var Yr;(function(yt){yt[yt.RightClick=2]="RightClick"})(Yr||(Yr={}));class zr extends Vi{constructor(Bt){super(Bt,rr,(0,He.r3)(Bt.event.target))}}zr.activators=[{eventName:"onMouseDown",handler:(yt,Bt)=>{let{nativeEvent:ln}=yt,{onActivation:jn}=Bt;return ln.button===Yr.RightClick?!1:(jn==null||jn({event:ln}),!0)}}];const Zr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Nr extends Vi{constructor(Bt){super(Bt,Zr)}static setup(){return window.addEventListener(Zr.move.name,Bt,{capture:!1,passive:!1}),function(){window.removeEventListener(Zr.move.name,Bt)};function Bt(){}}}Nr.activators=[{eventName:"onTouchStart",handler:(yt,Bt)=>{let{nativeEvent:ln}=yt,{onActivation:jn}=Bt;const{touches:ri}=ln;return ri.length>1?!1:(jn==null||jn({event:ln}),!0)}}];var Co;(function(yt){yt[yt.Pointer=0]="Pointer",yt[yt.DraggableRect=1]="DraggableRect"})(Co||(Co={}));var $r;(function(yt){yt[yt.TreeOrder=0]="TreeOrder",yt[yt.ReversedTreeOrder=1]="ReversedTreeOrder"})($r||($r={}));function sr(yt){let{acceleration:Bt,activator:ln=Co.Pointer,canScroll:jn,draggingRect:ri,enabled:tn,interval:bn=5,order:Xn=$r.TreeOrder,pointerCoordinates:Kn,scrollableAncestors:Ei,scrollableAncestorRects:vr,delta:Ai,threshold:Bi}=yt;const zn=ti({delta:Ai,disabled:!tn}),[pr,kr]=(0,He.Yz)(),po=(0,ye.useRef)({x:0,y:0}),to=(0,ye.useRef)({x:0,y:0}),Jr=(0,ye.useMemo)(()=>{switch(ln){case Co.Pointer:return Kn?{top:Kn.y,bottom:Kn.y,left:Kn.x,right:Kn.x}:null;case Co.DraggableRect:return ri}},[ln,ri,Kn]),eo=(0,ye.useRef)(null),Zo=(0,ye.useCallback)(()=>{const ia=eo.current;if(!ia)return;const qo=po.current.x*to.current.x,Sn=po.current.y*to.current.y;ia.scrollBy(qo,Sn)},[]),$o=(0,ye.useMemo)(()=>Xn===$r.TreeOrder?[...Ei].reverse():Ei,[Xn,Ei]);(0,ye.useEffect)(()=>{if(!tn||!Ei.length||!Jr){kr();return}for(const ia of $o){if((jn==null?void 0:jn(ia))===!1)continue;const qo=Ei.indexOf(ia),Sn=vr[qo];if(!Sn)continue;const{direction:oa,speed:vs}=Be(ia,Sn,Jr,Bt,Bi);for(const Ga of["x","y"])zn[Ga][oa[Ga]]||(vs[Ga]=0,oa[Ga]=0);if(vs.x>0||vs.y>0){kr(),eo.current=ia,pr(Zo,bn),po.current=vs,to.current=oa;return}}po.current={x:0,y:0},to.current={x:0,y:0},kr()},[Bt,Zo,jn,kr,tn,bn,JSON.stringify(Jr),JSON.stringify(zn),pr,Ei,$o,vr,JSON.stringify(Bi)])}const Fo={x:{[xn.Backward]:!1,[xn.Forward]:!1},y:{[xn.Backward]:!1,[xn.Forward]:!1}};function ti(yt){let{delta:Bt,disabled:ln}=yt;const jn=(0,He.D9)(Bt);return(0,He.Gj)(ri=>{if(ln||!jn||!ri)return Fo;const tn={x:Math.sign(Bt.x-jn.x),y:Math.sign(Bt.y-jn.y)};return{x:{[xn.Backward]:ri.x[xn.Backward]||tn.x===-1,[xn.Forward]:ri.x[xn.Forward]||tn.x===1},y:{[xn.Backward]:ri.y[xn.Backward]||tn.y===-1,[xn.Forward]:ri.y[xn.Forward]||tn.y===1}}},[ln,Bt,jn])}function Ae(yt,Bt){const ln=Bt!=null?yt.get(Bt):void 0,jn=ln?ln.node.current:null;return(0,He.Gj)(ri=>{var tn;return Bt==null?null:(tn=jn!=null?jn:ri)!=null?tn:null},[jn,Bt])}function $n(yt,Bt){return(0,ye.useMemo)(()=>yt.reduce((ln,jn)=>{const{sensor:ri}=jn,tn=ri.activators.map(bn=>({eventName:bn.eventName,handler:Bt(bn.handler,jn)}));return[...ln,...tn]},[]),[yt,Bt])}var oi;(function(yt){yt[yt.Always=0]="Always",yt[yt.BeforeDragging=1]="BeforeDragging",yt[yt.WhileDragging=2]="WhileDragging"})(oi||(oi={}));var fn;(function(yt){yt.Optimized="optimized"})(fn||(fn={}));const Qn=new Map;function Zn(yt,Bt){let{dragging:ln,dependencies:jn,config:ri}=Bt;const[tn,bn]=(0,ye.useState)(null),{frequency:Xn,measure:Kn,strategy:Ei}=ri,vr=(0,ye.useRef)(yt),Ai=po(),Bi=(0,He.Ey)(Ai),zn=(0,ye.useCallback)(function(to){to===void 0&&(to=[]),!Bi.current&&bn(Jr=>Jr===null?to:Jr.concat(to.filter(eo=>!Jr.includes(eo))))},[Bi]),pr=(0,ye.useRef)(null),kr=(0,He.Gj)(to=>{if(Ai&&!ln)return Qn;if(!to||to===Qn||vr.current!==yt||tn!=null){const Jr=new Map;for(let eo of yt){if(!eo)continue;if(tn&&tn.length>0&&!tn.includes(eo.id)&&eo.rect.current){Jr.set(eo.id,eo.rect.current);continue}const Zo=eo.node.current,$o=Zo?new Ct(Kn(Zo),Zo):null;eo.rect.current=$o,$o&&Jr.set(eo.id,$o)}return Jr}return to},[yt,tn,ln,Ai,Kn]);return(0,ye.useEffect)(()=>{vr.current=yt},[yt]),(0,ye.useEffect)(()=>{Ai||zn()},[ln,Ai]),(0,ye.useEffect)(()=>{tn&&tn.length>0&&bn(null)},[JSON.stringify(tn)]),(0,ye.useEffect)(()=>{Ai||typeof Xn!="number"||pr.current!==null||(pr.current=setTimeout(()=>{zn(),pr.current=null},Xn))},[Xn,Ai,zn,...jn]),{droppableRects:kr,measureDroppableContainers:zn,measuringScheduled:tn!=null};function po(){switch(Ei){case oi.Always:return!1;case oi.BeforeDragging:return ln;default:return!ln}}}function an(yt,Bt){return(0,He.Gj)(ln=>yt?ln||(typeof Bt=="function"?Bt(yt):yt):null,[Bt,yt])}function Jt(yt,Bt){return an(yt,Bt)}function vn(yt){let{callback:Bt,disabled:ln}=yt;const jn=(0,He.zX)(Bt),ri=(0,ye.useMemo)(()=>{if(ln||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:tn}=window;return new tn(jn)},[jn,ln]);return(0,ye.useEffect)(()=>()=>ri==null?void 0:ri.disconnect(),[ri]),ri}function xt(yt){let{callback:Bt,disabled:ln}=yt;const jn=(0,He.zX)(Bt),ri=(0,ye.useMemo)(()=>{if(ln||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:tn}=window;return new tn(jn)},[ln]);return(0,ye.useEffect)(()=>()=>ri==null?void 0:ri.disconnect(),[ri]),ri}function wt(yt){return new Ct(Lt(yt),yt)}function ze(yt,Bt,ln){Bt===void 0&&(Bt=wt);const[jn,ri]=(0,ye.useState)(null);function tn(){ri(Kn=>{if(!yt)return null;if(yt.isConnected===!1){var Ei;return(Ei=Kn!=null?Kn:ln)!=null?Ei:null}const vr=Bt(yt);return JSON.stringify(Kn)===JSON.stringify(vr)?Kn:vr})}const bn=vn({callback(Kn){if(yt)for(const Ei of Kn){const{type:vr,target:Ai}=Ei;if(vr==="childList"&&Ai instanceof HTMLElement&&Ai.contains(yt)){tn();break}}}}),Xn=xt({callback:tn});return(0,He.LI)(()=>{tn(),yt?(Xn==null||Xn.observe(yt),bn==null||bn.observe(document.body,{childList:!0,subtree:!0})):(Xn==null||Xn.disconnect(),bn==null||bn.disconnect())},[yt]),jn}function Yt(yt){const Bt=an(yt);return zt(yt,Bt)}const on=[];function ht(yt){const Bt=(0,ye.useRef)(yt),ln=(0,He.Gj)(jn=>yt?jn&&jn!==on&&yt&&Bt.current&&yt.parentNode===Bt.current.parentNode?jn:nn(yt):on,[yt]);return(0,ye.useEffect)(()=>{Bt.current=yt},[yt]),ln}function Qe(yt){const[Bt,ln]=(0,ye.useState)(null),jn=(0,ye.useRef)(yt),ri=(0,ye.useCallback)(tn=>{const bn=dn(tn.target);bn&&ln(Xn=>Xn?(Xn.set(bn,Gn(bn)),new Map(Xn)):null)},[]);return(0,ye.useEffect)(()=>{const tn=jn.current;if(yt!==tn){bn(tn);const Xn=yt.map(Kn=>{const Ei=dn(Kn);return Ei?(Ei.addEventListener("scroll",ri,{passive:!0}),[Ei,Gn(Ei)]):null}).filter(Kn=>Kn!=null);ln(Xn.length?new Map(Xn):null),jn.current=yt}return()=>{bn(yt),bn(tn)};function bn(Xn){Xn.forEach(Kn=>{const Ei=dn(Kn);Ei==null||Ei.removeEventListener("scroll",ri)})}},[ri,yt]),(0,ye.useMemo)(()=>yt.length?Bt?Array.from(Bt.values()).reduce((tn,bn)=>(0,He.IH)(tn,bn),se):Se(yt):se,[yt,Bt])}function _t(yt,Bt){Bt===void 0&&(Bt=[]);const ln=(0,ye.useRef)(null);return(0,ye.useEffect)(()=>{ln.current=null},Bt),(0,ye.useEffect)(()=>{const jn=yt!==se;jn&&!ln.current&&(ln.current=yt),!jn&&ln.current&&(ln.current=null)},[yt]),ln.current?(0,He.$X)(yt,ln.current):se}function It(yt){(0,ye.useEffect)(()=>{if(!He.Nq)return;const Bt=yt.map(ln=>{let{sensor:jn}=ln;return jn.setup==null?void 0:jn.setup()});return()=>{for(const ln of Bt)ln==null||ln()}},yt.map(Bt=>{let{sensor:ln}=Bt;return ln}))}function Fn(yt,Bt){return(0,ye.useMemo)(()=>yt.reduce((ln,jn)=>{let{eventName:ri,handler:tn}=jn;return ln[ri]=bn=>{tn(bn,Bt)},ln},{}),[yt,Bt])}function Hn(yt){return(0,ye.useMemo)(()=>yt?mn(yt):null,[yt])}const ct=[];function sn(yt,Bt){Bt===void 0&&(Bt=Lt);const[ln]=yt,jn=Hn(ln?(0,He.Jj)(ln):null),[ri,tn]=(0,ye.useState)(ct);function bn(){tn(()=>yt.length?yt.map(Kn=>tt(Kn)?jn:new Ct(Bt(Kn),Kn)):ct)}const Xn=xt({callback:bn});return(0,He.LI)(()=>{Xn==null||Xn.disconnect(),bn(),yt.forEach(Kn=>Xn==null?void 0:Xn.observe(Kn))},[yt]),ri}function Un(yt){if(!yt)return null;if(yt.children.length>1)return yt;const Bt=yt.children[0];return(0,He.Re)(Bt)?Bt:yt}function _n(yt){let{measure:Bt}=yt;const[ln,jn]=(0,ye.useState)(null),ri=(0,ye.useCallback)(Ei=>{for(const{target:vr}of Ei)if((0,He.Re)(vr)){jn(Ai=>{const Bi=Bt(vr);return Ai?tl(ha({},Ai),{width:Bi.width,height:Bi.height}):Bi});break}},[Bt]),tn=xt({callback:ri}),bn=(0,ye.useCallback)(Ei=>{const vr=Un(Ei);tn==null||tn.disconnect(),vr&&(tn==null||tn.observe(vr)),jn(vr?Bt(vr):null)},[Bt,tn]),[Xn,Kn]=(0,He.wm)(bn);return(0,ye.useMemo)(()=>({nodeRef:Xn,rect:ln,setRef:Kn}),[ln,Xn,Kn])}const Zt=[{sensor:Bn,options:{}},{sensor:vi,options:{}}],rn={current:{}},wi={draggable:{measure:yn},droppable:{measure:yn,strategy:oi.WhileDragging,frequency:fn.Optimized},dragOverlay:{measure:Lt}};class Ci extends Map{get(Bt){var ln;return Bt!=null&&(ln=super.get(Bt))!=null?ln:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(Bt=>{let{disabled:ln}=Bt;return!ln})}getNodeFor(Bt){var ln,jn;return(ln=(jn=this.get(Bt))==null?void 0:jn.node.current)!=null?ln:void 0}}const yi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ci,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:te},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:wi,measureDroppableContainers:te,windowRect:null,measuringScheduled:!1},ci={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:te,draggableNodes:new Map,over:null,measureDroppableContainers:te},Pi=(0,ye.createContext)(ci),Mi=(0,ye.createContext)(yi);function ji(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ci}}}function lr(yt,Bt){switch(Bt.type){case Me.DragStart:return tl(ha({},yt),{draggable:tl(ha({},yt.draggable),{initialCoordinates:Bt.initialCoordinates,active:Bt.active})});case Me.DragMove:return yt.draggable.active==null?yt:tl(ha({},yt),{draggable:tl(ha({},yt.draggable),{translate:{x:Bt.coordinates.x-yt.draggable.initialCoordinates.x,y:Bt.coordinates.y-yt.draggable.initialCoordinates.y}})});case Me.DragEnd:case Me.DragCancel:return tl(ha({},yt),{draggable:tl(ha({},yt.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Me.RegisterDroppable:{const{element:ln}=Bt,{id:jn}=ln,ri=new Ci(yt.droppable.containers);return ri.set(jn,ln),tl(ha({},yt),{droppable:tl(ha({},yt.droppable),{containers:ri})})}case Me.SetDroppableDisabled:{const{id:ln,key:jn,disabled:ri}=Bt,tn=yt.droppable.containers.get(ln);if(!tn||jn!==tn.key)return yt;const bn=new Ci(yt.droppable.containers);return bn.set(ln,tl(ha({},tn),{disabled:ri})),tl(ha({},yt),{droppable:tl(ha({},yt.droppable),{containers:bn})})}case Me.UnregisterDroppable:{const{id:ln,key:jn}=Bt,ri=yt.droppable.containers.get(ln);if(!ri||jn!==ri.key)return yt;const tn=new Ci(yt.droppable.containers);return tn.delete(ln),tl(ha({},yt),{droppable:tl(ha({},yt.droppable),{containers:tn})})}default:return yt}}function nr(yt){let{disabled:Bt}=yt;const{active:ln,activatorEvent:jn,draggableNodes:ri}=(0,ye.useContext)(Pi),tn=(0,He.D9)(jn),bn=(0,He.D9)(ln==null?void 0:ln.id);return(0,ye.useEffect)(()=>{if(!Bt&&!jn&&tn&&bn!=null){if(!(0,He.vd)(tn)||document.activeElement===tn.target)return;const Xn=ri.get(bn);if(!Xn)return;const{activatorNode:Kn,node:Ei}=Xn;if(!Kn.current&&!Ei.current)return;requestAnimationFrame(()=>{for(const vr of[Kn.current,Ei.current]){if(!vr)continue;const Ai=(0,He.so)(vr);if(Ai){Ai.focus();break}}})}},[jn,Bt,ri,bn,tn]),null}function Nn(yt,Bt){let ri=Bt,{transform:ln}=ri,jn=ov(ri,["transform"]);return yt!=null&&yt.length?yt.reduce((tn,bn)=>bn(ha({transform:tn},jn)),ln):ln}function Pr(yt){return(0,ye.useMemo)(()=>({draggable:ha(ha({},wi.draggable),yt==null?void 0:yt.draggable),droppable:ha(ha({},wi.droppable),yt==null?void 0:yt.droppable),dragOverlay:ha(ha({},wi.dragOverlay),yt==null?void 0:yt.dragOverlay)}),[yt==null?void 0:yt.draggable,yt==null?void 0:yt.droppable,yt==null?void 0:yt.dragOverlay])}function Tr(yt){let{activeNode:Bt,measure:ln,initialRect:jn,config:ri=!0}=yt;const tn=(0,ye.useRef)(!1),{x:bn,y:Xn}=typeof ri=="boolean"?{x:ri,y:ri}:ri;(0,He.LI)(()=>{if(!bn&&!Xn||!Bt){tn.current=!1;return}if(tn.current||!jn)return;const Ei=Bt==null?void 0:Bt.node.current;if(!Ei||Ei.isConnected===!1)return;const vr=ln(Ei),Ai=zt(vr,jn);if(bn||(Ai.x=0),Xn||(Ai.y=0),tn.current=!0,Math.abs(Ai.x)>0||Math.abs(Ai.y)>0){const Bi=On(Ei);Bi&&Bi.scrollBy({top:Ai.y,left:Ai.x})}},[Bt,bn,Xn,jn,ln])}const br=(0,ye.createContext)(tl(ha({},se),{scaleX:1,scaleY:1}));var Cn;(function(yt){yt[yt.Uninitialized=0]="Uninitialized",yt[yt.Initializing=1]="Initializing",yt[yt.Initialized=2]="Initialized"})(Cn||(Cn={}));const di=(0,ye.memo)(function(Bt){var ln,jn,ri,tn;let xs=Bt,{id:bn,accessibility:Xn,autoScroll:Kn=!0,children:Ei,sensors:vr=Zt,collisionDetection:Ai=Je,measuring:Bi,modifiers:zn}=xs,pr=ov(xs,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const kr=(0,ye.useReducer)(lr,void 0,ji),[po,to]=kr,[Jr,eo]=et(),[Zo,$o]=(0,ye.useState)(Cn.Uninitialized),ia=Zo===Cn.Initialized,{draggable:{active:qo,nodes:Sn,translate:oa},droppable:{containers:vs}}=po,Ga=qo!=null?Sn.get(qo):null,Zs=(0,ye.useRef)({initial:null,translated:null}),xa=(0,ye.useMemo)(()=>{var Ks;return qo!=null?{id:qo,data:(Ks=Ga==null?void 0:Ga.data)!=null?Ks:rn,rect:Zs}:null},[qo,Ga]),pl=(0,ye.useRef)(null),[wa,Ao]=(0,ye.useState)(null),[Ko,Ka]=(0,ye.useState)(null),Kr=(0,He.Ey)(pr,Object.values(pr)),No=(0,He.Ld)("DndDescribedBy",bn),ro=(0,ye.useMemo)(()=>vs.getEnabled(),[vs]),Hi=Pr(Bi),{droppableRects:fa,measureDroppableContainers:ka,measuringScheduled:Ds}=Zn(ro,{dragging:ia,dependencies:[oa.x,oa.y],config:Hi.droppable}),ys=Ae(Sn,qo),nl=(0,ye.useMemo)(()=>Ko?(0,He.DC)(Ko):null,[Ko]),Gi=Ls(),Da=Jt(ys,Hi.draggable.measure);Tr({activeNode:qo!=null?Sn.get(qo):null,config:Gi.layoutShiftCompensation,initialRect:Da,measure:Hi.draggable.measure});const pa=ze(ys,Hi.draggable.measure,Da),Os=ze(ys?ys.parentElement:null),ml=(0,ye.useRef)({activatorEvent:null,active:null,activeNode:ys,collisionRect:null,collisions:null,droppableRects:fa,draggableNodes:Sn,draggingNode:null,draggingNodeRect:null,droppableContainers:vs,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Gl=vs.getNodeFor((ln=ml.current.over)==null?void 0:ln.id),So=_n({measure:Hi.dragOverlay.measure}),Au=(jn=So.nodeRef.current)!=null?jn:ys,il=ia?(ri=So.rect)!=null?ri:pa:null,Nl=!!(So.nodeRef.current&&So.rect),vl=Yt(Nl?null:pa),fu=Hn(Au?(0,He.Jj)(Au):null),yl=ht(ia?Gl!=null?Gl:ys:null),rl=sn(yl),Sl=Nn(zn,{transform:{x:oa.x-vl.x,y:oa.y-vl.y,scaleX:1,scaleY:1},activatorEvent:Ko,active:xa,activeNodeRect:pa,containerNodeRect:Os,draggingNodeRect:il,over:ml.current.over,overlayNodeRect:So.rect,scrollableAncestors:yl,scrollableAncestorRects:rl,windowRect:fu}),oc=nl?(0,He.IH)(nl,oa):null,Sc=Qe(yl),xc=_t(Sc),Qc=_t(Sc,[pa]),gu=(0,He.IH)(Sl,xc),zl=il?Mt(il,Sl):null,xl=xa&&zl?Ai({active:xa,collisionRect:zl,droppableRects:fa,droppableContainers:ro,pointerCoordinates:oc}):null,Tl=Ie(xl,"id"),[pu,wc]=(0,ye.useState)(null),mu=Nl?Sl:(0,He.IH)(Sl,Qc),Jo=Wt(mu,(tn=pu==null?void 0:pu.rect)!=null?tn:null,pa),ma=(0,ye.useRef)(null),dl=(0,ye.useCallback)((Ks,Bs)=>{let{sensor:Fa,options:Hu}=Bs;if(pl.current==null)return;const Ol=Sn.get(pl.current);if(!Ol)return;const El=Ks.nativeEvent,jr=new Fa({active:pl.current,activeNode:Ol,event:El,options:Hu,context:ml,onAbort(Vt){if(!Sn.get(Vt))return;const{onDragAbort:Mu}=Kr.current,Fu={id:Vt};Mu==null||Mu(Fu),Jr({type:"onDragAbort",event:Fu})},onPending(Vt,gi,Mu,Fu){if(!Sn.get(Vt))return;const{onDragPending:$l}=Kr.current,jl={id:Vt,constraint:gi,initialCoordinates:Mu,offset:Fu};$l==null||$l(jl),Jr({type:"onDragPending",event:jl})},onStart(Vt){const gi=pl.current;if(gi==null)return;const Mu=Sn.get(gi);if(!Mu)return;const{onDragStart:Fu}=Kr.current,_l={activatorEvent:El,active:{id:gi,data:Mu.data,rect:Zs}};(0,Oe.unstable_batchedUpdates)(()=>{Fu==null||Fu(_l),$o(Cn.Initializing),to({type:Me.DragStart,initialCoordinates:Vt,active:gi}),Jr({type:"onDragStart",event:_l}),Ao(ma.current),Ka(El)})},onMove(Vt){to({type:Me.DragMove,coordinates:Vt})},onEnd:Lu(Me.DragEnd),onCancel:Lu(Me.DragCancel)});ma.current=jr;function Lu(Vt){return function(){return Cx(this,null,function*(){const{active:Mu,collisions:Fu,over:_l,scrollAdjustedTranslate:$l}=ml.current;let jl=null;if(Mu&&$l){const{cancelDrop:Pc}=Kr.current;jl={activatorEvent:El,active:Mu,collisions:Fu,delta:$l,over:_l},Vt===Me.DragEnd&&typeof Pc=="function"&&(yield Promise.resolve(Pc(jl)))&&(Vt=Me.DragCancel)}pl.current=null,(0,Oe.unstable_batchedUpdates)(()=>{to({type:Vt}),$o(Cn.Uninitialized),wc(null),Ao(null),Ka(null),ma.current=null;const Pc=Vt===Me.DragEnd?"onDragEnd":"onDragCancel";if(jl){const Ic=Kr.current[Pc];Ic==null||Ic(jl),Jr({type:Pc,event:jl})}})})}}},[Sn]),Cs=(0,ye.useCallback)((Ks,Bs)=>(Fa,Hu)=>{const Ol=Fa.nativeEvent,El=Sn.get(Hu);if(pl.current!==null||!El||Ol.dndKit||Ol.defaultPrevented)return;const jr={active:El};Ks(Fa,Bs.options,jr)===!0&&(Ol.dndKit={capturedBy:Bs.sensor},pl.current=Hu,dl(Fa,Bs))},[Sn,dl]),Ss=$n(vr,Cs);It(vr),(0,He.LI)(()=>{pa&&Zo===Cn.Initializing&&$o(Cn.Initialized)},[pa,Zo]),(0,ye.useEffect)(()=>{const{onDragMove:Ks}=Kr.current,{active:Bs,activatorEvent:Fa,collisions:Hu,over:Ol}=ml.current;if(!Bs||!Fa)return;const El={active:Bs,activatorEvent:Fa,collisions:Hu,delta:{x:gu.x,y:gu.y},over:Ol};(0,Oe.unstable_batchedUpdates)(()=>{Ks==null||Ks(El),Jr({type:"onDragMove",event:El})})},[gu.x,gu.y]),(0,ye.useEffect)(()=>{const{active:Ks,activatorEvent:Bs,collisions:Fa,droppableContainers:Hu,scrollAdjustedTranslate:Ol}=ml.current;if(!Ks||pl.current==null||!Bs||!Ol)return;const{onDragOver:El}=Kr.current,jr=Hu.get(Tl),Lu=jr&&jr.rect.current?{id:jr.id,rect:jr.rect.current,data:jr.data,disabled:jr.disabled}:null,Vt={active:Ks,activatorEvent:Bs,collisions:Fa,delta:{x:Ol.x,y:Ol.y},over:Lu};(0,Oe.unstable_batchedUpdates)(()=>{wc(Lu),El==null||El(Vt),Jr({type:"onDragOver",event:Vt})})},[Tl]),(0,He.LI)(()=>{ml.current={activatorEvent:Ko,active:xa,activeNode:ys,collisionRect:zl,collisions:xl,droppableRects:fa,draggableNodes:Sn,draggingNode:Au,draggingNodeRect:il,droppableContainers:vs,over:pu,scrollableAncestors:yl,scrollAdjustedTranslate:gu},Zs.current={initial:il,translated:zl}},[xa,ys,xl,zl,Sn,Au,il,fa,vs,pu,yl,gu]),sr(tl(ha({},Gi),{delta:oa,draggingRect:zl,pointerCoordinates:oc,scrollableAncestors:yl,scrollableAncestorRects:rl}));const rs=(0,ye.useMemo)(()=>({active:xa,activeNode:ys,activeNodeRect:pa,activatorEvent:Ko,collisions:xl,containerNodeRect:Os,dragOverlay:So,draggableNodes:Sn,droppableContainers:vs,droppableRects:fa,over:pu,measureDroppableContainers:ka,scrollableAncestors:yl,scrollableAncestorRects:rl,measuringConfiguration:Hi,measuringScheduled:Ds,windowRect:fu}),[xa,ys,pa,Ko,xl,Os,So,Sn,vs,fa,pu,ka,yl,rl,Hi,Ds,fu]),ds=(0,ye.useMemo)(()=>({activatorEvent:Ko,activators:Ss,active:xa,activeNodeRect:pa,ariaDescribedById:{draggable:No},dispatch:to,draggableNodes:Sn,over:pu,measureDroppableContainers:ka}),[Ko,Ss,xa,pa,to,No,Sn,pu,ka]);return ye.createElement(Tt.Provider,{value:eo},ye.createElement(Pi.Provider,{value:ds},ye.createElement(Mi.Provider,{value:rs},ye.createElement(br.Provider,{value:Jo},Ei)),ye.createElement(nr,{disabled:(Xn==null?void 0:Xn.restoreFocus)===!1})),ye.createElement(Pt,tl(ha({},Xn),{hiddenTextDescribedById:No})));function Ls(){const Ks=(wa==null?void 0:wa.autoScrollEnabled)===!1,Bs=typeof Kn=="object"?Kn.enabled===!1:Kn===!1,Fa=ia&&!Ks&&!Bs;return typeof Kn=="object"?tl(ha({},Kn),{enabled:Fa}):{enabled:Fa}}}),Ki=(0,ye.createContext)(null),ir="button",Yi="Draggable";function cr(yt){let{id:Bt,data:ln,disabled:jn=!1,attributes:ri}=yt;const tn=(0,He.Ld)(Yi),{activators:bn,activatorEvent:Xn,active:Kn,activeNodeRect:Ei,ariaDescribedById:vr,draggableNodes:Ai,over:Bi}=(0,ye.useContext)(Pi),{role:zn=ir,roleDescription:pr="draggable",tabIndex:kr=0}=ri!=null?ri:{},po=(Kn==null?void 0:Kn.id)===Bt,to=(0,ye.useContext)(po?br:Ki),[Jr,eo]=(0,He.wm)(),[Zo,$o]=(0,He.wm)(),ia=Fn(bn,Bt),qo=(0,He.Ey)(ln);(0,He.LI)(()=>(Ai.set(Bt,{id:Bt,key:tn,node:Jr,activatorNode:Zo,data:qo}),()=>{const oa=Ai.get(Bt);oa&&oa.key===tn&&Ai.delete(Bt)}),[Ai,Bt]);const Sn=(0,ye.useMemo)(()=>({role:zn,tabIndex:kr,"aria-disabled":jn,"aria-pressed":po&&zn===ir?!0:void 0,"aria-roledescription":pr,"aria-describedby":vr.draggable}),[jn,zn,kr,po,pr,vr.draggable]);return{active:Kn,activatorEvent:Xn,activeNodeRect:Ei,attributes:Sn,isDragging:po,listeners:jn?void 0:ia,node:Jr,over:Bi,setNodeRef:eo,setActivatorNodeRef:$o,transform:to}}function Mr(){return(0,ye.useContext)(Mi)}const Di="Droppable",Ui={timeout:25};function Wi(yt){let{data:Bt,disabled:ln=!1,id:jn,resizeObserverConfig:ri}=yt;const tn=(0,He.Ld)(Di),{active:bn,dispatch:Xn,over:Kn,measureDroppableContainers:Ei}=(0,ye.useContext)(Pi),vr=(0,ye.useRef)({disabled:ln}),Ai=(0,ye.useRef)(!1),Bi=(0,ye.useRef)(null),zn=(0,ye.useRef)(null),{disabled:pr,updateMeasurementsFor:kr,timeout:po}=ha(ha({},Ui),ri),to=(0,He.Ey)(kr!=null?kr:jn),Jr=(0,ye.useCallback)(()=>{if(!Ai.current){Ai.current=!0;return}zn.current!=null&&clearTimeout(zn.current),zn.current=setTimeout(()=>{Ei(Array.isArray(to.current)?to.current:[to.current]),zn.current=null},po)},[po]),eo=xt({callback:Jr,disabled:pr||!bn}),Zo=(0,ye.useCallback)((Sn,oa)=>{eo&&(oa&&(eo.unobserve(oa),Ai.current=!1),Sn&&eo.observe(Sn))},[eo]),[$o,ia]=(0,He.wm)(Zo),qo=(0,He.Ey)(Bt);return(0,ye.useEffect)(()=>{!eo||!$o.current||(eo.disconnect(),Ai.current=!1,eo.observe($o.current))},[$o,eo]),(0,ye.useEffect)(()=>(Xn({type:Me.RegisterDroppable,element:{id:jn,key:tn,disabled:ln,node:$o,rect:Bi,data:qo}}),()=>Xn({type:Me.UnregisterDroppable,key:tn,id:jn})),[jn]),(0,ye.useEffect)(()=>{ln!==vr.current.disabled&&(Xn({type:Me.SetDroppableDisabled,id:jn,key:tn,disabled:ln}),vr.current.disabled=ln)},[jn,tn,ln,Xn]),{active:bn,rect:Bi,isOver:(Kn==null?void 0:Kn.id)===jn,node:$o,over:Kn,setNodeRef:ia}}function Dn(yt){let{animation:Bt,children:ln}=yt;const[jn,ri]=useState(null),[tn,bn]=useState(null),Xn=usePrevious(ln);return!ln&&!jn&&Xn&&ri(Xn),useIsomorphicLayoutEffect(()=>{if(!tn)return;const Kn=jn==null?void 0:jn.key,Ei=jn==null?void 0:jn.props.id;if(Kn==null||Ei==null){ri(null);return}Promise.resolve(Bt(Ei,tn)).then(()=>{ri(null)})},[Bt,jn,tn]),React.createElement(React.Fragment,null,ln,jn?cloneElement(jn,{ref:bn}):null)}const Fr={x:0,y:0,scaleX:1,scaleY:1};function Ln(yt){let{children:Bt}=yt;return React.createElement(Pi.Provider,{value:ci},React.createElement(br.Provider,{value:Fr},Bt))}const fr={position:"fixed",touchAction:"none"},Ur=yt=>isKeyboardEvent(yt)?"transform 250ms ease":void 0,Cr=null,yr={duration:250,easing:"ease",keyframes:yt=>{let{transform:{initial:Bt,final:ln}}=yt;return[{transform:He.ux.Transform.toString(Bt)},{transform:He.ux.Transform.toString(ln)}]},sideEffects:(yt=>Bt=>{let{active:ln,dragOverlay:jn}=Bt;const ri={},{styles:tn,className:bn}=yt;if(tn!=null&&tn.active)for(const[Xn,Kn]of Object.entries(tn.active))Kn!==void 0&&(ri[Xn]=ln.node.style.getPropertyValue(Xn),ln.node.style.setProperty(Xn,Kn));if(tn!=null&&tn.dragOverlay)for(const[Xn,Kn]of Object.entries(tn.dragOverlay))Kn!==void 0&&jn.node.style.setProperty(Xn,Kn);return bn!=null&&bn.active&&ln.node.classList.add(bn.active),bn!=null&&bn.dragOverlay&&jn.node.classList.add(bn.dragOverlay),function(){for(const[Kn,Ei]of Object.entries(ri))ln.node.style.setProperty(Kn,Ei);bn!=null&&bn.active&&ln.node.classList.remove(bn.active)}})({styles:{active:{opacity:"0"}}})};function gr(yt){let{config:Bt,draggableNodes:ln,droppableContainers:jn,measuringConfiguration:ri}=yt;return useEvent((tn,bn)=>{if(Bt===null)return;const Xn=ln.get(tn);if(!Xn)return;const Kn=Xn.node.current;if(!Kn)return;const Ei=Un(bn);if(!Ei)return;const{transform:vr}=getWindow(bn).getComputedStyle(bn),Ai=Ut(vr);if(!Ai)return;const Bi=typeof Bt=="function"?Bt:hr(Bt);return Ve(Kn,ri.draggable.measure),Bi({active:{id:tn,data:Xn.data,node:Kn,rect:ri.draggable.measure(Kn)},draggableNodes:ln,dragOverlay:{node:bn,rect:ri.dragOverlay.measure(Ei)},droppableContainers:jn,measuringConfiguration:ri,transform:Ai})})}function hr(yt){const{duration:Bt,easing:ln,sideEffects:jn,keyframes:ri}=ha(ha({},yr),yt);return tn=>{let Jr=tn,{active:bn,dragOverlay:Xn,transform:Kn}=Jr,Ei=ov(Jr,["active","dragOverlay","transform"]);if(!Bt)return;const vr={x:Xn.rect.left-bn.rect.left,y:Xn.rect.top-bn.rect.top},Ai={scaleX:Kn.scaleX!==1?bn.rect.width*Kn.scaleX/Xn.rect.width:1,scaleY:Kn.scaleY!==1?bn.rect.height*Kn.scaleY/Xn.rect.height:1},Bi=ha({x:Kn.x-vr.x,y:Kn.y-vr.y},Ai),zn=ri(tl(ha({},Ei),{active:bn,dragOverlay:Xn,transform:{initial:Kn,final:Bi}})),[pr]=zn,kr=zn[zn.length-1];if(JSON.stringify(pr)===JSON.stringify(kr))return;const po=jn==null?void 0:jn(ha({active:bn,dragOverlay:Xn},Ei)),to=Xn.node.animate(zn,{duration:Bt,easing:ln,fill:"forwards"});return new Promise(eo=>{to.onfinish=()=>{po==null||po(),eo()}})}}let Gr=0;function Oi(yt){return useMemo(()=>{if(yt!=null)return Gr++,Gr},[yt])}const _e=null},18257:function(Rn,Mn,ve){"use strict";ve.d(Mn,{DL:function(){return De}});var ye=ve(35241);function Oe(et){return Ot=>{let{transform:it}=Ot;return tl(ha({},it),{x:Math.ceil(it.x/et)*et,y:Math.ceil(it.y/et)*et})}}const He=et=>{let{transform:Ot}=et;return tl(ha({},Ot),{y:0})};function Rt(et,Ot,it){const Pt=ha({},et);return Ot.top+et.y<=it.top?Pt.y=it.top-Ot.top:Ot.bottom+et.y>=it.top+it.height&&(Pt.y=it.top+it.height-Ot.bottom),Ot.left+et.x<=it.left?Pt.x=it.left-Ot.left:Ot.right+et.x>=it.left+it.width&&(Pt.x=it.left+it.width-Ot.right),Pt}const $e=et=>{let{containerNodeRect:Ot,draggingNodeRect:it,transform:Pt}=et;return!it||!Ot?Pt:Rt(Pt,it,Ot)},qe=et=>{let{draggingNodeRect:Ot,transform:it,scrollableAncestorRects:Pt}=et;const Me=Pt[0];return!Ot||!Me?it:Rt(it,Ot,Me)},De=et=>{let{transform:Ot}=et;return tl(ha({},Ot),{x:0})},Tt=et=>{let{transform:Ot,draggingNodeRect:it,windowRect:Pt}=et;return!it||!Pt?Ot:Rt(Ot,it,Pt)},Et=et=>{let{activatorEvent:Ot,draggingNodeRect:it,transform:Pt}=et;if(it&&Ot){const Me=getEventCoordinates(Ot);if(!Me)return Pt;const te=Me.x-it.left,ne=Me.y-it.top;return tl(ha({},Pt),{x:Pt.x+te-it.width/2,y:Pt.y+ne-it.height/2})}return Pt}},19719:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Fo:function(){return me},Rp:function(){return Rt},nB:function(){return pt},qw:function(){return ne}});var ye=ve(59301),Oe=ve(87954),He=ve(35241);function Rt(Mt,Ut,ft){const Re=Mt.slice();return Re.splice(ft<0?Re.length+ft:ft,0,Re.splice(Ut,1)[0]),Re}function $e(Mt,Ut,ft){const Re=Mt.slice();return Re[Ut]=Mt[ft],Re[ft]=Mt[Ut],Re}function qe(Mt,Ut){return Mt.reduce((ft,Re,Lt)=>{const yn=Ut.get(Re);return yn&&(ft[Lt]=yn),ft},Array(Mt.length))}function De(Mt){return Mt!==null&&Mt>=0}function Tt(Mt,Ut){if(Mt===Ut)return!0;if(Mt.length!==Ut.length)return!1;for(let ft=0;ft<Mt.length;ft++)if(Mt[ft]!==Ut[ft])return!1;return!0}function Et(Mt){return typeof Mt=="boolean"?{draggable:Mt,droppable:Mt}:Mt}const et={scaleX:1,scaleY:1},Ot=Mt=>{var Ut;let{rects:ft,activeNodeRect:Re,activeIndex:Lt,overIndex:yn,index:mn}=Mt;const Nt=(Ut=ft[Lt])!=null?Ut:Re;if(!Nt)return null;const en=it(ft,mn,Lt);if(mn===Lt){const nn=ft[yn];return nn?ha({x:Lt<yn?nn.left+nn.width-(Nt.left+Nt.width):nn.left-Nt.left,y:0},et):null}return mn>Lt&&mn<=yn?ha({x:-Nt.width-en,y:0},et):mn<Lt&&mn>=yn?ha({x:Nt.width+en,y:0},et):ha({x:0,y:0},et)};function it(Mt,Ut,ft){const Re=Mt[Ut],Lt=Mt[Ut-1],yn=Mt[Ut+1];return!Re||!Lt&&!yn?0:ft<Ut?Lt?Re.left-(Lt.left+Lt.width):yn.left-(Re.left+Re.width):yn?yn.left-(Re.left+Re.width):Re.left-(Lt.left+Lt.width)}const Pt=Mt=>{let{rects:Ut,activeIndex:ft,overIndex:Re,index:Lt}=Mt;const yn=Rt(Ut,Re,ft),mn=Ut[Lt],Nt=yn[Lt];return!Nt||!mn?null:{x:Nt.left-mn.left,y:Nt.top-mn.top,scaleX:Nt.width/mn.width,scaleY:Nt.height/mn.height}},Me=Mt=>{let{activeIndex:Ut,index:ft,rects:Re,overIndex:Lt}=Mt,yn,mn;return ft===Ut&&(yn=Re[ft],mn=Re[Lt]),ft===Lt&&(yn=Re[ft],mn=Re[Ut]),!mn||!yn?null:{x:mn.left-yn.left,y:mn.top-yn.top,scaleX:mn.width/yn.width,scaleY:mn.height/yn.height}},te={scaleX:1,scaleY:1},ne=Mt=>{var Ut;let{activeIndex:ft,activeNodeRect:Re,index:Lt,rects:yn,overIndex:mn}=Mt;const Nt=(Ut=yn[ft])!=null?Ut:Re;if(!Nt)return null;if(Lt===ft){const nn=yn[mn];return nn?ha({x:0,y:ft<mn?nn.top+nn.height-(Nt.top+Nt.height):nn.top-Nt.top},te):null}const en=ce(yn,Lt,ft);return Lt>ft&&Lt<=mn?ha({x:0,y:-Nt.height-en},te):Lt<ft&&Lt>=mn?ha({x:0,y:Nt.height+en},te):ha({x:0,y:0},te)};function ce(Mt,Ut,ft){const Re=Mt[Ut],Lt=Mt[Ut-1],yn=Mt[Ut+1];return Re?ft<Ut?Lt?Re.top-(Lt.top+Lt.height):yn?yn.top-(Re.top+Re.height):0:yn?yn.top-(Re.top+Re.height):Lt?Re.top-(Lt.top+Lt.height):0:0}const se="Sortable",ge=ye.createContext({activeIndex:-1,containerId:se,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Pt,disabled:{draggable:!1,droppable:!1}});function me(Mt){let{children:Ut,id:ft,items:Re,strategy:Lt=Pt,disabled:yn=!1}=Mt;const{active:mn,dragOverlay:Nt,droppableRects:en,over:nn,measureDroppableContainers:On}=(0,Oe.Cj)(),dn=(0,He.Ld)(se,ft),Tn=Nt.rect!==null,mt=(0,ye.useMemo)(()=>Re.map(st=>typeof st=="object"&&"id"in st?st.id:st),[Re]),Gn=mn!=null,xn=mn?mt.indexOf(mn.id):-1,tt=nn?mt.indexOf(nn.id):-1,Ee=(0,ye.useRef)(mt),we=!Tt(mt,Ee.current),Be=tt!==-1&&xn===-1||we,ke=Et(yn);(0,He.LI)(()=>{we&&Gn&&On(mt)},[we,mt,Gn,On]),(0,ye.useEffect)(()=>{Ee.current=mt},[mt]);const Se=(0,ye.useMemo)(()=>({activeIndex:xn,containerId:dn,disabled:ke,disableTransforms:Be,items:mt,overIndex:tt,useDragOverlay:Tn,sortedRects:qe(mt,en),strategy:Lt}),[xn,dn,ke.draggable,ke.droppable,Be,mt,tt,en,Tn,Lt]);return ye.createElement(ge.Provider,{value:Se},Ut)}const Ce=Mt=>{let{id:Ut,items:ft,activeIndex:Re,overIndex:Lt}=Mt;return Rt(ft,Re,Lt).indexOf(Ut)},Fe=Mt=>{let{containerId:Ut,isSorting:ft,wasDragging:Re,index:Lt,items:yn,newIndex:mn,previousItems:Nt,previousContainerId:en,transition:nn}=Mt;return!nn||!Re||Nt!==yn&&Lt===mn?!1:ft?!0:mn!==Lt&&Ut===en},Pe={duration:200,easing:"ease"},Ie="transform",Ge=He.ux.Transition.toString({property:Ie,duration:0,easing:"linear"}),Ke={roleDescription:"sortable"};function Ye(Mt){let{disabled:Ut,index:ft,node:Re,rect:Lt}=Mt;const[yn,mn]=(0,ye.useState)(null),Nt=(0,ye.useRef)(ft);return(0,He.LI)(()=>{if(!Ut&&ft!==Nt.current&&Re.current){const en=Lt.current;if(en){const nn=(0,Oe.VK)(Re.current,{ignoreTransform:!0}),On={x:en.left-nn.left,y:en.top-nn.top,scaleX:en.width/nn.width,scaleY:en.height/nn.height};(On.x||On.y)&&mn(On)}}ft!==Nt.current&&(Nt.current=ft)},[Ut,ft,Re,Lt]),(0,ye.useEffect)(()=>{yn&&mn(null)},[yn]),yn}function pt(Mt){let{animateLayoutChanges:Ut=Fe,attributes:ft,disabled:Re,data:Lt,getNewIndex:yn=Ce,id:mn,strategy:Nt,resizeObserverConfig:en,transition:nn=Pe}=Mt;const{items:On,containerId:dn,activeIndex:Tn,disabled:mt,disableTransforms:Gn,sortedRects:xn,overIndex:tt,useDragOverlay:Ee,strategy:we}=(0,ye.useContext)(ge),Be=Je(Re,mt),ke=On.indexOf(mn),Se=(0,ye.useMemo)(()=>ha({sortable:{containerId:dn,index:ke,items:On}},Lt),[dn,Lt,ke,On]),st=(0,ye.useMemo)(()=>On.slice(On.indexOf(mn)),[On,mn]),{rect:At,node:Ve,isOver:We,setNodeRef:Ct}=(0,Oe.Zj)({id:mn,data:Se,disabled:Be.droppable,resizeObserverConfig:ha({updateMeasurementsFor:st},en)}),{active:bt,activatorEvent:dt,activeNodeRect:Ht,attributes:En,setNodeRef:An,listeners:qt,isDragging:cn,over:qn,setActivatorNodeRef:wn,transform:vi}=(0,Oe.O1)({id:mn,data:Se,attributes:ha(ha({},Ke),ft),disabled:Be.draggable}),ei=(0,He.HB)(Ct,An),Li=!!bt,Vi=Li&&!Gn&&De(Tn)&&De(tt),zi=!Ee&&cn,Bn=zi&&Vi?vi:null,rr=Nt!=null?Nt:we,Yr=Vi?Bn!=null?Bn:rr({rects:xn,activeNodeRect:Ht,activeIndex:Tn,overIndex:tt,index:ke}):null,zr=De(Tn)&&De(tt)?yn({id:mn,items:On,activeIndex:Tn,overIndex:tt}):ke,Zr=bt==null?void 0:bt.id,Nr=(0,ye.useRef)({activeId:Zr,items:On,newIndex:zr,containerId:dn}),Co=On!==Nr.current.items,$r=Ut({active:bt,containerId:dn,isDragging:cn,isSorting:Li,id:mn,index:ke,items:On,newIndex:Nr.current.newIndex,previousItems:Nr.current.items,previousContainerId:Nr.current.containerId,transition:nn,wasDragging:Nr.current.activeId!=null}),sr=Ye({disabled:!$r,index:ke,node:Ve,rect:At});return(0,ye.useEffect)(()=>{Li&&Nr.current.newIndex!==zr&&(Nr.current.newIndex=zr),dn!==Nr.current.containerId&&(Nr.current.containerId=dn),On!==Nr.current.items&&(Nr.current.items=On)},[Li,zr,dn,On]),(0,ye.useEffect)(()=>{if(Zr===Nr.current.activeId)return;if(Zr&&!Nr.current.activeId){Nr.current.activeId=Zr;return}const ti=setTimeout(()=>{Nr.current.activeId=Zr},50);return()=>clearTimeout(ti)},[Zr]),{active:bt,activeIndex:Tn,attributes:En,data:Se,rect:At,index:ke,newIndex:zr,items:On,isOver:We,isSorting:Li,isDragging:cn,listeners:qt,node:Ve,overIndex:tt,over:qn,setNodeRef:ei,setActivatorNodeRef:wn,setDroppableNodeRef:Ct,setDraggableNodeRef:An,transform:sr!=null?sr:Yr,transition:Fo()};function Fo(){if(sr||Co&&Nr.current.newIndex===ke)return Ge;if(!(zi&&!(0,He.vd)(dt)||!nn)&&(Li||$r))return He.ux.Transition.toString(tl(ha({},nn),{property:Ie}))}}function Je(Mt,Ut){var ft,Re;return typeof Mt=="boolean"?{draggable:Mt,droppable:!1}:{draggable:(ft=Mt==null?void 0:Mt.draggable)!=null?ft:Ut.draggable,droppable:(Re=Mt==null?void 0:Mt.droppable)!=null?Re:Ut.droppable}}function kt(Mt){if(!Mt)return!1;const Ut=Mt.data.current;return!!(Ut&&"sortable"in Ut&&typeof Ut.sortable=="object"&&"containerId"in Ut.sortable&&"items"in Ut.sortable&&"index"in Ut.sortable)}const Xe=[Oe.g4.Down,Oe.g4.Right,Oe.g4.Up,Oe.g4.Left],Wt=(Mt,Ut)=>{let{context:{active:ft,collisionRect:Re,droppableRects:Lt,droppableContainers:yn,over:mn,scrollableAncestors:Nt}}=Ut;if(Xe.includes(Mt.code)){if(Mt.preventDefault(),!ft||!Re)return;const en=[];yn.getEnabled().forEach(dn=>{if(!dn||dn!=null&&dn.disabled)return;const Tn=Lt.get(dn.id);if(Tn)switch(Mt.code){case KeyboardCode.Down:Re.top<Tn.top&&en.push(dn);break;case KeyboardCode.Up:Re.top>Tn.top&&en.push(dn);break;case KeyboardCode.Left:Re.left>Tn.left&&en.push(dn);break;case KeyboardCode.Right:Re.left<Tn.left&&en.push(dn);break}});const nn=closestCorners({active:ft,collisionRect:Re,droppableRects:Lt,droppableContainers:en,pointerCoordinates:null});let On=getFirstCollision(nn,"id");if(On===(mn==null?void 0:mn.id)&&nn.length>1&&(On=nn[1].id),On!=null){const dn=yn.get(ft.id),Tn=yn.get(On),mt=Tn?Lt.get(Tn.id):null,Gn=Tn==null?void 0:Tn.node.current;if(Gn&&mt&&dn&&Tn){const tt=getScrollableAncestors(Gn).some((st,At)=>Nt[At]!==st),Ee=zt(dn,Tn),we=jt(dn,Tn),Be=tt||!Ee?{x:0,y:0}:{x:we?Re.width-mt.width:0,y:we?Re.height-mt.height:0},ke={x:mt.left,y:mt.top};return Be.x&&Be.y?ke:subtract(ke,Be)}}}};function zt(Mt,Ut){return!kt(Mt)||!kt(Ut)?!1:Mt.data.current.sortable.containerId===Ut.data.current.sortable.containerId}function jt(Mt,Ut){return!kt(Mt)||!kt(Ut)||!zt(Mt,Ut)?!1:Mt.data.current.sortable.index<Ut.data.current.sortable.index}},35241:function(Rn,Mn,ve){"use strict";ve.d(Mn,{$X:function(){return Fe},D9:function(){return ce},DC:function(){return Ke},Ey:function(){return Me},FJ:function(){return Rt},Gj:function(){return te},HB:function(){return Oe},IH:function(){return Ce},Jj:function(){return qe},LI:function(){return Ot},Ld:function(){return ge},Nq:function(){return He},Re:function(){return Tt},UG:function(){return $e},Yz:function(){return Pt},qk:function(){return De},r3:function(){return et},so:function(){return Je},ux:function(){return Ye},vZ:function(){return Et},vd:function(){return Ie},wm:function(){return ne},zX:function(){return it}});var ye=ve(59301);function Oe(){for(var kt=arguments.length,Xe=new Array(kt),Wt=0;Wt<kt;Wt++)Xe[Wt]=arguments[Wt];return(0,ye.useMemo)(()=>zt=>{Xe.forEach(jt=>jt(zt))},Xe)}const He=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Rt(kt){const Xe=Object.prototype.toString.call(kt);return Xe==="[object Window]"||Xe==="[object global]"}function $e(kt){return"nodeType"in kt}function qe(kt){var Xe,Wt;return kt?Rt(kt)?kt:$e(kt)&&(Xe=(Wt=kt.ownerDocument)==null?void 0:Wt.defaultView)!=null?Xe:window:window}function De(kt){const{Document:Xe}=qe(kt);return kt instanceof Xe}function Tt(kt){return Rt(kt)?!1:kt instanceof qe(kt).HTMLElement}function Et(kt){return kt instanceof qe(kt).SVGElement}function et(kt){return kt?Rt(kt)?kt.document:$e(kt)?De(kt)?kt:Tt(kt)||Et(kt)?kt.ownerDocument:document:document:document}const Ot=He?ye.useLayoutEffect:ye.useEffect;function it(kt){const Xe=(0,ye.useRef)(kt);return Ot(()=>{Xe.current=kt}),(0,ye.useCallback)(function(){for(var Wt=arguments.length,zt=new Array(Wt),jt=0;jt<Wt;jt++)zt[jt]=arguments[jt];return Xe.current==null?void 0:Xe.current(...zt)},[])}function Pt(){const kt=(0,ye.useRef)(null),Xe=(0,ye.useCallback)((zt,jt)=>{kt.current=setInterval(zt,jt)},[]),Wt=(0,ye.useCallback)(()=>{kt.current!==null&&(clearInterval(kt.current),kt.current=null)},[]);return[Xe,Wt]}function Me(kt,Xe){Xe===void 0&&(Xe=[kt]);const Wt=(0,ye.useRef)(kt);return Ot(()=>{Wt.current!==kt&&(Wt.current=kt)},Xe),Wt}function te(kt,Xe){const Wt=(0,ye.useRef)();return(0,ye.useMemo)(()=>{const zt=kt(Wt.current);return Wt.current=zt,zt},[...Xe])}function ne(kt){const Xe=it(kt),Wt=(0,ye.useRef)(null),zt=(0,ye.useCallback)(jt=>{jt!==Wt.current&&(Xe==null||Xe(jt,Wt.current)),Wt.current=jt},[]);return[Wt,zt]}function ce(kt){const Xe=(0,ye.useRef)();return(0,ye.useEffect)(()=>{Xe.current=kt},[kt]),Xe.current}let se={};function ge(kt,Xe){return(0,ye.useMemo)(()=>{if(Xe)return Xe;const Wt=se[kt]==null?0:se[kt]+1;return se[kt]=Wt,kt+"-"+Wt},[kt,Xe])}function me(kt){return function(Xe){for(var Wt=arguments.length,zt=new Array(Wt>1?Wt-1:0),jt=1;jt<Wt;jt++)zt[jt-1]=arguments[jt];return zt.reduce((Mt,Ut)=>{const ft=Object.entries(Ut);for(const[Re,Lt]of ft){const yn=Mt[Re];yn!=null&&(Mt[Re]=yn+kt*Lt)}return Mt},ha({},Xe))}}const Ce=me(1),Fe=me(-1);function Pe(kt){return"clientX"in kt&&"clientY"in kt}function Ie(kt){if(!kt)return!1;const{KeyboardEvent:Xe}=qe(kt.target);return Xe&&kt instanceof Xe}function Ge(kt){if(!kt)return!1;const{TouchEvent:Xe}=qe(kt.target);return Xe&&kt instanceof Xe}function Ke(kt){if(Ge(kt)){if(kt.touches&&kt.touches.length){const{clientX:Xe,clientY:Wt}=kt.touches[0];return{x:Xe,y:Wt}}else if(kt.changedTouches&&kt.changedTouches.length){const{clientX:Xe,clientY:Wt}=kt.changedTouches[0];return{x:Xe,y:Wt}}}return Pe(kt)?{x:kt.clientX,y:kt.clientY}:null}const Ye=Object.freeze({Translate:{toString(kt){if(!kt)return;const{x:Xe,y:Wt}=kt;return"translate3d("+(Xe?Math.round(Xe):0)+"px, "+(Wt?Math.round(Wt):0)+"px, 0)"}},Scale:{toString(kt){if(!kt)return;const{scaleX:Xe,scaleY:Wt}=kt;return"scaleX("+Xe+") scaleY("+Wt+")"}},Transform:{toString(kt){if(kt)return[Ye.Translate.toString(kt),Ye.Scale.toString(kt)].join(" ")}},Transition:{toString(kt){let{property:Xe,duration:Wt,easing:zt}=kt;return Xe+" "+Wt+"ms "+zt}}}),pt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Je(kt){return kt.matches(pt)?kt:kt.querySelector(pt)}},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(Rn,Mn){"use strict";Mn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},24990:function(Rn,Mn){"use strict";Mn.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl"}},84287:function(Rn,Mn,ve){"use strict";var ye=ve(59301),Oe=Object.defineProperty,He=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,qe=(Et,et,Ot)=>et in Et?Oe(Et,et,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Et[et]=Ot,De=(Et,et)=>{for(var Ot in et||(et={}))Rt.call(et,Ot)&&qe(Et,Ot,et[Ot]);if(He)for(var Ot of He(et))$e.call(et,Ot)&&qe(Et,Ot,et[Ot]);return Et};const Tt=Et=>React.createElement("svg",De({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Et),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Mn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},86087:function(Rn,Mn,ve){"use strict";var ye=ve(59301),Oe=Object.defineProperty,He=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,qe=(Et,et,Ot)=>et in Et?Oe(Et,et,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Et[et]=Ot,De=(Et,et)=>{for(var Ot in et||(et={}))Rt.call(et,Ot)&&qe(Et,Ot,et[Ot]);if(He)for(var Ot of He(et))$e.call(et,Ot)&&qe(Et,Ot,et[Ot]);return Et};const Tt=Et=>React.createElement("svg",De({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Et),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Mn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},74413:function(){"use strict";function Rn(Me,te,ne,ce){ne===void 0&&(ne=0),ce===void 0&&(ce=1/0),this._name=Me,this._defaultValue=te,this._minimum=ne,this._maximum=ce}Object.defineProperty(Rn.prototype,"name",{get:function(){return this._name},set:function(Me){if(typeof Me!="string"||Me==="")throw new Error("Shape name must be a valid string.");this._name=Me}}),Object.defineProperty(Rn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Me){if(typeof Me!="number"||isNaN(Me))throw new Error("The default value must be a real number, not: "+Me);this._defaultValue=Me}}),Object.defineProperty(Rn.prototype,"minimum",{get:function(){return this._minimum},set:function(Me){if(typeof Me!="number"||isNaN(Me))throw new Error("Minimum must be a real number, not: "+Me);this._minimum=Me}}),Object.defineProperty(Rn.prototype,"maximum",{get:function(){return this._maximum},set:function(Me){if(typeof Me!="number"||isNaN(Me))throw new Error("Maximum must be a real number, not: "+Me);this._maximum=Me}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Me,te){var ne=go.Shape._FigureParameters[Me];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Me,te,ne){if(!(ne instanceof Rn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var ce=go.Shape._FigureParameters[Me];ce||(ce=[],go.Shape._FigureParameters[Me]=ce),ce[te]=ne};var Mn=[];function ve(Me,te){var ne=Mn.pop();return ne===void 0?new go.Point(Me,te):(ne.x=Me,ne.y=te,ne)}function ye(){var Me=Mn.pop();return Me===void 0?new go.Point:Me}function Oe(Me){Mn.push(Me)}function He(Me,te,ne,ce,se,ge,me,Ce,Fe){Fe||(Fe=new go.Point);var Pe=Me-ne,Ie=se-me,Ge=NaN,Ke=NaN;if(Pe===0)if(Ie===0)Me===ne&&(Ge=Me,Ke=te);else{var Ye=(ge-Ce)/Ie,pt=ge-Ye*se;Ge=Me,Ke=Ye*Ge+pt}else if(Ie===0){var Je=(te-ce)/Pe,kt=te-Je*Me;Ge=se,Ke=Je*Ge+kt}else{var Je=(te-ce)/Pe,Ye=(ge-Ce)/Ie,kt=te-Je*Me,pt=ge-Ye*se;Ge=(pt-kt)/(Je-Ye),Ke=Je*Ge+kt}return Fe.x=Ge,Fe.y=Ke,Fe}function Rt(Me,te,ne,ce,se,ge,me,Ce,Fe,Pe,Ie,Ge,Ke,Ye){var pt=1-Fe,Je=Fe,kt=Me*pt+ne*Je,Xe=te*pt+ce*Je,Wt=ne*pt+se*Je,zt=ce*pt+ge*Je,jt=se*pt+me*Je,Mt=ge*pt+Ce*Je,Ut=kt*pt+Wt*Je,ft=Xe*pt+zt*Je,Re=Wt*pt+jt*Je,Lt=zt*pt+Mt*Je,yn=Ut*pt+Re*Je,mn=ft*pt+Lt*Je;Pe.x=kt,Pe.y=Xe,Ie.x=Ut,Ie.y=ft,Ge.x=yn,Ge.y=mn,Ke.x=Re,Ke.y=Lt,Ye.x=jt,Ye.y=Mt}var $e=new go.Spot(.156,.156),qe=new go.Spot(.844,.844),De=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Rn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=5),ce=Math.min(ce,te/3),ce=Math.min(ce,ne/3);var se=ce*De,ge=new go.Geometry().add(new go.PathFigure(ce,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-ce,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,ce,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ne-ce)).add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te,ne-se,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ce,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ce,se,ne,0,ne-se)).add(new go.PathSegment(go.PathSegment.Line,0,ce)).add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,se,se,0).close()));return se>1&&(ge.spot1=new go.Spot(0,0,se,se),ge.spot2=new go.Spot(1,1,-se,-se)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Me,te,ne){var ce=new go.Geometry(go.Geometry.Line);return ce.startX=0,ce.startY=ne/2,ce.endX=te,ce.endY=ne/2,ce}),go.Shape.defineFigureGenerator("LineV",function(Me,te,ne){var ce=new go.Geometry(go.Geometry.Line);return ce.startX=te/2,ce.startY=0,ce.endX=te/2,ce.endY=ne,ce}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Me,te,ne){var ce=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ce*te,(1-ce)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Move,ce*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,(1-ce)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(Me,te,ne){var ce=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ce,ce,ce,ce).close()));return se.spot1=$e,se.spot2=qe,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Me,te,ne){var ce=new go.Geometry(go.Geometry.Line);return ce.startX=0,ce.startY=0,ce.endX=te,ce.endY=ne,ce}),go.Shape.defineFigureGenerator("Line2",function(Me,te,ne){var ce=new go.Geometry(go.Geometry.Line);return ce.startX=te,ce.startY=0,ce.endX=0,ce.endY=ne,ce}),go.Shape.defineFigureGenerator("Curve1",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,De*te,0,te,(1-De)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,De*ne,(1-De)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,De*ne,De*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-De)*te,0,0,(1-De)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Rn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=.1:ce<-1?ce=-1:ce>1&&(ce=1);var se=Math.abs(ce)*te;if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Rn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=10:ce<-te?ce=-te:ce>te&&(ce=te);var se=Math.abs(ce);if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new Rn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=.2:ce<.5?ce=-.5:ce>.5&&(ce=.5);var se=Math.abs(ce)*te;if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Rn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=20:ce<-te?ce=-te/2:ce>te&&(ce=te/2);var se=Math.abs(ce);if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new Rn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)?ce=10:ce<-te?ce=-te/2:ce>te&&(ce=te/2);var se=Math.abs(ce);if(ce===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return ce>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())):ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}});var Tt=[];function Et(){var Me=Tt.pop();return Me===void 0?[]:Me}function et(Me){Me.length=0,Tt.push(Me)}function Ot(Me){for(var te=Et(),ne=.5,ce=.5,se=Math.PI*1.5,ge=0,me=0;me<Me;me++)ge=2*Math.PI/Me*me+se,te[me]=new go.Point(ce+ne*Math.cos(ge),ce+ne*Math.sin(ge));return te.push(te[0]),te}function it(Me){var te=Pt(Me),ne=Et();ne[0]=te[0];for(var ce=1,se=1;ce<te.length;ce+=2,se+=3)ne[se]=te[ce],ne[se+1]=te[ce],ne[se+2]=te[ce+1];return et(te),ne}function Pt(Me){for(var te=Ot(Me),ne=Et(),ce=Math.floor(te.length/2),se=te.length-1,ge=Me%2===0?2:1,me=0;me<se;me++){var Ce=te[me],Fe=te[me+1],Pe=te[(ce+me-1)%se],Ie=te[(ce+me+ge)%se];ne[me*2]=Ce,ne[me*2+1]=He(Ce.x,Ce.y,Pe.x,Pe.y,Fe.x,Fe.y,Ie.x,Ie.y,new go.Point)}return ne[ne.length]=ne[0],et(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Me,te,ne){var ce=Ot(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<5;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Me,te,ne){var ce=Ot(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<6;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Me,te,ne){var ce=Ot(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<7;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Me,te,ne){var ce=Ot(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<8;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Me,te,ne){var ce=Ot(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<9;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Me,te,ne){var ce=Ot(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Me,te,ne){var ce=Ot(12),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Me,te,ne){var ce=Pt(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Me,te,ne){var ce=Pt(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Me,te,ne){var ce=Pt(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<14;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Me,te,ne){var ce=Pt(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<16;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Me,te,ne){var ce=Pt(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<18;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Me,te,ne){var ce=Pt(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<20;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[me].x*te,ce[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,ce[0].x*te,ce[0].y*ne).close()),et(ce),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Me,te,ne){var ce=it(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<ce.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[me+2].x*te,ce[me+2].y*ne,ce[me].x*te,ce[me].y*ne,ce[me+1].x*te,ce[me+1].y*ne));return ge.segments.last().close(),et(ce),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Me,te,ne){var ce=it(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<ce.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[me+2].x*te,ce[me+2].y*ne,ce[me].x*te,ce[me].y*ne,ce[me+1].x*te,ce[me+1].y*ne));return ge.segments.last().close(),et(ce),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Me,te,ne){var ce=it(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<ce.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[me+2].x*te,ce[me+2].y*ne,ce[me].x*te,ce[me].y*ne,ce[me+1].x*te,ce[me+1].y*ne));return ge.segments.last().close(),et(ce),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Me,te,ne){var ce=it(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<ce.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[me+2].x*te,ce[me+2].y*ne,ce[me].x*te,ce[me].y*ne,ce[me+1].x*te,ce[me+1].y*ne));return ge.segments.last().close(),et(ce),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Me,te,ne){var ce=it(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<ce.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[me+2].x*te,ce[me+2].y*ne,ce[me].x*te,ce[me].y*ne,ce[me+1].x*te,ce[me+1].y*ne));return ge.segments.last().close(),et(ce),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Me,te,ne){var ce=it(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var me=1;me<ce.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[me+2].x*te,ce[me+2].y*ne,ce[me].x*te,ce[me].y*ne,ce[me+1].x*te,ce[me+1].y*ne));return ge.segments.last().close(),et(ce),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new Rn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Rn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Me,te,ne){var ce=Me?Me.parameter1:NaN,se=Me?Me.parameter2:NaN;isNaN(ce)&&(ce=8),isNaN(se)&&(se=8);var ge=new go.Geometry,me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce<te/2&&se<ne/2&&(me.add(new go.PathSegment(go.PathSegment.Move,ce,se)),me.add(new go.PathSegment(go.PathSegment.Line,ce,ne-se)),me.add(new go.PathSegment(go.PathSegment.Line,te-ce,ne-se)),me.add(new go.PathSegment(go.PathSegment.Line,te-ce,se).close())),ge.setSpots(0,0,1,1,ce,se,-ce,-se),ge}),go.Shape.setFigureParameter("Ring",0,new Rn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=8);var se=te/2,ge=new go.Geometry,me=new go.PathFigure(te,te/2,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var Ce=Math.max(se-ce,0);return Ce>0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+Ce,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,Ce,Ce).close())),ge.spot1=$e,ge.spot2=qe,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ne,-.09239631*te,.07836421*ne,.1406031*te,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ne,.2450511*te,-.00697547*ne,.3776197*te,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ne,.4539471*te,0,.6066018*te,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ne,.6914277*te,-.01904177*ne,.8921095*te,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ne,1.036446*te,.04105738*ne,1.020377*te,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ne,1.04448*te,.360238*ne,.992256*te,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ne,1.032337*te,.5771781*ne,1.018411*te,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ne,1.028411*te,.9571472*ne,.8556702*te,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ne,.7431877*te,1.009325*ne,.5624123*te,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ne,.4820677*te,1.031761*ne,.3030112*te,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ne,.2329994*te,1.01518*ne,.03213784*te,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ne,-.02812061*te,.9032597*ne,-.01205169*te,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ne,-.01812061*te,.6089503*ne,-.00606892*te,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ne,-.01606892*te,.3892545*ne,-.01205169*te,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Me,te,ne){var ce=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ce*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ce*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-ce)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,ce*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ce)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ce*ne).close())).setSpots(ce/2,ce/2,1-ce/2,1-ce/2)}),go.Shape.setFigureParameter("Pie",0,new Rn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Rn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Me,te,ne){var ce=Me?Me.parameter1:NaN,se=Me?Me.parameter2:NaN;isNaN(ce)&&(ce=0),isNaN(se)&&(se=315);var ge=ce%360;ge<0&&(ge+=360);var me=se%360,Ce=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(Ce,Ce).add(new go.PathSegment(go.PathSegment.Arc,ge,me,Ce,Ce,Ce,Ce).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Me,te,ne){var ce=De/Math.SQRT2*.5,se=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,ge*ne,te,(1-ce)*ne,(se+ce)*te,(ge+ce)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=30);var se=Math.min(ce,te)/2,ge=te/2,me=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Rn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=10);var se=Math.min(ce,te)/2,ge=te/2,me=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;if((isNaN(ce)||ce<0)&&(ce=30),te===0||ne===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ne,se}else{var ge=te/2,me=ne/2,Ce=Math.atan2(ne,te),Fe=ce-Math.min(Math.cos(Ce)*ce/2,ge),Pe=ce-Math.min(Math.sin(Ce)*ce/2,me),se=new go.Geometry,Ie=new go.PathFigure(Fe,0,!0);return se.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,.2*ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,te-Fe,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,te,Pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,te,ne-Pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,te-Fe,ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,.8*ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,Fe,ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ne-Pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new Rn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=10);var se=new go.Geometry,ge=new go.PathFigure(.1*te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new Rn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.2);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ce*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+ce/2)*te,ce*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+ce/2)*te,(1-ce)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,(1-ce)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-ce)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-ce/2)*te,(1-ce)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-ce/2)*te,ce*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ce*ne).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new Rn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.5);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Math.abs(1-ce)*te,.25*ne,Math.abs(1-ce)*te,.75*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ce*te,.75*ne,ce*te,.25*ne).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,De*te,0,te,(.5-De/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+De/2)*ne,De*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,0,te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ne,.5*te,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*te,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.5*ne,.9*te,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.6*te,.2*ne,te,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ne,te,.8*ne,.6*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,.5*te,.75*ne,.55*te,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ne,.45*te,.95*ne,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*te,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ne,0,.25*ne,.4*te,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.4*te,.6*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var ge=.2,me=.3,Ce=0,Fe=ge*De;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+ge+Ce)*ne,(.5-ge+me)*te,(.5+Fe+Ce)*ne,(.5-Fe+me)*te,(.5+ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*te,(.5+Ce)*ne,(.5+Fe+me)*te,(.5+ge+Ce)*ne,(.5+ge+me)*te,(.5+Fe+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+Ce)*ne,(1-.5+ge+me)*te,(.5-Fe+Ce)*ne,(.5+Fe+me)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-Fe+me)*te,(.5-ge+Ce)*ne,(.5-ge+me+.05)*te,(.5-Fe+Ce-.02)*ne)),ge=.2,me=0,Ce=-.3,Fe=ge*De,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*te,(.5+Ce)*ne,(.5+Fe+me)*te,(.5+ge+Ce)*ne,(.5+ge+me)*te,(.5+Fe+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+Ce)*ne,(1-.5+ge+me)*te,(.5-Fe+Ce)*ne,(.5+Fe+me)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*te,(.5+Ce)*ne,(.5-Fe+me)*te,(.5-ge+Ce)*ne,(.5-ge+me)*te,(.5-Fe+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Fe+me)*te,(.5+ge+Ce)*ne,(.5-ge+me)*te,(.5+Fe+Ce)*ne,(.5-Fe+me)*te,(.5+ge+Ce)*ne)),ge=.2,me=-.3,Ce=0,Fe=ge*De,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+Ce)*ne,(1-.5+ge+me-.05)*te,(.5-Fe+Ce-.02)*ne,(.5+Fe+me)*te,(.5-ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*te,(.5+Ce)*ne,(.5-Fe+me)*te,(.5-ge+Ce)*ne,(.5-ge+me)*te,(.5-Fe+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+ge+Ce)*ne,(.5-ge+me)*te,(.5+Fe+Ce)*ne,(.5-Fe+me)*te,(.5+ge+Ce)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+Fe+me)*te,(.5+ge+Ce)*ne,(.5+ge+me)*te,(.5+Fe+Ce)*ne).close()),ce.setSpots(.06,.33,.93,.68),ce}),go.Shape.defineFigureGenerator("YinYang",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var ge=.1,me=.5,Ce=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(me+ge)*te,Ce*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ne*Ce,ge*te,ge*te).close()),se=new go.PathFigure(te*.5,0,!1),ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),Ce=.75,se=new go.PathFigure((me+ge)*te,Ce*ne,!0),ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ne*Ce,ge*te,ge*te).close()),ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("Peace",function(Me,te,ne){var ce=.8535533905932737,se=.5*te,ge=.5*ne;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,ge,se,ge)).add(new go.PathSegment(go.PathSegment.Line,se,ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,ce*te,ce*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=.5,me=.5,Ce=.5,Fe=new go.PathFigure(me*te,(Ce-ge)*ne);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Ce*ne,(me-se)*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+ge)*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Ce*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-ge)*ne,(me+ge)*te,(Ce-se)*ne,(me+se)*te,(Ce-ge)*ne)),ge=.4,se=De*.4;var Pe=ye(),Ie=ye(),Ge=ye(),Ke=ye();Rt(me,Ce-ge,me+se,Ce-ge,me+ge,Ce-se,me+ge,Ce,.42,Pe,Ie,Ge,Ke,Ke);var Ye=ye(),pt=ye(),Je=ye();Rt(me,Ce-ge,me+se,Ce-ge,me+ge,Ce-se,me+ge,Ce,.58,Ke,Ke,Je,Ye,pt);var kt=ye(),Xe=ye(),Wt=ye();Rt(me,Ce+ge,me-se,Ce+ge,me-ge,Ce+se,me-ge,Ce,.42,kt,Xe,Wt,Ke,Ke);var zt=ye(),jt=ye(),Mt=ye();return Rt(me,Ce+ge,me-se,Ce+ge,me-ge,Ce+se,me-ge,Ce,.58,Ke,Ke,Mt,zt,jt),Fe.add(new go.PathSegment(go.PathSegment.Move,Mt.x*te,Mt.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Ce*ne,zt.x*te,zt.y*ne,jt.x*te,jt.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ge.x*te,Ge.y*ne,Pe.x*te,Pe.y*ne,Ie.x*te,Ie.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,Mt.x*te,Mt.y*ne).close()),Fe.add(new go.PathSegment(go.PathSegment.Move,Wt.x*te,Wt.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,Je.x*te,Je.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Ce*ne,Ye.x*te,Ye.y*ne,pt.x*te,pt.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*te,Wt.y*ne,kt.x*te,kt.y*ne,Xe.x*te,Xe.y*ne).close()),Oe(Pe),Oe(Ie),Oe(Ge),Oe(Ke),Oe(Ye),Oe(pt),Oe(Je),Oe(kt),Oe(Xe),Oe(Wt),Oe(zt),Oe(jt),Oe(Mt),ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("Fragile",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ne,te,.25*ne,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=30),ce>te&&(ce=te);var se=(te-ce)/2,ge=se+ce;return new go.Geometry().add(new go.PathFigure(ge,.5*ne).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Me,te,ne){var ce=new go.Geometry,se=De*.4,ge=.4,me=.5,Ce=.5,Fe=ye(),Pe=ye(),Ie=ye(),Ge=ye(),Ke=new go.PathFigure((me-ge)*te,Ce*ne,!1);ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne)),Rt(me,Ce-ge,me+se,Ce-ge,me+ge,Ce-se,me+ge,Ce,.44,Ie,Ge,Pe,Fe,Fe),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,Ie.x*te,Ie.y*ne,Ge.x*te,Ge.y*ne));var Ye=ve(Pe.x,Pe.y);Rt(me,Ce-ge,me+se,Ce-ge,me+ge,Ce-se,me+ge,Ce,.56,Fe,Fe,Pe,Ie,Ge);var pt=ve(Pe.x,Pe.y);Ke.add(new go.PathSegment(go.PathSegment.Line,(Ye.x*.1+.95*.9)*te,Ye.y*.1*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,.85*te,Ye.y*.1*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),Ke.add(new go.PathSegment(go.PathSegment.Line,te,0)),Ke.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,(pt.x*.1+.9)*te,.15*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,(pt.x*.1+.9)*te,(pt.y*.1+.05*.9)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,pt.x*te,pt.y*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Ce*ne,Ie.x*te,Ie.y*ne,Ge.x*te,Ge.y*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Ce*ne,(me-se)*te,(Ce+ge)*ne,(me-ge)*te,(Ce+se)*ne)),ge=.35,se=De*.35;var Je=new go.PathFigure(me*te,(Ce-ge)*ne,!1);ce.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Ce*ne,(me-se)*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne)),Je.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+ge)*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Ce*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Je.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-ge)*ne,(me+ge)*te,(Ce-se)*ne,(me+se)*te,(Ce-ge)*ne));var kt=new go.PathFigure((me-ge)*te,Ce*ne,!1);return ce.add(kt),Oe(Fe),Oe(Pe),Oe(Ie),Oe(Ge),Oe(Ye),Oe(pt),ce.spot1=new go.Spot(.202,.257),ce.spot2=new go.Spot(.792,.739),ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("GenderFemale",function(Me,te,ne){var ce=new go.Geometry,se=.375,ge=0,me=-.125,Ce=se*De,Fe=new go.PathFigure((.525+ge)*te,(.5+se+me)*ne,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+me)*ne,(.5+Ce+ge)*te,(.5+se+me)*ne,(.5+se+ge)*te,(.5+Ce+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+me)*ne,(1-.5+se+ge)*te,(.5-Ce+me)*ne,(.5+Ce+ge)*te,(.5-se+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-Ce+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-Ce+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*te,(.5+se+me)*ne,(.5-se+ge)*te,(.5+Ce+me)*ne,(.5-Ce+ge)*te,(.5+se+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),se=.325,ge=0,me=-.125,Ce=se*De;var Fe=new go.PathFigure((1-.5+se+ge)*te,(.5+me)*ne,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5+se+me)*ne,(.5+se+ge)*te,(.5+Ce+me)*ne,(.5+Ce+ge)*te,(.5+se+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-Ce+ge)*te,(.5+se+me)*ne,(.5-se+ge)*te,(.5+Ce+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-Ce+me)*ne,(.5-Ce+ge)*te,(.5-se+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+me)*ne,(.5+Ce+ge)*te,(.5-se+me)*ne,(1-.5+se+ge)*te,(.5-Ce+me)*ne));var Fe=new go.PathFigure((.525+ge)*te,(.5+se+me)*ne,!1);return ce.add(Fe),ce.spot1=new go.Spot(.232,.136),ce.spot2=new go.Spot(.682,.611),ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("LogicImplies",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;return isNaN(ce)&&(ce=.2),new go.Geometry().add(new go.PathFigure((1-ce)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;return isNaN(ce)&&(ce=.2),new go.Geometry().add(new go.PathFigure((1-ce)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ce)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,ce*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ce*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Me,te,ne){var ce=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ne,.5*te,.5*ne)));return ce.defaultStretch=go.GraphObject.Uniform,ce}),go.Shape.defineFigureGenerator("LogicTruth",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Me,te,ne){var ce=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,ce*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ce*te,ce*ne,ce*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Me,te,ne){var ce=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,ce*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ce*te,ce*ne,ce*te,ce*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Rn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Rn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.3);var se=Me?Me.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-ce)*te,me=(.5-se/2)*ne,Ce=(.5+se/2)*ne,Fe=new go.Geometry,Pe=new go.PathFigure(0,me,!0);Fe.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,Ce)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),Fe.spot1=new go.Spot(0,me/ne);var Ie=He(0,Ce/ne,1,Ce/ne,ge/te,1,1,.5,ye());return Fe.spot2=new go.Spot(Ie.x,Ie.y),Oe(Ie),Fe}),go.Shape.setFigureParameter("Arrow2",0,new Rn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Rn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=30),ce>te&&(ce=te);var se=Me?Me.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var ge=te-ce,me=(ne-se)/2,Ce=me+se,Fe=new go.Geometry,Pe=new go.PathFigure(0,me,!0);Fe.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,Ce)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),Fe.spot1=new go.Spot(0,me/ne);var Ie=He(0,Ce/ne,1,Ce/ne,ge/te,1,1,.5,ye());return Fe.spot2=new go.Spot(Ie.x,Ie.y),Oe(Ie),Fe}),go.Shape.defineFigureGenerator("Chevron",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),ce}),go.Shape.defineFigureGenerator("DoubleArrow",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),ce}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Rn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.3);var se=(.5-ce/2)*ne,ge=(.5+ce/2)*ne,me=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);me.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Fe=He(0,.5,.3,0,0,se/ne,.1,se/ne,ye());return me.spot1=new go.Spot(Fe.x,Fe.y),Fe=He(.7,1,1,.5,0,ge/ne,1,ge/ne,Fe),me.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Rn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Rn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=40);var se=Me?Me.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-ce)/2,me=ge+ce,Ce=(ne-se)/2,Fe=Ce+se;(ce>ne||se>ne)&&(se>ce?(ce=ce*ne/se,ge=(ne-ce)/2,me=ge+ce,Ce=0,Fe=ne):(ge=0,me=ne,Ce=0,Fe=ne));var Pe=new go.Geometry,Ie=new go.PathFigure(te,.5*ne,!0);Pe.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ce).close());var Ge=He(0,.5,.3,Ce/ne,0,ge/ne,1,ge/ne,ye());return Pe.spot1=new go.Spot(Ge.x,Ge.y),Ge=He(.7,Fe/ne,1,.5,0,me/ne,1,me/ne,Ge),Pe.spot2=new go.Spot(Ge.x,Ge.y),Oe(Ge),Pe}),go.Shape.setFigureParameter("IBeamArrow",0,new Rn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.3);var se=(.5-ce/2)*ne,ge=(.5+ce/2)*ne,me=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);me.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,se/ne);var Fe=He(.7,1,1,.5,0,ge/ne,1,ge/ne,ye());return me.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Rn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Rn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=40);var se=Me?Me.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-ce)/2,me=ge+ce,Ce=(ne-se)/2,Fe=Ce+se;(ce>ne||se>ne)&&(se>ce?(ce=ce*ne/se,ge=(ne-ce)/2,me=ge+ce,Ce=0,Fe=ne):(ge=0,me=ne,Ce=0,Fe=ne));var Pe=new go.Geometry,Ie=new go.PathFigure(te,.5*ne,!0);Pe.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ce).close()),Pe.spot1=new go.Spot(0,ge/ne);var Ge=He(.7,Fe/ne,1,.5,0,me/ne,1,me/ne,ye());return Pe.spot2=new go.Spot(Ge.x,Ge.y),Oe(Ge),Pe}),go.Shape.setFigureParameter("Pointer",0,new Rn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.1);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,ce*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(ce,.35);var me=He(.2,.65,1,.65,0,1,1,.5,ye());return se.spot2=new go.Spot(me.x,me.y),Oe(me),se}),go.Shape.setFigureParameter("RoundedPointer",0,new Rn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.3);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ce*te,.75*ne,ce*te,.25*ne).close()),se.spot1=new go.Spot(ce,.35);var me=He(0,.65,1,.65,0,1,1,.5,ye());return se.spot2=new go.Spot(me.x,me.y),Oe(me),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new Rn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.4);var se=(.5-ce/2)*ne,ge=(.5+ce/2)*ne,me=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);me.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var Fe=He(.7,1,1,.5,0,ge/ne,1,ge/ne,ye());return me.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Rn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=50);var se=(ne-ce)/2,ge=se+ce;ce>ne&&(se=0,ge=ne);var me=new go.Geometry,Ce=new go.PathFigure(te,.5*ne,!0);me.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,se/ne);var Fe=He(.7,1,1,.5,0,ge/ne,1,ge/ne,ye());return me.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),me}),go.Shape.setFigureParameter("SquareArrow",0,new Rn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.7);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ce*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ce*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(ce,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=De*.1,me=new go.PathFigure(0,.9*ne,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne).close()),ce.spot1=new go.Spot(.25,.5),ce.spot2=new go.Spot(.75,.97),ce}),go.Shape.defineFigureGenerator("Cone2",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.9*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,ne,.85/.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var ge=new go.PathFigure(0,.9*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),ce.spot1=new go.Spot(.25,.5),ce.spot2=new go.Spot(.75,.82),ce}),go.Shape.defineFigureGenerator("Cube1",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),ce.spot1=new go.Spot(0,.3),ce.spot2=new go.Spot(.5,.85),ce}),go.Shape.defineFigureGenerator("Cube2",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.3*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var ge=new go.PathFigure(0,.3*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),ce.spot1=new go.Spot(0,.3),ce.spot2=new go.Spot(.7,1),ce}),go.Shape.defineFigureGenerator("Cylinder1",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=5),ce=Math.min(ce,ne/3);var se=new go.Geometry,ge=De*.5,me=new go.PathFigure(0,ce,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,De*ce,(.5-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,ce,(.5+ge)*te,0,1*te,De*ce)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-ce)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-De*ce,(.5+ge)*te,1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ce,(.5-ge)*te,1*ne,0,ne-De*ce)),me.add(new go.PathSegment(go.PathSegment.Line,0,ce));var Ce=new go.PathFigure(te,ce,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*ce,1*te,2*ce-De*ce,(.5+ge)*te,2*ce)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ce,(.5-ge)*te,2*ce,0,2*ce-De*ce)),se.spot1=new go.Spot(0,0,0,2*ce),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=5),ce=Math.min(ce,ne/3);var se=new go.Geometry,ge=De*.5,me=new go.PathFigure(0,ne-ce,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ce)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,De*ce,(.5-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ce,(.5+ge)*te,0,te,De*ce)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-ce)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-De*ce,(.5+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ce,(.5-ge)*te,ne,0,ne-De*ce));var Ce=new go.PathFigure(0,ne-ce,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*ce,0,ne-ce-De*ce,(.5-ge)*te,ne-2*ce)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-ce,(.5+ge)*te,ne-2*ce,te,ne-ce-De*ce)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*ce),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=5),ce=Math.min(ce,te/3);var se=new go.Geometry,ge=De*.5,me=new go.PathFigure(ce,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te-ce,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-De*ce,0,te,(.5-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te,(.5+ge)*ne,te-De*ce,ne)),me.add(new go.PathSegment(go.PathSegment.Line,ce,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,De*ce,ne,0,(.5+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,(.5-ge)*ne,De*ce,0));var Ce=new go.PathFigure(ce,0,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,2*ce,.5*ne,ce+De*ce,0,2*ce,(.5-ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce,ne,2*ce,(.5+ge)*ne,ce+De*ce,ne)),se.spot1=new go.Spot(0,0,2*ce,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=5),ce=Math.min(ce,te/3);var se=new go.Geometry,ge=De*.5,me=new go.PathFigure(te-ce,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-De*ce,0,te,(.5-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te,(.5+ge)*ne,te-De*ce,ne)),me.add(new go.PathSegment(go.PathSegment.Line,ce,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,De*ce,ne,0,(.5+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,(.5-ge)*ne,De*ce,0)),me.add(new go.PathSegment(go.PathSegment.Line,te-ce,0));var Ce=new go.PathFigure(te-ce,0,!1);return se.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te-2*ce,.5*ne,te-ce-De*ce,0,te-2*ce,(.5-ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te-2*ce,(.5+ge)*ne,te-ce-De*ce,ne)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*ce,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.25*te,.25*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.25*te,.25*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ce.spot1=new go.Spot(.408,.172),ce.spot2=new go.Spot(.833,.662),ce}),go.Shape.defineFigureGenerator("Prism2",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.25*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),ce.spot1=new go.Spot(.25,.5),ce.spot2=new go.Spot(.75,.75),ce}),go.Shape.defineFigureGenerator("Pyramid1",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ce.spot1=new go.Spot(.25,.367),ce.spot2=new go.Spot(.75,.875),ce}),go.Shape.defineFigureGenerator("Pyramid2",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),ce.spot1=new go.Spot(.25,.367),ce.spot2=new go.Spot(.75,.875),ce}),go.Shape.defineFigureGenerator("Actor",function(Me,te,ne){var ce=new go.Geometry,se=.2,ge=.1,me=De*se,Ce=De*ge,Fe=.5,Pe=.1,Ie=new go.PathFigure(Fe*te,(Pe+ge)*ne,!0);ce.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-se)*te,Pe*ne,(Fe-me)*te,(Pe+ge)*ne,(Fe-se)*te,(Pe+Ce)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-ge)*ne,(Fe-se)*te,(Pe-Ce)*ne,(Fe-me)*te,(Pe-ge)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+se)*te,Pe*ne,(Fe+me)*te,(Pe-ge)*ne,(Fe+se)*te,(Pe-Ce)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe+ge)*ne,(Fe+se)*te,(Pe+Ce)*ne,(Fe+me)*te,(Pe+ge)*ne));var Ge=.05,Ke=De*Ge;Fe=.05,Pe=.25;var Ye=new go.PathFigure(.5*te,.2*ne,!0);return ce.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),Fe=.95,Pe=.25,Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ge)*te,Pe*ne,(Fe+Ke)*te,(Pe-Ge)*ne,(Fe+Ge)*te,(Pe-Ke)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),Ge=.025,Ke=De*Ge,Fe=.825,Pe=.35,Ye.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-Ge)*ne,(Fe+Ge)*te,(Pe-Ke)*ne,(Fe+Ke)*te,(Pe-Ge)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ge)*te,Pe*ne,(Fe-Ke)*te,(Pe-Ge)*ne,(Fe-Ge)*te,(Pe-Ke)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),Ge=.05,Ke=De*Ge,Fe=.5,Pe=.7,Ye.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-Ge)*ne,(Fe+Ge)*te,(Pe-Ke)*ne,(Fe+Ke)*te,(Pe-Ge)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ge)*te,Pe*ne,(Fe-Ke)*te,(Pe-Ge)*ne,(Fe-Ge)*te,(Pe-Ke)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),Ge=.025,Ke=De*Ge,Fe=.175,Pe=.35,Ye.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-Ge)*ne,(Fe+Ge)*te,(Pe-Ke)*ne,(Fe+Ke)*te,(Pe-Ge)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ge)*te,Pe*ne,(Fe-Ke)*te,(Pe-Ge)*ne,(Fe-Ge)*te,(Pe-Ke)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),Ge=.05,Ke=De*Ge,Fe=.05,Pe=.25,Ye.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-Ge)*ne,(Fe-Ge)*te,(Pe-Ke)*ne,(Fe-Ke)*te,(Pe-Ge)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),ce.spot1=new go.Spot(.2,.2),ce.spot2=new go.Spot(.8,.65),ce}),go.Shape.setFigureParameter("Card",0,new Rn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;isNaN(ce)&&(ce=.2);var se=new go.Geometry,ge=new go.PathFigure(te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ce*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,ce*te,0).close()),se.spot1=new go.Spot(0,ce),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,.5*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne));var ge=new go.PathFigure(.5*te,.5*ne,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ce.spot1=new go.Spot(.25,0),ce.spot2=new go.Spot(.75,.25),ce}),go.Shape.defineFigureGenerator("CreateRequest",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,se*ne,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),ce}),go.Shape.defineFigureGenerator("Database",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=De*.1,me=new go.PathFigure(te,.1*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Ce=new go.PathFigure(te,.1*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+ge)*ne,(.5+se)*te,.4*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-se)*te,.4*ne,0,(.3+ge)*ne)),ce.spot1=new go.Spot(0,.4),ce.spot2=new go.Spot(1,.9),ce}),go.Shape.defineFigureGenerator("DataStorage",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ne,.25*te,.1*ne).close()),ce.spot1=new go.Spot(.226,0),ce.spot2=new go.Spot(.81,1),ce}),go.Shape.defineFigureGenerator("DiskStorage",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=De*.1,me=new go.PathFigure(te,.1*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Ce=new go.PathFigure(te,.1*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),ce.spot1=new go.Spot(0,.3),ce.spot2=new go.Spot(1,.9),ce}),go.Shape.defineFigureGenerator("Display",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),ce.spot1=new go.Spot(.25,0),ce.spot2=new go.Spot(.75,1),ce}),go.Shape.defineFigureGenerator("DividedEvent",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=De*.2,me=new go.PathFigure(0,.2*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-ge)*ne,(.2-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+ge)*te,0,te,(.2-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+ge)*ne,(.8+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-ge)*te,ne,0,(.8+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var Ce=new go.PathFigure(0,se*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ce}),go.Shape.defineFigureGenerator("DividedProcess",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,se*ne,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ce}),go.Shape.defineFigureGenerator("Document",function(Me,te,ne){var ce=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),ce.spot1=go.Spot.TopLeft,ce.spot2=new go.Spot(1,.6),ce}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(se*te,0,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),me.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),ce}),go.Shape.defineFigureGenerator("ExternalProcess",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(.1*te,.4*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ne)),ce.spot1=new go.Spot(.25,.25),ce.spot2=new go.Spot(.75,.75),ce}),go.Shape.defineFigureGenerator("File",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.75*te,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),ce.spot1=new go.Spot(0,.25),ce.spot2=go.Spot.BottomRight,ce}),go.Shape.defineFigureGenerator("Interrupt",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,.5*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne));var ge=new go.PathFigure(te,.5*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne));var me=new go.PathFigure(te,.5*ne,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.5,.75),ce}),go.Shape.defineFigureGenerator("InternalStorage",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN,ge=Me?Me.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var me=new go.PathFigure(0,0,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Ce=new go.PathFigure(se*te,0,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,0,ge*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne)),ce}),go.Shape.defineFigureGenerator("Junction",function(Me,te,ne){var ce=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,me=De*.5,Ce=.5,Fe=new go.PathFigure(te,Ce*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,ne,te,(Ce+me)*ne,(Ce+me)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,Ce*ne,(Ce-me)*te,ne,0,(Ce+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,0,0,(Ce-me)*ne,(Ce-me)*te,0)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te,Ce*ne,(Ce+me)*te,0,te,(Ce-me)*ne));var Pe=new go.PathFigure((ge+se)*te,(ge+se)*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ge*te,ge*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,ge*te,(ge+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*te,ge*ne)),ce}),go.Shape.defineFigureGenerator("LinedDocument",function(Me,te,ne){var ce=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close());var ge=new go.PathFigure(.1*te,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),ce.spot1=new go.Spot(.1,0),ce.spot2=new go.Spot(1,.6),ce}),go.Shape.defineFigureGenerator("LoopLimit",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ce.spot1=new go.Spot(0,.25),ce.spot2=go.Spot.BottomRight,ce}),go.Shape.defineFigureGenerator("MagneticTape",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=.5,me=new go.PathFigure(.5*te,ne,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*te,.9*ne,te,(ge+se)*ne,(ge+se)*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ce.spot1=new go.Spot(.15,.15),ce.spot2=new go.Spot(.85,.8),ce}),go.Shape.defineFigureGenerator("ManualInput",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),ce.spot1=new go.Spot(0,.25),ce.spot2=go.Spot.BottomRight,ce}),go.Shape.defineFigureGenerator("MessageFromUser",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=go.Spot.TopLeft,ce}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce}),go.Shape.defineFigureGenerator("MicroformRecording",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(1,.75),ce}),go.Shape.defineFigureGenerator("MultiDocument",function(Me,te,ne){var ce=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ne,.96*te,.47*ne,.93*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ne,.86*te,.57*ne,.83*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*te,.4*ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var ge=new go.PathFigure(.1*te,.2*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ne)),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.8,.77),ce}),go.Shape.defineFigureGenerator("MultiProcess",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.1*te,.1*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close());var ge=new go.PathFigure(.2*te,.1*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),ce.spot1=new go.Spot(0,.2),ce.spot2=new go.Spot(.8,1),ce}),go.Shape.defineFigureGenerator("OfflineStorage",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,me=new go.PathFigure(0,0,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var Ce=new go.PathFigure(.5*se*te,se*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),ce}),go.Shape.defineFigureGenerator("OffPageConnector",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=go.Spot.TopLeft,ce.spot2=new go.Spot(.75,1),ce}),go.Shape.defineFigureGenerator("Or",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=.5,me=new go.PathFigure(te,ge*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Ce=new go.PathFigure(te,.5*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ce}),go.Shape.defineFigureGenerator("PaperTape",function(Me,te,ne){var ce=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.5*te,.6*ne,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),ce.spot1=new go.Spot(0,.49),ce.spot2=new go.Spot(1,.75),ce}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN,ge=Me?Me.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN,ge=Me?Me.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce}),go.Shape.defineFigureGenerator("Procedure",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure((1-se)*te,0,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ce}),go.Shape.defineFigureGenerator("Process",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(se*te,0,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ce.spot2=go.Spot.BottomRight,ce}),go.Shape.defineFigureGenerator("Sort",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(0,.5*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ce.spot1=new go.Spot(.25,.25),ce.spot2=new go.Spot(.75,.5),ce}),go.Shape.defineFigureGenerator("Start",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*te,0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var me=new go.PathFigure(se*te,0,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),ce.spot1=new go.Spot(se,0),ce.spot2=new go.Spot(1-se,1),ce}),go.Shape.defineFigureGenerator("Terminator",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne)),ce.spot1=new go.Spot(.23,0),ce.spot2=new go.Spot(.77,1),ce}),go.Shape.defineFigureGenerator("TransmittalTape",function(Me,te,ne){var ce=new go.Geometry,se=Me?Me.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ne).close()),ce.spot1=go.Spot.TopLeft,ce}),go.Shape.defineFigureGenerator("AndGate",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=new go.PathFigure(0,0,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(.5+se)*te,0,te,(.5-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.5+se)*ne,(.5+se)*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=go.Spot.TopLeft,ce.spot2=new go.Spot(.55,1),ce}),go.Shape.defineFigureGenerator("Buffer",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.5,.75),ce}),go.Shape.defineFigureGenerator("Clock",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=.5,me=new go.PathFigure(te,ge*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Ce=new go.PathFigure(te,ge*ne,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne));var Fe=new go.PathFigure(.8*te,.75*ne,!1);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),ce}),go.Shape.defineFigureGenerator("Ground",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),ce}),go.Shape.defineFigureGenerator("Inverter",function(Me,te,ne){var ce=new go.Geometry,se=De*.1,ge=.1,me=.9,Ce=.5,Fe=new go.PathFigure(.8*te,.5*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var Pe=new go.PathFigure((me+ge)*te,Ce*ne,!0);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Ce*ne,(me-se)*te,(Ce+ge)*ne,(me-ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Ce*ne,(me+se)*te,(Ce-ge)*ne,(me+ge)*te,(Ce-se)*ne)),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.4,.75),ce}),go.Shape.defineFigureGenerator("NandGate",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=De*.4,me=De*.1,Ce=.1,Fe=.9,Pe=.5,Ie=new go.PathFigure(.8*te,.5*ne,!0);ce.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+ge)*ne,(.4+se)*te,ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+se)*te,0,.8*te,(.5-ge)*ne));var Ge=new go.PathFigure((Fe+Ce)*te,Pe*ne,!0);return ce.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe+Ce)*ne,(Fe+Ce)*te,(Pe+me)*ne,(Fe+me)*te,(Pe+Ce)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ce)*te,Pe*ne,(Fe-me)*te,(Pe+Ce)*ne,(Fe-Ce)*te,(Pe+me)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-Ce)*ne,(Fe-Ce)*te,(Pe-me)*ne,(Fe-me)*te,(Pe-Ce)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ce)*te,Pe*ne,(Fe+me)*te,(Pe-Ce)*ne,(Fe+Ce)*te,(Pe-me)*ne)),ce.spot1=new go.Spot(0,.05),ce.spot2=new go.Spot(.55,.95),ce}),go.Shape.defineFigureGenerator("NorGate",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=De*se,me=0,Ce=.5,Fe=new go.PathFigure(.8*te,.5*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(me+ge)*te,(Ce-se)*ne,.7*te,(Ce-ge)*ne)),se=.1,ge=De*.1,me=.9,Ce=.5;var Pe=new go.PathFigure((me-se)*te,Ce*ne,!0);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Ce*ne,(me+ge)*te,(Ce-se)*ne,(me+se)*te,(Ce-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Ce*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne)),ce.spot1=new go.Spot(.2,.25),ce.spot2=new go.Spot(.6,.75),ce}),go.Shape.defineFigureGenerator("OrGate",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=De*se,me=0,Ce=.5,Fe=new go.PathFigure(0,0,!0);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(me+ge+ge)*te,(Ce-se)*ne,.8*te,(Ce-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(Ce+ge)*ne,(me+ge+ge)*te,(Ce+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),ce.spot1=new go.Spot(.2,.25),ce.spot2=new go.Spot(.75,.75),ce}),go.Shape.defineFigureGenerator("XnorGate",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=De*se,me=.2,Ce=.5,Fe=new go.PathFigure(.1*te,0,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Pe=new go.PathFigure(.8*te,.5*ne,!0);ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(me+ge)*te,(Ce-se)*ne,.7*te,(Ce-ge)*ne)),se=.1,ge=De*.1,me=.9,Ce=.5;var Ie=new go.PathFigure((me-se)*te,Ce*ne,!0);return ce.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Ce*ne,(me+ge)*te,(Ce-se)*ne,(me+se)*te,(Ce-ge)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Ce*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne)),ce.spot1=new go.Spot(.4,.25),ce.spot2=new go.Spot(.65,.75),ce}),go.Shape.defineFigureGenerator("XorGate",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=De*se,me=.2,Ce=.5,Fe=new go.PathFigure(.1*te,0,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Pe=new go.PathFigure(.2*te,0,!0);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(me+ge)*te,(Ce-se)*ne,.9*te,(Ce-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),ce.spot1=new go.Spot(.4,.25),ce.spot2=new go.Spot(.8,.75),ce}),go.Shape.defineFigureGenerator("Capacitor",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce}),go.Shape.defineFigureGenerator("Resistor",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),ce}),go.Shape.defineFigureGenerator("Inductor",function(Me,te,ne){var ce=new go.Geometry,se=De*.1,ge=.1,me=.1,Ce=.5,Fe=new go.PathFigure((me-se*.5)*te,ne,!1);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.3,Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.5,Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.7,Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.9,Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se*.5)*te,ne,(me+ge)*te,0,(me+se)*te,ne)),ce}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Me,te,ne){var ce=new go.Geometry,se=De*.5,ge=.5,me=.5,Ce=.5,Fe=new go.PathFigure((me-ge)*te,Ce*ne,!1);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Ce*ne,(me+se)*te,(Ce-ge)*ne,(me+ge)*te,(Ce-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Ce*ne,(me-se)*te,(Ce+ge)*ne,(me-ge)*te,(Ce+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Move,(me-ge+.1)*te,Ce*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge-.1)*te,Ce*ne,me*te,(Ce-ge)*ne,me*te,(Ce+ge)*ne)),ce}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce}),go.Shape.defineFigureGenerator("Diode",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce.spot1=new go.Spot(0,.25),ce.spot2=new go.Spot(.5,.75),ce}),go.Shape.defineFigureGenerator("Wifi",function(Me,te,ne){var ce=new go.Geometry,se=te,ge=ne;te=te*.38,ne=ne*.6;var me=De*.8,Ce=.8,Fe=0,Pe=.5,Ie=(se-te)/2,Ge=(ge-ne)/2,Ke=new go.PathFigure(Fe*te+Ie,(Pe+Ce)*ne+Ge,!0);ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ce)*te+Ie,Pe*ne+Ge,(Fe-me)*te+Ie,(Pe+Ce)*ne+Ge,(Fe-Ce)*te+Ie,(Pe+me)*ne+Ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-Ce)*ne+Ge,(Fe-Ce)*te+Ie,(Pe-me)*ne+Ge,(Fe-me)*te+Ie,(Pe-Ce)*ne+Ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ce+me*.5)*te+Ie,Pe*ne+Ge,Fe*te+Ie,(Pe-Ce)*ne+Ge,(Fe-Ce+me*.5)*te+Ie,(Pe-me)*ne+Ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+Ce)*ne+Ge,(Fe-Ce+me*.5)*te+Ie,(Pe+me)*ne+Ge,Fe*te+Ie,(Pe+Ce)*ne+Ge).close()),me=De*.4,Ce=.4,Fe=.2,Pe=.5;var Ye=new go.PathFigure(Fe*te+Ie,(Pe+Ce)*ne+Ge,!0);ce.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ce)*te+Ie,Pe*ne+Ge,(Fe-me)*te+Ie,(Pe+Ce)*ne+Ge,(Fe-Ce)*te+Ie,(Pe+me)*ne+Ge)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-Ce)*ne+Ge,(Fe-Ce)*te+Ie,(Pe-me)*ne+Ge,(Fe-me)*te+Ie,(Pe-Ce)*ne+Ge)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ce+me*.5)*te+Ie,Pe*ne+Ge,Fe*te+Ie,(Pe-Ce)*ne+Ge,(Fe-Ce+me*.5)*te+Ie,(Pe-me)*ne+Ge)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+Ce)*ne+Ge,(Fe-Ce+me*.5)*te+Ie,(Pe+me)*ne+Ge,Fe*te+Ie,(Pe+Ce)*ne+Ge).close()),me=De*.2,Ce=.2,Fe=.5,Pe=.5;var pt=new go.PathFigure((Fe-Ce)*te+Ie,Pe*ne+Ge,!0);ce.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-Ce)*ne+Ge,(Fe-Ce)*te+Ie,(Pe-me)*ne+Ge,(Fe-me)*te+Ie,(Pe-Ce)*ne+Ge)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ce)*te+Ie,Pe*ne+Ge,(Fe+me)*te+Ie,(Pe-Ce)*ne+Ge,(Fe+Ce)*te+Ie,(Pe-me)*ne+Ge)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+Ce)*ne+Ge,(Fe+Ce)*te+Ie,(Pe+me)*ne+Ge,(Fe+me)*te+Ie,(Pe+Ce)*ne+Ge)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Ce)*te+Ie,Pe*ne+Ge,(Fe-me)*te+Ie,(Pe+Ce)*ne+Ge,(Fe-Ce)*te+Ie,(Pe+me)*ne+Ge)),me=De*.4,Ce=.4,Fe=.8,Pe=.5;var Je=new go.PathFigure(Fe*te+Ie,(Pe-Ce)*ne+Ge,!0);ce.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ce)*te+Ie,Pe*ne+Ge,(Fe+me)*te+Ie,(Pe-Ce)*ne+Ge,(Fe+Ce)*te+Ie,(Pe-me)*ne+Ge)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+Ce)*ne+Ge,(Fe+Ce)*te+Ie,(Pe+me)*ne+Ge,(Fe+me)*te+Ie,(Pe+Ce)*ne+Ge)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ce-me*.5)*te+Ie,Pe*ne+Ge,Fe*te+Ie,(Pe+Ce)*ne+Ge,(Fe+Ce-me*.5)*te+Ie,(Pe+me)*ne+Ge)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-Ce)*ne+Ge,(Fe+Ce-me*.5)*te+Ie,(Pe-me)*ne+Ge,Fe*te+Ie,(Pe-Ce)*ne+Ge).close()),me=De*.8,Ce=.8,Fe=1,Pe=.5;var kt=new go.PathFigure(Fe*te+Ie,(Pe-Ce)*ne+Ge,!0);return ce.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ce)*te+Ie,Pe*ne+Ge,(Fe+me)*te+Ie,(Pe-Ce)*ne+Ge,(Fe+Ce)*te+Ie,(Pe-me)*ne+Ge)),kt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+Ce)*ne+Ge,(Fe+Ce)*te+Ie,(Pe+me)*ne+Ge,(Fe+me)*te+Ie,(Pe+Ce)*ne+Ge)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Ce-me*.5)*te+Ie,Pe*ne+Ge,Fe*te+Ie,(Pe+Ce)*ne+Ge,(Fe+Ce-me*.5)*te+Ie,(Pe+me)*ne+Ge)),kt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-Ce)*ne+Ge,(Fe+Ce-me*.5)*te+Ie,(Pe-me)*ne+Ge,Fe*te+Ie,(Pe-Ce)*ne+Ge).close()),ce}),go.Shape.defineFigureGenerator("Email",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ne)),ce}),go.Shape.defineFigureGenerator("Ethernet",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var ge=new go.PathFigure(.1*te,ne,!0,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var me=new go.PathFigure(.6*te,ne,!0,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var Ce=new go.PathFigure(0,.5*ne,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),ce}),go.Shape.defineFigureGenerator("Power",function(Me,te,ne){var ce=new go.Geometry,se=De*.4,ge=.4,me=.5,Ce=.5,Fe=ye(),Pe=ye(),Ie=ye(),Ge=ye();Rt(me,Ce-ge,me+se,Ce-ge,me+ge,Ce-se,me+ge,Ce,.5,Fe,Fe,Pe,Ie,Ge);var Ke=ve(Pe.x,Pe.y),Ye=new go.PathFigure(Pe.x*te,Pe.y*ne,!0);ce.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Ce*ne,Ie.x*te,Ie.y*ne,Ge.x*te,Ge.y*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Ce*ne,(me-se)*te,(Ce+ge)*ne,(me-ge)*te,(Ce+se)*ne)),Rt(me-ge,Ce,me-ge,Ce-se,me-se,Ce-ge,me,Ce-ge,.5,Ie,Ge,Pe,Fe,Fe),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,Ie.x*te,Ie.y*ne,Ge.x*te,Ge.y*ne)),se=De*.3,ge=.3,Rt(me-ge,Ce,me-ge,Ce-se,me-se,Ce-ge,me,Ce-ge,.5,Ie,Ge,Pe,Fe,Fe),Ye.add(new go.PathSegment(go.PathSegment.Line,Pe.x*te,Pe.y*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,Ce*ne,Ge.x*te,Ge.y*ne,Ie.x*te,Ie.y*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+ge)*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,Ce*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Rt(me,Ce-ge,me+se,Ce-ge,me+ge,Ce-se,me+ge,Ce,.5,Fe,Fe,Pe,Ie,Ge),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,Ge.x*te,Ge.y*ne,Ie.x*te,Ie.y*ne).close());var Ye=new go.PathFigure(.45*te,0,!0);return ce.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),Ye.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Oe(Fe),Oe(Pe),Oe(Ie),Oe(Ge),Oe(Ke),ce.spot1=new go.Spot(.25,.45),ce.spot2=new go.Spot(.75,.8),ce}),go.Shape.defineFigureGenerator("Fallout",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne/2,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function ge(me,Ce,Fe){me.add(new go.PathSegment(go.PathSegment.Move,(.3+Ce)*te,(.8+Fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+Ce)*te,(.5+Fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+Ce)*te,(.5+Fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+Ce)*te,(.8+Fe)*ne).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),ce}),go.Shape.defineFigureGenerator("IrritationHazard",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),ce.spot1=new go.Spot(.3,.3),ce.spot2=new go.Spot(.7,.7),ce}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),ce}),go.Shape.defineFigureGenerator("FireHazard",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.1*te,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ne,.45*te,.44*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ne,.48*te,.17*ne,.54*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ne,.59*te,.29*ne,.58*te,.28*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ne,.8*te,.34*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ne,.87*te,.48*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,1.17*te,.76*ne,.82*te,.8*ne).close()),ce.spot1=new go.Spot(.07,.445),ce.spot2=new go.Spot(.884,.958),ce}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=0,me=0,Ce=se*De,Fe=.4*Math.SQRT2/2+.5,Pe=.5-.5*Math.SQRT2/2,Ie=1,Ge=.5,Ke=.5,Ye=0,pt=new go.PathFigure(Fe*te,(1-Pe)*ne,!1);return ce.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,Ge*ne,Ie*te,.7*ne,Ie*te,Ge*ne)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+ge)*te,(Ye+ge)*ne,(.5+se+ge)*te,(.5-Ce+ge)*ne,(.5+Ce+ge)*te,(.5-se+ge)*ne)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-Ce+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-Ce+me)*ne)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*te,.9*ne,(.5-se+ge)*te,(.5+Ce+me)*ne,(.5-Ce+ge)*te,.9*ne)),pt.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*te,.8*ne)),pt.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*te,.9*ne)),pt.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*te,.95*ne)),ce}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ce}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);ce.add(se);var ge=new go.PathFigure(te,ne,!1);ce.add(ge);var me=new go.PathFigure(0,.5*ne,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),ce}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close()),ce}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var se=new go.PathFigure(0,.2*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),ce}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.7*te,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ne,.4*te,.5*ne,te,.5*ne).close());var ge=new go.PathFigure(.45*te,.73*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ne)),ce}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);ce.add(se);var ge=new go.PathFigure(.335*te,(1-.555)*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var me=.5-.285,Ce=.5,Fe=me,Pe=Math.PI/4,Ie=4*(1-Math.cos(Pe))/(3*Math.sin(Pe)),Ge=Ie*.5,Ke=me,Ye=me,pt=Ie*Ke,Je=Ie*Ye;ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Ke)*te,Fe*ne,(Ce-(pt+Ke)/2)*te,(Fe+(Ye+Je)/2)*ne,(Ce-Ke)*te,(Fe+Je)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(Fe-Ye)*ne,(Ce-Ke)*te,(Fe-Je)*ne,(Ce-pt)*te,(Fe-Ye)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+Ke)*te,Fe*ne,(Ce+pt)*te,(Fe-Ye)*ne,(Ce+Ke)*te,(Fe-Je)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(Ce+Ke)*te,(Fe+Je)*ne,(Ce+(pt+Ke)/2)*te,(Fe+(Ye+Je)/2)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne));var kt=new go.PathFigure(.2*te,ne,!1);ce.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var Xe=new go.PathFigure(.8*te,ne,!1);return ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),ce}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var ge=new go.PathFigure(.2*te,.2*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),ce}),go.Shape.defineFigureGenerator("BpmnEventError",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ne).close()),ce}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);ce.add(se);var ge=new go.PathFigure(te,ne,!1);ce.add(ge);var me=new go.PathFigure(.1*te,ne,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),ce}),go.Shape.defineFigureGenerator("Caution",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.05*te,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ne,0,ne,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ne,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,te,ne,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ne));var ge=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*te,.875*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ne,ge*te,ge*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ne,.575*te,.725*ne,.625*te,.375*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ne,.375*te,.375*ne,.425*te,.725*ne)),ce}),go.Shape.defineFigureGenerator("Recycle",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.45*te,.95*ne,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ne,.17*te,.95*ne,.15*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ne,0,.675*ne,0,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ne));var ge=new go.PathFigure(.475*te,.2*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var me=new go.PathFigure(.675*te,.575*ne,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),ce}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=De*.5,me=new go.PathFigure(te,se*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+ge)*ne,(se+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-ge)*te,ne,0,(se+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-ge)*ne,(se-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+ge)*te,0,te,(se-ge)*ne));var Ce=new go.PathFigure(se*te,0,!1);return ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),ce}),go.Shape.defineFigureGenerator("Package",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.15*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,.15*ne,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ne).close()),ce.spot1=new go.Spot(0,.1),ce.spot2=new go.Spot(1,1),ce}),go.Shape.defineFigureGenerator("Class",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var me=new go.PathFigure(0,.5*ne,!1);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),ce}),go.Shape.defineFigureGenerator("Component",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close());var ge=new go.PathFigure(0,.2*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var me=new go.PathFigure(0,.6*ne,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),ce}),go.Shape.defineFigureGenerator("Boat Shipment",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.15*te,.6*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne));var ge=new go.PathFigure(.15*te,.6*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),ce}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ce}),go.Shape.defineFigureGenerator("Workcell",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce}),go.Shape.defineFigureGenerator("Supermarket",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ce}),go.Shape.defineFigureGenerator("TruckShipment",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(te,.8*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var me=.1,Ce=De*.1,Fe=.2,Pe=.9,Ie=new go.PathFigure((Fe-me)*te,Pe*ne,!0);ce.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-me)*ne,(Fe-me)*te,(Pe-Ce)*ne,(Fe-Ce)*te,(Pe-me)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+me)*te,Pe*ne,(Fe+Ce)*te,(Pe-me)*ne,(Fe+me)*te,(Pe-Ce)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe+me)*ne,(Fe+me)*te,(Pe+Ce)*ne,(Fe+Ce)*te,(Pe+me)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-me)*te,Pe*ne,(Fe-Ce)*te,(Pe+me)*ne,(Fe-me)*te,(Pe+Ce)*ne).close()),me=.1,Ce=De*.1,Fe=.8,Pe=.9;var Ge=new go.PathFigure((Fe-me)*te,Pe*ne,!0);return ce.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-me)*ne,(Fe-me)*te,(Pe-Ce)*ne,(Fe-Ce)*te,(Pe-me)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+me)*te,Pe*ne,(Fe+Ce)*te,(Pe-me)*ne,(Fe+me)*te,(Pe-Ce)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe+me)*ne,(Fe+me)*te,(Pe+Ce)*ne,(Fe+Ce)*te,(Pe+me)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-me)*te,Pe*ne,(Fe-Ce)*te,(Pe+me)*ne,(Fe-me)*te,(Pe+Ce)*ne).close()),ce}),go.Shape.defineFigureGenerator("KanbanPost",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),ce}),go.Shape.defineFigureGenerator("Forklift",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var me=new go.PathFigure(.5*te,.8*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var Ce=new go.PathFigure(.5*te,.7*ne,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var Fe=.1,Pe=De*.1,Ie=.1,Ge=.9,Ke=new go.PathFigure((Ie-Fe)*te,Ge*ne,!0);ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(Ge-Fe)*ne,(Ie-Fe)*te,(Ge-Pe)*ne,(Ie-Pe)*te,(Ge-Fe)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Fe)*te,Ge*ne,(Ie+Pe)*te,(Ge-Fe)*ne,(Ie+Fe)*te,(Ge-Pe)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(Ge+Fe)*ne,(Ie+Fe)*te,(Ge+Pe)*ne,(Ie+Pe)*te,(Ge+Fe)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Fe)*te,Ge*ne,(Ie-Pe)*te,(Ge+Fe)*ne,(Ie-Fe)*te,(Ge+Pe)*ne)),Fe=.1,Pe=De*.1,Ie=.4,Ge=.9;var Ye=new go.PathFigure((Ie-Fe)*te,Ge*ne,!0);return ce.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(Ge-Fe)*ne,(Ie-Fe)*te,(Ge-Pe)*ne,(Ie-Pe)*te,(Ge-Fe)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Fe)*te,Ge*ne,(Ie+Pe)*te,(Ge-Fe)*ne,(Ie+Fe)*te,(Ge-Pe)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(Ge+Fe)*ne,(Ie+Fe)*te,(Ge+Pe)*ne,(Ie+Pe)*te,(Ge+Fe)*ne)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Fe)*te,Ge*ne,(Ie-Pe)*te,(Ge+Fe)*ne,(Ie-Fe)*te,(Ge+Pe)*ne)),ce}),go.Shape.defineFigureGenerator("RailShipment",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.1*te,.4*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ne).close());var ge=new go.PathFigure(.45*te,.7*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var me=new go.PathFigure(.55*te,.4*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Ie=.05,Ge=De*.05,Ke=.175,Ye=.95,Ce=new go.PathFigure((Ke-Ie)*te,Ye*ne,!0);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Ye-Ie)*ne,(Ke-Ie)*te,(Ye-Ge)*ne,(Ke-Ge)*te,(Ye-Ie)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Ie)*te,Ye*ne,(Ke+Ge)*te,(Ye-Ie)*ne,(Ke+Ie)*te,(Ye-Ge)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Ye+Ie)*ne,(Ke+Ie)*te,(Ye+Ge)*ne,(Ke+Ge)*te,(Ye+Ie)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Ie)*te,Ye*ne,(Ke-Ge)*te,(Ye+Ie)*ne,(Ke-Ie)*te,(Ye+Ge)*ne));var Ie=.05,Ge=De*.05,Ke=.375,Ye=.95,Fe=new go.PathFigure((Ke-Ie)*te,Ye*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Ye-Ie)*ne,(Ke-Ie)*te,(Ye-Ge)*ne,(Ke-Ge)*te,(Ye-Ie)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Ie)*te,Ye*ne,(Ke+Ge)*te,(Ye-Ie)*ne,(Ke+Ie)*te,(Ye-Ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Ye+Ie)*ne,(Ke+Ie)*te,(Ye+Ge)*ne,(Ke+Ge)*te,(Ye+Ie)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Ie)*te,Ye*ne,(Ke-Ge)*te,(Ye+Ie)*ne,(Ke-Ie)*te,(Ye+Ge)*ne));var Ie=.05,Ge=De*.05,Ke=.625,Ye=.95,Pe=new go.PathFigure((Ke-Ie)*te,Ye*ne,!0);ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Ye-Ie)*ne,(Ke-Ie)*te,(Ye-Ge)*ne,(Ke-Ge)*te,(Ye-Ie)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Ie)*te,Ye*ne,(Ke+Ge)*te,(Ye-Ie)*ne,(Ke+Ie)*te,(Ye-Ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Ye+Ie)*ne,(Ke+Ie)*te,(Ye+Ge)*ne,(Ke+Ge)*te,(Ye+Ie)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Ie)*te,Ye*ne,(Ke-Ge)*te,(Ye+Ie)*ne,(Ke-Ie)*te,(Ye+Ge)*ne));var Ie=.05,Ge=De*.05,Ke=.825,Ye=.95,pt=new go.PathFigure((Ke-Ie)*te,Ye*ne,!0);ce.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Ye-Ie)*ne,(Ke-Ie)*te,(Ye-Ge)*ne,(Ke-Ge)*te,(Ye-Ie)*ne)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Ie)*te,Ye*ne,(Ke+Ge)*te,(Ye-Ie)*ne,(Ke+Ie)*te,(Ye-Ge)*ne)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Ye+Ie)*ne,(Ke+Ie)*te,(Ye+Ge)*ne,(Ke+Ge)*te,(Ye+Ie)*ne)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Ie)*te,Ye*ne,(Ke-Ge)*te,(Ye+Ie)*ne,(Ke-Ie)*te,(Ye+Ge)*ne).close());var Je=new go.PathFigure(0,ne,!1);return ce.add(Je),Je.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ce}),go.Shape.defineFigureGenerator("Warehouse",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var me=new go.PathFigure(.15*te,ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var Ce=.05,Fe=De*.05,Pe=.35,Ie=.775,Ge=new go.PathFigure((Pe-Ce)*te,Ie*ne,!0);return ce.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ie-Ce)*ne,(Pe-Ce)*te,(Ie-Fe)*ne,(Pe-Fe)*te,(Ie-Ce)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ce)*te,Ie*ne,(Pe+Fe)*te,(Ie-Ce)*ne,(Pe+Ce)*te,(Ie-Fe)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ie+Ce)*ne,(Pe+Ce)*te,(Ie+Fe)*ne,(Pe+Fe)*te,(Ie+Ce)*ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ce)*te,Ie*ne,(Pe-Fe)*te,(Ie+Ce)*ne,(Pe-Ce)*te,(Ie+Fe)*ne).close()),ce}),go.Shape.defineFigureGenerator("ControlCenter",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne).close()),ce}),go.Shape.defineFigureGenerator("Bluetooth",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),ce}),go.Shape.defineFigureGenerator("Bookmark",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ce}),go.Shape.defineFigureGenerator("Bookmark",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ce}),go.Shape.defineFigureGenerator("Globe",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.75*te,0,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.75*ne,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*te,ne,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ne,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,.15*te,.25*ne,.15*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ne,.85*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ne,.35*te,.3*ne,.65*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ne,.35*te,.7*ne,.65*te,.7*ne)),ce}),go.Shape.defineFigureGenerator("Wave",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.25*ne,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ne,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ne,.425*te,.5*ne,.575*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ne,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ne,.1*te,.5*ne,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ne,.425*te,ne,.575*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ne,.8*te,.5*ne,.9*te,.5*ne)),ce}),go.Shape.defineFigureGenerator("Operator",function(Me,te,ne){var ce=new go.Geometry,se=.3,ge=De*.3,me=.5,Ce=.7,Fe=new go.PathFigure((me-se)*te,Ce*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Ce*ne,(me+ge)*te,(Ce-se)*ne,(me+se)*te,(Ce-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Ce*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne));var Pe=new go.PathFigure(0,.7*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),ce}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.65*te,.3*ne,.65*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ne,.35*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*te,.6*ne,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.2*te,ne,.35*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,.7*te,.6*ne,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.8*te,ne,.65*te,.95*ne)),ce}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te,0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,0,ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ne,.8*te,ne,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),ce}),go.Shape.defineFigureGenerator("Battery",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ne));var ge=new go.PathFigure(0,.6*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ce}),go.Shape.defineFigureGenerator("Delete",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=De*.5,me=.5,Ce=.5,Fe=new go.PathFigure((me-se)*te,Ce*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Ce*ne,(me+ge)*te,(Ce-se)*ne,(me+se)*te,(Ce-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Ce*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne));var Pe=new go.PathFigure(.15*te,.5*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),ce}),go.Shape.defineFigureGenerator("Flag",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.1*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ne,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,.65*te,.2*ne,.85*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.85*te,.6*ne,.65*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*te,.4*ne,.15*te,.4*ne).close()),ce}),go.Shape.defineFigureGenerator("Help",function(Me,te,ne){var ce=new go.Geometry,se=.5,ge=De*.5,me=.5,Ce=.5,Fe=new go.PathFigure((me-se)*te,Ce*ne,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Ce*ne,(me+ge)*te,(Ce-se)*ne,(me+se)*te,(Ce-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Ce*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne).close()),se=.05,ge=De*.05,me=.5,Ce=.8;var Pe=new go.PathFigure((me-se)*te,Ce*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce-se)*ne,(me-se)*te,(Ce-ge)*ne,(me-ge)*te,(Ce-se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,Ce*ne,(me+ge)*te,(Ce-se)*ne,(me+se)*te,(Ce-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ce+se)*ne,(me+se)*te,(Ce+ge)*ne,(me+ge)*te,(Ce+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,Ce*ne,(me-ge)*te,(Ce+se)*ne,(me-se)*te,(Ce+ge)*ne).close()),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),ce}),go.Shape.defineFigureGenerator("Location",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ne,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ne,.5*te,0,.025*te,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ne)),ce}),go.Shape.defineFigureGenerator("Unlocked",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ne)),ce}),go.Shape.defineFigureGenerator("Gear",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ne,.79840625*te,.39915625*ne,.7834375*te,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ne,.64228125*te,.2188125*ne,.603875*te,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ne,.39759375*te,.20190625*ne,.36053125*te,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ne,.21765625*te,.36059375*ne,.201875*te,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ne,.20221875*te,.603875*ne,.21884375*te,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ne,.36353125*te,.78340625*ne,.3991875*te,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ne,.602375*te,.79809375*ne,.63946875*te,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ne,.78234375*te,.63940625*ne,.798125*te,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ne,0,.375*ne,.05*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ne,.3*te,.225*ne,.4*te,.175*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ne,.46*te,.05*ne,.525*te,.05*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ne,.525*te,.275*ne,.475*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ne,te,.4*ne,te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ne,.675*te,.55*ne,.675*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ne,.65*te,.7*ne,.65*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ne,.61*te,.85*ne,.61*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*te,ne,0,ne).close()),ce}),go.Shape.defineFigureGenerator("Map",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),ce}),go.Shape.defineFigureGenerator("Eject",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var ge=new go.PathFigure(0,ne*.6,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),ce}),go.Shape.defineFigureGenerator("Pencil",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*1,ne*1,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.85).close());var ge=new go.PathFigure(.126*te,.85*ne,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var me=new go.PathFigure(.402*te,.85*ne,!1);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var Ce=new go.PathFigure(.678*te,.85*ne,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var Fe=new go.PathFigure(.5*te,.1*ne,!1);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),ce}),go.Shape.defineFigureGenerator("Staircase",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),ce}),go.Shape.defineFigureGenerator("5Bars",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*(1-.184)).close());var ge=new go.PathFigure(te*.204,ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var me=new go.PathFigure(te*.408,ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var Ce=new go.PathFigure(te*.612,ne,!0);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var Fe=new go.PathFigure(te*.816,ne,!0);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),Fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),Fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),ce}),go.Shape.defineFigureGenerator("PC",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var ge=new go.PathFigure(te*.055,.07*ne,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var me=new go.PathFigure(te*.055,.13*ne,!0);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),me.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var Ce=new go.PathFigure(te*.055,.18*ne,!0);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var Fe=new go.PathFigure(te*1,0,!0);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),Fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),ce}),go.Shape.defineFigureGenerator("Plane",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(.55*te,ne,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ne,0,.4*ne,.225*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ne,.975*te,0,te,.08*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne).close()),ce}),go.Shape.defineFigureGenerator("Key",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*1,ne*.5,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ne,.075*te,.075*ne).close()),ce}),go.Shape.defineFigureGenerator("FilmTape",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(0,0,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var ge=new go.PathFigure(0,0,!1);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var me=new go.PathFigure(te*.11,ne*.1,!1);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),me.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var Ce=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ne*.8).close());var Fe=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),Fe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),Fe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),ce}),go.Shape.defineFigureGenerator("FloppyDisk",function(Me,te,ne){var ce=new go.Geometry,se=8,ge=se*De,me=new go.PathFigure(se,0,!1);ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),me.add(new go.PathSegment(go.PathSegment.Line,se,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),me.add(new go.PathSegment(go.PathSegment.Line,0,se)),me.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var Ce=new go.PathFigure(te*.83,0,!1);ce.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var Fe=new go.PathFigure(te*.83,ne*1,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),Fe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),Fe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var Pe=new go.PathFigure(te*.78,ne*.05,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),ce}),go.Shape.defineFigureGenerator("SpeechBubble",function(Me,te,ne){var ce=Me?Me.parameter1:NaN;(isNaN(ce)||ce<0)&&(ce=15),ce=Math.min(ce,te/3),ce=Math.min(ce,ne/3);var se=ce*De,ge=ne*.8,me=new go.Geometry,Ce=new go.PathFigure(ce,0,!0);return me.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te-ce,0)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te,ce,te-se,0,te,se)),Ce.add(new go.PathSegment(go.PathSegment.Line,te,ge-ce)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ge,te,ge-se,te-se,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.7,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.55,ge)),Ce.add(new go.PathSegment(go.PathSegment.Line,ce,ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-ce,se,ge,0,ge-se)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ce)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,se,se,0).close()),se>1?(me.spot1=new go.Spot(0,0,se,se),me.spot2=new go.Spot(1,.8,-se,-se)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*.45,!0);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.45).close());var ge=new go.PathFigure(te*1,ne*.55,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.55).close()),ce}),go.Shape.defineFigureGenerator("Windows",function(Me,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*.1,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.9).close());var ge=new go.PathFigure(te*.1,ne*.2,!0);ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var me=new go.PathFigure(te*.28,ne*.37,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),me.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),ce}),go.Shape.defineFigureGenerator("Beaker",function(Me,te,ne){var ce=new go.Geometry,se=15,ge=se*De,me=new go.PathFigure(te*.62,ne*.475,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),me.add(new go.PathSegment(go.PathSegment.Line,se,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),me.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),ge>1?(ce.spot1=new go.Spot(0,0,ge,ge),ce.spot2=new go.Spot(1,1,-ge,-ge)):(ce.spot1=go.Spot.TopLeft,ce.spot2=go.Spot.BottomRight),ce}),go.Shape.defineFigureGenerator("Download",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ce.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var me=new go.PathFigure(te*.4,ne*0,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),me.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),ce}),go.Shape.defineFigureGenerator("Bin",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ce.add(se);var ge=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close()),ce}),go.Shape.defineFigureGenerator("Upload",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ce.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var me=new go.PathFigure(te*.5,ne*0,!0);return ce.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),ce}),go.Shape.defineFigureGenerator("EmptyDrink",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close()),ce}),go.Shape.defineFigureGenerator("Drink",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close());var ge=new go.PathFigure(te*.235,ne*.28,!0);return ce.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.765,ne*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.655,ne*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.345,ne*.97).close()),ce}),go.Shape.defineFigureGenerator("4Arrows",function(Me,te,ne){var ce=new go.Geometry,se=new go.PathFigure(te*.5,ne*0,!0);return ce.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.25).close()),ce}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Rn={},Mn="5.0",ve={},ye=null,Oe=!1,He=!1,Rt=null,$e=!1,qe=null,De=null,Tt=0;Tt<arguments.length;Tt++){var Et=arguments[Tt];if(Et!==null)switch(typeof Et){case"number":Mn=Et.toFixed(1);break;case"string":Et.match(new RegExp("^[0-9]\\.[0-9]+$"))?Mn=Et:Rt=Et;break;case"object":typeof Et.is3D!="undefined"?ye=Et:ve=Et;break;case"boolean":Oe=Et,He=!0;break}}ye===null&&(ye={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ve.material_id!==void 0&&!He&&(Oe=!0)),Rt!==null&&ve.id===void 0&&(ve.id=Rt);var et="",Ot="",it=!1,Pt=null,Me=null,te=null,ne=!1,ce=null,se=null,ge=null,me=null,Ce=null;ve.height!==void 0&&(ve.height=Math.round(ve.height)),ve.width!==void 0&&(ve.width=Math.round(ve.width));var Fe=function(Nt){return parseFloat(Nt)>4?parseFloat(Nt):5};Rn.setHTML5Codebase=function(Nt,en){De=Nt,Lt(Nt,en)},Rn.setJavaCodebase=Rn.setJavaCodebaseVersion=Rn.isCompiledInstalled=Rn.setPreCompiledScriptPath=Rn.setPreCompiledResourcePath=function(){},Rn.setHTML5CodebaseVersion=function(Nt,en){var nn=parseFloat(Nt);if(nn!==NaN&&nn<5){console.log("The GeoGebra HTML5 codebase version "+nn+" is deprecated. Using version latest instead.");return}qe=Nt,Re(Nt,en)},Rn.getHTML5CodebaseVersion=function(){return Me},Rn.getParameters=function(){return ve},Rn.setFontsCSSURL=function(Nt){me=Nt},Rn.setGiacJSURL=function(Nt){},Rn.setJNLPFile=function(Nt){et=Nt},Rn.setJNLPBaseDir=function(Nt){},Rn.inject=function(){function Nt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var en="auto",nn=ve.id,On,dn=!1,Tn=0;Tn<arguments.length;Tn++){var mt=arguments[Tn];typeof mt=="string"?(mt=mt.toLowerCase(),mt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?en=mt:nn=arguments[Tn]):typeof mt=="boolean"?dn=mt:mt instanceof HTMLElement&&(On=mt)}Gn();function Gn(){if(!$e){setTimeout(Gn,200);return}en=Ut(en);var xn=On||document.getElementById(nn);if(!xn){console.log("possibly bug on ajax loading? ");return}if(Rn.removeExistingApplet(xn,!1),ve.width===void 0&&xn.clientWidth&&(ve.width=xn.clientWidth),ve.height===void 0&&xn.clientHeight&&(ve.height=xn.clientHeight),!(ve.width&&ve.height)&&en==="html5"&&(delete ve.width,delete ve.height),Pt=en,en==="screenshot")Xe(xn,ve);else{var tt=!1;ve.hasOwnProperty("playButton")&&ve.playButton||ve.hasOwnProperty("clickToLoad")&&ve.clickToLoad?tt=!0:ve.hasOwnProperty("playButtonAutoDecide")&&ve.playButtonAutoDecide&&(tt=(!Pe()||Nt())&&Ie()),tt?(Pt="screenshot",zt(xn,ve,dn,en)):kt(xn,ve,dn)}}};function Pe(){try{return window.self!==window.top}catch(Nt){return!0}}function Ie(){return ve.hasOwnProperty("screenshotGenerator")&&ve.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Rn.getViews=function(){return ye},Rn.isJavaInstalled=function(){return!1};var Ge=function(Nt){var en=function(Tn){var mt=JSON.parse(Tn),Gn=function(Ee){return Ee.type=="G"||Ee.type=="E"},xn=mt.elements?mt.elements.filter(Gn)[0]:mt;if(!xn||!xn.url){nn();return}ve.fileName=xn.url,Ke(xn.settings||{}),ye.is3D=!0;var tt="https://www.geogebra.org/images/";Rn.setPreviewImage(ce||xn.previewUrl,tt+"GeoGebra_loading.png",tt+"applet_play.png"),Nt()},nn=function(){ve.onError&&ve.onError(),yn("Error: Fetching material (id "+ve.material_id+") failed.",ve)},On=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",dn="/materials/"+ve.material_id+"?scope=basic";Ye("https://"+On+"/api/proxy.php?path="+encodeURIComponent(dn),en,nn)};function Ke(Nt){var en=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(nn){Nt[nn]=!!Nt[nn]}),en.forEach(function(nn){ve[nn]===void 0&&Nt[nn]!==void 0&&(ve[nn]=Nt[nn])}),ve.showToolBarHelp===void 0&&(ve.showToolBarHelp=ve.showToolBar)}function Ye(Nt,en,nn){var On=new XMLHttpRequest;On.open("GET",Nt),On.onload=function(){en(On.responseText)},On.onerror=nn,On.send()}Rn.isHTML5Installed=function(){return!0},Rn.getLoadedAppletType=function(){return Pt},Rn.setPreviewImage=function(Nt,en,nn){ce=Nt,se=en,ge=nn},Rn.removeExistingApplet=function(Nt,en){var nn;typeof Nt=="string"&&(Nt=document.getElementById(Nt)),Pt=null;var On=null;for(nn=0;nn<Nt.childNodes.length;nn++){var dn=Nt.childNodes[nn],Tn=dn.className;Tn==="applet_screenshot"?en?(dn.style.display="block",Pt="screenshot"):dn.style.display="none":Tn!=="applet_scaler prerender"&&(Nt.removeChild(dn),On=Tn&&Tn.indexOf("appletParameters")!=-1?dn.id:null,nn--)}var mt=ve.id!==void 0?ve.id:On,Gn=window[mt];Gn&&typeof Gn.getBase64=="function"&&(Gn.remove(),window[mt]=null)},Rn.refreshHitPoints=function(){if(Fe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Nt=Rn.getAppletObject();return Nt&&typeof Nt.recalculateEnvironments=="function"?(Nt.recalculateEnvironments(),!0):!1},Rn.startAnimation=function(){var Nt=Rn.getAppletObject();return Nt&&typeof Nt.startAnimation=="function"?(Nt.startAnimation(),!0):!1},Rn.stopAnimation=function(){var Nt=Rn.getAppletObject();return Nt&&typeof Nt.stopAnimation=="function"?(Nt.stopAnimation(),!0):!1},Rn.getAppletObject=function(){var Nt=ve.id!==void 0?ve.id:"ggbApplet";return window[Nt]},Rn.resize=function(){};var pt=function(Nt,en,nn){var On=document.createElement("param");On.setAttribute("name",en),On.setAttribute("value",nn),Nt.appendChild(On)},Je=function(Nt){return Nt&&Nt!=="false"},kt=function(Nt,en,nn){Fe(Me)<=4.2&&(nn=!0);var On=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Me||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(On=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var dn=document.createElement("div");dn.classList.add("appletParameters","notranslate");var Tn=en.width,mt=en.height;if(en.disableAutoScale=en.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():en.disableAutoScale,en.width!==void 0)if(Fe(Me)<=4.4)Je(en.showToolBar)&&(en.height-=7),Je(en.showAlgebraInput)&&(en.height-=37),en.width<605&&Je(en.showToolBar)&&(en.width=605,Tn=605);else{var Gn=100;(Je(en.showToolBar)||Je(en.showMenuBar))&&(en.hasOwnProperty("customToolBar")&&(en.customToolbar=en.customToolBar),Gn=Je(en.showMenuBar)?245:155),Tn<Gn&&(en.width=Gn,Tn=Gn)}dn.style.border="none",dn.style.display="inline-block";for(var xn in en)en.hasOwnProperty(xn)&&xn!=="appletOnLoad"&&dn.setAttribute("data-param-"+xn,en[xn]);me&&dn.setAttribute("data-param-fontscssurl",me),Rn.resize=function(){GGBAppletUtils.responsiveResize(Nt,en)},window.addEventListener("resize",function(dt){Rn.resize()});var tt=typeof en.appletOnLoad=="function"?en.appletOnLoad:function(){};if(!nn&&en.width!==void 0){en.hasOwnProperty("showSplash")||dn.setAttribute("data-param-showSplash","false");var Ee=Nt.querySelector(".applet_scaler.prerender"),we=Ee!==null;if(we)var Be=Ee.querySelector(".ggb_preview");else{var Be=Mt(Tn,mt,en.borderColor,!1);Ee=document.createElement("div"),Ee.className="applet_scaler",Ee.style.position="relative",Ee.style.display="block",Ee.style.width=Tn+"px",Ee.style.height=mt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ee,"66%"),Fe(Me)>=5?(en.appletOnLoad=function(dt){var Ht=Nt.querySelector(".ggb_preview");Ht&&Ht.parentNode.removeChild(Ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ee),window.GGBT_wsf_view&&$(window).trigger("resize"),tt(dt)},we||Ee.appendChild(Be)):dn.appendChild(Be),Ee.appendChild(dn),we||Nt.appendChild(Ee),setTimeout(function(){Rn.resize()},1)}else{var ke=document.createElement("div");ke.className="applet_scaler",ke.style.position="relative",ke.style.display="block",ke.appendChild(dn),Nt.appendChild(ke),en.appletOnLoad=function(dt){Rn.resize(),tt(dt)}}function Se(dt,Ht){Ht&&typeof Ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(dt,Ht.appletOnLoad):renderGGBElement(dt),yn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ht)}function st(dt,Ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:dt,params:Ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(En){Se(En.article,En.params)}),html5AppletsToProcess=null)},Fe(Me)<5&&(dt.className+=" geogebraweb")):Se(dt,Ht)}if(On){scriptLoadStarted=!0;for(var At=0;At<dn.childNodes.length;At++){var Ve=dn.childNodes[At].tagName;Ve==="TABLE"&&(dn.removeChild(dn.childNodes[At]),At--)}if(ggbHTML5LoadedScript!==null){var We=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');We!=null&&We.parentNode.removeChild(We)}var Ct=document.createElement("script"),bt=function(){st(dn,en)};Ct.src=Ot+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Me,ggbHTML5LoadedScript=Ct.src,yn("GeoGebra HTML5 codebase loaded: '"+Ot+"'.",en),!De&&(!qe||qe=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):Ot.requirejs?__webpack_require__.e(4184).then(function(){var dt=[__webpack_require__(74620)];bt.apply(null,dt)}.bind(this)).catch(__webpack_require__.oe):(Ct.onload=bt,Nt.appendChild(Ct))}else st(dn,en);en.height=mt,en.width=Tn},Xe=function(Nt,en,nn){var On=Mt(en.width,en.height,en.borderColor,nn),dn=document.createElement("div");dn.style.position="relative",dn.style.display="block",dn.style.width=en.width+"px",dn.style.height=en.height+"px",dn.className="applet_screenshot applet_scaler"+(nn?" applet_screenshot_play":""),dn.appendChild(On);var Tn=GGBAppletUtils.getScale(en,Nt,nn);nn?(Nt.appendChild(jt()),window.GGBT_wsf_view||(Nt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(dn,"66%"),Nt.appendChild(dn),Tn!==1&&!isNaN(Tn)&&(GGBAppletUtils.scaleElement(dn,Tn),dn.style.width=en.width+"px",dn.style.height=en.height+"px",dn.parentNode.style.width=en.width*Tn+"px",dn.parentNode.style.height=en.height*Tn+"px"),Rn.resize=function(){Wt(Nt,On,dn,nn)},window.addEventListener("resize",function(mt){Rn.resize()}),Rn.resize()};function Wt(Nt,en,nn,On){if(Nt.contains(en)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Nt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Nt)}var dn=GGBAppletUtils.getScale(ve,Nt,On);nn.parentNode!==null&&(!isNaN(dn)&&dn!==1?(GGBAppletUtils.scaleElement(nn,dn),nn.parentNode.style.width=ve.width*dn+"px",nn.parentNode.style.height=ve.height*dn+"px"):(GGBAppletUtils.scaleElement(nn,1),nn.parentNode.style.width=ve.width+"px",nn.parentNode.style.height=ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Nt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Rn.onExitFullscreen=function(Nt,en){en.appendChild(Nt)};var zt=function(Nt,en,nn,On){Xe(Nt,en,!0);for(var dn=function(){var Gn=[];for(mt=0;mt<Nt.childNodes.length;mt++)Gn.push(Nt.childNodes[mt]);if(window.GGBT_wsf_view){var xn=window.GGBT_wsf_view.renderFullScreen(Nt,en.id),tt=document.getElementById("fullscreencontainer"),Ee=jQuery(Nt).find(".fullscreencontent");Ee.length>0?(xn.remove(),Ee.attr("id","fullscreencontent").show(),jQuery(tt).append(Ee),window.dispatchEvent(new Event("resize"))):kt(xn,en,!1),window.GGBT_wsf_view.launchFullScreen(tt)}else Pt=On,kt(Nt,en,!1);if(!window.GGBT_wsf_view)for(mt=0;mt<Gn.length;mt++)Nt.removeChild(Gn[mt])},Tn=Nt.getElementsByClassName("ggb_preview_play"),mt=0;mt<Tn.length;mt++)Tn[mt].addEventListener("click",dn,!1),Tn[mt].addEventListener("ontouchstart",dn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Nt),Ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},jt=function(){var Nt=document.createElement("div");if(Nt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var en='.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");}',nn=document.createElement("style");nn.styleSheet?nn.styleSheet.cssText=en:nn.appendChild(document.createTextNode(en)),document.getElementsByTagName("head")[0].appendChild(nn)}return Nt},Mt=function(Nt,en,nn,On){var dn=document.createElement("div");dn.className="ggb_preview",dn.style.position="absolute",dn.style.zIndex="90",dn.style.width=Nt-2+"px",dn.style.height=en-2+"px",dn.style.top="0px",dn.style.left="0px",dn.style.overflow="hidden",dn.style.backgroundColor="white";var Tn="lightgrey";nn!==void 0&&(nn==="none"?Tn="transparent":Tn=nn),dn.style.border="1px solid "+Tn;var mt=document.createElement("img");if(mt.style.position="relative",mt.style.zIndex="1000",mt.style.top="-1px",mt.style.left="-1px",ce!==null&&mt.setAttribute("src",ce),mt.style.opacity=.7,se!==null){var Gn,xn,tt;if(!On){Gn=document.createElement("img"),Gn.style.position="absolute",Gn.style.zIndex="1001",Gn.style.opacity=1,mt.style.opacity=.3,xn=360,xn>Nt/4*3&&(xn=Nt/4*3),tt=xn/5.8,Gn.setAttribute("src",se),Gn.setAttribute("width",xn),Gn.setAttribute("height",tt);var Ee=(Nt-xn)/2,we=(en-tt)/2;Gn.style.left=Ee+"px",Gn.style.top=we+"px",dn.appendChild(Gn)}}return dn.appendChild(mt),dn},Ut=function(Nt){return Nt=Nt.toLowerCase(),Nt==="html5"||Nt==="screenshot"?Nt:"html5"},ft=["web","webSimple","web3d","tablet","tablet3d","phone"],Re=function(Nt,en){if(Me=Nt,en){Lt(Me,!0);return}var nn=!Oe;if(nn){var On=Fe(Me);!isNaN(On)&&On<4.4&&(nn=!1)}var dn,Tn;window.location.protocol.substr(0,4)==="http"?dn=window.location.protocol:dn="http:";var mt=Me.indexOf("//");mt>0?Tn=Me:mt===0?Tn=dn+Me:Tn="https://www.geogebra.org/apps/5.2.814.0/";for(var Gn in ft)if(Me.slice(ft[Gn].length*-1)===ft[Gn]||Me.slice((ft[Gn].length+1)*-1)===ft[Gn]+"/"){Lt(Tn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&nn&&!ye.is3D&&!ye.AV&&!ye.SV&&!ye.CV&&!ye.EV2&&!ye.CP&&!ye.PC&&!ye.DA&&!ye.FI&&!ye.PV&&!Je(ve.showToolBar)&&!Je(ve.showMenuBar)&&!Je(ve.showAlgebraInput)&&!Je(ve.enableRightClick)&&(!ve.appName||ve.appName=="classic")?Tn+="webSimple/":Tn+="web3d/",Lt(Tn,!1)},Lt=function(Nt,en){if(Nt.requirejs){Ot=Nt;return}Nt.slice(-1)!=="/"&&(Nt+="/"),Ot=Nt,en===null&&(en=Nt.indexOf("http")===-1),it=en,te="web.nocache.js",ne=!1;var nn=Ot.split("/");nn.length>1&&(!en&&nn[nn.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):ft.indexOf(nn[nn.length-2])>=0&&(te=nn[nn.length-2]+".nocache.js")),nn=Nt.split("/"),Me=nn[nn.length-3],Me.substr(0,4)==="test"?Me=Me.substr(4,1)+"."+Me.substr(5,1):(Me.substr(0,3)==="war"||Me.substr(0,4)==="beta")&&(Me="5.0");var On=parseFloat(Me);On!==NaN&&On<5&&Nt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+On+" is deprecated. Using version latest instead."),Re("5.0",en))},yn=function(Nt,en){window.console&&window.console.log&&(!en||typeof en.showLogging=="undefined"||en.showLogging&&en.showLogging!=="false")&&console.log(Nt)};ve.material_id!==void 0?Ge(mn):mn();function mn(){var Nt=Mn;qe!==null?Nt=qe:parseFloat(Nt)<5&&(Nt="5.0"),Re(Nt,!1),De!==null&&Lt(De,it),$e=!0}return Rn},GGBAppletUtils=function(){"use strict";function Rn(){return window.GGBT_wsf_edit!==void 0}function Mn($e,qe){qe!=1?($e.style.transformOrigin="0% 0% 0px",$e.style.webkitTransformOrigin="0% 0% 0px",$e.style.transform="scale("+qe+","+qe+")",$e.style.webkitTransform="scale("+qe+","+qe+")",$e.style.maxWidth="initial",$e.querySelector(".ggb_preview")!==null&&($e.querySelector(".ggb_preview").style.maxWidth="initial"),$e.querySelectorAll(".ggb_preview img")[0]!==void 0&&($e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),$e.querySelectorAll(".ggb_preview img")[1]!==void 0&&($e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):($e.style.transform="none",$e.style.webkitTransform="none")}function ve($e,qe,De,Tt,Et,et){var Ot=null;if(et!=null&&et!="")for(var it=$e.parentNode;it!=null;)if((" "+it.className+" ").indexOf(" "+et+" ")>-1){Ot=it;break}else it=it.parentNode;var Pt=0,Me=0,te=0,ne=0,ce=0,se=0,ge=0;if(Ot)Pt=Ot.offsetWidth,Me=Math.max(Tt?Ot.offsetWidth:0,Ot.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Pt=Math.min(window.innerWidth,document.documentElement.clientWidth),Me=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Pt):(Pt=window.innerWidth,Me=window.innerHeight,te=window.innerWidth),$e){var me=$e.getBoundingClientRect();me.left>0&&me.left<=Pt&&(Et===void 0||!Et)&&(document.dir==="rtl"?(ce=Pt-me.width-me.left,se=te<=480?10:30):(se=me.left,ce=te<=480?10:30),ne=se+ce)}if($e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ce=$e.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,ge=40)}}return $e&&((De===void 0||!De)&&qe>0&&qe+ne<Pt?Pt=qe:Pt-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De===void 0||!De)&&(Me-=ge)),{width:Pt,height:Me}}function ye($e,qe,De,Tt,Et){if($e.isScreenshoGenerator)return 1;var et=Tt!==void 0&&Tt,Ot=$e.noScaleMargin!=null&&$e.noScaleMargin,it=function(Ce){return Ce&&Ce!=="false"},Pt=it($e.autoHeight),Me=ve(qe,$e.width,De,Pt,et&&window.GGBT_wsf_view||Ot,Et),te=parseInt(Me.width),ne=$e.width,ce=$e.height;if(ne===void 0){var se=qe.querySelector(".appletParameters");se&&(ne=se.offsetWidth,ce=se.offsetHeight)}var ge=te/ne,me=et?1:Me.height/ce;return De!==void 0&&!De&&(ge=Math.min(1,ge),me=Math.min(1,me)),Math.min(ge,me)}function Oe($e,qe,De){var Tt=1,Et,et=!1;if($e.hasOwnProperty("allowUpscale")&&(et=$e.allowUpscale),$e.hasOwnProperty("scale")&&(Tt=parseFloat($e.scale),(isNaN(Tt)||Tt===null||Tt===0)&&(Tt=1),Tt>1&&(et=!0)),qe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(et=!0),!($e.hasOwnProperty("disableAutoScale")&&$e.disableAutoScale))Et=ye($e,qe,et,De,$e.scaleContainerClass);else return Tt;return et&&(!$e.hasOwnProperty("scale")||Tt===1)?Et:Math.min(Tt,Et)}function He($e){var qe=Math.min(window.innerWidth,document.documentElement.clientWidth),De=Math.min(window.innerHeight,document.documentElement.clientHeight),Tt=$e.getBoundingClientRect(),Et=(qe-Tt.width)/2,et=(De-Tt.height)/2;et<0&&(et=0),$e.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Et<40?$e.style.left="40px":$e.style.left=Et+"px",$e.style.top=et+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et<40?$e.style.top="40px":$e.style.top=et+"px",$e.style.left=Et+"px")}function Rt($e,qe){var De=$e.querySelector(".appletParameters");if(De){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(qe.id!==De.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition($e)}if(De.parentElement&&/fullscreen/.test(De.parentElement.className))return;var Tt=Oe(qe,$e);Rn()&&De.setAttribute("data-param-scale",Tt);for(var Et=null,et=0;et<$e.childNodes.length;et++)if($e.childNodes[et].className!==void 0&&$e.childNodes[et].className.match(/^applet_scaler/)){Et=$e.childNodes[et];break}if(Et!==null&&Et.querySelector(".noscale")!==null)return;var Ot=qe.id!==void 0?qe.id:"ggbApplet",it=window[Ot];(it==null||!it.recalculateEnvironments)&&Et!==null&&!Et.className.match(/fullscreen/)&&(Et.parentNode.style.transform="",!isNaN(Tt)&&Tt!==1?(Et.parentNode.style.width=qe.width*Tt+"px",Et.parentNode.style.height=qe.height*Tt+"px",Mn(Et,Tt)):(Mn(Et,1),Et.parentNode.style.width=qe.width+"px",Et.parentNode.style.height=qe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&He($e),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(De).parents(".content-added-content"))}}return{responsiveResize:Rt,isFlexibleWorksheetEditor:Rn,positionCenter:He,getScale:Oe,scaleElement:Mn}}();__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 Rn=n.location.search;return Rn.indexOf(J)!=-1||Rn.indexOf(K)!=-1}function q(Rn,Mn){}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(Rn){var Mn=s[L].bindings;s[L].bindings=function(){for(var ve=Mn?Mn():{},ye=Rn[webModule.__softPermutationId],Oe=O;Oe<ye.length;Oe++){var He=ye[Oe];ve[He[O]]=He[P]}return ve}};var t;function u(){return v(),t}function v(){if(!t){var Rn=o.createElement(Q);if(Rn.id=L,Rn.style.cssText=R+S,Rn.tabIndex=-1,o.body.appendChild(Rn),t=Rn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Mn=document.compatMode==U?V:W;t.write(Mn+X),t.close()}}}function w(Rn){function Mn(ye){function Oe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var He=Oe();if(He){ye();return}function Rt(){if(!He){if(!Oe())return;He=!0,ye(),o.removeEventListener&&o.removeEventListener(Z,Rt,!1),$e&&clearInterval($e)}}o.addEventListener&&o.addEventListener(Z,Rt,!1);var $e=setInterval(function(){Rt()},$)}function ve(ye){var Oe=u(),He=Oe.body,Rt=Oe.createElement(_);Rt.language=ab,Rt.crossOrigin=W,Rt.src=ye,webModule.__errFn&&(Rt.onerror=function(){webModule.__errFn(L,new Error(bb+ye))}),He.appendChild(Rt)}Mn(function(){ve(Rn)})}webModule.__startLoadingFragment=function(Rn){return C(Rn)},webModule.__installRunAsyncCode=function(Rn){var Mn=u(),ve=Mn.body,ye=Mn.createElement(_);ye.language=ab,ye.text=Rn,ve.appendChild(ye),ve.removeChild(ye)};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(Rn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Rn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Rn){var Mn=c[Rn];return Mn==null?null:Mn},r=d,webModule.__errFn=e}function B(){function Rn($e){var qe=$e.lastIndexOf(rb);qe==-1&&(qe=$e.length);var De=$e.indexOf(sb);De==-1&&(De=$e.length);var Tt=$e.lastIndexOf(tb,Math.min(De,qe));return Tt>=O?$e.substring(O,Tt+P):W}function Mn($e){if(!$e.match(/^\w+:\/\//)){var qe=o.createElement(ub);qe.src=$e+vb,$e=Rn(qe.src)}return $e}function ve(){var $e=__gwt_getMetaProperty(wb);return $e!=null?$e:W}function ye(){for(var $e=o.getElementsByTagName(_),qe=O;qe<$e.length;++qe)if($e[qe].src.indexOf(xb)!=-1)return Rn($e[qe].src);return W}function Oe(){var $e=o.getElementsByTagName(yb);return $e.length>O?$e[$e.length-P].href:W}function He(){var $e=o.location;return $e.href==$e.protocol+zb+$e.host+$e.pathname+$e.search+$e.hash}var Rt=ve();return Rt==W&&(Rt=ye()),Rt==W&&(Rt=Oe()),Rt==W&&He()&&(Rt=Rn(o.location.href)),Rt=Mn(Rt),Rt}function C(Rn){return Rn.match(/^\//)||Rn.match(/^[a-zA-Z]+:\/\//)?Rn:webModule.__moduleBase+Rn}function D(){var Rn=[],Mn=O,ve=[],ye=[];function Oe($e){var qe=ye[$e](),De=ve[$e];if(qe in De)return qe;var Tt=[];for(var Et in De)Tt[De[Et]]=Et;throw r&&r($e,Tt,qe),null}if(__gwt_isKnownPropertyValue=function($e,qe){return qe in ve[$e]},webModule.__getPropMap=function(){var $e={};for(var qe in ve)ve.hasOwnProperty(qe)&&($e[qe]=Oe(qe));return $e},webModule.__computePropValue=Oe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var He;try{He=Cb;var Rt=He.indexOf(Db);Rt!=-1&&(Mn=parseInt(He.substring(Rt+P),$),He=He.substring(O,Rt))}catch($e){}return webModule.__softPermutationId=Mn,C(He+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Ax:function(){return Rt},Ds:function(){return $e},KI:function(){return De},SI:function(){return He},f1:function(){return Oe}});var ye=ve(3294);function Oe(Tt){let Et=!0;if(Tt.length>0){for(let et=0;et<Tt.length;et++)if(Tt[et].compile_success==0||!Tt[et].compile_success){Et=!1;break}}else Et=!1;return Et}function He(Tt,Et=""){let et=[];for(let Ot=0;Ot<Tt.length;Ot++){let it=Tt[Ot],Pt=Et?`${Et}/${it.name}`:`${it.name}`;et.push({title:it.name,type:it.type,isLeaf:it.type!=="tree",key:Pt})}return et}function Rt(Tt,Et,et){for(let Ot=0;Ot<Tt.length;Ot++){let it=Tt[Ot];if(it.key===Et){it.children=et;break}it.children&&Rt(it.children,Et,et)}return Tt}function $e(Tt,Et,et){let Ot;return function(){let it=this,Pt=arguments,Me=function(){Ot=null,et||Tt.apply(it,Pt)},te=et&&!Ot;clearTimeout(Ot),Ot=setTimeout(Me,Et),te&&Tt.apply(it,Pt)}}const qe=!0,De=ye.Z.API_SERVER},73524:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Ot}});var ye=ve(59301),Oe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},He=ve(92310),Rt=ve.n(He),$e=ve(71418),qe=ve(2859),De=ve(99064),Tt=ve(955),Et=(it,Pt,Me)=>new Promise((te,ne)=>{var ce=me=>{try{ge(Me.next(me))}catch(Ce){ne(Ce)}},se=me=>{try{ge(Me.throw(me))}catch(Ce){ne(Ce)}},ge=me=>me.done?te(me.value):Promise.resolve(me.value).then(ce,se);ge((Me=Me.apply(it,Pt)).next())}),Ot=({data:it,className:Pt,fullWidth:Me,style:te={},onClose:ne,onOk:ce,showFullTools:se,noAssociationId:ge})=>{const me=(0,ye.useRef)(null),Ce=(0,ye.useRef)(null),Fe=(0,ye.useRef)(null),Pe=(0,ye.useRef)(null),[Ie,Ge]=(0,ye.useState)(!1),[Ke,Ye]=(0,ye.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ye.useEffect)(()=>(Fe.current||(Fe.current=document.createElement("style"),document.head.appendChild(Fe.current)),it!=null&&it.visible?(document.body.setAttribute("data-custom","y-hidden"),Fe.current.innerHTML=" html { overflow-y: hidden; }",it!=null&&it.src&&pt()):(document.body.removeAttribute("data-custom"),Fe.current&&(document.head.removeChild(Fe.current),Fe.current=null)),()=>{document.body.removeAttribute("data-custom"),Fe.current&&(document.head.removeChild(Fe.current),Fe.current=null)}),[it==null?void 0:it.visible]);const pt=()=>Et(void 0,null,function*(){Ge(!0),Ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Wt=yield(0,Tt.ZJ)(it==null?void 0:it.src);me.current.src="",me.current.src=Wt,me.current.onload=function(){Xe()},Ge(!1),Ye("")}),Je=Wt=>Et(void 0,null,function*(){Ge(!0),Ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const zt=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:it.title,file:Wt.dataUrl}});zt!=null&&zt.id&&!ge?(yield(0,De.ZP)(`/api/attachments/${it.id}/add_subitem.json`,{method:"post",body:{subitem_id:zt==null?void 0:zt.id,settings:JSON.stringify(Wt.state)}})).status===0&&ce():zt!=null&&zt.id&&ce(zt),Ge(!1),Ye("")}),kt=()=>{const Wt=document.querySelector('a[href="https://markerjs.com/"]');Wt&&Wt.parentNode&&(Wt.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(jt=>{const Mt=document.querySelector(jt.name);Mt&&Mt.setAttribute("title",jt.title)})},Xe=()=>{Ce.current=new qe.hP(me.current),Ce.current.targetRoot=Pe.current,Ce.current.addEventListener("render",Je),Ce.current.addEventListener("beforeclose",ne),se&&(Ce.current.availableMarkerTypes=Ce.current.ALL_MARKER_TYPES,Ce.current.uiStyleSettings.redoButtonVisible=!0,Ce.current.uiStyleSettings.notesButtonVisible=!0,Ce.current.uiStyleSettings.zoomButtonVisible=!0,Ce.current.uiStyleSettings.zoomOutButtonVisible=!0,Ce.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ce.current.uiStyleSettings,Ce.current.show(),it!=null&&it.snapshotData&&Ce.current.restoreState(it.snapshotData),setTimeout(()=>{window.scrollTo(0,0),kt()},300)};return ye.createElement(ye.Fragment,null,(it==null?void 0:it.visible)&&ye.createElement($e.Z,{spinning:Ie,tip:Ke,style:{position:"absolute",width:"100vw"}},ye.createElement("div",{ref:Pe,className:Rt()(Oe.imageDimensions,Pt,Me?Oe.fullWidth:""),style:te},ye.createElement("img",{className:Oe.img,ref:me}))))}},41588:function(Rn,Mn,ve){"use strict";var ye=ve(59301),Oe=ve(95237),He=ve(43604),Rt=ve(99313),$e=ve(3113),qe=ve(85149),De=ve(88010),Tt=ve(48136),Et=ve(59301);const et=(0,ye.forwardRef)(({callback:Ot,showSaveButton:it,value:Pt=""},Me)=>{const te=(0,ye.useRef)(),ne=[{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 "}]}]}],ce=[{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}`}]}]}],se=Ce=>{te.current.setValue(te.current.getValue()+" "+Ce.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Et.createElement(Oe.Z,{className:De.Z.lists,gutter:[10,10]},ne.map((Ce,Fe)=>Et.createElement(He.Z,{flex:"110px",className:De.Z.item},Et.createElement("div",null,Et.createElement(qe.Z,{value:`$$${Ce.value}$$`}),Ce.name),Et.createElement("div",{className:De.Z.children},Ce.children.map((Pe,Ie)=>Et.createElement("div",{key:Ie},Et.createElement("h1",null,Pe.name),Et.createElement(Oe.Z,{gutter:[10,10]},Pe.data.map((Ge,Ke)=>Et.createElement(He.Z,{key:Ke,onClick:()=>se(Ge),className:De.Z.diamond},Et.createElement(qe.Z,{value:"`$$"+Ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Et.createElement(Oe.Z,{className:De.Z.lists,gutter:[10,10]},ce.map((Ce,Fe)=>Et.createElement(He.Z,{flex:"110px",className:De.Z.item},Et.createElement("div",null,Et.createElement(qe.Z,{value:"`$$"+Ce.value+"$$`"}),Ce.name),Et.createElement("div",{className:De.Z.children},Ce.children.map((Pe,Ie)=>Et.createElement("div",{key:Ie},Pe.name&&Et.createElement("h1",null,Pe.name),Et.createElement(Oe.Z,{gutter:[10,10]},Pe.data.map((Ge,Ke)=>Et.createElement(He.Z,{key:Ke,onClick:()=>se(Ge),className:De.Z.diamond},Et.createElement(qe.Z,{value:"`$$"+Ge.value+"$$`"}))))))))))}],me=()=>{var Ce=document.createElement("div");Ce.innerHTML=te.current.getValue();var Fe=Ce.innerText;return Ot&&Ot(Fe),Fe};return(0,ye.useImperativeHandle)(Me,()=>({getData:me})),Et.createElement("div",{className:De.Z.mathWrap},Et.createElement(Rt.default,{defaultActiveKey:"1",items:ge}),Et.createElement("math-field",{locale:"zh_cn",className:De.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},Pt||""),it&&Et.createElement("div",{className:De.Z.button},Et.createElement($e.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Mn.Z=et},8797:function(Rn,Mn,ve){"use strict";var ye=ve(59301),Oe=ve(93314),He=ve(3113),Rt=Object.defineProperty,$e=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,et=(Me,te,ne)=>te in Me?Rt(Me,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Me[te]=ne,Ot=(Me,te)=>{for(var ne in te||(te={}))Tt.call(te,ne)&&et(Me,ne,te[ne]);if(De)for(var ne of De(te))Et.call(te,ne)&&et(Me,ne,te[ne]);return Me},it=(Me,te)=>$e(Me,qe(te));const Pt=({img:Me,buttonProps:te={},styles:ne={},customText:ce,ButtonText:se,ButtonClick:ge,Buttonclass:me,ButtonTwo:Ce,imgStyles:Fe,loading:Pe=!1})=>ye.createElement("section",{className:"tc animated fadeIn",style:Ot(Ot({},{color:"#999",margin:"100px auto",visibility:Pe?"hidden":"visible"}),ne)},ye.createElement("img",{src:Me||Oe,style:it(Ot({},Fe),{pointerEvents:"none",userSelect:"none"})}),ye.createElement("p",{className:"mt20 font14"},ce||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&ye.createElement(He.ZP,Ot({className:me,onClick:ge},te),se),Ce&&Ce);Mn.Z=Pt},40731:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Q:function(){return qe}});var ye=ve(59301),Oe=ve(57809),He=ve(5112),Rt=ve(5871),$e=ve(59301),qe=(Tt=>(Tt[Tt.Number=1]="Number",Tt[Tt.Percent=2]="Percent",Tt))(qe||{});const De=({value:Tt,onChange:Et,disabled:et,hidePercentOption:Ot=!1,percentType:it="select"})=>{const Pt=(0,ye.useMemo)(()=>Ot?1:2,[Ot]),[Me,te]=(0,ye.useState)(Pt);console.log(Me);const ne=se=>Tt.type===1?`${se}\u5206`:`${se}%`,ce=(0,ye.useCallback)(se=>{if(Me===1){const ge=se.replace("\u5206","");return isNaN(parseInt(ge,10))?0:ge}else return se.replace("%","")},[Me]);return(0,ye.useEffect)(()=>{te(Tt.type)},[Tt]),$e.createElement("div",{style:{display:"flex",alignItems:"center"}},it=="select"&&$e.createElement(Oe.default,{size:"large",onChange:se=>{te(se),Et({type:se,inputValue:se===1?5:20})},value:Me||Pt,style:{width:100},options:Ot?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:et}),it=="radio"&&$e.createElement(He.ZP.Group,{size:"large",onChange:se=>{const ge=se.target.value;te(ge),Et({type:ge,inputValue:ge===1?5:20})},value:Me||Pt,disabled:et},!Ot&&$e.createElement(He.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),$e.createElement(He.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),it=="radio"&&$e.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Tt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),$e.createElement(Rt.Z,{size:"large",disabled:et,value:Tt.inputValue,style:{width:"120px"},parser:ce,addonAfter:Tt.type===1?"\u5206":"%",max:Me===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:se=>{Et({type:Me,inputValue:se})}}),it=="radio"&&Tt.type==2&&$e.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Mn.Z=De},23210:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return me}});var ye=ve(59301),Oe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},He=ve(3113),Rt=ve(70557),$e=ve(23954),qe=ve(6848),De=ve(955),Tt=ve(94941),Et=ve(8797),et=ve(3294),Ot=ve(19381),it=ve(59301),Pt=Object.defineProperty,Me=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ce=(Ce,Fe,Pe)=>Fe in Ce?Pt(Ce,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ce[Fe]=Pe,se=(Ce,Fe)=>{for(var Pe in Fe||(Fe={}))te.call(Fe,Pe)&&ce(Ce,Pe,Fe[Pe]);if(Me)for(var Pe of Me(Fe))ne.call(Fe,Pe)&&ce(Ce,Pe,Fe[Pe]);return Ce},ge=(Ce,Fe,Pe)=>new Promise((Ie,Ge)=>{var Ke=Je=>{try{pt(Pe.next(Je))}catch(kt){Ge(kt)}},Ye=Je=>{try{pt(Pe.throw(Je))}catch(kt){Ge(kt)}},pt=Je=>Je.done?Ie(Je.value):Promise.resolve(Je.value).then(Ke,Ye);pt((Pe=Pe.apply(Ce,Fe)).next())}),me=({editOffice:Ce="view",data:Fe,theme:Pe,type:Ie,filename:Ge,monacoEditor:Ke,className:Ye,style:pt,close:Je,onClose:kt,hasMask:Xe,disabledDownload:Wt,onImgDimensions:zt,showNodata:jt,recordInfo:Mt})=>{const[Ut,ft]=(0,ye.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Re,Lt]=(0,ye.useState)(""),[yn,mn]=(0,ye.useState)(),Nt=window.ENV==="build"?"/react/build":"",en=location.host.startsWith("localhost")?et.Z.PROXY_SERVER:et.Z.API_SERVER,On=10*(1024*1024),dn=(0,ye.useRef)();Fe!=null&&Fe.startsWith("/api")&&Ie!=="txt"&&(Fe=et.Z.API_SERVER+Fe);const Tn=tt=>tt.substring(tt.lastIndexOf("/")+1).split(".").pop();Ge&&Ke&&(Ke.filename=Ge),(0,ye.useEffect)(()=>{var tt,Ee;const we=(Ee=(tt=document.cookie)==null?void 0:tt.replace(/\s/g,""))==null?void 0:Ee.split(";");we==null||we.map(Be=>{let ke=Be.split("=");ke[0]==="_educoder_session"&&Lt(ke[1])})},[]),(0,ye.useEffect)(()=>{Ie==="office"&&(Fe.indexOf("bigfilescdn.")>-1||Fe.indexOf("bigfiles1")>-1?mn({url:Fe,fileType:Tn(Fe),model:Fe.indexOf("model=edit")?"edit":"view"}):mt())},[Ie,Fe]);const mt=()=>ge(void 0,null,function*(){console.log("data:",Fe);let tt=Fe;Fe.startsWith("http")||(tt=location.origin+tt);let Ee=new URL(tt).pathname.split("/").pop();const we=yield(0,Tt.gJ)({attachment_id:Ee});we.url=en+we.url,mn(we)}),Gn=()=>{if(Fe.startsWith("http")||Fe.startsWith("blob:")){xn();return}(0,De.Sv)(Ge||"educoder",Fe,Ge)},xn=()=>{Mt&&(0,Ot.fc)({id:Mt==null?void 0:Mt.id,watch_type:1,course_id:Mt==null?void 0:Mt.course_id}),(0,De.Nd)(Ge||"educoder",decodeURIComponent(Fe))};return it.createElement("div",{style:se({},pt||{}),className:`${Xe&&Oe.bgBlack} ${Ie?Oe.wrp:"hide"}`},Je&&it.createElement("div",{className:Oe.close,ref:dn},!!zt&&it.createElement(qe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>dn.current},it.createElement("span",{onClick:()=>{kt(),zt()}},it.createElement("i",{className:"icon-yulanpizhu"}))),!Wt&&it.createElement(qe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>dn.current},it.createElement("span",{onClick:xn},it.createElement("i",{className:"icon-quxiaozhiding"}))),it.createElement(qe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>dn.current},it.createElement("span",{className:"",onClick:kt},it.createElement("i",{className:"icon-guanbi1"})))),it.createElement("div",{className:`${Oe[Ye]} ${Ye} ${Oe.monaco} ${Ie==="txt"?"show":"hide"}`},Ie==="txt"&&it.createElement(it.Fragment,null,it.createElement($e.ZP,se({},Ke)))),Ie==="audio"&&it.createElement("audio",{src:`${(Fe==null?void 0:Fe.indexOf("http://"))>-1||(Fe==null?void 0:Fe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Fe}`,autoPlay:!0}),Ie==="video"&&it.createElement(it.Fragment,null,(Fe==null?void 0:Fe.indexOf("http"))>-1?it.createElement("video",{controls:!0,src:`${Fe}`,autoPlay:!0}):it.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Fe}`,autoPlay:!0})),Ie==="office"&&yn&&it.createElement("iframe",{src:`${Nt}/office.html?key=${yn.key}&url=${btoa(yn.url)}&callbackUrl=${en+(yn.callbackUrl||"")}&fileType=${yn.fileType}&title=${yn.title||""}&model=${Ce}&officeServer=${et.Z.ONLYOFFICE}&disabledDownload=${!!Wt}`}),Ie==="html"&&it.createElement("iframe",{src:Fe+"&disposition=inline"}),Ie==="pdf"&&it.createElement("iframe",{src:`${Nt}/js/pdfview/index.html?filename=${Ge||"educoder.pdf"}&url=${encodeURIComponent(Fe)}&disabledDownload=${!!Wt}`}),Ie==="image"&&it.createElement("img",{src:`${(Fe==null?void 0:Fe.indexOf("http://"))>-1||(Fe==null?void 0:Fe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Fe}`}),(Ie==="other"||Ie==="download")&&it.createElement(it.Fragment,null,jt?it.createElement(Et.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:it.createElement(He.ZP,{icon:it.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Gn,disabled:Wt},"\u4E0B\u8F7D")}):it.createElement(He.ZP,{type:"primary",size:"middle",onClick:Gn,disabled:Wt},it.createElement(Rt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Rn,Mn,ve){"use strict";ve.d(Mn,{z:function(){return Ie},Z:function(){return Ge}});var ye=ve(59301),Oe=ve(50304),He=ve(24768),Rt=ve(64018),$e=ve(40846),qe=ve(3294),De=ve(955),Tt=ve(15342),Et=ve(1012),et=ve(23210),Ot=ve(59301),Pt=({html:Ke})=>{const Ye=(0,ye.useRef)(null),pt=(0,ye.useRef)(null),Je=`.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,ye.useEffect)(()=>{const kt=Ye.current.attachShadow({mode:"open"});pt.current=document.createElement("div"),pt.current.className="markdown-body",pt.current.innerHTML=Ke,kt.appendChild(pt.current);const Xe=document.createElement("style");return Xe.textContent=Je,kt.appendChild(Xe),()=>{kt.innerHTML=""}},[]),(0,ye.useEffect)(()=>{pt.current&&(pt.current.innerHTML=Ke)},[Ke]),Ot.createElement("div",{ref:Ye})},Me=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,se=(Ke,Ye,pt)=>Ye in Ke?Me(Ke,Ye,{enumerable:!0,configurable:!0,writable:!0,value:pt}):Ke[Ye]=pt,ge=(Ke,Ye)=>{for(var pt in Ye||(Ye={}))ne.call(Ye,pt)&&se(Ke,pt,Ye[pt]);if(te)for(var pt of te(Ye))ce.call(Ye,pt)&&se(Ke,pt,Ye[pt]);return Ke};const me="@\u2581\u2581@",Ce="@\u2581@",Fe=/<pre[^>]*>/g;function Pe(Ke){let Ye=document.createElement("div");return Ye.innerHTML=Ke,Ye.childNodes.length===0?"":Ye.childNodes[0].nodeValue}const Ie=(Ke,Ye)=>{Ke=Ke||"";const pt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Je=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,kt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ye?Ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pt,(Wt,zt,jt,Mt,Ut,ft,Re)=>{const Lt=zt||Mt||ft,yn=jt||Ut||Re||"?";return qe.Z.API_SERVER+"/api/attachments/"+Lt+yn+"&t="+(0,De.Jn)(Lt,Date.now())+(Wt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ke=Ke.replace(Xe,(Wt,zt,jt,Mt,Ut,ft,Re)=>{const Lt=zt||Mt||ft,yn=jt||Ut||Re||"?";return qe.Z.API_SERVER+"/attachments/download/"+Lt+yn+"&t="+(0,De.Jn)(Lt,Date.now())+(Wt.indexOf(")")>-1?")":"&")}).replace(pt,(Wt,zt,jt,Mt,Ut,ft,Re)=>{const Lt=zt||Mt||ft,yn=jt||Ut||Re||"?";return qe.Z.API_SERVER+"/api/attachments/"+Lt+yn+"&t="+(0,De.Jn)(Lt,Date.now())+(Wt.indexOf(")")>-1?")":"&")}).replace(Je,(Wt,zt,jt,Mt,Ut)=>{const ft=zt||Mt,Re=jt||Ut||"";return'"'+qe.Z.API_SERVER+"/api/attachments/"+ft+Re+ft+Re+"&t="+(0,De.Jn)(ft,Date.now())}).replace(kt,(Wt,zt,jt,Mt,Ut)=>{const ft=zt||Mt,Re=jt||Ut||"";return"("+qe.Z.API_SERVER+"/files/uploads/"+ft+Re+ft+Re+"&t="+(0,De.Jn)(ft,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,`
`),Ke)};var Ge=({value:Ke="",className:Ye,showTextOnly:pt,showLines:Je,style:kt={},stylesPrev:Xe={},highlightKeywords:Wt,showProgramFill:zt,isProgramFill:jt,disabledFill:Mt=!1,programFillValue:Ut,onFillChange:ft=yn=>{},onFillBlur:Re=()=>{},onFillFocus:Lt=()=>{}})=>{let yn=String(Ke);const[mn,Nt]=(0,ye.useState)(""),[en,nn]=(0,ye.useState)("office"),[On,dn]=(0,ye.useState)([]),Tn=(0,ye.useRef)("a"+(0,Et.Z)()),mt={},Gn=(Ct,bt,dt)=>{const Ht=document.createElement(Ct===Ce?"input":"textarea");Ht.style.width="100%",Ht.style.height=Ct===Ce?"40px":"151px",Ht.rows=5,Ht.spellcheck=!1,Ht.name="edu-program-fill",Ht.placeholder="\u8BF7\u8F93\u5165",Ht.dataset.id=bt;const En=Object.keys(mt).length;return mt[En]=Ht,`<span class="edu-program-fill-wrap ${Ct===Ce?"":"show"}" style="width:${Ct===Ce?"400px":"100%"}" title=${dt||""}><span>${Ht.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function xn(Ct){return Ct=Ct.replace(/!\[.*?\]\(.*?\)/g,""),Ct=Ct.replace(/\[.*?\]\(.*?\)/g,""),Ct=Ct.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ct=Ct.replace(/<embed.*?>/g,""),Ct=Ct.replace(/<img.*?>/g,""),Ct=Ct.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ct=Ct.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ct=Ct.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ct=Ct.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ct}const tt=Ct=>Ct.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(bt,dt){let Ht=dt.replace(/(\n|\r)/g,"").split("}"),En=[];return Ht.map(An=>{An!=""&&En.push(`.${Tn.current} ${An}`)}),`<style>${En.join("}")}</style>`}),Ee=(0,ye.useMemo)(()=>{try{const Ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,En=/\"\/api\/attachments\/|\"\/attachments\/download\//g,An=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,qt=/\(\/attachments\/download\//g;yn=yn.replace(qt,"("+qe.Z.API_SERVER+"/attachments/download/").replace(Ht,"("+qe.Z.API_SERVER+"/api/attachments/").replace(En,'"'+qe.Z.API_SERVER+"/api/attachments/").replace(An,'"'+qe.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(Ht){}if(zt){let Ht=-1;return yn=yn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(En,An,qt){var cn;return++Ht,Gn(En,Ht,(cn=Ut==null?void 0:Ut[Ht])==null?void 0:cn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${tt(yn||"")}</pre>`}let Ct=tt(yn);Ct=(0,He.ZP)(Ct);const bt=(0,He.ez)();yn.match(/\[TOC\]/)&&(Ct=Ct.replace("<p>[TOC]</p>",(0,He.Qv)()),(0,He.Iy)()),Ct=Ct.replace(/(__special_katext_id_\d+__)/g,(Ht,En)=>{const{type:An,expression:qt}=bt[En];return(0,Tt.renderToString)(Pe(qt)||"",{displayMode:An==="block",throwOnError:!1,output:"html"})}),Ct=Ct.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,He.AL)();const dt=document.createElement("div");if(dt.innerHTML=Ct,pt)return dt.innerText;if(Wt){const Ht=Wt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Se(dt,Ht),dt.innerHTML}return setTimeout(()=>Ve(),500),dt.innerHTML},[yn,Wt]);(0,ye.useEffect)(()=>{st.current&&st.current.querySelectorAll(["input","textarea"]).forEach(bt=>{bt.oninput=we,bt.onblur=Be,bt.onfocus=ke})},[On]),(0,ye.useEffect)(()=>{var Ct,bt,dt,Ht,En;if(Ut!=null&&Ut.length)try{const An=st.current.querySelectorAll(".edu-program-fill-score"),qt=st.current.querySelectorAll('[name="edu-program-fill"]');for(const[cn,qn]of qt.entries())qn.value=((Ct=Ut==null?void 0:Ut[cn])==null?void 0:Ct.value)||"",((bt=Ut==null?void 0:Ut[cn])==null?void 0:bt.type)==="warning"?qn.className="program-fill-warning":((dt=Ut==null?void 0:Ut[cn])==null?void 0:dt.type)==="success"?qn.className="program-fill-success":qn.className="";for(const[cn,qn]of An.entries())qn.innerHTML=(Ht=Ut==null?void 0:Ut[cn])!=null&&Ht.score?`${(En=Ut==null?void 0:Ut[cn])==null?void 0:En.score}\u5206`:"";dn(Ut)}catch(An){console.log(An,"error")}},[Ut]);const we=Ct=>{On[Ct.target.dataset.id]=On[Ct.target.dataset.id]||{},On[Ct.target.dataset.id].value=Ct.target.value,dn([...On]),ft(On,Ct.target.dataset.id)},Be=Ct=>{On[Ct.target.dataset.id]=On[Ct.target.dataset.id]||{},On[Ct.target.dataset.id].value=Ct.target.value,dn([...On]),Re(On,Ct.target.dataset.id)},ke=Ct=>{On[Ct.target.dataset.id]=On[Ct.target.dataset.id]||{},On[Ct.target.dataset.id].value=Ct.target.value,dn([...On]),Lt(On,Ct.target.dataset.id)};function Se(Ct,bt){return Ct.childNodes.forEach(dt=>{var Ht;if(dt.childNodes.length>0)Se(dt,bt);else if(dt.nodeName!=="IMG")if(dt.innerHTML)dt.innerHTML=(Ht=dt.innerHTML)==null?void 0:Ht.replace(new RegExp(bt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const En=document.createElement("span");En.innerHTML=dt.textContent.replace(new RegExp(bt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),dt.replaceWith(En)}})}const st=(0,ye.useRef)();He.jb.WebkitLineClamp=Je,Je&&(kt=ge(ge({},kt),He.jb));function At(Ct){let bt=Ct.target;if(bt.tagName.toUpperCase()==="A"){let dt=bt.getAttribute("href");if(dt.indexOf("office")>-1)Ct.preventDefault(),Nt(dt),nn("office");else if(dt.indexOf("application/pdf")>-1)Ct.preventDefault(),Nt(dt),nn("pdf");else if(dt.indexOf("text/html")>-1)Ct.preventDefault(),Nt(dt),nn("html");else if(dt.startsWith("#")){Ct.preventDefault();let Ht=document.getElementById(dt.replace("#",""));Ht&&Ht.scrollIntoView(!0)}}}const Ve=()=>{var Ct;const bt=(Ct=st.current)==null?void 0:Ct.querySelectorAll("video");bt==null||bt.forEach(dt=>{if(dt.oncontextmenu=()=>!1,dt.src.indexOf(".m3u8")>-1&&!dt.canPlayType("application/vnd.apple.mpegurl")){if($e.ZP.isSupported()){var Ht=new $e.ZP;Ht.loadSource(dt.src),Ht.attachMedia(dt)}}})};(0,ye.useEffect)(()=>{if(st.current&&Ee&&Ee.match(Fe)&&window.PR.prettyPrint(),st.current)return st.current.addEventListener("click",At),()=>{var Ct;(Ct=st.current)==null||Ct.removeEventListener("click",At),(0,He.AL)(),(0,He.Iy)()}},[Ee,st.current,At]),(0,ye.useEffect)(()=>{var Ct;const bt=dt=>{dt.preventDefault(),dt.clipboardData.setData("text",window.getSelection().toString())};return(Ct=st.current)==null||Ct.addEventListener("copy",bt),()=>{var dt;(dt=st.current)==null||dt.removeEventListener("copy",bt)}},[st.current]);const We=Ct=>/<style[\s\S]*?>/i.test(Ct||"");return ye.createElement(ye.Fragment,null,pt&&ye.createElement("div",{ref:st},Ee),!pt&&!We(Ee)&&ye.createElement("div",{ref:st,style:ge({},kt),className:`${Ye||""} ${Mt?"disabled-fill":""} markdown-body ${Tn.current}`,dangerouslySetInnerHTML:{__html:Ee}}),!pt&&We(Ee)&&ye.createElement(Pt,{html:Ee}),ye.createElement(et.Z,{close:!0,data:mn,type:mn!=null&&mn.length?en:"",style:ge({},Xe),onClose:()=>Nt("")}))}},82438:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(59301),Oe={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},He=ve(43418),Rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",qe=(Et,et,Ot)=>new Promise((it,Pt)=>{var Me=ce=>{try{ne(Ot.next(ce))}catch(se){Pt(se)}},te=ce=>{try{ne(Ot.throw(ce))}catch(se){Pt(se)}},ne=ce=>ce.done?it(ce.value):Promise.resolve(ce.value).then(Me,te);ne((Ot=Ot.apply(Et,et)).next())}),Tt=({type:Et,resdata:et,onok:Ot,oktext:it,okloading:Pt})=>{const[Me,te]=(0,ye.useState)(!1),{can_copy_list:ne,can_copy_num:ce,challenge_type:se,course_data_list:ge,no_copy_list:me,no_copy_num:Ce,no_use_list:Fe,no_use_num:Pe,repeat_shixun_num:Ie,student_count:Ge,total_num:Ke,use_num:Ye}=et;let pt=ce>0||Et==="exercise";(0,ye.useEffect)(()=>{(et==null?void 0:et.student_count)>0&&te(!0)},[et]),console.log("---11",Pt),(0,ye.useEffect)(()=>{Pt||te(!1)},[Pt]);const Je=()=>{if(Et==="exercise"&&se===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:Oe.orangeColor},Ge),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:Oe.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Et==="exercise"&&se===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:Oe.orangeColor},Ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:Oe.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="shixun"&&se===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:Oe.orangeColor},Ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="shixun"&&se===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:Oe.orangeColor},Ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="subject"&&se===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:Oe.orangeColor},Ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:Oe.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="subject"&&se===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ye.createElement("span",{className:Oe.orangeColor},Ge)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ye.createElement("span",{className:Oe.orangeColor},Ye)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="exercisepush")return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:Oe.orangeColor},Ge),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ye.createElement("span",{className:Oe.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Et==="shixunpush"&&se===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:Oe.orangeColor},Ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:Oe.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="shixunpush"&&se===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:Oe.orangeColor},Ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ye.createElement("span",{className:Oe.orangeColor},Ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},kt=()=>{if(Et==="exercise"||Et==="subject"||Et==="exercisepush"||Et==="shixunpush")return ye.createElement("div",{style:{marginTop:20}},Ce>0&&ye.createElement("div",null,ye.createElement("span",{className:Oe.flex},ye.createElement("img",{src:$e,style:{width:14}}),ye.createElement("span",{className:Oe.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ye.createElement("div",{className:Oe.statusbody},Et==="exercise"&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:Oe.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Et==="subject"||Et==="exercisepush")&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pt&&ye.createElement("span",{className:Oe.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Et==="shixunpush"&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pt&&ye.createElement("span",{className:Oe.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ye.createElement("div",null,me==null?void 0:me.map((Xe,Wt)=>ye.createElement("a",{href:`/shixuns/${Xe.identifier}/challenges`,target:"_blank"},"\u300A",Xe==null?void 0:Xe.name,"\u300B",Wt+1!==Ce&&"\u3001"))))),ce>0&&ye.createElement("div",{style:{marginTop:20}},ye.createElement("span",{className:Oe.flex},ye.createElement("img",{src:Rt,style:{width:14}}),ye.createElement("span",{className:Oe.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ye.createElement("div",{className:Oe.statusbody},Et==="exercise"&&ye.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Et==="subject"||Et==="exercisepush")&&ye.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Et==="shixunpush"&&ye.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ye.createElement("div",null,ne==null?void 0:ne.map((Xe,Wt)=>ye.createElement("a",{href:`/shixuns/${Xe.identifier}/challenges`,target:"_blank"},"\u300A",Xe==null?void 0:Xe.name,"\u300B",Wt+1!==ce&&"\u3001"))))));if(Et==="shixun")return ye.createElement("div",{style:{marginTop:20}},ce>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ye.createElement(He.default,{open:Me,onCancel:()=>{te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!pt&&"none"}},zIndex:1003,confirmLoading:Pt,okText:pt?it:"\u6211\u77E5\u9053\u4E86",onOk:()=>qe(void 0,null,function*(){pt?yield Ot([...ne,...Fe]):te(!1)})},ye.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Je(),kt()))}},97692:function(Rn,Mn,ve){"use strict";ve.d(Mn,{h:function(){return Ce}});var ye=ve(59301),Oe=ve(57809),He=ve(78241),Rt=ve(3113),$e=ve(89780),qe=ve.n($e),De=ve(37036),Tt=ve(95625),Et=Object.defineProperty,et=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,te=(Fe,Pe,Ie)=>Pe in Fe?Et(Fe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Fe[Pe]=Ie,ne=(Fe,Pe)=>{for(var Ie in Pe||(Pe={}))Pt.call(Pe,Ie)&&te(Fe,Ie,Pe[Ie]);if(it)for(var Ie of it(Pe))Me.call(Pe,Ie)&&te(Fe,Ie,Pe[Ie]);return Fe},ce=(Fe,Pe)=>et(Fe,Ot(Pe));const se=Oe.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},me={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"]};Mn.Z=({callback:Fe,onCancel:Pe})=>{const[Ie,Ge]=(0,ye.useState)("python");function Ke(pt){Ge(me[pt][1])}function Ye(pt){Fe(pt)}return ye.createElement(He.default,ce(ne({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ye,style:{width:500}}),ye.createElement(He.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ye.createElement(Oe.default,{getPopupContainer:pt=>pt.parentNode,onChange:Ke},Object.keys(me).map(pt=>ye.createElement(se,{key:pt,value:pt},me[pt][0])))),ye.createElement(He.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ye.createElement(Ce,{mode:Ie})),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(Rt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(Rt.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))};function Ce({value:Fe,onChange:Pe,mode:Ie,options:Ge={}}){const Ke=(0,ye.useRef)(),[Ye,pt]=(0,ye.useState)();return(0,ye.useEffect)(()=>{if(Ye){let Je=function(kt){const Xe=kt.getValue();Pe&&Pe(Xe)};return Ye.on("change",Je),()=>{Ye.off("change",Je)}}},[Ye,Pe]),(0,ye.useEffect)(()=>{Ye&&Ye.setOption("mode",Ie)},[Ye,Ie]),(0,ye.useEffect)(()=>{Ye&&(Fe!==Ye.getValue()||Fe==="")&&setTimeout(()=>{Ye.setValue(Fe||"")},300)},[Ye,Fe]),(0,ye.useEffect)(()=>{if(Ke.current&&!Ye){const Je=qe().fromTextArea(Ke.current,ne({mode:Ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ge));pt(Je)}},[Ke.current,Ye]),ye.createElement("div",{className:"my-codemirror-container"},ye.createElement("textarea",{ref:Ke}))}},12290:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return vn}});var ye=ve(59301),Oe=ve(89780),He=ve.n(Oe),Rt=ve(76374),$e=ve(37036),qe=ve(6313),De=ve(25717),Tt=ve(99498),Et=ve(25419),et=ve(67549),Ot=ve(85149),it=({value:xt="",className:wt,showTextOnly:ze,showLines:Yt,style:on={}})=>{const ht=(0,ye.useMemo)(()=>"",[xt]);return ye.createElement(ye.Fragment,null,ye.createElement("div",{dangerouslySetInnerHTML:{__html:ht}}))},Pt=ve(59301),Me=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(xt,wt,ze)=>wt in xt?Me(xt,wt,{enumerable:!0,configurable:!0,writable:!0,value:ze}):xt[wt]=ze,Ce=(xt,wt)=>{for(var ze in wt||(wt={}))se.call(wt,ze)&&me(xt,ze,wt[ze]);if(ce)for(var ze of ce(wt))ge.call(wt,ze)&&me(xt,ze,wt[ze]);return xt},Fe=(xt,wt)=>te(xt,ne(wt));let Pe=[{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 Ie({onActionCallback:xt,title:wt,icon:ze,actionName:Yt,className:on="",children:ht}){function Qe(){xt(Yt)}return Pt.createElement("a",{title:wt,className:on,onClick:Qe},Pt.createElement("i",{className:`${ze}`}),ht)}var Ge=({watch:xt,showNullButton:wt,showNullProgramButton:ze,onActionCallback:Yt,fullScreen:on,insertTemp:ht,hidetoolBar:Qe,extraUse:_t})=>{const It=[...Pe,{title:`${xt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${xt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Pt.createElement("ul",{className:"markdown-toolbar-container"},!Qe&&It.map((Fn,Hn)=>Pt.createElement("li",{key:Hn},Fn.actionName?Pt.createElement(Ie,Fe(Ce({},Fn),{onActionCallback:Yt})):Pt.createElement("span",{className:"v-line"}))),wt?Pt.createElement("li",null,Pt.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Yt},Pt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ze?Pt.createElement(Pt.Fragment,null,Pt.createElement("li",null,Pt.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Yt},Pt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Pt.createElement("li",null,Pt.createElement(Ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Yt},Pt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ht&&Pt.createElement("li",null,Pt.createElement(Ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ht}`,onActionCallback:Yt},Pt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),_t&&Pt.createElement("li",null,_t),Pt.createElement("li",{className:"btn-full-screen"},Pt.createElement(Ie,{icon:`${on?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:on?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Yt})))},Ke=ve(79346),Ye=ve(78241),pt=ve(92832),Je=ve(3113),kt=Object.defineProperty,Xe=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Ut=(xt,wt,ze)=>wt in xt?kt(xt,wt,{enumerable:!0,configurable:!0,writable:!0,value:ze}):xt[wt]=ze,ft=(xt,wt)=>{for(var ze in wt||(wt={}))jt.call(wt,ze)&&Ut(xt,ze,wt[ze]);if(zt)for(var ze of zt(wt))Mt.call(wt,ze)&&Ut(xt,ze,wt[ze]);return xt},Re=(xt,wt)=>Xe(xt,Wt(wt));const Lt={labelCol:{span:4},wrapperCol:{span:20}};var yn=({callback:xt,onCancel:wt})=>{function ze(Yt){xt(Yt)}return ye.createElement(Ye.default,Re(ft({},Lt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ze,style:{width:500}}),ye.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ye.createElement(pt.default,null)),ye.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ye.createElement(pt.default,null)),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(Je.ZP,{type:"ghost",onClick:wt},"\u53D6\u6D88")))},mn=ve(97692),Nt=ve(28451),en=ve(43418),nn=ve(95237),On=ve(73524),dn=ve(59301),Tn=({callback:xt,onCancel:wt})=>{const ze=document.createElement("canvas"),Yt=ze.getContext("2d");ze.width=1e3,ze.height=800,Yt.fillStyle="#ffffff",Yt.fillRect(0,0,ze.width,ze.height);const on=ze.toDataURL("image/png");return dn.createElement(en.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},dn.createElement(nn.Z,{style:{height:"100vh"}},dn.createElement(On.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:on,visible:!0,title:String(Date.now())},onOk:ht=>{xt({src:ht.url})},onClose:wt})))},mt=ve(12378);function Gn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Gn,go.CommandHandler),Gn.prototype.canAlignSelection=function(){var xt=this.diagram;return!(xt===null||xt.isReadOnly||xt.isModelReadOnly||xt.selection.count<2)},Gn.prototype.alignLeft=function(){var xt=this.diagram;xt.startTransaction("aligning left");var wt=1/0;xt.selection.each(function(ze){ze instanceof go.Link||(wt=Math.min(ze.position.x,wt))}),xt.selection.each(function(ze){ze instanceof go.Link||ze.move(new go.Point(wt,ze.position.y))}),xt.commitTransaction("aligning left")},Gn.prototype.alignRight=function(){var xt=this.diagram;xt.startTransaction("aligning right");var wt=-1/0;xt.selection.each(function(ze){if(!(ze instanceof go.Link)){var Yt=ze.actualBounds.x+ze.actualBounds.width;wt=Math.max(Yt,wt)}}),xt.selection.each(function(ze){ze instanceof go.Link||ze.move(new go.Point(wt-ze.actualBounds.width,ze.position.y))}),xt.commitTransaction("aligning right")},Gn.prototype.alignTop=function(){var xt=this.diagram;xt.startTransaction("alignTop");var wt=1/0;xt.selection.each(function(ze){ze instanceof go.Link||(wt=Math.min(ze.position.y,wt))}),xt.selection.each(function(ze){ze instanceof go.Link||ze.move(new go.Point(ze.position.x,wt))}),xt.commitTransaction("alignTop")},Gn.prototype.alignBottom=function(){var xt=this.diagram;xt.startTransaction("aligning bottom");var wt=-1/0;xt.selection.each(function(ze){if(!(ze instanceof go.Link)){var Yt=ze.actualBounds.y+ze.actualBounds.height;wt=Math.max(Yt,wt)}}),xt.selection.each(function(ze){ze instanceof go.Link||ze.move(new go.Point(ze.actualBounds.x,wt-ze.actualBounds.height))}),xt.commitTransaction("aligning bottom")},Gn.prototype.alignCenterX=function(){var xt=this.diagram,wt=xt.selection.first();if(wt){xt.startTransaction("aligning Center X");var ze=wt.actualBounds.x+wt.actualBounds.width/2;xt.selection.each(function(Yt){Yt instanceof go.Link||Yt.move(new go.Point(ze-Yt.actualBounds.width/2,Yt.actualBounds.y))}),xt.commitTransaction("aligning Center X")}},Gn.prototype.alignCenterY=function(){var xt=this.diagram,wt=xt.selection.first();if(wt){xt.startTransaction("aligning Center Y");var ze=wt.actualBounds.y+wt.actualBounds.height/2;xt.selection.each(function(Yt){Yt instanceof go.Link||Yt.move(new go.Point(Yt.actualBounds.x,ze-Yt.actualBounds.height/2))}),xt.commitTransaction("aligning Center Y")}},Gn.prototype.alignColumn=function(xt){var wt=this.diagram;wt.startTransaction("align Column"),xt===void 0&&(xt=0),xt=parseFloat(xt);var ze=new Array;wt.selection.each(function(_t){_t instanceof go.Link||ze.push(_t)});for(var Yt=0;Yt<ze.length-1;Yt++){var on=ze[Yt],ht=on.actualBounds.y+on.actualBounds.height+xt,Qe=ze[Yt+1];Qe.move(new go.Point(on.actualBounds.x,ht))}wt.commitTransaction("align Column")},Gn.prototype.alignRow=function(xt){xt===void 0&&(xt=0),xt=parseFloat(xt);var wt=this.diagram;wt.startTransaction("align Row");var ze=new Array;wt.selection.each(function(_t){_t instanceof go.Link||ze.push(_t)});for(var Yt=0;Yt<ze.length-1;Yt++){var on=ze[Yt],ht=on.actualBounds.x+on.actualBounds.width+xt,Qe=ze[Yt+1];Qe.move(new go.Point(ht,on.actualBounds.y))}wt.commitTransaction("align Row")},Gn.prototype.canRotate=function(xt){var wt=this.diagram;return!(wt===null||wt.isReadOnly||wt.isModelReadOnly||wt.selection.count<1)},Gn.prototype.rotate=function(xt){xt===void 0&&(xt=90);var wt=this.diagram;wt.startTransaction("rotate "+xt.toString());var wt=this.diagram;wt.selection.each(function(ze){ze instanceof go.Link||ze instanceof go.Group||(ze.angle+=xt)}),wt.commitTransaction("rotate "+xt.toString())},Gn.prototype.pullToFront=function(){var xt=this.diagram;xt.startTransaction("pullToFront");var wt=new go.Map;xt.selection.each(function(ze){wt.set(ze.layer,0)}),wt.iteratorKeys.each(function(ze){var Yt=0;ze.parts.each(function(on){if(!on.isSelected){var ht=on.zOrder;isNaN(ht)?on.zOrder=0:Yt=Math.max(Yt,ht)}}),wt.set(ze,Yt)}),xt.selection.each(function(ze){Gn._assignZOrder(ze,wt.get(ze.layer)+1)}),xt.commitTransaction("pullToFront")},Gn.prototype.pushToBack=function(){var xt=this.diagram;xt.startTransaction("pushToBack");var wt=new go.Map;xt.selection.each(function(ze){wt.set(ze.layer,0)}),wt.iteratorKeys.each(function(ze){var Yt=0;ze.parts.each(function(on){if(!on.isSelected){var ht=on.zOrder;isNaN(ht)?on.zOrder=0:Yt=Math.min(Yt,ht)}}),wt.set(ze,Yt)}),xt.selection.each(function(ze){Gn._assignZOrder(ze,wt.get(ze.layer)-1-Gn._findGroupDepth(ze))}),xt.commitTransaction("pushToBack")},Gn._assignZOrder=function(xt,wt,ze){ze===void 0&&(ze=xt),xt.layer===ze.layer&&(xt.zOrder=wt),xt instanceof go.Group&&xt.memberParts.each(function(Yt){Gn._assignZOrder(Yt,wt+1,ze)})},Gn._findGroupDepth=function(xt){if(xt instanceof go.Group){var wt=0;return xt.memberParts.each(function(ze){wt=Math.max(wt,Gn._findGroupDepth(ze))}),wt+1}else return 0},Gn.prototype.doKeyDown=function(){var xt=this.diagram;if(xt!==null){var wt=xt.lastInput;if(wt.key==="Up"||wt.key==="Down"||wt.key==="Left"||wt.key==="Right"){var ze=this.arrowKeyBehavior;if(ze==="none")return;if(ze==="select"){this._arrowKeySelect();return}else if(ze==="move"){this._arrowKeyMove();return}else if(ze==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Gn.prototype._getAllParts=function(){var xt=new Array;return this.diagram.nodes.each(function(wt){xt.push(wt)}),this.diagram.parts.each(function(wt){xt.push(wt)}),xt},Gn.prototype._arrowKeyMove=function(){var xt=this.diagram,wt=xt.lastInput,ze=0,Yt=0;if(wt.control||wt.meta)ze=1,Yt=1;else if(xt.grid!==null){var on=xt.grid.gridCellSize;Yt=on.width,ze=on.height}xt.startTransaction("arrowKeyMove"),xt.selection.each(function(ht){wt.key==="Up"?ht.move(new go.Point(ht.actualBounds.x,ht.actualBounds.y-ze)):wt.key==="Down"?ht.move(new go.Point(ht.actualBounds.x,ht.actualBounds.y+ze)):wt.key==="Left"?ht.move(new go.Point(ht.actualBounds.x-Yt,ht.actualBounds.y)):wt.key==="Right"&&ht.move(new go.Point(ht.actualBounds.x+Yt,ht.actualBounds.y))}),xt.commitTransaction("arrowKeyMove")},Gn.prototype._arrowKeySelect=function(){var xt=this.diagram,wt=xt.lastInput,ze=null;wt.key==="Up"?ze=this._findNearestPartTowards(270):wt.key==="Down"?ze=this._findNearestPartTowards(90):wt.key==="Left"?ze=this._findNearestPartTowards(180):wt.key==="Right"&&(ze=this._findNearestPartTowards(0)),ze!==null&&(wt.shift?ze.isSelected=!0:wt.control||wt.meta?ze.isSelected=!ze.isSelected:xt.select(ze))},Gn.prototype._findNearestPartTowards=function(xt){var wt=this.diagram.selection.first();if(wt===null)return null;for(var ze=wt.actualBounds.center,Yt=this._getAllParts(),on=1/0,ht=wt,Qe=0;Qe<Yt.length;Qe++){var _t=Yt[Qe];if(_t!==wt&&_t.canSelect()){var It=_t.actualBounds.center,Fn=ze.directionPoint(It),Hn=this._angleCloseness(Fn,xt);if(Hn<=45){var ct=ze.distanceSquaredPoint(It);ct*=1+Math.sin(Hn*Math.PI/180),ct<on&&(on=ct,ht=_t)}}}return ht},Gn.prototype._angleCloseness=function(xt,wt){return Math.min(Math.abs(wt-xt),Math.min(Math.abs(wt+360-xt),Math.abs(wt-360-xt)))},Gn.prototype._arrowKeyTree=function(){var xt=this.diagram,wt=xt.selection.first();if(wt instanceof go.Node){var ze=xt.lastInput;if(ze.key==="Right"){if(!wt.isTreeLeaf)if(!wt.isTreeExpanded)xt.commandHandler.canExpandTree(wt)&&xt.commandHandler.expandTree(wt);else{var Yt=this._sortTreeChildrenByY(wt).first();Yt!==null&&xt.select(Yt)}}else if(ze.key==="Left")if(!wt.isTreeLeaf&&wt.isTreeExpanded)xt.commandHandler.canCollapseTree(wt)&&xt.commandHandler.collapseTree(wt);else{var on=wt.findTreeParentNode();on!==null&&xt.select(on)}else if(ze.key==="Up"){var on=wt.findTreeParentNode();if(on!==null){var ht=this._sortTreeChildrenByY(on),Qe=ht.indexOf(wt);if(Qe>0){for(var _t=ht.elt(Qe-1);_t!==null&&_t.isTreeExpanded&&!_t.isTreeLeaf;){var It=this._sortTreeChildrenByY(_t);_t=It.last()}_t!==null&&xt.select(_t)}else xt.select(on)}}else if(ze.key==="Down")if(wt.isTreeExpanded&&!wt.isTreeLeaf){var Yt=this._sortTreeChildrenByY(wt).first();Yt!==null&&xt.select(Yt)}else for(;wt!==null;){var on=wt.findTreeParentNode();if(on===null)break;var ht=this._sortTreeChildrenByY(on),Qe=ht.indexOf(wt);if(Qe<ht.length-1){xt.select(ht.elt(Qe+1));break}else wt=on}var Fn=xt.selection.first();Fn!==null&&xt.scrollToRect(Fn.actualBounds)}},Gn.prototype._sortTreeChildrenByY=function(xt){var wt=new go.List().addAll(xt.findTreeChildrenNodes());return wt.sort(function(ze,Yt){var on=ze.location,ht=Yt.location;return on.y<ht.y?-1:on.y>ht.y?1:on.x<ht.x?-1:on.x>ht.x?1:0}),wt},Gn.prototype.copyToClipboard=function(xt){go.CommandHandler.prototype.copyToClipboard.call(this,xt),this._lastPasteOffset.set(this.pasteOffset)},Gn.prototype.pasteFromClipboard=function(){var xt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(xt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),xt},Object.defineProperty(Gn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(xt){if(xt!=="move"&&xt!=="select"&&xt!=="scroll"&&xt!=="tree"&&xt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+xt);this._arrowKeyBehavior=xt}}),Object.defineProperty(Gn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(xt){if(!(xt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+xt);this._pasteOffset.set(xt)}});var xn=Gn,tt=ve(74413),Ee=ve(43604),we=ve(99064),Be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ke=ve(24065),Se=ve(59301),st=(xt,wt,ze)=>new Promise((Yt,on)=>{var ht=It=>{try{_t(ze.next(It))}catch(Fn){on(Fn)}},Qe=It=>{try{_t(ze.throw(It))}catch(Fn){on(Fn)}},_t=It=>It.done?Yt(It.value):Promise.resolve(It.value).then(ht,Qe);_t((ze=ze.apply(xt,wt)).next())});function At({onCancel:xt,callback:wt}){let ze=(0,ye.useRef)(),Yt=(0,ye.useRef)(),on=(0,ye.useRef)(),ht=(0,ye.useRef)(!1);const Qe=(0,ye.useRef)(!1),[_t,It]=(0,ye.useState)(0);function Fn(){const ct=mt.bx.make,sn={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"};ze.current=new mt.S0(Yt.current,{padding:20,grid:ct(mt.s_,"Grid",ct(mt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ct(mt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:di=>{var Ki=di.diagram.commandHandler.addTopLevelParts(di.diagram.selection,!0);Ki||di.diagram.currentTool.doCancel()},commandHandler:ct(xn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:di=>{var Ki=di.subject;Ki.location=Ki.location.copy().snapToGridPoint(di.diagram.grid.gridOrigin,di.diagram.grid.gridCellSize),setTimeout(()=>{di.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:di=>{var Ki=di.subject;setTimeout(()=>{di.diagram.commandHandler.editTextBlock()})},LinkRelinked:di=>{var Ki=di.parameter.part;Ki.invalidateConnectedLinks();var ir=di.subject;di.diagram.toolManager.linkingTool.isForwards?ir.toNode.invalidateConnectedLinks():ir.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ze.current.nodeTemplate=ct(mt.NB,"Auto",{locationSpot:mt.z6.Center,locationObjectName:"SHAPE",desiredSize:new mt.$u(120,60),minSize:new mt.$u(40,40),resizable:!0,resizeCellSize:new mt.$u(10,10),rotatable:!0},new mt.KX("location","loc",mt.E9.parse).makeTwoWay(mt.E9.stringify),new mt.KX("desiredSize","size",mt.$u.parse).makeTwoWay(mt.$u.stringify),ct(mt.bn,{name:"SHAPE",fill:sn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:mt.z6.AllSides,toSpot:mt.z6.AllSides},new mt.KX("figure"),new mt.KX("fill"),new mt.KX("stroke","borderColor"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),ct(mt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ct(mt.al,{margin:1,textAlign:"center",overflow:mt.al.OverflowEllipsis,editable:!0},new mt.KX("text").makeTwoWay(),new mt.KX("stroke","color"))),ze.current.nodeTemplate.toolTip=ct("ToolTip",ct(mt.s_,"Vertical",{maxSize:new mt.$u(200,NaN)},ct(mt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new mt.KX("text")),ct(mt.al,{font:"10pt sans-serif",textAlign:"center"},new mt.KX("text","details"))));function Un(di,Ki){var ir=(Yi,cr)=>{Yi.handled=!0,Yi.diagram.model.commit(Mr=>{var Di=cr.part.adornedPart,Ui=new mt.E9().setRectSpot(Di.actualBounds,di);Ui.subtract(Di.location),Ui.scale(2,2),Ui.x+=Math.sign(Ui.x)*130,Ui.y+=Math.sign(Ui.y)*130,Ui.add(Di.location),Ui.snapToGridPoint(Yi.diagram.grid.gridOrigin,Yi.diagram.grid.gridCellSize);var Wi=Mr.copyNodeData(Di.data);Mr.setGroupKeyForNodeData(Wi,Mr.getGroupKeyForNodeData(Di.data)),Mr.addNodeData(Wi);var Dn={from:Di.key,to:Mr.getKeyForNodeData(Wi)};Mr.addLinkData(Dn);var Fr=Yi.diagram.findNodeForData(Wi);Fr.location=Ui,Yi.diagram.select(Fr),setTimeout(()=>{Yi.diagram.commandHandler.editTextBlock()},20)})};return ct(mt.bn,{figure:Ki,alignment:di,alignmentFocus:di.opposite(),width:di.equals(mt.z6.Top)||di.equals(mt.z6.Bottom)?25:18,height:di.equals(mt.z6.Top)||di.equals(mt.z6.Bottom)?18:25,fill:"orange",stroke:sn.white,strokeWidth:4,mouseEnter:(Yi,cr)=>cr.fill="dodgerblue",mouseLeave:(Yi,cr)=>cr.fill="orange",isActionable:!0,click:ir,contextClick:ir})}function _n(di){return ct(mt.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:(Ki,ir)=>ir.fill="dodgerblue",mouseLeave:(Ki,ir)=>ir.fill="orange",click:(Ki,ir)=>{Ki.diagram.commandHandler.showContextMenu(ir.part.adornedPart)}},di||{})}ze.current.nodeTemplate.selectionAdornmentTemplate=ct(mt.uz,"Spot",ct(mt.Vm,{padding:10}),Un(mt.z6.Top,"TriangleUp"),Un(mt.z6.Left,"TriangleLeft"),Un(mt.z6.Right,"TriangleRight"),Un(mt.z6.Bottom,"TriangleDown"),_n({alignment:new mt.z6(.75,0)}));function Zt(di,Ki){return(ir,Yi)=>{ir.handled=!0,ir.diagram.model.commit(cr=>{cr.set(Yi.part.adornedPart.data,di,Ki)})}}function rn(di,Ki){return Ki||(Ki="color"),ct(mt.bn,{width:16,height:16,stroke:"lightgray",fill:di,margin:1,background:"transparent",mouseEnter:(ir,Yi)=>Yi.stroke="dodgerblue",mouseLeave:(ir,Yi)=>Yi.stroke="lightgray",click:Zt(Ki,di),contextClick:Zt(Ki,di)})}function wi(){return[ct("ContextMenuButton",ct(mt.s_,"Horizontal",rn(sn.white,"fill"),rn(sn.beige,"fill"),rn(sn.extralightblue,"fill"),rn(sn.extralightred,"fill"))),ct("ContextMenuButton",ct(mt.s_,"Horizontal",rn(sn.lightgray,"fill"),rn(sn.lightgreen,"fill"),rn(sn.lightblue,"fill"),rn(sn.lightred,"fill")))]}function Ci(){return[ct("ContextMenuButton",ct(mt.s_,"Horizontal",rn(sn.black),rn(sn.green),rn(sn.blue),rn(sn.red))),ct("ContextMenuButton",ct(mt.s_,"Horizontal",rn(sn.white),rn(sn.magenta),rn(sn.purple),rn(sn.orange)))]}function yi(di,Ki){return Ki||(Ki="thickness"),ct(mt.bn,"LineH",{width:16,height:16,strokeWidth:di,margin:1,background:"transparent",mouseEnter:(ir,Yi)=>Yi.background="dodgerblue",mouseLeave:(ir,Yi)=>Yi.background="transparent",click:Zt(Ki,di),contextClick:Zt(Ki,di)})}function ci(di,Ki){return Ki||(Ki="dash"),ct(mt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:di,margin:1,background:"transparent",mouseEnter:(ir,Yi)=>Yi.background="dodgerblue",mouseLeave:(ir,Yi)=>Yi.background="transparent",click:Zt(Ki,di),contextClick:Zt(Ki,di)})}function Pi(){return[ct("ContextMenuButton",ct(mt.s_,"Horizontal",yi(1),yi(2),yi(3),yi(4))),ct("ContextMenuButton",ct(mt.s_,"Horizontal",ci(null),ci([2,4]),ci([4,4])))]}function Mi(di,Ki){return Ki||(Ki="figure"),ct(mt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:di,margin:1,background:"transparent",mouseEnter:(ir,Yi)=>Yi.fill="dodgerblue",mouseLeave:(ir,Yi)=>Yi.fill="lightgray",click:Zt(Ki,di),contextClick:Zt(Ki,di)})}ze.current.nodeTemplate.contextMenu=ct("ContextMenu",ct("ContextMenuButton",ct(mt.s_,"Horizontal",Mi("Rectangle"),Mi("RoundedRectangle"),Mi("Ellipse"),Mi("Diamond"))),ct("ContextMenuButton",ct(mt.s_,"Horizontal",Mi("Parallelogram2"),Mi("ManualOperation"),Mi("Procedure"),Mi("Cylinder1"))),ct("ContextMenuButton",ct(mt.s_,"Horizontal",Mi("Terminator"),Mi("CreateRequest"),Mi("Document"),Mi("TriangleDown"))),wi(),Ci(),Pi()),ze.current.groupTemplate=ct(mt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:mt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(di,Ki)=>{var ir=Ki.addMembers(Ki.diagram.selection,!0);ir||Ki.diagram.currentTool.doCancel()},avoidable:!1},new mt.KX("location","loc",mt.E9.parse).makeTwoWay(mt.E9.stringify),ct(mt.s_,"Auto",{name:"BODY"},ct(mt.bn,{parameter1:10,fill:sn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:mt.z6.AllSides,toSpot:mt.z6.AllSides},new mt.KX("fill"),new mt.KX("stroke","color"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),ct(mt.Vm,{background:"transparent",margin:20})),ct(mt.al,{alignment:mt.z6.Top,alignmentFocus:mt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new mt.KX("text"),new mt.KX("stroke","color"))),ze.current.groupTemplate.selectionAdornmentTemplate=ct(mt.uz,"Spot",ct(mt.s_,"Auto",ct(mt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ct(mt.Vm,{margin:1.5})),_n({alignment:mt.z6.TopRight,alignmentFocus:mt.z6.BottomRight})),ze.current.groupTemplate.contextMenu=ct("ContextMenu",wi(),Ci(),Pi()),ze.current.linkTemplate=ct(mt.rU,{layerName:"Foreground",routing:mt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new mt.KX("fromSpot","fromSpot",mt.z6.parse),new mt.KX("toSpot","toSpot",mt.z6.parse),new mt.KX("fromShortLength","dir",di=>di>=1?10:0),new mt.KX("toShortLength","dir",di=>di>=1?10:0),new mt.KX("points").makeTwoWay(),ct(mt.bn,{strokeWidth:2},new mt.KX("stroke","color"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),ct(mt.bn,{segmentIndex:0,segmentOffset:new mt.E9(15,0),segmentOrientation:mt.rU.OrientAlong,alignmentFocus:mt.z6.Right,figure:"circle",width:10,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",di=>di===1)),ct(mt.bn,{segmentIndex:-1,segmentOffset:new mt.E9(-10,6),segmentOrientation:mt.rU.OrientPlus90,alignmentFocus:mt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",di=>di>=1),new mt.KX("width","thickness",di=>7+3*di),new mt.KX("height","thickness",di=>7+3*di),new mt.KX("segmentOffset","thickness",di=>new mt.E9(-15,4+1.5*di))),ct(mt.bn,{segmentIndex:0,segmentOffset:new mt.E9(15,-6),segmentOrientation:mt.rU.OrientMinus90,alignmentFocus:mt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",di=>di===2),new mt.KX("width","thickness",di=>7+3*di),new mt.KX("height","thickness",di=>7+3*di),new mt.KX("segmentOffset","thickness",di=>new mt.E9(-15,4+1.5*di))),ct(mt.al,{alignmentFocus:new mt.z6(0,1,-4,0),editable:!0},new mt.KX("text").makeTwoWay(),new mt.KX("stroke","color"))),ze.current.linkTemplate.selectionAdornmentTemplate=ct(mt.uz,ct(mt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ji(2)},new mt.KX("pathPattern","thickness",ji)),_n({alignmentFocus:new mt.z6(0,0,-6,-4)}));function ji(di){return ct(mt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(di+4).toString()+" H3"})}function lr(di){var Ki="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return di===0?Ki="M0 0 M16 16 M0 8 L16 8":di===2&&(Ki="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ct(mt.bn,{geometryString:Ki,margin:2,background:"transparent",mouseEnter:(ir,Yi)=>Yi.background="dodgerblue",mouseLeave:(ir,Yi)=>Yi.background="transparent",click:Zt("dir",di),contextClick:Zt("dir",di)})}function nr(di){var Ki=(ir,Yi)=>{ir.handled=!0,ir.diagram.model.commit(cr=>{var Mr=Yi.part.adornedPart;cr.set(Mr.data,di?"toSpot":"fromSpot",mt.z6.stringify(mt.z6.AllSides)),(di?Mr.toNode:Mr.fromNode).invalidateConnectedLinks()})};return ct(mt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ir,Yi)=>Yi.background="dodgerblue",mouseLeave:(ir,Yi)=>Yi.background="transparent",click:Ki,contextClick:Ki})}function Nn(di,Ki){var ir=0,Yi=mt.z6.RightSide;di.equals(mt.z6.Top)?(ir=270,Yi=mt.z6.TopSide):di.equals(mt.z6.Left)?(ir=180,Yi=mt.z6.LeftSide):di.equals(mt.z6.Bottom)&&(ir=90,Yi=mt.z6.BottomSide),Ki||(ir-=180);var cr=(Mr,Di)=>{Mr.handled=!0,Mr.diagram.model.commit(Ui=>{var Wi=Di.part.adornedPart;Ui.set(Wi.data,Ki?"toSpot":"fromSpot",mt.z6.stringify(Yi)),(Ki?Wi.toNode:Wi.fromNode).invalidateConnectedLinks()})};return ct(mt.bn,{alignment:di,alignmentFocus:di.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ir,background:"transparent",mouseEnter:(Mr,Di)=>Di.background="dodgerblue",mouseLeave:(Mr,Di)=>Di.background="transparent",click:cr,contextClick:cr})}ze.current.linkTemplate.contextMenu=ct("ContextMenu",Ci(),Pi(),ct("ContextMenuButton",ct(mt.s_,"Horizontal",lr(0),lr(1),lr(2))),ct("ContextMenuButton",ct(mt.s_,"Horizontal",ct(mt.s_,"Spot",nr(!1),Nn(mt.z6.Top,!1),Nn(mt.z6.Left,!1),Nn(mt.z6.Right,!1),Nn(mt.z6.Bottom,!1)),ct(mt.s_,"Spot",{margin:new mt.Zt(0,0,0,2)},nr(!0),Nn(mt.z6.Top,!0),Nn(mt.z6.Left,!0),Nn(mt.z6.Right,!0),Nn(mt.z6.Bottom,!0)))));const Pr=`{ "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 Tr=["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 br(di){return console.log("shapeName:",di),Tr.indexOf(di)>=0}var Cn=new mt.YI(on.current,{maxSelectionCount:1,linkTemplate:ct(mt.rU,{locationSpot:mt.z6.Center,selectionAdornmentTemplate:ct(mt.uz,"Link",{locationSpot:mt.z6.Center},ct(mt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ct(mt.bn,{toArrow:"Standard",stroke:null}))},{routing:mt.rU.AvoidsNodes,curve:mt.rU.JumpOver,corner:5,toShortLength:4},new mt.KX("points"),ct(mt.bn,{isPanelMain:!0,strokeWidth:2}),ct(mt.bn,{toArrow:"Standard",stroke:null})),model:new mt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...mt.bn.getFigureGenerators().toArray().map(di=>({text:"\u672A\u547D\u540D",size:"100 100",figure:di.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ze.current.addDiagramListener("TextEdited",function(di){var Ki;const ir=di.subject.part;var Yi=(Ki=document.activeElement)==null?void 0:Ki.value;typeof Yi=="string"&&Yi.trim()===""&&ze.current.model.commit(function(cr){cr.set(ir.data,"text","\u672A\u547D\u540D"),ze.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=ct(mt.NB,"Auto",{locationSpot:mt.z6.Center},new mt.KX("location","location",mt.E9.parse).makeTwoWay(mt.E9.stringify),ct(mt.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 mt.KX("stroke").makeTwoWay(),new mt.KX("fill").makeTwoWay(),new mt.KX("figure")),ct(mt.al,{margin:new mt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new mt.$u(16,16),maxSize:new mt.$u(10,NaN),textAlign:"center",editable:!0},new mt.KX("key").makeTwoWay())),setTimeout(()=>{ze.current.grid=ct(mt.s_,"Grid",ct(mt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ct(mt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ze.current.grid.visible=!0,ze.current.grid.gridCellStroke="darkgray",ze.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ze.current,ze.current}const Hn=()=>st(this,null,function*(){var ct,sn=ze.current.makeImage();const Un=yield(0,we.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:sn.src,file_data:JSON.stringify({login:(ct=(0,ke.eY)())==null?void 0:ct.login,data:JSON.parse(ze.current.model.toJson())})}});wt({src:Un.url})});return(0,ye.useEffect)(()=>(setTimeout(()=>{Fn()},500),It(_t+1),()=>{ze.current=null}),[]),Se.createElement("div",{ref:Qe,className:ht.current?`${Be.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(en.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!_t,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(nn.Z,null,Se.createElement(Ee.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(Ee.Z,{onClick:()=>{var ct,sn,Un=ze.current.selection.first();if(ht.current=!ht.current,document.activeElement&&Un){let _n=(sn=(ct=document.activeElement)==null?void 0:ct.value)==null?void 0:sn.trim();typeof _n=="string"&&ze.current.model.commit(function(Zt){Zt.set(Un.data,"text",_n||"\u672A\u547D\u540D"),ze.current.commandHandler.stopCommand()},"increment")}It(_t+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:xt},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Be.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:Be.myPaletteDiv,ref:on})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:Yt,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(Je.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ve=At,We=ve(5112),Ct=ve(5871);const bt=We.ZP.Group,dt={margin:"0 8px"};var Ht=({callback:xt,onCancel:wt})=>{function ze(Yt){xt(Yt)}return ye.createElement(Ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ze},ye.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ye.createElement("span",{style:dt},"\u5355\u5143\u683C\u6570\uFF1A"),ye.createElement("span",{style:dt},"\u884C\u6570"),ye.createElement(Ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ye.createElement(Ct.Z,null)),ye.createElement("span",{style:dt},"\u5217\u6570"),ye.createElement(Ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ye.createElement(Ct.Z,null))),ye.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ye.createElement("span",{style:dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ye.createElement(Ye.default.Item,{name:"align"},ye.createElement(bt,null,ye.createElement(We.ZP,{value:"default"},ye.createElement("i",{className:"fa fa-align-justify"})),ye.createElement(We.ZP,{value:"left"},ye.createElement("i",{className:"fa fa-align-left"})),ye.createElement(We.ZP,{value:"center"},ye.createElement("i",{className:"fa fa-align-center"})),ye.createElement(We.ZP,{value:"right"},ye.createElement("i",{className:"fa fa-align-right"}))))),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(Je.ZP,{type:"ghost",onClick:wt},"\u53D6\u6D88")))},En=ve(78673),An=ve(80727),qt=ve.n(An),qn=(0,ye.forwardRef)(({use3d:xt,width:wt,height:ze,callback:Yt,showSaveButton:on},ht)=>{const Qe=(0,ye.useRef)(),_t=(0,ye.useRef)(),[It,Fn]=(0,ye.useState)(!1),Hn=(0,ye.useRef)({id:Qe,appName:"graphing",width:wt||1e3,height:ze||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ye.useEffect)(()=>{_t.current=new(qt())(Hn.current,!0),window.onload=function(){_t.current.inject("applet_container")}},[]);const ct=()=>{var sn=window.ggbApplet.getPNGBase64(1,!0,72);return Yt&&Yt(sn),sn};return(0,ye.useEffect)(()=>{Hn.current.appName=It?"3D":"graphing",_t.current.inject("applet_container")},[It]),(0,ye.useEffect)(()=>{Fn(xt)},[xt]),(0,ye.useImperativeHandle)(ht,()=>({getImgData:ct})),ye.createElement(ye.Fragment,null,ye.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Qe}),ye.createElement(nn.Z,{align:"middle"},ye.createElement(Ee.Z,{flex:1},ye.createElement(En.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:It,onChange:sn=>Fn(sn)})),ye.createElement(Ee.Z,null,ye.createElement(Je.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),wn=ve(41588),vi=ve(8591);const ei="link",Li="upload-image",Vi="add-flowchart",zi="draw-image",Bn="add-flowchart",rr="code-block",Yr="add-table",zr="------------",Zr={default:zr,left:`:${zr}`,center:`:${zr}:`,right:`${zr}:`};var Nr=ve(58856);function Co(){}let $r=0;const sr=1e4,Fo="\u2581",ti="@\u2581\u2581@",Ae="@\u2581@",$n=`
**\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`,oi=["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 fn(xt){return/^\d+$/.test(xt)?`${xt}px`:xt}const Zn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",an={[Zn+"-B"]:"bold",[Zn+"-I"]:"italic"},Jt={[ei]:"\u6DFB\u52A0\u94FE\u63A5",[rr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Li]:"\u6DFB\u52A0\u56FE\u7247",[zi]:"\u6DFB\u52A0\u753B\u56FE",[Vi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Yr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var vn=({defaultValue:xt="",onChange:wt,width:ze="100%",height:Yt=400,miniToolbar:on=!1,isFocus:ht=!1,watch:Qe,insertTemp:_t,mode:It="markdown",id:Fn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:ct=!1,showNullButton:sn=!1,showNullProgramButton:Un=!1,hidetoolBar:_n=!1,fullScreen:Zt=!1,onBlur:rn,onCMBeforeChange:wi,onFullScreen:Ci,className:yi="",disablePaste:ci=!1,disabled:Pi=!1,disabledFill:Mi=!1,placeholder:ji="",values:lr="",extraUse:nr})=>{const[Nn,Pr]=(0,ye.useState)(null),[Tr,br]=(0,ye.useState)(xt),[Cn,di]=(0,ye.useState)(Qe),[Ki,ir]=(0,ye.useState)(Zt),[Yi,cr]=(0,ye.useState)(""),[Mr,Di]=(0,ye.useState)(0),[Ui,Wi]=(0,ye.useState)(Yt),[Dn,Fr]=(0,ye.useState)(!1),[Ln,fr]=(0,ye.useState)(0),[Ur,Cr]=(0,ye.useState)(0),Do=(0,ye.useRef)(),so=(0,ye.useRef)(),yr=(0,ye.useRef)(),gr=(0,ye.useRef)();(0,ye.useEffect)(()=>{const Ai=window.scrollY||window.pageYOffset;br(lr),Nn==null||Nn.setValue(lr),window.scrollTo(0,Ai)},[lr]),(0,ye.useEffect)(()=>{Ci==null||Ci(Ki)},[Ki]),(0,ye.useEffect)(()=>{if(Do.current){let Ai=function(zn,pr){var kr;if(ci){pr.preventDefault();return}const po=pr.clipboardData;if(po){const to=po.types.toString(),Jr=po.items;if(to==="Files"||po.types.indexOf("Files")>-1){if(pr.preventDefault(),It=="stex")return;try{let eo=Jr[1];((kr=Jr[0])==null?void 0:kr.kind)==="file"&&(eo=Jr[0]);const Zo=eo.getAsFile(),$o=Zo.name.split(".").pop();(0,Nt.I)(Zo,ia=>{var qo,Sn,oa;ia.id?((qo=Zo==null?void 0:Zo.type)==null?void 0:qo.indexOf("image"))>-1?Bi.replaceSelection(`<img width="100%" src="/api/attachments/${ia.id}?type=${ia.content_type})" alt="" />`):((Sn=Zo==null?void 0:Zo.type)==null?void 0:Sn.indexOf("video"))>-1?Bi.replaceSelection(`<video width="100%" controls src="/api/attachments/${ia.id}"></video>`):((oa=Zo==null?void 0:Zo.type)==null?void 0:oa.indexOf("pdf"))>-1?Bi.replaceSelection(`<a href="/api/attachments/${ia.id}?type=${Zo.type}&disposition=inline" target="_blank">${Zo.name}</a>`):oi.includes($o)?Bi.replaceSelection(`<a href="/api/attachments/${ia.id}?type=office&disposition=inline" target="_blank">${Zo.name}</a>`):Bi.replaceSelection(`[${Zo.name}](/api/attachments/${ia.id}?type=${ia.content_type})`):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")})}catch(eo){vi.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bi=He().fromTextArea(Do.current,{mode:It,lineNumbers:!on,lineWrapping:!0,value:xt,autoCloseTags:!0,autoCloseBrackets:!0});return Bi.on("keyup",function(zn,pr){pr.keyCode===8&&(zn.getValue()==""?Bi.setOption("placeholder",ji):Bi.setOption("placeholder",null))}),Bi.on("keydown",function(zn,pr){if(pr.keyCode===8){var kr=Gr(zn);kr&&pr.preventDefault()}}),ht&&Bi.focus(),Bi.on("paste",Ai),Pi&&Bi.on("beforeChange",function(zn,pr){(pr.origin==="paste"||pr.origin==="+input")&&pr.cancel()}),Pr(Bi),()=>{Bi.off("paste",Ai)}}},[]);const hr=(0,ye.useCallback)(()=>{if(so.current)try{}catch(Ai){console.log(Ai,"---- to set md editor body height")}},[Ui,so,Ki]);(0,ye.useEffect)(()=>{function Ai(){let Bi=new Rt.Z(zn=>{for(let pr of zn)(pr.target.offsetHeight>0||pr.target.offsetWidth>0)&&(hr(),Nn.setSize("100%","100%"),Nn.refresh())});return Bi.observe(Do.current.parentElement),Bi}if(Nn){const Bi=Ai();return()=>{var zn,pr;(zn=Do.current)!=null&&zn.parentElement&&Bi.unobserve((pr=Do.current)==null?void 0:pr.parentElement)}}},[Nn,hr]),(0,ye.useEffect)(()=>{if(Nn){let Ai=[];for(const[Bi,zn]of Object.entries(an)){let pr={[Bi]:()=>{Oi(zn)}};Ai.push(pr),Nn.addKeyMap(pr)}return()=>{for(let Bi of Ai)Nn.removeKeyMap(Bi)}}},[Nn]),(0,ye.useEffect)(()=>{Zt!==Ki&&ir(Zt)},[Zt]),(0,Nr.Z)(()=>{if(!ct&&Mr>0){let Ai=new Date().getTime(),Bi=window.sessionStorage.getItem(Fn);Ai>=Mr+sr&&(!Bi||Bi!==Tr)&&(window.sessionStorage.setItem(Fn,Tr),Fr(!0))}},sr),(0,ye.useEffect)(()=>{di(Qe)},[Nn,Qe]),(0,ye.useEffect)(()=>{Nn&&ht&&Nn.focus()},[Nn,ht]),(0,ye.useEffect)(()=>{if(Cn&&Nn){let Ai=function(zn){let pr=zn.target;if(gr.current){let kr=pr.scrollTop/pr.scrollHeight;gr.current.scrollTop=gr.current.scrollHeight*kr}};const Bi=Nn.getScrollerElement();return Bi.addEventListener("scroll",Ai),()=>{Bi.removeEventListener("scroll",Ai)}}},[Nn,Cn]),(0,ye.useEffect)(()=>{if(Nn&&wi){let Ai=function(Bi,zn){wi(Bi,zn)};return Nn.on("beforeChange",Ai),()=>{Nn.off("beforeChange",Ai)}}},[Nn,wi]),(0,ye.useEffect)(()=>{if(Nn&&rn){let Ai=function(){rn(Nn.getValue())};return Nn.on("blur",Ai),()=>{Nn.off("blur",Ai)}}},[Nn,rn]);function Gr(Ai,Bi){var zn=Ai.getDoc(),pr=zn.getCursor(),kr=zn.getLine(pr.line),po=kr.charAt(pr.ch-1),to=kr.lastIndexOf("@\u2581@",pr.ch),Jr=kr.lastIndexOf("@\u2581\u2581@",pr.ch),eo=to>Jr?to:Jr,Zo=to>Jr?3:4;if(ti.indexOf(po)===-1)return null;if(console.log("change1:",Bi,Ai,kr,pr,eo,to,Jr,po),eo>=0&&pr.ch-eo<5){var $o=eo+Zo;return zn.replaceRange("",{line:pr.line,ch:eo},{line:pr.line,ch:$o}),{line:pr.line,ch:$o}}return null}(0,ye.useEffect)(()=>{if(Nn){let Ai=function(Bi,zn){const pr=Bi.getValue();br(pr),Di(new Date().getTime()),Bi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),wt&&(Un?wt(pr,bn(pr)):wt(pr))};return Nn.on("change",Ai),()=>{Nn.off("change",Ai)}}},[Nn,wt]),(0,ye.useEffect)(()=>{if(Nn)if(xt==null)Nn.setValue(""),br("");else{const Ai=window.scrollY||window.pageYOffset;xt!==Nn.getValue()&&(Nn.setValue(xt),br(xt),Nn.setCursor(Pi?1:Nn.lineCount(),0),window.scrollTo(0,Ai))}},[Nn,xt]);const Oi=(0,ye.useCallback)(Ai=>{const Bi=Nn.getCursor(),zn=Nn.getSelection();let pr=zn.split(`
`);switch(Ai){case"bold":return Nn.replaceSelection("**"+zn+"**"),zn===""&&Nn.setCursor(Bi.line,Bi.ch+2),Nn.focus();case"italic":return Nn.replaceSelection("*"+zn+"*"),zn===""&&Nn.setCursor(Bi.line,Bi.ch+1),Nn.focus();case"code":return Nn.replaceSelection("`"+zn+"`"),zn===""&&Nn.setCursor(Bi.line,Bi.ch+1),Nn.focus();case"inline-latex":return cr("inline-latex"),Nn.focus();case"latex":return Nn.replaceSelection("```latex\n"+zn+"\n```"),Nn.setCursor(Bi.line+1,zn.length+1),Nn.focus();case"line-break":return Nn.replaceSelection(`<br/>
`),Nn.focus();case"list-ul":return zn===""?Nn.replaceSelection("- "+zn):Nn.replaceSelection(pr.map(kr=>kr===""?"":`- ${kr}`).join(`
`)),Nn.focus();case"list-ol":return zn===""?Nn.replaceSelection("1. "+zn):Nn.replaceSelection(pr.map((kr,po)=>kr===""?"":`${po+1}. ${kr}`).join(`
`)),Nn.focus();case"add-null-ch":return zn===""&&Nn.setCursor(Bi.line,Bi.ch),Nn.replaceSelection(Fo),Nn.focus();case"add-signal":return zn===""&&Nn.setCursor(Bi.line,Bi.ch),Nn.replaceSelection(Ae),Nn.focus();case"add-multiple":return zn===""&&Nn.setCursor(Bi.line,Bi.ch),Nn.replaceSelection(ti),Nn.focus();case"inster-template-1":return zn===""&&Nn.setCursor(Bi.line,Bi.ch),Nn.replaceSelection($n),Nn.focus();case"eraser":return Nn.setValue(""),Nn.focus();case"trigger-watch":return di(!Cn),Nn.focus();case"trigger-full-screen":return ir(!Ki),Nn.focus();case ei:cr(ei);return;case rr:cr(rr);return;case Li:cr(Li);return;case zi:cr(zi);return;case"maths-latex":cr("maths-latex");return;case Vi:cr(Vi);return;case Yr:cr(Yr);return;default:throw new Error}},[Nn,Cn,Ki]),_e=(0,ye.useCallback)((Ai,Bi)=>{var zn,pr,kr,po,to,Jr;switch(cr(""),Yi){case ei:const{title:qo,link:Sn}=Ai;return Nn.replaceSelection(`[${qo}](${Sn})`),Nn.focus();case rr:const{language:oa,content:vs}=Ai;return Nn.replaceSelection(["```"+oa,vs,"```"].join(`
`)),Nn.focus();case"maths-latex":for(var eo=atob(Ai),Zo=new Uint8Array(eo.length),$o=0;$o<eo.length;$o++)Zo[$o]=eo.charCodeAt($o);var ia=new Blob([Zo],{type:"image/png"});(0,Nt.I)(ia,Kr=>{Kr.id?Nn.replaceSelection(`![,](/api/attachments/${Kr.id}?type=${Kr.content_type})`):(Kr==null?void 0:Kr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Nn.replaceSelection("`$$"+Ai+"$$`");break;case Li:case zi:case Bn:const{src:Ga,alt:Zs}=Ai,xa=Bi,pl=(kr=(pr=(zn=xa==null?void 0:xa.name)==null?void 0:zn.split("."))==null?void 0:pr.pop)==null?void 0:kr.call(pr);return((po=xa==null?void 0:xa.type)==null?void 0:po.indexOf("image"))>-1||!(xa!=null&&xa.type)?xa!=null&&xa.align||xa!=null&&xa.width?Nn.replaceSelection(`<p style="text-align:${xa.align||"initial"}"><img width="${xa.width?xa.width+"%":"initial"}" src="${Ga}" alt="${Zs||""}" /></p>`):Nn.replaceSelection(`<img width="100%" src="${Ga}" alt="${Zs||""}" />`):((to=xa==null?void 0:xa.type)==null?void 0:to.indexOf("video"))>-1?Nn.replaceSelection(`<video width="100%" controls src="${Ga}"></video>`):((Jr=xa==null?void 0:xa.type)==null?void 0:Jr.indexOf("pdf"))>-1?Nn.replaceSelection(`<a href="${Ga}?type=${xa.type}&disposition=inline" target="_blank">${xa.name}</a>`):oi.includes(pl)?Nn.replaceSelection(`<a href="${Ga}?type=office&disposition=inline" target="_blank">${xa.name}</a>`):Nn.replaceSelection(`[${xa.name}](${Ga})`),Nn.focus();case Yr:const{row:wa,col:Ao,align:Ko}=Ai;let Ka=`
`;for(let Kr=0;Kr<wa;Kr++){let No=[],ro=[];for(let Hi=0;Hi<Ao;Hi++)Kr===1&&ro.push(Zr[Ko]),No.push(" ");Kr===1&&(Ka+=`| ${ro.join(" | ")} |
`),Ka+=`| ${No.join(Ao===1?"":" | ")} |
`}return Nn.replaceSelection(Ka+`
`),Nn.focus();default:throw new Error}},[Nn,Yi]),yt=(0,ye.useMemo)(()=>{switch(Yi){case ei:return ye.createElement(yn,{callback:_e,onCancel:Bt});case rr:return ye.createElement(mn.Z,{callback:_e,onCancel:Bt});case Li:return ye.createElement(Nt.Z,{callback:_e,onCancel:Bt});case Vi:return ye.createElement(Ve,{callback:_e,onCancel:Bt});case Yr:return ye.createElement(Ht,{callback:_e,onCancel:Bt});case"maths-latex":return ye.createElement(qn,{showSaveButton:!0,callback:_e});case"inline-latex":return ye.createElement(wn.Z,{showSaveButton:!0,callback:_e});default:return null}},[Yi]);function Bt(){cr("")}(0,ye.useEffect)(()=>{if(yr.current){let Ai=function(to){kr=!0,po=to.pageY},Bi=function(){kr=!1},zn=function(to){if(kr){let Jr=to.pageY-po;Jr<0&&(Jr=0),Jr>300&&(Jr=300);let eo=Yt+Jr+"px";Wi(eo)}},pr=yr.current,kr=!1,po=0;return pr.addEventListener("mousedown",Ai),document.addEventListener("mousemove",zn),document.addEventListener("mouseup",Bi),()=>{pr.removeEventListener("mousedown",Ai),document.removeEventListener("mousemove",zn),document.removeEventListener("mouseup",Bi)}}},[Nn,yr]),(0,ye.useEffect)(()=>{Wi(Yt)},[Yt]);const ln=fn(ze),jn=fn(Ui),ri={width:ln,height:jn},tn=(0,ye.useMemo)(()=>{if(Mr){let Ai=new Date(Mr),Bi=Ai.getHours(),zn=Ai.getMinutes(),pr=Ai.getSeconds();return Bi=Bi<10?"0"+Bi:Bi,zn=zn<10?"0"+zn:zn,pr=pr<10?"0"+pr:pr,`${Bi}:${zn}:${pr}`}return 0},[Mr]),bn=Ai=>{const Bi=[];if(Un){let zn=-1;Ai=Ai.replace(/(@▁▁@|@▁@)/g,function(pr,kr,po){Bi.push({multiLine:pr!==Ae})})}return Bi};function Xn(){window.sessionStorage.removeItem(Fn),Fr(!1),Di(0)}function Kn(){Fr(!1),Di(0),Nn.setValue(window.sessionStorage.getItem(Fn))}(0,ye.useEffect)(()=>{Jt[Yi]&&Yi!==zi&&Yi!==Vi&&setTimeout(()=>{const Ai=document.getElementsByClassName("markdown-popup-form")[0],Bi=window.innerWidth/2-Ai.offsetWidth/2,zn=window.innerHeight/2-Ai.offsetHeight/2;fr(Bi),Cr(zn)},0)},[Yi]);const Ei=Ai=>{Ai.preventDefault();const Bi=Ai.clientX-Ln,zn=Ai.clientY-Ur;document.body.onmousemove=pr=>{let kr=pr.clientX-Bi,po=pr.clientY-zn;const to=document.getElementsByClassName("markdown-popup-form")[0],Jr=window.innerWidth-to.offsetWidth,eo=window.innerHeight-to.offsetHeight;kr=Math.max(0,Math.min(kr,Jr)),po=Math.max(0,Math.min(po,eo)),vr(pr.clientX,pr.clientY,Bi,zn)&&(fr(kr),Cr(po))},document.body.onmouseup=function(){document.body.onmousemove=null}},vr=(Ai,Bi,zn,pr)=>{const kr=document.body.clientHeight,po=document.body.clientWidth;return Ai<20&&zn>Ai||Ai>po-20&&zn<Ai||Bi<20&&pr>Bi||Bi>kr-20&&pr<Bi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ye.createElement(ye.Fragment,null,ye.createElement("div",{className:"markdown-editor-wrapper",ref:so},ye.createElement("div",{className:`markdown-editor-container ${yi} ${Cn?"on-preview":""} ${on?"mini":""} ${Ki?"full-screen":""}`,style:ri},ye.createElement(Ge,{insertTemp:_t,watch:Cn,fullScreen:Ki,showNullButton:sn,showNullProgramButton:Un,onActionCallback:Oi,hidetoolBar:_n,extraUse:nr}),ye.createElement("div",{className:"markdown-editor-body"},ye.createElement("div",{className:"codemirror-container"},ye.createElement("textarea",{ref:Do,placeholder:ji})),Cn?ye.createElement("div",{ref:gr,className:"preview-container"},It==="stex"&&ye.createElement(it,{value:Tr}),It!=="stex"&&ye.createElement(Ot.Z,{disabledFill:Mi,showProgramFill:Un,value:Tr})):null))),Hn?ye.createElement("a",{ref:yr,className:"editor-resize"}):null,Yi===zi&&ye.createElement(Tn,{callback:_e,onCancel:Bt}),Yi===Vi&&ye.createElement(Ve,{callback:_e,onCancel:Bt}),ye.createElement(Ke.Z,null,Jt[Yi]&&Yi!==zi&&Yi!==Vi?ye.createElement(en.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ln,top:Ur},title:ye.createElement("div",{style:{cursor:"move"},onMouseDown:Ei},Jt[Yi]),open:!0,onCancel:Bt,footer:null,destroyOnClose:!0,width:Yi===Vi?"1200px":null,height:Yi===Vi?"80vh":null,className:"markdown-popup-form"},yt):null))}},28451:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Pe},I:function(){return Ge}});var ye=ve(78241),Oe=ve(8591),He=ve(92832),Rt=ve(81327),$e=ve(5871),qe=ve(5112),De=ve(3113),Tt=ve(77903),Et=ve(59301),et=ve(59301),Ot=Object.defineProperty,it=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ce=(Ke,Ye,pt)=>Ye in Ke?Ot(Ke,Ye,{enumerable:!0,configurable:!0,writable:!0,value:pt}):Ke[Ye]=pt,se=(Ke,Ye)=>{for(var pt in Ye||(Ye={}))te.call(Ye,pt)&&ce(Ke,pt,Ye[pt]);if(Me)for(var pt of Me(Ye))ne.call(Ye,pt)&&ce(Ke,pt,Ye[pt]);return Ke},ge=(Ke,Ye)=>it(Ke,Pt(Ye));const{useForm:me}=ye.default,Ce={width:280,marginRight:10},Fe={labelCol:{span:5},wrapperCol:{span:19}};var Pe=({callback:Ke,onCancel:Ye})=>{const[pt]=me();let Je=(0,Et.useRef)();function kt(zt){Je.current.width=pt.getFieldValue("width"),Je.current.align=pt.getFieldValue("align"),Ke(zt,Je.current)}function Xe(zt,jt){if(zt.status===-1){Oe.ZP.error(zt.message);return}pt.setFieldsValue({src:`/api/attachments/${zt.id}`,type:jt.type})}function Wt(zt){let jt=zt.target.files[0];Je.current=jt,Ge(jt,Xe)}return et.createElement(ye.default,ge(se({form:pt},Fe),{className:"upload-image-panel",onFinish:kt,style:{width:470,overflow:"hidden"}}),et.createElement(ye.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},et.createElement("div",{className:"flex-container"},et.createElement(ye.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},et.createElement(He.default,{style:Ce})),et.createElement(Ie,{onFileChange:Wt}))),et.createElement(ye.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},et.createElement(He.default,{style:{width:264}})),et.createElement(ye.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},et.createElement(Rt.Z,null,et.createElement(ye.default.Item,{name:"width",style:{margin:0}},et.createElement($e.Z,{style:{width:264}})),et.createElement("span",{className:"ml8"},"%"))),et.createElement(ye.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},et.createElement(qe.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"}]})),et.createElement("aside",null,et.createElement(ye.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},et.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),et.createElement(De.ZP,{type:"default",onClick:Ye},"\u53D6\u6D88"))))};function Ie({onFileChange:Ke}){return et.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",et.createElement("input",{type:"file",onChange:Ke}))}function Ge(Ke,Ye){if(!Ke)throw new String("\u6CA1\u6709\u6587\u4EF6");let pt=new FormData;pt.append("editormd-image-file",Ke),pt.append("file_param_name","editormd-image-file"),pt.append("byxhr","true");var Je=new window.XMLHttpRequest;Je.withCredentials=!0,Je.addEventListener("load",function(kt){Ye(JSON.parse(kt.target.responseText),Ke)},!1),Je.addEventListener("error",function(kt){console.error(kt)},!1),Je.open("POST",`${Tt.KI}/api/attachments.json`),Je.send(pt)}},79346:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return He}});var ye=ve(59301),Oe=ve(4676);class He extends ye.Component{constructor($e){super($e);const qe=window.document;this.node=qe.createElement("div"),qe.body.appendChild(this.node)}render(){const{children:$e}=this.props;return(0,Oe.createPortal)($e,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Rn,Mn,ve){"use strict";ve.d(Mn,{SV:function(){return st},ZP:function(){return Se}});var ye=ve(59301),Oe=ve(76374);const He={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"]},Rt={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"]},$e={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(`
`)}]},qe={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(`
`)}]},De={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 Tt=ve(53184),Et=ve.n(Tt),et=Object.defineProperty,Ot=Object.defineProperties,it=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(At,Ve,We)=>Ve in At?et(At,Ve,{enumerable:!0,configurable:!0,writable:!0,value:We}):At[Ve]=We,ce=(At,Ve)=>{for(var We in Ve||(Ve={}))Me.call(Ve,We)&&ne(At,We,Ve[We]);if(Pt)for(var We of Pt(Ve))te.call(Ve,We)&&ne(At,We,Ve[We]);return At},se=(At,Ve)=>Ot(At,it(Ve)),ge=(At,Ve,We)=>new Promise((Ct,bt)=>{var dt=An=>{try{En(We.next(An))}catch(qt){bt(qt)}},Ht=An=>{try{En(We.throw(An))}catch(qt){bt(qt)}},En=An=>An.done?Ct(An.value):Promise.resolve(An.value).then(dt,Ht);En((We=We.apply(At,Ve)).next())});const me={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"]}},Ce=(At,Ve)=>Ve.map(We=>({label:We,kind:At.languages.CompletionItemKind.Keyword,insertText:We})),Fe=At=>Object.keys(me.tables).map(Ve=>({label:Ve,kind:At.languages.CompletionItemKind.Variable,insertText:Ve})),Pe=(At,Ve)=>{const We=me.tables[At];return We?We.map(Ct=>({label:Ct,kind:Ve.languages.CompletionItemKind.Field,insertText:Ct})):[]};function Ie(At,Ve,We,Ct,bt){let dt=Ve.getWordUntilPosition(We),Ht={startLineNumber:We.lineNumber,endLineNumber:We.lineNumber,startColumn:dt.startColumn,endColumn:dt.endColumn},En=Ct.map(An=>({label:An,kind:At.languages.CompletionItemKind.Keyword,insertText:An,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ht}));return bt.map(An=>{En.push(se(ce({},An),{range:Ht}))}),En}var Ge=At=>{me.languages.map(bt=>(At.languages.registerDocumentFormattingEditProvider(bt,{provideDocumentFormattingEdits(dt,Ht,En){return ge(this,null,function*(){const An=Et()(dt.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:dt.getFullModelRange(),text:An}]})}}),bt));const Ve=$e.quickKey.map(bt=>({label:bt.label,kind:At.languages.CompletionItemKind.Method,insertText:bt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet})),We=qe.quickKey.map(bt=>({label:bt.label,kind:At.languages.CompletionItemKind.Method,insertText:bt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ct=Rt.quickKey.map(bt=>({label:bt.label,kind:At.languages.CompletionItemKind.Method,insertText:bt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet}));At.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(bt,dt){var Ht=bt.getWordUntilPosition(dt),En={startLineNumber:dt.lineNumber,endLineNumber:dt.lineNumber,startColumn:Ht.startColumn,endColumn:Ht.endColumn},An=bt.getLineContent(dt.lineNumber).substring(Ht.startColumn-2,Ht.endColumn);return{suggestions:[...$e.keywords.map(qt=>({label:qt,kind:At.languages.CompletionItemKind.Function,documentation:qt,insertText:qt,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En})),...$e.quickKey.map(qt=>({label:qt.label,kind:At.languages.CompletionItemKind.Function,documentation:qt.content,insertText:An.startsWith("#")?qt.content.replace(/#/,""):qt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En}))]}}}),At.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(bt,dt){var Ht=bt.getWordUntilPosition(dt),En={startLineNumber:dt.lineNumber,endLineNumber:dt.lineNumber,startColumn:Ht.startColumn,endColumn:Ht.endColumn};return{suggestions:[...He.keywords.map(An=>({label:An,kind:At.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En}))]}}}),At.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(bt,dt){var Ht=bt.getWordUntilPosition(dt),En={startLineNumber:dt.lineNumber,endLineNumber:dt.lineNumber,startColumn:Ht.startColumn,endColumn:Ht.endColumn},An=bt.getLineContent(dt.lineNumber).substring(Ht.startColumn-2,Ht.endColumn);return{suggestions:[...Rt.keywords.map(qt=>({label:qt,kind:At.languages.CompletionItemKind.Function,documentation:qt,insertText:qt,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En})),...Rt.quickKey.map(qt=>({label:qt.label,kind:At.languages.CompletionItemKind.Function,documentation:qt.content,insertText:An.startsWith("#")?qt.content.replace(/#/,""):qt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En}))]}}}),At.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(bt,dt){var Ht=bt.getWordUntilPosition(dt),En={startLineNumber:dt.lineNumber,endLineNumber:dt.lineNumber,startColumn:Ht.startColumn,endColumn:Ht.endColumn},An=bt.getLineContent(dt.lineNumber).substring(Ht.startColumn-2,Ht.endColumn);return{suggestions:[...De.keywords.map(qt=>({label:qt,kind:At.languages.CompletionItemKind.Function,documentation:qt,insertText:qt,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En})),...De.quickKey.map(qt=>({label:qt.label,kind:At.languages.CompletionItemKind.Function,documentation:qt.content,insertText:An.startsWith("#")?qt.content.replace(/#/,""):qt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En}))]}}}),At.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(bt,dt){var Ht=bt.getWordUntilPosition(dt),En={startLineNumber:dt.lineNumber,endLineNumber:dt.lineNumber,startColumn:Ht.startColumn,endColumn:Ht.endColumn},An=bt.getLineContent(dt.lineNumber).substring(Ht.startColumn-2,Ht.endColumn);return{suggestions:[...qe.keywords.map(qt=>({label:qt,kind:At.languages.CompletionItemKind.Function,documentation:qt,insertText:qt,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En})),...qe.quickKey.map(qt=>({label:qt.label,kind:At.languages.CompletionItemKind.Function,documentation:qt.content,insertText:An.startsWith("#")?qt.content.replace(/#/,""):qt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En}))]}}})};const Ke="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ye=Object.defineProperty,pt=(At,Ve,We)=>Ve in At?Ye(At,Ve,{enumerable:!0,configurable:!0,writable:!0,value:We}):At[Ve]=We,Je=(At,Ve,We)=>pt(At,typeof Ve!="symbol"?Ve+"":Ve,We);const kt=class bx{constructor(Ve,We,Ct){this.placeholder=Ve,this.editor=We,this.monaco=Ct,We.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return bx.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)}};Je(kt,"ID","editor.widget.placeholderHint");var Wt=kt,zt=ve(96236),jt=ve(8591),Mt=ve(6848),Ut=ve(89392),ft=ve(34604),Re=ve(56102),Lt=Object.defineProperty,yn=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,On=(At,Ve,We)=>Ve in At?Lt(At,Ve,{enumerable:!0,configurable:!0,writable:!0,value:We}):At[Ve]=We,dn=(At,Ve)=>{for(var We in Ve||(Ve={}))en.call(Ve,We)&&On(At,We,Ve[We]);if(Nt)for(var We of Nt(Ve))nn.call(Ve,We)&&On(At,We,Ve[We]);return At},Tn=(At,Ve)=>yn(At,mn(Ve)),mt=(At,Ve)=>{var We={};for(var Ct in At)en.call(At,Ct)&&Ve.indexOf(Ct)<0&&(We[Ct]=At[Ct]);if(At!=null&&Nt)for(var Ct of Nt(At))Ve.indexOf(Ct)<0&&nn.call(At,Ct)&&(We[Ct]=At[Ct]);return We},Gn=(At,Ve,We)=>new Promise((Ct,bt)=>{var dt=An=>{try{En(We.next(An))}catch(qt){bt(qt)}},Ht=An=>{try{En(We.throw(An))}catch(qt){bt(qt)}},En=An=>An.done?Ct(An.value):Promise.resolve(An.value).then(dt,Ht);En((We=We.apply(At,Ve)).next())});function xn(At){return/^\d+$/.test(At)?`${At}px`:At}function tt(){}let Ee=!1;const we={"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 Be(At=[]){let Ve=At;if(Array.isArray(At)){for(let We=0;We<At.length;We++){let Ct=we[At[We]];if(Ct)return Ct}return Ve[0]}return we[Ve]||Ve}let ke=null;var Se=At=>{var Ve=At,{width:We="100%",height:Ct="100%",value:bt,language:dt="javascript",style:Ht={},options:En={},overrideServices:An={},theme:qt="vs-dark",onEditBlur:cn,isCopy:qn=!1,onSave:wn,autoHeight:vi=!1,forbidCopy:ei=!1,onChange:Li=tt,editorDidMount:Vi=tt,onFocus:zi=tt,onBreakPoint:Bn=tt,breakPointValue:rr=[],filename:Yr="educoder.txt",errorLine:zr,errorContent:Zr="",highlightLine:Nr,openBreakPoint:Co=!1,placeholder:$r=""}=Ve,sr=mt(Ve,["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 Fo=(0,ye.useRef)(),ti=(0,ye.useRef)({}),Ae=(0,ye.useRef)(),$n=(0,ye.useRef)(),oi=(0,ye.useRef)([]),fn=(0,ye.useRef)(!1),Qn=(0,ye.useRef)(),Zn=(0,ye.useRef)(),an=(0,ye.useRef)(!1),[Jt,vn]=(0,ye.useState)(!1);function xt(){let Zt;return Fo.current&&(Zt=new Oe.Z(rn=>{for(let wi of rn)(wi.target.offsetHeight>0||wi.target.offsetWidth>0)&&ti.current.instance.layout()}),Zt.observe(Fo.current)),Zt}function wt(){jt.ZP.warning({content:decodeURIComponent(Ke),key:"monaco-editor-tip"})}const ze=()=>{let Zt=ti.current.instance;if(bt!=null&&Zt&&Jt){const rn=Zt.getModel();rn&&bt!==rn.getValue()&&(Ee=!0,rn.setValue(bt),Zt.layout(),Ee=!1)}};(0,ye.useEffect)(()=>{const Zt=ft.Z.subscribe("formatDocument",rn=>{var wi;let Ci=ti.current.instance;(wi=Ci==null?void 0:Ci.getAction)==null||wi.call(Ci,"editor.action.formatDocument").run()});return window.updateMonacoValue=rn=>{Li(rn)},Zt},[]),(0,ye.useEffect)(()=>{var Zt;let rn=ti.current.instance;$n.current&&clearTimeout($n.current),$n.current=setTimeout(()=>{ze()},500),bt&&(bt!=null&&bt.length)&&((Zt=rn==null?void 0:rn.updateOptions)==null||Zt.call(rn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(bt.split(/\r\n|\r|\n/g).length))+3,5)}))},[bt,Jt,ti.current]),(0,ye.useEffect)(()=>{if(zr&&ti.current&&ti.current.instance){let rn=ti.current.instance;rn.changeViewZones(function(wi){var Ci=document.createElement("div");Ci.style.padding="10px 20px",Ci.style.width="calc(100% - 20px)",Ci.className="my-error-line-wrp",Ci.innerHTML=Zr,wi.addZone({afterLineNumber:zr||11,heightInLines:3,domNode:Ci})});var Zt={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}};rn.addOverlayWidget(Zt),rn.revealPositionInCenter({lineNumber:20,column:1})}},[zr,ti.current,Jt]);const Yt=(Zt="",rn)=>{if(!Zt||Zt.trim()==="")return!0;const Ci=ti.current.instance.getModel().getLineTokens(rn);let yi=!1;for(let ci=0;ci<2;ci++)Ci.getStandardTokenType(ci)===1&&(yi=!0);return yi};(0,ye.useEffect)(()=>{var Zt;const rn=(Zt=ti.current)==null?void 0:Zt.instance;if(rn&&Jt&&ei){const wi=rn.onDidBlurEditorWidget(()=>{an.current=!1}),Ci=rn.onDidFocusEditorText(()=>{an.current=!0});return()=>{wi.dispose(),Ci.dispose()}}},[ti.current,Jt,ei]),(0,ye.useEffect)(()=>{var Zt;if((Zt=ti.current)!=null&&Zt.instance&&Jt&&Co){let rn=ti.current.instance,wi=rn.getModel();if(!wi)return;(()=>{var br;let Cn=[],di=[];const Ki=wi.getAllDecorations();for(let Yi of Ki)Yi.options.className==="highlighted-line"&&(Cn.push((br=Yi==null?void 0:Yi.range)==null?void 0:br.startLineNumber),di.push(Yi==null?void 0:Yi.id));if(Nr===Cn[0])return;wi.deltaDecorations(di,[]);const ir=wi.getLineCount();Nr&&Nr<=ir&&(rn.deltaDecorations([],[{range:new ke.Range(Nr,1,Nr,wi.getLineMaxColumn(Nr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),rn.revealLineInCenter(Nr))})();const yi=(br=!1)=>{var Cn;let di=[],Ki=[];const ir=wi.getAllDecorations();for(let Yi of ir)Yi.options.linesDecorationsClassName==="breakpoints-select"&&(di.push((Cn=Yi==null?void 0:Yi.range)==null?void 0:Cn.startLineNumber),Ki.push(Yi==null?void 0:Yi.id));if(br)return{lines:di,ids:Ki};Bn(di)},ci=br=>Gn(void 0,null,function*(){let Cn={range:new ke.Range(br,1,br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield wi.deltaDecorations([],[Cn]),yi()}),Pi=br=>Gn(void 0,null,function*(){let Cn=[];const di=rn.getLineDecorations(br);for(let Ki of di)Ki.options.linesDecorationsClassName==="breakpoints-select"&&Cn.push(Ki.id);yield wi.deltaDecorations(Cn,[]),yi()}),Mi=br=>{let Cn=rn.getLineDecorations(br);for(let di of Cn)if(di.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ut.isEqual)(rr,yi(!0).lines)){wi.deltaDecorations(yi(!0).ids,[]);const br=rr.map(Cn=>({range:new ke.Range(Cn,1,Cn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));wi.deltaDecorations([],br)}const ji=rn.onDidChangeModelContent(br=>{let Cn=rn.getPosition();if(Cn){let di=Cn.lineNumber;clearTimeout(Zn.current),Zn.current=setTimeout(()=>{Yt(wi.getLineContent(di),di)?Pi(di):Mi(di)?(Pi(di),ci(di)):yi()},100)}}),lr=rn.onMouseDown(br=>{var Cn,di,Ki;if(br.target.detail&&((Ki=(di=(Cn=br.target)==null?void 0:Cn.element)==null?void 0:di.className)!=null&&Ki.includes("line-numbers"))){let ir=br.target.position.lineNumber;if(Yt(wi.getLineContent(ir),ir))return;Mi(ir)?Pi(ir):ci(ir)}}),nr=br=>{let Cn={range:new ke.Range(br,1,br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};oi.current=rn.deltaDecorations(oi.current,[Cn])},Nn=()=>{oi.current=rn.deltaDecorations(oi.current,[])},Pr=rn.onMouseMove(br=>{var Cn,di,Ki;if(Nn(),br.target.detail&&((Ki=(di=(Cn=br.target)==null?void 0:Cn.element)==null?void 0:di.className)!=null&&Ki.includes("line-numbers"))){let ir=br.target.position.lineNumber;if(Yt(wi.getLineContent(ir),ir))return;nr(ir)}}),Tr=rn.onMouseLeave(()=>{Nn()});return()=>{ji.dispose(),lr.dispose(),Pr.dispose(),Tr.dispose()}}},[ti.current,Jt,rr,Nr,Co,dt]),(0,ye.useEffect)(()=>{var Zt;(Zt=ti.current)!=null&&Zt.instance&&Co&&ti.current.instance.setPosition({lineNumber:0,column:0})},[Nr]);function on(){let Zt=ti.current.instance;if(Zt){const rn=Zt.getSelection(),wi=ti.current.pastePos||{},Ci=new ke.Range(wi.startLineNumber||rn.endLineNumber,wi.startColumn||rn.endColumn,wi.endLineNumber||rn.endLineNumber,wi.endColumn||rn.endColumn);setTimeout(()=>{Zt.executeEdits("",[{range:Ci,text:""}])},300)}}function ht(Zt){(window.navigator.platform.match("Mac")?Zt.metaKey:Zt.ctrlKey)&&Zt.keyCode==83&&(Zt.preventDefault(),wn())}const Qe=()=>{if(vi&&ti.current.instance){const Zt=ti.current.instance.getContentHeight();Un(Zt<Ct?Ct:Zt)}else Un(Ct)};function _t(Zt){var rn=document.createEvent("MouseEvents");rn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Zt.dispatchEvent(rn)}const It=Zt=>{if(!an.current)return;const{keyCode:rn,ctrlKey:wi,metaKey:Ci,target:yi,type:ci}=Zt;return(ci==="paste"||(rn===67||rn===86)&&(Ci||wi))&&yi.nodeName==="TEXTAREA"&&(wt(),Zt.preventDefault()),!1};function Fn(Zt,rn){var wi=window.URL||window.webkitURL||window,Ci=new Blob([rn]),yi=document.createElementNS("http://www.w3.org/1999/xhtml","a");yi.href=wi.createObjectURL(Ci),yi.download=Zt,_t(yi)}(0,ye.useEffect)(()=>{Qe()},[Qe]),(0,ye.useEffect)(()=>{Fo.current&&!Jt&&Promise.all([ve.e(8909),ve.e(3267)]).then(ve.bind(ve,71448)).then(Zt=>{try{ke=Zt,ti.current.instance=ke.editor.create(Fo.current,{value:bt,language:Be(dt),theme:qt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},An);const rn=ti.current.instance;let yi=[...zt.BH._menuItems].find(ji=>ji[0]._debugName=="EditorContext")[1],ci=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Pi=(ji,lr)=>{var nr,Nn;let Pr=ji._first;do lr.includes((Nn=(nr=Pr.element)==null?void 0:nr.command)==null?void 0:Nn.id)&&ji._remove(Pr);while(Pr=Pr.next)};if(Vi(rn,ke),setTimeout(()=>{Qe(),ti.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Fn(Yr||"educoder.txt",rn.getValue())}})},500),ti.current.subscription=rn.onDidChangeModelContent(ji=>{fn.current?clearTimeout(Qn.current):(Qe(),Li(rn.getValue(),ji)),Qn.current=setTimeout(()=>{fn.current=!1},500)}),window.Monaco||Ge(ke,Be(dt)),ei&&(Pi(yi,ci),Fo.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",It),window.removeEventListener("paste",It),window.addEventListener("keydown",It),window.addEventListener("paste",It)),window.Monaco=ke,cn&&rn.onDidBlurEditorWidget(()=>{cn(rn.getValue())}),zi&&rn.onDidFocusEditorText(()=>{zi(rn.getValue())}),ei)try{rn.onDidPaste(ji=>{const lr=rn.getSelection(),nr=ti.current.pastePos||{},Nn=new ke.Range(nr.startLineNumber||lr.endLineNumber,nr.startColumn||lr.endColumn,nr.endLineNumber||lr.endLineNumber,nr.endColumn||lr.endColumn);rn.executeEdits("",[{range:ji.range,text:""}])})}catch(ji){}let Mi=xt();return $r&&typeof $r=="string"&&new Wt($r,rn,ke),vn(!0),()=>{const ji=ti.current.instance;ji.dispose();const lr=ji.getModel();lr&&lr.dispose(),ti.current.subscription&&ti.current.subscription.dispose(),Mi.unobserve(Fo.current)}}catch(rn){}})},[]),(0,ye.useEffect)(()=>{if(ti.current.instance&&Jt)return document.addEventListener("keydown",ht,!1),()=>{document.removeEventListener("keydown",ht)}},[wn,Jt]),(0,ye.useEffect)(()=>{let Zt=ti.current.instance;if(Zt&&Jt){let rn=Be(dt);ke.editor.setModelLanguage(Zt.getModel(),rn)}},[dt,Jt]),(0,ye.useEffect)(()=>{ti.current.instance&&Jt&&ke.editor.setTheme(qt)},[qt,Jt]),(0,ye.useEffect)(()=>{let Zt=ti.current.instance;Ae.current=En,Zt&&Jt&&(Zt.updateOptions(dn({},En)),setTimeout(()=>{Zt.getModel().updateOptions(dn({},En))},200))},[JSON.stringify(En),Jt]),(0,ye.useEffect)(()=>{let Zt=ti.current.instance;Zt&&Jt&&Zt.layout()},[We,Ct,Jt]);const[Hn,ct]=(0,ye.useState)(xn(We)),[sn,Un]=(0,ye.useState)(xn(Ct)),_n=Tn(dn({},Ht),{width:Hn,height:sn,position:"relative"});return ye.createElement("div",{className:"my-monaco-editor",ref:Fo,style:_n},qn&&ye.createElement(Re.CopyToClipboard,{text:bt,onCopy:()=>jt.ZP.success("\u590D\u5236\u6210\u529F")},ye.createElement(Mt.Z,{title:"\u590D\u5236\u4EE3\u7801"},ye.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ye.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function st({width:At="100%",height:Ve="100%",original:We,modified:Ct,language:bt,options:dt={}}){const Ht=(0,ye.useRef)(),[En,An]=(0,ye.useState)(null);function qt(vi){let ei;return Ht.current&&(ei=new Oe.Z(Li=>{for(let Vi of Li)(Vi.target.offsetHeight>0||Vi.target.offsetWidth>0)&&vi.layout()}),ei.observe(Ht.current)),ei}(0,ye.useEffect)(()=>(Ht.current&&Promise.all([ve.e(8909),ve.e(9404)]).then(ve.bind(ve,2550)).then(vi=>{ke=vi;const ei=ke.editor.createDiffEditor(Ht.current,Tn(dn({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},dt),{wordWrap:!0}));An(ei);let Li=qt(ei);return()=>{ei.dispose();const Vi=ei.getModel();Vi&&Vi.dispose(),Li.unobserve(Ht.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ye.useEffect)(()=>{En&&En.setModel({original:ke.editor.createModel(We,bt),modified:ke.editor.createModel(Ct,bt)})},[We,Ct,bt,En]);const cn=xn(At),qn=xn(Ve),wn={width:cn,height:qn};return ye.createElement("div",{className:"my-diff-editor",ref:Ht,style:wn})}},85057:function(Rn,Mn,ve){"use strict";ve.d(Mn,{jL:function(){return $e},w9:function(){return en},QD:function(){return Li},cQ:function(){return Re},op:function(){return qt},O5:function(){return an},_b:function(){return zr},t7:function(){return se},Gi:function(){return Gn},YG:function(){return Tn},qp:function(){return Ot},vr:function(){return Bn},qE:function(){return wn},Je:function(){return Ce},wb:function(){return zt},cq:function(){return ke},tp:function(){return Me}});var ye=ve(59301),Oe={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"},He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/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dpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",$e=({dataSource:Jt=[],img:vn,imgWidth:xt=346,title:wt,sunTitle:ze,bannerExtraContent:Yt})=>ye.createElement("div",{className:Oe.banner},ye.createElement("div",{className:Oe.content},ye.createElement("aside",null,ye.createElement("p",null,ye.createElement("b",null,wt),ye.createElement("span",null,ze)),Jt.length>0&&ye.createElement("div",{className:Oe.btns},Jt.map((on,ht)=>ye.createElement("div",{key:ht,onClick:on.click},on.name,on.sign?ye.createElement("img",{src:He,width:39}):null))),Yt),vn&&ye.createElement("img",{style:{marginTop:33,marginRight:38},src:vn,width:xt}))),qe={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"},De=ve(92310),Tt=ve.n(De),Et=ve(89392),Ot=({dataSource:Jt=[],value:vn,onChange:xt,onTitleChange:wt,className:ze,title:Yt,titleWidth:on=41,style:ht={},fontColor:Qe="#6A7283",showCount:_t})=>{const[It,Fn]=(0,ye.useState)(0),[Hn,ct]=(0,ye.useState)(!1),sn=(0,ye.useRef)(null),Un=(0,ye.useRef)(null);return(0,ye.useEffect)(()=>{var _n;Jt.length!==0&&(((_n=sn==null?void 0:sn.current)==null?void 0:_n.clientHeight)>97?Fn(1):Fn(0)),Jt.length===0&&Fn(0),ct(!1)},[Jt]),ye.createElement("div",{className:Tt()(qe.row,ze),style:ht},ye.createElement("div",{onClick:(0,Et.throttle)(()=>wt==null?void 0:wt(),2e3),style:{width:on,marginTop:Hn?12:4},className:`${qe.title} ${wt?"current":""}`},Yt),ye.createElement("div",{className:Hn?`${qe.tagsWrap} ${qe.tagsBorderWrap}`:qe.tagsWrap},ye.createElement("div",{className:qe.bar,ref:Un,style:It>0?{height:It===1?97:"auto",overflow:It===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ye.createElement("div",{className:qe.tag,ref:sn},Jt==null?void 0:Jt.map(_n=>ye.createElement("span",{onClick:()=>xt(_n.id),key:_n.id,style:{color:Qe},className:vn===_n.id?qe.active:""},ye.createElement("span",{title:_n.name,className:qe.name},_n.name),!!_t&&ye.createElement("span",{className:qe.num},_n.count))))),!!It&&ye.createElement(ye.Fragment,null,It===1?ye.createElement("div",{onClick:()=>{var _n;Fn(2),((_n=sn==null?void 0:sn.current)==null?void 0:_n.clientHeight)>245?ct(!0):ct(!1)},className:qe.action},"\u5C55\u5F00",ye.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ye.createElement("div",{onClick:()=>{Un.current.scrollTop=0,Fn(1),ct(!1)},className:qe.action},"\u6536\u8D77",ye.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},it={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"},Me=({dataSource:Jt=[],value:vn,onChange:xt,className:wt,style:ze={}})=>ye.createElement("div",{style:ze,className:Tt()(it.tabs,wt)},Jt.map(Yt=>ye.createElement("span",{onClick:()=>xt(Yt.id),className:vn===Yt.id?it.active:"",key:Yt.id},Yt.name))),te={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"},ne=ve(92832),se=({dataSource:Jt=[],value:vn="",onChange:xt,onInputChange:wt=()=>{},className:ze,style:Yt={},placeholder:on,allowClear:ht=!1})=>{var Qe;const[_t,It]=(0,ye.useState)(""),[Fn,Hn]=(0,ye.useState)("");(0,ye.useEffect)(()=>{var Un;let _n=vn;(Un=JSON.stringify(vn))!=null&&Un.includes("{")&&(It(vn.id),_n=vn.value||"");try{Hn(decodeURIComponent(_n||""))}catch(Zt){Hn(decodeURIComponent(_n||""))}},[vn]);const ct=()=>{xt(encodeURIComponent(Fn),_t||null)},sn=Un=>{Un!==_t&&(It(Un),xt(encodeURIComponent(Fn),Un))};return ye.createElement("div",{className:Tt()(te.input,ze),style:Yt},!!Jt.length&&ye.createElement("div",{className:te.dropdown},ye.createElement("div",{className:te.text},(Qe=Jt.find(Un=>Un.id===_t))==null?void 0:Qe.name,ye.createElement("i",{className:"iconfont icon-zhankai4"}),ye.createElement("b",{className:te.b1}),ye.createElement("b",{className:te.b2})),ye.createElement("div",{className:te.menu},Jt.map((Un,_n)=>ye.createElement("div",{key:_n,onClick:()=>sn(Un.id)},Un.name)))),ye.createElement(ne.default,{onPressEnter:ct,value:Fn,onChange:Un=>{Hn(Un.target.value),wt(encodeURIComponent(Un.target.value),_t||null)},bordered:!1,placeholder:on}),ye.createElement("i",{onClick:ct,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={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"},Ce=({value:Jt,onChange:vn,className:xt,total:wt,pageSize:ze,style:Yt={}})=>{const on=Jt<2,ht=Jt>=Math.ceil(wt/ze);return wt<=ze?ye.createElement(ye.Fragment,null):ye.createElement("div",{className:Tt()(ge.quickPager,xt),style:Yt},ye.createElement("div",{onClick:()=>{on||vn(Jt-1,"prev")},className:on?ge.disabled:""},"\u4E0A\u4E00\u9875"),ye.createElement("div",{onClick:()=>{ht||vn(Jt+1,"next")},className:ht?ge.disabled:""},"\u4E0B\u4E00\u9875"))},Fe={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"},Pe=ve(71418),Ie=ve(6848),Ge=ve(13570),Ke=ve(3294),Ye=ve(955),pt=ve(96908),Je=ve(57177),kt=ve(81378),Xe=ve(8797),zt=({className:Jt,dataSource:vn=[],col:xt=4,right:wt,bottom:ze=23,precision:Yt=0,wrapWidth:on=1200,trackEventItems:ht,loading:Qe})=>{const _t=Math.floor((on-(xt-1)*wt)/xt);return ye.createElement(Pe.Z,{spinning:Qe},ye.createElement("div",{className:Tt()(Fe.list,Jt)},!!vn.length&&vn.map((It,Fn)=>{const{name:Hn,id:ct,identifier:sn,power:Un,cover_image_id:_n,pic:Zt}=It;return ye.createElement("div",{className:Fe.wrap,key:ct,style:{width:_t,marginRight:(1+Fn)%xt===0?0:wt+Yt,marginBottom:ze}},ye.createElement("a",{target:"_blank",href:`/shixuns/${sn}/challenges`,className:Fe.li,onClick:rn=>{rn.preventDefault(),ht&&(0,Ye.L9)([ht]),Un&&(0,Ye.xg)(`/shixuns/${sn}/challenges`)}},ye.createElement("div",{className:Fe.img},ye.createElement("img",{className:Fe.cover,src:`${Zt}`}),It.is_jupyter&&ye.createElement("img",{className:Fe.sign,src:pt}),It.is_jupyter_lab&&ye.createElement("img",{className:Fe.sign,src:Je}),It.is_unity_3d&&ye.createElement("img",{className:Fe.sign,src:kt})),ye.createElement("div",{className:Fe.name},ye.createElement(Ie.Z,{title:Hn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ye.createElement("span",{className:Fe.e},Hn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ye.createElement("div",{className:Fe.tags},ye.createElement(Ie.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ye.createElement("span",null,It.challenges_count))),!!It.myshixuns_count&&ye.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ye.createElement("span",null,It.myshixuns_count))),ye.createElement(Ie.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ye.createElement("span",null,ye.createElement("span",null,It.level))),ye.createElement("div",{className:Fe.rate},ye.createElement(Ge.Z,{allowHalf:!0,disabled:!0,defaultValue:It.score_info}),ye.createElement("span",null,"\xA0",It.score_info?`${It.score_info}\u5206`:"5\u5206")))),!Un&&ye.createElement("div",{className:Fe.lockWrap},ye.createElement("img",{src:`${Ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ye.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!vn.length&&ye.createElement(Xe.Z,null)))},jt={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"},Mt=ve(24065),Ut=ve(59301),Re=({className:Jt,dataSource:vn=[],col:xt=4,right:wt,bottom:ze=23,precision:Yt=0,wrapWidth:on=1200,trackEventItems:ht,loading:Qe,onRemove:_t=()=>{},isCurrent:It=!0,showAlias:Fn=!1})=>{const Hn=Math.floor((on-(xt-1)*wt)/xt),ct=[{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 Ut.createElement(Pe.Z,{spinning:Qe},Ut.createElement("div",{className:Tt()(jt.list,Jt)},!!(vn!=null&&vn.length)&&(vn==null?void 0:vn.map((sn,Un)=>{var _n;const{name:Zt,id:rn,identifier:wi,featured:Ci,school_name:yi,image_url:ci,excellent:Pi,is_plan:Mi}=sn;return Ut.createElement("div",{key:rn,className:jt.wrap,style:{width:Hn,marginRight:(1+Un)%xt===0?0:wt+Yt,marginBottom:ze}},Ut.createElement("a",{className:jt.li,onClick:ji=>{ji.preventDefault(),ji.stopPropagation(),ht&&(0,Ye.L9)([ht]),(0,Ye.xg)(`/paths/${wi}`)}},Ut.createElement("div",{className:jt.img},Ut.createElement("img",{className:jt.cover,src:`${ci}`}),It&&(0,Mt.bg)()&&(sn==null?void 0:sn.studying)&&Ut.createElement("div",{className:`${jt.movebq} user-path-items`,onClick:ji=>{ji.stopPropagation(),_t(sn)}},Ut.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ut.createElement("span",{className:"c-red"},"\u79FB\u9664")),(_n=sn==null?void 0:sn.subject_tags)==null?void 0:_n.map((ji,lr)=>{var nr,Nn;if(lr===0){const Tr=(nr=ct.find(br=>br.name==ji))==null?void 0:nr.swimg;return Ut.createElement("img",{className:jt.sign,src:Tr,style:{left:"-4px"}})}const Pr=(Nn=ct.find(Tr=>Tr.name==ji))==null?void 0:Nn.ptimg;return Ut.createElement("img",{className:jt.sign,src:Pr,style:{left:`${48+52*(lr-1)+2*lr}px`}})}),Ut.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(sn==null?void 0:sn.excellent)&&Ut.createElement("div",{className:jt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ut.createElement("div",{className:jt.name},Ut.createElement(Ie.Z,{title:Fn&&(sn!=null&&sn.excellent_alias_name)?Ut.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Zt}`,Ut.createElement("br",null),Ut.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${sn==null?void 0:sn.excellent_alias_name}`)):Zt},Ut.createElement("span",{className:jt.e},Fn&&(sn==null?void 0:sn.excellent_alias_name)||Zt))),Ut.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${yi}`},Ut.createElement("div",{className:jt.unit},Ut.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),yi)),Ut.createElement("div",{className:jt.tags},Ut.createElement("div",null,Ut.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ut.createElement("span",null,Ut.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ut.createElement("span",null,sn.stages_count))),Ut.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ut.createElement("span",null,Ut.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ut.createElement("span",null,sn.members_count)))))))})),!vn.length&&Ut.createElement(Xe.Z,null)))},Lt={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"},yn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/Uq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IsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",mn=ve(59301),en=({className:Jt,dataSource:vn=[],col:xt=4,right:wt,bottom:ze=23,precision:Yt=0,wrapWidth:on=1200,trackEventItems:ht,loading:Qe,handleVery:_t=()=>{}})=>{const It=Math.floor((on-(xt-1)*wt)/xt);return mn.createElement(Pe.Z,{spinning:Qe},mn.createElement("div",{className:Tt()(Lt.list,Jt)},!!vn.length&&vn.map((Fn,Hn)=>{const{subject_identifier:ct,id:sn,identifier:Un,power:_n}=Fn,Zt=Fn.is_public!=0&&Fn.is_public;return mn.createElement("div",{className:Lt.wrap,key:sn,style:{width:It,marginRight:(1+Hn)%xt===0?0:wt+Yt,marginBottom:ze}},mn.createElement("a",{className:Lt.li,onClick:rn=>{rn.preventDefault(),_t(Fn==null?void 0:Fn.first_category_url)}},mn.createElement("div",{className:Lt.top},mn.createElement(Ie.Z,{title:Fn.name},mn.createElement("div",{className:Lt.name},Fn.name)),mn.createElement("img",{className:Lt.img,src:Ke.Z.IMG_SERVER+"/images/"+Fn.avatar_url}),mn.createElement("div",{className:Lt.text,title:Fn.creator},Fn.creator),ct&&mn.createElement("div",{className:Lt.btns},mn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),mn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Zt&&mn.createElement("div",{className:Lt.sign},"\u516C\u5F00")),mn.createElement("div",{className:Lt.bottom},Fn.visits>0&&mn.createElement(Ie.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-liulanyan"}),mn.createElement("span",null,Fn.visits))),Fn.course_members_count>0&&mn.createElement(Ie.Z,{title:"\u6210\u5458",placement:"bottom"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-chengyuan"}),Fn.course_members_count)),Fn.tasks_count>0&&mn.createElement(Ie.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-zuoye"}),Fn.tasks_count)),Fn.is_end?mn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):mn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Fn.is_accessible&&mn.createElement("div",{className:Lt.lockWrap},mn.createElement("img",{src:`${Ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),mn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!vn.length&&mn.createElement(Xe.Z,null)))},nn={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"},On=ve(89070),Tn=({dataSource:Jt=[],value:vn,onChange:xt,className:wt,style:ze={},tabBarExtraContent:Yt})=>ye.createElement("div",{className:Tt()(nn.tabs,wt),style:ze},ye.createElement("div",{className:nn.tabsWrap},Jt.map((on,ht)=>!(on!=null&&on.hide)&&ye.createElement("aside",{className:nn.tab,onClick:()=>{xt(on.id),on.link&&On.history.push(on.link)},key:ht},ye.createElement("div",{className:vn===on.id?nn.active:""},on.name),(on==null?void 0:on.resetCount)==null&&(on==null?void 0:on.total)!==void 0&&ye.createElement("span",null,"\uFF08",on==null?void 0:on.total,"\uFF09"),(on==null?void 0:on.resetCount)!==void 0&&(on==null?void 0:on.total)!==void 0&&ye.createElement(Ie.Z,{title:(on==null?void 0:on.tip)!=null?on==null?void 0:on.tip:""},ye.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ye.createElement("span",{style:{color:"#000"}},on==null?void 0:on.resetCount),"/",ye.createElement("span",null,on==null?void 0:on.total),"\uFF09"))))),ye.createElement("div",{className:nn.tabBar},Yt)),Gn=({className:Jt,style:vn={},children:xt})=>ye.createElement("div",{className:Tt()(Jt),style:vn},xt),xn={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"},tt=ve(38854),Ee=ve(20834);const we=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ke=({sortValue:Jt,dropValue:vn,className:xt,onSort:wt,onDrop:ze,dataSource:Yt=we})=>{var on;return ye.createElement("div",{className:Tt()(xn.orderWrap,xt)},ye.createElement(tt.Z,{dropdownRender:()=>ye.createElement(Ee.default,null,Yt.map((ht,Qe)=>ye.createElement(Ee.default.Item,{key:Qe,onClick:()=>ze(ht.id)},ht.name)))},ye.createElement("span",{className:xn.orderTextWrap},(on=Yt.find(ht=>vn===ht.id))==null?void 0:on.name)),ye.createElement("span",{className:xn.orderIconWrap},ye.createElement("span",{className:xn.orderAsc},ye.createElement("i",{className:Jt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${xn.cursorPointer} ${xn.active}`:`iconfont icon-sanjiaoxing-up font12 ${xn.cursorPointer}`,onClick:()=>wt(Jt==="asc"?"desc":"asc")})),ye.createElement("span",{className:xn.orderDesc},ye.createElement("i",{className:Jt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${xn.cursorPointer} ${xn.active}`:`iconfont icon-sanjiaoxing-down font12 ${xn.cursorPointer}`,onClick:()=>wt(Jt==="asc"?"desc":"asc")}))))},Se={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"},st=ve(3113),At=Object.defineProperty,Ve=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,bt=(Jt,vn,xt)=>vn in Jt?At(Jt,vn,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Jt[vn]=xt,dt=(Jt,vn)=>{for(var xt in vn||(vn={}))We.call(vn,xt)&&bt(Jt,xt,vn[xt]);if(Ve)for(var xt of Ve(vn))Ct.call(vn,xt)&&bt(Jt,xt,vn[xt]);return Jt},Ht=(Jt,vn)=>{var xt={};for(var wt in Jt)We.call(Jt,wt)&&vn.indexOf(wt)<0&&(xt[wt]=Jt[wt]);if(Jt!=null&&Ve)for(var wt of Ve(Jt))vn.indexOf(wt)<0&&Ct.call(Jt,wt)&&(xt[wt]=Jt[wt]);return xt},En=(Jt,vn,xt)=>new Promise((wt,ze)=>{var Yt=Qe=>{try{ht(xt.next(Qe))}catch(_t){ze(_t)}},on=Qe=>{try{ht(xt.throw(Qe))}catch(_t){ze(_t)}},ht=Qe=>Qe.done?wt(Qe.value):Promise.resolve(Qe.value).then(Yt,on);ht((xt=xt.apply(Jt,vn)).next())}),qt=Jt=>{var vn=Jt,{className:xt,style:wt,children:ze,loading:Yt=!1,openLoading:on,onClick:ht=()=>{},size:Qe="middle",shape:_t="round"}=vn,It=Ht(vn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Fn,Hn]=(0,ye.useState)(!1);return ye.createElement(st.ZP,dt({onClick:(0,Et.throttle)(ct=>En(void 0,null,function*(){on&&Hn(!0);try{yield ht(ct)}catch(sn){console.log("error",sn)}on&&Hn(!1)}),2e3,{leading:!0,trailing:!1}),className:Tt()(Se.btn,Se[`${Qe}-${_t}`],xt),style:wt,size:Qe,shape:_t,loading:Fn||Yt},It),ze)},cn={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"},wn=({className:Jt,style:vn,children:xt=null,onClick:wt,title:ze})=>ye.createElement("div",{className:Tt()(cn.head,Jt),style:vn},ye.createElement("span",{className:"primary-hover",onClick:wt},ye.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ye.createElement("b",{title:ze},ze),ye.createElement("div",{className:cn.node},xt)),vi={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"},Li=({confirmShow:Jt=!0,confirmTitle:vn,confirmClick:xt,cancelShow:wt=!0,cancelTitle:ze,cancelClick:Yt,className:on,style:ht,confirmLoading:Qe=!1})=>ye.createElement("div",{className:Tt()(vi.btns,on),style:ht},Jt&&ye.createElement(st.ZP,{loading:Qe,onClick:xt,type:"primary",className:vi.confirm},vn),wt&&ye.createElement(st.ZP,{onClick:Yt,className:vi.cancel},ze)),Vi={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"},Bn=({className:Jt,style:vn={},LeftContent:xt,children:wt,RightContent:ze})=>ye.createElement("div",{className:Tt()(Vi.fixedBottom,Jt),style:vn},ye.createElement("div",{className:Vi.wrap},ye.createElement("div",{className:Vi.left},xt),ye.createElement("div",{className:Vi.center},wt),ye.createElement("div",{className:Vi.right},ze))),rr={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"},zr=({className:Jt,style:vn={},dataSource:xt=[]})=>ye.createElement("div",{className:Tt()(rr.crumbs,Jt),style:vn},xt.map((wt,ze)=>ze<xt.length-1?ye.createElement(ye.Fragment,{key:ze},wt.path||wt.onClick?ye.createElement("span",{className:rr.hover,onClick:wt!=null&&wt.onClick?wt.onClick:()=>On.history.push(wt.path)},wt.name):ye.createElement("span",null,wt.name),ye.createElement("span",null,"\xA0",">","\xA0")):ye.createElement("span",{key:ze,style:{color:"#5F6368"}},wt.name))),Zr=ve(31797),Nr=Object.defineProperty,Co=Object.defineProperties,$r=Object.getOwnPropertyDescriptors,sr=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,Ae=(Jt,vn,xt)=>vn in Jt?Nr(Jt,vn,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Jt[vn]=xt,$n=(Jt,vn)=>{for(var xt in vn||(vn={}))Fo.call(vn,xt)&&Ae(Jt,xt,vn[xt]);if(sr)for(var xt of sr(vn))ti.call(vn,xt)&&Ae(Jt,xt,vn[xt]);return Jt},oi=(Jt,vn)=>Co(Jt,$r(vn)),fn=(Jt,vn)=>{var xt={};for(var wt in Jt)Fo.call(Jt,wt)&&vn.indexOf(wt)<0&&(xt[wt]=Jt[wt]);if(Jt!=null&&sr)for(var wt of sr(Jt))vn.indexOf(wt)<0&&ti.call(Jt,wt)&&(xt[wt]=Jt[wt]);return xt};const{Countdown:Qn}=Zr.default;var an=Jt=>{var vn=Jt,{onChange:xt}=vn,wt=fn(vn,["onChange"]);const[ze,Yt]=(0,ye.useState)(null);(0,ye.useEffect)(()=>{typeof ze=="number"&&ze>=0&&xt(ze)},[ze]);const on=ht=>{const Qe=Math.floor(ht/1e3);Yt(Qe)};return ye.createElement(Qn,oi($n({},wt),{onChange:on}))}},58856:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Oe}});var ye=ve(59301);function Oe(He,Rt){const $e=(0,ye.useRef)();(0,ye.useEffect)(()=>{$e.current=He}),(0,ye.useEffect)(()=>{function qe(){$e.current()}if(Rt!==null){let De=setInterval(qe,Rt);return()=>clearInterval(De)}},[Rt])}},65973:function(Rn,Mn,ve){"use strict";ve.r(Mn),ve.d(Mn,{default:function(){return Zn}});var ye=ve(59301),Oe={card:"card___c4ypw",head:"head___d2Dfo",element:"element___PyfcV",collaborator:"collaborator___o6MF4",btn:"btn___CF6mw",delSty:"delSty___Wm5pj",delBorder:"delBorder___IVg2Z",copHover:"copHover___rNmmw",wrap:"wrap___feope",center:"center___uU09V",tip:"tip___yCX57",title:"title___OpV1r",content:"content___XU4yH",fixedBtns:"fixedBtns___ItSdd"},He=ve(92310),Rt=ve.n(He),$e=ve(85057),qe=ve(12290),De=ve(95237),Tt=ve(3113),Et=ve(43418),et=ve(92832),Ot=ve(1710),it=ve(78241),Pt=ve(6848),Me=ve(5871),te=ve(8591),ne=ve(71418),ce=ve(24905),se=ve(5112),ge=ve(5083),me=ve(955),Ce=ve(89070),Fe=ve(56082),Pe=ve(87954),Ie=ve(18257),Ge=ve(19719),Ke=ve(35241),Ye=ve(8797),pt=Object.defineProperty,Je=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,jt=(an,Jt,vn)=>Jt in an?pt(an,Jt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):an[Jt]=vn,Mt=(an,Jt)=>{for(var vn in Jt||(Jt={}))Wt.call(Jt,vn)&&jt(an,vn,Jt[vn]);if(Xe)for(var vn of Xe(Jt))zt.call(Jt,vn)&&jt(an,vn,Jt[vn]);return an},Ut=(an,Jt)=>Je(an,kt(Jt));const ft=ye.createContext({}),Re=()=>{const{setActivatorNodeRef:an,listeners:Jt}=(0,ye.useContext)(ft);return ye.createElement(Tt.ZP,Mt({type:"text",size:"small",icon:ye.createElement(Pt.Z,{title:"\u53EF\u9F20\u6807\u62D6\u62FD\u8FDB\u884C\u8BD5\u9898\u6392\u5E8F\uFF0C\u5B66\u751F\u7AEF\u5C06\u6309\u7167\u6B64\u6392\u5E8F\u5C55\u793A"},ye.createElement(Fe.Z,null)),style:{cursor:"move"},ref:an},Jt))},Lt=an=>{const{attributes:Jt,listeners:vn,setNodeRef:xt,setActivatorNodeRef:wt,transform:ze,transition:Yt,isDragging:on}=(0,Ge.nB)({id:an["data-row-key"]}),ht=Mt(Ut(Mt({},an.style),{transform:Ke.ux.Translate.toString(ze),transition:Yt}),on?{position:"relative",zIndex:99}:{}),Qe=(0,ye.useMemo)(()=>({setActivatorNodeRef:wt,listeners:vn}),[wt,vn]);return ye.createElement(ft.Provider,{value:Qe},ye.createElement("tr",Mt(Ut(Mt({},an),{ref:xt,style:ht}),Jt)))};var mn=({columns:an,dataSource:Jt,setDataSource:vn,loading:xt})=>{const wt=({active:ze,over:Yt})=>{ze.id!==(Yt==null?void 0:Yt.id)&&vn(on=>{const ht=on.findIndex(_t=>_t.id===(ze==null?void 0:ze.id)),Qe=on.findIndex(_t=>_t.id===(Yt==null?void 0:Yt.id));return(0,Ge.Rp)(on,ht,Qe)})};return ye.createElement(Pe.LB,{modifiers:[Ie.DL],onDragEnd:wt},ye.createElement(Ge.Fo,{items:Jt.map(ze=>ze.id),strategy:Ge.qw},ye.createElement(Ot.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:xt,locale:{emptyText:ye.createElement(Ye.Z,{styles:{margin:"80px auto"},customText:ye.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",ye.createElement("span",{style:{color:"#CA7720"}},"\u53F3\u4E0A\u89D2\u64CD\u4F5C\u6309\u94AE"),"\u8FDB\u884C\u6DFB\u52A0\uFF5E")})},dataSource:Jt,components:{body:{row:Lt}},columns:[{key:"sort",align:"center",width:80,render:()=>ye.createElement(Re,null)},...an],size:"middle"})))},Nt=ve(99313),en=ve(19842),nn=ve(57809),On=ve(98228),dn=ve(58421),Tn=ve(99064),mt={flex_box_center:"flex_box_center___Iqqr9",flex_space_between:"flex_space_between___y0uZc",flex_box_vertical_center:"flex_box_vertical_center___akeKA",flex_box_center_end:"flex_box_center_end___DEJG9",flex_box_column:"flex_box_column___pgYr1",scoremodal:"scoremodal___PYXCN",selectWrapper:"selectWrapper___RNoPX",selectWrappers:"selectWrappers___fUTXA",allqingchu:"allqingchu___k6Qgb",title:"title___AAfdA",score:"score___oYtrM",close:"close___i8V3V",content:"content___JpTOI",items:"items___je5K0",bottom:"bottom___jjylc",yes:"yes___Wh4La",no:"no___fIya2",titlecount:"titlecount___pZQaF",add:"add___hT0xx",search:"search___WBmWG",searchIcon:"searchIcon___LgZF_",tabWrap:"tabWrap___lGZ3A",previewModal:"previewModal___jPoO2"},Gn=ve(26422),xn={flex_box_center:"flex_box_center____Tkex",flex_space_between:"flex_space_between___EZnYm",flex_box_vertical_center:"flex_box_vertical_center___e6Uyw",flex_box_center_end:"flex_box_center_end___FubGu",flex_box_column:"flex_box_column___ibm4g",warp:"warp___IgClr",shixunbutton:"shixunbutton___DTP9s",redio:"redio___wfYmJ",redioitem:"redioitem___Lx8l8",redioitemyes:"redioitemyes___KKsIv",title:"title___GXJmE",titleyes:"titleyes___yYOlS",yestag:"yestag___WQlWV",qcount:"qcount___QpuQ9",score:"score___WkTL9",qtitle:"qtitle___TQM3w",checkbox:"checkbox___XWcyb",checkboxitem:"checkboxitem___eUzWD",checkboxitemyes:"checkboxitemyes___LOyRE",bottom:"bottom___IKM1j",bottomitem:"bottomitem___TaUK6",left:"left___szEjt",right:"right___XEuVG",completion:"completion___bVp0S",content:"content___R3KZ7",items:"items___DCx2v",simple:"simple___GPeTT",shixun:"shixun___hhixj",combination:"combination___toZnZ",program:"program___alaBk"},tt=ve(85149),Ee=ve(24334);const we=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var ke=({qitem:an})=>{var Jt,vn,xt,wt,ze,Yt,on,ht,Qe,_t;return ye.createElement("div",{className:xn.warp},ye.createElement("div",{className:xn.mainPart},ye.createElement("div",{className:xn.qcount},(an==null?void 0:an.question_type)===8&&ye.createElement(tt.Z,{className:xn.content,showProgramFill:!0,value:(Jt=an==null?void 0:an.program_attr)==null?void 0:Jt.description}),(an==null?void 0:an.question_type)!=8&&ye.createElement(tt.Z,{className:xn.qtitle,value:(an==null?void 0:an.name)||(an==null?void 0:an.title)})),((an==null?void 0:an.question_type)===0||(an==null?void 0:an.question_type)===2)&&ye.createElement("div",null,(vn=an==null?void 0:an.choices)==null?void 0:vn.map((It,Fn)=>ye.createElement("div",{className:xn.redio},!(It!=null&&It.is_answer)&&ye.createElement("span",{className:xn.redioitem}),(It==null?void 0:It.is_answer)&&ye.createElement("i",{className:`${xn.redioitemyes} icon-duigou1`}),ye.createElement(tt.Z,{className:It!=null&&It.is_answer?xn.titleyes:xn.title,value:we[Fn]+(It==null?void 0:It.choice_text)}),(It==null?void 0:It.is_answer)&&ye.createElement("div",{className:xn.yestag},"\u6B63\u786E\u7B54\u6848")))),(an==null?void 0:an.question_type)===1&&ye.createElement("div",null,(xt=an==null?void 0:an.choices)==null?void 0:xt.map((It,Fn)=>ye.createElement("div",{className:xn.checkbox},!(It!=null&&It.is_answer)&&ye.createElement("span",{className:xn.checkboxitem}),(It==null?void 0:It.is_answer)&&ye.createElement("i",{className:`${xn.checkboxitemyes} icon-duigou1`}),ye.createElement(tt.Z,{className:It!=null&&It.is_answer?xn.titleyes:xn.title,value:we[Fn]+(It==null?void 0:It.choice_text)}),(It==null?void 0:It.is_answer)&&ye.createElement("div",{className:xn.yestag},"\u6B63\u786E\u7B54\u6848")))),(an==null?void 0:an.question_type)===3&&ye.createElement("div",{className:xn.completion},(wt=an==null?void 0:an.standard_answer)==null?void 0:wt.map((It,Fn)=>{var Hn;return ye.createElement("div",{style:{display:"flex"}},ye.createElement("span",{className:xn.title},"\u586B\u7A7A\u9879",Fn+1),ye.createElement("div",{className:xn.content},(Hn=It==null?void 0:It.answer_text)==null?void 0:Hn.map((ct,sn)=>ye.createElement("div",{className:xn.items},ct))))})),(an==null?void 0:an.question_type)===4&&ye.createElement("div",{className:xn.simple},ye.createElement("div",{className:xn.title},"\u53C2\u8003\u7B54\u6848"),ye.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(ze=an==null?void 0:an.answer_texts)!=null&&ze[0]?ye.createElement(tt.Z,{className:xn.content,value:(Yt=an==null?void 0:an.answer_texts)==null?void 0:Yt[0]}):ye.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(an==null?void 0:an.question_type)===5&&((on=an==null?void 0:an.challenge_names)==null?void 0:on.map((It,Fn)=>ye.createElement("div",{className:xn.shixun},ye.createElement("span",{className:xn.qtitle},ye.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,me.EM)(Fn+1),"\u9898"),It)))),(an==null?void 0:an.question_type)===6&&ye.createElement("div",{className:xn.program},ye.createElement(tt.Z,{className:xn.content,value:((ht=an==null?void 0:an.program_attr)==null?void 0:ht.description)||"- -"})),(an==null?void 0:an.question_type)===7&&((Qe=an==null?void 0:an.sub_item_banks)==null?void 0:Qe.map((It,Fn)=>{var Hn,ct,sn,Un,_n;return ye.createElement("div",null,ye.createElement("div",{className:xn.combination},ye.createElement("span",{className:xn.qtitle},It==null?void 0:It.name)),ye.createElement("div",{className:xn.warp,style:{padding:"0px",paddingTop:20}},ye.createElement("div",null,((It==null?void 0:It.item_type)=="SINGLE"||(It==null?void 0:It.item_type)=="JUDGMENT")&&((Hn=It==null?void 0:It.choices)==null?void 0:Hn.map((Zt,rn)=>ye.createElement("div",{className:xn.redio},!(Zt!=null&&Zt.is_answer)&&ye.createElement("span",{className:xn.redioitem}),(Zt==null?void 0:Zt.is_answer)&&ye.createElement("i",{className:`${xn.redioitemyes} icon-duigou1`}),ye.createElement(tt.Z,{className:Zt!=null&&Zt.is_answer?xn.titleyes:xn.title,value:we[rn]+(Zt==null?void 0:Zt.choice_text)}),(Zt==null?void 0:Zt.is_answer)&&ye.createElement("div",{className:xn.yestag},"\u6B63\u786E\u7B54\u6848")))),(It==null?void 0:It.item_type)=="MULTIPLE"&&((ct=It==null?void 0:It.choices)==null?void 0:ct.map((Zt,rn)=>ye.createElement("div",{className:xn.checkbox},!(Zt!=null&&Zt.is_answer)&&ye.createElement("span",{className:xn.checkboxitem}),(Zt==null?void 0:Zt.is_answer)&&ye.createElement("i",{className:`${xn.checkboxitemyes} icon-duigou1`}),ye.createElement(tt.Z,{className:Zt!=null&&Zt.is_answer?xn.titleyes:xn.title,value:we[rn]+(Zt==null?void 0:Zt.choice_text)}),(Zt==null?void 0:Zt.is_answer)&&ye.createElement("div",{className:xn.yestag},"\u6B63\u786E\u7B54\u6848")))),(It==null?void 0:It.item_type)=="COMPLETION"&&ye.createElement("div",{className:xn.completion},(sn=It==null?void 0:It.standard_answer)==null?void 0:sn.map((Zt,rn)=>{var wi;return ye.createElement("div",{style:{display:"flex"}},ye.createElement("span",{className:xn.title},"\u586B\u7A7A\u9879",rn+1),ye.createElement("div",{className:xn.content},(wi=Zt==null?void 0:Zt.answer_text)==null?void 0:wi.map((Ci,yi)=>ye.createElement("div",{className:xn.items},Ci))))})),(It==null?void 0:It.item_type)=="SUBJECTIVE"&&ye.createElement("div",{className:xn.simple},ye.createElement("div",{className:xn.title},"\u53C2\u8003\u7B54\u6848"),ye.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Un=It==null?void 0:It.answer_texts)!=null&&Un[0]?ye.createElement(tt.Z,{className:xn.content,value:(_n=It==null?void 0:It.answer_texts)==null?void 0:_n[0]}):ye.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(an==null?void 0:an.question_type)===8&&ye.createElement("div",null,ye.createElement(tt.Z,{disabledFill:!0,className:xn.content,showProgramFill:!0,value:Ee.Base64.decode(((_t=an==null?void 0:an.program_attr)==null?void 0:_t.code)||"")})),(an==null?void 0:an.question_type)===5&&ye.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},ye.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),ye.createElement("span",{style:{color:"#000000"}},(an==null?void 0:an.author_name)||"- -")),ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),ye.createElement("span",{style:{color:"#000000"}},(an==null?void 0:an.author_school_name)||"- -")),ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),ye.createElement("span",{style:{color:"#000000"}},(an==null?void 0:an.study_count)||"0"))),ye.createElement("a",{className:xn.shixunbutton,href:`/shixuns/${an==null?void 0:an.identifier}/challenges?exercise=true`,target:"_blank"},ye.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((an==null?void 0:an.question_type)<=4||[6,8].includes(an==null?void 0:an.question_type))&&ye.createElement("div",{className:xn.bottom},ye.createElement("div",{className:xn.bottomitem},ye.createElement("span",{className:xn.left},"\u89E3\u6790"),ye.createElement("span",{className:xn.right},an!=null&&an.analysis?ye.createElement(tt.Z,{value:an==null?void 0:an.analysis}):ye.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ye.createElement("div",{className:xn.bottomitem},ye.createElement("span",{className:xn.left},"\u96BE\u5EA6"),ye.createElement("span",{className:xn.right},(an==null?void 0:an.difficulty)===1?"\u7B80\u5355":(an==null?void 0:an.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ye.createElement("div",{className:xn.bottomitem},ye.createElement("span",{className:xn.left},"\u77E5\u8BC6\u70B9"),ye.createElement("span",{className:xn.right},an!=null&&an.tag_discipline?an==null?void 0:an.tag_discipline:ye.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Se=ve(86087),st=ve(84287),At=ve(16149),Ve=ve(61485),We=ve(59301),Ct=Object.defineProperty,bt=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,qt=(an,Jt,vn)=>Jt in an?Ct(an,Jt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):an[Jt]=vn,cn=(an,Jt)=>{for(var vn in Jt||(Jt={}))En.call(Jt,vn)&&qt(an,vn,Jt[vn]);if(Ht)for(var vn of Ht(Jt))An.call(Jt,vn)&&qt(an,vn,Jt[vn]);return an},qn=(an,Jt)=>bt(an,dt(Jt)),wn=(an,Jt,vn)=>new Promise((xt,wt)=>{var ze=ht=>{try{on(vn.next(ht))}catch(Qe){wt(Qe)}},Yt=ht=>{try{on(vn.throw(ht))}catch(Qe){wt(Qe)}},on=ht=>ht.done?xt(ht.value):Promise.resolve(ht.value).then(ze,Yt);on((vn=vn.apply(an,Jt)).next())});const vi=({setScoreShow:an,ScoreShow:Jt,onOk:vn,isshixuns:xt,isloadings:wt,dispatch:ze,selectedIds:Yt,user:on,virtualId:ht,shixunsDetail:Qe})=>{var _t;let[It,Fn]=(0,ye.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[Hn,ct]=(0,ye.useState)([]),[sn,Un]=(0,ye.useState)([]),[_n,Zt]=(0,ye.useState)([]),[rn,wi]=(0,ye.useState)([]);const[Ci,yi]=(0,ye.useState)(!1),[ci]=it.default.useForm(),[Pi,Mi]=(0,ye.useState)(),[ji,lr]=(0,ye.useState)(!1);let[nr,Nn]=(0,ye.useState)(xt);const[Pr,Tr]=(0,ye.useState)([]),[br,Cn]=(0,ye.useState)(0),[di,Ki]=(0,ye.useState)(!0),[ir,Yi]=(0,ye.useState)([]),[cr,Mr]=(0,ye.useState)([]),Di=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[Ui,Wi]=(0,ye.useState)([]),Dn=(0,ye.useRef)(new Set),Fr=(0,ye.useRef)(new Set),Ln=(0,ye.useRef)(1),fr=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Ur=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Cr=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Do,so]=(0,ye.useState)(!1),yr=()=>{ci.resetFields(),nr=!1,Nn(!1),so(!1),ci.submit()};(0,ye.useEffect)(()=>{Jt&&(ci.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),di&&nr&&(ci.setFieldsValue({item_type:"SHIXUN"}),It.item_type="SHIXUN",Fn(cn({},It)),Ki(!1)),It.type="0",Un(Yt),Zt(Yt),Fr.current=new Set(Yt),gr(It),hr(),Gr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Oi())},[Jt]),console.log(sn,_n,"listitems"),(0,ye.useEffect)(()=>{br>0&&setTimeout(()=>{Cn(0)},2e3)},[br]);function gr(tn){return wn(this,null,function*(){var bn,Xn,Kn;if(yi(!0),Fn(cn({},tn)),(_n==null?void 0:_n.length)<=0&&tn.type==="5"){wi([]),yi(!1);return}let Ei=tn.type==="5"?_n==null?void 0:_n.filter(zn=>!Pr.includes(zn)):null,vr=tn.type==="5"?_n==null?void 0:_n.filter(zn=>Pr.includes(zn)):null;Ln.current=Ln.current+1;const Ai=Ln.current;let Bi=yield(0,Tn.ZP)("/api/item_banks.json",{method:"get",params:qn(cn({},tn),{discipline_id:((bn=tn==null?void 0:tn.courseid)==null?void 0:bn[0])||null,sub_discipline_id:((Xn=tn==null?void 0:tn.courseid)==null?void 0:Xn[1])||null,ids:Ei,shixun_ids:vr,include_shixuns:!0,group_id:((Kn=tn.group_id)==null?void 0:Kn.map(zn=>zn==null?void 0:zn.value))||null,keyword:tn.keyword?encodeURIComponent(tn.keyword):tn.keyword,type:tn.type==="5"?null:tn.type,clazz:tn.type==="3"?"ItemBanksGroup":null})});Ln.current===Ai&&(wi(Bi),yi(!1))})}function hr(){return wn(this,null,function*(){let tn=yield(0,Tn.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:It.type==="5"?null:It.type,clazz:"ItemBanksGroup"}});ct((0,Gn.L)(tn==null?void 0:tn.disciplines))})}function Gr(tn){return wn(this,null,function*(){var bn;let Xn=yield(0,Tn.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:tn}),Kn=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(bn=Xn==null?void 0:Xn.data)==null?void 0:bn.map(Ei=>({title:Ei.name,id:Ei.id,pid:Ei.id,value:Ei.id,key:Ei.id,isLeaf:!Ei.have_child}))}];Yi(Kn)})}function Oi(){return wn(this,null,function*(){let tn=yield(0,At.Dm)({});(tn==null?void 0:tn.status)===0&&Mr(tn==null?void 0:tn.groups)})}function _e(tn){return wn(this,null,function*(){var bn,Xn,Kn,Ei;yi(!0);let vr=(bn=tn.list)==null?void 0:bn.filter(zn=>!Pr.includes(zn)),Ai=(Xn=tn.list)==null?void 0:Xn.filter(zn=>Pr.includes(zn));if(vr.length===0&&Ai.length===0){yi(!1),wi([]);return}let Bi=yield(0,Tn.ZP)("/api/item_banks.json",{method:"get",params:qn(cn({},tn),{discipline_id:((Kn=tn==null?void 0:tn.courseid)==null?void 0:Kn[0])||null,sub_discipline_id:((Ei=tn==null?void 0:tn.courseid)==null?void 0:Ei[1])||null,ids:vr,shixun_ids:Ai,type:tn.type==="5"?null:tn.type,clazz:tn.type==="3"?"ItemBanksGroup":null})});yi(!1),wi(Bi)})}const yt=tn=>wn(void 0,null,function*(){const bn=yield ze({type:"shixunsDetail/release",payload:{id:tn}});let Xn=bn==null?void 0:bn.tag_position,Kn=(bn==null?void 0:bn.evaluation_set_position)||[],Ei=bn.status;return Ei===0?(te.ZP.success("\u53D1\u5E03\u6210\u529F"),gr(It),!0):(Ei===2?te.ZP.error(`\u7B2C${Kn.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Ei===3?te.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Xn.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):te.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Bt=tn=>(tn==null?void 0:tn.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",ln=()=>Ci?"\u6682\u65E0\u6570\u636E":It.type==="3"&&!(cr!=null&&cr.length)?We.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",We.createElement("span",{onClick:()=>{var tn;return(0,me.xg)(`/users/${(tn=on==null?void 0:on.userInfo)==null?void 0:tn.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):It.type==="0"&&(rn==null?void 0:rn.items_count)===0&&!(It!=null&&It.tag_discipline_id)&&!(It!=null&&It.difficulty)&&!(It!=null&&It.keyword)&&!(It!=null&&It.group_id)&&!(It!=null&&It.difficulty)?We.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",We.createElement("span",{onClick:()=>{(0,me.xg)(`/problems/newcreate?&pageId=${ht}`),an(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",jn=(tn,bn,Xn)=>tn.map(Kn=>Kn.key===bn?cn(cn({},Kn),Xn):Kn.children?qn(cn({},Kn),{children:jn(Kn.children,bn,Xn)}):Kn),ri=tn=>wn(void 0,null,function*(){const{key:bn}=tn;let Xn=It.type;const Kn=yield(0,At.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(bn),type:Xn}),{data:Ei,total_count:vr}=Kn||{};vr>0&&Yi(Ai=>jn(Ai,bn,{children:Ei.map(Bi=>({title:Bi.name,id:Bi.id,pid:Bi.id,value:Bi.id,key:Bi.id,isLeaf:!Bi.have_child}))}))});return We.createElement("div",null,We.createElement(Et.default,{title:!1,footer:!1,open:Jt,width:1200,centered:!0,className:mt.scoremodal,onCancel:()=>{an(!1)}},We.createElement("div",{style:{display:"flex",alignItems:"center"}},We.createElement("div",{className:mt.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),We.createElement(Nt.default,{className:mt.tabWrap,activeKey:It.type,onChange:tn=>{tn==="3"?(It.show_all_share=!0,Gr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):It.show_all_share=null,tn==="0"&&Gr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),It.type=tn,It.page=1,It.updated_at="",It.quotes="",It.courseid="",It.tag_discipline_id=null,It.difficulty=null,It.keyword=null,It.group_id=null,It.teach_group_id=null,ci.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(It==null?void 0:It.item_type)==="SHIXUN"&&It.type!=="5"&&(nr=!0,Nn(!0)),so(!1),It.type==="5"&&(nr=!1,Nn(!1)),Fn(cn({},It)),gr(cn({},It)),hr()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:We.createElement("div",null,"\u5DF2\u9009",_n.length>0&&We.createElement("span",{className:mt.titlecount},_n.length),br>0&&We.createElement("span",{className:mt.add},"+",br)),key:"5"}]}),We.createElement(it.default,{layout:"inline",form:ci,onValuesChange:(tn,bn)=>{const Xn=Object.values(bn).some(Ei=>Ei!==null&&Ei!==""&&Ei!==void 0),Kn=bn.keyword==="";if(so(Xn||!Kn),It.page=1,(bn==null?void 0:bn.item_type)==="SHIXUN"){if(It.type==="5"?Nn(!1):Nn(!0),tn.keyword||tn.keyword==="")return;ci.submit()}else{if(tn!=null&&tn.courseid&&ci.setFieldsValue({tag_discipline_id:""}),Nn(!1),tn.keyword||tn.keyword==="")return;ci.submit()}},onFinish:tn=>{var bn;It.type==="3"&&(!tn.group_id||((bn=tn==null?void 0:tn.group_id)==null?void 0:bn.length)===0)?It.show_all_share=!0:It.show_all_share=null,Fn(cn(cn({},It),tn)),gr(cn(cn({},It),tn))}},We.createElement(it.default.Item,{name:"courseid"},We.createElement(en.Z,{className:mt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Hn})),!nr&&We.createElement(it.default.Item,{name:"tag_discipline_id"},We.createElement(nn.default,{className:mt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(_t=rn==null?void 0:rn.tag_disciplines)==null?void 0:_t.map(tn=>We.createElement(nn.default.Option,{key:tn.id},tn.name)))),We.createElement(it.default.Item,{name:nr?"diff":"difficulty"},We.createElement(nn.default,{className:mt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!nr&&fr.map(tn=>We.createElement(nn.default.Option,{key:tn.value},tn.name)),nr&&Ur.map(tn=>We.createElement(nn.default.Option,{key:tn.value},tn.name)))),nr&&We.createElement(it.default.Item,{name:"shixun_publish_status"},We.createElement(nn.default,{className:mt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Cr.map(tn=>We.createElement(nn.default.Option,{key:tn.value},tn.name)))),It.type==="3"&&!nr&&We.createElement(it.default.Item,{name:"teach_group_id"},We.createElement(nn.default,{className:mt.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(tn,bn)=>(console.log("---",tn,bn),bn.children.toUpperCase().indexOf(tn.toUpperCase())!==-1)},cr==null?void 0:cr.map(tn=>We.createElement(nn.default.Option,{key:tn.group_id},tn.name)))),(It.type==="3"||It.type==="0")&&!nr&&We.createElement(it.default.Item,{name:"group_id"},We.createElement(On.default,{treeDataSimpleMode:!0,style:{width:118},className:mt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(tn,bn)=>bn.title.toUpperCase().indexOf(tn.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:ri,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:ir})),Do&&We.createElement("span",{className:mt.allqingchu,onClick:yr},We.createElement("i",{className:"iconfont icon-guanbi4"}),We.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),We.createElement(it.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},We.createElement(et.default.Search,{className:mt.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:We.createElement("i",{className:`iconfont icon-sousuo9 font14 ${mt.searchIcon}`,onClick:()=>ci.submit()}),onSearch:tn=>{ci.submit()}}))),We.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},We.createElement("div",{onClick:()=>{It.updated_at==="asc"?It.updated_at="desc":It.updated_at="asc",Fn(qn(cn({},It),{page:1})),gr(qn(cn({},It),{page:1}))}}," ",It.updated_at?We.createElement("img",{src:It.updated_at==="asc"?Se.Z:st.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):We.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),We.createElement("div",{onClick:()=>{It.quotes==="asc"?It.quotes="desc":It.quotes="asc",Fn(qn(cn({},It),{page:1})),gr(qn(cn({},It),{page:1}))},style:{marginLeft:20}}," ",It.quotes?We.createElement("img",{src:It.quotes==="asc"?Se.Z:st.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):We.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),We.createElement(Ot.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(rn==null?void 0:rn.items)||(rn==null?void 0:rn.shixun_list),pagination:!1,locale:{emptyText:We.createElement(Ye.Z,{styles:{margin:"18px auto"},customText:ln()})},loading:Ci,rowKey:tn=>tn.id,rowSelection:{type:"checkbox",selectedRowKeys:sn,getCheckboxProps:tn=>({disabled:tn.shixun_tag_num===1}),onSelect(tn,bn,Xn){if(bn)nr&&Tr([...Pr,tn.id]),Un([...sn,tn.id]),Wi([...Ui,tn]),tn.identifier?Dn.current.add(tn.id):Fr.current.add(tn.id),Cn(1),Zt([..._n,tn.id]);else{const Kn=Ui.filter(Ai=>Ai.id!==tn.id);Wi(Kn);const Ei=Kn.map(Ai=>Ai.id);Un([...Ei]),tn.identifier?Dn.current.delete(tn.id):Fr.current.delete(tn.id);let vr=_n.filter(Ai=>Ai!==tn.id);if(Zt(vr),nr){let Ai=Pr.filter(Bi=>Bi!==tn.id);Tr([...Ai])}if(It.type==="5"){_e(qn(cn({},It),{list:[...vr]}));return}}},onSelectAll(tn,bn,Xn){if(tn){const Kn=Xn.map(Ei=>Ei.id);nr&&Tr([...Pr,...Kn]),Wi([...Ui,...Xn]),Un([...sn,...Kn]),Zt([..._n,...Kn]);for(const Ei of Xn)Ei.identifier?Dn.current.add(Ei.id):Fr.current.add(Ei.id)}else{const Kn=Xn.map(Ai=>Ai.id),Ei=sn.filter(Ai=>!Kn.some(Bi=>Bi===Ai)),vr=Ui.filter(Ai=>!Kn.some(Bi=>Bi===Ai.id));if(Wi(vr),Un([...Ei]),Zt([...Ei]),nr){let Ai=Pr.filter(Bi=>!Kn.some(zn=>zn===Bi.id));Tr([...Ai])}It.type==="5"&&_e(qn(cn({},It),{list:[...Ei]}));for(const Ai of Kn)Ai.identifier?Dn.current.delete(Ai):Fr.current.delete(Ai)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(tn,bn,Xn)=>{const Kn=`No.${tn}`;return We.createElement(Pt.Z,{title:Kn},We.createElement("span",null,Kn))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:nr?"30%":"60%",key:"name",render:(tn,bn,Xn)=>{var Kn;return We.createElement(Pt.Z,{title:Bt(bn)},We.createElement("span",null,We.createElement(tt.Z,{key:1,showLines:1,showTextOnly:!0,value:nr||bn!=null&&bn.challenge_names?bn!=null&&bn.title||tn===null?"--":tn:(bn==null?void 0:bn.item_type)=="BPROGRAM"?(Kn=bn==null?void 0:bn.program_attr)==null?void 0:Kn.description:tn})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(tn,bn,Xn)=>We.createElement(Pt.Z,{title:tn},We.createElement("span",null,tn||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!nr,render:(tn,bn,Xn)=>{var Kn;return We.createElement(Pt.Z,{title:Bt(bn)},We.createElement("span",null,tn?(Kn=tn==null?void 0:tn.split("\u3001"))==null?void 0:Kn[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!nr,render:(tn,bn,Xn)=>We.createElement(Pt.Z,{title:Bt(bn)},We.createElement("span",null,tn||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(tn,bn,Xn)=>{var Kn,Ei,vr,Ai;return We.createElement(Pt.Z,{title:Bt(bn)},We.createElement("div",null,nr||bn!=null&&bn.challenge_names?(bn==null?void 0:bn.level)||((Ei=(Kn=fr==null?void 0:fr.filter(Bi=>Bi.value===tn))==null?void 0:Kn[0])==null?void 0:Ei.name):(Ai=(vr=fr==null?void 0:fr.filter(Bi=>Bi.value===tn))==null?void 0:vr[0])==null?void 0:Ai.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!nr,render:(tn,bn,Xn)=>We.createElement(Pt.Z,{title:Bt(bn)},We.createElement("div",null,tn||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(tn,bn,Xn)=>We.createElement(Pt.Z,{title:Bt(bn)},We.createElement("div",null,nr||bn!=null&&bn.challenge_names?(bn==null?void 0:bn.study_count)||(bn==null?void 0:bn.stu_num):tn))},{title:We.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",We.createElement(Pt.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},We.createElement(Ve.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!nr,render:(tn,bn,Xn)=>We.createElement(Pt.Z,{title:Bt(bn)},We.createElement("div",null,tn||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(tn,bn,Xn)=>We.createElement(Pt.Z,{title:Bt(bn)},We.createElement("div",{style:{flex:1,textAlign:"start"}},We.createElement("a",{onClick:()=>{var Kn,Ei;Mi(qn(cn({},bn),{question_type:nr||bn!=null&&bn.challenge_names?5:(Ei=(Kn=Di==null?void 0:Di.filter(vr=>vr.value===(bn==null?void 0:bn.item_type)))==null?void 0:Kn[0])==null?void 0:Ei.question_type})),lr(!0)}},"\u67E5\u770B"),(bn==null?void 0:bn.shixun_tag_num)===1&&We.createElement("a",{style:{marginLeft:10},onClick:()=>{Et.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:We.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",We.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${bn==null?void 0:bn.identifier}/challenges`)}},(bn==null?void 0:bn.shixun_name)||"--"),"\uFF1F"),onOk:()=>wn(void 0,null,function*(){if(!yt(bn==null?void 0:bn.identifier))return new Promise((Kn,Ei)=>{Ei()})})})}},"\u53D1\u5E03")))}].filter(tn=>!tn.hidden)}),We.createElement(dn.Z,{current:It.page,total:(rn==null?void 0:rn.items_count)||(rn==null?void 0:rn.shixuns_count),style:{marginBottom:20},defaultPageSize:It.per_page,hideOnSinglePage:!(rn!=null&&rn.items_count),showTotal:tn=>We.createElement("span",null,"\u5171\xA0",We.createElement("span",{style:{color:"#165DFF"}},tn),"\xA0\u6761\u6570\u636E"),pageSize:It.per_page,onChange:(tn,bn)=>{It.page=tn,It.per_page=bn,Fn(cn({},It)),gr(cn({},It))}}),We.createElement("div",{className:mt.bottom},We.createElement(Tt.ZP,{className:mt.no,onClick:()=>{an(!1)}},"\u53D6\u6D88"),We.createElement(Tt.ZP,{loading:wt,style:{width:wt&&75},className:mt.yes,onClick:()=>wn(void 0,null,function*(){if((_n==null?void 0:_n.length)<=0){te.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}vn([...Fr.current],[...Dn.current],!0,_n==null?void 0:_n.length)})},"\u786E\u8BA4"))),We.createElement(Et.default,{open:ji,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:mt.previewModal,width:1e3,centered:!0,onCancel:()=>{lr(!1)},onOk:()=>{lr(!1)}},We.createElement(ke,{qitem:Pi})))};var ei=(0,Ce.connect)(({shixunsDetail:an,user:Jt})=>({shixunsDetail:an,user:Jt}))(vi),Li=ve(84677),Vi=ve(61186),zi=ve.n(Vi),Bn=ve(59301),rr=Object.defineProperty,Yr=Object.defineProperties,zr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Co=Object.prototype.propertyIsEnumerable,$r=(an,Jt,vn)=>Jt in an?rr(an,Jt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):an[Jt]=vn,sr=(an,Jt)=>{for(var vn in Jt||(Jt={}))Nr.call(Jt,vn)&&$r(an,vn,Jt[vn]);if(Zr)for(var vn of Zr(Jt))Co.call(Jt,vn)&&$r(an,vn,Jt[vn]);return an},Fo=(an,Jt)=>Yr(an,zr(Jt)),ti=(an,Jt)=>{var vn={};for(var xt in an)Nr.call(an,xt)&&Jt.indexOf(xt)<0&&(vn[xt]=an[xt]);if(an!=null&&Zr)for(var xt of Zr(an))Jt.indexOf(xt)<0&&Co.call(an,xt)&&(vn[xt]=an[xt]);return vn},Ae=(an,Jt,vn)=>new Promise((xt,wt)=>{var ze=ht=>{try{on(vn.next(ht))}catch(Qe){wt(Qe)}},Yt=ht=>{try{on(vn.throw(ht))}catch(Qe){wt(Qe)}},on=ht=>ht.done?xt(ht.value):Promise.resolve(ht.value).then(ze,Yt);on((vn=vn.apply(an,Jt)).next())});const $n=({title:an,icon:Jt,className:vn,style:xt,children:wt})=>Bn.createElement("div",{className:Rt()(Oe.card,vn),style:xt},Bn.createElement("div",{className:Oe.head},Bn.createElement("i",{className:Jt}),Bn.createElement("b",null,an)),Bn.createElement("div",{className:Oe.element},wt)),oi=an=>{var Jt=an,{value:vn,onChange:xt}=Jt,wt=ti(Jt,["value","onChange"]);return Bn.createElement(qe.Z,Fo(sr({},wt),{defaultValue:vn,onChange:xt}))},fn=({value:an=[],onChange:Jt,params:vn,className:xt})=>{const[wt,ze]=(0,ye.useState)(!1),[Yt,on]=(0,ye.useState)([]),[ht,Qe]=(0,ye.useState)(""),[_t,It]=(0,ye.useState)([]),[Fn,Hn]=(0,ye.useState)("");(0,ye.useEffect)(()=>{ct()},[]);function ct(){return Ae(this,null,function*(){let sn=yield(0,Tn.ZP)(`/api/courses/${vn==null?void 0:vn.coursesId}/teachers`,{method:"get",params:{homework_id:vn.categoryId,limit:1e3}});It((sn==null?void 0:sn.teacher_list)||[])})}return Bn.createElement(ye.Fragment,null,Bn.createElement("div",{className:Rt()(Oe.collaborator,xt)},an==null?void 0:an.map(sn=>Bn.createElement(De.Z,{align:"middle",className:`${Oe.btn} ${Fn==(sn==null?void 0:sn.user_id)?Oe.delBorder:""}`,key:sn.user_id},Bn.createElement("span",{className:"c-grey-333"},sn==null?void 0:sn.name),Bn.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${Oe.delSty}`,onMouseEnter:()=>{Hn(sn==null?void 0:sn.user_id)},onMouseLeave:()=>{Hn("")},onClick:()=>{const Un=an.filter(_n=>_n.user_id!==sn.user_id);on(Un.map(_n=>_n.user_id)),Jt(Un)}}))),Bn.createElement(Tt.ZP,{className:Oe.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>ze(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),Bn.createElement(Et.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:wt,onCancel:()=>ze(!1),onOk:()=>{const sn=_t.filter(Un=>Yt.includes(Un.user_id));Jt(sn),ze(!1)},afterClose:()=>{Qe("")}},Bn.createElement(De.Z,{align:"middle"},Bn.createElement("label",null,"\u59D3\u540D\uFF1A"),Bn.createElement(et.default.Search,{value:ht,size:"middle",style:{flex:1},onChange:sn=>Qe(sn.target.value)})),Bn.createElement(Ot.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:sn=>{on(sn)},selectedRowKeys:Yt,getCheckboxProps:sn=>({disabled:sn.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:_t.filter(sn=>sn.name.includes(ht)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var Zn=()=>{var an;const Jt=(0,Ce.useParams)(),vn=(0,Ce.useDispatch)(),[xt]=it.default.useForm(),wt=it.default.useWatch("hack_score_settings",xt),ze=it.default.useWatch("open_code",xt),Yt=it.default.useWatch("rank_forbidden",xt),on=it.default.useWatch("hack_analysis",xt),ht=it.default.useWatch("hack_answer",xt),[Qe,_t]=(0,ye.useState)([]),[It,Fn]=(0,ye.useState)({}),[Hn,ct]=(0,ye.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[sn,Un]=(0,ye.useState)(!0),[_n,Zt]=(0,ye.useState)(!1),[rn,wi]=(0,ye.useState)(!1),[Ci,yi]=(0,ye.useState)({}),[ci,Pi]=(0,ye.useState)(!1),[Mi,ji]=(0,ye.useState)(!1),lr=(0,ye.useRef)(!1),nr=(0,ye.useRef)(String(Math.random()).slice(-6)),Nn=(an=window.location.pathname)==null?void 0:an.includes("add");(0,ye.useEffect)(()=>(window.addEventListener("visibilitychange",Pr),()=>{window.removeEventListener("visibilitychange",Pr)}),[Qe,Ci]),(0,ye.useEffect)(()=>(vn({type:"globalSetting/footerToggle",payload:!1}),()=>{vn({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ye.useEffect)(()=>{Qe.length&&wt!==void 0&&ir()},[wt,JSON.stringify(Qe==null?void 0:Qe.map(Di=>Di.id+Di.hack_score))]),(0,ye.useEffect)(()=>{Tr(),Nn?Un(!1):br()},[]);const Pr=()=>Ae(void 0,null,function*(){var Di;if(document.visibilityState==="visible"){ji(!0);let Ui=Qe.map(Fr=>Fr.id),Wi=localStorage.getItem(nr.current);Wi&&(Wi=JSON.parse(Wi),Wi=Array.isArray(Wi)?Wi:[],Ui=[...Ui,...Wi],localStorage.removeItem(nr.current));const Dn=yield(0,Tn.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:Ui.length?Ui:-1,homework_common_id:Nn?null:Ci==null?void 0:Ci.homework_id}});if(Dn!=null&&Dn.items){const Fr=(Di=Dn==null?void 0:Dn.items)==null?void 0:Di.map(Ln=>{const fr=Qe.find(Ur=>Ur.id===Ln.id);return fr?Fo(sr({},Ln),{hack_score:fr.hack_score}):Ln});_t(Fr)}ji(!1)}}),Tr=()=>Ae(void 0,null,function*(){const Di=yield(0,Tn.ZP)(`/api/courses/${Jt.coursesId}/homework_commons/new.json`,{method:"get",params:{category:Jt==null?void 0:Jt.categoryId,type:5}});Di!=null&&Di.course_name&&Fn(Di)}),br=()=>Ae(void 0,null,function*(){var Di,Ui;const Wi=yield(0,Tn.ZP)(`/api/homework_commons/${Jt==null?void 0:Jt.categoryId}/edit_hack.json`,{method:"get"});if((Wi==null?void 0:Wi.status)===0){const Dn=(Di=Wi==null?void 0:Wi.collaborators_data)==null?void 0:Di.map(Ln=>({user_id:Ln.id,name:Ln.real_name}));xt.setFieldsValue(Fo(sr({},Wi),{user_ids:Dn,rank_forbidden_start:Wi!=null&&Wi.rank_forbidden_start?zi()(Wi==null?void 0:Wi.rank_forbidden_start):"",rank_forbidden_end:Wi!=null&&Wi.rank_forbidden_end?zi()(Wi==null?void 0:Wi.rank_forbidden_end):""}));const Fr=(Ui=Wi==null?void 0:Wi.items)==null?void 0:Ui.map((Ln,fr)=>{var Ur,Cr;return Fo(sr({},Ln),{hack_score:(Cr=(Ur=Wi==null?void 0:Wi.hack_settings)==null?void 0:Ur[fr])==null?void 0:Cr.hack_score})});_t(Fr||[]),yi(sr({},Wi))}Un(!1)}),Cn=()=>{let Di=`/classrooms/${Jt==null?void 0:Jt.coursesId}/program_homework`;return Nn||(Di=`/classrooms/${Jt==null?void 0:Jt.coursesId}/program_homework/${Jt==null?void 0:Jt.categoryId}/detail`),Di},di=[{name:(It==null?void 0:It.course_name)||"",path:`/classrooms/${It==null?void 0:It.course_id}/program_homework`},{name:Nn?"\u7F16\u7A0B\u4F5C\u4E1A":Ci==null?void 0:Ci.name,path:Cn()},{name:(Nn?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],Ki=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(Di,Ui,Wi)=>Wi+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:Di=>Bn.createElement(Pt.Z,{placement:"topLeft",title:Di},Bn.createElement("span",null,Di||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(Di,Ui,Wi)=>Bn.createElement(Me.Z,{disabled:wt!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:Di,onChange:Dn=>{Qe[Wi].hack_score=Dn;const Fr=Qe.reduce((Ln,fr)=>Ln+Number(fr.hack_score||0),0);xt.setFieldsValue({total_score:Fr.toFixed(2)}),_t([...Qe])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:Di=>Bn.createElement("span",null,Di===1?"\u7B80\u5355":Di===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:Di=>Bn.createElement(Pt.Z,{placement:"topLeft",title:Di},Bn.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},Di||"--"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes"},{title:"\u64CD\u4F5C",dataIndex:"action",width:146,render:(Di,Ui)=>Bn.createElement("span",null,Bn.createElement("span",{onClick:()=>Ae(void 0,null,function*(){var Wi;vn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let Dn=yield(0,Tn.ZP)(`/api/problems/${(Wi=Ui==null?void 0:Ui.program_attr)==null?void 0:Wi.identifier}/start.json`,{method:"get"});(Dn==null?void 0:Dn.status)===0&&(0,me.xg)(`/myproblems/${Dn==null?void 0:Dn.identifier}?type=1&pageId=edit&backUrl=${Cn()}`),vn({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),Bn.createElement("span",{onClick:()=>{var Wi;return(0,me.xg)(`/problems/newedit/${(Wi=Ui==null?void 0:Ui.program_attr)==null?void 0:Wi.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),Bn.createElement("span",{onClick:()=>{const Wi=Qe.filter(Dn=>Dn.id!==Ui.id);_t(Wi),te.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],ir=()=>{const Di=[...Qe],Ui=xt.getFieldValue("total_score"),Wi=Di==null?void 0:Di.length;let Dn=0,Fr;switch(wt){case 0:const Ln=(Ui/Wi).toFixed(2);Di.map((hr,Gr)=>{Dn=Gr,hr.hack_score=Ln>0?Ln:0}),Fr=(Ui-Ln*(Wi-1)).toFixed(2),Di[Dn].hack_score=Fr>0?Fr:0;break;case 1:const fr=[0,1,3,6];let Ur=0;const Cr=Di.filter(hr=>hr.difficulty===1).length*fr[1],Do=Di.filter(hr=>hr.difficulty===2).length*fr[2],so=Di.filter(hr=>hr.difficulty===3).length*fr[3],yr=Ui/(Cr+Do+so);Di.map((hr,Gr)=>{Dn=Gr,hr.hack_score=(fr[hr.difficulty]*yr).toFixed(2),Ur=Ur+Number(hr.hack_score)});let gr=Di[Dn].hack_score;Fr=(Ui-Ur+Number(gr)).toFixed(2),Di[Dn].hack_score=Fr>0?Fr:0;break}_t(Di)},Yi=Di=>{lr.current=Di,xt.submit()},cr=Di=>Ae(void 0,null,function*(){var Ui;if(!Qe.length){te.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),xt.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}Pi(!0);const Wi=[],Dn=Qe.map(fr=>(Wi.push(fr.hack_id),{hack_id:fr.hack_id,hack_name:fr.name,hack_score:fr.hack_score,difficult:fr.difficulty})),Fr=(Ui=Di==null?void 0:Di.user_ids)==null?void 0:Ui.map(fr=>fr.user_id),Ln=yield(0,Tn.ZP)(`/api/courses/${Jt.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:Fo(sr({},Di),{category:Nn?Number(Jt==null?void 0:Jt.categoryId):null,homework_id:Nn?null:Ci==null?void 0:Ci.homework_id,hack_settings:Dn,user_ids:Fr,hack_ids:Wi})});if((Ln==null?void 0:Ln.status)===0)if(te.ZP.success("\u4FDD\u5B58\u6210\u529F"),lr.current){const fr=sr({},Ln);ct(fr),vn({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[Ln==null?void 0:Ln.id],selectArrsAll:[fr],params:Jt,detail:!0,type:2,manage_all_group:fr==null?void 0:fr.manage_all_group}})}else Ce.history.push(`/classrooms/${Jt.coursesId}/program_homework/${Ln==null?void 0:Ln.id}/detail`);Pi(!1)}),Mr=Di=>Ae(void 0,null,function*(){if(!Di.length){te.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(Di.length>200){te.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const Ui=[],Wi=Qe.map(Ln=>{var fr;return(fr=Ln.program_attr)==null?void 0:fr.origin_item_bank_id}),Dn=[];Di.forEach(Ln=>{if(Wi.includes(Ln)){const fr=Qe.find(Ur=>{var Cr;return((Cr=Ur.program_attr)==null?void 0:Cr.origin_item_bank_id)===Ln});Dn.push(fr)}else Ui.push(Ln)}),wi(!0);const Fr=yield(0,Tn.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:Ui}});if(Fr!=null&&Fr.items){const Ln=[...Dn,...Fr==null?void 0:Fr.items];if(wt===2){const fr=Ln.reduce((Ur,Cr)=>Ur+Number(Cr.hack_score||0),0);xt.setFieldsValue({total_score:fr.toFixed(2)})}_t(Ln),Zt(!1)}wi(!1)});return Bn.createElement("div",{className:Oe.wrap},Bn.createElement(ne.Z,{spinning:sn},Bn.createElement("div",{className:Oe.center},Bn.createElement($e._b,{dataSource:di,className:"mb20"}),Bn.createElement(it.default,{form:xt,preserve:!1,onValuesChange:Di=>{"total_score"in Di&&ir()},onFinishFailed:Di=>Ae(void 0,null,function*(){var Ui,Wi;te.ZP.error(Di.errorFields[0].errors[0]),xt.scrollToField((Wi=(Ui=Di==null?void 0:Di.errorFields)==null?void 0:Ui[0])==null?void 0:Wi.name,{behavior:"smooth",block:"center"})}),onFinish:cr,colon:!1,size:"large"},Bn.createElement($n,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},Bn.createElement(it.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"},{whitespace:!0,message:"\u4F5C\u4E1A\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},Bn.createElement(et.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),Bn.createElement(it.default.Item,{labelCol:{flex:"81px"},label:"\u4F5C\u4E1A\u8BF4\u660E",name:"description",initialValue:"",rules:[{max:5e4,message:"\u4F5C\u4E1A\u8BF4\u660E\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26"}]},Bn.createElement(oi,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),Bn.createElement($n,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},Bn.createElement(it.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},Bn.createElement(ce.default.Group,null,Bn.createElement(ce.default,{value:"c"},"C\u8BED\u8A00"),Bn.createElement(ce.default,{value:"c++"},"C++\u8BED\u8A00"),Bn.createElement(ce.default,{value:"java"},"Java\u8BED\u8A00"),Bn.createElement(ce.default,{value:"python"},"Python\u8BED\u8A00"))),Bn.createElement(De.Z,{align:"middle"},Bn.createElement(it.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},Bn.createElement(Me.Z,{precision:1,disabled:wt===2,min:0,style:{width:223},addonAfter:"\u5206"})),Bn.createElement(it.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},Bn.createElement(Me.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),Bn.createElement(it.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},Bn.createElement(se.ZP.Group,null,Bn.createElement(se.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),Bn.createElement(se.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),Bn.createElement(se.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),Bn.createElement(De.Z,{align:"middle"},Bn.createElement("span",null,"\u9898\u76EE\u5217\u8868"),Bn.createElement(Tt.ZP,{onClick:()=>Zt(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),Bn.createElement(Tt.ZP,{onClick:()=>(0,me.xg)(`/problems/newcreate?pageId=${nr.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),Bn.createElement("div",{className:Oe.tip},Bn.createElement("i",{className:"iconfont icon-tishi12 mr5 font14"}),"\u63D0\u793A\uFF1A\u53EF\u4EE5\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u5BF9\u8BE5\u8BD5\u9898\u7684\u6D4B\u8BD5\u7528\u4F8B/\u521D\u59CB\u4EE3\u7801\u8FDB\u884C\u4FEE\u6539\uFF0C\u4FEE\u6539\u7684\u5185\u5BB9\u5E76\u4E0D\u4F1A\u540C\u6B65\u5230\u8BD5\u9898\u5E93"),Bn.createElement(it.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},Bn.createElement(mn,{dataSource:Qe,setDataSource:_t,columns:Ki,loading:Mi}))),Bn.createElement($n,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},Bn.createElement("div",{className:Oe.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),Bn.createElement("div",{className:`${Oe.content} mb30`},Bn.createElement(it.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},Bn.createElement(se.ZP.Group,null,Bn.createElement(se.ZP,{value:0},Bn.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),Bn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),Bn.createElement(se.ZP,{style:{marginLeft:40},value:1},Bn.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),Bn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),Bn.createElement("div",{className:`${Oe.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),Bn.createElement("div",{className:Oe.content},Bn.createElement(it.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},Bn.createElement(ce.default,null,Bn.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),Bn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\uFF0C\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801\uFF0C\u5426\u5219\u53EA\u5C55\u793A\u5728\u4F5C\u4E1A\u65F6\u95F4\u8303\u56F4\u5185\u63D0\u4EA4\u7684\u4EE3\u7801\uFF09")))),Bn.createElement("div",{className:`${Oe.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),Bn.createElement("div",{className:Oe.content},Bn.createElement(it.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},Bn.createElement(ce.default,null,Bn.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),Bn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\u5B66\u751F\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u53EF\u67E5\u770B\u5176\u4ED6\u5B66\u751F\u7684\u6210\u7EE9\uFF09"))),Bn.createElement(it.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},Bn.createElement(ce.default,null,Bn.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),Bn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u53EF\u5728\u6392\u884C\u699C\u4E2D\u67E5\u770B\u4ED6\u4EBA\u8BD5\u9898\u901A\u8FC7\u4EE3\u7801\u8BE6\u60C5\uFF09"))),!!ze&&Bn.createElement(it.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},Bn.createElement(se.ZP.Group,null,Bn.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Bn.createElement(se.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),Bn.createElement(it.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},Bn.createElement(ce.default,null,Bn.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),Bn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u4E0D\u53EF\u67E5\u770B\u6392\u884C\u699C\u4FE1\u606F\u7684\u65F6\u95F4\u6BB5\uFF09"))),!!Yt&&Bn.createElement(De.Z,{align:"middle",className:"ml25"},Bn.createElement(it.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"rank_forbidden_start",initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},Bn.createElement(ge.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:me.Q8,disabledTime:me.d0})),Bn.createElement(it.default.Item,{label:"\u622A\u6B62\u65F6\u95F4",name:"rank_forbidden_end",style:{marginLeft:40},initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},Bn.createElement(ge.default,{style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",disabledDate:me.Q8,disabledTime:me.d0}))),Bn.createElement(it.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},Bn.createElement(ce.default,null,Bn.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),Bn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u89E3\u6790\uFF09"))),!!on&&Bn.createElement(it.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},Bn.createElement(se.ZP.Group,null,Bn.createElement(se.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Bn.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),Bn.createElement(se.ZP,{style:{marginLeft:60},value:1},"\u5B66\u751F\u901A\u8FC7\u7B54\u9898\u540E/\u672A\u901A\u8FC7\u7684\u5B66\u751F\u4F5C\u4E1A\u622A\u6B62\u540E"))),Bn.createElement(it.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},Bn.createElement(ce.default,null,Bn.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),Bn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!ht&&Bn.createElement(it.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},Bn.createElement(se.ZP.Group,null,Bn.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Bn.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),Bn.createElement("div",{className:`${Oe.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),Bn.createElement(it.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},Bn.createElement(fn,{params:Jt}))))),Bn.createElement("div",{className:Oe.fixedBtns},Bn.createElement(De.Z,{align:"middle",className:Oe.center},Bn.createElement(Tt.ZP,{onClick:()=>Ce.history.push(Cn()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),Bn.createElement(Tt.ZP,{loading:ci&&!lr.current,disabled:ci&&lr.current,onClick:()=>Yi(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),Bn.createElement(Tt.ZP,{loading:ci&&lr.current,disabled:ci&&!lr.current,onClick:()=>Yi(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),Bn.createElement(ei,{setScoreShow:Zt,isshixuns:!1,ScoreShow:_n,virtualId:nr.current,isloadings:rn,onOk:Mr,selectedIds:Qe.map(Di=>{var Ui;return(Ui=Di.program_attr)==null?void 0:Ui.origin_item_bank_id})||[]}),Bn.createElement(Li.Z,{courseEndTime:Hn==null?void 0:Hn.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${Jt==null?void 0:Jt.coursesId}/program_homework/${Hn==null?void 0:Hn.id}/detail`}}))}},84677:function(Rn,Mn,ve){"use strict";var ye=ve(59301),Oe=ve(78241),He=ve(8591),Rt=ve(43418),$e=ve(95237),qe=ve(5112),De=ve(5871),Tt=ve(43604),Et=ve(5083),et=ve(24905),Ot=ve(61186),it=ve.n(Ot),Pt=ve(99064),Me=ve(24065),te=ve(955),ne=ve(89070),ce=ve(59437),se=ve(92365),ge=ve(79834),me=ve(59301),Ce=Object.defineProperty,Fe=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Ye=(zt,jt,Mt)=>jt in zt?Ce(zt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):zt[jt]=Mt,pt=(zt,jt)=>{for(var Mt in jt||(jt={}))Ge.call(jt,Mt)&&Ye(zt,Mt,jt[Mt]);if(Ie)for(var Mt of Ie(jt))Ke.call(jt,Mt)&&Ye(zt,Mt,jt[Mt]);return zt},Je=(zt,jt)=>Fe(zt,Pe(jt)),kt=(zt,jt)=>{var Mt={};for(var Ut in zt)Ge.call(zt,Ut)&&jt.indexOf(Ut)<0&&(Mt[Ut]=zt[Ut]);if(zt!=null&&Ie)for(var Ut of Ie(zt))jt.indexOf(Ut)<0&&Ke.call(zt,Ut)&&(Mt[Ut]=zt[Ut]);return Mt},Xe=(zt,jt,Mt)=>new Promise((Ut,ft)=>{var Re=mn=>{try{yn(Mt.next(mn))}catch(Nt){ft(Nt)}},Lt=mn=>{try{yn(Mt.throw(mn))}catch(Nt){ft(Nt)}},yn=mn=>mn.done?Ut(mn.value):Promise.resolve(mn.value).then(Re,Lt);yn((Mt=Mt.apply(zt,jt)).next())});const Wt=zt=>{var jt=zt,{classroomList:Mt,dispatch:Ut,courseEndTime:ft,onWindowBack:Re}=jt,Lt=kt(jt,["classroomList","dispatch","courseEndTime","onWindowBack"]),yn,mn,Nt,en,nn,On,dn,Tn,mt,Gn,xn,tt,Ee,we,Be,ke,Se,st,At,Ve,We,Ct,bt,dt,Ht,En,An,qt,cn,qn,wn,vi,ei,Li,Vi,zi,Bn,rr,Yr;const zr=(0,ne.useParams)(),[Zr]=Oe.default.useForm(),[Nr,Co]=(0,ye.useState)(1),[$r,sr]=(0,ye.useState)([]),[Fo,ti]=(0,ye.useState)(0),[Ae,$n]=(0,ye.useState)(2e3),[oi,fn]=(0,ye.useState)(!0),[Qn,Zn]=(0,ye.useState)(!1),[an,Jt]=(0,ye.useState)(!1),[vn,xt]=(0,ye.useState)([]),[wt,ze]=(0,ye.useState)(!0),[Yt,on]=(0,ye.useState)(!((Nt=(mn=(yn=Mt.actionTabs)==null?void 0:yn.selectArrsAll)==null?void 0:mn[0])!=null&&Nt.send_type));let[ht,Qe]=(0,ye.useState)([0,0,0]);(0,ye.useEffect)(()=>{var _n,Zt,rn,wi,Ci,yi,ci,Pi,Mi,ji,lr,nr,Nn;if(Mt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(Hn(),(rn=(Zt=(_n=Mt.actionTabs)==null?void 0:_n.selectArrsAll)==null?void 0:Zt[0])!=null&&rn.can_publish?Qe([...(Mi=(Pi=(ci=Mt.actionTabs)==null?void 0:ci.selectArrsAll)==null?void 0:Pi[0])==null?void 0:Mi.difficult_count]):Qe([...(yi=(Ci=(wi=Mt.actionTabs)==null?void 0:wi.selectArrsAll)==null?void 0:Ci[0])==null?void 0:yi.difficult_settings]),on(!((nr=(lr=(ji=Mt.actionTabs)==null?void 0:ji.selectArrsAll)==null?void 0:lr[0])!=null&&nr.send_type)),_t(),Mt.actionTabs.type===2){const Pr=(Nn=Mt.actionTabs.selectArrsAll)==null?void 0:Nn[0];ze(Pr.unified_setting)}else ze(!1)},[Mt.actionTabs]),(0,ye.useEffect)(()=>{if(Qn){if(an)return;Ut({type:"classroomList/setActionTabs",payload:{}}),(0,Me.GJ)()?(Ut({type:"classroomList/getClassroomTeacherCommonList",payload:Je(pt({},Mt.actionTabs.params),{type:1})}),Ut({type:"shixunHomeworks/getWorkList",payload:pt({},zr)})):Ut({type:"classroomList/getClassroomCommonList",payload:pt({},Mt.actionTabs.params)})}},[Qn]);const _t=_n=>Xe(void 0,null,function*(){fn(!0);const Zt=yield(0,se.c_)(Je(pt({},zr),{page:_n||Nr,limit:2e4,homework_id:Mt.actionTabs.type===1?"":Mt.actionTabs.selectArrs[0]}));Zt==null||Zt.course_groups.map((rn,wi)=>{rn.key=rn.id,rn.title=rn.name,rn.disabled=rn.is_published}),Zt&&(sr([...Zt==null?void 0:Zt.course_groups]),ti(Zt==null?void 0:Zt.course_groups_count),fn(!1),_n||Zr.setFieldsValue({publish_time:it()(it()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:it()(it()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),It=()=>{(0,Me.GJ)()?Mt.actionTabs.detail?(Ut({type:"shixunHomeworks/setActionTabs",payload:{}}),Ut({type:"shixunHomeworks/getWorkList",payload:pt({},zr)}),Ut({type:"shixunHomeworks/getWorkSetting",payload:pt({},zr)})):Ut({type:"classroomList/getClassroomTeacherCommonList",payload:Je(pt({},Mt.actionTabs.params),{type:5,category:Mt.actionTabs.params.categoryId})}):Ut({type:"classroomList/getClassroomCommonList",payload:pt({},Mt.actionTabs.params)})},Fn=()=>Xe(void 0,null,function*(){var _n,Zt;if((0,Me.Rm)()&&!((_n=Mt.AssistantObject.hack)!=null&&_n.can_publish)){He.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),Un(!1);return}const rn=pt({},Zr.getFieldsValue());if(rn.end_time<=rn.publish_time){He.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Un(!1);return}if((vn==null?void 0:vn.length)<=0&&!wt&&$r.length>0){He.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Un(!1);return}if(ht.reduce((yi,ci)=>yi+ci)===0&&!Yt){He.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Un(!1);return}let wi={homework_ids:[...Mt.actionTabs.selectArrs],group_ids:vn.length>0?vn.map(yi=>yi.id):(Zt=Mt.detailCommonHomeworksList)==null?void 0:Zt.course_groups,end_time:it()(rn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:it()(rn.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:ht==null?void 0:ht.map(yi=>yi),send_type:Yt?"0":"1",unified_setting:!vn.length};if(Un(!0),(yield(0,Pt.ZP)(`/api/courses/${zr.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:pt({},wi)})).status===0){if(Un(!1),(0,te.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),He.ZP.success("\u53D1\u5E03\u6210\u529F"),Ut({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Re){Re();return}Lt.onCallback&&Lt.onCallback(),It(),localStorage.getItem("Noviceguide")==="0"||Ut({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:me.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}})}else Un(!1)}),Hn=()=>{Co(1),sr([]),xt([])},ct=Fo>Nr*Ae,[sn,Un]=(0,ye.useState)(!1);return me.createElement(Rt.default,{width:600,confirmLoading:sn,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:Mt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Fn,onCancel:()=>{if(Hn(),Ut({type:"classroomList/setActionTabs",payload:{}}),Re){Re();return}It()}},me.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",me.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),$r&&me.createElement(Oe.default,{form:Zr},me.createElement("div",{style:{paddingLeft:0}},Mt.actionTabs.type===2&&me.createElement($e.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),me.createElement(qe.ZP.Group,{value:Yt,disabled:!((On=(nn=(en=Mt.actionTabs)==null?void 0:en.selectArrsAll)==null?void 0:nn[0])!=null&&On.can_publish),onChange:_n=>{on(_n.target.value)}},me.createElement(qe.ZP,{value:!0},"\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"),me.createElement(qe.ZP,{className:"ml20",value:!1},"\u968F\u673A\u62BD\u53D6"))),!Yt&&me.createElement($e.Z,{style:{marginBottom:"10px"}},me.createElement("span",{style:{marginRight:65}}),me.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",me.createElement(De.Z,{value:ht[0],onChange:_n=>{ht[0]=_n,Qe([...ht])},min:0,disabled:!((mt=(Tn=(dn=Mt.actionTabs)==null?void 0:dn.selectArrsAll)==null?void 0:Tn[0])!=null&&mt.can_publish),placeholder:`\u6700\u5927${(Ee=(tt=(xn=(Gn=Mt.actionTabs)==null?void 0:Gn.selectArrsAll)==null?void 0:xn[0])==null?void 0:tt.difficult_count)==null?void 0:Ee[0]}`,max:(Se=(ke=(Be=(we=Mt.actionTabs)==null?void 0:we.selectArrsAll)==null?void 0:Be[0])==null?void 0:ke.difficult_count)==null?void 0:Se[0],style:{width:60}})),me.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",me.createElement(De.Z,{value:ht[1],onChange:_n=>{ht[1]=_n,Qe([...ht])},min:0,disabled:!((Ve=(At=(st=Mt.actionTabs)==null?void 0:st.selectArrsAll)==null?void 0:At[0])!=null&&Ve.can_publish),max:(dt=(bt=(Ct=(We=Mt.actionTabs)==null?void 0:We.selectArrsAll)==null?void 0:Ct[0])==null?void 0:bt.difficult_count)==null?void 0:dt[1],placeholder:`\u6700\u5927${(qt=(An=(En=(Ht=Mt.actionTabs)==null?void 0:Ht.selectArrsAll)==null?void 0:En[0])==null?void 0:An.difficult_count)==null?void 0:qt[1]}`,style:{width:60}})),me.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",me.createElement(De.Z,{value:ht[2],onChange:_n=>{ht[2]=_n,Qe([...ht])},min:0,disabled:!((wn=(qn=(cn=Mt.actionTabs)==null?void 0:cn.selectArrsAll)==null?void 0:qn[0])!=null&&wn.can_publish),placeholder:`\u6700\u5927${(Vi=(Li=(ei=(vi=Mt.actionTabs)==null?void 0:vi.selectArrsAll)==null?void 0:ei[0])==null?void 0:Li.difficult_count)==null?void 0:Vi[2]}`,max:(Yr=(rr=(Bn=(zi=Mt.actionTabs)==null?void 0:zi.selectArrsAll)==null?void 0:Bn[0])==null?void 0:rr.difficult_count)==null?void 0:Yr[2],style:{width:60}}))),me.createElement($e.Z,{className:"mt30",align:"middle"},me.createElement(Tt.Z,null,me.createElement(Oe.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},me.createElement(Et.default,{style:{width:170,marginRight:"25px"},disabledDate:_n=>(0,ge.Q8)(_n,ft),disabledTime:_n=>(0,ge.d0)(_n),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:it()((0,te.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),me.createElement(Tt.Z,{className:"ml20"},me.createElement(Oe.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},me.createElement(Et.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:it()((0,te.U6)(),"HH:mm")},disabledDate:_n=>(0,ge.Q8)(_n,ft,Zr.getFieldValue("publish_time")),disabledTime:_n=>(0,ge.d0)(_n,Zr.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),Mt.actionTabs.type===2&&me.createElement($e.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),me.createElement(qe.ZP.Group,{value:wt,onChange:_n=>{ze(_n.target.value),xt([])}},me.createElement(qe.ZP,{value:!0,disabled:!Mt.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),me.createElement(qe.ZP,{className:"ml20",disabled:$r.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),$r.length<=0&&Mt.actionTabs.type===2&&me.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(Mt.actionTabs.type===1||!wt)&&$r.length>0&&me.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},me.createElement("span",{style:{flex:1}},me.createElement(et.default,{checked:vn.length===$r.length,onChange:_n=>{vn.length===$r.length?xt([]):xt($r.filter(Zt=>!Zt.is_published))}},"\u5168\u9009")," "),me.createElement("span",{style:{width:16}}),me.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",vn.length||0,"\u4E2A\u5206\u73ED")),(Mt.actionTabs.type===1||!wt)&&$r.length>0&&me.createElement(ce.Z,{data:$r,selectedRowKeys:vn,setSelectedRowKeys:xt})))};Mn.Z=(0,ne.connect)(({classroomList:zt})=>({classroomList:zt}))(Wt)},79834:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Q8:function(){return Re},d0:function(){return Lt},w6:function(){return ft}});var ye=ve(59301),Oe=ve(5083),He=ve(57809),Rt=ve(8591),$e=ve(43418),qe=ve(5112),De=ve(95237),Tt=ve(43604),Et=ve(6848),et=ve(24905),Ot=ve(3113),it=ve(61186),Pt=ve.n(it),Me=ve(24065),te=ve(99064),ne=ve(89392),ce=ve.n(ne),se=ve(955),ge=ve(24990),me=ve(89070),Ce=ve(40731),Fe=ve(46474),Pe=ve(38233),Ie=ve(82438),Ge=ve(49692),Ke=ve(59301),Ye=Object.defineProperty,pt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,zt=(nn,On,dn)=>On in nn?Ye(nn,On,{enumerable:!0,configurable:!0,writable:!0,value:dn}):nn[On]=dn,jt=(nn,On)=>{for(var dn in On||(On={}))Xe.call(On,dn)&&zt(nn,dn,On[dn]);if(kt)for(var dn of kt(On))Wt.call(On,dn)&&zt(nn,dn,On[dn]);return nn},Mt=(nn,On)=>pt(nn,Je(On)),Ut=(nn,On,dn)=>new Promise((Tn,mt)=>{var Gn=Ee=>{try{tt(dn.next(Ee))}catch(we){mt(we)}},xn=Ee=>{try{tt(dn.throw(Ee))}catch(we){mt(we)}},tt=Ee=>Ee.done?Tn(Ee.value):Promise.resolve(Ee.value).then(Gn,xn);tt((dn=dn.apply(nn,On)).next())});function ft(nn,On){const dn=[];for(let Tn=nn;Tn<On;Tn++)dn.push(Tn);return dn}const Re=(nn,On,dn)=>{const Tn=nn<Pt()().startOf("day"),mt=nn>Pt()(On).endOf("day"),Gn=nn<Pt()(dn).startOf("day");return On?dn?Pt()()<=Pt()(dn)?Gn||mt:Tn||mt:nn&&Tn||mt:dn&&Pt()()<=Pt()(dn)?Gn:Tn},Lt=(nn,On)=>{const dn=parseInt(Pt()(nn).format("HH")),Tn=parseInt(Pt()().format("HH")),mt=parseInt(Pt()().format("mm"));if(!nn)return{disabledHours:()=>ft(0,Tn),disabledMinutes:()=>ft(0,mt)};if(On){const Gn=parseInt(Pt()(On).format("HH")),xn=parseInt(Pt()(On).format("mm"));return Pt()(nn).isSame(Pt()(On),"day")?{disabledHours:()=>ft(0,Gn),disabledMinutes:()=>dn<=Gn?ft(0,xn):[]}:void 0}if(Pt()(nn).isSame(Pt()(),"day"))return{disabledHours:()=>ft(0,Tn),disabledMinutes:()=>Pt()(nn).isSame(Pt()(),"hour")&&dn<=Tn?ft(0,mt):[]}},yn=(nn,On)=>nn==null?void 0:nn.map(dn=>{var Tn;return(Tn=On==null?void 0:On.find(mt=>mt.value===dn))==null?void 0:Tn.id}),{RangePicker:mn}=Oe.default,{Option:Nt}=He.default,en=({shixunHomeworks:nn,loading:On,dispatch:dn,classroomList:Tn,user:mt})=>{var Gn,xn,tt,Ee,we,Be,ke,Se,st;const At=(0,me.useParams)(),{workSetting:Ve,workList:We,shixunWorkList:Ct,headerInfo:bt,changeData:dt}=nn,[Ht,En]=(0,ye.useState)(!1),[An,qt]=(0,ye.useState)(!1);let[cn,qn]=(0,ye.useState)([]),[wn,vi]=(0,ye.useState)([]),[ei,Li]=(0,ye.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Ce.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Vi,zi]=(0,ye.useState)({}),[Bn,rr]=(0,ye.useState)({});(0,ye.useEffect)(()=>()=>{qn([])},[]),(0,ye.useEffect)(()=>{En(!(0,Me.GJ)())},[(0,Me.GJ)()]);const Yr=()=>{dn({type:"shixunHomeworks/getWorkSetting",payload:jt({},At)})};(0,ye.useEffect)(()=>{if(!(Ve!=null&&Ve.course_id))return;Object.keys(ei).map(function(oi){ei[oi]=Ve[oi]}),(!ei.allow_late||!ei.unified_late)&&(ei.late_penalty=20,ei.penalty_type=Ce.Q.Percent),ei.unified_setting||(ei.unified_late=!1,ei.unified_anonymous_comment=!1,ei.unified_anonymous_appeal=!1),cn=JSON.parse(JSON.stringify(Ve.group_settings.map(oi=>Mt(jt({},oi),{group_name:[oi.group_name]})).filter(oi=>oi.publish_time!==null))),wn=JSON.parse(JSON.stringify(Ve.allow_late_settings.map(oi=>Mt(jt({},oi),{group_name:[oi.group_name]})).filter(oi=>oi.late_time!==null))),Li(jt({},ei));const $n=(0,se.QE)((cn==null?void 0:cn.length)>0?cn:[]);qn([...$n]),(wn==null?void 0:wn.length)<=0?vi([{penalty_type:Ce.Q.Percent,late_penalty:20}]):vi([...wn])},[Ve]);const zr=()=>Ut(void 0,null,function*(){var $n,oi;if((($n=mt==null?void 0:mt.userInfo)==null?void 0:$n.user_status)===2){(0,Fe.Rd)();return}const fn=JSON.parse(JSON.stringify(ei));if(fn.challenge_settings.filter(Zn=>!Zn.hide),fn.categoryId=At.categoryId,(oi=fn.challenge_settings)!=null&&oi.every(Zn=>!Zn.checked)){Rt.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(cn),!ei.unified_setting)cn=cn==null?void 0:cn.map(Zn=>{var an;if(!Zn.publish_time||!Zn.end_time)throw Rt.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Zn.group_name)throw Rt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Zn.group_name=typeof(Zn==null?void 0:Zn.group_name)=="string"?[Zn==null?void 0:Zn.group_name]:Zn==null?void 0:Zn.group_name,Zn.group_id=(an=Ve.group_settings)==null?void 0:an.filter(Jt=>{var vn;return(vn=Zn==null?void 0:Zn.group_name)==null?void 0:vn.includes(Jt.group_name)}).map(Jt=>Jt.group_id||Jt.id).toString().split(","),Zn});else if(!ei.publish_time||!ei.end_time)throw Rt.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(fn.group_settings=cn,ei.allow_late)if(ei.unified_late){if(ei.late_penalty===null||ei.late_penalty===void 0||ei.late_penalty<0||ei.late_penalty>100)throw Rt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ei.late_time)throw Rt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else wn=wn==null?void 0:wn.map(Zn=>{var an,Jt;if(Zn.late_penalty===null||Zn.late_penalty===void 0||Zn.late_penalty<0||Zn.late_penalty>100)throw Rt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Zn.late_time)throw Rt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Zn.group_name)throw Rt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Zn.group_name=typeof(Zn==null?void 0:Zn.group_name)=="string"?[Zn==null?void 0:Zn.group_name]:Zn==null?void 0:Zn.group_name,Zn.group_id=(Jt=(an=Zn==null?void 0:Zn.group_name)==null?void 0:an.map(vn=>{var xt,wt;let ze=(wt=(xt=Ve.group_settings)==null?void 0:xt.filter(Yt=>(Yt==null?void 0:Yt.group_name)===vn))==null?void 0:wt[0];return ze==null?void 0:ze.group_id}))==null?void 0:Jt.toString().split(","),Zn}),fn.allow_late_settings=wn;let Qn=yield(0,Ge.Tr)({homework_common_ids:[parseInt(At.categoryId)],course_id:At.coursesId,type:"homework_common"});(Qn==null?void 0:Qn.student_count)===0?Zr(fn):(rr(fn),zi(Qn))}),Zr=$n=>{var oi;if($n.total_score===null){Rt.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if($n!=null&&$n.work_efficiency&&$n.eff_score===null){Rt.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const fn=$n.challenge_settings.reduce((an,Jt)=>an+Number(Jt.challenge_score),0);if((fn==null?void 0:fn.toFixed(10))!==((oi=$n.total_score-$n.eff_score)==null?void 0:oi.toFixed(10))){Rt.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${$n.total_score}\u5206`);return}const Qn={shixun_evaluation:$n.shixun_evaluation,challenge_settings:$n.challenge_settings};let Zn=()=>{var an;const Jt=()=>Ut(void 0,null,function*(){qt(!0),(yield(0,te.ZP)(`/api/homework_commons/${At.categoryId}/publish_setting.json`,{method:"post",body:jt({},$n)})).status===0&&(Rt.ZP.success("\u66F4\u65B0\u6210\u529F"),Yr(),dn({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:jt({},At)})),qt(!1)});!(0,ne.isEqual)(dt,Qn)&&!((an=bt==null?void 0:bt.homework_status)!=null&&an.includes("\u672A\u53D1\u5E03"))?$e.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Jt}):Jt()};Ve!=null&&Ve.high_resources_consume&&!(Ve!=null&&Ve.high_resources_consume_permission)?dn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:At.coursesId,type:"shixun",type_id:At.categoryId,name:Ve.homework_name,fn:()=>{Zn()}}}):Zn()},Nr=($n,oi,fn="group_id")=>{var Qn;return oi?oi.find(Zn=>Zn[fn]===$n):(Qn=Ve==null?void 0:Ve.group_settings)==null?void 0:Qn.find(Zn=>Zn.group_id[0]===$n)},Co=(Ve==null?void 0:Ve.allow_late)||(Ve==null?void 0:Ve.anonymous_comment),$r=$n=>{var oi,fn;const Qn=Nr($n,Ve==null?void 0:Ve.allow_late_settings,"id"),Zn=Nr($n,Ve==null?void 0:Ve.anonymous_comment_settings),an=Nr($n);return(Ve==null?void 0:Ve.allow_late)&&Qn&&Pt()(Qn==null?void 0:Qn.late_time)<=Pt()()||(Ve==null?void 0:Ve.anonymous_comment)&&Zn&&(Zn==null?void 0:Zn.evaluation_start)!==null||((fn=(Pt()(an==null?void 0:an.end_time)<=Pt()()&&((oi=Ve==null?void 0:Ve.allow_late_settings)==null?void 0:oi.filter(Jt=>Jt.group_id.includes($n))))[0])==null?void 0:fn.late_time)!=null},sr=(0,ye.useMemo)(()=>(Ve==null?void 0:Ve.allow_late)||(Ve==null?void 0:Ve.all_group_late),[Ve,bt]),Fo=Ve==null?void 0:Ve.anonymous_comment,ti=$n=>{if(!$n)return!1;const oi=Nr($n,Ve==null?void 0:Ve.anonymous_comment_settings);return(Ve==null?void 0:Ve.anonymous_comment)&&oi&&(oi==null?void 0:oi.evaluation_start)!==null},Ae=($n,oi)=>{var fn,Qn,Zn,an,Jt;$n!=null&&$n.group_id||($n.group_id=yn($n==null?void 0:$n.group_name,Ve==null?void 0:Ve.group_settings)),dn({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:$n,index:oi,rangePickerDisabled:(Qn=(fn=$n==null?void 0:$n.group_id)==null?void 0:fn[0])!=null&&Qn.publish_time?Ht||(Pt()()<=Pt()((an=Nr((Zn=$n==null?void 0:$n.group_id)==null?void 0:Zn[0]))==null?void 0:an.publish_time)?!1:[!0,$r((Jt=$n==null?void 0:$n.group_id)==null?void 0:Jt[0])]):!1,disabledDate:Ve==null?void 0:Ve.course_end_date}})};return Ke.createElement("section",{className:ge.Z.form},Ke.createElement("div",{className:ge.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Ke.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Ke.createElement("div",null,Ke.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ke.createElement(qe.ZP.Group,{disabled:Ht||!((Gn=bt==null?void 0:bt.homework_status)!=null&&Gn.includes("\u672A\u53D1\u5E03"))||(0,Me.Rm)()&&!((xn=Tn.AssistantObject.practice)!=null&&xn.can_publish),value:ei.unified_setting,onChange:$n=>{var oi;if(!((oi=bt==null?void 0:bt.homework_status)!=null&&oi.includes("\u672A\u53D1\u5E03"))){Rt.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(ei.unified_setting=!ei.unified_setting,ei.unified_setting||(ei.unified_late=!1,vi([{late_penalty:5}])),Li(Object.assign({},ei)),ei.unified_setting===!1&&cn==""){qn(cn.concat({}));return}ei.unified_setting&&(qn([]),vi([{late_penalty:5}]))}},Ke.createElement(qe.ZP,{value:!0,disabled:Ht||!(Ve!=null&&Ve.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Ke.createElement(qe.ZP,{disabled:Ht||!((tt=Ve==null?void 0:Ve.group_settings)!=null&&tt.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Ee=Ve==null?void 0:Ve.group_settings)==null?void 0:Ee.length)===0&&Ke.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),ei.unified_setting&&Ke.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Ke.createElement(De.Z,{align:"middle"},Ke.createElement(Tt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Ke.createElement(Tt.Z,{className:"ml10"},Ke.createElement(Oe.default,{size:"large",disabled:Ht||!((we=bt==null?void 0:bt.homework_status)!=null&&we.includes("\u672A\u53D1\u5E03")||(Be=bt==null?void 0:bt.homework_status)!=null&&Be.includes("\u672A\u5F00\u59CB"))||(0,Me.Rm)()&&!((ke=Tn.AssistantObject.practice)!=null&&ke.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:$n=>Re($n,Ve==null?void 0:Ve.course_end_date),disabledTime:$n=>Lt($n),value:ei.publish_time?Pt()(ei.publish_time):"",onChange:($n,oi)=>{ei.publish_time=oi,(ei.end_time==""||!ei.end_time)&&ei.unified_setting&&(ei.end_time=Pt()($n).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Li(Object.assign({},ei))}}))),Ke.createElement(De.Z,{align:"middle",className:"pl30"},Ke.createElement(Tt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Ke.createElement(Tt.Z,{className:"ml10"},Ke.createElement(Oe.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Pt()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Ve==null?void 0:Ve.allow_late)&&(Ve==null?void 0:Ve.homework_status.includes("\u5DF2\u622A\u6B62"))||Ht||(Ve==null?void 0:Ve.allow_late)&&Pt()()>=Pt()(Ve==null?void 0:Ve.end_time)||(0,Me.Rm)()&&!((Se=Tn.AssistantObject.practice)!=null&&Se.can_publish),disabledDate:$n=>Re($n,Ve==null?void 0:Ve.course_end_date,ei.publish_time),disabledTime:$n=>Lt($n,ei.publish_time),value:ei.end_time?Pt()(ei.end_time):"",onChange:($n,oi)=>{ei.end_time=oi,Li(Object.assign({},ei))}})))),!ei.unified_setting&&(cn==null?void 0:cn.length)>0&&Ke.createElement(De.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},cn&&cn.map(function($n,oi){var fn,Qn,Zn,an,Jt,vn,xt;return Ke.createElement(Tt.Z,{span:24,key:oi},Ke.createElement(De.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:oi==(cn==null?void 0:cn.length)-1?"0px":"10px"}},Ke.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",oi+1),Ke.createElement(He.default,{disabled:Ht||((fn=bt==null?void 0:bt.homework_status)!=null&&fn.includes("\u672A\u53D1\u5E03")&&$n.id||Pt()()<Pt()($n==null?void 0:$n.publish_time)?!1:!!($n!=null&&$n.publish_time))||(0,Me.Rm)()&&!((Qn=Tn.AssistantObject.practice)!=null&&Qn.can_publish),mode:"multiple",className:ge.Z.multiple_select,style:{width:"250px"},value:$n.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:wt=>{var ze;if((0,Me.Rm)()&&!((ze=Tn.AssistantObject.practice)!=null&&ze.can_publish)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cn[oi].group_name=wt,cn[oi].group_id=$n.group_id;const Yt=(0,ne.flattenDeep)(cn.map(ht=>ht.group_name)),on=wn.map(ht=>{let Qe=(ht==null?void 0:ht.group_name)||[];return Mt(jt({},ht),{group_name:(0,ne.remove)(Qe,_t=>Yt.includes(_t))})});vi(on),qn(cn.slice())},maxTagCount:4,maxTagPlaceholder:wt=>Ke.createElement("div",{style:{cursor:"pointer"},onClick:()=>Ae($n,oi)},"+",wt==null?void 0:wt.length)},Ve.group_settings&&Ve.group_settings.map(function(wt){if(!cn.map(Yt=>Yt.group_name).flat().includes(wt.group_name))return Ke.createElement(Nt,{value:wt.group_name,key:wt.id},wt.group_name)})),Ke.createElement("div",{className:"ml20"},Ke.createElement(mn,{size:"large",ranges:{\u6B64\u523B:[$n.publish_time?Pt()($n.publish_time):Pt()(),Pt()()]},allowClear:!1,disabled:Ht||(Pt()()<=Pt()((an=Nr((Zn=$n==null?void 0:$n.group_id)==null?void 0:Zn[0]))==null?void 0:an.publish_time)?!1:[!0,$r((Jt=$n==null?void 0:$n.group_id)==null?void 0:Jt[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:wt=>Re(wt,Ve==null?void 0:Ve.course_end_date),disabledTime:wt=>Lt(wt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Pt()((0,se.U6)(),"HH:mm"),Pt()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[$n.publish_time?Pt()($n.publish_time):void 0,$n.end_time?Pt()($n.end_time):void 0],onChange:(wt,ze)=>{var Yt;if((0,Me.Rm)()&&!((Yt=Tn.AssistantObject.practice)!=null&&Yt.can_publish)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cn[oi].publish_time=ze[0],!$n.end_time&&ze[0]?cn[oi].end_time=Pt()(ze[0]).add(7,"days"):cn[oi].end_time=ze[1],qn([...cn])},onCalendarChange:(wt,ze,Yt)=>{if(ze!=null&&ze[0]&&!ze[1]){const on=Pt()(ze[0]).add(7,"days");cn[oi].publish_time=ze[0],cn[oi].end_time=on,qn([...cn])}}})),!Ht&&Ke.createElement("div",{style:{display:"flex",width:"50px"}},((vn=$n==null?void 0:$n.group_id)==null?void 0:vn.length)>1&&Ke.createElement(Et.Z,{title:"\u89C4\u5219\u62C6\u5206"},Ke.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Ae($n,oi)})),cn.length<((xt=Ve==null?void 0:Ve.group_settings)==null?void 0:xt.length)&&Ke.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var wt;if((0,Me.Rm)()&&!((wt=Tn.AssistantObject.practice)!=null&&wt.can_publish)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}qn(cn.concat({}))}}),(($n==null?void 0:$n.publish_time)&&Pt()()<Pt()($n==null?void 0:$n.publish_time)||!($n!=null&&$n.publish_time))&&oi!=0&&Ke.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const wt=(0,ne.cloneDeep)(wn);wt.forEach((ze,Yt)=>{ze.group_name&&(ze.group_name=ze.group_name.filter(on=>{var ht;return!((ht=cn[oi].group_name)!=null&&ht.includes(on))}))}),cn=cn.filter((ze,Yt)=>oi!==Yt),vi(wt),qn(cn.slice()),setTimeout(()=>qn(cn.slice()),10)}}))))}))),Ke.createElement(De.Z,null,Ke.createElement(Tt.Z,null,Ke.createElement("div",{className:ge.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Ke.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Ke.createElement(Tt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ke.createElement(et.default,{checked:ei.allow_late,disabled:Ht||sr,onChange:$n=>{var oi;if((0,Me.Rm)()&&!((oi=Tn.AssistantObject.practice)!=null&&oi.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}$n.target.checked&&$e.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Ke.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Ke.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Ke.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Ke.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),ei.allow_late=!ei.allow_late,wn==""&&vi([{late_penalty:5}]),Li(Object.assign({},ei))}},Ke.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(ei==null?void 0:ei.allow_late)&&Ke.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Ke.createElement("div",{style:{display:"flex"}},Ke.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Ke.createElement(qe.ZP.Group,{style:{marginLeft:"20px"},disabled:Ht||(Ve==null?void 0:Ve.anonymous_comment)||(Ve==null?void 0:Ve.allow_late),value:ei.unified_late,onChange:$n=>{var oi;if((0,Me.Rm)()&&!((oi=Tn.AssistantObject.practice)!=null&&oi.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ei.unified_late=$n.target.value,wn==""&&!$n.target.value&&vi([{penalty_type:Ce.Q.Percent,late_penalty:20}]),Li(jt({},ei))}},(ei==null?void 0:ei.unified_setting)&&Ke.createElement(qe.ZP,{value:!0,disabled:!(Ve!=null&&Ve.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((st=Ve==null?void 0:Ve.group_settings)==null?void 0:st.length)>0&&Ke.createElement(qe.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),ei!=null&&ei.unified_late?Ke.createElement(Ke.Fragment,null,Ke.createElement(De.Z,{align:"middle",style:{marginTop:"10px"}},Ke.createElement(Tt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Ke.createElement(Tt.Z,{className:"ml20"},Ke.createElement(Ce.Z,{disabled:Ht||Fo,value:{type:ei.penalty_type,inputValue:ei.late_penalty},onChange:$n=>{var oi;if((0,Me.Rm)()&&!((oi=Tn.AssistantObject.practice)!=null&&oi.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Li(Mt(jt({},ei),{late_penalty:$n.inputValue,penalty_type:$n.type}))}})),Ke.createElement(Tt.Z,{flex:"1",className:"ml5"},Ke.createElement("span",{className:"c-grey-c ml10"},ei.penalty_type===Ce.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Ke.createElement(De.Z,{align:"middle",style:{marginTop:"15px"}},Ke.createElement(Tt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ke.createElement(Tt.Z,{className:"ml20"},Ke.createElement(Oe.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Pt()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Ht||Fo,value:ei.late_time?Pt()(ei.late_time):"",disabledDate:$n=>Re($n,Ve==null?void 0:Ve.course_end_date),onChange:($n,oi)=>{var fn;if((0,Me.Rm)()&&!((fn=Tn.AssistantObject.practice)!=null&&fn.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ei.late_time=oi,Li(Object.assign({},ei))}})))):wn.map(function($n,oi){var fn;return Ke.createElement(Tt.Z,{span:24,key:oi},Ke.createElement(De.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Ke.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",oi+1),Ke.createElement(He.default,{disabled:Ht||!((fn=bt==null?void 0:bt.homework_status)!=null&&fn.includes("\u672A\u53D1\u5E03"))&&$n.id||(Ve==null?void 0:Ve.anonymous_comment),mode:"multiple",className:ge.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof $n.group_name=="string"?[$n.group_name]:$n.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Qn=>{var Zn;if((0,Me.Rm)()&&!((Zn=Tn.AssistantObject.practice)!=null&&Zn.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}wn[oi].group_name=Qn,wn[oi].group_id=$n.group_id,vi(wn.slice())}},Ve.group_settings&&Ve.group_settings.map(function(Qn){const Zn=wn.map(Jt=>Jt.group_name).flat(),an=cn.map(Jt=>Jt.group_name).flat();if(ei!=null&&ei.unified_setting){if(!Zn.includes(Qn.group_name))return Ke.createElement(Nt,{value:Qn.group_name,key:Qn.id},Qn.group_name)}else if(an.includes(Qn.group_name)&&!Zn.includes(Qn.group_name))return Ke.createElement(Nt,{value:Qn.group_name,key:Qn.id},Qn.group_name)})),Ke.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Ke.createElement(Ce.Z,{disabled:Ht||ti($n.id),value:{type:$n.penalty_type,inputValue:$n.late_penalty},onChange:Qn=>{var Zn;if((0,Me.Rm)()&&!((Zn=Tn.AssistantObject.practice)!=null&&Zn.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}wn[oi].late_penalty=Qn.inputValue,wn[oi].penalty_type=Qn.type,vi([...wn])}}),Ke.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ke.createElement(Oe.default,{size:"large",disabled:Ht||ti($n.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Pt()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Qn=>Re(Qn,Ve==null?void 0:Ve.course_end_date),format:"YYYY-MM-DD HH:mm",value:$n!=null&&$n.late_time?Pt()($n.late_time):void 0,onChange:(Qn,Zn)=>{var an;if((0,Me.Rm)()&&!((an=Tn.AssistantObject.practice)!=null&&an.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}wn[oi].late_time=Zn,vi([...wn])}}),!Ht&&Ke.createElement("div",{style:{display:"flex",width:"50px"}},Ke.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Qn;if((0,Me.Rm)()&&!((Qn=Tn.AssistantObject.practice)!=null&&Qn.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}vi(wn.concat({penalty_type:Ce.Q.Percent,late_penalty:20}))}}),oi>0&&!$n.id&&Ke.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var Qn;if((0,Me.Rm)()&&!((Qn=Tn.AssistantObject.practice)!=null&&Qn.can_late)){Rt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}wn=wn.filter((Zn,an)=>oi!==an),vi(wn.slice()),setTimeout(()=>vi(wn.slice()),10)}}))))})),!Ht&&Ke.createElement(Ke.Fragment,null,Ke.createElement(Ot.ZP,{type:"primary",size:"large",loading:An,style:{width:"138px",marginTop:"30px"},onClick:()=>zr()},"\u4FDD\u5B58")),Ke.createElement(Pe.Z,{onConfirm:($n,oi)=>{cn.splice($n,0,...oi),cn.splice($n+oi.length,1);const fn=(0,se.QE)([...cn]);qn([...fn])}}),Ke.createElement(Ie.Z,{resdata:Vi,type:"shixun",okloading:An,oktext:(Vi==null?void 0:Vi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:$n=>Ut(void 0,null,function*(){qt(!0);let oi=yield(0,te.ZP)(`/api/courses/${At.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(At.categoryId)]}});qt(!1),(oi==null?void 0:oi.status)===0&&Zr(Bn)})}))};Mn.ZP=(0,me.connect)(({shixunHomeworks:nn,classroomList:On,loading:dn,user:Tn})=>({shixunHomeworks:nn,classroomList:On,loading:dn.effects,user:Tn}))(en)},59437:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return et}});var ye=ve(59301),Oe=ve(92832),He=ve(24905),Rt=ve(95237),$e={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",De=ve(8797),Tt=(Ot,it,Pt)=>new Promise((Me,te)=>{var ne=ge=>{try{se(Pt.next(ge))}catch(me){te(me)}},ce=ge=>{try{se(Pt.throw(ge))}catch(me){te(me)}},se=ge=>ge.done?Me(ge.value):Promise.resolve(ge.value).then(ne,ce);se((Pt=Pt.apply(Ot,it)).next())}),et=({data:Ot,value:it=[],handleChangePage:Pt,setSelectedRowKeys:Me,selectedRowKeys:te,onChange:ne=()=>{}})=>{const[ce,se]=(0,ye.useState)([]),[ge,me]=(0,ye.useState)([]),[Ce,Fe]=(0,ye.useState)([]);let[Pe,Ie]=(0,ye.useState)(1),[Ge,Ke]=(0,ye.useState)();return(0,ye.useEffect)(()=>{se(Ot),me([]),Fe([])},[Ot]),(0,ye.useEffect)(()=>{Me&&(me(te),Fe(te))},[te]),ye.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ye.createElement("div",{className:$e.leftdiv},ye.createElement(Oe.default.Search,{size:"middle",onChange:Ye=>Tt(void 0,null,function*(){se(Ot.filter(pt=>{var Je;return(Je=pt==null?void 0:pt.name)==null?void 0:Je.includes(Ye.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ce.length===0&&ye.createElement(De.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),ye.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},ye.createElement(He.default.Group,{value:ge.map(Ye=>`${Ye.id}`),onChange:Ye=>{Me(ce.filter(pt=>Ye.includes(`${pt.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ce.map((Ye,pt)=>ye.createElement(Rt.Z,{key:Ye.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},ye.createElement(He.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Ye.is_published,value:`${Ye.id}`},ye.createElement("div",{className:$e.listClass},ye.createElement("span",{className:$e.spantitle,style:{width:Ye.is_published?"108px":"170px"}},Ye.name),Ye.is_published&&ye.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),ye.createElement("div",{className:$e.rightdiv},ye.createElement(Oe.default.Search,{onChange:Ye=>{Fe(ge.filter(pt=>pt.name.includes(Ye.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Ce.length===0&&ye.createElement(De.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Ce.length>0&&ye.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},ye.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Ce.map((Ye,pt)=>ye.createElement(Rt.Z,{justify:"space-between",style:{marginTop:"10px"},key:Ye.id},ye.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Ye.name),ye.createElement("img",{src:qe,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Me(ge.filter(Je=>`${Je.id}`!=`${Ye.id}`))}})))))))}},38233:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return ce}});var ye=ve(59301),Oe=ve(89070),He=ve(5083),Rt=ve(43418),$e=ve(92832),qe=ve(8591),De=ve(95237),Tt=ve(43604),Et={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},et=ve(61186),Ot=ve.n(et),it=ve(955),Pt=ve(8797),Me=ve(59301);const{RangePicker:te}=He.default,ne=({dispatch:se,classroomList:ge,onConfirm:me})=>{const[Ce,Fe]=(0,ye.useState)([]),[Pe,Ie]=(0,ye.useState)([]),[Ge,Ke]=(0,ye.useState)(""),[Ye,pt]=(0,ye.useState)([!1,!1]);(0,ye.useEffect)(()=>{var Xe,Wt,zt,jt;if(ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Xe=ge.actionTabs)==null?void 0:Xe.rangePickerDisabled),(Wt=ge.actionTabs)!=null&&Wt.rangePickerDisabled?pt((zt=ge.actionTabs)==null?void 0:zt.rangePickerDisabled):pt([!1,!1]);let Mt=ge.actionTabs.data,Ut=(jt=Mt==null?void 0:Mt.group_name)==null?void 0:jt.map((ft,Re)=>{var Lt;return{group_id:Mt==null?void 0:Mt.group_id[Re],group_name:Mt==null?void 0:Mt.group_name[Re],is_admin:Mt==null?void 0:Mt.is_admin,end_time:Mt==null?void 0:Mt.end_time,publish_time:Array.isArray(Mt==null?void 0:Mt.publish_time)?(Lt=Mt==null?void 0:Mt.publish_time)==null?void 0:Lt[0]:Mt==null?void 0:Mt.publish_time}});Ut&&(Fe([...Ut]),Ie([...Ut]))}},[ge.actionTabs]);const Je=()=>{se({type:"classroomList/setActionTabs",payload:{}}),Ke("")},kt=Xe=>{if(Xe){const Wt=Pe==null?void 0:Pe.filter(zt=>{var jt,Mt;return(Mt=(jt=zt==null?void 0:zt.group_name)==null?void 0:jt.toLowerCase())==null?void 0:Mt.includes(Xe==null?void 0:Xe.toLowerCase())});Fe(Wt)}else Fe(Pe)};return Me.createElement(Rt.default,{width:980,title:Me.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Me.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Me.createElement("span",{className:Et.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Me.createElement($e.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Ge,onChange:Xe=>{Ke(Xe.target.value.trim()),kt(Xe.target.value.trim())}})),centered:!0,maskClosable:!1,open:ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>Je(),onOk:()=>{var Xe;if(Pe.some(zt=>!zt.end_time||!zt.publish_time)){qe.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}me((Xe=ge.actionTabs)==null?void 0:Xe.index,Pe),Je()}},Me.createElement("div",{className:Et.modal_con},Me.createElement(De.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(Ce==null?void 0:Ce.length)>0?Ce.map(function(Xe,Wt){return Me.createElement(Tt.Z,{span:24,key:Wt},Me.createElement(De.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Wt==(Ce==null?void 0:Ce.length)-1?"0px":"10px"}},Me.createElement("div",{className:Et.multiple_select,title:Xe==null?void 0:Xe.group_name},Xe==null?void 0:Xe.group_name),Me.createElement("div",{className:"ml20"},Me.createElement(te,{size:"large",allowClear:!1,disabled:Ye,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:zt=>{var jt;return(0,it.Q8)(zt,(jt=ge.actionTabs)==null?void 0:jt.disabledDate)},disabledTime:zt=>(0,it.d0)(zt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ot()((0,it.U6)(),"HH:mm"),Ot()((0,it.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(Xe==null?void 0:Xe.publish_time)&&[Ot()(Xe==null?void 0:Xe.publish_time),Xe!=null&&Xe.end_time?Ot()(Xe==null?void 0:Xe.end_time):void 0],onChange:(zt,jt)=>{Ce[Wt].publish_time=jt[0],Ce[Wt].end_time=jt[1],Fe([...Ce]),Pe.forEach(Mt=>{Mt.group_id===(Xe==null?void 0:Xe.group_id)&&(Mt.publish_time=jt[0],Mt.end_time=jt[1])}),Ie([...Pe])},onCalendarChange:(zt,jt,Mt)=>{if(jt!=null&&jt[0]&&!jt[1]){const Ut=Ot()(jt[0]).add(7,"days");Ce[Wt].publish_time=jt[0],Ce[Wt].end_time=Ut,Fe([...Ce]),Pe.forEach(ft=>{ft.group_id===(Xe==null?void 0:Xe.group_id)&&(ft.publish_time=jt[0],ft.end_time=Ut)}),Ie([...Pe])}}})),Ye[0]?Me.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Me.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{Ce.splice(Wt,1),Fe([...Ce]),Pe.forEach((zt,jt)=>{zt.group_id===(Xe==null?void 0:Xe.group_id)&&Pe.splice(jt,1)}),Ie([...Pe])}})))}):Me.createElement(Pt.Z,null))))};var ce=(0,Oe.connect)(({classroomList:se})=>({classroomList:se}))(ne)},24768:function(Rn,Mn,ve){"use strict";ve.d(Mn,{AL:function(){return Ce},Iy:function(){return Ot},Qv:function(){return Me},ez:function(){return me},jb:function(){return it}});var ye=ve(32834),Oe=ve.n(ye),He=ve(11690),Rt=ve.n(He);let $e=1;function qe(Ke,Ye){const pt=Ke.match(/^(\s+)(?:```)/);if(pt===null)return Ye;const Je=pt[1];return Ye.split(`
`).map(kt=>{const Xe=kt.match(/^\s+/);if(Xe===null)return kt;const[Wt]=Xe;return Wt.length>=Je.length?kt.slice(Je.length):kt}).join(`
`)}let De=[],Tt=["<ul>"];const Et=new(Oe()).Renderer,et=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ot(){De.length=0,Tt=["<ul>"]}const it={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Pt(Ke,Ye,pt,Je){if(Ye>=Ke.length||Ke[Ye].level<=pt)return Ye;var kt=Ke[Ye];Je.push("<li><a href='#"+$e+kt.anchor+"'>"+kt.text+"</a>"),Ye++;var Xe=[];return Ye=Pt(Ke,Ye,kt.level,Xe),Xe.length>0&&(Je.push("<ul>"),Xe.forEach(function(Wt){Je.push(Wt)}),Je.push("</ul>")),Je.push("</li>"),Ye=Pt(Ke,Ye,pt,Je),Ye}function Me(){return Pt(De,0,0,Tt),Tt.push("</ul>"),Tt.join("")}const te={heading(Ke){const Ye=et.exec(Ke);if($e+=1,Ye)return{type:"heading",raw:Ye[0],depth:Ye[1].length,text:Ye[2]}},fences(Ke){const Ye=this.rules.block.fences.exec(Ke);if(Ye){const pt=Ye[0];let Je=qe(pt,Ye[3]||"");const kt=Ye[2]?Ye[2].trim():Ye[2];if(["latex","katex","math"].indexOf(kt)>=0){const Xe=se(),Wt=Je;Je=Xe,ge[Xe]={type:"block",expression:Wt}}return{type:"code",raw:pt,lang:kt,text:Je}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ce=0;const se=()=>`__special_katext_id_${ce++}__`;let ge={};function me(){return ge}function Ce(){ce=0,ge={}}function Fe(Ke){return Ke=Ke.replace(ne,(Ye,pt)=>{const Je=se();return ge[Je]={type:"inline",expression:pt},Je}),Ke}const Pe=Et.listitem;Et.listitem=function(Ke){return Pe(Fe(Ke))};const Ie=Et.paragraph;Et.paragraph=function(Ke){return Ie(Fe(Ke))};const Ge=Et.tablecell;Et.tablecell=function(Ke,Ye){return Ge(Fe(Ke),Ye)},Et.code=function(Ke,Ye,pt){const Je=(Ye||"").match(/\S*/)[0];return Je?["latex","katex","math"].indexOf(Je)>=0?`<p class='editormd-tex'>${Ke}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ye}">${pt?Ke:(0,He.escape)(Ke,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(pt?Ke:(0,He.escape)(Ke,!0))+"</code></pre>"},Et.heading=function(Ke,Ye,pt){let Je=this.options.headerPrefix+pt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return De.push({anchor:Je,level:Ye,text:Ke}),"<h"+Ye+' id="'+$e+Je+'">'+Ke+"</h"+Ye+">"},Oe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Oe().use({tokenizer:te,renderer:Et}),Mn.ZP=Oe()},46474:function(Rn,Mn,ve){"use strict";ve.d(Mn,{rX:function(){return Ce},pW:function(){return Fe},gy:function(){return Pe},xY:function(){return me},O5:function(){return ge},tJ:function(){return Me},o1:function(){return te},Rd:function(){return se}});var ye=ve(89070),Oe=ve(43418),He=ve(28103),Rt=ve(8591),$e=ve(24065),qe=ve(955),De=ve(87169),Tt=ve(25510),Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAX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WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",et=ve.p+"static/newqrcode.a8740efb.png",Ot=ve(32637),it=ve(59301),Pt=(Ie,Ge,Ke)=>new Promise((Ye,pt)=>{var Je=Wt=>{try{Xe(Ke.next(Wt))}catch(zt){pt(zt)}},kt=Wt=>{try{Xe(Ke.throw(Wt))}catch(zt){pt(zt)}},Xe=Wt=>Wt.done?Ye(Wt.value):Promise.resolve(Wt.value).then(Je,kt);Xe((Ke=Ke.apply(Ie,Ge)).next())});const Me=(Ie,Ge=!1,Ke=!1,Ye="",pt=!1)=>!!(te(Ie)&&ne(Ie,Ge,Ke,Ye,pt)),te=Ie=>(0,$e.bg)()?!0:(Ie({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ne=(Ie,Ge=!1,Ke=!0,Ye="",pt=!1)=>{var Je;const{user:kt}=(0,ye.getDvaApp)()._store.getState();return(Je=kt.userInfo)!=null&&Je.profile_completed?!0:(Ke?Ie({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Ye,isCurrentPage:pt}}):Oe.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,qe.xg)("/account/profile/edit"),ce()}}),!1)},ce=()=>{Oe.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},se=()=>{Oe.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:it.createElement("div",{style:{textAlign:"center"}},it.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),it.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Ot}),it.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ge=()=>{var Ie;const{user:Ge}=(0,ye.getDvaApp)()._store.getState();return(Ie=Ge.userInfo)!=null&&Ie.professional_certification?!0:(Oe.default.confirm({title:"\u63D0\u793A",centered:!0,content:it.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,qe.xg)("/account/certification")}}),!1)},me=()=>(0,$e.V9)()?!0:(Oe.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:it.createElement("div",{className:"tc",style:{marginLeft:-38}},it.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),it.createElement("img",{src:et,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Ce=(Ie,Ge)=>Ie?!0:(Oe.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:it.createElement("div",null,it.createElement("p",null,Ge||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),it.createElement("div",{style:{marginLeft:"110px"}},it.createElement("img",{src:Et,width:200}),it.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,qe.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Fe=Ie=>{Oe.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:it.createElement("div",null,it.createElement("div",null,it.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),it.createElement(He.Z,null),it.createElement("p",{style:{color:"#666666",fontSize:12}}," ",it.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",it.createElement("a",null,Ie),"\u5929\u3002"),it.createElement("p",{style:{color:"#666666",fontSize:12}}," ",it.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),it.createElement("div",{style:{textAlign:"center",marginTop:30}},it.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Tt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Pe=(Ie,Ge="")=>{const{shixunsDetail:{detail:Ke}}=(0,ye.getDvaApp)()._store.getState();if((Ke==null?void 0:Ke.public)===2||(Ke==null?void 0:Ke.public)===1||(Ke==null?void 0:Ke.shixun_status)===3){let Ye="";return(Ke==null?void 0:Ke.public)===2&&(Ye="\u5DF2\u516C\u5F00"),(Ke==null?void 0:Ke.public)===1&&(Ye="\u5F85\u5BA1\u6838"),(Ke==null?void 0:Ke.shixun_status)===3&&(Ye="\u5DF2\u5173\u95ED"),Oe.default.info({centered:!0,icon:it.createElement(De.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:it.createElement("div",{className:"tc",style:{marginLeft:-38}},it.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},it.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Ye,"\uFF0C",Ge,"\u3002"),it.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),it.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Tt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Ke==null?void 0:Ke.shixun_status)===2?(Oe.default.confirm({centered:!0,icon:it.createElement(De.Z,null),title:"\u63D0\u793A",content:it.createElement("div",null,it.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ge,"\u3002"),it.createElement("br",null),it.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{Oe.default.confirm({width:440,centered:!0,icon:it.createElement(De.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Pt(void 0,null,function*(){(yield Ie({type:"shixunsDetail/cancelRelease",payload:{id:Ke==null?void 0:Ke.identifier}})).status!==401&&(Rt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ie({type:"shixunsDetail/getShixunsDetail",payload:{id:Ke==null?void 0:Ke.identifier}}),Ie({type:"practiceSetting/getCommonData",payload:{id:Ke==null?void 0:Ke.identifier}}))})})}}),!0):!1}},50371:function(Rn,Mn){"use strict";function ve(){const ye=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Oe=1;Oe<arguments.length;Oe++){const He=Oe<0||arguments.length<=Oe?void 0:arguments[Oe];He&&Object.keys(He).forEach(Rt=>{const $e=He[Rt];$e!==void 0&&(ye[Rt]=$e)})}return ye}Mn.Z=ve},13845:function(Rn,Mn,ve){"use strict";ve.d(Mn,{F:function(){return ye},Z:function(){return Oe}});function ye(He){return He!=null&&He===He.window}function Oe(He,Rt){var $e,qe;if(typeof window=="undefined")return 0;const De=Rt?"scrollTop":"scrollLeft";let Tt=0;return ye(He)?Tt=He[Rt?"pageYOffset":"pageXOffset"]:He instanceof Document?Tt=He.documentElement[De]:(He instanceof HTMLElement||He)&&(Tt=He[De]),He&&!ye(He)&&typeof Tt!="number"&&(Tt=(qe=(($e=He.ownerDocument)!==null&&$e!==void 0?$e:He).documentElement)===null||qe===void 0?void 0:qe[De]),Tt}},56762:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Oe}});var ye=ve(59301);function Oe(){const[,He]=ye.useReducer(Rt=>Rt+1,0);return He}},68031:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Rt}});var ye=ve(16089);function Oe($e,qe,De,Tt){const Et=De-qe;return $e/=Tt/2,$e<1?Et/2*$e*$e*$e+qe:Et/2*(($e-=2)*$e*$e+2)+qe}var He=ve(13845);function Rt($e){let qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:De=()=>window,callback:Tt,duration:Et=450}=qe,et=De(),Ot=(0,He.Z)(et,!0),it=Date.now(),Pt=()=>{const te=Date.now()-it,ne=Oe(te>Et?Et:te,Ot,$e,Et);(0,He.F)(et)?et.scrollTo(window.pageXOffset,ne):et instanceof Document||et.constructor.name==="HTMLDocument"?et.documentElement.scrollTop=ne:et.scrollTop=ne,te<Et?(0,ye.Z)(Pt):typeof Tt=="function"&&Tt()};(0,ye.Z)(Pt)}},19842:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return oi}});var ye=ve(26407),Oe=ve(59301),He=ve(33853),Rt=ve(58617),$e=ve(38819),qe=ve(92310),De=ve.n(qe),Tt=ve(92413),Et=ve(33606),et=ve(37061),Ot=ve(77861),it=ve(17115),Pt=ve(90782),Me=ve(6089),te=ve(18929),ne=Oe.createContext(null),ce=ne,se=ve(39559),ge=ve(400),me=ve(33708),Ce="__rc_cascader_search_mark__",Fe=function(Qn,Zn,an){var Jt=an.label;return Zn.some(function(vn){return String(vn[Jt]).toLowerCase().includes(Qn.toLowerCase())})},Pe=function(Qn,Zn,an,Jt){return Zn.map(function(vn){return vn[Jt.label]}).join(" / ")},Ie=function(fn,Qn,Zn,an,Jt,vn){var xt=Jt.filter,wt=xt===void 0?Fe:xt,ze=Jt.render,Yt=ze===void 0?Pe:ze,on=Jt.limit,ht=on===void 0?50:on,Qe=Jt.sort;return Oe.useMemo(function(){var _t=[];if(!fn)return[];function It(Fn,Hn){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Fn.forEach(function(sn){if(!(!Qe&&ht!==!1&&ht>0&&_t.length>=ht)){var Un=[].concat((0,ye.Z)(Hn),[sn]),_n=sn[Zn.children],Zt=ct||sn.disabled;if((!_n||_n.length===0||vn)&&wt(fn,Un,{label:Zn.label})){var rn;_t.push((0,me.Z)((0,me.Z)({},sn),{},(rn={disabled:Zt},(0,ge.Z)(rn,Zn.label,Yt(fn,Un,an,Zn)),(0,ge.Z)(rn,Ce,Un),(0,ge.Z)(rn,Zn.children,void 0),rn)))}_n&&It(sn[Zn.children],Un,Zt)}})}return It(Qn,[]),Qe&&_t.sort(function(Fn,Hn){return Qe(Fn[Ce],Hn[Ce],fn,Zn)}),ht!==!1&&ht>0?_t.slice(0,ht):_t},[fn,Qn,Zn,an,Yt,vn,wt,Qe,ht])},Ge="__RC_CASCADER_SPLIT__",Ke="SHOW_PARENT",Ye="SHOW_CHILD";function pt(fn){return fn.join(Ge)}function Je(fn){return fn.map(pt)}function kt(fn){return fn.split(Ge)}function Xe(fn){var Qn=fn||{},Zn=Qn.label,an=Qn.value,Jt=Qn.children,vn=an||"value";return{label:Zn||"label",value:vn,key:vn,children:Jt||"children"}}function Wt(fn,Qn){var Zn,an;return(Zn=fn.isLeaf)!==null&&Zn!==void 0?Zn:!((an=fn[Qn.children])!==null&&an!==void 0&&an.length)}function zt(fn){var Qn=fn.parentElement;if(Qn){var Zn=fn.offsetTop-Qn.offsetTop;Zn-Qn.scrollTop<0?Qn.scrollTo({top:Zn}):Zn+fn.offsetHeight-Qn.scrollTop>Qn.offsetHeight&&Qn.scrollTo({top:Zn+fn.offsetHeight-Qn.offsetHeight})}}function jt(fn,Qn){return fn.map(function(Zn){var an;return(an=Zn[Ce])===null||an===void 0?void 0:an.map(function(Jt){return Jt[Qn.value]})})}function Mt(fn,Qn,Zn){var an=new Set(fn),Jt=Qn();return fn.filter(function(vn){var xt=Jt[vn],wt=xt?xt.parent:null,ze=xt?xt.children:null;return xt&&xt.node.disabled?!0:Zn===Ye?!(ze&&ze.some(function(Yt){return Yt.key&&an.has(Yt.key)})):!(wt&&!wt.node.disabled&&an.has(wt.key))})}function Ut(fn,Qn,Zn){for(var an=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Jt=Qn,vn=[],xt=function(){var Yt,on,ht,Qe=fn[wt],_t=(Yt=Jt)===null||Yt===void 0?void 0:Yt.findIndex(function(Fn){var Hn=Fn[Zn.value];return an?String(Hn)===String(Qe):Hn===Qe}),It=_t!==-1?(on=Jt)===null||on===void 0?void 0:on[_t]:null;vn.push({value:(ht=It==null?void 0:It[Zn.value])!==null&&ht!==void 0?ht:Qe,index:_t,option:It}),Jt=It==null?void 0:It[Zn.children]},wt=0;wt<fn.length;wt+=1)xt();return vn}var ft=function(fn,Qn,Zn,an,Jt){return Oe.useMemo(function(){var vn=Jt||function(xt){var wt=an?xt.slice(-1):xt,ze=" / ";return wt.every(function(Yt){return["string","number"].includes((0,se.Z)(Yt))})?wt.join(ze):wt.reduce(function(Yt,on,ht){var Qe=Oe.isValidElement(on)?Oe.cloneElement(on,{key:ht}):on;return ht===0?[Qe]:[].concat((0,ye.Z)(Yt),[ze,Qe])},[])};return fn.map(function(xt){var wt,ze,Yt=Ut(xt,Qn,Zn),on=vn(Yt.map(function(Qe){var _t,It=Qe.option,Fn=Qe.value;return(_t=It==null?void 0:It[Zn.label])!==null&&_t!==void 0?_t:Fn}),Yt.map(function(Qe){var _t=Qe.option;return _t})),ht=pt(xt);return{label:on,value:ht,key:ht,valueCells:xt,disabled:(wt=Yt[Yt.length-1])===null||wt===void 0||(ze=wt.option)===null||ze===void 0?void 0:ze.disabled}})},[fn,Qn,Zn,Jt,an])},Re=ve(71430),Lt=function(fn,Qn){var Zn=Oe.useRef({options:null,info:null}),an=Oe.useCallback(function(){return Zn.current.options!==fn&&(Zn.current.options=fn,Zn.current.info=(0,Re.I8)(fn,{fieldNames:Qn,initWrapper:function(vn){return(0,me.Z)((0,me.Z)({},vn),{},{pathKeyEntities:{}})},processEntity:function(vn,xt){var wt=vn.nodes.map(function(ze){return ze[Qn.value]}).join(Ge);xt.pathKeyEntities[wt]=vn,vn.key=wt}})),Zn.current.info.pathKeyEntities},[Qn,fn]);return an},yn=function(fn,Qn){return Oe.useCallback(function(Zn){var an=[],Jt=[];return Zn.forEach(function(vn){var xt=Ut(vn,fn,Qn);xt.every(function(wt){return wt.option})?Jt.push(vn):an.push(vn)}),[Jt,an]},[fn,Qn])},mn=ve(48736);function Nt(fn){return Oe.useMemo(function(){if(!fn)return[!1,{}];var Qn={matchInputWidth:!0,limit:50};return fn&&(0,se.Z)(fn)==="object"&&(Qn=(0,me.Z)((0,me.Z)({},Qn),fn)),Qn.limit<=0&&delete Qn.limit,[!0,Qn]},[fn])}var en=Oe.memo(function(fn){var Qn=fn.children;return Qn},function(fn,Qn){return!Qn.open}),nn=en;function On(fn){var Qn,Zn=fn.prefixCls,an=fn.checked,Jt=fn.halfChecked,vn=fn.disabled,xt=fn.onClick,wt=fn.disableCheckbox,ze=Oe.useContext(ce),Yt=ze.checkable,on=typeof Yt!="boolean"?Yt:null;return Oe.createElement("span",{className:De()("".concat(Zn),(Qn={},(0,ge.Z)(Qn,"".concat(Zn,"-checked"),an),(0,ge.Z)(Qn,"".concat(Zn,"-indeterminate"),!an&&Jt),(0,ge.Z)(Qn,"".concat(Zn,"-disabled"),vn||wt),Qn)),onClick:xt},on)}var dn="__cascader_fix_label__";function Tn(fn){var Qn=fn.prefixCls,Zn=fn.multiple,an=fn.options,Jt=fn.activeValue,vn=fn.prevValuePath,xt=fn.onToggleOpen,wt=fn.onSelect,ze=fn.onActive,Yt=fn.checkedSet,on=fn.halfCheckedSet,ht=fn.loadingKeys,Qe=fn.isSelectable,_t=fn.searchValue,It="".concat(Qn,"-menu"),Fn="".concat(Qn,"-menu-item"),Hn=Oe.useContext(ce),ct=Hn.fieldNames,sn=Hn.changeOnSelect,Un=Hn.expandTrigger,_n=Hn.expandIcon,Zt=Hn.loadingIcon,rn=Hn.dropdownMenuColumnStyle,wi=Un==="hover",Ci=Oe.useMemo(function(){return an.map(function(yi){var ci,Pi=yi.disabled,Mi=yi.disableCheckbox,ji=yi[Ce],lr=(ci=yi[dn])!==null&&ci!==void 0?ci:yi[ct.label],nr=yi[ct.value],Nn=Wt(yi,ct),Pr=ji?ji.map(function(Ki){return Ki[ct.value]}):[].concat((0,ye.Z)(vn),[nr]),Tr=pt(Pr),br=ht.includes(Tr),Cn=Yt.has(Tr),di=on.has(Tr);return{disabled:Pi,label:lr,value:nr,isLeaf:Nn,isLoading:br,checked:Cn,halfChecked:di,option:yi,disableCheckbox:Mi,fullPath:Pr,fullPathKey:Tr}})},[an,Yt,ct,on,ht,vn]);return Oe.createElement("ul",{className:It,role:"menu"},Ci.map(function(yi){var ci,Pi=yi.disabled,Mi=yi.label,ji=yi.value,lr=yi.isLeaf,nr=yi.isLoading,Nn=yi.checked,Pr=yi.halfChecked,Tr=yi.option,br=yi.fullPath,Cn=yi.fullPathKey,di=yi.disableCheckbox,Ki=function(){if(!(Pi||_t)){var Mr=(0,ye.Z)(br);wi&&lr&&Mr.pop(),ze(Mr)}},ir=function(){Qe(Tr)&&wt(br,lr)},Yi;return typeof Tr.title=="string"?Yi=Tr.title:typeof Mi=="string"&&(Yi=Mi),Oe.createElement("li",{key:Cn,className:De()(Fn,(ci={},(0,ge.Z)(ci,"".concat(Fn,"-expand"),!lr),(0,ge.Z)(ci,"".concat(Fn,"-active"),Jt===ji||Jt===Cn),(0,ge.Z)(ci,"".concat(Fn,"-disabled"),Pi),(0,ge.Z)(ci,"".concat(Fn,"-loading"),nr),ci)),style:rn,role:"menuitemcheckbox",title:Yi,"aria-checked":Nn,"data-path-key":Cn,onClick:function(){Ki(),!di&&(!Zn||lr)&&ir()},onDoubleClick:function(){sn&&xt(!1)},onMouseEnter:function(){wi&&Ki()},onMouseDown:function(Mr){Mr.preventDefault()}},Zn&&Oe.createElement(On,{prefixCls:"".concat(Qn,"-checkbox"),checked:Nn,halfChecked:Pr,disabled:Pi||di,disableCheckbox:di,onClick:function(Mr){di||(Mr.stopPropagation(),ir())}}),Oe.createElement("div",{className:"".concat(Fn,"-content")},Mi),!nr&&_n&&!lr&&Oe.createElement("div",{className:"".concat(Fn,"-expand-icon")},_n),nr&&Zt&&Oe.createElement("div",{className:"".concat(Fn,"-loading-icon")},Zt))}))}var mt=function(){var fn=(0,Ot.lk)(),Qn=fn.multiple,Zn=fn.open,an=Oe.useContext(ce),Jt=an.values,vn=Oe.useState([]),xt=(0,Et.Z)(vn,2),wt=xt[0],ze=xt[1];return Oe.useEffect(function(){if(Zn&&!Qn){var Yt=Jt[0];ze(Yt||[])}},[Zn]),[wt,ze]},Gn=ve(10228),xn=function(fn,Qn,Zn,an,Jt,vn){var xt=(0,Ot.lk)(),wt=xt.direction,ze=xt.searchValue,Yt=xt.toggleOpen,on=xt.open,ht=wt==="rtl",Qe=Oe.useMemo(function(){for(var rn=-1,wi=Qn,Ci=[],yi=[],ci=an.length,Pi=jt(Qn,Zn),Mi=function(Tr){var br=wi.findIndex(function(Cn,di){return(Pi[di]?pt(Pi[di]):Cn[Zn.value])===an[Tr]});if(br===-1)return"break";rn=br,Ci.push(rn),yi.push(an[Tr]),wi=wi[rn][Zn.children]},ji=0;ji<ci&&wi;ji+=1){var lr=Mi(ji);if(lr==="break")break}for(var nr=Qn,Nn=0;Nn<Ci.length-1;Nn+=1)nr=nr[Ci[Nn]][Zn.children];return[yi,rn,nr,Pi]},[an,Zn,Qn]),_t=(0,Et.Z)(Qe,4),It=_t[0],Fn=_t[1],Hn=_t[2],ct=_t[3],sn=function(wi){Jt(wi)},Un=function(wi){var Ci=Hn.length,yi=Fn;yi===-1&&wi<0&&(yi=Ci);for(var ci=0;ci<Ci;ci+=1){yi=(yi+wi+Ci)%Ci;var Pi=Hn[yi];if(Pi&&!Pi.disabled){var Mi=It.slice(0,-1).concat(ct[yi]?pt(ct[yi]):Pi[Zn.value]);sn(Mi);return}}},_n=function(){if(It.length>1){var wi=It.slice(0,-1);sn(wi)}else Yt(!1)},Zt=function(){var wi,Ci=((wi=Hn[Fn])===null||wi===void 0?void 0:wi[Zn.children])||[],yi=Ci.find(function(Pi){return!Pi.disabled});if(yi){var ci=[].concat((0,ye.Z)(It),[yi[Zn.value]]);sn(ci)}};Oe.useImperativeHandle(fn,function(){return{onKeyDown:function(wi){var Ci=wi.which;switch(Ci){case Gn.Z.UP:case Gn.Z.DOWN:{var yi=0;Ci===Gn.Z.UP?yi=-1:Ci===Gn.Z.DOWN&&(yi=1),yi!==0&&Un(yi);break}case Gn.Z.LEFT:{if(ze)break;ht?Zt():_n();break}case Gn.Z.RIGHT:{if(ze)break;ht?_n():Zt();break}case Gn.Z.BACKSPACE:{ze||_n();break}case Gn.Z.ENTER:{if(It.length){var ci=Hn[Fn],Pi=(ci==null?void 0:ci[Ce])||[];Pi.length?vn(Pi.map(function(Mi){return Mi[Zn.value]}),Pi[Pi.length-1]):vn(It,Hn[Fn])}break}case Gn.Z.ESC:Yt(!1),on&&wi.stopPropagation()}},onKeyUp:function(){}}})},tt=Oe.forwardRef(function(fn,Qn){var Zn,an,Jt,vn,xt=(0,Ot.lk)(),wt=xt.prefixCls,ze=xt.multiple,Yt=xt.searchValue,on=xt.toggleOpen,ht=xt.notFoundContent,Qe=xt.direction,_t=xt.open,It=Oe.useRef(),Fn=Qe==="rtl",Hn=Oe.useContext(ce),ct=Hn.options,sn=Hn.values,Un=Hn.halfValues,_n=Hn.fieldNames,Zt=Hn.changeOnSelect,rn=Hn.onSelect,wi=Hn.searchOptions,Ci=Hn.dropdownPrefixCls,yi=Hn.loadData,ci=Hn.expandTrigger,Pi=Ci||wt,Mi=Oe.useState([]),ji=(0,Et.Z)(Mi,2),lr=ji[0],nr=ji[1],Nn=function(Cr){if(!(!yi||Yt)){var Do=Ut(Cr,ct,_n),so=Do.map(function(hr){var Gr=hr.option;return Gr}),yr=so[so.length-1];if(yr&&!Wt(yr,_n)){var gr=pt(Cr);nr(function(hr){return[].concat((0,ye.Z)(hr),[gr])}),yi(so)}}};Oe.useEffect(function(){lr.length&&lr.forEach(function(Ur){var Cr=kt(Ur),Do=Ut(Cr,ct,_n,!0).map(function(yr){var gr=yr.option;return gr}),so=Do[Do.length-1];(!so||so[_n.children]||Wt(so,_n))&&nr(function(yr){return yr.filter(function(gr){return gr!==Ur})})})},[ct,lr,_n]);var Pr=Oe.useMemo(function(){return new Set(Je(sn))},[sn]),Tr=Oe.useMemo(function(){return new Set(Je(Un))},[Un]),br=mt(),Cn=(0,Et.Z)(br,2),di=Cn[0],Ki=Cn[1],ir=function(Cr){Ki(Cr),Nn(Cr)},Yi=function(Cr){var Do=Cr.disabled,so=Wt(Cr,_n);return!Do&&(so||Zt||ze)},cr=function(Cr,Do){var so=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;rn(Cr),!ze&&(Do||Zt&&(ci==="hover"||so))&&on(!1)},Mr=Oe.useMemo(function(){return Yt?wi:ct},[Yt,wi,ct]),Di=Oe.useMemo(function(){for(var Ur=[{options:Mr}],Cr=Mr,Do=jt(Cr,_n),so=function(){var Gr=di[yr],Oi=Cr.find(function(yt,Bt){return(Do[Bt]?pt(Do[Bt]):yt[_n.value])===Gr}),_e=Oi==null?void 0:Oi[_n.children];if(!(_e!=null&&_e.length))return"break";Cr=_e,Ur.push({options:_e})},yr=0;yr<di.length;yr+=1){var gr=so();if(gr==="break")break}return Ur},[Mr,di,_n]),Ui=function(Cr,Do){Yi(Do)&&cr(Cr,Wt(Do,_n),!0)};xn(Qn,Mr,_n,di,ir,Ui),Oe.useEffect(function(){for(var Ur=0;Ur<di.length;Ur+=1){var Cr,Do=di.slice(0,Ur+1),so=pt(Do),yr=(Cr=It.current)===null||Cr===void 0?void 0:Cr.querySelector('li[data-path-key="'.concat(so.replace(/\\{0,2}"/g,'\\"'),'"]'));yr&&zt(yr)}},[di]);var Wi=!((Zn=Di[0])!==null&&Zn!==void 0&&(an=Zn.options)!==null&&an!==void 0&&an.length),Dn=[(Jt={},(0,ge.Z)(Jt,_n.value,"__EMPTY__"),(0,ge.Z)(Jt,dn,ht),(0,ge.Z)(Jt,"disabled",!0),Jt)],Fr=(0,me.Z)((0,me.Z)({},fn),{},{multiple:!Wi&&ze,onSelect:cr,onActive:ir,onToggleOpen:on,checkedSet:Pr,halfCheckedSet:Tr,loadingKeys:lr,isSelectable:Yi}),Ln=Wi?[{options:Dn}]:Di,fr=Ln.map(function(Ur,Cr){var Do=di.slice(0,Cr),so=di[Cr];return Oe.createElement(Tn,(0,Tt.Z)({key:Cr},Fr,{searchValue:Yt,prefixCls:Pi,options:Ur.options,prevValuePath:Do,activeValue:so}))});return Oe.createElement(nn,{open:_t},Oe.createElement("div",{className:De()("".concat(Pi,"-menus"),(vn={},(0,ge.Z)(vn,"".concat(Pi,"-menu-empty"),Wi),(0,ge.Z)(vn,"".concat(Pi,"-rtl"),Fn),vn)),ref:It},fr))}),Ee=tt;function we(fn){var Qn=fn.onPopupVisibleChange,Zn=fn.popupVisible,an=fn.popupClassName,Jt=fn.popupPlacement;warning(!Qn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Zn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(an===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Jt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Be(fn,Qn){if(fn){var Zn=function an(Jt){for(var vn=0;vn<Jt.length;vn++){var xt=Jt[vn];if(xt[Qn==null?void 0:Qn.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(xt[Qn==null?void 0:Qn.children])&&an(xt[Qn==null?void 0:Qn.children]))return!0}};Zn(fn)}}var ke=null,Se=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function st(fn){return Array.isArray(fn)&&Array.isArray(fn[0])}function At(fn){return fn?st(fn)?fn:(fn.length===0?[]:[fn]).map(function(Qn){return Array.isArray(Qn)?Qn:[Qn]}):[]}var Ve=Oe.forwardRef(function(fn,Qn){var Zn=fn.id,an=fn.prefixCls,Jt=an===void 0?"rc-cascader":an,vn=fn.fieldNames,xt=fn.defaultValue,wt=fn.value,ze=fn.changeOnSelect,Yt=fn.onChange,on=fn.displayRender,ht=fn.checkable,Qe=fn.autoClearSearchValue,_t=Qe===void 0?!0:Qe,It=fn.searchValue,Fn=fn.onSearch,Hn=fn.showSearch,ct=fn.expandTrigger,sn=fn.options,Un=fn.dropdownPrefixCls,_n=fn.loadData,Zt=fn.popupVisible,rn=fn.open,wi=fn.popupClassName,Ci=fn.dropdownClassName,yi=fn.dropdownMenuColumnStyle,ci=fn.popupPlacement,Pi=fn.placement,Mi=fn.onDropdownVisibleChange,ji=fn.onPopupVisibleChange,lr=fn.expandIcon,nr=lr===void 0?">":lr,Nn=fn.loadingIcon,Pr=fn.children,Tr=fn.dropdownMatchSelectWidth,br=Tr===void 0?!1:Tr,Cn=fn.showCheckedStrategy,di=Cn===void 0?Ke:Cn,Ki=(0,et.Z)(fn,Se),ir=(0,it.ZP)(Zn),Yi=!!ht,cr=(0,te.Z)(xt,{value:wt,postState:At}),Mr=(0,Et.Z)(cr,2),Di=Mr[0],Ui=Mr[1],Wi=Oe.useMemo(function(){return Xe(vn)},[JSON.stringify(vn)]),Dn=Oe.useMemo(function(){return sn||[]},[sn]),Fr=Lt(Dn,Wi),Ln=Oe.useCallback(function(to){var Jr=Fr();return to.map(function(eo){var Zo=Jr[eo].nodes;return Zo.map(function($o){return $o[Wi.value]})})},[Fr,Wi]),fr=(0,te.Z)("",{value:It,postState:function(Jr){return Jr||""}}),Ur=(0,Et.Z)(fr,2),Cr=Ur[0],Do=Ur[1],so=function(Jr,eo){Do(Jr),eo.source!=="blur"&&Fn&&Fn(Jr)},yr=Nt(Hn),gr=(0,Et.Z)(yr,2),hr=gr[0],Gr=gr[1],Oi=Ie(Cr,Dn,Wi,Un||Jt,Gr,ze),_e=yn(Dn,Wi),yt=Oe.useMemo(function(){var to=_e(Di),Jr=(0,Et.Z)(to,2),eo=Jr[0],Zo=Jr[1];if(!Yi||!Di.length)return[eo,[],Zo];var $o=Je(eo),ia=Fr(),qo=(0,Pt.S)($o,!0,ia),Sn=qo.checkedKeys,oa=qo.halfCheckedKeys;return[Ln(Sn),Ln(oa),Zo]},[Yi,Di,Fr,Ln,_e]),Bt=(0,Et.Z)(yt,3),ln=Bt[0],jn=Bt[1],ri=Bt[2],tn=Oe.useMemo(function(){var to=Je(ln),Jr=Mt(to,Fr,di);return[].concat((0,ye.Z)(ri),(0,ye.Z)(Ln(Jr)))},[ln,Fr,Ln,ri,di]),bn=ft(tn,Dn,Wi,Yi,on),Xn=(0,Me.Z)(function(to){if(Ui(to),Yt){var Jr=At(to),eo=Jr.map(function(ia){return Ut(ia,Dn,Wi).map(function(qo){return qo.option})}),Zo=Yi?Jr:Jr[0],$o=Yi?eo:eo[0];Yt(Zo,$o)}}),Kn=(0,Me.Z)(function(to){if((!Yi||_t)&&Do(""),!Yi)Xn(to);else{var Jr=pt(to),eo=Je(ln),Zo=Je(jn),$o=eo.includes(Jr),ia=ri.some(function(wa){return pt(wa)===Jr}),qo=ln,Sn=ri;if(ia&&!$o)Sn=ri.filter(function(wa){return pt(wa)!==Jr});else{var oa=$o?eo.filter(function(wa){return wa!==Jr}):[].concat((0,ye.Z)(eo),[Jr]),vs=Fr(),Ga;if($o){var Zs=(0,Pt.S)(oa,{checked:!1,halfCheckedKeys:Zo},vs);Ga=Zs.checkedKeys}else{var xa=(0,Pt.S)(oa,!0,vs);Ga=xa.checkedKeys}var pl=Mt(Ga,Fr,di);qo=Ln(pl)}Xn([].concat((0,ye.Z)(Sn),(0,ye.Z)(qo)))}}),Ei=function(Jr,eo){if(eo.type==="clear"){Xn([]);return}var Zo=eo.values[0],$o=Zo.valueCells;Kn($o)},vr=rn!==void 0?rn:Zt,Ai=Ci||wi,Bi=Pi||ci,zn=function(Jr){Mi==null||Mi(Jr),ji==null||ji(Jr)},pr=Oe.useMemo(function(){return{options:Dn,fieldNames:Wi,values:ln,halfValues:jn,changeOnSelect:ze,onSelect:Kn,checkable:ht,searchOptions:Oi,dropdownPrefixCls:Un,loadData:_n,expandTrigger:ct,expandIcon:nr,loadingIcon:Nn,dropdownMenuColumnStyle:yi}},[Dn,Wi,ln,jn,ze,Kn,ht,Oi,Un,_n,ct,nr,Nn,yi]),kr=!(Cr?Oi:Dn).length,po=Cr&&Gr.matchInputWidth||kr?{}:{minWidth:"auto"};return Oe.createElement(ce.Provider,{value:pr},Oe.createElement(Ot.Ac,(0,Tt.Z)({},Ki,{ref:Qn,id:ir,prefixCls:Jt,autoClearSearchValue:_t,dropdownMatchSelectWidth:br,dropdownStyle:po,displayValues:bn,onDisplayValuesChange:Ei,mode:Yi?"multiple":void 0,searchValue:Cr,onSearch:so,showSearch:hr,OptionList:Ee,emptyOptions:kr,open:vr,dropdownClassName:Ai,placement:Bi,onDropdownVisibleChange:zn,getRawInputElement:function(){return Pr}})))});Ve.SHOW_PARENT=Ke,Ve.SHOW_CHILD=Ye;var We=Ve,Ct=We,bt=ve(2738),dt=ve(62892),Ht=ve(53487),En=ve(19080),An=ve(36355),qt=ve(93891),cn=ve(1684),qn=ve(19716),wn=ve(32441),vi=ve(14154),ei=ve(58582),Li=ve(84443),Vi=ve(66339),zi=ve(33234),Bn=ve(98447),rr=ve(17313),Yr=ve(74207),zr=ve(83116);const Zr=fn=>{const{prefixCls:Qn,componentCls:Zn,antCls:an}=fn,Jt=`${Zn}-menu-item`,vn=`
&${Jt}-expand ${Jt}-expand-icon,
${Jt}-loading-icon
`;return[{[Zn]:{width:fn.controlWidth}},{[`${Zn}-dropdown`]:[(0,Bn.C2)(`${Qn}-checkbox`,fn),{[`&${an}-select-dropdown`]:{padding:0}},{[Zn]:{"&-checkbox":{top:0,marginInlineEnd:fn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Zn}-menu-empty`]:{[`${Zn}-menu`]:{width:"100%",height:"auto",[Jt]:{color:fn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:fn.controlItemWidth,height:fn.dropdownHeight,margin:0,padding:fn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${fn.lineWidth}px ${fn.lineType} ${fn.colorSplit}`},"&-item":Object.assign(Object.assign({},rr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:fn.optionPadding,lineHeight:fn.lineHeight,cursor:"pointer",transition:`all ${fn.motionDurationMid}`,borderRadius:fn.borderRadiusSM,"&:hover":{background:fn.controlItemBgHover},"&-disabled":{color:fn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[vn]:{color:fn.colorTextDisabled}},[`&-active:not(${Jt}-disabled)`]:{"&, &:hover":{fontWeight:fn.optionSelectedFontWeight,backgroundColor:fn.optionSelectedBg}},"&-content":{flex:"auto"},[vn]:{marginInlineStart:fn.paddingXXS,color:fn.colorTextDescription,fontSize:fn.fontSizeIcon},"&-keyword":{color:fn.colorHighlight}})}}}]},{[`${Zn}-dropdown-rtl`]:{direction:"rtl"}},(0,Yr.c)(fn)]};var Nr=(0,zr.Z)("Cascader",fn=>[Zr(fn)],fn=>{const Qn=Math.round((fn.controlHeight-fn.fontSize*fn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:fn.controlItemBgActive,optionSelectedFontWeight:fn.fontWeightStrong,optionPadding:`${Qn}px ${fn.paddingSM}px`,menuPadding:fn.paddingXXS}}),Co=function(fn,Qn){var Zn={};for(var an in fn)Object.prototype.hasOwnProperty.call(fn,an)&&Qn.indexOf(an)<0&&(Zn[an]=fn[an]);if(fn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,an=Object.getOwnPropertySymbols(fn);Jt<an.length;Jt++)Qn.indexOf(an[Jt])<0&&Object.prototype.propertyIsEnumerable.call(fn,an[Jt])&&(Zn[an[Jt]]=fn[an[Jt]]);return Zn};const{SHOW_CHILD:$r,SHOW_PARENT:sr}=Ct;function Fo(fn,Qn,Zn){const an=fn.toLowerCase().split(Qn).reduce((xt,wt,ze)=>ze===0?[wt]:[].concat((0,ye.Z)(xt),[Qn,wt]),[]),Jt=[];let vn=0;return an.forEach((xt,wt)=>{const ze=vn+xt.length;let Yt=fn.slice(vn,ze);vn=ze,wt%2===1&&(Yt=Oe.createElement("span",{className:`${Zn}-menu-item-keyword`,key:`separator-${wt}`},Yt)),Jt.push(Yt)}),Jt}const ti=(fn,Qn,Zn,an)=>{const Jt=[],vn=fn.toLowerCase();return Qn.forEach((xt,wt)=>{wt!==0&&Jt.push(" / ");let ze=xt[an.label];const Yt=typeof ze;(Yt==="string"||Yt==="number")&&(ze=Fo(String(ze),vn,Zn)),Jt.push(ze)}),Jt},Ae=Oe.forwardRef((fn,Qn)=>{const{prefixCls:Zn,size:an,disabled:Jt,className:vn,rootClassName:xt,multiple:wt,bordered:ze=!0,transitionName:Yt,choiceTransitionName:on="",popupClassName:ht,dropdownClassName:Qe,expandIcon:_t,placement:It,showSearch:Fn,allowClear:Hn=!0,notFoundContent:ct,direction:sn,getPopupContainer:Un,status:_n,showArrow:Zt,builtinPlacements:rn,style:wi}=fn,Ci=Co(fn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),yi=(0,bt.Z)(Ci,["suffixIcon"]),{getPopupContainer:ci,getPrefixCls:Pi,renderEmpty:Mi,direction:ji,popupOverflow:lr,cascader:nr}=Oe.useContext(An.E_),Nn=sn||ji,Pr=Nn==="rtl",{status:Tr,hasFeedback:br,isFormItemInput:Cn,feedbackIcon:di}=Oe.useContext(wn.aM),Ki=(0,En.F)(Tr,_n),ir=ct||(Mi==null?void 0:Mi("Cascader"))||Oe.createElement(qt.Z,{componentName:"Cascader"}),Yi=Pi(),cr=Pi("select",Zn),Mr=Pi("cascader",Zn),[Di,Ui]=(0,vi.Z)(cr),[Wi]=Nr(Mr),{compactSize:Dn,compactItemClassnames:Fr}=(0,zi.ri)(cr,sn),Ln=De()(ht||Qe,`${Mr}-dropdown`,{[`${Mr}-dropdown-rtl`]:Nn==="rtl"},xt,Ui),fr=Oe.useMemo(()=>{if(!Fn)return Fn;let ri={render:ti};return typeof Fn=="object"&&(ri=Object.assign(Object.assign({},ri),Fn)),ri},[Fn]),Ur=(0,qn.Z)(ri=>{var tn;return(tn=an!=null?an:Dn)!==null&&tn!==void 0?tn:ri}),Cr=Oe.useContext(cn.Z),Do=Jt!=null?Jt:Cr;let so=_t;_t||(so=Pr?Oe.createElement(He.Z,null):Oe.createElement($e.Z,null));const yr=Oe.createElement("span",{className:`${cr}-menu-item-loading-icon`},Oe.createElement(Rt.Z,{spin:!0})),gr=Oe.useMemo(()=>wt?Oe.createElement("span",{className:`${Mr}-checkbox-inner`}):!1,[wt]),hr=(0,Li.Z)(fn.suffixIcon,Zt),{suffixIcon:Gr,removeIcon:Oi,clearIcon:_e}=(0,Vi.Z)(Object.assign(Object.assign({},fn),{hasFeedback:br,feedbackIcon:di,showSuffixIcon:hr,multiple:wt,prefixCls:cr,componentName:"Cascader"})),yt=Oe.useMemo(()=>It!==void 0?It:Pr?"bottomRight":"bottomLeft",[It,Pr]),Bt=(0,ei.Z)(rn,lr),ln=Hn===!0?{clearIcon:_e}:Hn,jn=Oe.createElement(Ct,Object.assign({prefixCls:cr,className:De()(!Zn&&Mr,{[`${cr}-lg`]:Ur==="large",[`${cr}-sm`]:Ur==="small",[`${cr}-rtl`]:Pr,[`${cr}-borderless`]:!ze,[`${cr}-in-form-item`]:Cn},(0,En.Z)(cr,Ki,br),Fr,nr==null?void 0:nr.className,vn,xt,Ui),disabled:Do,style:Object.assign(Object.assign({},nr==null?void 0:nr.style),wi)},yi,{builtinPlacements:Bt,direction:Nn,placement:yt,notFoundContent:ir,allowClear:ln,showSearch:fr,expandIcon:so,suffixIcon:Gr,removeIcon:Oi,loadingIcon:yr,checkable:gr,dropdownClassName:Ln,dropdownPrefixCls:Zn||Mr,choiceTransitionName:(0,dt.m)(Yi,"",on),transitionName:(0,dt.m)(Yi,"slide-up",Yt),getPopupContainer:Un||ci,ref:Qn}));return Wi(Di(jn))}),$n=(0,Ht.Z)(Ae);Ae.SHOW_PARENT=sr,Ae.SHOW_CHILD=$r,Ae._InternalPanelDoNotUseOrYouWillBeFired=$n;var oi=Ae},24905:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return Ie}});var ye=ve(92310),Oe=ve.n(ye),He=ve(5630),Rt=ve(59301),$e=ve(36355),qe=ve(1684),De=ve(32441),Et=Rt.createContext(null),et=ve(98447),Ot=ve(14088),it=ve(4572),Pt=function(Ge,Ke){var Ye={};for(var pt in Ge)Object.prototype.hasOwnProperty.call(Ge,pt)&&Ke.indexOf(pt)<0&&(Ye[pt]=Ge[pt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,pt=Object.getOwnPropertySymbols(Ge);Je<pt.length;Je++)Ke.indexOf(pt[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ge,pt[Je])&&(Ye[pt[Je]]=Ge[pt[Je]]);return Ye};const Me=(Ge,Ke)=>{var Ye;const{prefixCls:pt,className:Je,rootClassName:kt,children:Xe,indeterminate:Wt=!1,style:zt,onMouseEnter:jt,onMouseLeave:Mt,skipGroup:Ut=!1,disabled:ft}=Ge,Re=Pt(Ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Lt,direction:yn,checkbox:mn}=Rt.useContext($e.E_),Nt=Rt.useContext(Et),{isFormItemInput:en}=Rt.useContext(De.aM),nn=Rt.useContext(qe.Z),On=(Ye=(Nt==null?void 0:Nt.disabled)||ft)!==null&&Ye!==void 0?Ye:nn,dn=Rt.useRef(Re.value);Rt.useEffect(()=>{Nt==null||Nt.registerValue(Re.value)},[]),Rt.useEffect(()=>{if(!Ut)return Re.value!==dn.current&&(Nt==null||Nt.cancelValue(dn.current),Nt==null||Nt.registerValue(Re.value),dn.current=Re.value),()=>Nt==null?void 0:Nt.cancelValue(Re.value)},[Re.value]);const Tn=Lt("checkbox",pt),[mt,Gn]=(0,et.ZP)(Tn),xn=Object.assign({},Re);Nt&&!Ut&&(xn.onChange=function(){Re.onChange&&Re.onChange.apply(Re,arguments),Nt.toggleOption&&Nt.toggleOption({label:Xe,value:Re.value})},xn.name=Nt.name,xn.checked=Nt.value.includes(Re.value));const tt=Oe()(`${Tn}-wrapper`,{[`${Tn}-rtl`]:yn==="rtl",[`${Tn}-wrapper-checked`]:xn.checked,[`${Tn}-wrapper-disabled`]:On,[`${Tn}-wrapper-in-form-item`]:en},mn==null?void 0:mn.className,Je,kt,Gn),Ee=Oe()({[`${Tn}-indeterminate`]:Wt},it.A,Gn),we=Wt?"mixed":void 0;return mt(Rt.createElement(Ot.Z,{component:"Checkbox",disabled:On},Rt.createElement("label",{className:tt,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),zt),onMouseEnter:jt,onMouseLeave:Mt},Rt.createElement(He.Z,Object.assign({"aria-checked":we},xn,{prefixCls:Tn,className:Ee,disabled:On,ref:Ke})),Xe!==void 0&&Rt.createElement("span",null,Xe))))};var ne=Rt.forwardRef(Me),ce=ve(26407),se=ve(2738),ge=function(Ge,Ke){var Ye={};for(var pt in Ge)Object.prototype.hasOwnProperty.call(Ge,pt)&&Ke.indexOf(pt)<0&&(Ye[pt]=Ge[pt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,pt=Object.getOwnPropertySymbols(Ge);Je<pt.length;Je++)Ke.indexOf(pt[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ge,pt[Je])&&(Ye[pt[Je]]=Ge[pt[Je]]);return Ye};const me=(Ge,Ke)=>{const{defaultValue:Ye,children:pt,options:Je=[],prefixCls:kt,className:Xe,rootClassName:Wt,style:zt,onChange:jt}=Ge,Mt=ge(Ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ut,direction:ft}=Rt.useContext($e.E_),[Re,Lt]=Rt.useState(Mt.value||Ye||[]),[yn,mn]=Rt.useState([]);Rt.useEffect(()=>{"value"in Mt&&Lt(Mt.value||[])},[Mt.value]);const Nt=Rt.useMemo(()=>Je.map(Be=>typeof Be=="string"||typeof Be=="number"?{label:Be,value:Be}:Be),[Je]),en=Be=>{mn(ke=>ke.filter(Se=>Se!==Be))},nn=Be=>{mn(ke=>[].concat((0,ce.Z)(ke),[Be]))},On=Be=>{const ke=Re.indexOf(Be.value),Se=(0,ce.Z)(Re);ke===-1?Se.push(Be.value):Se.splice(ke,1),"value"in Mt||Lt(Se),jt==null||jt(Se.filter(st=>yn.includes(st)).sort((st,At)=>{const Ve=Nt.findIndex(Ct=>Ct.value===st),We=Nt.findIndex(Ct=>Ct.value===At);return Ve-We}))},dn=Ut("checkbox",kt),Tn=`${dn}-group`,[mt,Gn]=(0,et.ZP)(dn),xn=(0,se.Z)(Mt,["value","disabled"]),tt=Je.length?Nt.map(Be=>Rt.createElement(ne,{prefixCls:dn,key:Be.value.toString(),disabled:"disabled"in Be?Be.disabled:Mt.disabled,value:Be.value,checked:Re.includes(Be.value),onChange:Be.onChange,className:`${Tn}-item`,style:Be.style,title:Be.title},Be.label)):pt,Ee={toggleOption:On,value:Re,disabled:Mt.disabled,name:Mt.name,registerValue:nn,cancelValue:en},we=Oe()(Tn,{[`${Tn}-rtl`]:ft==="rtl"},Xe,Wt,Gn);return mt(Rt.createElement("div",Object.assign({className:we,style:zt},xn,{ref:Ke}),Rt.createElement(Et.Provider,{value:Ee},tt)))},Ce=Rt.forwardRef(me);var Fe=Rt.memo(Ce);const Pe=ne;Pe.Group=Fe,Pe.__ANT_CHECKBOX=!0;var Ie=Pe},98447:function(Rn,Mn,ve){"use strict";ve.d(Mn,{C2:function(){return $e}});var ye=ve(17313),Oe=ve(37613),He=ve(83116);const Rt=qe=>{const{checkboxCls:De}=qe,Tt=`${De}-wrapper`;return[{[`${De}-group`]:Object.assign(Object.assign({},(0,ye.Wf)(qe)),{display:"inline-flex",flexWrap:"wrap",columnGap:qe.marginXS,[`> ${qe.antCls}-row`]:{flex:1}}),[Tt]:Object.assign(Object.assign({},(0,ye.Wf)(qe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Tt}`]:{marginInlineStart:0},[`&${Tt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[De]:Object.assign(Object.assign({},(0,ye.Wf)(qe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:qe.borderRadiusSM,alignSelf:"center",[`${De}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${De}-inner`]:Object.assign({},(0,ye.oN)(qe))},[`${De}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:qe.checkboxSize,height:qe.checkboxSize,direction:"ltr",backgroundColor:qe.colorBgContainer,border:`${qe.lineWidth}px ${qe.lineType} ${qe.colorBorder}`,borderRadius:qe.borderRadiusSM,borderCollapse:"separate",transition:`all ${qe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:qe.checkboxSize/14*5,height:qe.checkboxSize/14*8,border:`${qe.lineWidthBold}px solid ${qe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${qe.motionDurationFast} ${qe.motionEaseInBack}, opacity ${qe.motionDurationFast}`}},"& + span":{paddingInlineStart:qe.paddingXS,paddingInlineEnd:qe.paddingXS}})},{[`
${Tt}:not(${Tt}-disabled),
${De}:not(${De}-disabled)
`]:{[`&:hover ${De}-inner`]:{borderColor:qe.colorPrimary}},[`${Tt}:not(${Tt}-disabled)`]:{[`&:hover ${De}-checked:not(${De}-disabled) ${De}-inner`]:{backgroundColor:qe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${De}-checked:not(${De}-disabled):after`]:{borderColor:qe.colorPrimaryHover}}},{[`${De}-checked`]:{[`${De}-inner`]:{backgroundColor:qe.colorPrimary,borderColor:qe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${qe.motionDurationMid} ${qe.motionEaseOutBack} ${qe.motionDurationFast}`}}},[`
${Tt}-checked:not(${Tt}-disabled),
${De}-checked:not(${De}-disabled)
`]:{[`&:hover ${De}-inner`]:{backgroundColor:qe.colorPrimaryHover,borderColor:"transparent"}}},{[De]:{"&-indeterminate":{[`${De}-inner`]:{backgroundColor:qe.colorBgContainer,borderColor:qe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:qe.fontSizeLG/2,height:qe.fontSizeLG/2,backgroundColor:qe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Tt}-disabled`]:{cursor:"not-allowed"},[`${De}-disabled`]:{[`&, ${De}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${De}-inner`]:{background:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,"&:after":{borderColor:qe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:qe.colorTextDisabled},[`&${De}-indeterminate ${De}-inner::after`]:{background:qe.colorTextDisabled}}}]};function $e(qe,De){const Tt=(0,Oe.TS)(De,{checkboxCls:`.${qe}`,checkboxSize:De.controlInteractiveSize});return[Rt(Tt)]}Mn.ZP=(0,He.Z)("Checkbox",(qe,De)=>{let{prefixCls:Tt}=De;return[$e(Tt,qe)]})},93891:function(Rn,Mn,ve){"use strict";var ye=ve(59301),Oe=ve(36355),He=ve(64165);const Rt=$e=>{const{componentName:qe}=$e,{getPrefixCls:De}=(0,ye.useContext)(Oe.E_),Tt=De("empty");switch(qe){case"Table":case"List":return ye.createElement(He.Z,{image:He.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ye.createElement(He.Z,{image:He.Z.PRESENTED_IMAGE_SIMPLE,className:`${Tt}-small`});default:return ye.createElement(He.Z,null)}};Mn.Z=Rt},5083:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return ol}});var ye=ve(61186),Oe=ve.n(ye),He=ve(48736),Rt=ve(90111),$e=ve.n(Rt),qe=ve(58319),De=ve.n(qe),Tt=ve(23250),Et=ve.n(Tt),et=ve(74959),Ot=ve.n(et),it=ve(10238),Pt=ve.n(it),Me=ve(33656),te=ve.n(Me);Oe().extend(te()),Oe().extend(Pt()),Oe().extend($e()),Oe().extend(De()),Oe().extend(Et()),Oe().extend(Ot()),Oe().extend(function(je,nt){var ut=nt.prototype,$t=ut.format;ut.format=function(In){var Wn=(In||"").replace("Wo","wo");return $t.bind(this)(Wn)}});var ne={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ce=function(nt){var ut=ne[nt];return ut||nt.split("_")[0]},se=function(){(0,He.ET)(!1,"Not match any format. Please help to fire a issue about this.")},ge={getNow:function(){return Oe()()},getFixedDate:function(nt){return Oe()(nt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(nt){return nt.endOf("month")},getWeekDay:function(nt){var ut=nt.locale("en");return ut.weekday()+ut.localeData().firstDayOfWeek()},getYear:function(nt){return nt.year()},getMonth:function(nt){return nt.month()},getDate:function(nt){return nt.date()},getHour:function(nt){return nt.hour()},getMinute:function(nt){return nt.minute()},getSecond:function(nt){return nt.second()},addYear:function(nt,ut){return nt.add(ut,"year")},addMonth:function(nt,ut){return nt.add(ut,"month")},addDate:function(nt,ut){return nt.add(ut,"day")},setYear:function(nt,ut){return nt.year(ut)},setMonth:function(nt,ut){return nt.month(ut)},setDate:function(nt,ut){return nt.date(ut)},setHour:function(nt,ut){return nt.hour(ut)},setMinute:function(nt,ut){return nt.minute(ut)},setSecond:function(nt,ut){return nt.second(ut)},isAfter:function(nt,ut){return nt.isAfter(ut)},isValidate:function(nt){return nt.isValid()},locale:{getWeekFirstDay:function(nt){return Oe()().locale(ce(nt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(nt,ut){return ut.locale(ce(nt)).weekday(0)},getWeek:function(nt,ut){return ut.locale(ce(nt)).week()},getShortWeekDays:function(nt){return Oe()().locale(ce(nt)).localeData().weekdaysMin()},getShortMonths:function(nt){return Oe()().locale(ce(nt)).localeData().monthsShort()},format:function(nt,ut,$t){return ut.locale(ce(nt)).format($t)},parse:function(nt,ut,$t){for(var un=ce(nt),In=0;In<$t.length;In+=1){var Wn=$t[In],ui=ut;if(Wn.includes("wo")||Wn.includes("Wo")){for(var fi=ui.split("-")[0],Ni=ui.split("-")[1],ar=Oe()(fi,"YYYY").startOf("year").locale(un),Fi=0;Fi<=52;Fi+=1){var _i=ar.add(Fi,"week");if(_i.format("Wo")===Ni)return _i}return se(),null}var bi=Oe()(ui,Wn,!0).locale(un);if(bi.isValid())return bi}return ut&&se(),null}}},me=ge,Ce=ve(53487),Fe=ve(92413),Pe=ve(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Ge=Ie,Ke=ve(7657),Ye=function(nt,ut){return Pe.createElement(Ke.Z,(0,Fe.Z)({},nt,{ref:ut,icon:Ge}))},pt=Pe.forwardRef(Ye),Je=pt,kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Xe=kt,Wt=function(nt,ut){return Pe.createElement(Ke.Z,(0,Fe.Z)({},nt,{ref:ut,icon:Xe}))},zt=Pe.forwardRef(Wt),jt=zt,Mt=ve(19248),Ut={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ft=Ut,Re=function(nt,ut){return Pe.createElement(Ke.Z,(0,Fe.Z)({},nt,{ref:ut,icon:ft}))},Lt=Pe.forwardRef(Re),yn=Lt,mn=ve(92310),Nt=ve.n(mn),en=ve(6909),nn=ve(4771),On=ve(25314),dn=ve(9427),Tn=ve(25440),mt=ve(400),Gn=ve(33708),xn=ve(33606),tt=ve(18929),Ee=ve(26112),we=ve(80547),Be=ve(13697),ke=10,Se=ke*10,st=7;function At(je,nt){if(!je&&!nt)return!0;if(!je||!nt)return!1}function Ve(je,nt,ut){var $t=At(nt,ut);if(typeof $t=="boolean")return $t;var un=Math.floor(je.getYear(nt)/10),In=Math.floor(je.getYear(ut)/10);return un===In}function We(je,nt,ut){var $t=At(nt,ut);return typeof $t=="boolean"?$t:je.getYear(nt)===je.getYear(ut)}function Ct(je,nt){var ut=Math.floor(je.getMonth(nt)/3);return ut+1}function bt(je,nt,ut){var $t=At(nt,ut);return typeof $t=="boolean"?$t:We(je,nt,ut)&&Ct(je,nt)===Ct(je,ut)}function dt(je,nt,ut){var $t=At(nt,ut);return typeof $t=="boolean"?$t:We(je,nt,ut)&&je.getMonth(nt)===je.getMonth(ut)}function Ht(je,nt,ut){var $t=At(nt,ut);return typeof $t=="boolean"?$t:je.getYear(nt)===je.getYear(ut)&&je.getMonth(nt)===je.getMonth(ut)&&je.getDate(nt)===je.getDate(ut)}function En(je,nt,ut){var $t=At(nt,ut);return typeof $t=="boolean"?$t:je.getHour(nt)===je.getHour(ut)&&je.getMinute(nt)===je.getMinute(ut)&&je.getSecond(nt)===je.getSecond(ut)}function An(je,nt,ut,$t){var un=At(ut,$t);return typeof un=="boolean"?un:We(je,ut,$t)&&je.locale.getWeek(nt,ut)===je.locale.getWeek(nt,$t)}function qt(je,nt,ut){return Ht(je,nt,ut)&&En(je,nt,ut)}function cn(je,nt,ut,$t){return!nt||!ut||!$t?!1:!Ht(je,nt,$t)&&!Ht(je,ut,$t)&&je.isAfter($t,nt)&&je.isAfter(ut,$t)}function qn(je,nt,ut){var $t=nt.locale.getWeekFirstDay(je),un=nt.setDate(ut,1),In=nt.getWeekDay(un),Wn=nt.addDate(un,$t-In);return nt.getMonth(Wn)===nt.getMonth(ut)&&nt.getDate(Wn)>1&&(Wn=nt.addDate(Wn,-7)),Wn}function wn(je,nt,ut){var $t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(nt){case"year":return ut.addYear(je,$t*10);case"quarter":case"month":return ut.addYear(je,$t);default:return ut.addMonth(je,$t)}}function vi(je,nt){var ut=nt.generateConfig,$t=nt.locale,un=nt.format;return typeof un=="function"?un(je):ut.locale.format($t.locale,je,un)}function ei(je,nt){var ut=nt.generateConfig,$t=nt.locale,un=nt.formatList;return!je||typeof un[0]=="function"?null:ut.locale.parse($t.locale,je,un)}function Li(je){var nt=je.cellDate,ut=je.mode,$t=je.disabledDate,un=je.generateConfig;if(!$t)return!1;var In=function(xr,ai,$i){for(var wr=ai;wr<=$i;){var co=void 0;switch(xr){case"date":{if(co=un.setDate(nt,wr),!$t(co))return!1;break}case"month":{if(co=un.setMonth(nt,wr),!Li({cellDate:co,mode:"month",generateConfig:un,disabledDate:$t}))return!1;break}case"year":{if(co=un.setYear(nt,wr),!Li({cellDate:co,mode:"year",generateConfig:un,disabledDate:$t}))return!1;break}}wr+=1}return!0};switch(ut){case"date":case"week":return $t(nt);case"month":{var Wn=1,ui=un.getDate(un.getEndDate(nt));return In("date",Wn,ui)}case"quarter":{var fi=Math.floor(un.getMonth(nt)/3)*3,Ni=fi+2;return In("month",fi,Ni)}case"year":return In("month",0,11);case"decade":{var ar=un.getYear(nt),Fi=Math.floor(ar/ke)*ke,_i=Fi+ke-1;return In("year",Fi,_i)}}}function Vi(je,nt){var ut=nt.formatList,$t=nt.generateConfig,un=nt.locale;return(0,we.Z)(function(){if(!je)return[[""],""];for(var In="",Wn=[],ui=0;ui<ut.length;ui+=1){var fi=ut[ui],Ni=vi(je,{generateConfig:$t,locale:un,format:fi});Wn.push(Ni),ui===0&&(In=Ni)}return[Wn,In]},[je,ut,un],function(In,Wn){return!qt($t,In[0],Wn[0])||!(0,Be.Z)(In[1],Wn[1],!0)||!(0,Be.Z)(In[2],Wn[2],!0)})}function zi(je,nt){var ut=nt.formatList,$t=nt.generateConfig,un=nt.locale,In=(0,Pe.useState)(null),Wn=(0,xn.Z)(In,2),ui=Wn[0],fi=Wn[1],Ni=(0,Pe.useRef)(null);function ar($i){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Ni.current),wr){fi($i);return}Ni.current=requestAnimationFrame(function(){fi($i)})}var Fi=Vi(ui,{formatList:ut,generateConfig:$t,locale:un}),_i=(0,xn.Z)(Fi,2),bi=_i[1];function xr($i){ar($i)}function ai(){var $i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ar(null,$i)}return(0,Pe.useEffect)(function(){ai(!0)},[je]),(0,Pe.useEffect)(function(){return function(){return cancelAnimationFrame(Ni.current)}},[]),[bi,xr,ai]}var Bn=ve(10228),rr=ve(16089),Yr=ve(26407),zr=ve(29194),Zr=new Map;function Nr(je,nt){var ut;function $t(){(0,zr.Z)(je)?nt():ut=(0,rr.Z)(function(){$t()})}return $t(),function(){rr.Z.cancel(ut)}}function Co(je,nt,ut){if(Zr.get(je)&&cancelAnimationFrame(Zr.get(je)),ut<=0){Zr.set(je,requestAnimationFrame(function(){je.scrollTop=nt}));return}var $t=nt-je.scrollTop,un=$t/ut*10;Zr.set(je,requestAnimationFrame(function(){je.scrollTop+=un,je.scrollTop!==nt&&Co(je,nt,ut-10)}))}function $r(je,nt){var ut=nt.onLeftRight,$t=nt.onCtrlLeftRight,un=nt.onUpDown,In=nt.onPageUpDown,Wn=nt.onEnter,ui=je.which,fi=je.ctrlKey,Ni=je.metaKey;switch(ui){case Bn.Z.LEFT:if(fi||Ni){if($t)return $t(-1),!0}else if(ut)return ut(-1),!0;break;case Bn.Z.RIGHT:if(fi||Ni){if($t)return $t(1),!0}else if(ut)return ut(1),!0;break;case Bn.Z.UP:if(un)return un(-1),!0;break;case Bn.Z.DOWN:if(un)return un(1),!0;break;case Bn.Z.PAGE_UP:if(In)return In(-1),!0;break;case Bn.Z.PAGE_DOWN:if(In)return In(1),!0;break;case Bn.Z.ENTER:if(Wn)return Wn(),!0;break}return!1}function sr(je,nt,ut,$t){var un=je;if(!un)switch(nt){case"time":un=$t?"hh:mm:ss a":"HH:mm:ss";break;case"week":un="gggg-wo";break;case"month":un="YYYY-MM";break;case"quarter":un="YYYY-[Q]Q";break;case"year":un="YYYY";break;default:un=ut?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return un}function Fo(je,nt,ut){var $t=je==="time"?8:10,un=typeof nt=="function"?nt(ut.getNow()).length:nt.length;return Math.max($t,un)+2}var ti=null,Ae=new Set;function $n(je){return!ti&&typeof window!="undefined"&&window.addEventListener&&(ti=function(ut){(0,Yr.Z)(Ae).forEach(function($t){$t(ut)})},window.addEventListener("mousedown",ti)),Ae.add(je),function(){Ae.delete(je),Ae.size===0&&(window.removeEventListener("mousedown",ti),ti=null)}}function oi(je){var nt=je.target;if(je.composed&&nt.shadowRoot){var ut;return((ut=je.composedPath)===null||ut===void 0?void 0:ut.call(je)[0])||nt}return nt}var fn=function(nt){return nt==="month"||nt==="date"?"year":nt},Qn=function(nt){return nt==="date"?"month":nt},Zn=function(nt){return nt==="month"||nt==="date"?"quarter":nt},an=function(nt){return nt==="date"?"week":nt},Jt={year:fn,month:Qn,quarter:Zn,week:an,time:null,date:null};function vn(je,nt){return je.some(function(ut){return ut&&ut.contains(nt)})}function xt(je){var nt=je.open,ut=je.value,$t=je.isClickOutside,un=je.triggerOpen,In=je.forwardKeyDown,Wn=je.onKeyDown,ui=je.blurToCancel,fi=je.onSubmit,Ni=je.onCancel,ar=je.onFocus,Fi=je.onBlur,_i=je.changeOnBlur,bi=(0,Pe.useState)(!1),xr=(0,xn.Z)(bi,2),ai=xr[0],$i=xr[1],wr=(0,Pe.useState)(!1),co=(0,xn.Z)(wr,2),no=co[0],mo=co[1],vo=(0,Pe.useRef)(!1),ho=(0,Pe.useRef)(!1),ur=(0,Pe.useRef)(!1),la={onMouseDown:function(){$i(!0),un(!0)},onKeyDown:function(ya){var Va=function(){ur.current=!0};if(Wn(ya,Va),!ur.current){switch(ya.which){case Bn.Z.ENTER:{nt?fi()!==!1&&$i(!0):un(!0),ya.preventDefault();return}case Bn.Z.TAB:{ai&&nt&&!ya.shiftKey?($i(!1),ya.preventDefault()):!ai&&nt&&!In(ya)&&ya.shiftKey&&($i(!0),ya.preventDefault());return}case Bn.Z.ESC:{$i(!0),Ni();return}}!nt&&![Bn.Z.SHIFT].includes(ya.which)?un(!0):ai||In(ya)}},onFocus:function(ya){$i(!0),mo(!0),ar&&ar(ya)},onBlur:function(ya){if(vo.current||!$t(document.activeElement)){vo.current=!1;return}ui?setTimeout(function(){for(var Va=document,Ha=Va.activeElement;Ha&&Ha.shadowRoot;)Ha=Ha.shadowRoot.activeElement;$t(Ha)&&Ni()},0):nt&&(un(!1),ho.current&&fi()),mo(!1),Fi==null||Fi(ya)}};return(0,Pe.useEffect)(function(){ho.current=!1},[nt]),(0,Pe.useEffect)(function(){ho.current=!0},[ut]),(0,Pe.useEffect)(function(){return $n(function(ea){var ya=oi(ea),Va=$t(ya);nt&&(Va?!_i&&(!no||Va)&&un(!1):(vo.current=!0,(0,rr.Z)(function(){vo.current=!1})))})}),[la,{focused:no,typing:ai}]}function wt(je,nt){return Pe.useMemo(function(){return je||(nt?((0,He.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(nt).map(function(ut){var $t=(0,xn.Z)(ut,2),un=$t[0],In=$t[1];return{label:un,value:In}})):[])},[je,nt])}var ze=ve(34280);function Yt(je){var nt=je.valueTexts,ut=je.onTextChange,$t=Pe.useState(""),un=(0,xn.Z)($t,2),In=un[0],Wn=un[1],ui=Pe.useRef([]);ui.current=nt;function fi(ar){Wn(ar),ut(ar)}function Ni(){Wn(ui.current[0])}return(0,ze.Z)(function(){nt.every(function(ar){return ar!==In})&&Ni()},[nt.join("||")]),[In,fi,Ni]}var on=Pe.createContext({}),ht=on,Qe=ve(39559);function _t(je){var nt=je.cellRender,ut=je.monthCellRender,$t=je.dateRender,un=Pe.useMemo(function(){if(nt)return nt;if(!(!ut&&!$t))return function(In,Wn){var ui=In;return $t&&Wn.type==="date"?$t(ui,Wn.today):ut&&Wn.type==="month"?ut(ui,Wn.locale):Wn.originNode}},[nt,ut,$t]);return un}function It(je,nt){for(var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",$t=String(je);$t.length<nt;)$t="".concat(ut).concat(je);return $t}var Fn=function(){for(var nt=arguments.length,ut=new Array(nt),$t=0;$t<nt;$t++)ut[$t]=arguments[$t];return ut};function Hn(je){return je==null?[]:Array.isArray(je)?je:[je]}function ct(je,nt){return je?je[nt]:null}function sn(je,nt,ut){var $t=[ct(je,0),ct(je,1)];return $t[ut]=typeof nt=="function"?nt($t[ut]):nt,!$t[0]&&!$t[1]?null:$t}function Un(je){return typeof je=="function"?je():je}function _n(je){var nt=je.cellPrefixCls,ut=je.generateConfig,$t=je.rangedValue,un=je.hoverRangedValue,In=je.isInView,Wn=je.isSameCell,ui=je.offsetCell,fi=je.today,Ni=je.value;function ar(Fi){var _i,bi=ui(Fi,-1),xr=ui(Fi,1),ai=ct($t,0),$i=ct($t,1),wr=ct(un,0),co=ct(un,1),no=cn(ut,wr,co,Fi);function mo(ya){return Wn(ai,ya)}function vo(ya){return Wn($i,ya)}var ho=Wn(wr,Fi),ur=Wn(co,Fi),la=(no||ur)&&(!In(bi)||vo(bi)),ea=(no||ho)&&(!In(xr)||mo(xr));return _i={},(0,mt.Z)(_i,"".concat(nt,"-in-view"),In(Fi)),(0,mt.Z)(_i,"".concat(nt,"-in-range"),cn(ut,ai,$i,Fi)),(0,mt.Z)(_i,"".concat(nt,"-range-start"),mo(Fi)),(0,mt.Z)(_i,"".concat(nt,"-range-end"),vo(Fi)),(0,mt.Z)(_i,"".concat(nt,"-range-start-single"),mo(Fi)&&!$i),(0,mt.Z)(_i,"".concat(nt,"-range-end-single"),vo(Fi)&&!ai),(0,mt.Z)(_i,"".concat(nt,"-range-start-near-hover"),mo(Fi)&&(Wn(bi,wr)||cn(ut,wr,co,bi))),(0,mt.Z)(_i,"".concat(nt,"-range-end-near-hover"),vo(Fi)&&(Wn(xr,co)||cn(ut,wr,co,xr))),(0,mt.Z)(_i,"".concat(nt,"-range-hover"),no),(0,mt.Z)(_i,"".concat(nt,"-range-hover-start"),ho),(0,mt.Z)(_i,"".concat(nt,"-range-hover-end"),ur),(0,mt.Z)(_i,"".concat(nt,"-range-hover-edge-start"),la),(0,mt.Z)(_i,"".concat(nt,"-range-hover-edge-end"),ea),(0,mt.Z)(_i,"".concat(nt,"-range-hover-edge-start-near-range"),la&&Wn(bi,$i)),(0,mt.Z)(_i,"".concat(nt,"-range-hover-edge-end-near-range"),ea&&Wn(xr,ai)),(0,mt.Z)(_i,"".concat(nt,"-today"),Wn(fi,Fi)),(0,mt.Z)(_i,"".concat(nt,"-selected"),Wn(Ni,Fi)),_i}return ar}var Zt=Pe.createContext({}),rn=Zt;function wi(je,nt,ut,$t,un){var In=je.setHour(nt,ut);return In=je.setMinute(In,$t),In=je.setSecond(In,un),In}function Ci(je,nt,ut){if(!ut)return nt;var $t=nt;return $t=je.setHour($t,je.getHour(ut)),$t=je.setMinute($t,je.getMinute(ut)),$t=je.setSecond($t,je.getSecond(ut)),$t}function yi(je,nt,ut,$t,un,In){var Wn=Math.floor(je/$t)*$t;if(Wn<je)return[Wn,60-un,60-In];var ui=Math.floor(nt/un)*un;if(ui<nt)return[Wn,ui,60-In];var fi=Math.floor(ut/In)*In;return[Wn,ui,fi]}function ci(je,nt){var ut=je.getYear(nt),$t=je.getMonth(nt)+1,un=je.getEndDate(je.getFixedDate("".concat(ut,"-").concat($t,"-01"))),In=je.getDate(un),Wn=$t<10?"0".concat($t):"".concat($t);return"".concat(ut,"-").concat(Wn,"-").concat(In)}function Pi(je){for(var nt=je.prefixCls,ut=je.disabledDate,$t=je.onSelect,un=je.picker,In=je.rowNum,Wn=je.colNum,ui=je.prefixColumn,fi=je.rowClassName,Ni=je.baseDate,ar=je.getCellClassName,Fi=je.getCellText,_i=je.getCellNode,bi=je.getCellDate,xr=je.generateConfig,ai=je.titleCell,$i=je.headerCells,wr=Pe.useContext(ht),co=wr.onDateMouseEnter,no=wr.onDateMouseLeave,mo=wr.mode,vo="".concat(nt,"-cell"),ho=[],ur=0;ur<In;ur+=1){for(var la=[],ea=void 0,ya=function(){var Ba,hs=ur*Wn+Va,La=bi(Ni,hs),Ca=Li({cellDate:La,mode:mo,disabledDate:ut,generateConfig:xr});Va===0&&(ea=La,ui&&la.push(ui(ea)));var Ta=ai&&ai(La),os=Pe.createElement("div",{className:"".concat(vo,"-inner")},Fi(La));la.push(Pe.createElement("td",{key:Va,title:Ta,className:Nt()(vo,(0,Gn.Z)((Ba={},(0,mt.Z)(Ba,"".concat(vo,"-disabled"),Ca),(0,mt.Z)(Ba,"".concat(vo,"-start"),Fi(La)===1||un==="year"&&Number(Ta)%10===0),(0,mt.Z)(Ba,"".concat(vo,"-end"),Ta===ci(xr,La)||un==="year"&&Number(Ta)%10===9),Ba),ar(La))),onClick:function(){Ca||$t(La)},onMouseEnter:function(){!Ca&&co&&co(La)},onMouseLeave:function(){!Ca&&no&&no(La)}},_i?_i(La,os):os))},Va=0;Va<Wn;Va+=1)ya();ho.push(Pe.createElement("tr",{key:ur,className:fi&&fi(ea)},la))}return Pe.createElement("div",{className:"".concat(nt,"-body")},Pe.createElement("table",{className:"".concat(nt,"-content")},$i&&Pe.createElement("thead",null,Pe.createElement("tr",null,$i)),Pe.createElement("tbody",null,ho)))}function Mi(je){var nt=je.prefixCls,ut=je.generateConfig,$t=je.prefixColumn,un=je.locale,In=je.rowCount,Wn=je.viewDate,ui=je.value,fi=je.cellRender,Ni=je.isSameCell,ar=Pe.useContext(rn),Fi=ar.rangedValue,_i=ar.hoverRangedValue,bi=qn(un.locale,ut,Wn),xr="".concat(nt,"-cell"),ai=ut.locale.getWeekFirstDay(un.locale),$i=ut.getNow(),wr=[],co=un.shortWeekDays||(ut.locale.getShortWeekDays?ut.locale.getShortWeekDays(un.locale):[]);$t&&wr.push(Pe.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var no=0;no<st;no+=1)wr.push(Pe.createElement("th",{key:no},co[(no+ai)%st]));var mo=_n({cellPrefixCls:xr,today:$i,value:ui,generateConfig:ut,rangedValue:$t?null:Fi,hoverRangedValue:$t?null:_i,isSameCell:Ni||function(ho,ur){return Ht(ut,ho,ur)},isInView:function(ur){return dt(ut,ur,Wn)},offsetCell:function(ur,la){return ut.addDate(ur,la)}}),vo=fi?function(ho,ur){return fi(ho,{originNode:ur,today:$i,type:"date",locale:un})}:void 0;return Pe.createElement(Pi,(0,Fe.Z)({},je,{rowNum:In,colNum:st,baseDate:bi,getCellNode:vo,getCellText:ut.getDate,getCellClassName:mo,getCellDate:ut.addDate,titleCell:function(ur){return vi(ur,{locale:un,format:"YYYY-MM-DD",generateConfig:ut})},headerCells:wr}))}var ji=Mi,lr={visibility:"hidden"};function nr(je){var nt=je.prefixCls,ut=je.prevIcon,$t=ut===void 0?"\u2039":ut,un=je.nextIcon,In=un===void 0?"\u203A":un,Wn=je.superPrevIcon,ui=Wn===void 0?"\xAB":Wn,fi=je.superNextIcon,Ni=fi===void 0?"\xBB":fi,ar=je.onSuperPrev,Fi=je.onSuperNext,_i=je.onPrev,bi=je.onNext,xr=je.children,ai=Pe.useContext(ht),$i=ai.hideNextBtn,wr=ai.hidePrevBtn;return Pe.createElement("div",{className:nt},ar&&Pe.createElement("button",{type:"button",onClick:ar,tabIndex:-1,className:"".concat(nt,"-super-prev-btn"),style:wr?lr:{}},ui),_i&&Pe.createElement("button",{type:"button",onClick:_i,tabIndex:-1,className:"".concat(nt,"-prev-btn"),style:wr?lr:{}},$t),Pe.createElement("div",{className:"".concat(nt,"-view")},xr),bi&&Pe.createElement("button",{type:"button",onClick:bi,tabIndex:-1,className:"".concat(nt,"-next-btn"),style:$i?lr:{}},In),Fi&&Pe.createElement("button",{type:"button",onClick:Fi,tabIndex:-1,className:"".concat(nt,"-super-next-btn"),style:$i?lr:{}},Ni))}var Nn=nr;function Pr(je){var nt=je.prefixCls,ut=je.generateConfig,$t=je.locale,un=je.viewDate,In=je.onNextMonth,Wn=je.onPrevMonth,ui=je.onNextYear,fi=je.onPrevYear,Ni=je.onYearClick,ar=je.onMonthClick,Fi=Pe.useContext(ht),_i=Fi.hideHeader;if(_i)return null;var bi="".concat(nt,"-header"),xr=$t.shortMonths||(ut.locale.getShortMonths?ut.locale.getShortMonths($t.locale):[]),ai=ut.getMonth(un),$i=Pe.createElement("button",{type:"button",key:"year",onClick:Ni,tabIndex:-1,className:"".concat(nt,"-year-btn")},vi(un,{locale:$t,format:$t.yearFormat,generateConfig:ut})),wr=Pe.createElement("button",{type:"button",key:"month",onClick:ar,tabIndex:-1,className:"".concat(nt,"-month-btn")},$t.monthFormat?vi(un,{locale:$t,format:$t.monthFormat,generateConfig:ut}):xr[ai]),co=$t.monthBeforeYear?[wr,$i]:[$i,wr];return Pe.createElement(Nn,(0,Fe.Z)({},je,{prefixCls:bi,onSuperPrev:fi,onPrev:Wn,onNext:In,onSuperNext:ui}),co)}var Tr=Pr,br=6;function Cn(je){var nt=je.prefixCls,ut=je.panelName,$t=ut===void 0?"date":ut,un=je.keyboardConfig,In=je.active,Wn=je.operationRef,ui=je.generateConfig,fi=je.value,Ni=je.viewDate,ar=je.onViewDateChange,Fi=je.onPanelChange,_i=je.onSelect,bi="".concat(nt,"-").concat($t,"-panel");Wn.current={onKeyDown:function(wr){return $r(wr,(0,Gn.Z)({onLeftRight:function(no){_i(ui.addDate(fi||Ni,no),"key")},onCtrlLeftRight:function(no){_i(ui.addYear(fi||Ni,no),"key")},onUpDown:function(no){_i(ui.addDate(fi||Ni,no*st),"key")},onPageUpDown:function(no){_i(ui.addMonth(fi||Ni,no),"key")}},un))}};var xr=function(wr){var co=ui.addYear(Ni,wr);ar(co),Fi(null,co)},ai=function(wr){var co=ui.addMonth(Ni,wr);ar(co),Fi(null,co)};return Pe.createElement("div",{className:Nt()(bi,(0,mt.Z)({},"".concat(bi,"-active"),In))},Pe.createElement(Tr,(0,Fe.Z)({},je,{prefixCls:nt,value:fi,viewDate:Ni,onPrevYear:function(){xr(-1)},onNextYear:function(){xr(1)},onPrevMonth:function(){ai(-1)},onNextMonth:function(){ai(1)},onMonthClick:function(){Fi("month",Ni)},onYearClick:function(){Fi("year",Ni)}})),Pe.createElement(ji,(0,Fe.Z)({},je,{onSelect:function(wr){return _i(wr,"mouse")},prefixCls:nt,value:fi,viewDate:Ni,rowCount:br})))}var di=Cn;function Ki(je){var nt=Pe.useContext(ht),ut=nt.hideHeader;if(ut)return null;var $t=je.prefixCls,un=je.generateConfig,In=je.locale,Wn=je.value,ui=je.format,fi="".concat($t,"-header");return Pe.createElement(Nn,{prefixCls:fi},Wn?vi(Wn,{locale:In,format:ui,generateConfig:un}):"\xA0")}var ir=Ki;function Yi(je){var nt=je.value,ut=je.generateConfig,$t=je.disabledMinutes,un=je.disabledSeconds,In=je.minutes,Wn=je.seconds,ui=je.use12Hours,fi=function(ar,Fi,_i,bi){var xr=ut.getNow(),ai=nt||xr,$i=Fi<0?ut.getHour(xr):Fi,wr=_i<0?ut.getMinute(xr):_i,co=bi<0?ut.getSecond(xr):bi,no=$t&&$t($i);if(no!=null&&no.includes(wr)){var mo=In.find(function(ur){return!no.includes(ur.value)});if(mo)wr=mo.value;else return null}var vo=un&&un($i,wr);if(vo!=null&&vo.includes(co)){var ho=Wn.find(function(ur){return!vo.includes(ur.value)});if(ho)co=ho.value;else return null}return ai=wi(ut,ai,!ui||!ar?$i:$i+12,wr,co),ai};return fi}function cr(je){var nt=je.prefixCls,ut=je.units,$t=je.onSelect,un=je.value,In=je.active,Wn=je.hideDisabledOptions,ui=je.info,fi=je.type,Ni="".concat(nt,"-cell"),ar=Pe.useContext(ht),Fi=ar.open,_i=(0,Pe.useRef)(null),bi=(0,Pe.useRef)(new Map),xr=(0,Pe.useRef)();return(0,Pe.useLayoutEffect)(function(){var ai=bi.current.get(un);ai&&Fi!==!1&&Co(_i.current,ai.offsetTop,120)},[un]),(0,Pe.useLayoutEffect)(function(){if(Fi){var ai=bi.current.get(un);ai&&(xr.current=Nr(ai,function(){Co(_i.current,ai.offsetTop,0)}))}return function(){var $i;($i=xr.current)===null||$i===void 0||$i.call(xr)}},[Fi]),Pe.createElement("ul",{className:Nt()("".concat(nt,"-column"),(0,mt.Z)({},"".concat(nt,"-column-active"),In)),ref:_i,style:{position:"relative"}},ut.map(function(ai){var $i;return Wn&&ai.disabled?null:Pe.createElement("li",{key:ai.value,ref:function(co){bi.current.set(ai.value,co)},className:Nt()(Ni,($i={},(0,mt.Z)($i,"".concat(Ni,"-disabled"),ai.disabled),(0,mt.Z)($i,"".concat(Ni,"-selected"),un===ai.value),$i)),onClick:function(){ai.disabled||$t(ai.value)}},ui.cellRender?ui.cellRender(ai.value,{today:ui.today,locale:ui.locale,originNode:Pe.createElement("div",{className:"".concat(Ni,"-inner")},ai.label),type:"time",subType:fi}):Pe.createElement("div",{className:"".concat(Ni,"-inner")},ai.label))}))}var Mr=cr;function Di(je,nt){if(je.length!==nt.length)return!0;for(var ut=0;ut<je.length;ut+=1)if(je[ut].disabled!==nt[ut].disabled)return!0;return!1}function Ui(je,nt,ut,$t){for(var un=[],In=ut>=1?ut|0:1,Wn=je;Wn<=nt;Wn+=In)un.push({label:It(Wn,2),value:Wn,disabled:($t||[]).includes(Wn)});return un}function Wi(je){var nt=je.generateConfig,ut=je.prefixCls,$t=je.operationRef,un=je.activeColumnIndex,In=je.value,Wn=je.showHour,ui=je.showMinute,fi=je.showSecond,Ni=je.use12Hours,ar=je.hourStep,Fi=ar===void 0?1:ar,_i=je.minuteStep,bi=_i===void 0?1:_i,xr=je.secondStep,ai=xr===void 0?1:xr,$i=je.disabledHours,wr=je.disabledMinutes,co=je.disabledSeconds,no=je.disabledTime,mo=je.hideDisabledOptions,vo=je.onSelect,ho=je.cellRender,ur=je.locale,la=[],ea="".concat(ut,"-content"),ya="".concat(ut,"-time-panel"),Va,Ha=In?nt.getHour(In):-1,Ba=Ha,hs=In?nt.getMinute(In):-1,La=In?nt.getSecond(In):-1,Ca=nt.getNow(),Ta=Pe.useMemo(function(){if(no){var si=no(Ca);return[si.disabledHours,si.disabledMinutes,si.disabledSeconds]}return[$i,wr,co]},[$i,wr,co,no,Ca]),os=(0,xn.Z)(Ta,3),fs=os[0],Qa=os[1],Oa=os[2],Is=Ui(0,23,Fi,fs&&fs()),hl=(0,we.Z)(function(){return Is},Is,Di);Ni&&(Va=Ba>=12,Ba%=12);var rt=Pe.useMemo(function(){if(!Ni)return[!1,!1];var si=[!0,!0];return hl.forEach(function(Si){var Qi=Si.disabled,Xi=Si.value;Qi||(Xi>=12?si[1]=!1:si[0]=!1)}),si},[Ni,hl]),gt=(0,xn.Z)(rt,2),Xt=gt[0],Qt=gt[1],Pn=Pe.useMemo(function(){return Ni?hl.filter(Va?function(si){return si.value>=12}:function(si){return si.value<12}).map(function(si){var Si=si.value%12,Qi=Si===0?"12":It(Si,2);return(0,Gn.Z)((0,Gn.Z)({},si),{},{label:Qi,value:Si})}):hl},[Ni,Va,hl]),hn=Ui(0,59,bi,Qa&&Qa(Ha)),Jn=Ui(0,59,ai,Oa&&Oa(Ha,hs)),Yn=Yi({value:In,generateConfig:nt,disabledMinutes:Qa,disabledSeconds:Oa,minutes:hn,seconds:Jn,use12Hours:Ni});$t.current={onUpDown:function(Si){var Qi=la[un];if(Qi)for(var Xi=Qi.units.findIndex(function(Lr){return Lr.value===Qi.value}),Ii=Qi.units.length,Sr=1;Sr<Ii;Sr+=1){var Zi=Qi.units[(Xi+Si*Sr+Ii)%Ii];if(Zi.disabled!==!0){Qi.onSelect(Zi.value);break}}}};function Vn(si,Si,Qi,Xi,Ii){si!==!1&&la.push({node:Pe.cloneElement(Si,{prefixCls:ya,value:Qi,active:un===la.length,onSelect:Ii,units:Xi,hideDisabledOptions:mo}),onSelect:Ii,value:Qi,units:Xi})}Vn(Wn,Pe.createElement(Mr,{key:"hour",type:"hour",info:{today:Ca,locale:ur,cellRender:ho}}),Ba,Pn,function(si){vo(Yn(Va,si,hs,La),"mouse")}),Vn(ui,Pe.createElement(Mr,{key:"minute",type:"minute",info:{today:Ca,locale:ur,cellRender:ho}}),hs,hn,function(si){vo(Yn(Va,Ba,si,La),"mouse")}),Vn(fi,Pe.createElement(Mr,{key:"second",type:"second",info:{today:Ca,locale:ur,cellRender:ho}}),La,Jn,function(si){vo(Yn(Va,Ba,hs,si),"mouse")});var xi=-1;return typeof Va=="boolean"&&(xi=Va?1:0),Vn(Ni===!0,Pe.createElement(Mr,{key:"meridiem",type:"meridiem",info:{today:Ca,locale:ur,cellRender:ho}}),xi,[{label:"AM",value:0,disabled:Xt},{label:"PM",value:1,disabled:Qt}],function(si){vo(Yn(!!si,Ba,hs,La),"mouse")}),Pe.createElement("div",{className:ea},la.map(function(si){var Si=si.node;return Si}))}var Dn=Wi,Fr=function(nt){return nt.filter(function(ut){return ut!==!1}).length};function Ln(je){var nt=je.generateConfig,ut=je.format,$t=ut===void 0?"HH:mm:ss":ut,un=je.prefixCls,In=je.active,Wn=je.operationRef,ui=je.showHour,fi=je.showMinute,Ni=je.showSecond,ar=je.use12Hours,Fi=ar===void 0?!1:ar,_i=je.onSelect,bi=je.value,xr="".concat(un,"-time-panel"),ai=Pe.useRef(),$i=Pe.useState(-1),wr=(0,xn.Z)($i,2),co=wr[0],no=wr[1],mo=Fr([ui,fi,Ni,Fi]);return Wn.current={onKeyDown:function(ho){return $r(ho,{onLeftRight:function(la){no((co+la+mo)%mo)},onUpDown:function(la){co===-1?no(0):ai.current&&ai.current.onUpDown(la)},onEnter:function(){_i(bi||nt.getNow(),"key"),no(-1)}})},onBlur:function(){no(-1)}},Pe.createElement("div",{className:Nt()(xr,(0,mt.Z)({},"".concat(xr,"-active"),In))},Pe.createElement(ir,(0,Fe.Z)({},je,{format:$t,prefixCls:un})),Pe.createElement(Dn,(0,Fe.Z)({},je,{prefixCls:un,activeColumnIndex:co,operationRef:ai})))}var fr=Ln,Ur=Fn("date","time");function Cr(je){var nt=je.prefixCls,ut=je.operationRef,$t=je.generateConfig,un=je.value,In=je.defaultValue,Wn=je.disabledTime,ui=je.showTime,fi=je.onSelect,Ni=je.cellRender,ar="".concat(nt,"-datetime-panel"),Fi=Pe.useState(null),_i=(0,xn.Z)(Fi,2),bi=_i[0],xr=_i[1],ai=Pe.useRef({}),$i=Pe.useRef({}),wr=(0,Qe.Z)(ui)==="object"?(0,Gn.Z)({},ui):{};function co(ho){var ur=Ur.indexOf(bi)+ho,la=Ur[ur]||null;return la}var no=function(ur){$i.current.onBlur&&$i.current.onBlur(ur),xr(null)};ut.current={onKeyDown:function(ur){if(ur.which===Bn.Z.TAB){var la=co(ur.shiftKey?-1:1);return xr(la),la&&ur.preventDefault(),!0}if(bi){var ea=bi==="date"?ai:$i;return ea.current&&ea.current.onKeyDown&&ea.current.onKeyDown(ur),!0}return[Bn.Z.LEFT,Bn.Z.RIGHT,Bn.Z.UP,Bn.Z.DOWN].includes(ur.which)?(xr("date"),!0):!1},onBlur:no,onClose:no};var mo=function(ur,la){var ea=ur;la==="date"&&!un&&wr.defaultValue?(ea=$t.setHour(ea,$t.getHour(wr.defaultValue)),ea=$t.setMinute(ea,$t.getMinute(wr.defaultValue)),ea=$t.setSecond(ea,$t.getSecond(wr.defaultValue))):la==="time"&&!un&&In&&(ea=$t.setYear(ea,$t.getYear(In)),ea=$t.setMonth(ea,$t.getMonth(In)),ea=$t.setDate(ea,$t.getDate(In))),fi&&fi(ea,"mouse")},vo=Wn?Wn(un||null):{};return Pe.createElement("div",{className:Nt()(ar,(0,mt.Z)({},"".concat(ar,"-active"),bi))},Pe.createElement(di,(0,Fe.Z)({},je,{cellRender:Ni,operationRef:ai,active:bi==="date",onSelect:function(ur){mo(Ci($t,ur,!un&&(0,Qe.Z)(ui)==="object"?ui.defaultValue:null),"date")}})),Pe.createElement(fr,(0,Fe.Z)({},je,{cellRender:Ni?function(ho,ur){return Ni(ho,(0,Gn.Z)((0,Gn.Z)({},ur),{},{type:"time"}))}:void 0,format:void 0},wr,vo,{disabledTime:null,defaultValue:void 0,operationRef:$i,active:bi==="time",onSelect:function(ur){mo(ur,"time")}})))}var Do=Cr;function so(je){var nt=je.prefixCls,ut=je.generateConfig,$t=je.viewDate,un=je.onPrevDecades,In=je.onNextDecades,Wn=Pe.useContext(ht),ui=Wn.hideHeader;if(ui)return null;var fi="".concat(nt,"-header"),Ni=ut.getYear($t),ar=Math.floor(Ni/Se)*Se,Fi=ar+Se-1;return Pe.createElement(Nn,(0,Fe.Z)({},je,{prefixCls:fi,onSuperPrev:un,onSuperNext:In}),ar,"-",Fi)}var yr=so,gr=3,hr=4;function Gr(je){var nt=ke-1,ut=je.prefixCls,$t=je.viewDate,un=je.generateConfig,In=je.cellRender,Wn=je.locale,ui="".concat(ut,"-cell"),fi=un.getYear($t),Ni=Math.floor(fi/ke)*ke,ar=Math.floor(fi/Se)*Se,Fi=ar+Se-1,_i=un.setYear($t,ar-Math.ceil((gr*hr*ke-Se)/2)),bi=function($i){var wr,co=un.getYear($i),no=co+nt;return wr={},(0,mt.Z)(wr,"".concat(ui,"-in-view"),ar<=co&&no<=Fi),(0,mt.Z)(wr,"".concat(ui,"-selected"),co===Ni),wr},xr=In?function(ai,$i){return In(ai,{originNode:$i,today:un.getNow(),type:"decade",locale:Wn})}:void 0;return Pe.createElement(Pi,(0,Fe.Z)({},je,{rowNum:hr,colNum:gr,baseDate:_i,getCellNode:xr,getCellText:function($i){var wr=un.getYear($i);return"".concat(wr,"-").concat(wr+nt)},getCellClassName:bi,getCellDate:function($i,wr){return un.addYear($i,wr*ke)}}))}var Oi=Gr;function _e(je){var nt=je.prefixCls,ut=je.onViewDateChange,$t=je.generateConfig,un=je.viewDate,In=je.operationRef,Wn=je.onSelect,ui=je.onPanelChange,fi="".concat(nt,"-decade-panel");In.current={onKeyDown:function(_i){return $r(_i,{onLeftRight:function(xr){Wn($t.addYear(un,xr*ke),"key")},onCtrlLeftRight:function(xr){Wn($t.addYear(un,xr*Se),"key")},onUpDown:function(xr){Wn($t.addYear(un,xr*ke*gr),"key")},onEnter:function(){ui("year",un)}})}};var Ni=function(_i){var bi=$t.addYear(un,_i*Se);ut(bi),ui(null,bi)},ar=function(_i){Wn(_i,"mouse"),ui("year",_i)};return Pe.createElement("div",{className:fi},Pe.createElement(yr,(0,Fe.Z)({},je,{prefixCls:nt,onPrevDecades:function(){Ni(-1)},onNextDecades:function(){Ni(1)}})),Pe.createElement(Oi,(0,Fe.Z)({},je,{prefixCls:nt,onSelect:ar})))}var yt=_e;function Bt(je){var nt=je.prefixCls,ut=je.generateConfig,$t=je.locale,un=je.viewDate,In=je.onNextYear,Wn=je.onPrevYear,ui=je.onYearClick,fi=Pe.useContext(ht),Ni=fi.hideHeader;if(Ni)return null;var ar="".concat(nt,"-header");return Pe.createElement(Nn,(0,Fe.Z)({},je,{prefixCls:ar,onSuperPrev:Wn,onSuperNext:In}),Pe.createElement("button",{type:"button",onClick:ui,className:"".concat(nt,"-year-btn")},vi(un,{locale:$t,format:$t.yearFormat,generateConfig:ut})))}var ln=Bt,jn=3,ri=4;function tn(je){var nt=je.prefixCls,ut=je.locale,$t=je.value,un=je.viewDate,In=je.generateConfig,Wn=je.cellRender,ui=Pe.useContext(rn),fi=ui.rangedValue,Ni=ui.hoverRangedValue,ar="".concat(nt,"-cell"),Fi=_n({cellPrefixCls:ar,value:$t,generateConfig:In,rangedValue:fi,hoverRangedValue:Ni,isSameCell:function($i,wr){return dt(In,$i,wr)},isInView:function(){return!0},offsetCell:function($i,wr){return In.addMonth($i,wr)}}),_i=ut.shortMonths||(In.locale.getShortMonths?In.locale.getShortMonths(ut.locale):[]),bi=In.setMonth(un,0),xr=Wn?function(ai,$i){return Wn(ai,{originNode:$i,locale:ut,today:In.getNow(),type:"month"})}:void 0;return Pe.createElement(Pi,(0,Fe.Z)({},je,{rowNum:ri,colNum:jn,baseDate:bi,getCellNode:xr,getCellText:function($i){return ut.monthFormat?vi($i,{locale:ut,format:ut.monthFormat,generateConfig:In}):_i[In.getMonth($i)]},getCellClassName:Fi,getCellDate:In.addMonth,titleCell:function($i){return vi($i,{locale:ut,format:"YYYY-MM",generateConfig:In})}}))}var bn=tn;function Xn(je){var nt=je.prefixCls,ut=je.operationRef,$t=je.onViewDateChange,un=je.generateConfig,In=je.value,Wn=je.viewDate,ui=je.onPanelChange,fi=je.onSelect,Ni="".concat(nt,"-month-panel");ut.current={onKeyDown:function(_i){return $r(_i,{onLeftRight:function(xr){fi(un.addMonth(In||Wn,xr),"key")},onCtrlLeftRight:function(xr){fi(un.addYear(In||Wn,xr),"key")},onUpDown:function(xr){fi(un.addMonth(In||Wn,xr*jn),"key")},onEnter:function(){ui("date",In||Wn)}})}};var ar=function(_i){var bi=un.addYear(Wn,_i);$t(bi),ui(null,bi)};return Pe.createElement("div",{className:Ni},Pe.createElement(ln,(0,Fe.Z)({},je,{prefixCls:nt,onPrevYear:function(){ar(-1)},onNextYear:function(){ar(1)},onYearClick:function(){ui("year",Wn)}})),Pe.createElement(bn,(0,Fe.Z)({},je,{prefixCls:nt,onSelect:function(_i){fi(_i,"mouse"),ui("date",_i)}})))}var Kn=Xn;function Ei(je){var nt=je.prefixCls,ut=je.generateConfig,$t=je.locale,un=je.viewDate,In=je.onNextYear,Wn=je.onPrevYear,ui=je.onYearClick,fi=Pe.useContext(ht),Ni=fi.hideHeader;if(Ni)return null;var ar="".concat(nt,"-header");return Pe.createElement(Nn,(0,Fe.Z)({},je,{prefixCls:ar,onSuperPrev:Wn,onSuperNext:In}),Pe.createElement("button",{type:"button",onClick:ui,className:"".concat(nt,"-year-btn")},vi(un,{locale:$t,format:$t.yearFormat,generateConfig:ut})))}var vr=Ei,Ai=4,Bi=1;function zn(je){var nt=je.prefixCls,ut=je.locale,$t=je.value,un=je.viewDate,In=je.generateConfig,Wn=je.cellRender,ui=Pe.useContext(rn),fi=ui.rangedValue,Ni=ui.hoverRangedValue,ar="".concat(nt,"-cell"),Fi=_n({cellPrefixCls:ar,value:$t,generateConfig:In,rangedValue:fi,hoverRangedValue:Ni,isSameCell:function(ai,$i){return bt(In,ai,$i)},isInView:function(){return!0},offsetCell:function(ai,$i){return In.addMonth(ai,$i*3)}}),_i=In.setDate(In.setMonth(un,0),1),bi=Wn?function(xr,ai){return Wn(xr,{originNode:ai,locale:ut,today:In.getNow(),type:"quarter"})}:void 0;return Pe.createElement(Pi,(0,Fe.Z)({},je,{rowNum:Bi,colNum:Ai,baseDate:_i,getCellNode:bi,getCellText:function(ai){return vi(ai,{locale:ut,format:ut.quarterFormat||"[Q]Q",generateConfig:In})},getCellClassName:Fi,getCellDate:function(ai,$i){return In.addMonth(ai,$i*3)},titleCell:function(ai){return vi(ai,{locale:ut,format:"YYYY-[Q]Q",generateConfig:In})}}))}var pr=zn;function kr(je){var nt=je.prefixCls,ut=je.operationRef,$t=je.onViewDateChange,un=je.generateConfig,In=je.value,Wn=je.viewDate,ui=je.onPanelChange,fi=je.onSelect,Ni="".concat(nt,"-quarter-panel");ut.current={onKeyDown:function(_i){return $r(_i,{onLeftRight:function(xr){fi(un.addMonth(In||Wn,xr*3),"key")},onCtrlLeftRight:function(xr){fi(un.addYear(In||Wn,xr),"key")},onUpDown:function(xr){fi(un.addYear(In||Wn,xr),"key")}})}};var ar=function(_i){var bi=un.addYear(Wn,_i);$t(bi),ui(null,bi)};return Pe.createElement("div",{className:Ni},Pe.createElement(vr,(0,Fe.Z)({},je,{prefixCls:nt,onPrevYear:function(){ar(-1)},onNextYear:function(){ar(1)},onYearClick:function(){ui("year",Wn)}})),Pe.createElement(pr,(0,Fe.Z)({},je,{prefixCls:nt,onSelect:function(_i){fi(_i,"mouse")}})))}var po=kr;function to(je){var nt=je.prefixCls,ut=je.generateConfig,$t=je.locale,un=je.value,In=je.disabledDate,Wn=je.onSelect,ui=Pe.useContext(rn),fi=ui.rangedValue,Ni=ui.hoverRangedValue,ar=Pe.useContext(ht),Fi=ar.onDateMouseEnter,_i=ar.onDateMouseLeave,bi=(Ni==null?void 0:Ni[0])||(fi==null?void 0:fi[0]),xr=(Ni==null?void 0:Ni[1])||(fi==null?void 0:fi[1]),ai="".concat(nt,"-cell"),$i=function(mo){var vo=Li({cellDate:mo,mode:"week",disabledDate:In,generateConfig:ut});return Pe.createElement("td",{key:"week",className:Nt()(ai,"".concat(ai,"-week")),onClick:function(){vo||Wn(mo,"mouse")},onMouseEnter:function(){!vo&&Fi&&Fi(mo)},onMouseLeave:function(){!vo&&_i&&_i(mo)}},Pe.createElement("div",{className:"".concat(ai,"-inner")},ut.locale.getWeek($t.locale,mo)))},wr="".concat(nt,"-week-panel-row"),co=function(mo){var vo,ho=An(ut,$t.locale,bi,mo),ur=An(ut,$t.locale,xr,mo);return Nt()(wr,(vo={},(0,mt.Z)(vo,"".concat(wr,"-selected"),!fi&&An(ut,$t.locale,un,mo)),(0,mt.Z)(vo,"".concat(wr,"-range-start"),ho),(0,mt.Z)(vo,"".concat(wr,"-range-end"),ur),(0,mt.Z)(vo,"".concat(wr,"-range-hover"),!ho&&!ur&&cn(ut,bi,xr,mo)),vo))};return Pe.createElement(di,(0,Fe.Z)({},je,{panelName:"week",prefixColumn:$i,rowClassName:co,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Jr=to,eo=10;function Zo(je){var nt=je.prefixCls,ut=je.generateConfig,$t=je.viewDate,un=je.onPrevDecade,In=je.onNextDecade,Wn=je.onDecadeClick,ui=Pe.useContext(ht),fi=ui.hideHeader;if(fi)return null;var Ni="".concat(nt,"-header"),ar=ut.getYear($t),Fi=Math.floor(ar/eo)*eo,_i=Fi+eo-1;return Pe.createElement(Nn,(0,Fe.Z)({},je,{prefixCls:Ni,onSuperPrev:un,onSuperNext:In}),Pe.createElement("button",{type:"button",onClick:Wn,className:"".concat(nt,"-decade-btn")},Fi,"-",_i))}var $o=Zo,ia=3,qo=4;function Sn(je){var nt=je.prefixCls,ut=je.value,$t=je.viewDate,un=je.locale,In=je.generateConfig,Wn=je.cellRender,ui=Pe.useContext(rn),fi=ui.rangedValue,Ni=ui.hoverRangedValue,ar="".concat(nt,"-cell"),Fi=In.getYear($t),_i=Math.floor(Fi/eo)*eo,bi=_i+eo-1,xr=In.setYear($t,_i-Math.ceil((ia*qo-eo)/2)),ai=In.getNow(),$i=function(mo){var vo=In.getYear(mo);return _i<=vo&&vo<=bi},wr=_n({cellPrefixCls:ar,value:ut,generateConfig:In,rangedValue:fi,hoverRangedValue:Ni,isSameCell:function(mo,vo){return We(In,mo,vo)},isInView:$i,offsetCell:function(mo,vo){return In.addYear(mo,vo)}}),co=Wn?function(no,mo){return Wn(no,{originNode:mo,today:ai,type:"year",locale:un})}:void 0;return Pe.createElement(Pi,(0,Fe.Z)({},je,{rowNum:qo,colNum:ia,baseDate:xr,getCellNode:co,getCellText:In.getYear,getCellClassName:wr,getCellDate:In.addYear,titleCell:function(mo){return vi(mo,{locale:un,format:"YYYY",generateConfig:In})}}))}var oa=Sn;function vs(je){var nt=je.prefixCls,ut=je.operationRef,$t=je.onViewDateChange,un=je.generateConfig,In=je.value,Wn=je.viewDate,ui=je.sourceMode,fi=je.onSelect,Ni=je.onPanelChange,ar="".concat(nt,"-year-panel");ut.current={onKeyDown:function(bi){return $r(bi,{onLeftRight:function(ai){fi(un.addYear(In||Wn,ai),"key")},onCtrlLeftRight:function(ai){fi(un.addYear(In||Wn,ai*eo),"key")},onUpDown:function(ai){fi(un.addYear(In||Wn,ai*ia),"key")},onEnter:function(){Ni(ui==="date"?"date":"month",In||Wn)}})}};var Fi=function(bi){var xr=un.addYear(Wn,bi*10);$t(xr),Ni(null,xr)};return Pe.createElement("div",{className:ar},Pe.createElement($o,(0,Fe.Z)({},je,{prefixCls:nt,onPrevDecade:function(){Fi(-1)},onNextDecade:function(){Fi(1)},onDecadeClick:function(){Ni("decade",Wn)}})),Pe.createElement(oa,(0,Fe.Z)({},je,{prefixCls:nt,onSelect:function(bi){Ni(ui==="date"?"date":"month",bi),fi(bi,"mouse")}})))}var Ga=vs;function Zs(je,nt,ut){return ut?Pe.createElement("div",{className:"".concat(je,"-footer-extra")},ut(nt)):null}function xa(je){var nt=je.prefixCls,ut=je.components,$t=ut===void 0?{}:ut,un=je.needConfirmButton,In=je.onNow,Wn=je.onOk,ui=je.okDisabled,fi=je.showNow,Ni=je.locale,ar,Fi;if(un){var _i=$t.button||"button";In&&fi!==!1&&(ar=Pe.createElement("li",{className:"".concat(nt,"-now")},Pe.createElement("a",{className:"".concat(nt,"-now-btn"),onClick:In},Ni.now))),Fi=un&&Pe.createElement("li",{className:"".concat(nt,"-ok")},Pe.createElement(_i,{disabled:ui,onClick:Wn},Ni.ok))}return!ar&&!Fi?null:Pe.createElement("ul",{className:"".concat(nt,"-ranges")},ar,Fi)}var pl=["date","month"];function wa(je){var nt,ut=je,$t=ut.prefixCls,un=$t===void 0?"rc-picker":$t,In=ut.className,Wn=ut.style,ui=ut.locale,fi=ut.generateConfig,Ni=ut.value,ar=ut.defaultValue,Fi=ut.pickerValue,_i=ut.defaultPickerValue,bi=ut.disabledDate,xr=ut.mode,ai=ut.picker,$i=ai===void 0?"date":ai,wr=ut.tabIndex,co=wr===void 0?0:wr,no=ut.showNow,mo=ut.showTime,vo=ut.showToday,ho=ut.renderExtraFooter,ur=ut.hideHeader,la=ut.onSelect,ea=ut.onChange,ya=ut.onPanelChange,Va=ut.onMouseDown,Ha=ut.onPickerValueChange,Ba=ut.onOk,hs=ut.components,La=ut.direction,Ca=ut.hourStep,Ta=Ca===void 0?1:Ca,os=ut.minuteStep,fs=os===void 0?1:os,Qa=ut.secondStep,Oa=Qa===void 0?1:Qa,Is=ut.dateRender,hl=ut.monthCellRender,rt=ut.cellRender,gt=$i==="date"&&!!mo||$i==="time",Xt=24%Ta===0,Qt=60%fs===0,Pn=60%Oa===0,hn=Pe.useContext(ht),Jn=hn.operationRef,Yn=hn.onSelect,Vn=hn.hideRanges,xi=hn.defaultOpenValue,si=Pe.useContext(rn),Si=si.inRange,Qi=si.panelPosition,Xi=si.rangedValue,Ii=si.hoverRangedValue,Sr=Pe.useRef({}),Zi=Pe.useRef(!0),Lr=(0,tt.Z)(null,{value:Ni,defaultValue:ar,postState:function(qi){return!qi&&xi&&$i==="time"?xi:qi}}),Er=(0,xn.Z)(Lr,2),Or=Er[0],yo=Er[1],Lo=(0,tt.Z)(null,{value:Fi,defaultValue:_i||Or,postState:function(qi){var Vr=fi.getNow();if(!qi)return Vr;if(!Or&&mo){var Xo=(0,Qe.Z)(mo)==="object"?mo.defaultValue:ar;return Ci(fi,Array.isArray(qi)?qi[0]:qi,Xo||Vr)}return Array.isArray(qi)?qi[0]:qi}}),Hr=(0,xn.Z)(Lo,2),qr=Hr[0],Vo=Hr[1],Ir=function(qi){Vo(qi),Ha&&Ha(qi)},ao=function(qi){var Vr=Jt[$i];return Vr?Vr(qi):qi},Wr=(0,tt.Z)(function(){return $i==="time"?"time":ao("date")},{value:xr}),mr=(0,xn.Z)(Wr,2),Dr=mr[0],lo=mr[1];Pe.useEffect(function(){lo($i)},[$i]);var Mo=Pe.useState(function(){return Dr}),ko=(0,xn.Z)(Mo,2),Br=ko[0],Go=ko[1],_o=function(qi,Vr){var Xo=ao(qi||Dr);Go(Dr),lo(Xo),ya&&(Dr!==Xo||qt(fi,qr,qr))&&ya(Vr,Xo)},na=function(qi,Vr){var Xo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Dr===$i||Xo)&&(yo(qi),la&&la(qi),Yn&&Yn(qi,Vr),ea&&!qt(fi,qi,Or)&&!(bi!=null&&bi(qi))&&ea(qi))},ta=function(qi){if(pl.includes(Dr)){var Vr,Xo,ua=Dr==="date";switch(qi===Bn.Z.PAGE_UP||qi===Bn.Z.PAGE_DOWN?Xo=ua?fi.addMonth:fi.addYear:Xo=ua?fi.addDate:fi.addMonth,qi){case Bn.Z.LEFT:case Bn.Z.PAGE_UP:Vr=Xo(qr,-1);break;case Bn.Z.RIGHT:case Bn.Z.PAGE_DOWN:Vr=Xo(qr,1);break;case Bn.Z.UP:case Bn.Z.DOWN:Vr=Xo(qr,Number("".concat(qi===Bn.Z.UP?"-":"").concat(ua?st:jn)));break}if(Vr)return!(bi!=null&&bi(Vr))}return!0},_a=function(qi){if(Sr.current&&Sr.current.onKeyDown){var Vr=!0,Xo=qi.which;if([Bn.Z.LEFT,Bn.Z.RIGHT,Bn.Z.UP,Bn.Z.DOWN,Bn.Z.PAGE_UP,Bn.Z.PAGE_DOWN,Bn.Z.ENTER].includes(Xo)&&(qi.preventDefault(),Xo!==Bn.Z.ENTER&&co===0&&(Vr=ta(Xo))),Vr)return Sr.current.onKeyDown(qi)}return(0,He.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},ga=function(qi){Sr.current&&Sr.current.onBlur&&Sr.current.onBlur(qi)};Jn&&Qi!=="right"&&(Jn.current={onKeyDown:_a,onClose:function(){Sr.current&&Sr.current.onClose&&Sr.current.onClose()}}),Pe.useEffect(function(){Ni&&!Zi.current&&Vo(Ni)},[Ni]),Pe.useEffect(function(){Zi.current=!1},[]);var Ho,wo=_t({cellRender:rt,monthCellRender:hl,dateRender:Is}),Oo=(0,Gn.Z)((0,Gn.Z)({},je),{},{cellRender:wo,operationRef:Sr,prefixCls:un,viewDate:qr,value:Or,onViewDateChange:Ir,sourceMode:Br,onPanelChange:_o,disabledDate:bi});switch(delete Oo.onChange,delete Oo.onSelect,Dr){case"decade":Ho=Pe.createElement(yt,(0,Fe.Z)({},Oo,{onSelect:function(qi,Vr){Ir(qi),na(qi,Vr)}}));break;case"year":Ho=Pe.createElement(Ga,(0,Fe.Z)({},Oo,{onSelect:function(qi,Vr){Ir(qi),na(qi,Vr)}}));break;case"month":Ho=Pe.createElement(Kn,(0,Fe.Z)({},Oo,{onSelect:function(qi,Vr){Ir(qi),na(qi,Vr)}}));break;case"quarter":Ho=Pe.createElement(po,(0,Fe.Z)({},Oo,{onSelect:function(qi,Vr){Ir(qi),na(qi,Vr)}}));break;case"week":Ho=Pe.createElement(Jr,(0,Fe.Z)({},Oo,{onSelect:function(qi,Vr){Ir(qi),na(qi,Vr)}}));break;case"time":delete Oo.showTime,Ho=Pe.createElement(fr,(0,Fe.Z)({},Oo,(0,Qe.Z)(mo)==="object"?mo:null,{onSelect:function(qi,Vr){Ir(qi),na(qi,Vr)}}));break;default:mo?Ho=Pe.createElement(Do,(0,Fe.Z)({},Oo,{onSelect:function(qi,Vr){Ir(qi),na(qi,Vr)}})):Ho=Pe.createElement(di,(0,Fe.Z)({},Oo,{onSelect:function(qi,Vr){Ir(qi),na(qi,Vr)}}))}var Ua,Ia,ts=function(){var qi=fi.getNow(),Vr=yi(fi.getHour(qi),fi.getMinute(qi),fi.getSecond(qi),Xt?Ta:1,Qt?fs:1,Pn?Oa:1),Xo=wi(fi,qi,Vr[0],Vr[1],Vr[2]);na(Xo,"submit")};Vn||(Ua=Zs(un,Dr,ho),mo&&Dr!=="date"?Ia=null:Ia=xa({prefixCls:un,components:hs,needConfirmButton:gt,okDisabled:!Or||bi&&bi(Or),locale:ui,showNow:no,onNow:gt&&ts,onOk:function(){Or&&(na(Or,"submit",!0),Ba&&Ba(Or))}}));var Ro;if(vo&&Dr==="date"&&$i==="date"&&!mo){var bo=fi.getNow(),Wo="".concat(un,"-today-btn"),xo=bi&&bi(bo);Ro=Pe.createElement("a",{className:Nt()(Wo,xo&&"".concat(Wo,"-disabled")),"aria-disabled":xo,onClick:function(){xo||na(bo,"mouse",!0)}},ui.today)}return Pe.createElement(ht.Provider,{value:(0,Gn.Z)((0,Gn.Z)({},hn),{},{mode:Dr,hideHeader:"hideHeader"in je?ur:hn.hideHeader,hidePrevBtn:Si&&Qi==="right",hideNextBtn:Si&&Qi==="left"})},Pe.createElement("div",{tabIndex:co,className:Nt()("".concat(un,"-panel"),In,(nt={},(0,mt.Z)(nt,"".concat(un,"-panel-has-range"),Xi&&Xi[0]&&Xi[1]),(0,mt.Z)(nt,"".concat(un,"-panel-has-range-hover"),Ii&&Ii[0]&&Ii[1]),(0,mt.Z)(nt,"".concat(un,"-panel-rtl"),La==="rtl"),nt)),style:Wn,onKeyDown:_a,onBlur:ga,onMouseDown:Va},Ho,Ua||Ia||Ro?Pe.createElement("div",{className:"".concat(un,"-footer")},Ua,Ia,Ro):null))}var Ao=wa,Ko=ve(35593),Ka={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Kr(je){var nt,ut=je.prefixCls,$t=je.popupElement,un=je.popupStyle,In=je.visible,Wn=je.dropdownClassName,ui=je.dropdownAlign,fi=je.transitionName,Ni=je.getPopupContainer,ar=je.children,Fi=je.range,_i=je.popupPlacement,bi=je.direction,xr="".concat(ut,"-dropdown"),ai=function(){return _i!==void 0?_i:bi==="rtl"?"bottomRight":"bottomLeft"};return Pe.createElement(Ko.Z,{showAction:[],hideAction:[],popupPlacement:ai(),builtinPlacements:Ka,prefixCls:xr,popupTransitionName:fi,popup:$t,popupAlign:ui,popupVisible:In,popupClassName:Nt()(Wn,(nt={},(0,mt.Z)(nt,"".concat(xr,"-range"),Fi),(0,mt.Z)(nt,"".concat(xr,"-rtl"),bi==="rtl"),nt)),popupStyle:un,getPopupContainer:Ni},ar)}var No=Kr;function ro(je){var nt=je.prefixCls,ut=je.presets,$t=je.onClick,un=je.onHover;return ut.length?Pe.createElement("div",{className:"".concat(nt,"-presets")},Pe.createElement("ul",null,ut.map(function(In,Wn){var ui=In.label,fi=In.value;return Pe.createElement("li",{key:Wn,onClick:function(){return $t==null?void 0:$t(Un(fi))},onMouseEnter:function(){return un==null?void 0:un(Un(fi))},onMouseLeave:function(){return un==null?void 0:un(null)}},ui)}))):null}function Hi(je){var nt=je.picker,ut=je.disabledHours,$t=je.disabledMinutes,un=je.disabledSeconds;nt==="time"&&(ut||$t||un)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function fa(je,nt,ut){var $t=(0,Qe.Z)(nt)==="object"?nt.clearIcon:ut;return $t||Pe.createElement("span",{className:"".concat(je,"-clear-btn")})}function ka(je){var nt,ut=je,$t=ut.prefixCls,un=$t===void 0?"rc-picker":$t,In=ut.id,Wn=ut.name,ui=ut.tabIndex,fi=ut.style,Ni=ut.className,ar=ut.dropdownClassName,Fi=ut.dropdownAlign,_i=ut.popupStyle,bi=ut.transitionName,xr=ut.generateConfig,ai=ut.locale,$i=ut.inputReadOnly,wr=ut.allowClear,co=ut.autoFocus,no=ut.showTime,mo=ut.picker,vo=mo===void 0?"date":mo,ho=ut.format,ur=ut.use12Hours,la=ut.value,ea=ut.defaultValue,ya=ut.presets,Va=ut.open,Ha=ut.defaultOpen,Ba=ut.defaultOpenValue,hs=ut.suffixIcon,La=ut.clearIcon,Ca=ut.disabled,Ta=ut.disabledDate,os=ut.placeholder,fs=ut.getPopupContainer,Qa=ut.pickerRef,Oa=ut.panelRender,Is=ut.onChange,hl=ut.onOpenChange,rt=ut.onFocus,gt=ut.onBlur,Xt=ut.onMouseDown,Qt=ut.onMouseUp,Pn=ut.onMouseEnter,hn=ut.onMouseLeave,Jn=ut.onContextMenu,Yn=ut.onClick,Vn=ut.onKeyDown,xi=ut.onSelect,si=ut.direction,Si=ut.autoComplete,Qi=Si===void 0?"off":Si,Xi=ut.inputRender,Ii=ut.changeOnBlur,Sr=Pe.useRef(null),Zi=vo==="date"&&!!no||vo==="time",Lr=wt(ya),Er=Hn(sr(ho,vo,no,ur)),Or=Pe.useRef(null),yo=Pe.useRef(null),Lo=Pe.useRef(null),Hr=(0,tt.Z)(null,{value:la,defaultValue:ea}),qr=(0,xn.Z)(Hr,2),Vo=qr[0],Ir=qr[1],ao=Pe.useState(Vo),Wr=(0,xn.Z)(ao,2),mr=Wr[0],Dr=Wr[1],lo=Pe.useRef(null),Mo=(0,tt.Z)(!1,{value:Va,defaultValue:Ha,postState:function(zo){return Ca?!1:zo},onChange:function(zo){hl&&hl(zo),!zo&&lo.current&&lo.current.onClose&&lo.current.onClose()}}),ko=(0,xn.Z)(Mo,2),Br=ko[0],Go=ko[1],_o=Vi(mr,{formatList:Er,generateConfig:xr,locale:ai}),na=(0,xn.Z)(_o,2),ta=na[0],_a=na[1],ga=Yt({valueTexts:ta,onTextChange:function(zo){var Ms=ei(zo,{locale:ai,formatList:Er,generateConfig:xr});Ms&&(!Ta||!Ta(Ms))&&Dr(Ms)}}),Ho=(0,xn.Z)(ga,3),wo=Ho[0],Oo=Ho[1],Ua=Ho[2],Ia=function(zo){Dr(zo),Ir(zo),Is&&!qt(xr,Vo,zo)&&Is(zo,zo?vi(zo,{generateConfig:xr,locale:ai,format:Er[0]}):"")},ts=function(zo){Ca&&zo||Go(zo)},Ro=function(zo){return Br&&lo.current&&lo.current.onKeyDown?lo.current.onKeyDown(zo):((0,He.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},bo=function(){for(var zo=arguments.length,Ms=new Array(zo),Ys=0;Ys<zo;Ys++)Ms[Ys]=arguments[Ys];Yn==null||Yn.apply(void 0,Ms),Sr.current&&(Sr.current.focus(),ts(!0))},Wo=function(zo){Ii&&Ia(mr),gt==null||gt(zo)},xo=xt({blurToCancel:Zi,open:Br,value:wo,triggerOpen:ts,forwardKeyDown:Ro,isClickOutside:function(zo){return!vn([Or.current,yo.current,Lo.current],zo)},onSubmit:function(){return!mr||Ta&&Ta(mr)?!1:(Ia(mr),ts(!1),Ua(),!0)},onCancel:function(){ts(!1),Dr(Vo),Ua()},onKeyDown:function(zo,Ms){Vn==null||Vn(zo,Ms)},onFocus:rt,onBlur:Wo,changeOnBlur:Ii}),oo=(0,xn.Z)(xo,2),qi=oo[0],Vr=oo[1],Xo=Vr.focused,ua=Vr.typing;Pe.useEffect(function(){Br||(Dr(Vo),!ta.length||ta[0]===""?Oo(""):_a!==wo&&Ua())},[Br,ta]),Pe.useEffect(function(){Br||Ua()},[vo]),Pe.useEffect(function(){Dr(Vo)},[Vo]),Qa&&(Qa.current={focus:function(){var zo;(zo=Sr.current)===null||zo===void 0||zo.focus()},blur:function(){var zo;(zo=Sr.current)===null||zo===void 0||zo.blur()}});var al=zi(wo,{formatList:Er,generateConfig:xr,locale:ai}),Rs=(0,xn.Z)(al,3),Al=Rs[0],Na=Rs[1],Xa=Rs[2],Bo=(0,Gn.Z)((0,Gn.Z)({},je),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Vs=Pe.createElement("div",{className:"".concat(un,"-panel-layout")},Pe.createElement(ro,{prefixCls:un,presets:Lr,onClick:function(zo){Ia(zo),ts(!1)}}),Pe.createElement(Ao,(0,Fe.Z)({},Bo,{generateConfig:xr,className:Nt()((0,mt.Z)({},"".concat(un,"-panel-focused"),!ua)),value:mr,locale:ai,tabIndex:-1,onSelect:function(zo){xi==null||xi(zo),Dr(zo)},direction:si,onPanelChange:function(zo,Ms){var Ys=je.onPanelChange;Xa(!0),Ys==null||Ys(zo,Ms)}})));Oa&&(Vs=Oa(Vs));var Ll=Pe.createElement("div",{className:"".concat(un,"-panel-container"),ref:Or,onMouseDown:function(zo){zo.preventDefault()}},Vs),Wa;hs&&(Wa=Pe.createElement("span",{className:"".concat(un,"-suffix"),onMouseDown:function(zo){zo.preventDefault()}},hs));var $a=fa(un,wr,La),ns=Pe.createElement("span",{onMouseDown:function(zo){zo.preventDefault(),zo.stopPropagation()},onMouseUp:function(zo){zo.preventDefault(),zo.stopPropagation(),Ia(null),ts(!1)},className:"".concat(un,"-clear"),role:"button"},$a),bs=!!wr&&Vo&&!Ca,Gs=(0,Gn.Z)((0,Gn.Z)((0,Gn.Z)({id:In,tabIndex:ui,disabled:Ca,readOnly:$i||typeof Er[0]=="function"||!ua,value:Al||wo,onChange:function(zo){Oo(zo.target.value)},autoFocus:co,placeholder:os,ref:Sr,title:wo},qi),{},{size:Fo(vo,Er[0],xr),name:Wn},(0,Ee.Z)(je,{aria:!0,data:!0})),{},{autoComplete:Qi}),Sa=Xi?Xi(Gs):Pe.createElement("input",Gs),as=function(zo,Ms){(Ms==="submit"||Ms!=="key"&&!Zi)&&(Ia(zo),ts(!1))},Js=si==="rtl"?"bottomRight":"bottomLeft";return Pe.createElement(ht.Provider,{value:{operationRef:lo,hideHeader:vo==="time",onSelect:as,open:Br,defaultOpenValue:Ba,onDateMouseEnter:Na,onDateMouseLeave:Xa}},Pe.createElement(No,{visible:Br,popupElement:Ll,popupStyle:_i,prefixCls:un,dropdownClassName:ar,dropdownAlign:Fi,getPopupContainer:fs,transitionName:bi,popupPlacement:Js,direction:si},Pe.createElement("div",{ref:Lo,className:Nt()(un,Ni,(nt={},(0,mt.Z)(nt,"".concat(un,"-disabled"),Ca),(0,mt.Z)(nt,"".concat(un,"-focused"),Xo),(0,mt.Z)(nt,"".concat(un,"-rtl"),si==="rtl"),nt)),style:fi,onMouseDown:Xt,onMouseUp:Qt,onMouseEnter:Pn,onMouseLeave:hn,onContextMenu:Jn,onClick:bo},Pe.createElement("div",{className:Nt()("".concat(un,"-input"),(0,mt.Z)({},"".concat(un,"-input-placeholder"),!!Al)),ref:yo},Sa,Wa,bs&&ns))))}var Ds=function(je){(0,dn.Z)(ut,je);var nt=(0,Tn.Z)(ut);function ut(){var $t;(0,en.Z)(this,ut);for(var un=arguments.length,In=new Array(un),Wn=0;Wn<un;Wn++)In[Wn]=arguments[Wn];return $t=nt.call.apply(nt,[this].concat(In)),(0,mt.Z)((0,On.Z)($t),"pickerRef",Pe.createRef()),(0,mt.Z)((0,On.Z)($t),"focus",function(){$t.pickerRef.current&&$t.pickerRef.current.focus()}),(0,mt.Z)((0,On.Z)($t),"blur",function(){$t.pickerRef.current&&$t.pickerRef.current.blur()}),$t}return(0,nn.Z)(ut,[{key:"render",value:function(){return Pe.createElement(ka,(0,Fe.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),ut}(Pe.Component),ys=Ds;function nl(je,nt){var ut=je.picker,$t=je.locale,un=je.selectedValue,In=je.disabledDate,Wn=je.disabled,ui=je.generateConfig,fi=ct(un,0),Ni=ct(un,1);function ar(ai){return ui.locale.getWeekFirstDate($t.locale,ai)}function Fi(ai){var $i=ui.getYear(ai),wr=ui.getMonth(ai);return $i*100+wr}function _i(ai){var $i=ui.getYear(ai),wr=Ct(ui,ai);return $i*10+wr}var bi=Pe.useCallback(function(ai){if(Wn[0]||In&&In(ai))return!0;if(Wn[1]&&Ni)return!Ht(ui,ai,Ni)&&ui.isAfter(ai,Ni);if(!nt&&Ni)switch(ut){case"quarter":return _i(ai)>_i(Ni);case"month":return Fi(ai)>Fi(Ni);case"week":return ar(ai)>ar(Ni);default:return!Ht(ui,ai,Ni)&&ui.isAfter(ai,Ni)}return!1},[In,Wn[1],Ni,nt]),xr=Pe.useCallback(function(ai){if(Wn[1]||In&&In(ai))return!0;if(Wn[0]&&fi)return!Ht(ui,ai,Ni)&&ui.isAfter(fi,ai);if(!nt&&fi)switch(ut){case"quarter":return _i(ai)<_i(fi);case"month":return Fi(ai)<Fi(fi);case"week":return ar(ai)<ar(fi);default:return!Ht(ui,ai,fi)&&ui.isAfter(fi,ai)}return!1},[In,Wn[0],fi,nt]);return[bi,xr]}var Gi=ve(70425),Da=ve(6089);function pa(je,nt,ut,$t,un,In,Wn,ui,fi,Ni){var ar=Pe.useState(!1),Fi=(0,xn.Z)(ar,2),_i=Fi[0],bi=Fi[1],xr=(0,Gi.useMergedState)(je||!1,{value:nt}),ai=(0,xn.Z)(xr,2),$i=ai[0],wr=ai[1],co=(0,Gi.useMergedState)(je||!1,{value:nt,onChange:function(Ta){Ni==null||Ni(Ta)}}),no=(0,xn.Z)(co,2),mo=no[0],vo=no[1],ho=(0,Gi.useMergedState)(0,{value:ut}),ur=(0,xn.Z)(ho,2),la=ur[0],ea=ur[1],ya=Pe.useState(null),Va=(0,xn.Z)(ya,2),Ha=Va[0],Ba=Va[1];Pe.useEffect(function(){mo&&bi(!0)},[mo]);var hs=function(Ta){return Ta===0?1:0},La=(0,Da.Z)(function(Ca,Ta,os){if(Ta===!1)vo(Ca);else if(Ca){ea(Ta),vo(Ca);var fs=hs(Ta);!mo||![Wn,ui][fs]?Ba(fs):(bi(!1),Ha!==null&&Ba(null))}else if(os==="confirm"||os==="blur"&&$t){var Qa=$i?hs(Ta):Ha;Qa!==null&&(bi(!1),ea(Qa)),Ba(null),Qa!==null&&!fi[Qa]?(0,rr.Z)(function(){var Oa,Is=[un,In][Qa];(Oa=Is.current)===null||Oa===void 0||Oa.focus()}):vo(!1)}else vo(!1),wr(!1)});return[mo,la,_i,La]}function Os(je,nt,ut,$t){var un=wn(je,ut,$t,1);function In(Wn){return Wn(je,nt)?"same":Wn(un,nt)?"closing":"far"}switch(ut){case"year":return In(function(Wn,ui){return Ve($t,Wn,ui)});case"quarter":case"month":return In(function(Wn,ui){return We($t,Wn,ui)});default:return In(function(Wn,ui){return dt($t,Wn,ui)})}}function ml(je,nt,ut,$t){var un=ct(je,0),In=ct(je,1);if(nt===0)return un;if(un&&In){var Wn=Os(un,In,ut,$t);switch(Wn){case"same":return un;case"closing":return un;default:return wn(In,ut,$t,-1)}}return un}function Gl(je){var nt=je.values,ut=je.picker,$t=je.defaultDates,un=je.generateConfig,In=Pe.useState(function(){return[ct($t,0),ct($t,1)]}),Wn=(0,xn.Z)(In,2),ui=Wn[0],fi=Wn[1],Ni=Pe.useState(null),ar=(0,xn.Z)(Ni,2),Fi=ar[0],_i=ar[1],bi=ct(nt,0),xr=ct(nt,1);function ai(wr){return ui[wr]?ui[wr]:ct(Fi,wr)||ml(nt,wr,ut,un)||bi||xr||un.getNow()}function $i(wr,co){if(wr){var no=sn(Fi,wr,co);fi(sn(ui,null,co)||[null,null]);var mo=(co+1)%2;ct(nt,mo)||(no=sn(no,wr,mo)),_i(no)}else(bi||xr)&&_i(null)}return[ai,$i]}function So(je,nt){return je&&je[0]&&je[1]&&nt.isAfter(je[0],je[1])?[je[1],je[0]]:je}function Au(je,nt,ut,$t){return!!(je||$t&&$t[nt]||ut[(nt+1)%2])}function il(je){var nt,ut,$t,un=je,In=un.prefixCls,Wn=In===void 0?"rc-picker":In,ui=un.id,fi=un.style,Ni=un.className,ar=un.popupStyle,Fi=un.dropdownClassName,_i=un.transitionName,bi=un.dropdownAlign,xr=un.getPopupContainer,ai=un.generateConfig,$i=un.locale,wr=un.placeholder,co=un.autoFocus,no=un.disabled,mo=un.format,vo=un.picker,ho=vo===void 0?"date":vo,ur=un.showTime,la=un.use12Hours,ea=un.separator,ya=ea===void 0?"~":ea,Va=un.value,Ha=un.defaultValue,Ba=un.defaultPickerValue,hs=un.open,La=un.defaultOpen,Ca=un.disabledDate,Ta=un.disabledTime,os=un.dateRender,fs=un.monthCellRender,Qa=un.cellRender,Oa=un.panelRender,Is=un.presets,hl=un.ranges,rt=un.allowEmpty,gt=un.allowClear,Xt=un.suffixIcon,Qt=un.clearIcon,Pn=un.pickerRef,hn=un.inputReadOnly,Jn=un.mode,Yn=un.renderExtraFooter,Vn=un.onChange,xi=un.onOpenChange,si=un.onPanelChange,Si=un.onCalendarChange,Qi=un.onFocus,Xi=un.onBlur,Ii=un.onMouseDown,Sr=un.onMouseUp,Zi=un.onMouseEnter,Lr=un.onMouseLeave,Er=un.onClick,Or=un.onOk,yo=un.onKeyDown,Lo=un.components,Hr=un.order,qr=un.direction,Vo=un.activePickerIndex,Ir=un.autoComplete,ao=Ir===void 0?"off":Ir,Wr=un.changeOnBlur,mr=ho==="date"&&!!ur||ho==="time",Dr=(0,Pe.useRef)(null),lo=(0,Pe.useRef)(null),Mo=(0,Pe.useRef)(null),ko=(0,Pe.useRef)(null),Br=(0,Pe.useRef)(null),Go=(0,Pe.useRef)(null),_o=(0,Pe.useRef)(null),na=(0,Pe.useRef)(null),ta=Hn(sr(mo,ho,ur,la)),_a=(0,Pe.useRef)(null),ga=Pe.useMemo(function(){return Array.isArray(no)?no:[no||!1,no||!1]},[no]),Ho=(0,tt.Z)(null,{value:Va,defaultValue:Ha,postState:function(Yo){return ho==="time"&&!Hr?Yo:So(Yo,ai)}}),wo=(0,xn.Z)(Ho,2),Oo=wo[0],Ua=wo[1],Ia=Gl({values:Oo,picker:ho,defaultDates:Ba,generateConfig:ai}),ts=(0,xn.Z)(Ia,2),Ro=ts[0],bo=ts[1],Wo=(0,tt.Z)(Oo,{postState:function(Yo){var ca=Yo;if(ga[0]&&ga[1])return ca;for(var is=0;is<2;is+=1)ga[is]&&!ca&&!ct(ca,is)&&!ct(rt,is)&&(ca=sn(ca,ai.getNow(),is));return ca}}),xo=(0,xn.Z)(Wo,2),oo=xo[0],qi=xo[1],Vr=(0,tt.Z)([ho,ho],{value:Jn}),Xo=(0,xn.Z)(Vr,2),ua=Xo[0],al=Xo[1];(0,Pe.useEffect)(function(){al([ho,ho])},[ho]);var Rs=function(Yo,ca){al(Yo),si&&si(ca,Yo)},Al=pa(La,hs,Vo,Wr,Go,_o,ct(oo,0),ct(oo,1),ga,xi),Na=(0,xn.Z)(Al,4),Xa=Na[0],Bo=Na[1],Vs=Na[2],Ll=Na[3],Wa=Xa&&Bo===0,$a=Xa&&Bo===1,ns=nl({picker:ho,selectedValue:oo,locale:$i,disabled:ga,disabledDate:Ca,generateConfig:ai},!Xa||Vs),bs=(0,xn.Z)(ns,2),Gs=bs[0],Sa=bs[1],as=(0,Pe.useState)(0),Js=(0,xn.Z)(as,2),Ja=Js[0],zo=Js[1];(0,Pe.useEffect)(function(){!Xa&&Dr.current&&zo(Dr.current.offsetWidth)},[Xa]);function Ms(ls){Ll(!0,ls,"open"),(0,rr.Z)(function(){var Yo,ca=[Go,_o][ls];(Yo=ca.current)===null||Yo===void 0||Yo.focus()},0)}function Ys(ls,Yo){var ca=ls,is=ct(ca,0),ll=ct(ca,1);is&&ll&&ai.isAfter(is,ll)&&(ho==="week"&&!An(ai,$i.locale,is,ll)||ho==="quarter"&&!bt(ai,is,ll)||ho!=="week"&&ho!=="quarter"&&ho!=="time"&&!Ht(ai,is,ll)?Yo===0?(ca=[is,null],ll=null):(is=null,ca=[null,ll]):(ho!=="time"||Hr!==!1)&&(ca=So(ca,ai))),qi(ca);var md=ca&&ca[0]?vi(ca[0],{generateConfig:ai,locale:$i,format:ta[0]}):"",tu=ca&&ca[1]?vi(ca[1],{generateConfig:ai,locale:$i,format:ta[0]}):"";if(Si){var td={range:Yo===0?"start":"end"};Si(ca,[md,tu],td)}var Ac=Au(is,0,ga,rt),ph=Au(ll,1,ga,rt),nd=ca===null||Ac&&ph;nd&&(Ua(ca),Vn&&(!qt(ai,ct(Oo,0),is)||!qt(ai,ct(Oo,1),ll))&&Vn(ca,[md,tu]))}var Wu=function(Yo){return Xa&&_a.current&&_a.current.onKeyDown?_a.current.onKeyDown(Yo):((0,He.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},vu={formatList:ta,generateConfig:ai,locale:$i},qa=Vi(ct(oo,0),vu),Ml=(0,xn.Z)(qa,2),Ps=Ml[0],gs=Ml[1],Nu=Vi(ct(oo,1),vu),Cc=(0,xn.Z)(Nu,2),ql=Cc[0],ac=Cc[1],sc=function(Yo,ca){var is=ei(Yo,{locale:$i,formatList:ta,generateConfig:ai}),ll=ca===0?Gs:Sa;is&&!ll(is)&&(qi(sn(oo,is,ca)),bo(is,ca))},yu=Yt({valueTexts:Ps,onTextChange:function(Yo){return sc(Yo,0)}}),Ra=(0,xn.Z)(yu,3),ss=Ra[0],Qs=Ra[1],ps=Ra[2],za=Yt({valueTexts:ql,onTextChange:function(Yo){return sc(Yo,1)}}),_s=(0,xn.Z)(za,3),Rl=_s[0],Zu=_s[1],uh=_s[2],gn=(0,Pe.useState)(null),Rc=(0,xn.Z)(gn,2),bc=Rc[0],jh=Rc[1],bd=(0,Pe.useState)(null),_c=(0,xn.Z)(bd,2),zc=_c[0],gf=_c[1],kl=zi(ss,{formatList:ta,generateConfig:ai,locale:$i}),fd=(0,xn.Z)(kl,3),Wd=fd[0],Zd=fd[1],Kd=fd[2],pf=zi(Rl,{formatList:ta,generateConfig:ai,locale:$i}),Vd=(0,xn.Z)(pf,3),Gd=Vd[0],ku=Vd[1],$c=Vd[2],Hh=function(Yo){gf(sn(oo,Yo,Bo)),Bo===0?Zd(Yo):ku(Yo)},lc=function(){gf(sn(oo,null,Bo)),Bo===0?Kd():$c()},qc=Pe.useState(Xa),gd=(0,xn.Z)(qc,2),pd=gd[0],eu=gd[1];Pe.useEffect(function(){eu(Xa)},[Xa]);var ch=function(Yo){if(Wr&&pd){var ca=ct(oo,Bo);ca&&Ys(oo,Bo)}return Xi==null?void 0:Xi(Yo)},Yd=function(Yo,ca){return{blurToCancel:!Wr&&mr,forwardKeyDown:Wu,onBlur:ch,isClickOutside:function(ll){return!vn([lo.current,Mo.current,ko.current,Dr.current],ll)},onFocus:function(ll){Qi&&Qi(ll)},triggerOpen:function(ll){ll?Ll(ll,Yo,"open"):Ll(ll,ct(oo,Yo)?Yo:!1,"blur")},onSubmit:function(){if(!oo||Ca&&Ca(oo[Yo]))return!1;Ys(oo,Yo),ca(),Ll(!1,Bo,"confirm")},onCancel:function(){Ll(!1,Yo,"cancel"),qi(Oo),ca()}}},Su={onKeyDown:function(Yo,ca){yo==null||yo(Yo,ca)},changeOnBlur:Wr},Ed=xt((0,Gn.Z)((0,Gn.Z)({},Yd(0,ps)),{},{open:Wa,value:ss},Su)),Ud=(0,xn.Z)(Ed,2),dh=Ud[0],jc=Ud[1],Hl=jc.focused,Xd=jc.typing,sl=xt((0,Gn.Z)((0,Gn.Z)({},Yd(1,uh)),{},{open:$a,value:Rl},Su)),Ya=(0,xn.Z)(sl,2),Es=Ya[0],Dl=Ya[1],Du=Dl.focused,Bu=Dl.typing,hh=function(Yo){Er&&Er(Yo),!Xa&&!Go.current.contains(Yo.target)&&!_o.current.contains(Yo.target)&&(ga[0]?ga[1]||Ms(1):Ms(0))},ed=function(Yo){Ii&&Ii(Yo),Xa&&(Hl||Du)&&!Go.current.contains(Yo.target)&&!_o.current.contains(Yo.target)&&Yo.preventDefault()},Jd=Oo&&Oo[0]?vi(Oo[0],{locale:$i,format:"YYYYMMDDHHmmss",generateConfig:ai}):"",Qu=Oo&&Oo[1]?vi(Oo[1],{locale:$i,format:"YYYYMMDDHHmmss",generateConfig:ai}):"";(0,Pe.useEffect)(function(){Xa||(qi(Oo),!Ps.length||Ps[0]===""?Qs(""):gs!==ss&&ps(),!ql.length||ql[0]===""?Zu(""):ac!==Rl&&uh())},[Xa,Ps,ql]),(0,Pe.useEffect)(function(){qi(Oo)},[Jd,Qu]);var uc=_t({cellRender:Qa,monthCellRender:fs,dateRender:os}),mf=Pe.useMemo(function(){if(uc)return function(ls,Yo){return uc(ls,(0,Gn.Z)((0,Gn.Z)({},Yo),{},{range:Bo?"end":"start"}))}},[Bo,uc]);Pn&&(Pn.current={focus:function(){Go.current&&Go.current.focus()},blur:function(){Go.current&&Go.current.blur(),_o.current&&_o.current.blur()}});var vf=wt(Is,hl);function fh(){var ls=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Yo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ca=null;Xa&&zc&&zc[0]&&zc[1]&&ai.isAfter(zc[1],zc[0])&&(ca=zc);var is=ur;if(ur&&(0,Qe.Z)(ur)==="object"&&ur.defaultValue){var ll=ur.defaultValue;is=(0,Gn.Z)((0,Gn.Z)({},ur),{},{defaultValue:ct(ll,Bo)||void 0})}return Pe.createElement(rn.Provider,{value:{inRange:!0,panelPosition:ls,rangedValue:bc||oo,hoverRangedValue:ca}},Pe.createElement(Ao,(0,Fe.Z)({},je,Yo,{cellRender:mf,showTime:is,mode:ua[Bo],generateConfig:ai,style:void 0,direction:qr,disabledDate:Bo===0?Gs:Sa,disabledTime:function(tu){return Ta?Ta(tu,Bo===0?"start":"end"):!1},className:Nt()((0,mt.Z)({},"".concat(Wn,"-panel-focused"),Bo===0?!Xd:!Bu)),value:ct(oo,Bo),locale:$i,tabIndex:-1,onPanelChange:function(tu,td){Bo===0&&Kd(!0),Bo===1&&$c(!0),Rs(sn(ua,td,Bo),sn(oo,tu,Bo));var Ac=tu;ls==="right"&&ua[Bo]===td&&(Ac=wn(Ac,td,ai,-1)),bo(Ac,Bo)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Bo===0?ct(oo,1):ct(oo,0)})))}var _u=0,yf=0;if(Bo&&Mo.current&&Br.current&&lo.current&&na.current){_u=Mo.current.offsetWidth+Br.current.offsetWidth;var Kf=na.current.offsetLeft>_u?na.current.offsetLeft-_u:na.current.offsetLeft,Sf=lo.current.offsetWidth,Ec=na.current.offsetWidth;Sf&&Ec&&_u>Sf-Ec-(qr==="rtl"?0:Kf)&&(yf=_u)}var wg=qr==="rtl"?{right:_u}:{left:_u};function Vf(){var ls,Yo=Zs(Wn,ua[Bo],Yn),ca=xa({prefixCls:Wn,components:Lo,needConfirmButton:mr,okDisabled:!ct(oo,Bo)||Ca&&Ca(oo[Bo]),locale:$i,onOk:function(){var Lc=ct(oo,Bo);Lc&&(Ys(oo,Bo),Or==null||Or(oo),Ll(!1,Bo,"confirm"))}});if(ho!=="time"&&!ur){var is=Ro(Bo),ll=wn(is,ho,ai),md=ua[Bo],tu=md===ho,td=fh(tu?"left":!1,{pickerValue:is,onPickerValueChange:function(Lc){bo(Lc,Bo)}}),Ac=fh("right",{pickerValue:ll,onPickerValueChange:function(Lc){bo(wn(Lc,ho,ai,-1),Bo)}});qr==="rtl"?ls=Pe.createElement(Pe.Fragment,null,Ac,tu&&td):ls=Pe.createElement(Pe.Fragment,null,td,tu&&Ac)}else ls=fh();var ph=Pe.createElement("div",{className:"".concat(Wn,"-panel-layout")},Pe.createElement(ro,{prefixCls:Wn,presets:vf,onClick:function(Lc){Ys(Lc,null),Ll(!1,Bo,"preset")},onHover:function(Lc){jh(Lc)}}),Pe.createElement("div",null,Pe.createElement("div",{className:"".concat(Wn,"-panels")},ls),(Yo||ca)&&Pe.createElement("div",{className:"".concat(Wn,"-footer")},Yo,ca)));return Oa&&(ph=Oa(ph)),Pe.createElement("div",{className:"".concat(Wn,"-panel-container"),style:{marginLeft:yf},ref:lo,onMouseDown:function(Lc){Lc.preventDefault()}},ph)}var gh=Pe.createElement("div",{className:Nt()("".concat(Wn,"-range-wrapper"),"".concat(Wn,"-").concat(ho,"-range-wrapper")),style:{minWidth:Ja}},Pe.createElement("div",{ref:na,className:"".concat(Wn,"-range-arrow"),style:wg}),Vf()),Ad;Xt&&(Ad=Pe.createElement("span",{className:"".concat(Wn,"-suffix"),onMouseDown:function(Yo){Yo.preventDefault()}},Xt));var Gf=fa(Wn,gt,Qt),Hc=Pe.createElement("span",{onMouseDown:function(Yo){Yo.preventDefault(),Yo.stopPropagation()},onMouseUp:function(Yo){Yo.preventDefault(),Yo.stopPropagation();var ca=Oo;ga[0]||(ca=sn(ca,null,0)),ga[1]||(ca=sn(ca,null,1)),Ys(ca,null),Ll(!1,Bo,"clear")},className:"".concat(Wn,"-clear"),role:"button"},Gf),Yf=gt&&(ct(Oo,0)&&!ga[0]||ct(Oo,1)&&!ga[1]),Wh={size:Fo(ho,ta[0],ai)},xf=0,Zh=0;Mo.current&&ko.current&&Br.current&&(Bo===0?Zh=Mo.current.offsetWidth:(xf=_u,Zh=ko.current.offsetWidth));var Uf=qr==="rtl"?{right:xf}:{left:xf},up=function(Yo,ca){var is=sn(oo,Yo,Bo);if(ca==="submit"||ca!=="key"&&!mr){Ys(is,Bo),Bo===0?Kd():$c();var ll=Bo===0?1:0;ga[ll]?Ll(!1,!1,"confirm"):Ll(!1,Bo,"confirm")}else qi(is)};return Pe.createElement(ht.Provider,{value:{operationRef:_a,hideHeader:ho==="time",onDateMouseEnter:Hh,onDateMouseLeave:lc,hideRanges:!0,onSelect:up,open:Xa}},Pe.createElement(No,{visible:Xa,popupElement:gh,popupStyle:ar,prefixCls:Wn,dropdownClassName:Fi,dropdownAlign:bi,getPopupContainer:xr,transitionName:_i,range:!0,direction:qr},Pe.createElement("div",(0,Fe.Z)({ref:Dr,className:Nt()(Wn,"".concat(Wn,"-range"),Ni,(nt={},(0,mt.Z)(nt,"".concat(Wn,"-disabled"),ga[0]&&ga[1]),(0,mt.Z)(nt,"".concat(Wn,"-focused"),Bo===0?Hl:Du),(0,mt.Z)(nt,"".concat(Wn,"-rtl"),qr==="rtl"),nt)),style:fi,onClick:hh,onMouseEnter:Zi,onMouseLeave:Lr,onMouseDown:ed,onMouseUp:Sr},(0,Ee.Z)(je,{aria:!0,data:!0})),Pe.createElement("div",{className:Nt()("".concat(Wn,"-input"),(ut={},(0,mt.Z)(ut,"".concat(Wn,"-input-active"),Bo===0),(0,mt.Z)(ut,"".concat(Wn,"-input-placeholder"),!!Wd),ut)),ref:Mo},Pe.createElement("input",(0,Fe.Z)({id:ui,disabled:ga[0],readOnly:hn||typeof ta[0]=="function"||!Xd,value:Wd||ss,onChange:function(Yo){Qs(Yo.target.value)},autoFocus:co,placeholder:ct(wr,0)||"",ref:Go},dh,Wh,{autoComplete:ao}))),Pe.createElement("div",{className:"".concat(Wn,"-range-separator"),ref:Br},ya),Pe.createElement("div",{className:Nt()("".concat(Wn,"-input"),($t={},(0,mt.Z)($t,"".concat(Wn,"-input-active"),Bo===1),(0,mt.Z)($t,"".concat(Wn,"-input-placeholder"),!!Gd),$t)),ref:ko},Pe.createElement("input",(0,Fe.Z)({disabled:ga[1],readOnly:hn||typeof ta[0]=="function"||!Bu,value:Gd||Rl,onChange:function(Yo){Zu(Yo.target.value)},placeholder:ct(wr,1)||"",ref:_o},Es,Wh,{autoComplete:ao}))),Pe.createElement("div",{className:"".concat(Wn,"-active-bar"),style:(0,Gn.Z)((0,Gn.Z)({},Uf),{},{width:Zh,position:"absolute"})}),Ad,Yf&&Hc)))}var Nl=function(je){(0,dn.Z)(ut,je);var nt=(0,Tn.Z)(ut);function ut(){var $t;(0,en.Z)(this,ut);for(var un=arguments.length,In=new Array(un),Wn=0;Wn<un;Wn++)In[Wn]=arguments[Wn];return $t=nt.call.apply(nt,[this].concat(In)),(0,mt.Z)((0,On.Z)($t),"pickerRef",Pe.createRef()),(0,mt.Z)((0,On.Z)($t),"focus",function(){$t.pickerRef.current&&$t.pickerRef.current.focus()}),(0,mt.Z)((0,On.Z)($t),"blur",function(){$t.pickerRef.current&&$t.pickerRef.current.blur()}),$t}return(0,nn.Z)(ut,[{key:"render",value:function(){return Pe.createElement(il,(0,Fe.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),ut}(Pe.Component),vl=Nl,fu=ys,yl=ve(19080),rl=ve(36355),Sl=ve(1684),oc=ve(19716),Sc=ve(32441),xc=ve(9763),Qc=ve(33234),gu=ve(48183),zl=ve(64993),xl=ve(9937),Tl=ve(17313),pu=ve(47585),wc=ve(74207),mu=ve(13826),Jo=ve(92899),ma=ve(37613),dl=ve(83116);const Cs=(je,nt,ut,$t)=>{const{lineHeight:un}=je,In=Math.floor(ut*un)+2,Wn=Math.max((nt-In)/2,0),ui=Math.max(nt-In-Wn,0);return{padding:`${Wn}px ${$t}px ${ui}px`}},Ss=je=>{const{componentCls:nt,pickerCellCls:ut,pickerCellInnerCls:$t,cellHeight:un,motionDurationSlow:In,borderRadiusSM:Wn,motionDurationMid:ui,cellHoverBg:fi,lineWidth:Ni,lineType:ar,colorPrimary:Fi,cellActiveWithRangeBg:_i,colorTextLightSolid:bi,controlHeightSM:xr,cellRangeBorderColor:ai,pickerCellBorderGap:$i,cellHoverWithRangeBg:wr,cellWidth:co,colorTextDisabled:no,cellBgDisabled:mo}=je;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:un,transform:"translateY(-50%)",transition:`all ${In}`,content:'""'},[$t]:{position:"relative",zIndex:2,display:"inline-block",minWidth:un,height:un,lineHeight:`${un}px`,borderRadius:Wn,transition:`background ${ui}, border ${ui}`},"&-range-hover-start, &-range-hover-end":{[$t]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${ut}-in-view),
&:hover:not(${ut}-selected):not(${ut}-range-start):not(${ut}-range-end):not(${ut}-range-hover-start):not(${ut}-range-hover-end)`]:{[$t]:{background:fi}},[`&-in-view${ut}-today ${$t}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ni}px ${ar} ${Fi}`,borderRadius:Wn,content:'""'}},[`&-in-view${ut}-in-range`]:{position:"relative","&::before":{background:_i}},[`&-in-view${ut}-selected ${$t},
&-in-view${ut}-range-start ${$t},
&-in-view${ut}-range-end ${$t}`]:{color:bi,background:Fi},[`&-in-view${ut}-range-start:not(${ut}-range-start-single),
&-in-view${ut}-range-end:not(${ut}-range-end-single)`]:{"&::before":{background:_i}},[`&-in-view${ut}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${ut}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${ut}-range-hover-start:not(${ut}-in-range):not(${ut}-range-start):not(${ut}-range-end),
&-in-view${ut}-range-hover-end:not(${ut}-in-range):not(${ut}-range-start):not(${ut}-range-end),
&-in-view${ut}-range-hover-start${ut}-range-start-single,
&-in-view${ut}-range-hover-start${ut}-range-start${ut}-range-end${ut}-range-end-near-hover,
&-in-view${ut}-range-hover-end${ut}-range-start${ut}-range-end${ut}-range-start-near-hover,
&-in-view${ut}-range-hover-end${ut}-range-end-single,
&-in-view${ut}-range-hover:not(${ut}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:xr,borderTop:`${Ni}px dashed ${ai}`,borderBottom:`${Ni}px dashed ${ai}`,transform:"translateY(-50%)",transition:`all ${In}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:$i},[`&-in-view${ut}-in-range${ut}-range-hover::before,
&-in-view${ut}-in-range${ut}-range-hover-start::before,
&-in-view${ut}-in-range${ut}-range-hover-end::before,
&-in-view${ut}-range-start${ut}-range-hover::before,
&-in-view${ut}-range-end${ut}-range-hover::before,
&-in-view${ut}-range-start:not(${ut}-range-start-single)${ut}-range-hover-start::before,
&-in-view${ut}-range-end:not(${ut}-range-end-single)${ut}-range-hover-end::before,
${nt}-panel
> :not(${nt}-date-panel)
&-in-view${ut}-in-range${ut}-range-hover-start::before,
${nt}-panel
> :not(${nt}-date-panel)
&-in-view${ut}-in-range${ut}-range-hover-end::before`]:{background:wr},[`&-in-view${ut}-range-start:not(${ut}-range-start-single):not(${ut}-range-end) ${$t}`]:{borderStartStartRadius:Wn,borderEndStartRadius:Wn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${ut}-range-end:not(${ut}-range-end-single):not(${ut}-range-start) ${$t}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Wn,borderEndEndRadius:Wn},[`&-range-hover${ut}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${ut}-range-hover:first-child::after,
tr > &-in-view${ut}-range-hover-end:first-child::after,
&-in-view${ut}-start${ut}-range-hover-edge-start${ut}-range-hover-edge-start-near-range::after,
&-in-view${ut}-range-hover-edge-start:not(${ut}-range-hover-edge-start-near-range)::after,
&-in-view${ut}-range-hover-start::after`]:{insetInlineStart:(co-un)/2,borderInlineStart:`${Ni}px dashed ${ai}`,borderStartStartRadius:Wn,borderEndStartRadius:Wn},[`tr > &-in-view${ut}-range-hover:last-child::after,
tr > &-in-view${ut}-range-hover-start:last-child::after,
&-in-view${ut}-end${ut}-range-hover-edge-end${ut}-range-hover-edge-end-near-range::after,
&-in-view${ut}-range-hover-edge-end:not(${ut}-range-hover-edge-end-near-range)::after,
&-in-view${ut}-range-hover-end::after`]:{insetInlineEnd:(co-un)/2,borderInlineEnd:`${Ni}px dashed ${ai}`,borderStartEndRadius:Wn,borderEndEndRadius:Wn},"&-disabled":{color:no,pointerEvents:"none",[$t]:{background:"transparent"},"&::before":{background:mo}},[`&-disabled${ut}-today ${$t}::before`]:{borderColor:no}}},rs=je=>{const{componentCls:nt,pickerCellCls:ut,pickerCellInnerCls:$t,pickerYearMonthCellWidth:un,pickerControlIconSize:In,cellWidth:Wn,paddingSM:ui,paddingXS:fi,paddingXXS:Ni,colorBgContainer:ar,lineWidth:Fi,lineType:_i,borderRadiusLG:bi,colorPrimary:xr,colorTextHeading:ai,colorSplit:$i,pickerControlIconBorderWidth:wr,colorIcon:co,textHeight:no,motionDurationMid:mo,colorIconHover:vo,fontWeightStrong:ho,cellHeight:ur,pickerCellPaddingVertical:la,colorTextDisabled:ea,colorText:ya,fontSize:Va,cellHoverWithRangeBg:Ha,motionDurationSlow:Ba,withoutTimeCellHeight:hs,pickerQuarterPanelContentHeight:La,colorLink:Ca,colorLinkActive:Ta,colorLinkHover:os,cellRangeBorderColor:fs,borderRadiusSM:Qa,colorTextLightSolid:Oa,cellHoverBg:Is,timeColumnHeight:hl,timeColumnWidth:rt,timeCellHeight:gt,controlItemBgActive:Xt,marginXXS:Qt,pickerDatePanelPaddingHorizontal:Pn}=je,hn=Wn*7+Pn*2,Jn=(hn-fi*2)/3-un-ui,Yn=(hn-fi*2)/4-un;return{[nt]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:ar,border:`${Fi}px ${_i} ${$i}`,borderRadius:bi,outline:"none","&-focused":{borderColor:xr},"&-rtl":{direction:"rtl",[`${nt}-prev-icon,
${nt}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${nt}-next-icon,
${nt}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:hn},"&-header":{display:"flex",padding:`0 ${fi}px`,color:ai,borderBottom:`${Fi}px ${_i} ${$i}`,"> *":{flex:"none"},button:{padding:0,color:co,lineHeight:`${no}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${mo}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Va,"&:hover":{color:vo}},"&-view":{flex:"auto",fontWeight:ho,lineHeight:`${no}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:fi},"&:hover":{color:xr}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:In,height:In,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:In,height:In,border:"0 solid currentcolor",borderBlockStartWidth:wr,borderBlockEndWidth:0,borderInlineStartWidth:wr,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(In/2),insetInlineStart:Math.ceil(In/2),display:"inline-block",width:In,height:In,border:"0 solid currentcolor",borderBlockStartWidth:wr,borderBlockEndWidth:0,borderInlineStartWidth:wr,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:ur,fontWeight:"normal"},th:{height:ur+la*2,color:ya,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${la}px 0`,color:ea,cursor:"pointer","&-in-view":{color:ya}},Ss(je)),[`&-date-panel ${nt}-cell-in-view${nt}-cell-in-range${nt}-cell-range-hover-start ${$t},
&-date-panel ${nt}-cell-in-view${nt}-cell-in-range${nt}-cell-range-hover-end ${$t}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Ha,transition:`all ${Ba}`,content:'""'}},[`&-date-panel
${nt}-cell-in-view${nt}-cell-in-range${nt}-cell-range-hover-start
${$t}::after`]:{insetInlineEnd:-(Wn-ur)/2,insetInlineStart:0},[`&-date-panel ${nt}-cell-in-view${nt}-cell-in-range${nt}-cell-range-hover-end ${$t}::after`]:{insetInlineEnd:0,insetInlineStart:-(Wn-ur)/2},[`&-range-hover${nt}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${nt}-content`]:{height:hs*4},[$t]:{padding:`0 ${fi}px`}},"&-quarter-panel":{[`${nt}-content`]:{height:La},[`${nt}-cell-range-hover-start::after`]:{insetInlineStart:Yn,borderInlineStart:`${Fi}px dashed ${fs}`,[`${nt}-panel-rtl &`]:{insetInlineEnd:Yn,borderInlineEnd:`${Fi}px dashed ${fs}`}},[`${nt}-cell-range-hover-end::after`]:{insetInlineEnd:Yn,borderInlineEnd:`${Fi}px dashed ${fs}`,[`${nt}-panel-rtl &`]:{insetInlineStart:Yn,borderInlineStart:`${Fi}px dashed ${fs}`}}},[`&-panel ${nt}-footer`]:{borderTop:`${Fi}px ${_i} ${$i}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${no-2*Fi}px`,textAlign:"center","&-extra":{padding:`0 ${ui}px`,lineHeight:`${no-2*Fi}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Fi}px ${_i} ${$i}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:Ca,"&:hover":{color:os},"&:active":{color:Ta},[`&${nt}-today-btn-disabled`]:{color:ea,cursor:"not-allowed"}},"&-decade-panel":{[$t]:{padding:`0 ${fi/2}px`},[`${nt}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${nt}-body`]:{padding:`0 ${fi}px`},[$t]:{width:un},[`${nt}-cell-range-hover-start::after`]:{borderStartStartRadius:Qa,borderEndStartRadius:Qa,borderStartEndRadius:0,borderEndEndRadius:0,[`${nt}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Qa,borderEndEndRadius:Qa}},[`${nt}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Qa,borderEndEndRadius:Qa,[`${nt}-panel-rtl &`]:{borderStartStartRadius:Qa,borderEndStartRadius:Qa,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${nt}-cell-range-hover-start::after`]:{insetInlineStart:Jn,borderInlineStart:`${Fi}px dashed ${fs}`,[`${nt}-panel-rtl &`]:{insetInlineEnd:Jn,borderInlineEnd:`${Fi}px dashed ${fs}`}},[`${nt}-cell-range-hover-end::after`]:{insetInlineEnd:Jn,borderInlineEnd:`${Fi}px dashed ${fs}`,[`${nt}-panel-rtl &`]:{insetInlineStart:Jn,borderInlineStart:`${Fi}px dashed ${fs}`}}},"&-week-panel":{[`${nt}-body`]:{padding:`${fi}px ${ui}px`},[`${nt}-cell`]:{[`&:hover ${$t},
&-selected ${$t},
${$t}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${mo}`},"&:first-child:before":{borderStartStartRadius:Qa,borderEndStartRadius:Qa},"&:last-child:before":{borderStartEndRadius:Qa,borderEndEndRadius:Qa}},"&:hover td":{"&:before":{background:Is}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${ut}`]:{"&:before":{background:xr},[`&${nt}-cell-week`]:{color:new zl.C(Oa).setAlpha(.5).toHexString()},[$t]:{color:Oa}}},"&-range-hover td:before":{background:Xt}}},"&-date-panel":{[`${nt}-body`]:{padding:`${fi}px ${Pn}px`},[`${nt}-content`]:{width:Wn*7,th:{width:Wn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${nt}-time-panel`]:{borderInlineStart:`${Fi}px ${_i} ${$i}`},[`${nt}-date-panel,
${nt}-time-panel`]:{transition:`opacity ${Ba}`},"&-active":{[`${nt}-date-panel,
${nt}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${nt}-content`]:{display:"flex",flex:"auto",height:hl},"&-column":{flex:"1 0 auto",width:rt,margin:`${Ni}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${mo}`,overflowX:"hidden","&::after":{display:"block",height:hl-gt,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Fi}px ${_i} ${$i}`},"&-active":{background:new zl.C(Xt).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${nt}-time-panel-cell`]:{marginInline:Qt,[`${nt}-time-panel-cell-inner`]:{display:"block",width:rt-2*Qt,height:gt,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(rt-gt)/2,color:ya,lineHeight:`${gt}px`,borderRadius:Qa,cursor:"pointer",transition:`background ${mo}`,"&:hover":{background:Is}},"&-selected":{[`${nt}-time-panel-cell-inner`]:{background:Xt}},"&-disabled":{[`${nt}-time-panel-cell-inner`]:{color:ea,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${nt}-time-panel-column:after`]:{height:hl-gt+Ni*2}}}},ds=je=>{const{componentCls:nt,colorBgContainer:ut,colorError:$t,errorActiveShadow:un,colorWarning:In,warningActiveShadow:Wn}=je;return{[`${nt}:not(${nt}-disabled)`]:{[`&${nt}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:ut,borderColor:$t},[`&${nt}-focused, &:focus`]:Object.assign({},(0,xl.M1)((0,ma.TS)(je,{activeBorderColor:$t,activeShadow:un}))),[`${nt}-active-bar`]:{background:$t}},[`&${nt}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:ut,borderColor:In},[`&${nt}-focused, &:focus`]:Object.assign({},(0,xl.M1)((0,ma.TS)(je,{activeBorderColor:In,activeShadow:Wn}))),[`${nt}-active-bar`]:{background:In}}}}},Ls=je=>{const{componentCls:nt,antCls:ut,controlHeight:$t,fontSize:un,paddingInline:In,colorBgContainer:Wn,lineWidth:ui,lineType:fi,colorBorder:Ni,borderRadius:ar,motionDurationMid:Fi,colorBgContainerDisabled:_i,colorTextDisabled:bi,colorTextPlaceholder:xr,controlHeightLG:ai,fontSizeLG:$i,controlHeightSM:wr,paddingInlineSM:co,paddingXS:no,marginXS:mo,colorTextDescription:vo,lineWidthBold:ho,lineHeight:ur,colorPrimary:la,motionDurationSlow:ea,zIndexPopup:ya,paddingXXS:Va,paddingSM:Ha,textHeight:Ba,cellActiveWithRangeBg:hs,colorPrimaryBorder:La,sizePopupArrow:Ca,borderRadiusXS:Ta,borderRadiusOuter:os,colorBgElevated:fs,borderRadiusLG:Qa,boxShadowSecondary:Oa,borderRadiusSM:Is,colorSplit:hl,cellHoverBg:rt,presetsWidth:gt,presetsMaxWidth:Xt,boxShadowPopoverArrow:Qt,colorTextQuaternary:Pn}=je;return[{[nt]:Object.assign(Object.assign(Object.assign({},(0,Tl.Wf)(je)),Cs(je,$t,un,In)),{position:"relative",display:"inline-flex",alignItems:"center",background:Wn,lineHeight:1,border:`${ui}px ${fi} ${Ni}`,borderRadius:ar,transition:`border ${Fi}, box-shadow ${Fi}`,"&:hover, &-focused":Object.assign({},(0,xl.pU)(je)),"&-focused":Object.assign({},(0,xl.M1)(je)),[`&${nt}-disabled`]:{background:_i,borderColor:Ni,cursor:"not-allowed",[`${nt}-suffix`]:{color:Pn}},[`&${nt}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${nt}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,xl.ik)(je)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${nt}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:xr}}},"&-large":Object.assign(Object.assign({},Cs(je,ai,$i,In)),{[`${nt}-input > input`]:{fontSize:$i}}),"&-small":Object.assign({},Cs(je,wr,un,co)),[`${nt}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:no/2,color:bi,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:mo}}},[`${nt}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:bi,lineHeight:1,background:Wn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Fi}, color ${Fi}`,"> *":{verticalAlign:"top"},"&:hover":{color:vo}},[`${nt}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:$i,color:bi,fontSize:$i,verticalAlign:"top",cursor:"default",[`${nt}-focused &`]:{color:vo},[`${nt}-range-separator &`]:{[`${nt}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${nt}-clear`]:{insetInlineEnd:In},"&:hover":{[`${nt}-clear`]:{opacity:1}},[`${nt}-active-bar`]:{bottom:-ui,height:ho,marginInlineStart:In,background:la,opacity:0,transition:`all ${ea} ease-out`,pointerEvents:"none"},[`&${nt}-focused`]:{[`${nt}-active-bar`]:{opacity:1}},[`${nt}-range-separator`]:{alignItems:"center",padding:`0 ${no}px`,lineHeight:1},[`&${nt}-small`]:{[`${nt}-clear`]:{insetInlineEnd:co},[`${nt}-active-bar`]:{marginInlineStart:co}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Tl.Wf)(je)),rs(je)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ya,[`&${nt}-dropdown-hidden`]:{display:"none"},[`&${nt}-dropdown-placement-bottomLeft`]:{[`${nt}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${nt}-dropdown-placement-topLeft`]:{[`${nt}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${ut}-slide-up-enter${ut}-slide-up-enter-active${nt}-dropdown-placement-topLeft,
&${ut}-slide-up-enter${ut}-slide-up-enter-active${nt}-dropdown-placement-topRight,
&${ut}-slide-up-appear${ut}-slide-up-appear-active${nt}-dropdown-placement-topLeft,
&${ut}-slide-up-appear${ut}-slide-up-appear-active${nt}-dropdown-placement-topRight`]:{animationName:mu.Qt},[`&${ut}-slide-up-enter${ut}-slide-up-enter-active${nt}-dropdown-placement-bottomLeft,
&${ut}-slide-up-enter${ut}-slide-up-enter-active${nt}-dropdown-placement-bottomRight,
&${ut}-slide-up-appear${ut}-slide-up-appear-active${nt}-dropdown-placement-bottomLeft,
&${ut}-slide-up-appear${ut}-slide-up-appear-active${nt}-dropdown-placement-bottomRight`]:{animationName:mu.fJ},[`&${ut}-slide-up-leave${ut}-slide-up-leave-active${nt}-dropdown-placement-topLeft,
&${ut}-slide-up-leave${ut}-slide-up-leave-active${nt}-dropdown-placement-topRight`]:{animationName:mu.ly},[`&${ut}-slide-up-leave${ut}-slide-up-leave-active${nt}-dropdown-placement-bottomLeft,
&${ut}-slide-up-leave${ut}-slide-up-leave-active${nt}-dropdown-placement-bottomRight`]:{animationName:mu.Uw},[`${nt}-panel > ${nt}-time-panel`]:{paddingTop:Va},[`${nt}-ranges`]:{marginBottom:0,padding:`${Va}px ${Ha}px`,overflow:"hidden",lineHeight:`${Ba-2*ui-no/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${nt}-preset > ${ut}-tag-blue`]:{color:la,background:hs,borderColor:La,cursor:"pointer"},[`${nt}-ok`]:{marginInlineStart:"auto"}},[`${nt}-range-wrapper`]:{display:"flex",position:"relative"},[`${nt}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:In*1.5,transition:`left ${ea} ease-out`},(0,pu.r)(Ca,Ta,os,fs,Qt)),[`${nt}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:fs,borderRadius:Qa,boxShadow:Oa,transition:`margin ${ea}`,[`${nt}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${nt}-presets`]:{display:"flex",flexDirection:"column",minWidth:gt,maxWidth:Xt,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:no,borderInlineEnd:`${ui}px ${fi} ${hl}`,li:Object.assign(Object.assign({},Tl.vS),{borderRadius:Is,paddingInline:no,paddingBlock:(wr-Math.round(un*ur))/2,cursor:"pointer",transition:`all ${ea}`,"+ li":{marginTop:mo},"&:hover":{background:rt}})}},[`${nt}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${nt}-panel`]:{borderWidth:`0 0 ${ui}px`},"&:last-child":{[`${nt}-panel`]:{borderWidth:0}}},[`${nt}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${nt}-content,
table`]:{textAlign:"center"},"&-focused":{borderColor:Ni}}}}),"&-dropdown-range":{padding:`${Ca*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${nt}-separator`]:{transform:"rotate(180deg)"},[`${nt}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,mu.oN)(je,"slide-up"),(0,mu.oN)(je,"slide-down"),(0,Jo.Fm)(je,"move-up"),(0,Jo.Fm)(je,"move-down")]},xs=je=>{const{componentCls:nt,controlHeightLG:ut,paddingXXS:$t,padding:un}=je;return{pickerCellCls:`${nt}-cell`,pickerCellInnerCls:`${nt}-cell-inner`,pickerYearMonthCellWidth:ut*1.5,pickerQuarterPanelContentHeight:ut*1.4,pickerCellPaddingVertical:$t+$t/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:un+$t/2}},Ks=je=>({cellHoverBg:je.controlItemBgHover,cellActiveWithRangeBg:je.controlItemBgActive,cellHoverWithRangeBg:new zl.C(je.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new zl.C(je.colorPrimary).lighten(20).toHexString(),cellBgDisabled:je.colorBgContainerDisabled,timeColumnWidth:je.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:je.controlHeightSM*1.5,cellHeight:je.controlHeightSM,textHeight:je.controlHeightLG,withoutTimeCellHeight:je.controlHeightLG*1.65});var Bs=(0,dl.Z)("DatePicker",je=>{const nt=(0,ma.TS)((0,xl.e5)(je),xs(je));return[Ls(nt),ds(nt),(0,wc.c)(je,{focusElCls:`${je.componentCls}-focused`})]},je=>Object.assign(Object.assign(Object.assign({},(0,xl.TM)(je)),Ks(je)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:je.zIndexPopupBase+50}));function Fa(je,nt,ut){return ut!==void 0?ut:nt==="year"&&je.lang.yearPlaceholder?je.lang.yearPlaceholder:nt==="quarter"&&je.lang.quarterPlaceholder?je.lang.quarterPlaceholder:nt==="month"&&je.lang.monthPlaceholder?je.lang.monthPlaceholder:nt==="week"&&je.lang.weekPlaceholder?je.lang.weekPlaceholder:nt==="time"&&je.timePickerLocale.placeholder?je.timePickerLocale.placeholder:je.lang.placeholder}function Hu(je,nt,ut){return ut!==void 0?ut:nt==="year"&&je.lang.yearPlaceholder?je.lang.rangeYearPlaceholder:nt==="quarter"&&je.lang.quarterPlaceholder?je.lang.rangeQuarterPlaceholder:nt==="month"&&je.lang.monthPlaceholder?je.lang.rangeMonthPlaceholder:nt==="week"&&je.lang.weekPlaceholder?je.lang.rangeWeekPlaceholder:nt==="time"&&je.timePickerLocale.placeholder?je.timePickerLocale.rangePlaceholder:je.lang.rangePlaceholder}function Ol(je,nt){const ut={adjustX:1,adjustY:1};switch(nt){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:ut};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:ut};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:ut};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:ut};default:return{points:je==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:ut}}}function El(je){return je?Array.isArray(je)?je:[je]:[]}function jr(je){const{format:nt,picker:ut,showHour:$t,showMinute:un,showSecond:In,use12Hours:Wn}=je,ui=El(nt)[0],fi=Object.assign({},je);return nt&&Array.isArray(nt)&&(fi.format=ui),ui&&typeof ui=="string"&&(!ui.includes("s")&&In===void 0&&(fi.showSecond=!1),!ui.includes("m")&&un===void 0&&(fi.showMinute=!1),!ui.includes("H")&&!ui.includes("h")&&!ui.includes("K")&&!ui.includes("k")&&$t===void 0&&(fi.showHour=!1),(ui.includes("a")||ui.includes("A"))&&Wn===void 0&&(fi.use12Hours=!0)),ut==="time"?fi:(typeof ui=="function"&&delete fi.format,{showTime:fi})}function Lu(je,nt,ut){if(je===!1)return!1;const $t={clearIcon:nt!=null?nt:ut};return typeof je=="object"?Object.assign(Object.assign({},$t),je):$t}var Vt=ve(3113);function gi(je){return Pe.createElement(Vt.ZP,Object.assign({size:"small",type:"primary"},je))}var Fu={button:gi},_l=function(je,nt){var ut={};for(var $t in je)Object.prototype.hasOwnProperty.call(je,$t)&&nt.indexOf($t)<0&&(ut[$t]=je[$t]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,$t=Object.getOwnPropertySymbols(je);un<$t.length;un++)nt.indexOf($t[un])<0&&Object.prototype.propertyIsEnumerable.call(je,$t[un])&&(ut[$t[un]]=je[$t[un]]);return ut};function $l(je){return(0,Pe.forwardRef)((ut,$t)=>{const{prefixCls:un,getPopupContainer:In,className:Wn,placement:ui,size:fi,disabled:Ni,bordered:ar=!0,placeholder:Fi,popupClassName:_i,dropdownClassName:bi,status:xr,clearIcon:ai,allowClear:$i,rootClassName:wr}=ut,co=_l(ut,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),no=Pe.useRef(null),{getPrefixCls:mo,direction:vo,getPopupContainer:ho}=(0,Pe.useContext)(rl.E_),ur=mo("picker",un),{compactSize:la,compactItemClassnames:ea}=(0,Qc.ri)(ur,vo),{format:ya,showTime:Va,picker:Ha}=ut,Ba=mo(),[hs,La]=Bs(ur),Ca=Object.assign(Object.assign({},Va?jr(Object.assign({format:ya,picker:Ha},Va)):{}),Ha==="time"?jr(Object.assign(Object.assign({format:ya},ut),{picker:Ha})):{}),Ta=(0,oc.Z)(Qt=>{var Pn;return(Pn=fi!=null?fi:la)!==null&&Pn!==void 0?Pn:Qt}),os=Pe.useContext(Sl.Z),fs=Ni!=null?Ni:os,Qa=(0,Pe.useContext)(Sc.aM),{hasFeedback:Oa,status:Is,feedbackIcon:hl}=Qa,rt=Pe.createElement(Pe.Fragment,null,Ha==="time"?Pe.createElement(jt,null):Pe.createElement(Je,null),Oa&&hl);(0,Pe.useImperativeHandle)($t,()=>({focus:()=>{var Qt;return(Qt=no.current)===null||Qt===void 0?void 0:Qt.focus()},blur:()=>{var Qt;return(Qt=no.current)===null||Qt===void 0?void 0:Qt.blur()}}));const[gt]=(0,xc.Z)("Calendar",gu.Z),Xt=Object.assign(Object.assign({},gt),ut.locale);return hs(Pe.createElement(vl,Object.assign({separator:Pe.createElement("span",{"aria-label":"to",className:`${ur}-separator`},Pe.createElement(yn,null)),disabled:fs,ref:no,dropdownAlign:Ol(vo,ui),placeholder:Hu(Xt,Ha,Fi),suffixIcon:rt,prevIcon:Pe.createElement("span",{className:`${ur}-prev-icon`}),nextIcon:Pe.createElement("span",{className:`${ur}-next-icon`}),superPrevIcon:Pe.createElement("span",{className:`${ur}-super-prev-icon`}),superNextIcon:Pe.createElement("span",{className:`${ur}-super-next-icon`}),transitionName:`${Ba}-slide-up`},co,Ca,{className:Nt()({[`${ur}-${Ta}`]:Ta,[`${ur}-borderless`]:!ar},(0,yl.Z)(ur,(0,yl.F)(Is,xr),Oa),La,ea,Wn,wr),locale:Xt.lang,prefixCls:ur,getPopupContainer:In||ho,generateConfig:je,components:Fu,direction:vo,dropdownClassName:Nt()(La,_i||bi,wr),allowClear:Lu($i,ai,Pe.createElement(Mt.Z,null))})))})}var jl=function(je,nt){var ut={};for(var $t in je)Object.prototype.hasOwnProperty.call(je,$t)&&nt.indexOf($t)<0&&(ut[$t]=je[$t]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,$t=Object.getOwnPropertySymbols(je);un<$t.length;un++)nt.indexOf($t[un])<0&&Object.prototype.propertyIsEnumerable.call(je,$t[un])&&(ut[$t[un]]=je[$t[un]]);return ut};function Pc(je){function nt(fi,Ni){const ar=Ni==="TimePicker"?"timePicker":"datePicker",Fi=(0,Pe.forwardRef)((_i,bi)=>{const{prefixCls:xr,getPopupContainer:ai,style:$i,className:wr,rootClassName:co,size:no,bordered:mo=!0,placement:vo,placeholder:ho,popupClassName:ur,dropdownClassName:la,disabled:ea,status:ya,clearIcon:Va,allowClear:Ha}=_i,Ba=jl(_i,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:hs,direction:La,getPopupContainer:Ca,[ar]:Ta}=(0,Pe.useContext)(rl.E_),os=hs("picker",xr),{compactSize:fs,compactItemClassnames:Qa}=(0,Qc.ri)(os,La),Oa=Pe.useRef(null),{format:Is,showTime:hl}=_i,[rt,gt]=Bs(os);(0,Pe.useImperativeHandle)(bi,()=>({focus:()=>{var Zi;return(Zi=Oa.current)===null||Zi===void 0?void 0:Zi.focus()},blur:()=>{var Zi;return(Zi=Oa.current)===null||Zi===void 0?void 0:Zi.blur()}}));const Xt={showToday:!0};let Qt={};fi&&(Qt.picker=fi);const Pn=fi||_i.picker;Qt=Object.assign(Object.assign(Object.assign({},Qt),hl?jr(Object.assign({format:Is,picker:Pn},hl)):{}),Pn==="time"?jr(Object.assign(Object.assign({format:Is},_i),{picker:Pn})):{});const hn=hs(),Jn=(0,oc.Z)(Zi=>{var Lr;return(Lr=no!=null?no:fs)!==null&&Lr!==void 0?Lr:Zi}),Yn=Pe.useContext(Sl.Z),Vn=ea!=null?ea:Yn,xi=(0,Pe.useContext)(Sc.aM),{hasFeedback:si,status:Si,feedbackIcon:Qi}=xi,Xi=Pe.createElement(Pe.Fragment,null,Pn==="time"?Pe.createElement(jt,null):Pe.createElement(Je,null),si&&Qi),[Ii]=(0,xc.Z)("DatePicker",gu.Z),Sr=Object.assign(Object.assign({},Ii),_i.locale);return rt(Pe.createElement(fu,Object.assign({ref:Oa,placeholder:Fa(Sr,Pn,ho),suffixIcon:Xi,dropdownAlign:Ol(La,vo),prevIcon:Pe.createElement("span",{className:`${os}-prev-icon`}),nextIcon:Pe.createElement("span",{className:`${os}-next-icon`}),superPrevIcon:Pe.createElement("span",{className:`${os}-super-prev-icon`}),superNextIcon:Pe.createElement("span",{className:`${os}-super-next-icon`}),transitionName:`${hn}-slide-up`},Xt,Ba,Qt,{locale:Sr.lang,className:Nt()({[`${os}-${Jn}`]:Jn,[`${os}-borderless`]:!mo},(0,yl.Z)(os,(0,yl.F)(Si,ya),si),gt,Qa,Ta==null?void 0:Ta.className,wr,co),style:Object.assign(Object.assign({},Ta==null?void 0:Ta.style),$i),prefixCls:os,getPopupContainer:ai||Ca,generateConfig:je,components:Fu,direction:La,disabled:Vn,dropdownClassName:Nt()(gt,co,ur||la),allowClear:Lu(Ha,Va,Pe.createElement(Mt.Z,null))})))});return Ni&&(Fi.displayName=Ni),Fi}const ut=nt(),$t=nt("week","WeekPicker"),un=nt("month","MonthPicker"),In=nt("year","YearPicker"),Wn=nt("time","TimePicker"),ui=nt("quarter","QuarterPicker");return{DatePicker:ut,WeekPicker:$t,MonthPicker:un,YearPicker:In,TimePicker:Wn,QuarterPicker:ui}}const Ic=null;function Ts(je){const{DatePicker:nt,WeekPicker:ut,MonthPicker:$t,YearPicker:un,TimePicker:In,QuarterPicker:Wn}=Pc(je),ui=$l(je),fi=nt;return fi.WeekPicker=ut,fi.MonthPicker=$t,fi.YearPicker=un,fi.RangePicker=ui,fi.TimePicker=In,fi.QuarterPicker=Wn,fi}var Io=Ts;const wl=Io(me);function Il(je){const nt=Ol(je.direction,je.placement);return nt.overflow.adjustY=!1,nt.overflow.adjustX=!1,Object.assign(Object.assign({},je),{dropdownAlign:nt})}const ws=(0,Ce.Z)(wl,"picker",null,Il);wl._InternalPanelDoNotUseOrYouWillBeFired=ws;const va=(0,Ce.Z)(wl.RangePicker,"picker",null,Il);wl._InternalRangePanelDoNotUseOrYouWillBeFired=va,wl.generatePicker=Io;var ol=wl},28103:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return it}});var ye=ve(92310),Oe=ve.n(ye),He=ve(59301),Rt=ve(36355),$e=ve(17313),qe=ve(83116),De=ve(37613);const Tt=Pt=>{const{componentCls:Me,sizePaddingEdgeHorizontal:te,colorSplit:ne,lineWidth:ce,textPaddingInline:se,orientationMargin:ge,verticalMarginInline:me}=Pt;return{[Me]:Object.assign(Object.assign({},(0,$e.Wf)(Pt)),{borderBlockStart:`${ce}px solid ${ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:me,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ce}px solid ${ne}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Pt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Me}-with-text`]:{display:"flex",alignItems:"center",margin:`${Pt.dividerHorizontalWithTextGutterMargin}px 0`,color:Pt.colorTextHeading,fontWeight:500,fontSize:Pt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ne}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ce}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Me}-with-text-left`]:{"&::before":{width:`${ge*100}%`},"&::after":{width:`${100-ge*100}%`}},[`&-horizontal${Me}-with-text-right`]:{"&::before":{width:`${100-ge*100}%`},"&::after":{width:`${ge*100}%`}},[`${Me}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:se},"&-dashed":{background:"none",borderColor:ne,borderStyle:"dashed",borderWidth:`${ce}px 0 0`},[`&-horizontal${Me}-with-text${Me}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Me}-dashed`]:{borderInlineStartWidth:ce,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Me}-with-text`]:{color:Pt.colorText,fontWeight:"normal",fontSize:Pt.fontSize},[`&-horizontal${Me}-with-text-left${Me}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Me}-inner-text`]:{paddingInlineStart:te}},[`&-horizontal${Me}-with-text-right${Me}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Me}-inner-text`]:{paddingInlineEnd:te}}})}};var Et=(0,qe.Z)("Divider",Pt=>{const Me=(0,De.TS)(Pt,{dividerHorizontalWithTextGutterMargin:Pt.margin,dividerHorizontalGutterMargin:Pt.marginLG,sizePaddingEdgeHorizontal:0});return[Tt(Me)]},Pt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Pt.marginXS})),et=function(Pt,Me){var te={};for(var ne in Pt)Object.prototype.hasOwnProperty.call(Pt,ne)&&Me.indexOf(ne)<0&&(te[ne]=Pt[ne]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ne=Object.getOwnPropertySymbols(Pt);ce<ne.length;ce++)Me.indexOf(ne[ce])<0&&Object.prototype.propertyIsEnumerable.call(Pt,ne[ce])&&(te[ne[ce]]=Pt[ne[ce]]);return te},it=Pt=>{const{getPrefixCls:Me,direction:te,divider:ne}=He.useContext(Rt.E_),{prefixCls:ce,type:se="horizontal",orientation:ge="center",orientationMargin:me,className:Ce,rootClassName:Fe,children:Pe,dashed:Ie,plain:Ge,style:Ke}=Pt,Ye=et(Pt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),pt=Me("divider",ce),[Je,kt]=Et(pt),Xe=ge.length>0?`-${ge}`:ge,Wt=!!Pe,zt=ge==="left"&&me!=null,jt=ge==="right"&&me!=null,Mt=Oe()(pt,ne==null?void 0:ne.className,kt,`${pt}-${se}`,{[`${pt}-with-text`]:Wt,[`${pt}-with-text${Xe}`]:Wt,[`${pt}-dashed`]:!!Ie,[`${pt}-plain`]:!!Ge,[`${pt}-rtl`]:te==="rtl",[`${pt}-no-default-orientation-margin-left`]:zt,[`${pt}-no-default-orientation-margin-right`]:jt},Ce,Fe),Ut=He.useMemo(()=>typeof me=="number"?me:/^\d+$/.test(me)?Number(me):me,[me]),ft=Object.assign(Object.assign({},zt&&{marginLeft:Ut}),jt&&{marginRight:Ut});return Je(He.createElement("div",Object.assign({className:Mt,style:Object.assign(Object.assign({},ne==null?void 0:ne.style),Ke)},Ye,{role:"separator"}),Pe&&se!=="vertical"&&He.createElement("span",{className:`${pt}-inner-text`,style:ft},Pe)))}},91857:function(Rn,Mn,ve){"use strict";var ye=ve(59301),Oe=ve(38819),He=ve(92310),Rt=ve.n(He),$e=ve(31561),qe=ve(70425),De=ve(18929),Tt=ve(2738),Et=ve(79676),et=ve(53487),Ot=ve(92343),it=ve(36355),Pt=ve(20834),Me=ve(40875),te=ve(88088),ne=ve(47211);const ce=null,se=Fe=>{const{menu:Pe,arrow:Ie,prefixCls:Ge,children:Ke,trigger:Ye,disabled:pt,dropdownRender:Je,getPopupContainer:kt,overlayClassName:Xe,rootClassName:Wt,open:zt,onOpenChange:jt,visible:Mt,onVisibleChange:Ut,mouseEnterDelay:ft=.15,mouseLeaveDelay:Re=.1,autoAdjustOverflow:Lt=!0,placement:yn="",overlay:mn,transitionName:Nt}=Fe,{getPopupContainer:en,getPrefixCls:nn,direction:On}=ye.useContext(it.E_),dn=ye.useMemo(()=>{const dt=nn();return Nt!==void 0?Nt:yn.includes("top")?`${dt}-slide-down`:`${dt}-slide-up`},[nn,yn,Nt]),Tn=ye.useMemo(()=>yn?yn.includes("Center")?yn.slice(0,yn.indexOf("Center")):yn:On==="rtl"?"bottomRight":"bottomLeft",[yn,On]),mt=nn("dropdown",Ge),[Gn,xn]=(0,ne.Z)(mt),[,tt]=(0,te.Z)(),Ee=ye.Children.only(Ke),we=(0,Ot.Tm)(Ee,{className:Rt()(`${mt}-trigger`,{[`${mt}-rtl`]:On==="rtl"},Ee.props.className),disabled:pt}),Be=pt?[]:Ye;let ke;Be&&Be.includes("contextMenu")&&(ke=!0);const[Se,st]=(0,De.Z)(!1,{value:zt!=null?zt:Mt}),At=(0,qe.useEvent)(dt=>{jt==null||jt(dt),Ut==null||Ut(dt),st(dt)}),Ve=Rt()(Xe,Wt,xn,{[`${mt}-rtl`]:On==="rtl"}),We=(0,Et.Z)({arrowPointAtCenter:typeof Ie=="object"&&Ie.pointAtCenter,autoAdjustOverflow:Lt,offset:tt.marginXXS,arrowWidth:Ie?tt.sizePopupArrow:0,borderRadius:tt.borderRadius}),Ct=ye.useCallback(()=>{st(!1)},[]),bt=()=>{let dt;return Pe!=null&&Pe.items?dt=ye.createElement(Pt.default,Object.assign({},Pe)):typeof mn=="function"?dt=mn():dt=mn,Je&&(dt=Je(dt)),dt=ye.Children.only(typeof dt=="string"?ye.createElement("span",null,dt):dt),ye.createElement(Me.J,{prefixCls:`${mt}-menu`,expandIcon:ye.createElement("span",{className:`${mt}-menu-submenu-arrow`},ye.createElement(Oe.Z,{className:`${mt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ct,validator:Ht=>{let{mode:En}=Ht}},dt)};return Gn(ye.createElement($e.Z,Object.assign({alignPoint:ke},(0,Tt.Z)(Fe,["rootClassName"]),{mouseEnterDelay:ft,mouseLeaveDelay:Re,visible:Se,builtinPlacements:We,arrow:!!Ie,overlayClassName:Ve,prefixCls:mt,getPopupContainer:kt||en,transitionName:dn,trigger:Be,overlay:bt,placement:Tn,onVisibleChange:At}),we))};function ge(Fe){return Object.assign(Object.assign({},Fe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const me=(0,et.Z)(se,"dropdown",Fe=>Fe,ge),Ce=Fe=>ye.createElement(me,Object.assign({},Fe),ye.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Ce,Mn.Z=se},38854:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return te}});var ye=ve(91857),Oe=ve(92310),He=ve.n(Oe),Rt=ve(59301),$e=ve(18785),qe=ve(3113),De=ve(36355),Tt=ve(81327),Et=ve(33234),et=ve(47211),Ot=function(ne,ce){var se={};for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&ce.indexOf(ge)<0&&(se[ge]=ne[ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(ne);me<ge.length;me++)ce.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[me])&&(se[ge[me]]=ne[ge[me]]);return se};const it=ne=>{const{getPopupContainer:ce,getPrefixCls:se,direction:ge}=Rt.useContext(De.E_),{prefixCls:me,type:Ce="default",danger:Fe,disabled:Pe,loading:Ie,onClick:Ge,htmlType:Ke,children:Ye,className:pt,menu:Je,arrow:kt,autoFocus:Xe,overlay:Wt,trigger:zt,align:jt,open:Mt,onOpenChange:Ut,placement:ft,getPopupContainer:Re,href:Lt,icon:yn=Rt.createElement($e.Z,null),title:mn,buttonsRender:Nt=bt=>bt,mouseEnterDelay:en,mouseLeaveDelay:nn,overlayClassName:On,overlayStyle:dn,destroyPopupOnHide:Tn,dropdownRender:mt}=ne,Gn=Ot(ne,["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"]),xn=se("dropdown",me),tt=`${xn}-button`,[Ee,we]=(0,et.Z)(xn),Be={menu:Je,arrow:kt,autoFocus:Xe,align:jt,disabled:Pe,trigger:Pe?[]:zt,onOpenChange:Ut,getPopupContainer:Re||ce,mouseEnterDelay:en,mouseLeaveDelay:nn,overlayClassName:On,overlayStyle:dn,destroyPopupOnHide:Tn,dropdownRender:mt},{compactSize:ke,compactItemClassnames:Se}=(0,Et.ri)(xn,ge),st=He()(tt,Se,pt,we);"overlay"in ne&&(Be.overlay=Wt),"open"in ne&&(Be.open=Mt),"placement"in ne?Be.placement=ft:Be.placement=ge==="rtl"?"bottomLeft":"bottomRight";const At=Rt.createElement(qe.ZP,{type:Ce,danger:Fe,disabled:Pe,loading:Ie,onClick:Ge,htmlType:Ke,href:Lt,title:mn},Ye),Ve=Rt.createElement(qe.ZP,{type:Ce,danger:Fe,icon:yn}),[We,Ct]=Nt([At,Ve]);return Ee(Rt.createElement(Tt.Z.Compact,Object.assign({className:st,size:ke,block:!0},Gn),We,Rt.createElement(ye.Z,Object.assign({},Be),Ct)))};it.__ANT_BUTTON=!0;var Pt=it;const Me=ye.Z;Me.Button=Pt;var te=Me},47211:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Ot}});var ye=ve(17313),Oe=ve(13826),He=ve(92899),Rt=ve(29878),$e=ve(19447),qe=ve(83116),De=ve(37613),Et=it=>{const{componentCls:Pt,menuCls:Me,colorError:te,colorTextLightSolid:ne}=it,ce=`${Me}-item`;return{[`${Pt}, ${Pt}-menu-submenu`]:{[`${Me} ${ce}`]:{[`&${ce}-danger:not(${ce}-disabled)`]:{color:te,"&:hover":{color:ne,backgroundColor:te}}}}}};const et=it=>{const{componentCls:Pt,menuCls:Me,zIndexPopup:te,dropdownArrowDistance:ne,sizePopupArrow:ce,antCls:se,iconCls:ge,motionDurationMid:me,dropdownPaddingVertical:Ce,fontSize:Fe,dropdownEdgeChildPadding:Pe,colorTextDisabled:Ie,fontSizeIcon:Ge,controlPaddingHorizontal:Ke,colorBgElevated:Ye}=it;return[{[Pt]:Object.assign(Object.assign({},(0,ye.Wf)(it)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:-ne+ce/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${se}-btn`]:{[`& > ${ge}-down, & > ${se}-btn-icon > ${ge}-down`]:{fontSize:Ge}},[`${Pt}-wrap`]:{position:"relative",[`${se}-btn > ${ge}-down`]:{fontSize:Ge},[`${ge}-down::before`]:{transition:`transform ${me}`}},[`${Pt}-wrap-open`]:{[`${ge}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${se}-slide-down-enter${se}-slide-down-enter-active${Pt}-placement-bottomLeft,
&${se}-slide-down-appear${se}-slide-down-appear-active${Pt}-placement-bottomLeft,
&${se}-slide-down-enter${se}-slide-down-enter-active${Pt}-placement-bottom,
&${se}-slide-down-appear${se}-slide-down-appear-active${Pt}-placement-bottom,
&${se}-slide-down-enter${se}-slide-down-enter-active${Pt}-placement-bottomRight,
&${se}-slide-down-appear${se}-slide-down-appear-active${Pt}-placement-bottomRight`]:{animationName:Oe.fJ},[`&${se}-slide-up-enter${se}-slide-up-enter-active${Pt}-placement-topLeft,
&${se}-slide-up-appear${se}-slide-up-appear-active${Pt}-placement-topLeft,
&${se}-slide-up-enter${se}-slide-up-enter-active${Pt}-placement-top,
&${se}-slide-up-appear${se}-slide-up-appear-active${Pt}-placement-top,
&${se}-slide-up-enter${se}-slide-up-enter-active${Pt}-placement-topRight,
&${se}-slide-up-appear${se}-slide-up-appear-active${Pt}-placement-topRight`]:{animationName:Oe.Qt},[`&${se}-slide-down-leave${se}-slide-down-leave-active${Pt}-placement-bottomLeft,
&${se}-slide-down-leave${se}-slide-down-leave-active${Pt}-placement-bottom,
&${se}-slide-down-leave${se}-slide-down-leave-active${Pt}-placement-bottomRight`]:{animationName:Oe.Uw},[`&${se}-slide-up-leave${se}-slide-up-leave-active${Pt}-placement-topLeft,
&${se}-slide-up-leave${se}-slide-up-leave-active${Pt}-placement-top,
&${se}-slide-up-leave${se}-slide-up-leave-active${Pt}-placement-topRight`]:{animationName:Oe.ly}})},(0,$e.ZP)(it,{colorBg:Ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Pt} ${Me}`]:{position:"relative",margin:0},[`${Me}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Pt}, ${Pt}-menu-submenu`]:{[Me]:Object.assign(Object.assign({padding:Pe,listStyleType:"none",backgroundColor:Ye,backgroundClip:"padding-box",borderRadius:it.borderRadiusLG,outline:"none",boxShadow:it.boxShadowSecondary},(0,ye.Qy)(it)),{[`${Me}-item-group-title`]:{padding:`${Ce}px ${Ke}px`,color:it.colorTextDescription,transition:`all ${me}`},[`${Me}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Me}-item-icon`]:{minWidth:Fe,marginInlineEnd:it.marginXS,fontSize:it.fontSizeSM},[`${Me}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${me}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Me}-item, ${Me}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Ce}px ${Ke}px`,color:it.colorText,fontWeight:"normal",fontSize:Fe,lineHeight:it.lineHeight,cursor:"pointer",transition:`all ${me}`,borderRadius:it.borderRadiusSM,"&:hover, &-active":{backgroundColor:it.controlItemBgHover}},(0,ye.Qy)(it)),{"&-selected":{color:it.colorPrimary,backgroundColor:it.controlItemBgActive,"&:hover, &-active":{backgroundColor:it.controlItemBgActiveHover}},"&-disabled":{color:Ie,cursor:"not-allowed","&:hover":{color:Ie,backgroundColor:Ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${it.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:it.colorSplit},[`${Pt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:it.paddingXS,[`${Pt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:it.colorTextDescription,fontSize:Ge,fontStyle:"normal"}}}),[`${Me}-item-group-list`]:{margin:`0 ${it.marginXS}px`,padding:0,listStyle:"none"},[`${Me}-submenu-title`]:{paddingInlineEnd:Ke+it.fontSizeSM},[`${Me}-submenu-vertical`]:{position:"relative"},[`${Me}-submenu${Me}-submenu-disabled ${Pt}-menu-submenu-title`]:{[`&, ${Pt}-menu-submenu-arrow-icon`]:{color:Ie,backgroundColor:Ye,cursor:"not-allowed"}},[`${Me}-submenu-selected ${Pt}-menu-submenu-title`]:{color:it.colorPrimary}})}},[(0,Oe.oN)(it,"slide-up"),(0,Oe.oN)(it,"slide-down"),(0,He.Fm)(it,"move-up"),(0,He.Fm)(it,"move-down"),(0,Rt._y)(it,"zoom-big")]]};var Ot=(0,qe.Z)("Dropdown",(it,Pt)=>{let{rootPrefixCls:Me}=Pt;const{marginXXS:te,sizePopupArrow:ne,controlHeight:ce,fontSize:se,lineHeight:ge,paddingXXS:me,componentCls:Ce,borderRadiusLG:Fe}=it,Pe=(ce-se*ge)/2,{dropdownArrowOffset:Ie}=(0,$e.fS)({contentRadius:Fe}),Ge=(0,De.TS)(it,{menuCls:`${Ce}-menu`,rootPrefixCls:Me,dropdownArrowDistance:ne/2+te,dropdownArrowOffset:Ie,dropdownPaddingVertical:Pe,dropdownEdgeChildPadding:me});return[et(Ge),Et(Ge)]},it=>({zIndexPopup:it.zIndexPopupBase+50}))},64165:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return me}});var ye=ve(92310),Oe=ve.n(ye),He=ve(59301),Rt=ve(36355),$e=ve(9763),qe=ve(64993),De=ve(88088),Et=()=>{const[,Ce]=(0,De.Z)(),Pe=new qe.C(Ce.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return He.createElement("svg",{style:Pe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},He.createElement("g",{fill:"none",fillRule:"evenodd"},He.createElement("g",{transform:"translate(24 31.67)"},He.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),He.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"}),He.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)"}),He.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"}),He.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"})),He.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"}),He.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},He.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),He.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ot=()=>{const[,Ce]=(0,De.Z)(),{colorFill:Fe,colorFillTertiary:Pe,colorFillQuaternary:Ie,colorBgContainer:Ge}=Ce,{borderColor:Ke,shadowColor:Ye,contentColor:pt}=(0,He.useMemo)(()=>({borderColor:new qe.C(Fe).onBackground(Ge).toHexShortString(),shadowColor:new qe.C(Pe).onBackground(Ge).toHexShortString(),contentColor:new qe.C(Ie).onBackground(Ge).toHexShortString()}),[Fe,Pe,Ie,Ge]);return He.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},He.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},He.createElement("ellipse",{fill:Ye,cx:"32",cy:"33",rx:"32",ry:"7"}),He.createElement("g",{fillRule:"nonzero",stroke:Ke},He.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"}),He.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:pt}))))},it=ve(83116),Pt=ve(37613);const Me=Ce=>{const{componentCls:Fe,margin:Pe,marginXS:Ie,marginXL:Ge,fontSize:Ke,lineHeight:Ye}=Ce;return{[Fe]:{marginInline:Ie,fontSize:Ke,lineHeight:Ye,textAlign:"center",[`${Fe}-image`]:{height:Ce.emptyImgHeight,marginBottom:Ie,opacity:Ce.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Fe}-description`]:{color:Ce.colorText},[`${Fe}-footer`]:{marginTop:Pe},"&-normal":{marginBlock:Ge,color:Ce.colorTextDisabled,[`${Fe}-description`]:{color:Ce.colorTextDisabled},[`${Fe}-image`]:{height:Ce.emptyImgHeightMD}},"&-small":{marginBlock:Ie,color:Ce.colorTextDisabled,[`${Fe}-image`]:{height:Ce.emptyImgHeightSM}}}}};var te=(0,it.Z)("Empty",Ce=>{const{componentCls:Fe,controlHeightLG:Pe}=Ce,Ie=(0,Pt.TS)(Ce,{emptyImgCls:`${Fe}-img`,emptyImgHeight:Pe*2.5,emptyImgHeightMD:Pe,emptyImgHeightSM:Pe*.875});return[Me(Ie)]}),ne=function(Ce,Fe){var Pe={};for(var Ie in Ce)Object.prototype.hasOwnProperty.call(Ce,Ie)&&Fe.indexOf(Ie)<0&&(Pe[Ie]=Ce[Ie]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ie=Object.getOwnPropertySymbols(Ce);Ge<Ie.length;Ge++)Fe.indexOf(Ie[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ie[Ge])&&(Pe[Ie[Ge]]=Ce[Ie[Ge]]);return Pe};const ce=He.createElement(Et,null),se=He.createElement(Ot,null),ge=Ce=>{var{className:Fe,rootClassName:Pe,prefixCls:Ie,image:Ge=ce,description:Ke,children:Ye,imageStyle:pt,style:Je}=Ce,kt=ne(Ce,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Xe,direction:Wt,empty:zt}=He.useContext(Rt.E_),jt=Xe("empty",Ie),[Mt,Ut]=te(jt),[ft]=(0,$e.Z)("Empty"),Re=typeof Ke!="undefined"?Ke:ft==null?void 0:ft.description,Lt=typeof Re=="string"?Re:"empty";let yn=null;return typeof Ge=="string"?yn=He.createElement("img",{alt:Lt,src:Ge}):yn=Ge,Mt(He.createElement("div",Object.assign({className:Oe()(Ut,jt,zt==null?void 0:zt.className,{[`${jt}-normal`]:Ge===se,[`${jt}-rtl`]:Wt==="rtl"},Fe,Pe),style:Object.assign(Object.assign({},zt==null?void 0:zt.style),Je)},kt),He.createElement("div",{className:`${jt}-image`,style:pt},yn),Re&&He.createElement("div",{className:`${jt}-description`},Re),Ye&&He.createElement("div",{className:`${jt}-footer`},Ye)))};ge.PRESENTED_IMAGE_DEFAULT=ce,ge.PRESENTED_IMAGE_SIMPLE=se;var me=ge},78241:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return wt}});var ye=ve(26407),Oe=ve(92310),He=ve.n(Oe),Rt=ve(77900),$e=ve(59301),qe=ve(62892),De=ve(32441);function Tt(ze){const[Yt,on]=$e.useState(ze);return $e.useEffect(()=>{const ht=setTimeout(()=>{on(ze)},ze.length?0:10);return()=>{clearTimeout(ht)}},[ze]),Yt}var Et=ve(17313),et=ve(29878),Ot=ve(8378),it=ve(37613),Pt=ve(83116),te=ze=>{const{componentCls:Yt}=ze,on=`${Yt}-show-help`,ht=`${Yt}-show-help-item`;return{[on]:{transition:`opacity ${ze.motionDurationSlow} ${ze.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ht]:{overflow:"hidden",transition:`height ${ze.motionDurationSlow} ${ze.motionEaseInOut},
opacity ${ze.motionDurationSlow} ${ze.motionEaseInOut},
transform ${ze.motionDurationSlow} ${ze.motionEaseInOut} !important`,[`&${ht}-appear, &${ht}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ht}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ne=ze=>({legend:{display:"block",width:"100%",marginBottom:ze.marginLG,padding:0,color:ze.colorTextDescription,fontSize:ze.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`},label:{fontSize:ze.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 ${ze.controlOutlineWidth}px ${ze.controlOutline}`},output:{display:"block",paddingTop:15,color:ze.colorText,fontSize:ze.fontSize,lineHeight:ze.lineHeight}}),ce=(ze,Yt)=>{const{formItemCls:on}=ze;return{[on]:{[`${on}-label > label`]:{height:Yt},[`${on}-control-input`]:{minHeight:Yt}}}},se=ze=>{const{componentCls:Yt}=ze;return{[ze.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Et.Wf)(ze)),ne(ze)),{[`${Yt}-text`]:{display:"inline-block",paddingInlineEnd:ze.paddingSM},"&-small":Object.assign({},ce(ze,ze.controlHeightSM)),"&-large":Object.assign({},ce(ze,ze.controlHeightLG))})}},ge=ze=>{const{formItemCls:Yt,iconCls:on,componentCls:ht,rootPrefixCls:Qe,labelRequiredMarkColor:_t,labelColor:It,labelFontSize:Fn,labelHeight:Hn,labelColonMarginInlineStart:ct,labelColonMarginInlineEnd:sn,itemMarginBottom:Un}=ze;return{[Yt]:Object.assign(Object.assign({},(0,Et.Wf)(ze)),{marginBottom:Un,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Qe}-row`]:{display:"none"},"&-has-warning":{[`${Yt}-split`]:{color:ze.colorError}},"&-has-error":{[`${Yt}-split`]:{color:ze.colorWarning}},[`${Yt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${ze.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Hn,color:It,fontSize:Fn,[`> ${on}`]:{fontSize:ze.fontSize,verticalAlign:"top"},[`&${Yt}-required:not(${Yt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ze.marginXXS,color:_t,fontSize:ze.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${ht}-hide-required-mark &`]:{display:"none"}},[`${Yt}-optional`]:{display:"inline-block",marginInlineStart:ze.marginXXS,color:ze.colorTextDescription,[`${ht}-hide-required-mark &`]:{display:"none"}},[`${Yt}-tooltip`]:{color:ze.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ze.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ct,marginInlineEnd:sn},[`&${Yt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Yt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Qe}-col-'"]):not([class*="' ${Qe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ze.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Yt]:{"&-explain, &-extra":{clear:"both",color:ze.colorTextDescription,fontSize:ze.fontSize,lineHeight:ze.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ze.controlHeightSM,transition:`color ${ze.motionDurationMid} ${ze.motionEaseOut}`},"&-explain":{"&-error":{color:ze.colorError},"&-warning":{color:ze.colorWarning}}},[`&-with-help ${Yt}-explain`]:{height:"auto",opacity:1},[`${Yt}-feedback-icon`]:{fontSize:ze.fontSize,textAlign:"center",visibility:"visible",animationName:et.kr,animationDuration:ze.motionDurationMid,animationTimingFunction:ze.motionEaseOutBack,pointerEvents:"none","&-success":{color:ze.colorSuccess},"&-error":{color:ze.colorError},"&-warning":{color:ze.colorWarning},"&-validating":{color:ze.colorPrimary}}})}},me=ze=>{const{componentCls:Yt,formItemCls:on}=ze;return{[`${Yt}-horizontal`]:{[`${on}-label`]:{flexGrow:0},[`${on}-control`]:{flex:"1 1 0",minWidth:0},[`${on}-label[class$='-24'], ${on}-label[class*='-24 ']`]:{[`& + ${on}-control`]:{minWidth:"unset"}}}}},Ce=ze=>{const{componentCls:Yt,formItemCls:on}=ze;return{[`${Yt}-inline`]:{display:"flex",flexWrap:"wrap",[on]:{flex:"none",marginInlineEnd:ze.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${on}-label,
> ${on}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${on}-label`]:{flex:"none"},[`${Yt}-text`]:{display:"inline-block"},[`${on}-has-feedback`]:{display:"inline-block"}}}}},Fe=ze=>({padding:ze.verticalLabelPadding,margin:ze.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pe=ze=>{const{componentCls:Yt,formItemCls:on,rootPrefixCls:ht}=ze;return{[`${on} ${on}-label`]:Fe(ze),[Yt]:{[on]:{flexWrap:"wrap",[`${on}-label, ${on}-control`]:{[`&:not([class*=" ${ht}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=ze=>{const{componentCls:Yt,formItemCls:on,rootPrefixCls:ht}=ze;return{[`${Yt}-vertical`]:{[on]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Yt}-item-control`]:{width:"100%"}}},[`${Yt}-vertical ${on}-label,
.${ht}-col-24${on}-label,
.${ht}-col-xl-24${on}-label`]:Fe(ze),[`@media (max-width: ${ze.screenXSMax}px)`]:[Pe(ze),{[Yt]:{[`.${ht}-col-xs-24${on}-label`]:Fe(ze)}}],[`@media (max-width: ${ze.screenSMMax}px)`]:{[Yt]:{[`.${ht}-col-sm-24${on}-label`]:Fe(ze)}},[`@media (max-width: ${ze.screenMDMax}px)`]:{[Yt]:{[`.${ht}-col-md-24${on}-label`]:Fe(ze)}},[`@media (max-width: ${ze.screenLGMax}px)`]:{[Yt]:{[`.${ht}-col-lg-24${on}-label`]:Fe(ze)}}}},Ge=(ze,Yt)=>(0,it.TS)(ze,{formItemCls:`${ze.componentCls}-item`,rootPrefixCls:Yt});var Ke=(0,Pt.Z)("Form",(ze,Yt)=>{let{rootPrefixCls:on}=Yt;const ht=Ge(ze,on);return[se(ht),ge(ht),te(ht),me(ht),Ce(ht),Ie(ht),(0,Ot.Z)(ht),et.kr]},ze=>({labelRequiredMarkColor:ze.colorError,labelColor:ze.colorTextHeading,labelFontSize:ze.fontSize,labelHeight:ze.controlHeight,labelColonMarginInlineStart:ze.marginXXS/2,labelColonMarginInlineEnd:ze.marginXS,itemMarginBottom:ze.marginLG,verticalLabelPadding:`0 0 ${ze.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ye=[];function pt(ze,Yt,on){let ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ze=="string"?ze:`${Yt}-${ht}`,error:ze,errorStatus:on}}var kt=ze=>{let{help:Yt,helpStatus:on,errors:ht=Ye,warnings:Qe=Ye,className:_t,fieldId:It,onVisibleChanged:Fn}=ze;const{prefixCls:Hn}=$e.useContext(De.Rk),ct=`${Hn}-item-explain`,[,sn]=Ke(Hn),Un=(0,$e.useMemo)(()=>(0,qe.Z)(Hn),[Hn]),_n=Tt(ht),Zt=Tt(Qe),rn=$e.useMemo(()=>Yt!=null?[pt(Yt,"help",on)]:[].concat((0,ye.Z)(_n.map((Ci,yi)=>pt(Ci,"error","error",yi))),(0,ye.Z)(Zt.map((Ci,yi)=>pt(Ci,"warning","warning",yi)))),[Yt,on,_n,Zt]),wi={};return It&&(wi.id=`${It}_help`),$e.createElement(Rt.default,{motionDeadline:Un.motionDeadline,motionName:`${Hn}-show-help`,visible:!!rn.length,onVisibleChanged:Fn},Ci=>{const{className:yi,style:ci}=Ci;return $e.createElement("div",Object.assign({},wi,{className:He()(ct,yi,_t,sn),style:ci,role:"alert"}),$e.createElement(Rt.CSSMotionList,Object.assign({keys:rn},(0,qe.Z)(Hn),{motionName:`${Hn}-show-help-item`,component:!1}),Pi=>{const{key:Mi,error:ji,errorStatus:lr,className:nr,style:Nn}=Pi;return $e.createElement("div",{key:Mi,className:He()(nr,{[`${ct}-${lr}`]:lr}),style:Nn},ji)}))})},Xe=ve(95013),Wt=ve(36355),zt=ve(1684),jt=ve(52946),Mt=ve(19716),Ut=ve(16722);const ft=["parentNode"],Re="form_item";function Lt(ze){return ze===void 0||ze===!1?[]:Array.isArray(ze)?ze:[ze]}function yn(ze,Yt){if(!ze.length)return;const on=ze.join("_");return Yt?`${Yt}_${on}`:ft.includes(on)?`${Re}_${on}`:on}function mn(ze,Yt,on,ht,Qe,_t){let It=ht;return _t!==void 0?It=_t:on.validating?It="validating":ze.length?It="error":Yt.length?It="warning":(on.touched||Qe&&on.validated)&&(It="success"),It}function Nt(ze){return Lt(ze).join("_")}function en(ze){const[Yt]=(0,Xe.useForm)(),on=$e.useRef({}),ht=$e.useMemo(()=>ze!=null?ze:Object.assign(Object.assign({},Yt),{__INTERNAL__:{itemRef:Qe=>_t=>{const It=Nt(Qe);_t?on.current[It]=_t:delete on.current[It]}},scrollToField:function(Qe){let _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const It=Lt(Qe),Fn=yn(It,ht.__INTERNAL__.name),Hn=Fn?document.getElementById(Fn):null;Hn&&(0,Ut.Z)(Hn,Object.assign({scrollMode:"if-needed",block:"nearest"},_t))},getFieldInstance:Qe=>{const _t=Nt(Qe);return on.current[_t]}}),[ze,Yt]);return[ht]}var nn=ve(28726),On=function(ze,Yt){var on={};for(var ht in ze)Object.prototype.hasOwnProperty.call(ze,ht)&&Yt.indexOf(ht)<0&&(on[ht]=ze[ht]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ht=Object.getOwnPropertySymbols(ze);Qe<ht.length;Qe++)Yt.indexOf(ht[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ze,ht[Qe])&&(on[ht[Qe]]=ze[ht[Qe]]);return on};const dn=(ze,Yt)=>{const on=$e.useContext(zt.Z),{getPrefixCls:ht,direction:Qe,form:_t}=$e.useContext(Wt.E_),{prefixCls:It,className:Fn,rootClassName:Hn,size:ct,disabled:sn=on,form:Un,colon:_n,labelAlign:Zt,labelWrap:rn,labelCol:wi,wrapperCol:Ci,hideRequiredMark:yi,layout:ci="horizontal",scrollToFirstError:Pi,requiredMark:Mi,onFinishFailed:ji,name:lr,style:nr,feedbackIcons:Nn}=ze,Pr=On(ze,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Tr=(0,Mt.Z)(ct),br=$e.useContext(nn.Z),Cn=(0,$e.useMemo)(()=>Mi!==void 0?Mi:_t&&_t.requiredMark!==void 0?_t.requiredMark:!yi,[yi,Mi,_t]),di=_n!=null?_n:_t==null?void 0:_t.colon,Ki=ht("form",It),[ir,Yi]=Ke(Ki),cr=He()(Ki,`${Ki}-${ci}`,{[`${Ki}-hide-required-mark`]:Cn===!1,[`${Ki}-rtl`]:Qe==="rtl",[`${Ki}-${Tr}`]:Tr},Yi,_t==null?void 0:_t.className,Fn,Hn),[Mr]=en(Un),{__INTERNAL__:Di}=Mr;Di.name=lr;const Ui=(0,$e.useMemo)(()=>({name:lr,labelAlign:Zt,labelCol:wi,labelWrap:rn,wrapperCol:Ci,vertical:ci==="vertical",colon:di,requiredMark:Cn,itemRef:Di.itemRef,form:Mr,feedbackIcons:Nn}),[lr,Zt,wi,Ci,ci,di,Cn,Mr,Nn]);$e.useImperativeHandle(Yt,()=>Mr);const Wi=(Fr,Ln)=>{if(Fr){let fr={block:"nearest"};typeof Fr=="object"&&(fr=Fr),Mr.scrollToField(Ln,fr)}},Dn=Fr=>{if(ji==null||ji(Fr),Fr.errorFields.length){const Ln=Fr.errorFields[0].name;if(Pi!==void 0){Wi(Pi,Ln);return}_t&&_t.scrollToFirstError!==void 0&&Wi(_t.scrollToFirstError,Ln)}};return ir($e.createElement(zt.n,{disabled:sn},$e.createElement(jt.q,{size:Tr},$e.createElement(De.RV,Object.assign({},{validateMessages:br}),$e.createElement(De.q3.Provider,{value:Ui},$e.createElement(Xe.default,Object.assign({id:lr},Pr,{name:lr,onFinishFailed:Dn,form:Mr,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),nr),className:cr})))))))};var mt=$e.forwardRef(dn),Gn=ve(41799),xn=ve(8654),tt=ve(92343),Ee=ve(11592);function we(ze){if(typeof ze=="function")return ze;const Yt=(0,Ee.Z)(ze);return Yt.length<=1?Yt[0]:Yt}const Be=()=>{const{status:ze,errors:Yt=[],warnings:on=[]}=(0,$e.useContext)(De.aM);return{status:ze,errors:Yt,warnings:on}};Be.Context=De.aM;var ke=Be,Se=ve(16089);function st(ze){const[Yt,on]=$e.useState(ze),ht=(0,$e.useRef)(null),Qe=(0,$e.useRef)([]),_t=(0,$e.useRef)(!1);$e.useEffect(()=>(_t.current=!1,()=>{_t.current=!0,Se.Z.cancel(ht.current),ht.current=null}),[]);function It(Fn){_t.current||(ht.current===null&&(Qe.current=[],ht.current=(0,Se.Z)(()=>{ht.current=null,on(Hn=>{let ct=Hn;return Qe.current.forEach(sn=>{ct=sn(ct)}),ct})})),Qe.current.push(Fn))}return[Yt,It]}function At(){const{itemRef:ze}=$e.useContext(De.q3),Yt=$e.useRef({});function on(ht,Qe){const _t=Qe&&typeof Qe=="object"&&Qe.ref,It=ht.join("_");return(Yt.current.name!==It||Yt.current.originRef!==_t)&&(Yt.current.name=It,Yt.current.originRef=_t,Yt.current.ref=(0,xn.sQ)(ze(ht),_t)),Yt.current.ref}return on}var Ve=ve(29194),We=ve(34280),Ct=ve(2738),bt=ve(27382),dt=ve(37028);const Ht=ze=>{const{formItemCls:Yt}=ze;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Yt}-control`]:{display:"flex"}}}};var En=(0,Pt.b)(["Form","item-item"],(ze,Yt)=>{let{rootPrefixCls:on}=Yt;const ht=Ge(ze,on);return[Ht(ht)]}),qt=ze=>{const{prefixCls:Yt,status:on,wrapperCol:ht,children:Qe,errors:_t,warnings:It,_internalItemRender:Fn,extra:Hn,help:ct,fieldId:sn,marginBottom:Un,onErrorVisibleChanged:_n}=ze,Zt=`${Yt}-item`,rn=$e.useContext(De.q3),wi=ht||rn.wrapperCol||{},Ci=He()(`${Zt}-control`,wi.className),yi=$e.useMemo(()=>Object.assign({},rn),[rn]);delete yi.labelCol,delete yi.wrapperCol;const ci=$e.createElement("div",{className:`${Zt}-control-input`},$e.createElement("div",{className:`${Zt}-control-input-content`},Qe)),Pi=$e.useMemo(()=>({prefixCls:Yt,status:on}),[Yt,on]),Mi=Un!==null||_t.length||It.length?$e.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},$e.createElement(De.Rk.Provider,{value:Pi},$e.createElement(kt,{fieldId:sn,errors:_t,warnings:It,help:ct,helpStatus:on,className:`${Zt}-explain-connected`,onVisibleChanged:_n})),!!Un&&$e.createElement("div",{style:{width:0,height:Un}})):null,ji={};sn&&(ji.id=`${sn}_extra`);const lr=Hn?$e.createElement("div",Object.assign({},ji,{className:`${Zt}-extra`}),Hn):null,nr=Fn&&Fn.mark==="pro_table_render"&&Fn.render?Fn.render(ze,{input:ci,errorList:Mi,extra:lr}):$e.createElement($e.Fragment,null,ci,Mi,lr);return $e.createElement(De.q3.Provider,{value:yi},$e.createElement(dt.Z,Object.assign({},wi,{className:Ci}),nr),$e.createElement(En,{prefixCls:Yt}))},cn=ve(61485),qn=ve(31724),wn=ve(9763),vi=ve(6848),ei=function(ze,Yt){var on={};for(var ht in ze)Object.prototype.hasOwnProperty.call(ze,ht)&&Yt.indexOf(ht)<0&&(on[ht]=ze[ht]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ht=Object.getOwnPropertySymbols(ze);Qe<ht.length;Qe++)Yt.indexOf(ht[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ze,ht[Qe])&&(on[ht[Qe]]=ze[ht[Qe]]);return on};function Li(ze){return ze?typeof ze=="object"&&!$e.isValidElement(ze)?ze:{title:ze}:null}var zi=ze=>{let{prefixCls:Yt,label:on,htmlFor:ht,labelCol:Qe,labelAlign:_t,colon:It,required:Fn,requiredMark:Hn,tooltip:ct}=ze;var sn;const[Un]=(0,wn.Z)("Form"),{vertical:_n,labelAlign:Zt,labelCol:rn,labelWrap:wi,colon:Ci}=$e.useContext(De.q3);if(!on)return null;const yi=Qe||rn||{},ci=_t||Zt,Pi=`${Yt}-item-label`,Mi=He()(Pi,ci==="left"&&`${Pi}-left`,yi.className,{[`${Pi}-wrap`]:!!wi});let ji=on;const lr=It===!0||Ci!==!1&&It!==!1;lr&&!_n&&typeof on=="string"&&on.trim()!==""&&(ji=on.replace(/[:|]\s*$/,""));const Nn=Li(ct);if(Nn){const{icon:Cn=$e.createElement(cn.Z,null)}=Nn,di=ei(Nn,["icon"]),Ki=$e.createElement(vi.Z,Object.assign({},di),$e.cloneElement(Cn,{className:`${Yt}-item-tooltip`,title:""}));ji=$e.createElement($e.Fragment,null,ji,Ki)}const Pr=Hn==="optional",Tr=typeof Hn=="function";Tr?ji=Hn(ji,{required:!!Fn}):Pr&&!Fn&&(ji=$e.createElement($e.Fragment,null,ji,$e.createElement("span",{className:`${Yt}-item-optional`,title:""},(Un==null?void 0:Un.optional)||((sn=qn.Z.Form)===null||sn===void 0?void 0:sn.optional))));const br=He()({[`${Yt}-item-required`]:Fn,[`${Yt}-item-required-mark-optional`]:Pr||Tr,[`${Yt}-item-no-colon`]:!lr});return $e.createElement(dt.Z,Object.assign({},yi,{className:Mi}),$e.createElement("label",{htmlFor:ht,className:br,title:typeof on=="string"?on:""},ji))},Bn=ve(29679),rr=ve(19248),Yr=ve(96512),zr=ve(58617);const Zr={success:Bn.Z,warning:Yr.Z,error:rr.Z,validating:zr.Z};function Nr(ze){let{children:Yt,errors:on,warnings:ht,hasFeedback:Qe,validateStatus:_t,prefixCls:It,meta:Fn,noStyle:Hn}=ze;const ct=`${It}-item`,{feedbackIcons:sn}=$e.useContext(De.q3),Un=mn(on,ht,Fn,null,!!Qe,_t),{isFormItemInput:_n,status:Zt}=$e.useContext(De.aM),rn=$e.useMemo(()=>{var wi;let Ci;if(Qe){const Pi=Qe!==!0&&Qe.icons||sn,Mi=Un&&((wi=Pi==null?void 0:Pi({status:Un,errors:on,warnings:ht}))===null||wi===void 0?void 0:wi[Un]),ji=Un&&Zr[Un];Ci=Mi!==!1&&ji?$e.createElement("span",{className:He()(`${ct}-feedback-icon`,`${ct}-feedback-icon-${Un}`)},Mi||$e.createElement(ji,null)):null}let yi=!0,ci=Un||"";return Hn&&(yi=_n,ci=(Un!=null?Un:Zt)||""),{status:ci,errors:on,warnings:ht,hasFeedback:!!Qe,feedbackIcon:Ci,isFormItemInput:yi}},[Un,Qe,Hn,_n,Zt]);return $e.createElement(De.aM.Provider,{value:rn},Yt)}var Co=function(ze,Yt){var on={};for(var ht in ze)Object.prototype.hasOwnProperty.call(ze,ht)&&Yt.indexOf(ht)<0&&(on[ht]=ze[ht]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ht=Object.getOwnPropertySymbols(ze);Qe<ht.length;Qe++)Yt.indexOf(ht[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ze,ht[Qe])&&(on[ht[Qe]]=ze[ht[Qe]]);return on};function $r(ze){const{prefixCls:Yt,className:on,rootClassName:ht,style:Qe,help:_t,errors:It,warnings:Fn,validateStatus:Hn,meta:ct,hasFeedback:sn,hidden:Un,children:_n,fieldId:Zt,required:rn,isRequired:wi,onSubItemMetaChange:Ci}=ze,yi=Co(ze,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),ci=`${Yt}-item`,{requiredMark:Pi}=$e.useContext(De.q3),Mi=$e.useRef(null),ji=Tt(It),lr=Tt(Fn),nr=_t!=null,Nn=!!(nr||It.length||Fn.length),Pr=!!Mi.current&&(0,Ve.Z)(Mi.current),[Tr,br]=$e.useState(null);(0,We.Z)(()=>{if(Nn&&Mi.current){const Yi=getComputedStyle(Mi.current);br(parseInt(Yi.marginBottom,10))}},[Nn,Pr]);const Cn=Yi=>{Yi||br(null)},Ki=function(){let Yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const cr=Yi?ji:ct.errors,Mr=Yi?lr:ct.warnings;return mn(cr,Mr,ct,"",!!sn,Hn)}(),ir=He()(ci,on,ht,{[`${ci}-with-help`]:nr||ji.length||lr.length,[`${ci}-has-feedback`]:Ki&&sn,[`${ci}-has-success`]:Ki==="success",[`${ci}-has-warning`]:Ki==="warning",[`${ci}-has-error`]:Ki==="error",[`${ci}-is-validating`]:Ki==="validating",[`${ci}-hidden`]:Un});return $e.createElement("div",{className:ir,style:Qe,ref:Mi},$e.createElement(bt.Z,Object.assign({className:`${ci}-row`},(0,Ct.Z)(yi,["_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"])),$e.createElement(zi,Object.assign({htmlFor:Zt},ze,{requiredMark:Pi,required:rn!=null?rn:wi,prefixCls:Yt})),$e.createElement(qt,Object.assign({},ze,ct,{errors:ji,warnings:lr,prefixCls:Yt,status:Ki,help:_t,marginBottom:Tr,onErrorVisibleChanged:Cn}),$e.createElement(De.qI.Provider,{value:Ci},$e.createElement(Nr,{prefixCls:Yt,meta:ct,errors:ct.errors,warnings:ct.warnings,hasFeedback:sn,validateStatus:Ki},_n)))),!!Tr&&$e.createElement("div",{className:`${ci}-margin-offset`,style:{marginBottom:-Tr}}))}const sr="__SPLIT__",Fo=null,ti=$e.memo(ze=>{let{children:Yt}=ze;return Yt},(ze,Yt)=>ze.value===Yt.value&&ze.update===Yt.update&&ze.childProps.length===Yt.childProps.length&&ze.childProps.every((on,ht)=>on===Yt.childProps[ht]));function Ae(ze){return ze!=null}function $n(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function oi(ze){const{name:Yt,noStyle:on,className:ht,dependencies:Qe,prefixCls:_t,shouldUpdate:It,rules:Fn,children:Hn,required:ct,label:sn,messageVariables:Un,trigger:_n="onChange",validateTrigger:Zt,hidden:rn,help:wi}=ze,{getPrefixCls:Ci}=$e.useContext(Wt.E_),{name:yi}=$e.useContext(De.q3),ci=we(Hn),Pi=typeof ci=="function",Mi=$e.useContext(De.qI),{validateTrigger:ji}=$e.useContext(Xe.FieldContext),lr=Zt!==void 0?Zt:ji,nr=Ae(Yt),Nn=Ci("form",_t),[Pr,Tr]=Ke(Nn),br=$e.useContext(Xe.ListContext),Cn=$e.useRef(),[di,Ki]=st({}),[ir,Yi]=(0,Gn.Z)(()=>$n()),cr=Ln=>{const fr=br==null?void 0:br.getKey(Ln.name);if(Yi(Ln.destroy?$n():Ln,!0),on&&wi!==!1&&Mi){let Ur=Ln.name;if(Ln.destroy)Ur=Cn.current||Ur;else if(fr!==void 0){const[Cr,Do]=fr;Ur=[Cr].concat((0,ye.Z)(Do)),Cn.current=Ur}Mi(Ln,Ur)}},Mr=(Ln,fr)=>{Ki(Ur=>{const Cr=Object.assign({},Ur),so=[].concat((0,ye.Z)(Ln.name.slice(0,-1)),(0,ye.Z)(fr)).join(sr);return Ln.destroy?delete Cr[so]:Cr[so]=Ln,Cr})},[Di,Ui]=$e.useMemo(()=>{const Ln=(0,ye.Z)(ir.errors),fr=(0,ye.Z)(ir.warnings);return Object.values(di).forEach(Ur=>{Ln.push.apply(Ln,(0,ye.Z)(Ur.errors||[])),fr.push.apply(fr,(0,ye.Z)(Ur.warnings||[]))}),[Ln,fr]},[di,ir.errors,ir.warnings]),Wi=At();function Dn(Ln,fr,Ur){return on&&!rn?$e.createElement(Nr,{prefixCls:Nn,hasFeedback:ze.hasFeedback,validateStatus:ze.validateStatus,meta:ir,errors:Di,warnings:Ui,noStyle:!0},Ln):$e.createElement($r,Object.assign({key:"row"},ze,{className:He()(ht,Tr),prefixCls:Nn,fieldId:fr,isRequired:Ur,errors:Di,warnings:Ui,meta:ir,onSubItemMetaChange:Mr}),Ln)}if(!nr&&!Pi&&!Qe)return Pr(Dn(ci));let Fr={};return typeof sn=="string"?Fr.label=sn:Yt&&(Fr.label=String(Yt)),Un&&(Fr=Object.assign(Object.assign({},Fr),Un)),Pr($e.createElement(Xe.Field,Object.assign({},ze,{messageVariables:Fr,trigger:_n,validateTrigger:lr,onMetaChange:cr}),(Ln,fr,Ur)=>{const Cr=Lt(Yt).length&&fr?fr.name:[],Do=yn(Cr,yi),so=ct!==void 0?ct:!!(Fn&&Fn.some(hr=>{if(hr&&typeof hr=="object"&&hr.required&&!hr.warningOnly)return!0;if(typeof hr=="function"){const Gr=hr(Ur);return Gr&&Gr.required&&!Gr.warningOnly}return!1})),yr=Object.assign({},Ln);let gr=null;if(Array.isArray(ci)&&nr)gr=ci;else if(!(Pi&&(!(It||Qe)||nr))){if(!(Qe&&!Pi&&!nr))if((0,tt.l$)(ci)){const hr=Object.assign(Object.assign({},ci.props),yr);if(hr.id||(hr.id=Do),wi||Di.length>0||Ui.length>0||ze.extra){const _e=[];(wi||Di.length>0)&&_e.push(`${Do}_help`),ze.extra&&_e.push(`${Do}_extra`),hr["aria-describedby"]=_e.join(" ")}Di.length>0&&(hr["aria-invalid"]="true"),so&&(hr["aria-required"]="true"),(0,xn.Yr)(ci)&&(hr.ref=Wi(Cr,ci)),new Set([].concat((0,ye.Z)(Lt(_n)),(0,ye.Z)(Lt(lr)))).forEach(_e=>{hr[_e]=function(){for(var yt,Bt,ln,jn,ri,tn=arguments.length,bn=new Array(tn),Xn=0;Xn<tn;Xn++)bn[Xn]=arguments[Xn];(ln=yr[_e])===null||ln===void 0||(yt=ln).call.apply(yt,[yr].concat(bn)),(ri=(jn=ci.props)[_e])===null||ri===void 0||(Bt=ri).call.apply(Bt,[jn].concat(bn))}});const Oi=[hr["aria-required"],hr["aria-invalid"],hr["aria-describedby"]];gr=$e.createElement(ti,{value:yr[ze.valuePropName||"value"],update:ci,childProps:Oi},(0,tt.Tm)(ci,hr))}else Pi&&(It||Qe)&&!nr?gr=ci(Ur):gr=ci}return Dn(gr,Do,so)}))}const fn=oi;fn.useStatus=ke;var Qn=fn,Zn=function(ze,Yt){var on={};for(var ht in ze)Object.prototype.hasOwnProperty.call(ze,ht)&&Yt.indexOf(ht)<0&&(on[ht]=ze[ht]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ht=Object.getOwnPropertySymbols(ze);Qe<ht.length;Qe++)Yt.indexOf(ht[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ze,ht[Qe])&&(on[ht[Qe]]=ze[ht[Qe]]);return on},Jt=ze=>{var{prefixCls:Yt,children:on}=ze,ht=Zn(ze,["prefixCls","children"]);const{getPrefixCls:Qe}=$e.useContext(Wt.E_),_t=Qe("form",Yt),It=$e.useMemo(()=>({prefixCls:_t,status:"error"}),[_t]);return $e.createElement(Xe.List,Object.assign({},ht),(Fn,Hn,ct)=>$e.createElement(De.Rk.Provider,{value:It},on(Fn.map(sn=>Object.assign(Object.assign({},sn),{fieldKey:sn.key})),Hn,{errors:ct.errors,warnings:ct.warnings})))};function vn(){const{form:ze}=(0,$e.useContext)(De.q3);return ze}const xt=mt;xt.Item=Qn,xt.List=Jt,xt.ErrorList=kt,xt.useForm=en,xt.useFormInstance=vn,xt.useWatch=Xe.useWatch,xt.Provider=De.RV,xt.create=()=>{};var wt=xt},8628:function(Rn,Mn,ve){"use strict";var ye=ve(59301),Oe=ve(34280),He=ve(56762),Rt=ve(69507);function $e(){let qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const De=(0,ye.useRef)({}),Tt=(0,He.Z)(),Et=(0,Rt.ZP)();return(0,Oe.Z)(()=>{const et=Et.subscribe(Ot=>{De.current=Ot,qe&&Tt()});return()=>Et.unsubscribe(et)},[]),De.current}Mn.Z=$e},9432:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return ge},n:function(){return ce}});var ye=ve(19248),Oe=ve(92310),He=ve.n(Oe),Rt=ve(93681),$e=ve(8654),qe=ve(59301),De=ve(19080),Tt=ve(36355),Et=ve(1684),et=ve(19716),Ot=ve(32441),it=ve(33234),Pt=ve(59412),Me=ve(9937);function te(me){return!!(me.prefix||me.suffix||me.allowClear)}var ne=function(me,Ce){var Fe={};for(var Pe in me)Object.prototype.hasOwnProperty.call(me,Pe)&&Ce.indexOf(Pe)<0&&(Fe[Pe]=me[Pe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Pe=Object.getOwnPropertySymbols(me);Ie<Pe.length;Ie++)Ce.indexOf(Pe[Ie])<0&&Object.prototype.propertyIsEnumerable.call(me,Pe[Ie])&&(Fe[Pe[Ie]]=me[Pe[Ie]]);return Fe};function ce(me,Ce){if(!me)return;me.focus(Ce);const{cursor:Fe}=Ce||{};if(Fe){const Pe=me.value.length;switch(Fe){case"start":me.setSelectionRange(0,0);break;case"end":me.setSelectionRange(Pe,Pe);break;default:me.setSelectionRange(0,Pe);break}}}var ge=(0,qe.forwardRef)((me,Ce)=>{var Fe;const{prefixCls:Pe,bordered:Ie=!0,status:Ge,size:Ke,disabled:Ye,onBlur:pt,onFocus:Je,suffix:kt,allowClear:Xe,addonAfter:Wt,addonBefore:zt,className:jt,style:Mt,styles:Ut,rootClassName:ft,onChange:Re,classNames:Lt}=me,yn=ne(me,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:mn,direction:Nt,input:en}=qe.useContext(Tt.E_),nn=mn("input",Pe),On=(0,qe.useRef)(null),[dn,Tn]=(0,Me.ZP)(nn),{compactSize:mt,compactItemClassnames:Gn}=(0,it.ri)(nn,Nt),xn=(0,et.Z)(En=>{var An;return(An=Ke!=null?Ke:mt)!==null&&An!==void 0?An:En}),tt=qe.useContext(Et.Z),Ee=Ye!=null?Ye:tt,{status:we,hasFeedback:Be,feedbackIcon:ke}=(0,qe.useContext)(Ot.aM),Se=(0,De.F)(we,Ge),st=te(me)||!!Be,At=(0,qe.useRef)(st);(0,qe.useEffect)(()=>{var En;st&&At.current,At.current=st},[st]);const Ve=(0,Pt.Z)(On,!0),We=En=>{Ve(),pt==null||pt(En)},Ct=En=>{Ve(),Je==null||Je(En)},bt=En=>{Ve(),Re==null||Re(En)},dt=(Be||kt)&&qe.createElement(qe.Fragment,null,kt,Be&&ke);let Ht;return typeof Xe=="object"&&(Xe!=null&&Xe.clearIcon)?Ht=Xe:Xe&&(Ht={clearIcon:qe.createElement(ye.Z,null)}),dn(qe.createElement(Rt.default,Object.assign({ref:(0,$e.sQ)(Ce,On),prefixCls:nn,autoComplete:en==null?void 0:en.autoComplete},yn,{disabled:Ee,onBlur:We,onFocus:Ct,style:Object.assign(Object.assign({},en==null?void 0:en.style),Mt),styles:Object.assign(Object.assign({},en==null?void 0:en.styles),Ut),suffix:dt,allowClear:Ht,className:He()(jt,ft,Gn,en==null?void 0:en.className),onChange:bt,addonAfter:Wt&&qe.createElement(it.BR,null,qe.createElement(Ot.Ux,{override:!0,status:!0},Wt)),addonBefore:zt&&qe.createElement(it.BR,null,qe.createElement(Ot.Ux,{override:!0,status:!0},zt)),classNames:Object.assign(Object.assign(Object.assign({},Lt),en==null?void 0:en.classNames),{input:He()({[`${nn}-sm`]:xn==="small",[`${nn}-lg`]:xn==="large",[`${nn}-rtl`]:Nt==="rtl",[`${nn}-borderless`]:!Ie},!st&&(0,De.Z)(nn,Se),Lt==null?void 0:Lt.input,(Fe=en==null?void 0:en.classNames)===null||Fe===void 0?void 0:Fe.input,Tn)}),classes:{affixWrapper:He()({[`${nn}-affix-wrapper-sm`]:xn==="small",[`${nn}-affix-wrapper-lg`]:xn==="large",[`${nn}-affix-wrapper-rtl`]:Nt==="rtl",[`${nn}-affix-wrapper-borderless`]:!Ie},(0,De.Z)(`${nn}-affix-wrapper`,Se,Be),Tn),wrapper:He()({[`${nn}-group-rtl`]:Nt==="rtl"},Tn),group:He()({[`${nn}-group-wrapper-sm`]:xn==="small",[`${nn}-group-wrapper-lg`]:xn==="large",[`${nn}-group-wrapper-rtl`]:Nt==="rtl",[`${nn}-group-wrapper-disabled`]:Ee},(0,De.Z)(`${nn}-group-wrapper`,Se,Be),Tn)}})))})},1643:function(Rn,Mn,ve){"use strict";var ye=ve(19248),Oe=ve(92310),He=ve.n(Oe),Rt=ve(9296),$e=ve(59301),qe=ve(19080),De=ve(36355),Tt=ve(1684),Et=ve(19716),et=ve(32441),Ot=ve(9432),it=ve(9937),Pt=function(te,ne){var ce={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ne.indexOf(se)<0&&(ce[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,se=Object.getOwnPropertySymbols(te);ge<se.length;ge++)ne.indexOf(se[ge])<0&&Object.prototype.propertyIsEnumerable.call(te,se[ge])&&(ce[se[ge]]=te[se[ge]]);return ce};const Me=(0,$e.forwardRef)((te,ne)=>{const{prefixCls:ce,bordered:se=!0,size:ge,disabled:me,status:Ce,allowClear:Fe,showCount:Pe,classNames:Ie,rootClassName:Ge,className:Ke}=te,Ye=Pt(te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:pt,direction:Je}=$e.useContext(De.E_),kt=(0,Et.Z)(ge),Xe=$e.useContext(Tt.Z),Wt=me!=null?me:Xe,{status:zt,hasFeedback:jt,feedbackIcon:Mt}=$e.useContext(et.aM),Ut=(0,qe.F)(zt,Ce),ft=$e.useRef(null);$e.useImperativeHandle(ne,()=>{var Nt;return{resizableTextArea:(Nt=ft.current)===null||Nt===void 0?void 0:Nt.resizableTextArea,focus:en=>{var nn,On;(0,Ot.n)((On=(nn=ft.current)===null||nn===void 0?void 0:nn.resizableTextArea)===null||On===void 0?void 0:On.textArea,en)},blur:()=>{var en;return(en=ft.current)===null||en===void 0?void 0:en.blur()}}});const Re=pt("input",ce);let Lt;typeof Fe=="object"&&(Fe!=null&&Fe.clearIcon)?Lt=Fe:Fe&&(Lt={clearIcon:$e.createElement(ye.Z,null)});const[yn,mn]=(0,it.ZP)(Re);return yn($e.createElement(Rt.default,Object.assign({},Ye,{disabled:Wt,allowClear:Lt,className:He()(Ke,Ge),classes:{affixWrapper:He()(`${Re}-textarea-affix-wrapper`,{[`${Re}-affix-wrapper-rtl`]:Je==="rtl",[`${Re}-affix-wrapper-borderless`]:!se,[`${Re}-affix-wrapper-sm`]:kt==="small",[`${Re}-affix-wrapper-lg`]:kt==="large",[`${Re}-textarea-show-count`]:Pe},(0,qe.Z)(`${Re}-affix-wrapper`,Ut),mn)},classNames:Object.assign(Object.assign({},Ie),{textarea:He()({[`${Re}-borderless`]:!se,[`${Re}-sm`]:kt==="small",[`${Re}-lg`]:kt==="large"},(0,qe.Z)(Re,Ut),mn,Ie==null?void 0:Ie.textarea)}),prefixCls:Re,suffix:jt&&$e.createElement("span",{className:`${Re}-textarea-suffix`},Mt),showCount:Pe,ref:ft})))});Mn.Z=Me},59412:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Oe}});var ye=ve(59301);function Oe(He,Rt){const $e=(0,ye.useRef)([]),qe=()=>{$e.current.push(setTimeout(()=>{var De,Tt,Et,et;!((De=He.current)===null||De===void 0)&&De.input&&((Tt=He.current)===null||Tt===void 0?void 0:Tt.input.getAttribute("type"))==="password"&&(!((Et=He.current)===null||Et===void 0)&&Et.input.hasAttribute("value"))&&((et=He.current)===null||et===void 0||et.input.removeAttribute("value"))}))};return(0,ye.useEffect)(()=>(Rt&&qe(),()=>$e.current.forEach(De=>{De&&clearTimeout(De)})),[]),qe}},92832:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return kt}});var ye=ve(92310),Oe=ve.n(ye),He=ve(59301),Rt=ve(36355),$e=ve(32441),qe=ve(9937),Tt=Xe=>{const{getPrefixCls:Wt,direction:zt}=(0,He.useContext)(Rt.E_),{prefixCls:jt,className:Mt}=Xe,Ut=Wt("input-group",jt),ft=Wt("input"),[Re,Lt]=(0,qe.ZP)(ft),yn=Oe()(Ut,{[`${Ut}-lg`]:Xe.size==="large",[`${Ut}-sm`]:Xe.size==="small",[`${Ut}-compact`]:Xe.compact,[`${Ut}-rtl`]:zt==="rtl"},Lt,Mt),mn=(0,He.useContext)($e.aM),Nt=(0,He.useMemo)(()=>Object.assign(Object.assign({},mn),{isFormItemInput:!1}),[mn]);return Re(He.createElement("span",{className:yn,style:Xe.style,onMouseEnter:Xe.onMouseEnter,onMouseLeave:Xe.onMouseLeave,onFocus:Xe.onFocus,onBlur:Xe.onBlur},He.createElement($e.aM.Provider,{value:Nt},Xe.children)))},Et=ve(9432),et=ve(73331),Ot=ve(15277),it=ve(2738),Pt=ve(8654),Me=ve(59412),te=function(Xe,Wt){var zt={};for(var jt in Xe)Object.prototype.hasOwnProperty.call(Xe,jt)&&Wt.indexOf(jt)<0&&(zt[jt]=Xe[jt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,jt=Object.getOwnPropertySymbols(Xe);Mt<jt.length;Mt++)Wt.indexOf(jt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,jt[Mt])&&(zt[jt[Mt]]=Xe[jt[Mt]]);return zt};const ne=Xe=>Xe?He.createElement(Ot.Z,null):He.createElement(et.Z,null),ce={click:"onClick",hover:"onMouseOver"};var ge=He.forwardRef((Xe,Wt)=>{const{visibilityToggle:zt=!0}=Xe,jt=typeof zt=="object"&&zt.visible!==void 0,[Mt,Ut]=(0,He.useState)(()=>jt?zt.visible:!1),ft=(0,He.useRef)(null);He.useEffect(()=>{jt&&Ut(zt.visible)},[jt,zt]);const Re=(0,Me.Z)(ft),Lt=()=>{const{disabled:Ee}=Xe;Ee||(Mt&&Re(),Ut(we=>{var Be;const ke=!we;return typeof zt=="object"&&((Be=zt.onVisibleChange)===null||Be===void 0||Be.call(zt,ke)),ke}))},yn=Ee=>{const{action:we="click",iconRender:Be=ne}=Xe,ke=ce[we]||"",Se=Be(Mt),st={[ke]:Lt,className:`${Ee}-icon`,key:"passwordIcon",onMouseDown:At=>{At.preventDefault()},onMouseUp:At=>{At.preventDefault()}};return He.cloneElement(He.isValidElement(Se)?Se:He.createElement("span",null,Se),st)},{className:mn,prefixCls:Nt,inputPrefixCls:en,size:nn}=Xe,On=te(Xe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:dn}=He.useContext(Rt.E_),Tn=dn("input",en),mt=dn("input-password",Nt),Gn=zt&&yn(mt),xn=Oe()(mt,mn,{[`${mt}-${nn}`]:!!nn}),tt=Object.assign(Object.assign({},(0,it.Z)(On,["suffix","iconRender","visibilityToggle"])),{type:Mt?"text":"password",className:xn,prefixCls:Tn,suffix:Gn});return nn&&(tt.size=nn),He.createElement(Et.Z,Object.assign({ref:(0,Pt.sQ)(Wt,ft)},tt))}),me=ve(47472),Ce=ve(92343),Fe=ve(3113),Pe=ve(19716),Ie=ve(33234),Ge=function(Xe,Wt){var zt={};for(var jt in Xe)Object.prototype.hasOwnProperty.call(Xe,jt)&&Wt.indexOf(jt)<0&&(zt[jt]=Xe[jt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,jt=Object.getOwnPropertySymbols(Xe);Mt<jt.length;Mt++)Wt.indexOf(jt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,jt[Mt])&&(zt[jt[Mt]]=Xe[jt[Mt]]);return zt},Ye=He.forwardRef((Xe,Wt)=>{const{prefixCls:zt,inputPrefixCls:jt,className:Mt,size:Ut,suffix:ft,enterButton:Re=!1,addonAfter:Lt,loading:yn,disabled:mn,onSearch:Nt,onChange:en,onCompositionStart:nn,onCompositionEnd:On}=Xe,dn=Ge(Xe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Tn,direction:mt}=He.useContext(Rt.E_),Gn=He.useRef(!1),xn=Tn("input-search",zt),tt=Tn("input",jt),{compactSize:Ee}=(0,Ie.ri)(xn,mt),we=(0,Pe.Z)(qt=>{var cn;return(cn=Ut!=null?Ut:Ee)!==null&&cn!==void 0?cn:qt}),Be=He.useRef(null),ke=qt=>{qt&&qt.target&&qt.type==="click"&&Nt&&Nt(qt.target.value,qt,{source:"clear"}),en&&en(qt)},Se=qt=>{var cn;document.activeElement===((cn=Be.current)===null||cn===void 0?void 0:cn.input)&&qt.preventDefault()},st=qt=>{var cn,qn;Nt&&Nt((qn=(cn=Be.current)===null||cn===void 0?void 0:cn.input)===null||qn===void 0?void 0:qn.value,qt,{source:"input"})},At=qt=>{Gn.current||yn||st(qt)},Ve=typeof Re=="boolean"?He.createElement(me.Z,null):null,We=`${xn}-button`;let Ct;const bt=Re||{},dt=bt.type&&bt.type.__ANT_BUTTON===!0;dt||bt.type==="button"?Ct=(0,Ce.Tm)(bt,Object.assign({onMouseDown:Se,onClick:qt=>{var cn,qn;(qn=(cn=bt==null?void 0:bt.props)===null||cn===void 0?void 0:cn.onClick)===null||qn===void 0||qn.call(cn,qt),st(qt)},key:"enterButton"},dt?{className:We,size:we}:{})):Ct=He.createElement(Fe.ZP,{className:We,type:Re?"primary":void 0,size:we,disabled:mn,key:"enterButton",onMouseDown:Se,onClick:st,loading:yn,icon:Ve},Re),Lt&&(Ct=[Ct,(0,Ce.Tm)(Lt,{key:"addonAfter"})]);const Ht=Oe()(xn,{[`${xn}-rtl`]:mt==="rtl",[`${xn}-${we}`]:!!we,[`${xn}-with-button`]:!!Re},Mt),En=qt=>{Gn.current=!0,nn==null||nn(qt)},An=qt=>{Gn.current=!1,On==null||On(qt)};return He.createElement(Et.Z,Object.assign({ref:(0,Pt.sQ)(Be,Wt),onPressEnter:At},dn,{size:we,onCompositionStart:En,onCompositionEnd:An,prefixCls:tt,addonAfter:Ct,suffix:ft,onChange:ke,className:Ht,disabled:mn}))}),pt=ve(1643);const Je=Et.Z;Je.Group=Tt,Je.Search=Ye,Je.TextArea=pt.Z,Je.Password=ge;var kt=Je},45818:function(Rn,Mn,ve){"use strict";ve.d(Mn,{D:function(){return me},Z:function(){return Pe}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(Ge,Ke){return Oe.createElement($e.Z,(0,ye.Z)({},Ge,{ref:Ke,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De,Et=ve(33853),et=ve(38819),Ot=ve(92310),it=ve.n(Ot),Pt=ve(2738),te=Ie=>!isNaN(parseFloat(Ie))&&isFinite(Ie),ne=ve(36355),ce=ve(84966),se=function(Ie,Ge){var Ke={};for(var Ye in Ie)Object.prototype.hasOwnProperty.call(Ie,Ye)&&Ge.indexOf(Ye)<0&&(Ke[Ye]=Ie[Ye]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Ye=Object.getOwnPropertySymbols(Ie);pt<Ye.length;pt++)Ge.indexOf(Ye[pt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ye[pt])&&(Ke[Ye[pt]]=Ie[Ye[pt]]);return Ke};const ge={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},me=Oe.createContext({}),Ce=(()=>{let Ie=0;return function(){let Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ie+=1,`${Ge}${Ie}`}})();var Pe=Oe.forwardRef((Ie,Ge)=>{const{prefixCls:Ke,className:Ye,trigger:pt,children:Je,defaultCollapsed:kt=!1,theme:Xe="dark",style:Wt={},collapsible:zt=!1,reverseArrow:jt=!1,width:Mt=200,collapsedWidth:Ut=80,zeroWidthTriggerStyle:ft,breakpoint:Re,onCollapse:Lt,onBreakpoint:yn}=Ie,mn=se(Ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Nt}=(0,Oe.useContext)(ce.Gs),[en,nn]=(0,Oe.useState)("collapsed"in Ie?Ie.collapsed:kt),[On,dn]=(0,Oe.useState)(!1);(0,Oe.useEffect)(()=>{"collapsed"in Ie&&nn(Ie.collapsed)},[Ie.collapsed]);const Tn=(we,Be)=>{"collapsed"in Ie||nn(we),Lt==null||Lt(we,Be)},mt=(0,Oe.useRef)();mt.current=we=>{dn(we.matches),yn==null||yn(we.matches),en!==we.matches&&Tn(we.matches,"responsive")},(0,Oe.useEffect)(()=>{function we(ke){return mt.current(ke)}let Be;if(typeof window!="undefined"){const{matchMedia:ke}=window;if(ke&&Re&&Re in ge){Be=ke(`(max-width: ${ge[Re]})`);try{Be.addEventListener("change",we)}catch(Se){Be.addListener(we)}we(Be)}}return()=>{try{Be==null||Be.removeEventListener("change",we)}catch(ke){Be==null||Be.removeListener(we)}}},[Re]),(0,Oe.useEffect)(()=>{const we=Ce("ant-sider-");return Nt.addSider(we),()=>Nt.removeSider(we)},[]);const Gn=()=>{Tn(!en,"clickTrigger")},{getPrefixCls:xn}=(0,Oe.useContext)(ne.E_),tt=()=>{const we=xn("layout-sider",Ke),Be=(0,Pt.Z)(mn,["collapsed"]),ke=en?Ut:Mt,Se=te(ke)?`${ke}px`:String(ke),st=parseFloat(String(Ut||0))===0?Oe.createElement("span",{onClick:Gn,className:it()(`${we}-zero-width-trigger`,`${we}-zero-width-trigger-${jt?"right":"left"}`),style:ft},pt||Oe.createElement(Tt,null)):null,We={expanded:jt?Oe.createElement(et.Z,null):Oe.createElement(Et.Z,null),collapsed:jt?Oe.createElement(Et.Z,null):Oe.createElement(et.Z,null)}[en?"collapsed":"expanded"],Ct=pt!==null?st||Oe.createElement("div",{className:`${we}-trigger`,onClick:Gn,style:{width:Se}},pt||We):null,bt=Object.assign(Object.assign({},Wt),{flex:`0 0 ${Se}`,maxWidth:Se,minWidth:Se,width:Se}),dt=it()(we,`${we}-${Xe}`,{[`${we}-collapsed`]:!!en,[`${we}-has-trigger`]:zt&&pt!==null&&!st,[`${we}-below`]:!!On,[`${we}-zero-width`]:parseFloat(Se)===0},Ye);return Oe.createElement("aside",Object.assign({className:dt},Be,{style:bt,ref:Ge}),Oe.createElement("div",{className:`${we}-children`},Je),zt||On&&st?Ct:null)},Ee=Oe.useMemo(()=>({siderCollapsed:en}),[en]);return Oe.createElement(me.Provider,{value:Ee},tt())})},84966:function(Rn,Mn,ve){"use strict";ve.d(Mn,{VY:function(){return me},$_:function(){return ge},h4:function(){return se},Gs:function(){return Pt},ZP:function(){return Ce}});var ye=ve(26407),Oe=ve(92310),He=ve.n(Oe),Rt=ve(2738),$e=ve(59301),qe=ve(36355),De=ve(83116),Et=Fe=>{const{componentCls:Pe,bodyBg:Ie,lightSiderBg:Ge,lightTriggerBg:Ke,lightTriggerColor:Ye}=Fe;return{[`${Pe}-sider-light`]:{background:Ge,[`${Pe}-sider-trigger`]:{color:Ye,background:Ke},[`${Pe}-sider-zero-width-trigger`]:{color:Ye,background:Ke,border:`1px solid ${Ie}`,borderInlineStart:0}}}};const et=Fe=>{const{antCls:Pe,componentCls:Ie,colorText:Ge,triggerColor:Ke,footerBg:Ye,triggerBg:pt,headerHeight:Je,headerPadding:kt,headerColor:Xe,footerPadding:Wt,triggerHeight:zt,zeroTriggerHeight:jt,zeroTriggerWidth:Mt,motionDurationMid:Ut,motionDurationSlow:ft,fontSize:Re,borderRadius:Lt,bodyBg:yn,headerBg:mn,siderBg:Nt}=Fe;return{[Ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:yn,"&, *":{boxSizing:"border-box"},[`&${Ie}-has-sider`]:{flexDirection:"row",[`> ${Ie}, > ${Ie}-content`]:{width:0}},[`${Ie}-header, &${Ie}-footer`]:{flex:"0 0 auto"},[`${Ie}-sider`]:{position:"relative",minWidth:0,background:Nt,transition:`all ${Ut}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Pe}-menu${Pe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:zt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:zt,color:Ke,lineHeight:`${zt}px`,textAlign:"center",background:pt,cursor:"pointer",transition:`all ${Ut}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Je,insetInlineEnd:-Mt,zIndex:1,width:Mt,height:jt,color:Ke,fontSize:Fe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Nt,borderStartStartRadius:0,borderStartEndRadius:Lt,borderEndEndRadius:Lt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ft} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ft}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Mt,borderStartStartRadius:Lt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Lt}}}}},Et(Fe)),{"&-rtl":{direction:"rtl"}}),[`${Ie}-header`]:{height:Je,padding:kt,color:Xe,lineHeight:`${Je}px`,background:mn,[`${Pe}-menu`]:{lineHeight:"inherit"}},[`${Ie}-footer`]:{padding:Wt,color:Ge,fontSize:Re,background:Ye},[`${Ie}-content`]:{flex:"auto",minHeight:0}}};var Ot=(0,De.Z)("Layout",Fe=>[et(Fe)],Fe=>{const{colorBgLayout:Pe,controlHeight:Ie,controlHeightLG:Ge,colorText:Ke,controlHeightSM:Ye,marginXXS:pt,colorTextLightSolid:Je,colorBgContainer:kt}=Fe,Xe=Ge*1.25;return{colorBgHeader:"#001529",colorBgBody:Pe,colorBgTrigger:"#002140",bodyBg:Pe,headerBg:"#001529",headerHeight:Ie*2,headerPadding:`0 ${Xe}px`,headerColor:Ke,footerPadding:`${Ye}px ${Xe}px`,footerBg:Pe,siderBg:"#001529",triggerHeight:Ge+pt*2,triggerBg:"#002140",triggerColor:Je,zeroTriggerWidth:Ge,zeroTriggerHeight:Ge,lightSiderBg:kt,lightTriggerBg:kt,lightTriggerColor:Ke}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),it=function(Fe,Pe){var Ie={};for(var Ge in Fe)Object.prototype.hasOwnProperty.call(Fe,Ge)&&Pe.indexOf(Ge)<0&&(Ie[Ge]=Fe[Ge]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ge=Object.getOwnPropertySymbols(Fe);Ke<Ge.length;Ke++)Pe.indexOf(Ge[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ge[Ke])&&(Ie[Ge[Ke]]=Fe[Ge[Ke]]);return Ie};const Pt=$e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Me(Fe){let{suffixCls:Pe,tagName:Ie,displayName:Ge}=Fe;return Ke=>$e.forwardRef((pt,Je)=>$e.createElement(Ke,Object.assign({ref:Je,suffixCls:Pe,tagName:Ie},pt)))}const te=$e.forwardRef((Fe,Pe)=>{const{prefixCls:Ie,suffixCls:Ge,className:Ke,tagName:Ye}=Fe,pt=it(Fe,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Je}=$e.useContext(qe.E_),kt=Je("layout",Ie),[Xe,Wt]=Ot(kt),zt=Ge?`${kt}-${Ge}`:kt;return Xe($e.createElement(Ye,Object.assign({className:He()(Ie||zt,Ke,Wt),ref:Pe},pt)))}),ne=$e.forwardRef((Fe,Pe)=>{const{direction:Ie}=$e.useContext(qe.E_),[Ge,Ke]=$e.useState([]),{prefixCls:Ye,className:pt,rootClassName:Je,children:kt,hasSider:Xe,tagName:Wt,style:zt}=Fe,jt=it(Fe,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Mt=(0,Rt.Z)(jt,["suffixCls"]),{getPrefixCls:Ut,layout:ft}=$e.useContext(qe.E_),Re=Ut("layout",Ye),[Lt,yn]=Ot(Re),mn=He()(Re,{[`${Re}-has-sider`]:typeof Xe=="boolean"?Xe:Ge.length>0,[`${Re}-rtl`]:Ie==="rtl"},ft==null?void 0:ft.className,pt,Je,yn),Nt=$e.useMemo(()=>({siderHook:{addSider:en=>{Ke(nn=>[].concat((0,ye.Z)(nn),[en]))},removeSider:en=>{Ke(nn=>nn.filter(On=>On!==en))}}}),[]);return Lt($e.createElement(Pt.Provider,{value:Nt},$e.createElement(Wt,Object.assign({ref:Pe,className:mn,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),zt)},Mt),kt)))}),ce=Me({tagName:"div",displayName:"Layout"})(ne),se=Me({suffixCls:"header",tagName:"header",displayName:"Header"})(te),ge=Me({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(te),me=Me({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var Ce=ce},40875:function(Rn,Mn,ve){"use strict";ve.d(Mn,{J:function(){return qe}});var ye=ve(59301),Oe=ve(33234),He=ve(70425),Rt=function(De,Tt){var Et={};for(var et in De)Object.prototype.hasOwnProperty.call(De,et)&&Tt.indexOf(et)<0&&(Et[et]=De[et]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,et=Object.getOwnPropertySymbols(De);Ot<et.length;Ot++)Tt.indexOf(et[Ot])<0&&Object.prototype.propertyIsEnumerable.call(De,et[Ot])&&(Et[et[Ot]]=De[et[Ot]]);return Et};const $e=ye.createContext(null),qe=ye.forwardRef((De,Tt)=>{const{children:Et}=De,et=Rt(De,["children"]),Ot=ye.useContext($e),it=ye.useMemo(()=>Object.assign(Object.assign({},Ot),et),[Ot,et.prefixCls,et.mode,et.selectable]);return ye.createElement($e.Provider,{value:it},ye.createElement(Oe.BR,null,(0,He.supportNodeRef)(Et)?ye.cloneElement(Et,{ref:Tt}):Et))});Mn.Z=$e},20834:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return Ee}});var ye=ve(15285),Oe=ve(59301),He=ve(45818),Rt=ve(92310),$e=ve.n(Rt),qe=ve(36355),De=function(we,Be){var ke={};for(var Se in we)Object.prototype.hasOwnProperty.call(we,Se)&&Be.indexOf(Se)<0&&(ke[Se]=we[Se]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Se=Object.getOwnPropertySymbols(we);st<Se.length;st++)Be.indexOf(Se[st])<0&&Object.prototype.propertyIsEnumerable.call(we,Se[st])&&(ke[Se[st]]=we[Se[st]]);return ke},Et=we=>{const{prefixCls:Be,className:ke,dashed:Se}=we,st=De(we,["prefixCls","className","dashed"]),{getPrefixCls:At}=Oe.useContext(qe.E_),Ve=At("menu",Be),We=$e()({[`${Ve}-item-divider-dashed`]:!!Se},ke);return Oe.createElement(ye.iz,Object.assign({className:We},st))},et=ve(11592),Ot=ve(2738),it=ve(6848),Pt=ve(92343),te=(0,Oe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ce=we=>{var Be;const{className:ke,children:Se,icon:st,title:At,danger:Ve}=we,{prefixCls:We,firstLevel:Ct,direction:bt,disableMenuItemTitleTooltip:dt,inlineCollapsed:Ht}=Oe.useContext(te),En=vi=>{const ei=Oe.createElement("span",{className:`${We}-title-content`},Se);return(!st||(0,Pt.l$)(Se)&&Se.type==="span")&&Se&&vi&&Ct&&typeof Se=="string"?Oe.createElement("div",{className:`${We}-inline-collapsed-noicon`},Se.charAt(0)):ei},{siderCollapsed:An}=Oe.useContext(He.D);let qt=At;typeof At=="undefined"?qt=Ct?Se:"":At===!1&&(qt="");const cn={title:qt};!An&&!Ht&&(cn.title=null,cn.open=!1);const qn=(0,et.Z)(Se).length;let wn=Oe.createElement(ye.ck,Object.assign({},(0,Ot.Z)(we,["title","icon","danger"]),{className:$e()({[`${We}-item-danger`]:Ve,[`${We}-item-only-child`]:(st?qn+1:qn)===1},ke),title:typeof At=="string"?At:void 0}),(0,Pt.Tm)(st,{className:$e()((0,Pt.l$)(st)?(Be=st.props)===null||Be===void 0?void 0:Be.className:"",`${We}-item-icon`)}),En(Ht));return dt||(wn=Oe.createElement(it.Z,Object.assign({},cn,{placement:bt==="rtl"?"left":"right",overlayClassName:`${We}-inline-collapsed-tooltip`}),wn)),wn},ge=we=>{var Be;const{popupClassName:ke,icon:Se,title:st,theme:At}=we,Ve=Oe.useContext(te),{prefixCls:We,inlineCollapsed:Ct,theme:bt}=Ve,dt=(0,ye.Xl)();let Ht;if(!Se)Ht=Ct&&!dt.length&&st&&typeof st=="string"?Oe.createElement("div",{className:`${We}-inline-collapsed-noicon`},st.charAt(0)):Oe.createElement("span",{className:`${We}-title-content`},st);else{const An=(0,Pt.l$)(st)&&st.type==="span";Ht=Oe.createElement(Oe.Fragment,null,(0,Pt.Tm)(Se,{className:$e()((0,Pt.l$)(Se)?(Be=Se.props)===null||Be===void 0?void 0:Be.className:"",`${We}-item-icon`)}),An?st:Oe.createElement("span",{className:`${We}-title-content`},st))}const En=Oe.useMemo(()=>Object.assign(Object.assign({},Ve),{firstLevel:!1}),[Ve]);return Oe.createElement(te.Provider,{value:En},Oe.createElement(ye.Wd,Object.assign({},(0,Ot.Z)(we,["icon"]),{title:Ht,popupClassName:$e()(We,ke,`${We}-${At||bt}`)})))},me=ve(18785),Ce=ve(70425),Fe=ve(62892),Pe=ve(40875),Ie=function(we,Be){var ke={};for(var Se in we)Object.prototype.hasOwnProperty.call(we,Se)&&Be.indexOf(Se)<0&&(ke[Se]=we[Se]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Se=Object.getOwnPropertySymbols(we);st<Se.length;st++)Be.indexOf(Se[st])<0&&Object.prototype.propertyIsEnumerable.call(we,Se[st])&&(ke[Se[st]]=we[Se[st]]);return ke};function Ge(we){return(we||[]).map((Be,ke)=>{if(Be&&typeof Be=="object"){const Se=Be,{label:st,children:At,key:Ve,type:We}=Se,Ct=Ie(Se,["label","children","key","type"]),bt=Ve!=null?Ve:`tmp-${ke}`;return At||We==="group"?We==="group"?Oe.createElement(ye.BW,Object.assign({key:bt},Ct,{title:st}),Ge(At)):Oe.createElement(ge,Object.assign({key:bt},Ct,{title:st}),Ge(At)):We==="divider"?Oe.createElement(Et,Object.assign({key:bt},Ct)):Oe.createElement(ce,Object.assign({key:bt},Ct),st)}return null}).filter(Be=>Be)}function Ke(we){return Oe.useMemo(()=>we&&Ge(we),[we])}var Ye=ve(64993),pt=ve(17313),Je=ve(8378),kt=ve(13826),Xe=ve(29878),Wt=ve(83116),zt=ve(37613),Mt=we=>{const{componentCls:Be,motionDurationSlow:ke,horizontalLineHeight:Se,colorSplit:st,lineWidth:At,lineType:Ve,itemPaddingInline:We}=we;return{[`${Be}-horizontal`]:{lineHeight:Se,border:0,borderBottom:`${At}px ${Ve} ${st}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Be}-item, ${Be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:We},[`> ${Be}-item:hover,
> ${Be}-item-active,
> ${Be}-submenu ${Be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Be}-item, ${Be}-submenu-title`]:{transition:[`border-color ${ke}`,`background ${ke}`].join(",")},[`${Be}-submenu-arrow`]:{display:"none"}}}},ft=we=>{let{componentCls:Be,menuArrowOffset:ke}=we;return{[`${Be}-rtl`]:{direction:"rtl"},[`${Be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Be}-rtl${Be}-vertical,
${Be}-submenu-rtl ${Be}-vertical`]:{[`${Be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ke})`},"&::after":{transform:`rotate(45deg) translateY(${ke})`}}}}};const Re=we=>Object.assign({},(0,pt.oN)(we));var yn=(we,Be)=>{const{componentCls:ke,itemColor:Se,itemSelectedColor:st,groupTitleColor:At,itemBg:Ve,subMenuItemBg:We,itemSelectedBg:Ct,activeBarHeight:bt,activeBarWidth:dt,activeBarBorderWidth:Ht,motionDurationSlow:En,motionEaseInOut:An,motionEaseOut:qt,itemPaddingInline:cn,motionDurationMid:qn,itemHoverColor:wn,lineType:vi,colorSplit:ei,itemDisabledColor:Li,dangerItemColor:Vi,dangerItemHoverColor:zi,dangerItemSelectedColor:Bn,dangerItemActiveBg:rr,dangerItemSelectedBg:Yr,itemHoverBg:zr,itemActiveBg:Zr,menuSubMenuBg:Nr,horizontalItemSelectedColor:Co,horizontalItemSelectedBg:$r,horizontalItemBorderRadius:sr,horizontalItemHoverBg:Fo,popupBg:ti}=we;return{[`${ke}-${Be}, ${ke}-${Be} > ${ke}`]:{color:Se,background:Ve,[`&${ke}-root:focus-visible`]:Object.assign({},Re(we)),[`${ke}-item-group-title`]:{color:At},[`${ke}-submenu-selected`]:{[`> ${ke}-submenu-title`]:{color:st}},[`${ke}-item-disabled, ${ke}-submenu-disabled`]:{color:`${Li} !important`},[`${ke}-item:not(${ke}-item-selected):not(${ke}-submenu-selected)`]:{[`&:hover, > ${ke}-submenu-title:hover`]:{color:wn}},[`&:not(${ke}-horizontal)`]:{[`${ke}-item:not(${ke}-item-selected)`]:{"&:hover":{backgroundColor:zr},"&:active":{backgroundColor:Zr}},[`${ke}-submenu-title`]:{"&:hover":{backgroundColor:zr},"&:active":{backgroundColor:Zr}}},[`${ke}-item-danger`]:{color:Vi,[`&${ke}-item:hover`]:{[`&:not(${ke}-item-selected):not(${ke}-submenu-selected)`]:{color:zi}},[`&${ke}-item:active`]:{background:rr}},[`${ke}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ke}-item-selected`]:{color:st,[`&${ke}-item-danger`]:{color:Bn},"a, a:hover":{color:"inherit"}},[`& ${ke}-item-selected`]:{backgroundColor:Ct,[`&${ke}-item-danger`]:{backgroundColor:Yr}},[`${ke}-item, ${ke}-submenu-title`]:{[`&:not(${ke}-item-disabled):focus-visible`]:Object.assign({},Re(we))},[`&${ke}-submenu > ${ke}`]:{backgroundColor:Nr},[`&${ke}-popup > ${ke}`]:{backgroundColor:ti},[`&${ke}-horizontal`]:Object.assign(Object.assign({},Be==="dark"?{borderBottom:0}:{}),{[`> ${ke}-item, > ${ke}-submenu`]:{top:Ht,marginTop:-Ht,marginBottom:0,borderRadius:sr,"&::after":{position:"absolute",insetInline:cn,bottom:0,borderBottom:`${bt}px solid transparent`,transition:`border-color ${En} ${An}`,content:'""'},"&:hover, &-active, &-open":{background:Fo,"&::after":{borderBottomWidth:bt,borderBottomColor:Co}},"&-selected":{color:Co,backgroundColor:$r,"&:hover":{backgroundColor:$r},"&::after":{borderBottomWidth:bt,borderBottomColor:Co}}}}),[`&${ke}-root`]:{[`&${ke}-inline, &${ke}-vertical`]:{borderInlineEnd:`${Ht}px ${vi} ${ei}`}},[`&${ke}-inline`]:{[`${ke}-sub${ke}-inline`]:{background:We},[`${ke}-item, ${ke}-submenu-title`]:Ht&&dt?{width:`calc(100% + ${Ht}px)`}:{},[`${ke}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${dt}px solid ${st}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qn} ${qt}`,`opacity ${qn} ${qt}`].join(","),content:'""'},[`&${ke}-item-danger`]:{"&::after":{borderInlineEndColor:Bn}}},[`${ke}-selected, ${ke}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qn} ${An}`,`opacity ${qn} ${An}`].join(",")}}}}}};const mn=we=>{const{componentCls:Be,itemHeight:ke,itemMarginInline:Se,padding:st,menuArrowSize:At,marginXS:Ve,itemMarginBlock:We}=we,Ct=st+At+Ve;return{[`${Be}-item`]:{position:"relative",overflow:"hidden"},[`${Be}-item, ${Be}-submenu-title`]:{height:ke,lineHeight:`${ke}px`,paddingInline:st,overflow:"hidden",textOverflow:"ellipsis",marginInline:Se,marginBlock:We,width:`calc(100% - ${Se*2}px)`},[`> ${Be}-item,
> ${Be}-submenu > ${Be}-submenu-title`]:{height:ke,lineHeight:`${ke}px`},[`${Be}-item-group-list ${Be}-submenu-title,
${Be}-submenu-title`]:{paddingInlineEnd:Ct}}};var en=we=>{const{componentCls:Be,iconCls:ke,itemHeight:Se,colorTextLightSolid:st,dropdownWidth:At,controlHeightLG:Ve,motionDurationMid:We,motionEaseOut:Ct,paddingXL:bt,itemMarginInline:dt,fontSizeLG:Ht,motionDurationSlow:En,paddingXS:An,boxShadowSecondary:qt,collapsedWidth:cn,collapsedIconSize:qn}=we,wn={height:Se,lineHeight:`${Se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Be]:{"&-inline, &-vertical":Object.assign({[`&${Be}-root`]:{boxShadow:"none"}},mn(we))},[`${Be}-submenu-popup`]:{[`${Be}-vertical`]:Object.assign(Object.assign({},mn(we)),{boxShadow:qt})}},{[`${Be}-submenu-popup ${Be}-vertical${Be}-sub`]:{minWidth:At,maxHeight:`calc(100vh - ${Ve*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Be}-inline`]:{width:"100%",[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${En}`,`background ${En}`,`padding ${We} ${Ct}`].join(","),[`> ${Be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Be}-sub${Be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Be}-submenu > ${Be}-submenu-title`]:wn,[`& ${Be}-item-group-title`]:{paddingInlineStart:bt}},[`${Be}-item`]:wn}},{[`${Be}-inline-collapsed`]:{width:cn,[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu ${Be}-submenu-title`]:{[`> ${Be}-inline-collapsed-noicon`]:{fontSize:Ht,textAlign:"center"}}},[`> ${Be}-item,
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-item,
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-submenu > ${Be}-submenu-title,
> ${Be}-submenu > ${Be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ht/2}px - ${dt}px)`,textOverflow:"clip",[`
${Be}-submenu-arrow,
${Be}-submenu-expand-icon
`]:{opacity:0},[`${Be}-item-icon, ${ke}`]:{margin:0,fontSize:qn,lineHeight:`${Se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Be}-item-icon, ${ke}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Be}-item-icon, ${ke}`]:{display:"none"},"a, a:hover":{color:st}},[`${Be}-item-group-title`]:Object.assign(Object.assign({},pt.vS),{paddingInline:An})}}]};const nn=we=>{const{componentCls:Be,motionDurationSlow:ke,motionDurationMid:Se,motionEaseInOut:st,motionEaseOut:At,iconCls:Ve,iconSize:We,iconMarginInlineEnd:Ct}=we;return{[`${Be}-item, ${Be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ke}`,`background ${ke}`,`padding ${ke} ${st}`].join(","),[`${Be}-item-icon, ${Ve}`]:{minWidth:We,fontSize:We,transition:[`font-size ${Se} ${At}`,`margin ${ke} ${st}`,`color ${ke}`].join(","),"+ span":{marginInlineStart:Ct,opacity:1,transition:[`opacity ${ke} ${st}`,`margin ${ke}`,`color ${ke}`].join(",")}},[`${Be}-item-icon`]:Object.assign({},(0,pt.Ro)()),[`&${Be}-item-only-child`]:{[`> ${Ve}, > ${Be}-item-icon`]:{marginInlineEnd:0}}},[`${Be}-item-disabled, ${Be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},On=we=>{const{componentCls:Be,motionDurationSlow:ke,motionEaseInOut:Se,borderRadius:st,menuArrowSize:At,menuArrowOffset:Ve}=we;return{[`${Be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:we.margin,width:At,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ke} ${Se}, opacity ${ke}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:At*.6,height:At*.15,backgroundColor:"currentcolor",borderRadius:st,transition:[`background ${ke} ${Se}`,`transform ${ke} ${Se}`,`top ${ke} ${Se}`,`color ${ke} ${Se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ve})`},"&::after":{transform:`rotate(-45deg) translateY(${Ve})`}}}}},dn=we=>{const{antCls:Be,componentCls:ke,fontSize:Se,motionDurationSlow:st,motionDurationMid:At,motionEaseInOut:Ve,paddingXS:We,padding:Ct,colorSplit:bt,lineWidth:dt,zIndexPopup:Ht,borderRadiusLG:En,subMenuItemBorderRadius:An,menuArrowSize:qt,menuArrowOffset:cn,lineType:qn,menuPanelMaskInset:wn,groupTitleLineHeight:vi,groupTitleFontSize:ei}=we;return[{"":{[`${ke}`]:Object.assign(Object.assign({},(0,pt.dF)()),{"&-hidden":{display:"none"}})},[`${ke}-submenu-hidden`]:{display:"none"}},{[ke]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(we)),(0,pt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${st} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ke}-item`]:{flex:"none"}},[`${ke}-item, ${ke}-submenu, ${ke}-submenu-title`]:{borderRadius:we.itemBorderRadius},[`${ke}-item-group-title`]:{padding:`${We}px ${Ct}px`,fontSize:ei,lineHeight:vi,transition:`all ${st}`},[`&-horizontal ${ke}-submenu`]:{transition:[`border-color ${st} ${Ve}`,`background ${st} ${Ve}`].join(",")},[`${ke}-submenu, ${ke}-submenu-inline`]:{transition:[`border-color ${st} ${Ve}`,`background ${st} ${Ve}`,`padding ${At} ${Ve}`].join(",")},[`${ke}-submenu ${ke}-sub`]:{cursor:"initial",transition:[`background ${st} ${Ve}`,`padding ${st} ${Ve}`].join(",")},[`${ke}-title-content`]:{transition:`color ${st}`},[`${ke}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ke}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:bt,borderStyle:qn,borderWidth:0,borderTopWidth:dt,marginBlock:dt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),nn(we)),{[`${ke}-item-group`]:{[`${ke}-item-group-list`]:{margin:0,padding:0,[`${ke}-item, ${ke}-submenu-title`]:{paddingInline:`${Se*2}px ${Ct}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:En,boxShadow:"none",transformOrigin:"0 0",[`&${ke}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${wn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:wn},"\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:we.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:we.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:we.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:we.paddingXS},[`> ${ke}`]:Object.assign(Object.assign(Object.assign({borderRadius:En},nn(we)),On(we)),{[`${ke}-item, ${ke}-submenu > ${ke}-submenu-title`]:{borderRadius:An},[`${ke}-submenu-title::after`]:{transition:`transform ${st} ${Ve}`}})}}),On(we)),{[`&-inline-collapsed ${ke}-submenu-arrow,
&-inline ${ke}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${cn})`},"&::after":{transform:`rotate(45deg) translateX(-${cn})`}},[`${ke}-submenu-open${ke}-submenu-inline > ${ke}-submenu-title > ${ke}-submenu-arrow`]:{transform:`translateY(-${qt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${cn})`},"&::before":{transform:`rotate(45deg) translateX(${cn})`}}})},{[`${Be}-layout-header`]:{[ke]:{lineHeight:"inherit"}}}]};var Tn=(we,Be)=>(0,Wt.Z)("Menu",Se=>{if(Be===!1)return[];const{colorBgElevated:st,colorPrimary:At,colorTextLightSolid:Ve,controlHeightLG:We,fontSize:Ct,darkItemColor:bt,darkDangerItemColor:dt,darkItemBg:Ht,darkSubMenuItemBg:En,darkItemSelectedColor:An,darkItemSelectedBg:qt,darkDangerItemSelectedBg:cn,darkItemHoverBg:qn,darkGroupTitleColor:wn,darkItemHoverColor:vi,darkItemDisabledColor:ei,darkDangerItemHoverColor:Li,darkDangerItemSelectedColor:Vi,darkDangerItemActiveBg:zi}=Se,Bn=Ct/7*5,rr=(0,zt.TS)(Se,{menuArrowSize:Bn,menuHorizontalHeight:We*1.15,menuArrowOffset:`${Bn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:st}),Yr=(0,zt.TS)(rr,{itemColor:bt,itemHoverColor:vi,groupTitleColor:wn,itemSelectedColor:An,itemBg:Ht,popupBg:Ht,subMenuItemBg:En,itemActiveBg:"transparent",itemSelectedBg:qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:qn,itemDisabledColor:ei,dangerItemColor:dt,dangerItemHoverColor:Li,dangerItemSelectedColor:Vi,dangerItemActiveBg:zi,dangerItemSelectedBg:cn,menuSubMenuBg:En,horizontalItemSelectedColor:Ve,horizontalItemSelectedBg:At});return[dn(rr),Mt(rr),en(rr),yn(rr,"light"),yn(Yr,"dark"),ft(rr),(0,Je.Z)(rr),(0,kt.oN)(rr,"slide-up"),(0,kt.oN)(rr,"slide-down"),(0,Xe._y)(rr,"zoom-big")]},Se=>{const{colorPrimary:st,colorError:At,colorTextDisabled:Ve,colorErrorBg:We,colorText:Ct,colorTextDescription:bt,colorBgContainer:dt,colorFillAlter:Ht,colorFillContent:En,lineWidth:An,lineWidthBold:qt,controlItemBgActive:cn,colorBgTextHover:qn,controlHeightLG:wn,lineHeight:vi,colorBgElevated:ei,marginXXS:Li,padding:Vi,fontSize:zi,controlHeightSM:Bn,fontSizeLG:rr,colorTextLightSolid:Yr,colorErrorHover:zr}=Se,Zr=new Ye.C(Yr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Se.zIndexPopupBase+50,radiusItem:Se.borderRadiusLG,itemBorderRadius:Se.borderRadiusLG,radiusSubMenuItem:Se.borderRadiusSM,subMenuItemBorderRadius:Se.borderRadiusSM,colorItemText:Ct,itemColor:Ct,colorItemTextHover:Ct,itemHoverColor:Ct,colorItemTextHoverHorizontal:st,horizontalItemHoverColor:st,colorGroupTitle:bt,groupTitleColor:bt,colorItemTextSelected:st,itemSelectedColor:st,colorItemTextSelectedHorizontal:st,horizontalItemSelectedColor:st,colorItemBg:dt,itemBg:dt,colorItemBgHover:qn,itemHoverBg:qn,colorItemBgActive:En,itemActiveBg:cn,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:cn,itemSelectedBg:cn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:qt,activeBarHeight:qt,colorActiveBarBorderSize:An,activeBarBorderWidth:An,colorItemTextDisabled:Ve,itemDisabledColor:Ve,colorDangerItemText:At,dangerItemColor:At,colorDangerItemTextHover:At,dangerItemHoverColor:At,colorDangerItemTextSelected:At,dangerItemSelectedColor:At,colorDangerItemBgActive:We,dangerItemActiveBg:We,colorDangerItemBgSelected:We,dangerItemSelectedBg:We,itemMarginInline:Se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:wn,groupTitleLineHeight:vi,collapsedWidth:wn*2,popupBg:ei,itemMarginBlock:Li,itemPaddingInline:Vi,horizontalLineHeight:`${wn*1.15}px`,iconSize:zi,iconMarginInlineEnd:Bn-zi,collapsedIconSize:rr,groupTitleFontSize:zi,darkItemDisabledColor:new Ye.C(Yr).setAlpha(.25).toRgbString(),darkItemColor:Zr,darkDangerItemColor:At,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Yr,darkItemSelectedBg:st,darkDangerItemSelectedBg:At,darkItemHoverBg:"transparent",darkGroupTitleColor:Zr,darkItemHoverColor:Yr,darkDangerItemHoverColor:zr,darkDangerItemSelectedColor:Yr,darkDangerItemActiveBg:At}},{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"]]})(we),mt=function(we,Be){var ke={};for(var Se in we)Object.prototype.hasOwnProperty.call(we,Se)&&Be.indexOf(Se)<0&&(ke[Se]=we[Se]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Se=Object.getOwnPropertySymbols(we);st<Se.length;st++)Be.indexOf(Se[st])<0&&Object.prototype.propertyIsEnumerable.call(we,Se[st])&&(ke[Se[st]]=we[Se[st]]);return ke},xn=(0,Oe.forwardRef)((we,Be)=>{var ke,Se;const st=Oe.useContext(Pe.Z),At=st||{},{getPrefixCls:Ve,getPopupContainer:We,direction:Ct,menu:bt}=Oe.useContext(qe.E_),dt=Ve(),{prefixCls:Ht,className:En,style:An,theme:qt="light",expandIcon:cn,_internalDisableMenuItemTitleTooltip:qn,inlineCollapsed:wn,siderCollapsed:vi,items:ei,children:Li,rootClassName:Vi,mode:zi,selectable:Bn,onClick:rr,overflowedIndicatorPopupClassName:Yr}=we,zr=mt(we,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zr=(0,Ot.Z)(zr,["collapsedWidth"]),Nr=Ke(ei)||Li;(ke=At.validator)===null||ke===void 0||ke.call(At,{mode:zi});const Co=(0,Ce.useEvent)(function(){var an;rr==null||rr.apply(void 0,arguments),(an=At.onClick)===null||an===void 0||an.call(At)}),$r=At.mode||zi,sr=Bn!=null?Bn:At.selectable,Fo=Oe.useMemo(()=>vi!==void 0?vi:wn,[wn,vi]),ti={horizontal:{motionName:`${dt}-slide-up`},inline:(0,Fe.Z)(dt),other:{motionName:`${dt}-zoom-big`}},Ae=Ve("menu",Ht||At.prefixCls),[$n,oi]=Tn(Ae,!st),fn=$e()(`${Ae}-${qt}`,bt==null?void 0:bt.className,En);let Qn;if(typeof cn=="function")Qn=cn;else if(cn===null||cn===!1)Qn=null;else if(At.expandIcon===null||At.expandIcon===!1)Qn=null;else{const an=cn!=null?cn:At.expandIcon;Qn=(0,Pt.Tm)(an,{className:$e()(`${Ae}-submenu-expand-icon`,(0,Pt.l$)(an)?(Se=an.props)===null||Se===void 0?void 0:Se.className:"")})}const Zn=Oe.useMemo(()=>({prefixCls:Ae,inlineCollapsed:Fo||!1,direction:Ct,firstLevel:!0,theme:qt,mode:$r,disableMenuItemTitleTooltip:qn}),[Ae,Fo,Ct,qn,qt]);return $n(Oe.createElement(Pe.Z.Provider,{value:null},Oe.createElement(te.Provider,{value:Zn},Oe.createElement(ye.ZP,Object.assign({getPopupContainer:We,overflowedIndicator:Oe.createElement(me.Z,null),overflowedIndicatorPopupClassName:$e()(Ae,`${Ae}-${qt}`,Yr),mode:$r,selectable:sr,onClick:Co},Zr,{inlineCollapsed:Fo,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),An),className:fn,prefixCls:Ae,direction:Ct,defaultMotions:ti,expandIcon:Qn,ref:Be,rootClassName:$e()(Vi,oi)}),Nr))))});const tt=(0,Oe.forwardRef)((we,Be)=>{const ke=(0,Oe.useRef)(null),Se=Oe.useContext(He.D);return(0,Oe.useImperativeHandle)(Be,()=>({menu:ke.current,focus:st=>{var At;(At=ke.current)===null||At===void 0||At.focus(st)}})),Oe.createElement(xn,Object.assign({ref:ke},we,Se))});tt.Item=ce,tt.SubMenu=ge,tt.Divider=Et,tt.ItemGroup=ye.BW;var Ee=tt},58421:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return At}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Rt=He,$e=ve(7657),qe=function(We,Ct){return Oe.createElement($e.Z,(0,ye.Z)({},We,{ref:Ct,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De,Et=ve(49198),et=ve(33853),Ot=ve(38819),it=ve(92310),Pt=ve.n(it),Me=ve(400),te=ve(33708),ne=ve(6909),ce=ve(4771),se=ve(9427),ge=ve(25440),me=ve(26112),Ce={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Fe=Ce,Pe=ve(91735),Ie=function(Ve){(0,se.Z)(Ct,Ve);var We=(0,ge.Z)(Ct);function Ct(){var bt;(0,ne.Z)(this,Ct);for(var dt=arguments.length,Ht=new Array(dt),En=0;En<dt;En++)Ht[En]=arguments[En];return bt=We.call.apply(We,[this].concat(Ht)),bt.state={goInputText:""},bt.getValidValue=function(){var An=bt.state.goInputText;return!An||Number.isNaN(An)?void 0:Number(An)},bt.buildOptionText=function(An){return"".concat(An," ").concat(bt.props.locale.items_per_page)},bt.changeSize=function(An){bt.props.changeSize(Number(An))},bt.handleChange=function(An){bt.setState({goInputText:An.target.value})},bt.handleBlur=function(An){var qt=bt.props,cn=qt.goButton,qn=qt.quickGo,wn=qt.rootPrefixCls,vi=bt.state.goInputText;cn||vi===""||(bt.setState({goInputText:""}),!(An.relatedTarget&&(An.relatedTarget.className.indexOf("".concat(wn,"-item-link"))>=0||An.relatedTarget.className.indexOf("".concat(wn,"-item"))>=0))&&qn(bt.getValidValue()))},bt.go=function(An){var qt=bt.state.goInputText;qt!==""&&(An.keyCode===Fe.ENTER||An.type==="click")&&(bt.setState({goInputText:""}),bt.props.quickGo(bt.getValidValue()))},bt}return(0,ce.Z)(Ct,[{key:"getPageSizeOptions",value:function(){var dt=this.props,Ht=dt.pageSize,En=dt.pageSizeOptions;return En.some(function(An){return An.toString()===Ht.toString()})?En:En.concat([Ht.toString()]).sort(function(An,qt){var cn=Number.isNaN(Number(An))?0:Number(An),qn=Number.isNaN(Number(qt))?0:Number(qt);return cn-qn})}},{key:"render",value:function(){var dt=this,Ht=this.props,En=Ht.pageSize,An=Ht.locale,qt=Ht.rootPrefixCls,cn=Ht.changeSize,qn=Ht.quickGo,wn=Ht.goButton,vi=Ht.selectComponentClass,ei=Ht.buildOptionText,Li=Ht.selectPrefixCls,Vi=Ht.disabled,zi=this.state.goInputText,Bn="".concat(qt,"-options"),rr=vi,Yr=null,zr=null,Zr=null;if(!cn&&!qn)return null;var Nr=this.getPageSizeOptions();if(cn&&rr){var Co=Nr.map(function($r,sr){return Oe.createElement(rr.Option,{key:sr,value:$r.toString()},(ei||dt.buildOptionText)($r))});Yr=Oe.createElement(rr,{disabled:Vi,prefixCls:Li,showSearch:!1,className:"".concat(Bn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(En||Nr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(sr){return sr.parentNode},"aria-label":An.page_size,defaultOpen:!1},Co)}return qn&&(wn&&(Zr=typeof wn=="boolean"?Oe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Vi,className:"".concat(Bn,"-quick-jumper-button")},An.jump_to_confirm):Oe.createElement("span",{onClick:this.go,onKeyUp:this.go},wn)),zr=Oe.createElement("div",{className:"".concat(Bn,"-quick-jumper")},An.jump_to,Oe.createElement("input",{disabled:Vi,type:"text",value:zi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":An.page}),An.page,Zr)),Oe.createElement("li",{className:"".concat(Bn)},Yr,zr)}}]),Ct}(Oe.Component);Ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ge=Ie,Ke=function(We){var Ct,bt=We.rootPrefixCls,dt=We.page,Ht=We.active,En=We.className,An=We.showTitle,qt=We.onClick,cn=We.onKeyPress,qn=We.itemRender,wn="".concat(bt,"-item"),vi=Pt()(wn,"".concat(wn,"-").concat(dt),(Ct={},(0,Me.Z)(Ct,"".concat(wn,"-active"),Ht),(0,Me.Z)(Ct,"".concat(wn,"-disabled"),!dt),(0,Me.Z)(Ct,We.className,En),Ct)),ei=function(){qt(dt)},Li=function(Bn){cn(Bn,qt,dt)},Vi=qn(dt,"page",Oe.createElement("a",{rel:"nofollow"},dt));return Vi?Oe.createElement("li",{title:An?dt.toString():null,className:vi,onClick:ei,onKeyPress:Li,tabIndex:0},Vi):null},Ye=Ke;function pt(){}function Je(Ve){var We=Number(Ve);return typeof We=="number"&&!Number.isNaN(We)&&isFinite(We)&&Math.floor(We)===We}var kt=function(We,Ct,bt){return bt};function Xe(Ve,We,Ct){var bt=typeof Ve=="undefined"?We.pageSize:Ve;return Math.floor((Ct.total-1)/bt)+1}var Wt=function(Ve){(0,se.Z)(Ct,Ve);var We=(0,ge.Z)(Ct);function Ct(bt){var dt;(0,ne.Z)(this,Ct),dt=We.call(this,bt),dt.paginationNode=Oe.createRef(),dt.getJumpPrevPage=function(){return Math.max(1,dt.state.current-(dt.props.showLessItems?3:5))},dt.getJumpNextPage=function(){return Math.min(Xe(void 0,dt.state,dt.props),dt.state.current+(dt.props.showLessItems?3:5))},dt.getItemIcon=function(cn,qn){var wn=dt.props.prefixCls,vi=cn||Oe.createElement("button",{type:"button","aria-label":qn,className:"".concat(wn,"-item-link")});return typeof cn=="function"&&(vi=Oe.createElement(cn,(0,te.Z)({},dt.props))),vi},dt.isValid=function(cn){var qn=dt.props.total;return Je(cn)&&cn!==dt.state.current&&Je(qn)&&qn>0},dt.shouldDisplayQuickJumper=function(){var cn=dt.props,qn=cn.showQuickJumper,wn=cn.total,vi=dt.state.pageSize;return wn<=vi?!1:qn},dt.handleKeyDown=function(cn){(cn.keyCode===Fe.ARROW_UP||cn.keyCode===Fe.ARROW_DOWN)&&cn.preventDefault()},dt.handleKeyUp=function(cn){var qn=dt.getValidValue(cn),wn=dt.state.currentInputValue;qn!==wn&&dt.setState({currentInputValue:qn}),cn.keyCode===Fe.ENTER?dt.handleChange(qn):cn.keyCode===Fe.ARROW_UP?dt.handleChange(qn-1):cn.keyCode===Fe.ARROW_DOWN&&dt.handleChange(qn+1)},dt.handleBlur=function(cn){var qn=dt.getValidValue(cn);dt.handleChange(qn)},dt.changePageSize=function(cn){var qn=dt.state.current,wn=Xe(cn,dt.state,dt.props);qn=qn>wn?wn:qn,wn===0&&(qn=dt.state.current),typeof cn=="number"&&("pageSize"in dt.props||dt.setState({pageSize:cn}),"current"in dt.props||dt.setState({current:qn,currentInputValue:qn})),dt.props.onShowSizeChange(qn,cn),"onChange"in dt.props&&dt.props.onChange&&dt.props.onChange(qn,cn)},dt.handleChange=function(cn){var qn=dt.props,wn=qn.disabled,vi=qn.onChange,ei=dt.state,Li=ei.pageSize,Vi=ei.current,zi=ei.currentInputValue;if(dt.isValid(cn)&&!wn){var Bn=Xe(void 0,dt.state,dt.props),rr=cn;return cn>Bn?rr=Bn:cn<1&&(rr=1),"current"in dt.props||dt.setState({current:rr}),rr!==zi&&dt.setState({currentInputValue:rr}),vi(rr,Li),rr}return Vi},dt.prev=function(){dt.hasPrev()&&dt.handleChange(dt.state.current-1)},dt.next=function(){dt.hasNext()&&dt.handleChange(dt.state.current+1)},dt.jumpPrev=function(){dt.handleChange(dt.getJumpPrevPage())},dt.jumpNext=function(){dt.handleChange(dt.getJumpNextPage())},dt.hasPrev=function(){return dt.state.current>1},dt.hasNext=function(){return dt.state.current<Xe(void 0,dt.state,dt.props)},dt.runIfEnter=function(cn,qn){if(cn.key==="Enter"||cn.charCode===13){for(var wn=arguments.length,vi=new Array(wn>2?wn-2:0),ei=2;ei<wn;ei++)vi[ei-2]=arguments[ei];qn.apply(void 0,vi)}},dt.runIfEnterPrev=function(cn){dt.runIfEnter(cn,dt.prev)},dt.runIfEnterNext=function(cn){dt.runIfEnter(cn,dt.next)},dt.runIfEnterJumpPrev=function(cn){dt.runIfEnter(cn,dt.jumpPrev)},dt.runIfEnterJumpNext=function(cn){dt.runIfEnter(cn,dt.jumpNext)},dt.handleGoTO=function(cn){(cn.keyCode===Fe.ENTER||cn.type==="click")&&dt.handleChange(dt.state.currentInputValue)},dt.renderPrev=function(cn){var qn=dt.props,wn=qn.prevIcon,vi=qn.itemRender,ei=vi(cn,"prev",dt.getItemIcon(wn,"prev page")),Li=!dt.hasPrev();return(0,Oe.isValidElement)(ei)?(0,Oe.cloneElement)(ei,{disabled:Li}):ei},dt.renderNext=function(cn){var qn=dt.props,wn=qn.nextIcon,vi=qn.itemRender,ei=vi(cn,"next",dt.getItemIcon(wn,"next page")),Li=!dt.hasNext();return(0,Oe.isValidElement)(ei)?(0,Oe.cloneElement)(ei,{disabled:Li}):ei};var Ht=bt.onChange!==pt,En="current"in bt;En&&!Ht&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var An=bt.defaultCurrent;"current"in bt&&(An=bt.current);var qt=bt.defaultPageSize;return"pageSize"in bt&&(qt=bt.pageSize),An=Math.min(An,Xe(qt,void 0,bt)),dt.state={current:An,currentInputValue:An,pageSize:qt},dt}return(0,ce.Z)(Ct,[{key:"componentDidUpdate",value:function(dt,Ht){var En=this.props.prefixCls;if(Ht.current!==this.state.current&&this.paginationNode.current){var An=this.paginationNode.current.querySelector(".".concat(En,"-item-").concat(Ht.current));if(An&&document.activeElement===An){var qt;An==null||(qt=An.blur)===null||qt===void 0||qt.call(An)}}}},{key:"getValidValue",value:function(dt){var Ht=dt.target.value,En=Xe(void 0,this.state,this.props),An=this.state.currentInputValue,qt;return Ht===""?qt=Ht:Number.isNaN(Number(Ht))?qt=An:Ht>=En?qt=En:qt=Number(Ht),qt}},{key:"getShowSizeChanger",value:function(){var dt=this.props,Ht=dt.showSizeChanger,En=dt.total,An=dt.totalBoundaryShowSizeChanger;return typeof Ht!="undefined"?Ht:En>An}},{key:"render",value:function(){var dt=this.props,Ht=dt.prefixCls,En=dt.className,An=dt.style,qt=dt.disabled,cn=dt.hideOnSinglePage,qn=dt.total,wn=dt.locale,vi=dt.showQuickJumper,ei=dt.showLessItems,Li=dt.showTitle,Vi=dt.showTotal,zi=dt.simple,Bn=dt.itemRender,rr=dt.showPrevNextJumpers,Yr=dt.jumpPrevIcon,zr=dt.jumpNextIcon,Zr=dt.selectComponentClass,Nr=dt.selectPrefixCls,Co=dt.pageSizeOptions,$r=this.state,sr=$r.current,Fo=$r.pageSize,ti=$r.currentInputValue;if(cn===!0&&qn<=Fo)return null;var Ae=Xe(void 0,this.state,this.props),$n=[],oi=null,fn=null,Qn=null,Zn=null,an=null,Jt=vi&&vi.goButton,vn=ei?1:2,xt=sr-1>0?sr-1:0,wt=sr+1<Ae?sr+1:Ae,ze=(0,me.Z)(this.props,{aria:!0,data:!0}),Yt=Vi&&Oe.createElement("li",{className:"".concat(Ht,"-total-text")},Vi(qn,[qn===0?0:(sr-1)*Fo+1,sr*Fo>qn?qn:sr*Fo]));if(zi){Jt&&(typeof Jt=="boolean"?an=Oe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},wn.jump_to_confirm):an=Oe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Jt),an=Oe.createElement("li",{title:Li?"".concat(wn.jump_to).concat(sr,"/").concat(Ae):null,className:"".concat(Ht,"-simple-pager")},an));var on=this.renderPrev(xt);return Oe.createElement("ul",(0,ye.Z)({className:Pt()(Ht,"".concat(Ht,"-simple"),(0,Me.Z)({},"".concat(Ht,"-disabled"),qt),En),style:An,ref:this.paginationNode},ze),Yt,on?Oe.createElement("li",{title:Li?wn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Pt()("".concat(Ht,"-prev"),(0,Me.Z)({},"".concat(Ht,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},on):null,Oe.createElement("li",{title:Li?"".concat(sr,"/").concat(Ae):null,className:"".concat(Ht,"-simple-pager")},Oe.createElement("input",{type:"text",value:ti,disabled:qt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Oe.createElement("span",{className:"".concat(Ht,"-slash")},"/"),Ae),Oe.createElement("li",{title:Li?wn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Pt()("".concat(Ht,"-next"),(0,Me.Z)({},"".concat(Ht,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(wt)),an)}if(Ae<=3+vn*2){var ht={locale:wn,rootPrefixCls:Ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Li,itemRender:Bn};Ae||$n.push(Oe.createElement(Ye,(0,ye.Z)({},ht,{key:"noPager",page:1,className:"".concat(Ht,"-item-disabled")})));for(var Qe=1;Qe<=Ae;Qe+=1){var _t=sr===Qe;$n.push(Oe.createElement(Ye,(0,ye.Z)({},ht,{key:Qe,page:Qe,active:_t})))}}else{var It=ei?wn.prev_3:wn.prev_5,Fn=ei?wn.next_3:wn.next_5,Hn=Bn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Yr,"prev page")),ct=Bn(this.getJumpNextPage(),"jump-next",this.getItemIcon(zr,"next page"));rr&&(oi=Hn?Oe.createElement("li",{title:Li?It:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Pt()("".concat(Ht,"-jump-prev"),(0,Me.Z)({},"".concat(Ht,"-jump-prev-custom-icon"),!!Yr))},Hn):null,fn=ct?Oe.createElement("li",{title:Li?Fn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Pt()("".concat(Ht,"-jump-next"),(0,Me.Z)({},"".concat(Ht,"-jump-next-custom-icon"),!!zr))},ct):null),Zn=Oe.createElement(Ye,{locale:wn,last:!0,rootPrefixCls:Ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ae,page:Ae,active:!1,showTitle:Li,itemRender:Bn}),Qn=Oe.createElement(Ye,{locale:wn,rootPrefixCls:Ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Li,itemRender:Bn});var sn=Math.max(1,sr-vn),Un=Math.min(sr+vn,Ae);sr-1<=vn&&(Un=1+vn*2),Ae-sr<=vn&&(sn=Ae-vn*2);for(var _n=sn;_n<=Un;_n+=1){var Zt=sr===_n;$n.push(Oe.createElement(Ye,{locale:wn,rootPrefixCls:Ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_n,page:_n,active:Zt,showTitle:Li,itemRender:Bn}))}sr-1>=vn*2&&sr!==3&&($n[0]=(0,Oe.cloneElement)($n[0],{className:"".concat(Ht,"-item-after-jump-prev")}),$n.unshift(oi)),Ae-sr>=vn*2&&sr!==Ae-2&&($n[$n.length-1]=(0,Oe.cloneElement)($n[$n.length-1],{className:"".concat(Ht,"-item-before-jump-next")}),$n.push(fn)),sn!==1&&$n.unshift(Qn),Un!==Ae&&$n.push(Zn)}var rn=!this.hasPrev()||!Ae,wi=!this.hasNext()||!Ae,Ci=this.renderPrev(xt),yi=this.renderNext(wt);return Oe.createElement("ul",(0,ye.Z)({className:Pt()(Ht,En,(0,Me.Z)({},"".concat(Ht,"-disabled"),qt)),style:An,ref:this.paginationNode},ze),Yt,Ci?Oe.createElement("li",{title:Li?wn.prev_page:null,onClick:this.prev,tabIndex:rn?null:0,onKeyPress:this.runIfEnterPrev,className:Pt()("".concat(Ht,"-prev"),(0,Me.Z)({},"".concat(Ht,"-disabled"),rn)),"aria-disabled":rn},Ci):null,$n,yi?Oe.createElement("li",{title:Li?wn.next_page:null,onClick:this.next,tabIndex:wi?null:0,onKeyPress:this.runIfEnterNext,className:Pt()("".concat(Ht,"-next"),(0,Me.Z)({},"".concat(Ht,"-disabled"),wi)),"aria-disabled":wi},yi):null,Oe.createElement(Ge,{disabled:qt,locale:wn,rootPrefixCls:Ht,selectComponentClass:Zr,selectPrefixCls:Nr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:sr,pageSize:Fo,pageSizeOptions:Co,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Jt}))}}],[{key:"getDerivedStateFromProps",value:function(dt,Ht){var En={};if("current"in dt&&(En.current=dt.current,dt.current!==Ht.current&&(En.currentInputValue=En.current)),"pageSize"in dt&&dt.pageSize!==Ht.pageSize){var An=Ht.current,qt=Xe(dt.pageSize,Ht,dt);An=An>qt?qt:An,"current"in dt||(En.current=An,En.currentInputValue=An),En.pageSize=dt.pageSize}return En}}]),Ct}(Oe.Component);Wt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:pt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:pt,locale:Pe.Z,style:{},itemRender:kt,totalBoundaryShowSizeChanger:50};var zt=Wt,jt=ve(22075),Mt=ve(36355),Ut=ve(19716),ft=ve(8628),Re=ve(9763),Lt=ve(57809);const yn=Ve=>Oe.createElement(Lt.default,Object.assign({},Ve,{showSearch:!0,size:"small"})),mn=Ve=>Oe.createElement(Lt.default,Object.assign({},Ve,{showSearch:!0,size:"middle"}));yn.Option=Lt.default.Option,mn.Option=Lt.default.Option;var Nt=ve(9937),en=ve(17313),nn=ve(83116),On=ve(37613);const dn=Ve=>{const{componentCls:We}=Ve;return{[`${We}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${We}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${We}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed"}}},[`&${We}-disabled`]:{cursor:"not-allowed",[`${We}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ve.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ve.colorBorder,backgroundColor:Ve.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ve.itemActiveBgDisabled},a:{color:Ve.itemActiveColorDisabled}}},[`${We}-item-link`]:{color:Ve.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${We}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${We}-simple-pager`]:{color:Ve.colorTextDisabled},[`${We}-jump-prev, ${We}-jump-next`]:{[`${We}-item-link-icon`]:{opacity:0},[`${We}-item-ellipsis`]:{opacity:1}}},[`&${We}-simple`]:{[`${We}-prev, ${We}-next`]:{[`&${We}-disabled ${We}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Tn=Ve=>{const{componentCls:We}=Ve;return{[`&${We}-mini ${We}-total-text, &${We}-mini ${We}-simple-pager`]:{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`},[`&${We}-mini ${We}-item`]:{minWidth:Ve.itemSizeSM,height:Ve.itemSizeSM,margin:0,lineHeight:`${Ve.itemSizeSM-2}px`},[`&${We}-mini:not(${We}-disabled) ${We}-item:not(${We}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ve.colorBgTextHover},"&:active":{backgroundColor:Ve.colorBgTextActive}},[`&${We}-mini ${We}-prev, &${We}-mini ${We}-next`]:{minWidth:Ve.itemSizeSM,height:Ve.itemSizeSM,margin:0,lineHeight:`${Ve.itemSizeSM}px`},[`&${We}-mini:not(${We}-disabled)`]:{[`${We}-prev, ${We}-next`]:{[`&:hover ${We}-item-link`]:{backgroundColor:Ve.colorBgTextHover},[`&:active ${We}-item-link`]:{backgroundColor:Ve.colorBgTextActive},[`&${We}-disabled:hover ${We}-item-link`]:{backgroundColor:"transparent"}}},[`
&${We}-mini ${We}-prev ${We}-item-link,
&${We}-mini ${We}-next ${We}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`}},[`&${We}-mini ${We}-jump-prev, &${We}-mini ${We}-jump-next`]:{height:Ve.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ve.itemSizeSM}px`},[`&${We}-mini ${We}-options`]:{marginInlineStart:Ve.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ve.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Nt.x0)(Ve)),{width:Ve.paginationMiniQuickJumperInputWidth,height:Ve.controlHeightSM})}}}},mt=Ve=>{const{componentCls:We}=Ve;return{[`
&${We}-simple ${We}-prev,
&${We}-simple ${We}-next
`]:{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`,verticalAlign:"top",[`${We}-item-link`]:{height:Ve.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ve.colorBgTextHover},"&:active":{backgroundColor:Ve.colorBgTextActive},"&::after":{height:Ve.itemSizeSM,lineHeight:`${Ve.itemSizeSM}px`}}},[`&${We}-simple ${We}-simple-pager`]:{display:"inline-block",height:Ve.itemSizeSM,marginInlineEnd:Ve.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ve.marginXS,padding:`0 ${Ve.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ve.itemInputBg,border:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`,borderRadius:Ve.borderRadius,outline:"none",transition:`border-color ${Ve.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ve.colorPrimary},"&:focus":{borderColor:Ve.colorPrimaryHover,boxShadow:`${Ve.inputOutlineOffset}px 0 ${Ve.controlOutlineWidth}px ${Ve.controlOutline}`},"&[disabled]":{color:Ve.colorTextDisabled,backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,cursor:"not-allowed"}}}}},Gn=Ve=>{const{componentCls:We}=Ve;return{[`${We}-jump-prev, ${We}-jump-next`]:{outline:0,[`${We}-item-container`]:{position:"relative",[`${We}-item-link-icon`]:{color:Ve.colorPrimary,fontSize:Ve.fontSizeSM,opacity:0,transition:`all ${Ve.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${We}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ve.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ve.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ve.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ve.motionDurationMid}`}},"&:hover":{[`${We}-item-link-icon`]:{opacity:1},[`${We}-item-ellipsis`]:{opacity:0}}},[`
${We}-prev,
${We}-jump-prev,
${We}-jump-next
`]:{marginInlineEnd:Ve.marginXS},[`
${We}-prev,
${We}-next,
${We}-jump-prev,
${We}-jump-next
`]:{display:"inline-block",minWidth:Ve.itemSize,height:Ve.itemSize,color:Ve.colorText,fontFamily:Ve.fontFamily,lineHeight:`${Ve.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ve.borderRadius,cursor:"pointer",transition:`all ${Ve.motionDurationMid}`},[`${We}-prev, ${We}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ve.colorText,cursor:"pointer",userSelect:"none"},[`${We}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ve.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ve.lineWidth}px ${Ve.lineType} transparent`,borderRadius:Ve.borderRadius,outline:"none",transition:`all ${Ve.motionDurationMid}`},[`&:hover ${We}-item-link`]:{backgroundColor:Ve.colorBgTextHover},[`&:active ${We}-item-link`]:{backgroundColor:Ve.colorBgTextActive},[`&${We}-disabled:hover`]:{[`${We}-item-link`]:{backgroundColor:"transparent"}}},[`${We}-slash`]:{marginInlineEnd:Ve.paginationSlashMarginInlineEnd,marginInlineStart:Ve.paginationSlashMarginInlineStart},[`${We}-options`]:{display:"inline-block",marginInlineStart:Ve.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ve.controlHeight,marginInlineStart:Ve.marginXS,lineHeight:`${Ve.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Nt.ik)(Ve)),{width:Ve.controlHeightLG*1.25,height:Ve.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ve.marginXS,marginInlineEnd:Ve.marginXS})}}}},xn=Ve=>{const{componentCls:We}=Ve;return{[`${We}-item`]:{display:"inline-block",minWidth:Ve.itemSize,height:Ve.itemSize,marginInlineEnd:Ve.marginXS,fontFamily:Ve.fontFamily,lineHeight:`${Ve.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ve.lineWidth}px ${Ve.lineType} transparent`,borderRadius:Ve.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ve.paginationItemPaddingInline}px`,color:Ve.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${We}-item-active)`]:{"&:hover":{transition:`all ${Ve.motionDurationMid}`,backgroundColor:Ve.colorBgTextHover},"&:active":{backgroundColor:Ve.colorBgTextActive}},"&-active":{fontWeight:Ve.fontWeightStrong,backgroundColor:Ve.itemActiveBg,borderColor:Ve.colorPrimary,a:{color:Ve.colorPrimary},"&:hover":{borderColor:Ve.colorPrimaryHover},"&:hover a":{color:Ve.colorPrimaryHover}}}}},tt=Ve=>{const{componentCls:We}=Ve;return{[We]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,en.Wf)(Ve)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${We}-total-text`]:{display:"inline-block",height:Ve.itemSize,marginInlineEnd:Ve.marginXS,lineHeight:`${Ve.itemSize-2}px`,verticalAlign:"middle"}}),xn(Ve)),Gn(Ve)),mt(Ve)),Tn(Ve)),dn(Ve)),{[`@media only screen and (max-width: ${Ve.screenLG}px)`]:{[`${We}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ve.screenSM}px)`]:{[`${We}-options`]:{display:"none"}}}),[`&${Ve.componentCls}-rtl`]:{direction:"rtl"}}},Ee=Ve=>{const{componentCls:We}=Ve;return{[`${We}${We}-disabled:not(${We}-mini)`]:{"&, &:hover":{[`${We}-item-link`]:{borderColor:Ve.colorBorder}},"&:focus-visible":{[`${We}-item-link`]:{borderColor:Ve.colorBorder}},[`${We}-item, ${We}-item-link`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,[`&:hover:not(${We}-item-active)`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,a:{color:Ve.colorTextDisabled}},[`&${We}-item-active`]:{backgroundColor:Ve.itemActiveBgDisabled}},[`${We}-prev, ${We}-next`]:{"&:hover button":{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,color:Ve.colorTextDisabled},[`${We}-item-link`]:{backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder}}},[`${We}:not(${We}-mini)`]:{[`${We}-prev, ${We}-next`]:{"&:hover button":{borderColor:Ve.colorPrimaryHover,backgroundColor:Ve.itemBg},[`${We}-item-link`]:{backgroundColor:Ve.itemLinkBg,borderColor:Ve.colorBorder},[`&:hover ${We}-item-link`]:{borderColor:Ve.colorPrimary,backgroundColor:Ve.itemBg,color:Ve.colorPrimary},[`&${We}-disabled`]:{[`${We}-item-link`]:{borderColor:Ve.colorBorder,color:Ve.colorTextDisabled}}},[`${We}-item`]:{backgroundColor:Ve.itemBg,border:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`,[`&:hover:not(${We}-item-active)`]:{borderColor:Ve.colorPrimary,backgroundColor:Ve.itemBg,a:{color:Ve.colorPrimary}},"&-active":{borderColor:Ve.colorPrimary}}}}},we=Ve=>{const{componentCls:We}=Ve;return{[`${We}:not(${We}-disabled)`]:{[`${We}-item`]:Object.assign({},(0,en.Qy)(Ve)),[`${We}-jump-prev, ${We}-jump-next`]:{"&:focus-visible":Object.assign({[`${We}-item-link-icon`]:{opacity:1},[`${We}-item-ellipsis`]:{opacity:0}},(0,en.oN)(Ve))},[`${We}-prev, ${We}-next`]:{[`&:focus-visible ${We}-item-link`]:Object.assign({},(0,en.oN)(Ve))}}}};var Be=(0,nn.Z)("Pagination",Ve=>{const We=(0,On.TS)(Ve,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ve.marginXXS/2,paginationMiniQuickJumperInputWidth:Ve.controlHeightLG*1.1,paginationItemPaddingInline:Ve.marginXXS*1.5,paginationEllipsisLetterSpacing:Ve.marginXXS/2,paginationSlashMarginInlineStart:Ve.marginXXS,paginationSlashMarginInlineEnd:Ve.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Nt.e5)(Ve),(0,Nt.TM)(Ve));return[tt(We),we(We),Ve.wireframe&&Ee(We)]},Ve=>({itemBg:Ve.colorBgContainer,itemSize:Ve.controlHeight,itemSizeSM:Ve.controlHeightSM,itemActiveBg:Ve.colorBgContainer,itemLinkBg:Ve.colorBgContainer,itemActiveColorDisabled:Ve.colorTextDisabled,itemActiveBgDisabled:Ve.controlItemBgActiveDisabled,itemInputBg:Ve.colorBgContainer,miniOptionsSizeChangerTop:0})),ke=function(Ve,We){var Ct={};for(var bt in Ve)Object.prototype.hasOwnProperty.call(Ve,bt)&&We.indexOf(bt)<0&&(Ct[bt]=Ve[bt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,bt=Object.getOwnPropertySymbols(Ve);dt<bt.length;dt++)We.indexOf(bt[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,bt[dt])&&(Ct[bt[dt]]=Ve[bt[dt]]);return Ct},st=Ve=>{const{prefixCls:We,selectPrefixCls:Ct,className:bt,rootClassName:dt,style:Ht,size:En,locale:An,selectComponentClass:qt,responsive:cn,showSizeChanger:qn}=Ve,wn=ke(Ve,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:vi}=(0,ft.Z)(cn),{getPrefixCls:ei,direction:Li,pagination:Vi={}}=Oe.useContext(Mt.E_),zi=ei("pagination",We),[Bn,rr]=Be(zi),Yr=qn!=null?qn:Vi.showSizeChanger,zr=Oe.useMemo(()=>{const Ae=Oe.createElement("span",{className:`${zi}-item-ellipsis`},"\u2022\u2022\u2022"),$n=Oe.createElement("button",{className:`${zi}-item-link`,type:"button",tabIndex:-1},Li==="rtl"?Oe.createElement(Ot.Z,null):Oe.createElement(et.Z,null)),oi=Oe.createElement("button",{className:`${zi}-item-link`,type:"button",tabIndex:-1},Li==="rtl"?Oe.createElement(et.Z,null):Oe.createElement(Ot.Z,null)),fn=Oe.createElement("a",{className:`${zi}-item-link`},Oe.createElement("div",{className:`${zi}-item-container`},Li==="rtl"?Oe.createElement(Et.Z,{className:`${zi}-item-link-icon`}):Oe.createElement(Tt,{className:`${zi}-item-link-icon`}),Ae)),Qn=Oe.createElement("a",{className:`${zi}-item-link`},Oe.createElement("div",{className:`${zi}-item-container`},Li==="rtl"?Oe.createElement(Tt,{className:`${zi}-item-link-icon`}):Oe.createElement(Et.Z,{className:`${zi}-item-link-icon`}),Ae));return{prevIcon:$n,nextIcon:oi,jumpPrevIcon:fn,jumpNextIcon:Qn}},[Li,zi]),[Zr]=(0,Re.Z)("Pagination",jt.Z),Nr=Object.assign(Object.assign({},Zr),An),Co=(0,Ut.Z)(En),$r=Co==="small"||!!(vi&&!Co&&cn),sr=ei("select",Ct),Fo=Pt()({[`${zi}-mini`]:$r,[`${zi}-rtl`]:Li==="rtl"},Vi==null?void 0:Vi.className,bt,dt,rr),ti=Object.assign(Object.assign({},Vi==null?void 0:Vi.style),Ht);return Bn(Oe.createElement(zt,Object.assign({},zr,wn,{style:ti,prefixCls:zi,selectPrefixCls:sr,className:Fo,selectComponentClass:qt||($r?yn:mn),locale:Nr,showSizeChanger:Yr})))},At=st},13570:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Re}});var ye=ve(92413),Oe=ve(59301),He={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"},Rt=He,$e=ve(7657),qe=function(yn,mn){return Oe.createElement($e.Z,(0,ye.Z)({},yn,{ref:mn,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De,Et=ve(92310),et=ve.n(Et),Ot=ve(400),it=ve(33606),Pt=ve(37061),Me=ve(18929),te=ve(10228),ne=ve(26112);function ce(Lt,yn){var mn=Lt.disabled,Nt=Lt.prefixCls,en=Lt.character,nn=Lt.characterRender,On=Lt.index,dn=Lt.count,Tn=Lt.value,mt=Lt.allowHalf,Gn=Lt.focused,xn=Lt.onHover,tt=Lt.onClick,Ee=function(We){xn(We,On)},we=function(We){tt(We,On)},Be=function(We){We.keyCode===te.Z.ENTER&&tt(We,On)},ke=On+1,Se=new Set([Nt]);Tn===0&&On===0&&Gn?Se.add("".concat(Nt,"-focused")):mt&&Tn+.5>=ke&&Tn<ke?(Se.add("".concat(Nt,"-half")),Se.add("".concat(Nt,"-active")),Gn&&Se.add("".concat(Nt,"-focused"))):(ke<=Tn?Se.add("".concat(Nt,"-full")):Se.add("".concat(Nt,"-zero")),ke===Tn&&Gn&&Se.add("".concat(Nt,"-focused")));var st=typeof en=="function"?en(Lt):en,At=Oe.createElement("li",{className:et()(Array.from(Se)),ref:yn},Oe.createElement("div",{onClick:mn?null:we,onKeyDown:mn?null:Be,onMouseMove:mn?null:Ee,role:"radio","aria-checked":Tn>On?"true":"false","aria-posinset":On+1,"aria-setsize":dn,tabIndex:mn?-1:0},Oe.createElement("div",{className:"".concat(Nt,"-first")},st),Oe.createElement("div",{className:"".concat(Nt,"-second")},st)));return nn&&(At=nn(At,Lt)),At}var se=Oe.forwardRef(ce);function ge(){var Lt=Oe.useRef({});function yn(Nt){return Lt.current[Nt]}function mn(Nt){return function(en){Lt.current[Nt]=en}}return[yn,mn]}function me(Lt){var yn=Lt.pageXOffset,mn="scrollLeft";if(typeof yn!="number"){var Nt=Lt.document;yn=Nt.documentElement[mn],typeof yn!="number"&&(yn=Nt.body[mn])}return yn}function Ce(Lt){var yn,mn,Nt=Lt.ownerDocument,en=Nt.body,nn=Nt&&Nt.documentElement,On=Lt.getBoundingClientRect();return yn=On.left,mn=On.top,yn-=nn.clientLeft||en.clientLeft||0,mn-=nn.clientTop||en.clientTop||0,{left:yn,top:mn}}function Fe(Lt){var yn=Ce(Lt),mn=Lt.ownerDocument,Nt=mn.defaultView||mn.parentWindow;return yn.left+=me(Nt),yn.left}var Pe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ie(Lt,yn){var mn,Nt=Lt.prefixCls,en=Nt===void 0?"rc-rate":Nt,nn=Lt.className,On=Lt.defaultValue,dn=Lt.value,Tn=Lt.count,mt=Tn===void 0?5:Tn,Gn=Lt.allowHalf,xn=Gn===void 0?!1:Gn,tt=Lt.allowClear,Ee=tt===void 0?!0:tt,we=Lt.character,Be=we===void 0?"\u2605":we,ke=Lt.characterRender,Se=Lt.disabled,st=Lt.direction,At=st===void 0?"ltr":st,Ve=Lt.tabIndex,We=Ve===void 0?0:Ve,Ct=Lt.autoFocus,bt=Lt.onHoverChange,dt=Lt.onChange,Ht=Lt.onFocus,En=Lt.onBlur,An=Lt.onKeyDown,qt=Lt.onMouseLeave,cn=(0,Pt.Z)(Lt,Pe),qn=ge(),wn=(0,it.Z)(qn,2),vi=wn[0],ei=wn[1],Li=Oe.useRef(null),Vi=function(){if(!Se){var Qe;(Qe=Li.current)===null||Qe===void 0||Qe.focus()}};Oe.useImperativeHandle(yn,function(){return{focus:Vi,blur:function(){if(!Se){var Qe;(Qe=Li.current)===null||Qe===void 0||Qe.blur()}}}});var zi=(0,Me.Z)(On||0,{value:dn}),Bn=(0,it.Z)(zi,2),rr=Bn[0],Yr=Bn[1],zr=(0,Me.Z)(null),Zr=(0,it.Z)(zr,2),Nr=Zr[0],Co=Zr[1],$r=function(Qe,_t){var It=At==="rtl",Fn=Qe+1;if(xn){var Hn=vi(Qe),ct=Fe(Hn),sn=Hn.clientWidth;(It&&_t-ct>sn/2||!It&&_t-ct<sn/2)&&(Fn-=.5)}return Fn},sr=function(Qe){Yr(Qe),dt==null||dt(Qe)},Fo=Oe.useState(!1),ti=(0,it.Z)(Fo,2),Ae=ti[0],$n=ti[1],oi=function(){$n(!0),Ht==null||Ht()},fn=function(){$n(!1),En==null||En()},Qn=Oe.useState(null),Zn=(0,it.Z)(Qn,2),an=Zn[0],Jt=Zn[1],vn=function(Qe,_t){var It=$r(_t,Qe.pageX);It!==Nr&&(Jt(It),Co(null)),bt==null||bt(It)},xt=function(Qe){Se||(Jt(null),Co(null),bt==null||bt(void 0)),Qe&&(qt==null||qt(Qe))},wt=function(Qe,_t){var It=$r(_t,Qe.pageX),Fn=!1;Ee&&(Fn=It===rr),xt(),sr(Fn?0:It),Co(Fn?It:null)},ze=function(Qe){var _t=Qe.keyCode,It=At==="rtl",Fn=rr;_t===te.Z.RIGHT&&Fn<mt&&!It?(xn?Fn+=.5:Fn+=1,sr(Fn),Qe.preventDefault()):_t===te.Z.LEFT&&Fn>0&&!It||_t===te.Z.RIGHT&&Fn>0&&It?(xn?Fn-=.5:Fn-=1,sr(Fn),Qe.preventDefault()):_t===te.Z.LEFT&&Fn<mt&&It&&(xn?Fn+=.5:Fn+=1,sr(Fn),Qe.preventDefault()),An==null||An(Qe)};Oe.useEffect(function(){Ct&&!Se&&Vi()},[]);var Yt=new Array(mt).fill(0).map(function(ht,Qe){return Oe.createElement(se,{ref:ei(Qe),index:Qe,count:mt,disabled:Se,prefixCls:"".concat(en,"-star"),allowHalf:xn,value:an===null?rr:an,onClick:wt,onHover:vn,key:ht||Qe,character:Be,characterRender:ke,focused:Ae})}),on=et()(en,nn,(mn={},(0,Ot.Z)(mn,"".concat(en,"-disabled"),Se),(0,Ot.Z)(mn,"".concat(en,"-rtl"),At==="rtl"),mn));return Oe.createElement("ul",(0,ye.Z)({className:on,onMouseLeave:xt,tabIndex:Se?-1:We,onFocus:Se?null:oi,onBlur:Se?null:fn,onKeyDown:Se?null:ze,ref:Li,role:"radiogroup"},(0,ne.Z)(cn,{aria:!0,data:!0,attr:!0})),Yt)}var Ge=Oe.forwardRef(Ie),Ke=Ge,Ye=ve(36355),pt=ve(6848),Je=ve(17313),kt=ve(83116),Xe=ve(37613);const Wt=Lt=>{const{componentCls:yn}=Lt;return{[`${yn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Lt.marginXS},"> div":{transition:`all ${Lt.motionDurationMid}, outline 0s`,"&:hover":{transform:Lt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Lt.lineWidth}px dashed ${Lt.starColor}`,transform:Lt.starHoverScale}},"&-first, &-second":{color:Lt.starBg,transition:`all ${Lt.motionDurationMid}`,userSelect:"none",[Lt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${yn}-star-first, &-half ${yn}-star-second`]:{opacity:1},[`&-half ${yn}-star-first, &-full ${yn}-star-second`]:{color:"inherit"}}}},zt=Lt=>({[`&-rtl${Lt.componentCls}`]:{direction:"rtl"}}),jt=Lt=>{const{componentCls:yn}=Lt;return{[yn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(Lt)),{display:"inline-block",margin:0,padding:0,color:Lt.starColor,fontSize:Lt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${yn} ${yn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Wt(Lt)),{[`+ ${yn}-text`]:{display:"inline-block",marginInlineStart:Lt.marginXS,fontSize:Lt.fontSize}}),zt(Lt))}};var Mt=(0,kt.Z)("Rate",Lt=>{const yn=(0,Xe.TS)(Lt,{});return[jt(yn)]},Lt=>({starColor:Lt.yellow6,starSize:Lt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Lt.colorFillContent})),Ut=function(Lt,yn){var mn={};for(var Nt in Lt)Object.prototype.hasOwnProperty.call(Lt,Nt)&&yn.indexOf(Nt)<0&&(mn[Nt]=Lt[Nt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,Nt=Object.getOwnPropertySymbols(Lt);en<Nt.length;en++)yn.indexOf(Nt[en])<0&&Object.prototype.propertyIsEnumerable.call(Lt,Nt[en])&&(mn[Nt[en]]=Lt[Nt[en]]);return mn},Re=Oe.forwardRef((Lt,yn)=>{const{prefixCls:mn,className:Nt,rootClassName:en,style:nn,tooltips:On,character:dn=Oe.createElement(Tt,null)}=Lt,Tn=Ut(Lt,["prefixCls","className","rootClassName","style","tooltips","character"]),mt=(Se,st)=>{let{index:At}=st;return On?Oe.createElement(pt.Z,{title:On[At]},Se):Se},{getPrefixCls:Gn,direction:xn,rate:tt}=Oe.useContext(Ye.E_),Ee=Gn("rate",mn),[we,Be]=Mt(Ee),ke=Object.assign(Object.assign({},tt==null?void 0:tt.style),nn);return we(Oe.createElement(Ke,Object.assign({ref:yn,character:dn,characterRender:mt},Tn,{className:et()(Nt,en,Be,tt==null?void 0:tt.className),style:ke,prefixCls:Ee,direction:xn})))})},57809:function(Rn,Mn,ve){"use strict";var ye=ve(92310),Oe=ve.n(ye),He=ve(77861),Rt=ve(2738),$e=ve(59301),qe=ve(53487),De=ve(62892),Tt=ve(19080),Et=ve(36355),et=ve(1684),Ot=ve(93891),it=ve(19716),Pt=ve(32441),Me=ve(33234),te=ve(14154),ne=ve(58582),ce=ve(84443),se=ve(66339),ge=function(Ie,Ge){var Ke={};for(var Ye in Ie)Object.prototype.hasOwnProperty.call(Ie,Ye)&&Ge.indexOf(Ye)<0&&(Ke[Ye]=Ie[Ye]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Ye=Object.getOwnPropertySymbols(Ie);pt<Ye.length;pt++)Ge.indexOf(Ye[pt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ye[pt])&&(Ke[Ye[pt]]=Ie[Ye[pt]]);return Ke};const me="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ce=(Ie,Ge)=>{var Ke,{prefixCls:Ye,bordered:pt=!0,className:Je,rootClassName:kt,getPopupContainer:Xe,popupClassName:Wt,dropdownClassName:zt,listHeight:jt=256,placement:Mt,listItemHeight:Ut=24,size:ft,disabled:Re,notFoundContent:Lt,status:yn,builtinPlacements:mn,dropdownMatchSelectWidth:Nt,popupMatchSelectWidth:en,direction:nn,style:On,allowClear:dn}=Ie,Tn=ge(Ie,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:mt,getPrefixCls:Gn,renderEmpty:xn,direction:tt,virtual:Ee,popupMatchSelectWidth:we,popupOverflow:Be,select:ke}=$e.useContext(Et.E_),Se=Gn("select",Ye),st=Gn(),At=nn!=null?nn:tt,{compactSize:Ve,compactItemClassnames:We}=(0,Me.ri)(Se,At),[Ct,bt]=(0,te.Z)(Se),dt=$e.useMemo(()=>{const{mode:ti}=Tn;if(ti!=="combobox")return ti===me?"combobox":ti},[Tn.mode]),Ht=dt==="multiple"||dt==="tags",En=(0,ce.Z)(Tn.suffixIcon,Tn.showArrow),An=(Ke=en!=null?en:Nt)!==null&&Ke!==void 0?Ke:we,{status:qt,hasFeedback:cn,isFormItemInput:qn,feedbackIcon:wn}=$e.useContext(Pt.aM),vi=(0,Tt.F)(qt,yn);let ei;Lt!==void 0?ei=Lt:dt==="combobox"?ei=null:ei=(xn==null?void 0:xn("Select"))||$e.createElement(Ot.Z,{componentName:"Select"});const{suffixIcon:Li,itemIcon:Vi,removeIcon:zi,clearIcon:Bn}=(0,se.Z)(Object.assign(Object.assign({},Tn),{multiple:Ht,hasFeedback:cn,feedbackIcon:wn,showSuffixIcon:En,prefixCls:Se,showArrow:Tn.showArrow,componentName:"Select"})),rr=dn===!0?{clearIcon:Bn}:dn,Yr=(0,Rt.Z)(Tn,["suffixIcon","itemIcon"]),zr=Oe()(Wt||zt,{[`${Se}-dropdown-${At}`]:At==="rtl"},kt,bt),Zr=(0,it.Z)(ti=>{var Ae;return(Ae=ft!=null?ft:Ve)!==null&&Ae!==void 0?Ae:ti}),Nr=$e.useContext(et.Z),Co=Re!=null?Re:Nr,$r=Oe()({[`${Se}-lg`]:Zr==="large",[`${Se}-sm`]:Zr==="small",[`${Se}-rtl`]:At==="rtl",[`${Se}-borderless`]:!pt,[`${Se}-in-form-item`]:qn},(0,Tt.Z)(Se,vi,cn),We,ke==null?void 0:ke.className,Je,kt,bt),sr=$e.useMemo(()=>Mt!==void 0?Mt:At==="rtl"?"bottomRight":"bottomLeft",[Mt,At]),Fo=(0,ne.Z)(mn,Be);return Ct($e.createElement(He.ZP,Object.assign({ref:Ge,virtual:Ee,showSearch:ke==null?void 0:ke.showSearch},Yr,{style:Object.assign(Object.assign({},ke==null?void 0:ke.style),On),dropdownMatchSelectWidth:An,builtinPlacements:Fo,transitionName:(0,De.m)(st,"slide-up",Tn.transitionName),listHeight:jt,listItemHeight:Ut,mode:dt,prefixCls:Se,placement:sr,direction:At,suffixIcon:Li,menuItemSelectedIcon:Vi,removeIcon:zi,allowClear:rr,notFoundContent:ei,className:$r,getPopupContainer:Xe||mt,dropdownClassName:zr,disabled:Co})))},Fe=$e.forwardRef(Ce),Pe=(0,qe.Z)(Fe);Fe.SECRET_COMBOBOX_MODE_DO_NOT_USE=me,Fe.Option=He.Wx,Fe.OptGroup=He.Xo,Fe._InternalPanelDoNotUseOrYouWillBeFired=Pe,Mn.default=Fe},14154:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Fe}});var ye=ve(17313),Oe=ve(74207),He=ve(37613),Rt=ve(83116),$e=ve(13826),qe=ve(92899);const De=Pe=>{const{optionHeight:Ie,optionFontSize:Ge,optionLineHeight:Ke,optionPadding:Ye}=Pe;return{position:"relative",display:"block",minHeight:Ie,padding:Ye,color:Pe.colorText,fontWeight:"normal",fontSize:Ge,lineHeight:Ke,boxSizing:"border-box"}};var Et=Pe=>{const{antCls:Ie,componentCls:Ge}=Pe,Ke=`${Ge}-item`,Ye=`&${Ie}-slide-up-enter${Ie}-slide-up-enter-active`,pt=`&${Ie}-slide-up-appear${Ie}-slide-up-appear-active`,Je=`&${Ie}-slide-up-leave${Ie}-slide-up-leave-active`,kt=`${Ge}-dropdown-placement-`;return[{[`${Ge}-dropdown`]:Object.assign(Object.assign({},(0,ye.Wf)(Pe)),{position:"absolute",top:-9999,zIndex:Pe.zIndexPopup,boxSizing:"border-box",padding:Pe.paddingXXS,overflow:"hidden",fontSize:Pe.fontSize,fontVariant:"initial",backgroundColor:Pe.colorBgElevated,borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary,[`
${Ye}${kt}bottomLeft,
${pt}${kt}bottomLeft
`]:{animationName:$e.fJ},[`
${Ye}${kt}topLeft,
${pt}${kt}topLeft,
${Ye}${kt}topRight,
${pt}${kt}topRight
`]:{animationName:$e.Qt},[`${Je}${kt}bottomLeft`]:{animationName:$e.Uw},[`
${Je}${kt}topLeft,
${Je}${kt}topRight
`]:{animationName:$e.ly},"&-hidden":{display:"none"},[`${Ke}`]:Object.assign(Object.assign({},De(Pe)),{cursor:"pointer",transition:`background ${Pe.motionDurationSlow} ease`,borderRadius:Pe.borderRadiusSM,"&-group":{color:Pe.colorTextDescription,fontSize:Pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ye.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ke}-option-disabled)`]:{backgroundColor:Pe.optionActiveBg},[`&-selected:not(${Ke}-option-disabled)`]:{color:Pe.optionSelectedColor,fontWeight:Pe.optionSelectedFontWeight,backgroundColor:Pe.optionSelectedBg,[`${Ke}-option-state`]:{color:Pe.colorPrimary}},"&-disabled":{[`&${Ke}-option-selected`]:{backgroundColor:Pe.colorBgContainerDisabled},color:Pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Pe.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,$e.oN)(Pe,"slide-up"),(0,$e.oN)(Pe,"slide-down"),(0,qe.Fm)(Pe,"move-up"),(0,qe.Fm)(Pe,"move-down")]};const et=2,Ot=Pe=>{let{controlHeightSM:Ie,controlHeight:Ge,lineWidth:Ke}=Pe;const Ye=(Ge-Ie)/2-Ke,pt=Math.ceil(Ye/2);return[Ye,pt]};function it(Pe,Ie){const{componentCls:Ge,iconCls:Ke}=Pe,Ye=`${Ge}-selection-overflow`,pt=Pe.multipleSelectItemHeight,[Je]=Ot(Pe),kt=Ie?`${Ge}-${Ie}`:"";return{[`${Ge}-multiple${kt}`]:{fontSize:Pe.fontSize,[Ye]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ge}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Je-et}px ${et*2}px`,borderRadius:Pe.borderRadius,[`${Ge}-show-search&`]:{cursor:"text"},[`${Ge}-disabled&`]:{background:Pe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${et}px 0`,lineHeight:`${pt}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${Ge}-show-arrow ${Ge}-selector,
&${Ge}-allow-clear ${Ge}-selector
`]:{paddingInlineEnd:Pe.fontSizeIcon+Pe.controlPaddingHorizontal},[`${Ge}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:pt,marginTop:et,marginBottom:et,lineHeight:`${pt-Pe.lineWidth*2}px`,background:Pe.multipleItemBg,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.multipleItemBorderColor}`,borderRadius:Pe.borderRadiusSM,cursor:"default",transition:`font-size ${Pe.motionDurationSlow}, line-height ${Pe.motionDurationSlow}, height ${Pe.motionDurationSlow}`,userSelect:"none",marginInlineEnd:et*2,paddingInlineStart:Pe.paddingXS,paddingInlineEnd:Pe.paddingXS/2,[`${Ge}-disabled&`]:{color:Pe.multipleItemColorDisabled,borderColor:Pe.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Pe.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ye.Ro)()),{display:"inline-flex",alignItems:"center",color:Pe.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ke}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Pe.colorIconHover}})},[`${Ye}-item + ${Ye}-item`]:{[`${Ge}-selection-search`]:{marginInlineStart:0}},[`${Ge}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Pe.inputPaddingHorizontalBase-Je,"\n &-input,\n &-mirror\n ":{height:pt,fontFamily:Pe.fontFamily,lineHeight:`${pt}px`,transition:`all ${Pe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ge}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Pe.inputPaddingHorizontalBase,insetInlineEnd:Pe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Pe.motionDurationSlow}`}}}}var Me=Pe=>{const{componentCls:Ie}=Pe,Ge=(0,He.TS)(Pe,{controlHeight:Pe.controlHeightSM,multipleSelectItemHeight:Pe.controlHeightXS,borderRadius:Pe.borderRadiusSM,borderRadiusSM:Pe.borderRadiusXS}),Ke=(0,He.TS)(Pe,{fontSize:Pe.fontSizeLG,controlHeight:Pe.controlHeightLG,multipleSelectItemHeight:Pe.multipleItemHeightLG,borderRadius:Pe.borderRadiusLG,borderRadiusSM:Pe.borderRadius}),[,Ye]=Ot(Pe);return[it(Pe),it(Ge,"sm"),{[`${Ie}-multiple${Ie}-sm`]:{[`${Ie}-selection-placeholder`]:{insetInline:Pe.controlPaddingHorizontalSM-Pe.lineWidth},[`${Ie}-selection-search`]:{marginInlineStart:Ye}}},it(Ke,"lg")]};function te(Pe,Ie){const{componentCls:Ge,inputPaddingHorizontalBase:Ke,borderRadius:Ye}=Pe,pt=Pe.controlHeight-Pe.lineWidth*2,Je=Math.ceil(Pe.fontSize*1.25),kt=Ie?`${Ge}-${Ie}`:"";return{[`${Ge}-single${kt}`]:{fontSize:Pe.fontSize,[`${Ge}-selector`]:Object.assign(Object.assign({},(0,ye.Wf)(Pe)),{display:"flex",borderRadius:Ye,[`${Ge}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ke,insetInlineEnd:Ke,bottom:0,"&-input":{width:"100%"}},[`
${Ge}-selection-item,
${Ge}-selection-placeholder
`]:{padding:0,lineHeight:`${pt}px`,transition:`all ${Pe.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${pt}px`}},[`${Ge}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ge}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ge}-selection-item:after`,`${Ge}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ge}-show-arrow ${Ge}-selection-item,
&${Ge}-show-arrow ${Ge}-selection-placeholder
`]:{paddingInlineEnd:Je},[`&${Ge}-open ${Ge}-selection-item`]:{color:Pe.colorTextPlaceholder},[`&:not(${Ge}-customize-input)`]:{[`${Ge}-selector`]:{width:"100%",height:Pe.controlHeight,padding:`0 ${Ke}px`,[`${Ge}-selection-search-input`]:{height:pt},"&:after":{lineHeight:`${pt}px`}}},[`&${Ge}-customize-input`]:{[`${Ge}-selector`]:{"&:after":{display:"none"},[`${Ge}-selection-search`]:{position:"static",width:"100%"},[`${Ge}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ke}px`,"&:after":{display:"none"}}}}}}}function ne(Pe){const{componentCls:Ie}=Pe,Ge=Pe.controlPaddingHorizontalSM-Pe.lineWidth;return[te(Pe),te((0,He.TS)(Pe,{controlHeight:Pe.controlHeightSM,borderRadius:Pe.borderRadiusSM}),"sm"),{[`${Ie}-single${Ie}-sm`]:{[`&:not(${Ie}-customize-input)`]:{[`${Ie}-selection-search`]:{insetInlineStart:Ge,insetInlineEnd:Ge},[`${Ie}-selector`]:{padding:`0 ${Ge}px`},[`&${Ie}-show-arrow ${Ie}-selection-search`]:{insetInlineEnd:Ge+Pe.fontSize*1.5},[`
&${Ie}-show-arrow ${Ie}-selection-item,
&${Ie}-show-arrow ${Ie}-selection-placeholder
`]:{paddingInlineEnd:Pe.fontSize*1.5}}}},te((0,He.TS)(Pe,{controlHeight:Pe.singleItemHeightLG,fontSize:Pe.fontSizeLG,borderRadius:Pe.borderRadiusLG}),"lg")]}const ce=Pe=>{const{componentCls:Ie,selectorBg:Ge}=Pe;return{position:"relative",backgroundColor:Ge,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,transition:`all ${Pe.motionDurationMid} ${Pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ie}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ie}-disabled&`]:{color:Pe.colorTextDisabled,background:Pe.colorBgContainerDisabled,cursor:"not-allowed",[`${Ie}-multiple&`]:{background:Pe.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},se=function(Pe,Ie){let Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ke,borderHoverColor:Ye,outlineColor:pt,antCls:Je}=Ie,kt=Ge?{[`${Ke}-selector`]:{borderColor:Ye}}:{};return{[Pe]:{[`&:not(${Ke}-disabled):not(${Ke}-customize-input):not(${Je}-pagination-size-changer)`]:Object.assign(Object.assign({},kt),{[`${Ke}-focused& ${Ke}-selector`]:{borderColor:Ye,boxShadow:`0 0 0 ${Ie.controlOutlineWidth}px ${pt}`,outline:0},[`&:hover ${Ke}-selector`]:{borderColor:Ye}})}}},ge=Pe=>{const{componentCls:Ie}=Pe;return{[`${Ie}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},me=Pe=>{const{componentCls:Ie,inputPaddingHorizontalBase:Ge,iconCls:Ke}=Pe;return{[Ie]:Object.assign(Object.assign({},(0,ye.Wf)(Pe)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ie}-customize-input) ${Ie}-selector`]:Object.assign(Object.assign({},ce(Pe)),ge(Pe)),[`${Ie}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ye.vS),[`${Ie}-selection-placeholder`]:Object.assign(Object.assign({},ye.vS),{flex:1,color:Pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Ie}-arrow`]:Object.assign(Object.assign({},(0,ye.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,height:Pe.fontSizeIcon,marginTop:-Pe.fontSizeIcon/2,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ke]:{verticalAlign:"top",transition:`transform ${Pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ie}-suffix)`]:{pointerEvents:"auto"}},[`${Ie}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ie}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,zIndex:1,display:"inline-block",width:Pe.fontSizeIcon,height:Pe.fontSizeIcon,marginTop:-Pe.fontSizeIcon/2,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Pe.clearBg,cursor:"pointer",opacity:0,transition:`color ${Pe.motionDurationMid} ease, opacity ${Pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Pe.colorTextTertiary}},"&:hover":{[`${Ie}-clear`]:{opacity:1}}}),[`${Ie}-has-feedback`]:{[`${Ie}-clear`]:{insetInlineEnd:Ge+Pe.fontSize+Pe.paddingXS}}}},Ce=Pe=>{const{componentCls:Ie}=Pe;return[{[Ie]:{[`&-borderless ${Ie}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ie}-in-form-item`]:{width:"100%"}}},me(Pe),ne(Pe),Me(Pe),Et(Pe),{[`${Ie}-rtl`]:{direction:"rtl"}},se(Ie,(0,He.TS)(Pe,{borderHoverColor:Pe.colorPrimaryHover,outlineColor:Pe.controlOutline})),se(`${Ie}-status-error`,(0,He.TS)(Pe,{borderHoverColor:Pe.colorErrorHover,outlineColor:Pe.colorErrorOutline}),!0),se(`${Ie}-status-warning`,(0,He.TS)(Pe,{borderHoverColor:Pe.colorWarningHover,outlineColor:Pe.colorWarningOutline}),!0),(0,Oe.c)(Pe,{borderElCls:`${Ie}-selector`,focusElCls:`${Ie}-focused`})]};var Fe=(0,Rt.Z)("Select",(Pe,Ie)=>{let{rootPrefixCls:Ge}=Ie;const Ke=(0,He.TS)(Pe,{rootPrefixCls:Ge,inputPaddingHorizontalBase:Pe.paddingSM-1,multipleSelectItemHeight:Pe.multipleItemHeight});return[Ce(Ke)]},Pe=>{const{fontSize:Ie,lineHeight:Ge,controlHeight:Ke,controlPaddingHorizontal:Ye,zIndexPopupBase:pt,colorText:Je,fontWeightStrong:kt,controlItemBgActive:Xe,controlItemBgHover:Wt,colorBgContainer:zt,colorFillSecondary:jt,controlHeightLG:Mt,controlHeightSM:Ut,colorBgContainerDisabled:ft,colorTextDisabled:Re}=Pe;return{zIndexPopup:pt+50,optionSelectedColor:Je,optionSelectedFontWeight:kt,optionSelectedBg:Xe,optionActiveBg:Wt,optionPadding:`${(Ke-Ie*Ge)/2}px ${Ye}px`,optionFontSize:Ie,optionLineHeight:Ge,optionHeight:Ke,selectorBg:zt,clearBg:zt,singleItemHeightLG:Mt,multipleItemBg:jt,multipleItemBorderColor:"transparent",multipleItemHeight:Ut,multipleItemHeightLG:Ke,multipleSelectorBgDisabled:ft,multipleItemColorDisabled:Re,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Oe}});const ye=He=>{const $e={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:He==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},$e),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},$e),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},$e),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},$e),{points:["br","tr"],offset:[0,-4]})}};function Oe(He,Rt){return He||ye(Rt)}},84443:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return ye}});function ye(Oe,He){return He!==void 0?He:Oe!==null}},66339:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});var ye=ve(40001),Oe=ve(19248),He=ve(99267),Rt=ve(84105),$e=ve(58617),qe=ve(47472),De=ve(59301);function Tt(Et){let{suffixIcon:et,clearIcon:Ot,menuItemSelectedIcon:it,removeIcon:Pt,loading:Me,multiple:te,hasFeedback:ne,prefixCls:ce,showSuffixIcon:se,feedbackIcon:ge,showArrow:me,componentName:Ce}=Et;const Fe=Ot!=null?Ot:De.createElement(Oe.Z,null),Pe=Ye=>et===null&&!ne&&!me?null:De.createElement(De.Fragment,null,se!==!1&&Ye,ne&&ge);let Ie=null;if(et!==void 0)Ie=Pe(et);else if(Me)Ie=Pe(De.createElement($e.Z,{spin:!0}));else{const Ye=`${ce}-suffix`;Ie=pt=>{let{open:Je,showSearch:kt}=pt;return Pe(Je&&kt?De.createElement(qe.Z,{className:Ye}):De.createElement(Rt.Z,{className:Ye}))}}let Ge=null;it!==void 0?Ge=it:te?Ge=De.createElement(ye.Z,null):Ge=null;let Ke=null;return Pt!==void 0?Ke=Pt:Ke=De.createElement(He.Z,null),{clearIcon:Fe,suffixIcon:Ie,itemIcon:Ge,removeIcon:Ke}}},61621:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Be}});var ye=ve(92310),Oe=ve.n(ye),He=ve(59301),Rt=ve(36355),$e=ve(2738),De=ke=>{const{prefixCls:Se,className:st,style:At,size:Ve,shape:We}=ke,Ct=Oe()({[`${Se}-lg`]:Ve==="large",[`${Se}-sm`]:Ve==="small"}),bt=Oe()({[`${Se}-circle`]:We==="circle",[`${Se}-square`]:We==="square",[`${Se}-round`]:We==="round"}),dt=He.useMemo(()=>typeof Ve=="number"?{width:Ve,height:Ve,lineHeight:`${Ve}px`}:{},[Ve]);return He.createElement("span",{className:Oe()(Se,Ct,bt,st),style:Object.assign(Object.assign({},dt),At)})},Tt=ve(93083),Et=ve(83116),et=ve(37613);const Ot=new Tt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),it=ke=>({height:ke,lineHeight:`${ke}px`}),Pt=ke=>Object.assign({width:ke},it(ke)),Me=ke=>({background:ke.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ot,animationDuration:ke.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),te=ke=>Object.assign({width:ke*5,minWidth:ke*5},it(ke)),ne=ke=>{const{skeletonAvatarCls:Se,gradientFromColor:st,controlHeight:At,controlHeightLG:Ve,controlHeightSM:We}=ke;return{[`${Se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:st},Pt(At)),[`${Se}${Se}-circle`]:{borderRadius:"50%"},[`${Se}${Se}-lg`]:Object.assign({},Pt(Ve)),[`${Se}${Se}-sm`]:Object.assign({},Pt(We))}},ce=ke=>{const{controlHeight:Se,borderRadiusSM:st,skeletonInputCls:At,controlHeightLG:Ve,controlHeightSM:We,gradientFromColor:Ct}=ke;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ct,borderRadius:st},te(Se)),[`${At}-lg`]:Object.assign({},te(Ve)),[`${At}-sm`]:Object.assign({},te(We))}},se=ke=>Object.assign({width:ke},it(ke)),ge=ke=>{const{skeletonImageCls:Se,imageSizeBase:st,gradientFromColor:At,borderRadiusSM:Ve}=ke;return{[`${Se}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:At,borderRadius:Ve},se(st*2)),{[`${Se}-path`]:{fill:"#bfbfbf"},[`${Se}-svg`]:Object.assign(Object.assign({},se(st)),{maxWidth:st*4,maxHeight:st*4}),[`${Se}-svg${Se}-svg-circle`]:{borderRadius:"50%"}}),[`${Se}${Se}-circle`]:{borderRadius:"50%"}}},me=(ke,Se,st)=>{const{skeletonButtonCls:At}=ke;return{[`${st}${At}-circle`]:{width:Se,minWidth:Se,borderRadius:"50%"},[`${st}${At}-round`]:{borderRadius:Se}}},Ce=ke=>Object.assign({width:ke*2,minWidth:ke*2},it(ke)),Fe=ke=>{const{borderRadiusSM:Se,skeletonButtonCls:st,controlHeight:At,controlHeightLG:Ve,controlHeightSM:We,gradientFromColor:Ct}=ke;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${st}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ct,borderRadius:Se,width:At*2,minWidth:At*2},Ce(At))},me(ke,At,st)),{[`${st}-lg`]:Object.assign({},Ce(Ve))}),me(ke,Ve,`${st}-lg`)),{[`${st}-sm`]:Object.assign({},Ce(We))}),me(ke,We,`${st}-sm`))},Pe=ke=>{const{componentCls:Se,skeletonAvatarCls:st,skeletonTitleCls:At,skeletonParagraphCls:Ve,skeletonButtonCls:We,skeletonInputCls:Ct,skeletonImageCls:bt,controlHeight:dt,controlHeightLG:Ht,controlHeightSM:En,gradientFromColor:An,padding:qt,marginSM:cn,borderRadius:qn,titleHeight:wn,blockRadius:vi,paragraphLiHeight:ei,controlHeightXS:Li,paragraphMarginTop:Vi}=ke;return{[`${Se}`]:{display:"table",width:"100%",[`${Se}-header`]:{display:"table-cell",paddingInlineEnd:qt,verticalAlign:"top",[`${st}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:An},Pt(dt)),[`${st}-circle`]:{borderRadius:"50%"},[`${st}-lg`]:Object.assign({},Pt(Ht)),[`${st}-sm`]:Object.assign({},Pt(En))},[`${Se}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${At}`]:{width:"100%",height:wn,background:An,borderRadius:vi,[`+ ${Ve}`]:{marginBlockStart:En}},[`${Ve}`]:{padding:0,"> li":{width:"100%",height:ei,listStyle:"none",background:An,borderRadius:vi,"+ li":{marginBlockStart:Li}}},[`${Ve}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Se}-content`]:{[`${At}, ${Ve} > li`]:{borderRadius:qn}}},[`${Se}-with-avatar ${Se}-content`]:{[`${At}`]:{marginBlockStart:cn,[`+ ${Ve}`]:{marginBlockStart:Vi}}},[`${Se}${Se}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Fe(ke)),ne(ke)),ce(ke)),ge(ke)),[`${Se}${Se}-block`]:{width:"100%",[`${We}`]:{width:"100%"},[`${Ct}`]:{width:"100%"}},[`${Se}${Se}-active`]:{[`
${At},
${Ve} > li,
${st},
${We},
${Ct},
${bt}
`]:Object.assign({},Me(ke))}}};var Ie=(0,Et.Z)("Skeleton",ke=>{const{componentCls:Se}=ke,st=(0,et.TS)(ke,{skeletonAvatarCls:`${Se}-avatar`,skeletonTitleCls:`${Se}-title`,skeletonParagraphCls:`${Se}-paragraph`,skeletonButtonCls:`${Se}-button`,skeletonInputCls:`${Se}-input`,skeletonImageCls:`${Se}-image`,imageSizeBase:ke.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ke.gradientFromColor} 25%, ${ke.gradientToColor} 37%, ${ke.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Pe(st)]},ke=>{const{colorFillContent:Se,colorFill:st}=ke,At=Se,Ve=st;return{color:At,colorGradientEnd:Ve,gradientFromColor:At,gradientToColor:Ve,titleHeight:ke.controlHeight/2,blockRadius:ke.borderRadiusSM,paragraphMarginTop:ke.marginLG+ke.marginXXS,paragraphLiHeight:ke.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ke=ke=>{const{prefixCls:Se,className:st,rootClassName:At,active:Ve,shape:We="circle",size:Ct="default"}=ke,{getPrefixCls:bt}=He.useContext(Rt.E_),dt=bt("skeleton",Se),[Ht,En]=Ie(dt),An=(0,$e.Z)(ke,["prefixCls","className"]),qt=Oe()(dt,`${dt}-element`,{[`${dt}-active`]:Ve},st,At,En);return Ht(He.createElement("div",{className:qt},He.createElement(De,Object.assign({prefixCls:`${dt}-avatar`,shape:We,size:Ct},An))))},pt=ke=>{const{prefixCls:Se,className:st,rootClassName:At,active:Ve,block:We=!1,size:Ct="default"}=ke,{getPrefixCls:bt}=He.useContext(Rt.E_),dt=bt("skeleton",Se),[Ht,En]=Ie(dt),An=(0,$e.Z)(ke,["prefixCls"]),qt=Oe()(dt,`${dt}-element`,{[`${dt}-active`]:Ve,[`${dt}-block`]:We},st,At,En);return Ht(He.createElement("div",{className:qt},He.createElement(De,Object.assign({prefixCls:`${dt}-button`,size:Ct},An))))};const Je="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 Xe=ke=>{const{prefixCls:Se,className:st,rootClassName:At,style:Ve,active:We}=ke,{getPrefixCls:Ct}=He.useContext(Rt.E_),bt=Ct("skeleton",Se),[dt,Ht]=Ie(bt),En=Oe()(bt,`${bt}-element`,{[`${bt}-active`]:We},st,At,Ht);return dt(He.createElement("div",{className:En},He.createElement("div",{className:Oe()(`${bt}-image`,st),style:Ve},He.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${bt}-image-svg`},He.createElement("path",{d:Je,className:`${bt}-image-path`})))))},zt=ke=>{const{prefixCls:Se,className:st,rootClassName:At,active:Ve,block:We,size:Ct="default"}=ke,{getPrefixCls:bt}=He.useContext(Rt.E_),dt=bt("skeleton",Se),[Ht,En]=Ie(dt),An=(0,$e.Z)(ke,["prefixCls"]),qt=Oe()(dt,`${dt}-element`,{[`${dt}-active`]:Ve,[`${dt}-block`]:We},st,At,En);return Ht(He.createElement("div",{className:qt},He.createElement(De,Object.assign({prefixCls:`${dt}-input`,size:Ct},An))))},jt=ve(92413),Mt={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"},Ut=Mt,ft=ve(7657),Re=function(Se,st){return He.createElement(ft.Z,(0,jt.Z)({},Se,{ref:st,icon:Ut}))},Lt=He.forwardRef(Re),yn=Lt,Nt=ke=>{const{prefixCls:Se,className:st,rootClassName:At,style:Ve,active:We,children:Ct}=ke,{getPrefixCls:bt}=He.useContext(Rt.E_),dt=bt("skeleton",Se),[Ht,En]=Ie(dt),An=Oe()(dt,`${dt}-element`,{[`${dt}-active`]:We},En,st,At),qt=Ct!=null?Ct:He.createElement(yn,null);return Ht(He.createElement("div",{className:An},He.createElement("div",{className:Oe()(`${dt}-image`,st),style:Ve},qt)))},en=ve(26407),On=ke=>{const Se=bt=>{const{width:dt,rows:Ht=2}=ke;if(Array.isArray(dt))return dt[bt];if(Ht-1===bt)return dt},{prefixCls:st,className:At,style:Ve,rows:We}=ke,Ct=(0,en.Z)(Array(We)).map((bt,dt)=>He.createElement("li",{key:dt,style:{width:Se(dt)}}));return He.createElement("ul",{className:Oe()(st,At),style:Ve},Ct)},Tn=ke=>{let{prefixCls:Se,className:st,width:At,style:Ve}=ke;return He.createElement("h3",{className:Oe()(Se,st),style:Object.assign({width:At},Ve)})};function mt(ke){return ke&&typeof ke=="object"?ke:{}}function Gn(ke,Se){return ke&&!Se?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xn(ke,Se){return!ke&&Se?{width:"38%"}:ke&&Se?{width:"50%"}:{}}function tt(ke,Se){const st={};return(!ke||!Se)&&(st.width="61%"),!ke&&Se?st.rows=3:st.rows=2,st}const Ee=ke=>{const{prefixCls:Se,loading:st,className:At,rootClassName:Ve,style:We,children:Ct,avatar:bt=!1,title:dt=!0,paragraph:Ht=!0,active:En,round:An}=ke,{getPrefixCls:qt,direction:cn,skeleton:qn}=He.useContext(Rt.E_),wn=qt("skeleton",Se),[vi,ei]=Ie(wn);if(st||!("loading"in ke)){const Li=!!bt,Vi=!!dt,zi=!!Ht;let Bn;if(Li){const zr=Object.assign(Object.assign({prefixCls:`${wn}-avatar`},Gn(Vi,zi)),mt(bt));Bn=He.createElement("div",{className:`${wn}-header`},He.createElement(De,Object.assign({},zr)))}let rr;if(Vi||zi){let zr;if(Vi){const Nr=Object.assign(Object.assign({prefixCls:`${wn}-title`},xn(Li,zi)),mt(dt));zr=He.createElement(Tn,Object.assign({},Nr))}let Zr;if(zi){const Nr=Object.assign(Object.assign({prefixCls:`${wn}-paragraph`},tt(Li,Vi)),mt(Ht));Zr=He.createElement(On,Object.assign({},Nr))}rr=He.createElement("div",{className:`${wn}-content`},zr,Zr)}const Yr=Oe()(wn,{[`${wn}-with-avatar`]:Li,[`${wn}-active`]:En,[`${wn}-rtl`]:cn==="rtl",[`${wn}-round`]:An},qn==null?void 0:qn.className,At,Ve,ei);return vi(He.createElement("div",{className:Yr,style:Object.assign(Object.assign({},qn==null?void 0:qn.style),We)},Bn,rr))}return typeof Ct!="undefined"?Ct:null};Ee.Button=pt,Ee.Avatar=Ke,Ee.Input=zt,Ee.Image=Xe,Ee.Node=Nt;var we=Ee,Be=we},81327:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return ce}});var ye=ve(59301),Oe=ve(92310),He=ve.n(Oe),Rt=ve(11592),$e=ve(36355),qe=ve(33234);const De=ye.createContext({latestIndex:0}),Tt=De.Provider;var et=se=>{let{className:ge,index:me,children:Ce,split:Fe,style:Pe}=se;const{latestIndex:Ie}=ye.useContext(De);return Ce==null?null:ye.createElement(ye.Fragment,null,ye.createElement("div",{className:ge,style:Pe},Ce),me<Ie&&Fe&&ye.createElement("span",{className:`${ge}-split`},Fe))},Ot=ve(2856);function it(se){return["small","middle","large"].includes(se)}function Pt(se){return se?typeof se=="number"&&!Number.isNaN(se):!1}var Me=function(se,ge){var me={};for(var Ce in se)Object.prototype.hasOwnProperty.call(se,Ce)&&ge.indexOf(Ce)<0&&(me[Ce]=se[Ce]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ce=Object.getOwnPropertySymbols(se);Fe<Ce.length;Fe++)ge.indexOf(Ce[Fe])<0&&Object.prototype.propertyIsEnumerable.call(se,Ce[Fe])&&(me[Ce[Fe]]=se[Ce[Fe]]);return me};const ne=ye.forwardRef((se,ge)=>{var me,Ce;const{getPrefixCls:Fe,space:Pe,direction:Ie}=ye.useContext($e.E_),{size:Ge=(Pe==null?void 0:Pe.size)||"small",align:Ke,className:Ye,rootClassName:pt,children:Je,direction:kt="horizontal",prefixCls:Xe,split:Wt,style:zt,wrap:jt=!1,classNames:Mt,styles:Ut}=se,ft=Me(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Re,Lt]=Array.isArray(Ge)?Ge:[Ge,Ge],yn=it(Lt),mn=it(Re),Nt=Pt(Lt),en=Pt(Re),nn=(0,Rt.Z)(Je,{keepEmpty:!0}),On=Ke===void 0&&kt==="horizontal"?"center":Ke,dn=Fe("space",Xe),[Tn,mt]=(0,Ot.Z)(dn),Gn=He()(dn,Pe==null?void 0:Pe.className,mt,`${dn}-${kt}`,{[`${dn}-rtl`]:Ie==="rtl",[`${dn}-align-${On}`]:On,[`${dn}-gap-row-${Lt}`]:yn,[`${dn}-gap-col-${Re}`]:mn},Ye,pt),xn=He()(`${dn}-item`,(me=Mt==null?void 0:Mt.item)!==null&&me!==void 0?me:(Ce=Pe==null?void 0:Pe.classNames)===null||Ce===void 0?void 0:Ce.item);let tt=0;const Ee=nn.map((ke,Se)=>{var st,At;ke!=null&&(tt=Se);const Ve=ke&&ke.key||`${xn}-${Se}`;return ye.createElement(et,{className:xn,key:Ve,index:Se,split:Wt,style:(st=Ut==null?void 0:Ut.item)!==null&&st!==void 0?st:(At=Pe==null?void 0:Pe.styles)===null||At===void 0?void 0:At.item},ke)}),we=ye.useMemo(()=>({latestIndex:tt}),[tt]);if(nn.length===0)return null;const Be={};return jt&&(Be.flexWrap="wrap"),!mn&&en&&(Be.columnGap=Re),!yn&&Nt&&(Be.rowGap=Lt),Tn(ye.createElement("div",Object.assign({ref:ge,className:Gn,style:Object.assign(Object.assign(Object.assign({},Be),Pe==null?void 0:Pe.style),zt)},ft),ye.createElement(Tt,{value:we},Ee)))});ne.Compact=qe.ZP;var ce=ne},31797:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return Ie}});var ye=ve(59301),Oe=ve(56762),He=ve(92343),Rt=ve(92310),$e=ve.n(Rt),qe=ve(36355),De=ve(61621),Et=Ge=>{const{value:Ke,formatter:Ye,precision:pt,decimalSeparator:Je,groupSeparator:kt="",prefixCls:Xe}=Ge;let Wt;if(typeof Ye=="function")Wt=Ye(Ke);else{const zt=String(Ke),jt=zt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!jt||zt==="-")Wt=zt;else{const Mt=jt[1];let Ut=jt[2]||"0",ft=jt[4]||"";Ut=Ut.replace(/\B(?=(\d{3})+(?!\d))/g,kt),typeof pt=="number"&&(ft=ft.padEnd(pt,"0").slice(0,pt>0?pt:0)),ft&&(ft=`${Je}${ft}`),Wt=[ye.createElement("span",{key:"int",className:`${Xe}-content-value-int`},Mt,Ut),ft&&ye.createElement("span",{key:"decimal",className:`${Xe}-content-value-decimal`},ft)]}}return ye.createElement("span",{className:`${Xe}-content-value`},Wt)},et=ve(17313),Ot=ve(83116),it=ve(37613);const Pt=Ge=>{const{componentCls:Ke,marginXXS:Ye,padding:pt,colorTextDescription:Je,titleFontSize:kt,colorTextHeading:Xe,contentFontSize:Wt,fontFamily:zt}=Ge;return{[`${Ke}`]:Object.assign(Object.assign({},(0,et.Wf)(Ge)),{[`${Ke}-title`]:{marginBottom:Ye,color:Je,fontSize:kt},[`${Ke}-skeleton`]:{paddingTop:pt},[`${Ke}-content`]:{color:Xe,fontSize:Wt,fontFamily:zt,[`${Ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ke}-content-prefix, ${Ke}-content-suffix`]:{display:"inline-block"},[`${Ke}-content-prefix`]:{marginInlineEnd:Ye},[`${Ke}-content-suffix`]:{marginInlineStart:Ye}}})}};var Me=(0,Ot.Z)("Statistic",Ge=>{const Ke=(0,it.TS)(Ge,{});return[Pt(Ke)]},Ge=>{const{fontSizeHeading3:Ke,fontSize:Ye}=Ge;return{titleFontSize:Ye,contentFontSize:Ke}}),ne=Ge=>{const{prefixCls:Ke,className:Ye,rootClassName:pt,style:Je,valueStyle:kt,value:Xe=0,title:Wt,valueRender:zt,prefix:jt,suffix:Mt,loading:Ut=!1,onMouseEnter:ft,onMouseLeave:Re,decimalSeparator:Lt=".",groupSeparator:yn=","}=Ge,{getPrefixCls:mn,direction:Nt,statistic:en}=ye.useContext(qe.E_),nn=mn("statistic",Ke),[On,dn]=Me(nn),Tn=ye.createElement(Et,Object.assign({decimalSeparator:Lt,groupSeparator:yn,prefixCls:nn},Ge,{value:Xe})),mt=$e()(nn,{[`${nn}-rtl`]:Nt==="rtl"},en==null?void 0:en.className,Ye,pt,dn);return On(ye.createElement("div",{className:mt,style:Object.assign(Object.assign({},en==null?void 0:en.style),Je),onMouseEnter:ft,onMouseLeave:Re},Wt&&ye.createElement("div",{className:`${nn}-title`},Wt),ye.createElement(De.Z,{paragraph:!1,loading:Ut,className:`${nn}-skeleton`},ye.createElement("div",{style:kt,className:`${nn}-content`},jt&&ye.createElement("span",{className:`${nn}-content-prefix`},jt),zt?zt(Tn):Tn,Mt&&ye.createElement("span",{className:`${nn}-content-suffix`},Mt)))))};const ce=[["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 se(Ge,Ke){let Ye=Ge;const pt=/\[[^\]]*]/g,Je=(Ke.match(pt)||[]).map(zt=>zt.slice(1,-1)),kt=Ke.replace(pt,"[]"),Xe=ce.reduce((zt,jt)=>{let[Mt,Ut]=jt;if(zt.includes(Mt)){const ft=Math.floor(Ye/Ut);return Ye-=ft*Ut,zt.replace(new RegExp(`${Mt}+`,"g"),Re=>{const Lt=Re.length;return ft.toString().padStart(Lt,"0")})}return zt},kt);let Wt=0;return Xe.replace(pt,()=>{const zt=Je[Wt];return Wt+=1,zt})}function ge(Ge,Ke){const{format:Ye=""}=Ke,pt=new Date(Ge).getTime(),Je=Date.now(),kt=Math.max(pt-Je,0);return se(kt,Ye)}const me=1e3/30;function Ce(Ge){return new Date(Ge).getTime()}const Fe=Ge=>{const{value:Ke,format:Ye="HH:mm:ss",onChange:pt,onFinish:Je}=Ge,kt=(0,Oe.Z)(),Xe=ye.useRef(null),Wt=()=>{Je==null||Je(),Xe.current&&(clearInterval(Xe.current),Xe.current=null)},zt=()=>{const Ut=Ce(Ke);Ut>=Date.now()&&(Xe.current=setInterval(()=>{kt(),pt==null||pt(Ut-Date.now()),Ut<Date.now()&&Wt()},me))};ye.useEffect(()=>(zt(),()=>{Xe.current&&(clearInterval(Xe.current),Xe.current=null)}),[Ke]);const jt=(Ut,ft)=>ge(Ut,Object.assign(Object.assign({},ft),{format:Ye})),Mt=Ut=>(0,He.Tm)(Ut,{title:void 0});return ye.createElement(ne,Object.assign({},Ge,{valueRender:Mt,formatter:jt}))};var Pe=ye.memo(Fe);ne.Countdown=Pe;var Ie=ne},15969:function(Rn,Mn,ve){"use strict";ve.d(Mn,{N:function(){return ye}});const ye=Oe=>({color:Oe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Oe.motionDurationSlow}`,"&:focus, &:hover":{color:Oe.colorLinkHover},"&:active":{color:Oe.colorLinkActive}})},78673:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return kt}});var ye=ve(58617),Oe=ve(92310),He=ve.n(Oe),Rt=ve(92413),$e=ve(400),qe=ve(33606),De=ve(37061),Tt=ve(59301),Et=ve(18929),et=ve(10228),Ot=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],it=Tt.forwardRef(function(Xe,Wt){var zt,jt=Xe.prefixCls,Mt=jt===void 0?"rc-switch":jt,Ut=Xe.className,ft=Xe.checked,Re=Xe.defaultChecked,Lt=Xe.disabled,yn=Xe.loadingIcon,mn=Xe.checkedChildren,Nt=Xe.unCheckedChildren,en=Xe.onClick,nn=Xe.onChange,On=Xe.onKeyDown,dn=(0,De.Z)(Xe,Ot),Tn=(0,Et.Z)(!1,{value:ft,defaultValue:Re}),mt=(0,qe.Z)(Tn,2),Gn=mt[0],xn=mt[1];function tt(ke,Se){var st=Gn;return Lt||(st=ke,xn(st),nn==null||nn(st,Se)),st}function Ee(ke){ke.which===et.Z.LEFT?tt(!1,ke):ke.which===et.Z.RIGHT&&tt(!0,ke),On==null||On(ke)}function we(ke){var Se=tt(!Gn,ke);en==null||en(Se,ke)}var Be=He()(Mt,Ut,(zt={},(0,$e.Z)(zt,"".concat(Mt,"-checked"),Gn),(0,$e.Z)(zt,"".concat(Mt,"-disabled"),Lt),zt));return Tt.createElement("button",(0,Rt.Z)({},dn,{type:"button",role:"switch","aria-checked":Gn,disabled:Lt,className:Be,ref:Wt,onKeyDown:Ee,onClick:we}),yn,Tt.createElement("span",{className:"".concat(Mt,"-inner")},Tt.createElement("span",{className:"".concat(Mt,"-inner-checked")},mn),Tt.createElement("span",{className:"".concat(Mt,"-inner-unchecked")},Nt)))});it.displayName="Switch";var Pt=it,Me=ve(14088),te=ve(36355),ne=ve(1684),ce=ve(19716),se=ve(64993),ge=ve(17313),me=ve(83116),Ce=ve(37613);const Fe=Xe=>{const{componentCls:Wt,trackHeightSM:zt,trackPadding:jt,trackMinWidthSM:Mt,innerMinMarginSM:Ut,innerMaxMarginSM:ft,handleSizeSM:Re}=Xe,Lt=`${Wt}-inner`;return{[Wt]:{[`&${Wt}-small`]:{minWidth:Mt,height:zt,lineHeight:`${zt}px`,[`${Wt}-inner`]:{paddingInlineStart:ft,paddingInlineEnd:Ut,[`${Lt}-checked`]:{marginInlineStart:`calc(-100% + ${Re+jt*2}px - ${ft*2}px)`,marginInlineEnd:`calc(100% - ${Re+jt*2}px + ${ft*2}px)`},[`${Lt}-unchecked`]:{marginTop:-zt,marginInlineStart:0,marginInlineEnd:0}},[`${Wt}-handle`]:{width:Re,height:Re},[`${Wt}-loading-icon`]:{top:(Re-Xe.switchLoadingIconSize)/2,fontSize:Xe.switchLoadingIconSize},[`&${Wt}-checked`]:{[`${Wt}-inner`]:{paddingInlineStart:Ut,paddingInlineEnd:ft,[`${Lt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Lt}-unchecked`]:{marginInlineStart:`calc(100% - ${Re+jt*2}px + ${ft*2}px)`,marginInlineEnd:`calc(-100% + ${Re+jt*2}px - ${ft*2}px)`}},[`${Wt}-handle`]:{insetInlineStart:`calc(100% - ${Re+jt}px)`}},[`&:not(${Wt}-disabled):active`]:{[`&:not(${Wt}-checked) ${Lt}`]:{[`${Lt}-unchecked`]:{marginInlineStart:Xe.marginXXS/2,marginInlineEnd:-Xe.marginXXS/2}},[`&${Wt}-checked ${Lt}`]:{[`${Lt}-checked`]:{marginInlineStart:-Xe.marginXXS/2,marginInlineEnd:Xe.marginXXS/2}}}}}}},Pe=Xe=>{const{componentCls:Wt,handleSize:zt}=Xe;return{[Wt]:{[`${Wt}-loading-icon${Xe.iconCls}`]:{position:"relative",top:(zt-Xe.fontSize)/2,color:Xe.switchLoadingIconColor,verticalAlign:"top"},[`&${Wt}-checked ${Wt}-loading-icon`]:{color:Xe.switchColor}}}},Ie=Xe=>{const{componentCls:Wt,motion:zt,trackPadding:jt,handleBg:Mt,handleShadow:Ut,handleSize:ft}=Xe,Re=`${Wt}-handle`;return{[Wt]:{[Re]:{position:"absolute",top:jt,insetInlineStart:jt,width:ft,height:ft,transition:`all ${Xe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Mt,borderRadius:ft/2,boxShadow:Ut,transition:`all ${Xe.switchDuration} ease-in-out`,content:'""'}},[`&${Wt}-checked ${Re}`]:{insetInlineStart:`calc(100% - ${ft+jt}px)`},[`&:not(${Wt}-disabled):active`]:zt?{[`${Re}::before`]:{insetInlineEnd:Xe.switchHandleActiveInset,insetInlineStart:0},[`&${Wt}-checked ${Re}::before`]:{insetInlineEnd:0,insetInlineStart:Xe.switchHandleActiveInset}}:{}}}},Ge=Xe=>{const{componentCls:Wt,trackHeight:zt,trackPadding:jt,innerMinMargin:Mt,innerMaxMargin:Ut,handleSize:ft}=Xe,Re=`${Wt}-inner`;return{[Wt]:{[Re]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ut,paddingInlineEnd:Mt,transition:`padding-inline-start ${Xe.switchDuration} ease-in-out, padding-inline-end ${Xe.switchDuration} ease-in-out`,[`${Re}-checked, ${Re}-unchecked`]:{display:"block",color:Xe.colorTextLightSolid,fontSize:Xe.fontSizeSM,transition:`margin-inline-start ${Xe.switchDuration} ease-in-out, margin-inline-end ${Xe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Re}-checked`]:{marginInlineStart:`calc(-100% + ${ft+jt*2}px - ${Ut*2}px)`,marginInlineEnd:`calc(100% - ${ft+jt*2}px + ${Ut*2}px)`},[`${Re}-unchecked`]:{marginTop:-zt,marginInlineStart:0,marginInlineEnd:0}},[`&${Wt}-checked ${Re}`]:{paddingInlineStart:Mt,paddingInlineEnd:Ut,[`${Re}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Re}-unchecked`]:{marginInlineStart:`calc(100% - ${ft+jt*2}px + ${Ut*2}px)`,marginInlineEnd:`calc(-100% + ${ft+jt*2}px - ${Ut*2}px)`}},[`&:not(${Wt}-disabled):active`]:{[`&:not(${Wt}-checked) ${Re}`]:{[`${Re}-unchecked`]:{marginInlineStart:jt*2,marginInlineEnd:-jt*2}},[`&${Wt}-checked ${Re}`]:{[`${Re}-checked`]:{marginInlineStart:-jt*2,marginInlineEnd:jt*2}}}}}},Ke=Xe=>{const{componentCls:Wt,trackHeight:zt,trackMinWidth:jt}=Xe;return{[Wt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(Xe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:jt,height:zt,lineHeight:`${zt}px`,verticalAlign:"middle",background:Xe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Xe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Wt}-disabled)`]:{background:Xe.colorTextTertiary}}),(0,ge.Qy)(Xe)),{[`&${Wt}-checked`]:{background:Xe.switchColor,[`&:hover:not(${Wt}-disabled)`]:{background:Xe.colorPrimaryHover}},[`&${Wt}-loading, &${Wt}-disabled`]:{cursor:"not-allowed",opacity:Xe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Wt}-rtl`]:{direction:"rtl"}})}};var Ye=(0,me.Z)("Switch",Xe=>{const Wt=(0,Ce.TS)(Xe,{switchDuration:Xe.motionDurationMid,switchColor:Xe.colorPrimary,switchDisabledOpacity:Xe.opacityLoading,switchLoadingIconSize:Xe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Xe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ke(Wt),Ge(Wt),Ie(Wt),Pe(Wt),Fe(Wt)]},Xe=>{const{fontSize:Wt,lineHeight:zt,controlHeight:jt,colorWhite:Mt}=Xe,Ut=Wt*zt,ft=jt/2,Re=2,Lt=Ut-Re*2,yn=ft-Re*2;return{trackHeight:Ut,trackHeightSM:ft,trackMinWidth:Lt*2+Re*4,trackMinWidthSM:yn*2+Re*2,trackPadding:Re,handleBg:Mt,handleSize:Lt,handleSizeSM:yn,handleShadow:`0 2px 4px 0 ${new se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Lt/2,innerMaxMargin:Lt+Re+Re*2,innerMinMarginSM:yn/2,innerMaxMarginSM:yn+Re+Re*2}}),pt=function(Xe,Wt){var zt={};for(var jt in Xe)Object.prototype.hasOwnProperty.call(Xe,jt)&&Wt.indexOf(jt)<0&&(zt[jt]=Xe[jt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,jt=Object.getOwnPropertySymbols(Xe);Mt<jt.length;Mt++)Wt.indexOf(jt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,jt[Mt])&&(zt[jt[Mt]]=Xe[jt[Mt]]);return zt};const Je=Tt.forwardRef((Xe,Wt)=>{const{prefixCls:zt,size:jt,disabled:Mt,loading:Ut,className:ft,rootClassName:Re,style:Lt}=Xe,yn=pt(Xe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:mn,direction:Nt,switch:en}=Tt.useContext(te.E_),nn=Tt.useContext(ne.Z),On=(Mt!=null?Mt:nn)||Ut,dn=mn("switch",zt),Tn=Tt.createElement("div",{className:`${dn}-handle`},Ut&&Tt.createElement(ye.Z,{className:`${dn}-loading-icon`})),[mt,Gn]=Ye(dn),xn=(0,ce.Z)(jt),tt=He()(en==null?void 0:en.className,{[`${dn}-small`]:xn==="small",[`${dn}-loading`]:Ut,[`${dn}-rtl`]:Nt==="rtl"},ft,Re,Gn),Ee=Object.assign(Object.assign({},en==null?void 0:en.style),Lt);return mt(Tt.createElement(Me.Z,{component:"Switch"},Tt.createElement(Pt,Object.assign({},yn,{prefixCls:dn,className:tt,style:Ee,disabled:On,ref:Wt,loadingIcon:Tn}))))});Je.__ANT_SWITCH=!0;var kt=Je},1710:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return hl}});var ye={},Oe="rc-table-internal-hook",He=ve(33606),Rt=ve(6089),$e=ve(34280),qe=ve(13697),De=ve(59301),Tt=ve(4676);function Et(rt){var gt=De.createContext(void 0),Xt=function(Pn){var hn=Pn.value,Jn=Pn.children,Yn=De.useRef(hn);Yn.current=hn;var Vn=De.useState(function(){return{getValue:function(){return Yn.current},listeners:new Set}}),xi=(0,He.Z)(Vn,1),si=xi[0];return(0,$e.Z)(function(){(0,Tt.unstable_batchedUpdates)(function(){si.listeners.forEach(function(Si){Si(hn)})})},[hn]),De.createElement(gt.Provider,{value:si},Jn)};return{Context:gt,Provider:Xt,defaultValue:rt}}function et(rt,gt){var Xt=(0,Rt.Z)(typeof gt=="function"?gt:function(Si){if(gt===void 0)return Si;if(!Array.isArray(gt))return Si[gt];var Qi={};return gt.forEach(function(Xi){Qi[Xi]=Si[Xi]}),Qi}),Qt=De.useContext(rt==null?void 0:rt.Context),Pn=Qt||{},hn=Pn.listeners,Jn=Pn.getValue,Yn=De.useRef();Yn.current=Xt(Qt?Jn():rt==null?void 0:rt.defaultValue);var Vn=De.useState({}),xi=(0,He.Z)(Vn,2),si=xi[1];return(0,$e.Z)(function(){if(!Qt)return;function Si(Qi){var Xi=Xt(Qi);(0,qe.Z)(Yn.current,Xi,!0)||si({})}return hn.add(Si),function(){hn.delete(Si)}},[Qt]),Yn.current}var Ot=ve(92413),it=ve(8654);function Pt(){var rt=De.createContext(null);function gt(){return De.useContext(rt)}function Xt(Pn,hn){var Jn=(0,it.Yr)(Pn),Yn=function(xi,si){var Si=Jn?{ref:si}:{},Qi=De.useRef(0),Xi=De.useRef(xi),Ii=gt();return Ii!==null?De.createElement(Pn,(0,Ot.Z)({},xi,Si)):((!hn||hn(Xi.current,xi))&&(Qi.current+=1),Xi.current=xi,De.createElement(rt.Provider,{value:Qi.current},De.createElement(Pn,(0,Ot.Z)({},xi,Si))))};return Jn?De.forwardRef(Yn):Yn}function Qt(Pn,hn){var Jn=(0,it.Yr)(Pn),Yn=function(xi,si){var Si=Jn?{ref:si}:{};return gt(),De.createElement(Pn,(0,Ot.Z)({},xi,Si))};return Jn?De.memo(De.forwardRef(Yn),hn):De.memo(Yn,hn)}return{makeImmutable:Xt,responseImmutable:Qt,useImmutableMark:gt}}var Me=Pt(),te=Me.makeImmutable,ne=Me.responseImmutable,ce=Me.useImmutableMark,se=Pt(),ge=se.makeImmutable,me=se.responseImmutable,Ce=se.useImmutableMark,Fe=Et(),Pe=Fe;function Ie(rt,gt){var Xt=De.useRef(0);Xt.current+=1;var Qt=De.useRef(rt),Pn=[];Object.keys(rt||{}).map(function(Jn){var Yn;(rt==null?void 0:rt[Jn])!==((Yn=Qt.current)===null||Yn===void 0?void 0:Yn[Jn])&&Pn.push(Jn)}),Qt.current=rt;var hn=De.useRef([]);return Pn.length&&(hn.current=Pn),De.useDebugValue(Xt.current),De.useDebugValue(hn.current.join(", ")),gt&&console.log("".concat(gt,":"),Xt.current,hn.current),Xt.current}var Ge=null,Ke=De.memo(function(){var rt=Ie();return De.createElement("h1",null,"Render Times: ",rt)});Ke.displayName="RenderBlock";var Ye=ve(39559),pt=ve(33708),Je=ve(400),kt=ve(92310),Xe=ve.n(kt),Wt=ve(80547),zt=ve(97938),jt=ve(48736),Mt=De.createContext({renderWithProps:!1}),Ut=Mt,ft="RC_TABLE_KEY";function Re(rt){return rt==null?[]:Array.isArray(rt)?rt:[rt]}function Lt(rt){var gt=[],Xt={};return rt.forEach(function(Qt){for(var Pn=Qt||{},hn=Pn.key,Jn=Pn.dataIndex,Yn=hn||Re(Jn).join("-")||ft;Xt[Yn];)Yn="".concat(Yn,"_next");Xt[Yn]=!0,gt.push(Yn)}),gt}function yn(rt){return rt!=null}function mn(rt){return rt&&(0,Ye.Z)(rt)==="object"&&!Array.isArray(rt)&&!De.isValidElement(rt)}function Nt(rt,gt,Xt,Qt,Pn,hn){var Jn=De.useContext(Ut),Yn=Ce(),Vn=(0,Wt.Z)(function(){if(yn(Qt))return[Qt];var xi=gt==null||gt===""?[]:Array.isArray(gt)?gt:[gt],si=(0,zt.Z)(rt,xi),Si=si,Qi=void 0;if(Pn){var Xi=Pn(si,rt,Xt);mn(Xi)?(Si=Xi.children,Qi=Xi.props,Jn.renderWithProps=!0):Si=Xi}return[Si,Qi]},[Yn,rt,Qt,gt,Pn,Xt],function(xi,si){if(hn){var Si=(0,He.Z)(xi,2),Qi=Si[1],Xi=(0,He.Z)(si,2),Ii=Xi[1];return hn(Ii,Qi)}return Jn.renderWithProps?!0:!(0,qe.Z)(xi,si,!0)});return Vn}function en(rt,gt,Xt,Qt){var Pn=rt+gt-1;return rt<=Qt&&Pn>=Xt}function nn(rt,gt){return et(Pe,function(Xt){var Qt=en(rt,gt||1,Xt.hoverStartRow,Xt.hoverEndRow);return[Qt,Xt.onHover]})}var On=function(gt){var Xt=gt.ellipsis,Qt=gt.rowType,Pn=gt.children,hn,Jn=Xt===!0?{showTitle:!0}:Xt;return Jn&&(Jn.showTitle||Qt==="header")&&(typeof Pn=="string"||typeof Pn=="number"?hn=Pn.toString():De.isValidElement(Pn)&&typeof Pn.props.children=="string"&&(hn=Pn.props.children)),hn};function dn(rt){var gt,Xt,Qt,Pn,hn,Jn,Yn,Vn,xi=rt.component,si=rt.children,Si=rt.ellipsis,Qi=rt.scope,Xi=rt.prefixCls,Ii=rt.className,Sr=rt.align,Zi=rt.record,Lr=rt.render,Er=rt.dataIndex,Or=rt.renderIndex,yo=rt.shouldCellUpdate,Lo=rt.index,Hr=rt.rowType,qr=rt.colSpan,Vo=rt.rowSpan,Ir=rt.fixLeft,ao=rt.fixRight,Wr=rt.firstFixLeft,mr=rt.lastFixLeft,Dr=rt.firstFixRight,lo=rt.lastFixRight,Mo=rt.appendNode,ko=rt.additionalProps,Br=ko===void 0?{}:ko,Go=rt.isSticky,_o="".concat(Xi,"-cell"),na=et(Pe,["supportSticky","allColumnsFixedLeft"]),ta=na.supportSticky,_a=na.allColumnsFixedLeft,ga=Nt(Zi,Er,Or,si,Lr,yo),Ho=(0,He.Z)(ga,2),wo=Ho[0],Oo=Ho[1],Ua={},Ia=typeof Ir=="number"&&ta,ts=typeof ao=="number"&&ta;Ia&&(Ua.position="sticky",Ua.left=Ir),ts&&(Ua.position="sticky",Ua.right=ao);var Ro=(gt=(Xt=(Qt=Oo==null?void 0:Oo.colSpan)!==null&&Qt!==void 0?Qt:Br.colSpan)!==null&&Xt!==void 0?Xt:qr)!==null&&gt!==void 0?gt:1,bo=(Pn=(hn=(Jn=Oo==null?void 0:Oo.rowSpan)!==null&&Jn!==void 0?Jn:Br.rowSpan)!==null&&hn!==void 0?hn:Vo)!==null&&Pn!==void 0?Pn:1,Wo=nn(Lo,bo),xo=(0,He.Z)(Wo,2),oo=xo[0],qi=xo[1],Vr=function(Bo){var Vs;Zi&&qi(Lo,Lo+bo-1),Br==null||(Vs=Br.onMouseEnter)===null||Vs===void 0||Vs.call(Br,Bo)},Xo=function(Bo){var Vs;Zi&&qi(-1,-1),Br==null||(Vs=Br.onMouseLeave)===null||Vs===void 0||Vs.call(Br,Bo)};if(Ro===0||bo===0)return null;var ua=(Yn=Br.title)!==null&&Yn!==void 0?Yn:On({rowType:Hr,ellipsis:Si,children:wo}),al=Xe()(_o,Ii,(Vn={},(0,Je.Z)(Vn,"".concat(_o,"-fix-left"),Ia&&ta),(0,Je.Z)(Vn,"".concat(_o,"-fix-left-first"),Wr&&ta),(0,Je.Z)(Vn,"".concat(_o,"-fix-left-last"),mr&&ta),(0,Je.Z)(Vn,"".concat(_o,"-fix-left-all"),mr&&_a&&ta),(0,Je.Z)(Vn,"".concat(_o,"-fix-right"),ts&&ta),(0,Je.Z)(Vn,"".concat(_o,"-fix-right-first"),Dr&&ta),(0,Je.Z)(Vn,"".concat(_o,"-fix-right-last"),lo&&ta),(0,Je.Z)(Vn,"".concat(_o,"-ellipsis"),Si),(0,Je.Z)(Vn,"".concat(_o,"-with-append"),Mo),(0,Je.Z)(Vn,"".concat(_o,"-fix-sticky"),(Ia||ts)&&Go&&ta),(0,Je.Z)(Vn,"".concat(_o,"-row-hover"),!Oo&&oo),Vn),Br.className,Oo==null?void 0:Oo.className),Rs={};Sr&&(Rs.textAlign=Sr);var Al=(0,pt.Z)((0,pt.Z)((0,pt.Z)((0,pt.Z)({},Ua),Br.style),Rs),Oo==null?void 0:Oo.style),Na=wo;return(0,Ye.Z)(Na)==="object"&&!Array.isArray(Na)&&!De.isValidElement(Na)&&(Na=null),Si&&(mr||Dr)&&(Na=De.createElement("span",{className:"".concat(_o,"-content")},Na)),De.createElement(xi,(0,Ot.Z)({},Oo,Br,{className:al,style:Al,title:ua,scope:Qi,onMouseEnter:Vr,onMouseLeave:Xo,colSpan:Ro!==1?Ro:null,rowSpan:bo!==1?bo:null}),Mo,Na)}var Tn=De.memo(dn);function mt(rt,gt,Xt,Qt,Pn,hn){var Jn=Xt[rt]||{},Yn=Xt[gt]||{},Vn,xi;Jn.fixed==="left"?Vn=Qt.left[Pn==="rtl"?gt:rt]:Yn.fixed==="right"&&(xi=Qt.right[Pn==="rtl"?rt:gt]);var si=!1,Si=!1,Qi=!1,Xi=!1,Ii=Xt[gt+1],Sr=Xt[rt-1],Zi=!(hn!=null&&hn.children);if(Pn==="rtl"){if(Vn!==void 0){var Lr=Sr&&Sr.fixed==="left";Xi=!Lr&&Zi}else if(xi!==void 0){var Er=Ii&&Ii.fixed==="right";Qi=!Er&&Zi}}else if(Vn!==void 0){var Or=Ii&&Ii.fixed==="left";si=!Or&&Zi}else if(xi!==void 0){var yo=Sr&&Sr.fixed==="right";Si=!yo&&Zi}return{fixLeft:Vn,fixRight:xi,lastFixLeft:si,firstFixRight:Si,lastFixRight:Qi,firstFixLeft:Xi,isSticky:Qt.isSticky}}var Gn=De.createContext({}),xn=Gn;function tt(rt){var gt=rt.className,Xt=rt.index,Qt=rt.children,Pn=rt.colSpan,hn=Pn===void 0?1:Pn,Jn=rt.rowSpan,Yn=rt.align,Vn=et(Pe,["prefixCls","direction"]),xi=Vn.prefixCls,si=Vn.direction,Si=De.useContext(xn),Qi=Si.scrollColumnIndex,Xi=Si.stickyOffsets,Ii=Si.flattenColumns,Sr=Si.columns,Zi=Xt+hn-1,Lr=Zi+1===Qi?hn+1:hn,Er=mt(Xt,Xt+Lr-1,Ii,Xi,si,Sr==null?void 0:Sr[Xt]);return De.createElement(Tn,(0,Ot.Z)({className:gt,index:Xt,component:"td",prefixCls:xi,record:null,dataIndex:null,align:Yn,colSpan:Lr,rowSpan:Jn,render:function(){return Qt}},Er))}var Ee=ve(37061),we=["children"];function Be(rt){var gt=rt.children,Xt=(0,Ee.Z)(rt,we);return De.createElement("tr",Xt,gt)}function ke(rt){var gt=rt.children;return gt}ke.Row=Be,ke.Cell=tt;var Se=ke;function st(rt){var gt=rt.children,Xt=rt.stickyOffsets,Qt=rt.flattenColumns,Pn=rt.columns,hn=et(Pe,"prefixCls"),Jn=Qt.length-1,Yn=Qt[Jn],Vn=De.useMemo(function(){return{stickyOffsets:Xt,flattenColumns:Qt,scrollColumnIndex:Yn!=null&&Yn.scrollbar?Jn:null,columns:Pn}},[Yn,Qt,Jn,Xt,Pn]);return De.createElement(xn.Provider,{value:Vn},De.createElement("tfoot",{className:"".concat(hn,"-summary")},gt))}var At=me(st),Ve=Se,We=ve(70425),Ct=ve(29301),bt=ve(29194),dt=ve(24514),Ht=ve(75152),En=ve(26112);function An(rt,gt,Xt,Qt,Pn,hn,Jn){rt.push({record:gt,indent:Xt,index:Jn});var Yn=hn(gt),Vn=Pn==null?void 0:Pn.has(Yn);if(gt&&Array.isArray(gt[Qt])&&Vn)for(var xi=0;xi<gt[Qt].length;xi+=1)An(rt,gt[Qt][xi],Xt+1,Qt,Pn,hn,xi)}function qt(rt,gt,Xt,Qt){var Pn=De.useMemo(function(){if(Xt!=null&&Xt.size){for(var hn=[],Jn=0;Jn<(rt==null?void 0:rt.length);Jn+=1){var Yn=rt[Jn];An(hn,Yn,0,gt,Xt,Qt,Jn)}return hn}return rt==null?void 0:rt.map(function(Vn,xi){return{record:Vn,indent:0,index:xi}})},[rt,gt,Xt,Qt]);return Pn}function cn(rt){var gt=rt.prefixCls,Xt=rt.children,Qt=rt.component,Pn=rt.cellComponent,hn=rt.className,Jn=rt.expanded,Yn=rt.colSpan,Vn=rt.isEmpty,xi=et(Pe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),si=xi.scrollbarSize,Si=xi.fixHeader,Qi=xi.fixColumn,Xi=xi.componentWidth,Ii=xi.horizonScroll,Sr=Xt;return(Vn?Ii&&Xi:Qi)&&(Sr=De.createElement("div",{style:{width:Xi-(Si?si:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(gt,"-expanded-row-fixed")},Sr)),De.createElement(Qt,{className:hn,style:{display:Jn?null:"none"}},De.createElement(Tn,{component:Pn,prefixCls:gt,colSpan:Yn},Sr))}var qn=cn;function wn(rt,gt,Xt,Qt){var Pn=et(Pe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),hn=Pn.flattenColumns,Jn=Pn.expandableType,Yn=Pn.expandedKeys,Vn=Pn.childrenColumnName,xi=Pn.onTriggerExpand,si=Pn.rowExpandable,Si=Pn.onRow,Qi=Pn.expandRowByClick,Xi=Pn.rowClassName,Ii=Jn==="nest",Sr=Jn==="row"&&(!si||si(rt)),Zi=Sr||Ii,Lr=Yn&&Yn.has(gt),Er=Vn&&rt&&rt[Vn],Or=(0,We.useEvent)(xi),yo=Si==null?void 0:Si(rt,Xt),Lo=yo==null?void 0:yo.onClick,Hr=function(ao){Qi&&Zi&&xi(rt,ao);for(var Wr=arguments.length,mr=new Array(Wr>1?Wr-1:0),Dr=1;Dr<Wr;Dr++)mr[Dr-1]=arguments[Dr];Lo==null||Lo.apply(void 0,[ao].concat(mr))},qr;typeof Xi=="string"?qr=Xi:typeof Xi=="function"&&(qr=Xi(rt,Xt,Qt));var Vo=Lt(hn);return(0,pt.Z)((0,pt.Z)({},Pn),{},{columnsKey:Vo,nestExpandable:Ii,expanded:Lr,hasNestChildren:Er,record:rt,onTriggerExpand:Or,rowSupportExpand:Sr,expandable:Zi,rowProps:(0,pt.Z)((0,pt.Z)({},yo),{},{className:Xe()(qr,yo==null?void 0:yo.className),onClick:Hr})})}function vi(rt,gt,Xt,Qt,Pn){var hn=rt.record,Jn=rt.prefixCls,Yn=rt.columnsKey,Vn=rt.fixedInfoList,xi=rt.expandIconColumnIndex,si=rt.nestExpandable,Si=rt.indentSize,Qi=rt.expandIcon,Xi=rt.expanded,Ii=rt.hasNestChildren,Sr=rt.onTriggerExpand,Zi=Yn[Xt],Lr=Vn[Xt],Er;Xt===(xi||0)&&si&&(Er=De.createElement(De.Fragment,null,De.createElement("span",{style:{paddingLeft:"".concat(Si*Qt,"px")},className:"".concat(Jn,"-row-indent indent-level-").concat(Qt)}),Qi({prefixCls:Jn,expanded:Xi,expandable:Ii,record:hn,onExpand:Sr})));var Or;return gt.onCell&&(Or=gt.onCell(hn,Pn)),{key:Zi,fixedInfo:Lr,appendCellNode:Er,additionalCellProps:Or||{}}}function ei(rt){var gt=rt.className,Xt=rt.style,Qt=rt.record,Pn=rt.index,hn=rt.renderIndex,Jn=rt.rowKey,Yn=rt.indent,Vn=Yn===void 0?0:Yn,xi=rt.rowComponent,si=rt.cellComponent,Si=rt.scopeCellComponent,Qi=wn(Qt,Jn,Pn,Vn),Xi=Qi.prefixCls,Ii=Qi.flattenColumns,Sr=Qi.expandedRowClassName,Zi=Qi.expandedRowRender,Lr=Qi.rowProps,Er=Qi.expanded,Or=Qi.rowSupportExpand,yo=De.useState(!1),Lo=(0,He.Z)(yo,2),Hr=Lo[0],qr=Lo[1];De.useEffect(function(){Er&&qr(!0)},[Er]);var Vo=De.createElement(xi,(0,Ot.Z)({},Lr,{"data-row-key":Jn,className:Xe()(gt,"".concat(Xi,"-row"),"".concat(Xi,"-row-level-").concat(Vn),Lr==null?void 0:Lr.className),style:(0,pt.Z)((0,pt.Z)({},Xt),Lr==null?void 0:Lr.style)}),Ii.map(function(mr,Dr){var lo=mr.render,Mo=mr.dataIndex,ko=mr.className,Br=vi(Qi,mr,Dr,Vn,Pn),Go=Br.key,_o=Br.fixedInfo,na=Br.appendCellNode,ta=Br.additionalCellProps;return De.createElement(Tn,(0,Ot.Z)({className:ko,ellipsis:mr.ellipsis,align:mr.align,scope:mr.rowScope,component:mr.rowScope?Si:si,prefixCls:Xi,key:Go,record:Qt,index:Pn,renderIndex:hn,dataIndex:Mo,render:lo,shouldCellUpdate:mr.shouldCellUpdate},_o,{appendNode:na,additionalProps:ta}))})),Ir;if(Or&&(Hr||Er)){var ao=Zi(Qt,Pn,Vn+1,Er),Wr=Sr&&Sr(Qt,Pn,Vn);Ir=De.createElement(qn,{expanded:Er,className:Xe()("".concat(Xi,"-expanded-row"),"".concat(Xi,"-expanded-row-level-").concat(Vn+1),Wr),prefixCls:Xi,component:xi,cellComponent:si,colSpan:Ii.length,isEmpty:!1},ao)}return De.createElement(De.Fragment,null,Vo,Ir)}ei.displayName="BodyRow";var Li=me(ei);function Vi(rt){var gt=rt.columnKey,Xt=rt.onColumnResize,Qt=De.useRef();return De.useEffect(function(){Qt.current&&Xt(gt,Qt.current.offsetWidth)},[]),De.createElement(Ct.Z,{data:gt},De.createElement("td",{ref:Qt,style:{padding:0,border:0,height:0}},De.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function zi(rt){var gt=rt.prefixCls,Xt=rt.columnsKey,Qt=rt.onColumnResize;return De.createElement("tr",{"aria-hidden":"true",className:"".concat(gt,"-measure-row"),style:{height:0,fontSize:0}},De.createElement(Ct.Z.Collection,{onBatchResize:function(hn){hn.forEach(function(Jn){var Yn=Jn.data,Vn=Jn.size;Qt(Yn,Vn.offsetWidth)})}},Xt.map(function(Pn){return De.createElement(Vi,{key:Pn,columnKey:Pn,onColumnResize:Qt})})))}function Bn(rt){var gt=rt.data,Xt=rt.measureColumnWidth,Qt=et(Pe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Pn=Qt.prefixCls,hn=Qt.getComponent,Jn=Qt.onColumnResize,Yn=Qt.flattenColumns,Vn=Qt.getRowKey,xi=Qt.expandedKeys,si=Qt.childrenColumnName,Si=Qt.emptyNode,Qi=qt(gt,si,xi,Vn),Xi=De.useRef({renderWithProps:!1}),Ii=hn(["body","wrapper"],"tbody"),Sr=hn(["body","row"],"tr"),Zi=hn(["body","cell"],"td"),Lr=hn(["body","cell"],"th"),Er;gt.length?Er=Qi.map(function(yo,Lo){var Hr=yo.record,qr=yo.indent,Vo=yo.index,Ir=Vn(Hr,Lo);return De.createElement(Li,{key:Ir,rowKey:Ir,record:Hr,index:Lo,renderIndex:Vo,rowComponent:Sr,cellComponent:Zi,scopeCellComponent:Lr,getRowKey:Vn,indent:qr})}):Er=De.createElement(qn,{expanded:!0,className:"".concat(Pn,"-placeholder"),prefixCls:Pn,component:Sr,cellComponent:Zi,colSpan:Yn.length,isEmpty:!0},Si);var Or=Lt(Yn);return De.createElement(Ut.Provider,{value:Xi.current},De.createElement(Ii,{className:"".concat(Pn,"-tbody")},Xt&&De.createElement(zi,{prefixCls:Pn,columnsKey:Or,onColumnResize:Jn}),Er))}Bn.displayName="Body";var rr=me(Bn),Yr=["expandable"],zr="RC_TABLE_INTERNAL_COL_DEFINE";function Zr(rt){var gt=rt.expandable,Xt=(0,Ee.Z)(rt,Yr),Qt;return"expandable"in rt?Qt=(0,pt.Z)((0,pt.Z)({},Xt),gt):Qt=Xt,Qt.showExpandColumn===!1&&(Qt.expandIconColumnIndex=-1),Qt}var Nr=["columnType"];function Co(rt){for(var gt=rt.colWidths,Xt=rt.columns,Qt=rt.columCount,Pn=[],hn=Qt||Xt.length,Jn=!1,Yn=hn-1;Yn>=0;Yn-=1){var Vn=gt[Yn],xi=Xt&&Xt[Yn],si=xi&&xi[zr];if(Vn||si||Jn){var Si=si||{},Qi=Si.columnType,Xi=(0,Ee.Z)(Si,Nr);Pn.unshift(De.createElement("col",(0,Ot.Z)({key:Yn,style:{width:Vn}},Xi))),Jn=!0}}return De.createElement("colgroup",null,Pn)}var $r=Co,sr=ve(26407),Fo=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ti(rt,gt){return(0,De.useMemo)(function(){for(var Xt=[],Qt=0;Qt<gt;Qt+=1){var Pn=rt[Qt];if(Pn!==void 0)Xt[Qt]=Pn;else return null}return Xt},[rt.join("_"),gt])}var Ae=De.forwardRef(function(rt,gt){var Xt=rt.className,Qt=rt.noData,Pn=rt.columns,hn=rt.flattenColumns,Jn=rt.colWidths,Yn=rt.columCount,Vn=rt.stickyOffsets,xi=rt.direction,si=rt.fixHeader,Si=rt.stickyTopOffset,Qi=rt.stickyBottomOffset,Xi=rt.stickyClassName,Ii=rt.onScroll,Sr=rt.maxContentScroll,Zi=rt.children,Lr=(0,Ee.Z)(rt,Fo),Er=et(Pe,["prefixCls","scrollbarSize","isSticky"]),Or=Er.prefixCls,yo=Er.scrollbarSize,Lo=Er.isSticky,Hr=Lo&&!si?0:yo,qr=De.useRef(null),Vo=De.useCallback(function(ko){(0,it.mH)(gt,ko),(0,it.mH)(qr,ko)},[]);De.useEffect(function(){var ko;function Br(Go){var _o=Go,na=_o.currentTarget,ta=_o.deltaX;ta&&(Ii({currentTarget:na,scrollLeft:na.scrollLeft+ta}),Go.preventDefault())}return(ko=qr.current)===null||ko===void 0||ko.addEventListener("wheel",Br),function(){var Go;(Go=qr.current)===null||Go===void 0||Go.removeEventListener("wheel",Br)}},[]);var Ir=De.useMemo(function(){return hn.every(function(ko){return ko.width})},[hn]),ao=hn[hn.length-1],Wr={fixed:ao?ao.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Or,"-cell-scrollbar")}}},mr=(0,De.useMemo)(function(){return Hr?[].concat((0,sr.Z)(Pn),[Wr]):Pn},[Hr,Pn]),Dr=(0,De.useMemo)(function(){return Hr?[].concat((0,sr.Z)(hn),[Wr]):hn},[Hr,hn]),lo=(0,De.useMemo)(function(){var ko=Vn.right,Br=Vn.left;return(0,pt.Z)((0,pt.Z)({},Vn),{},{left:xi==="rtl"?[].concat((0,sr.Z)(Br.map(function(Go){return Go+Hr})),[0]):Br,right:xi==="rtl"?ko:[].concat((0,sr.Z)(ko.map(function(Go){return Go+Hr})),[0]),isSticky:Lo})},[Hr,Vn,Lo]),Mo=ti(Jn,Yn);return De.createElement("div",{style:(0,pt.Z)({overflow:"hidden"},Lo?{top:Si,bottom:Qi}:{}),ref:Vo,className:Xe()(Xt,(0,Je.Z)({},Xi,!!Xi))},De.createElement("table",{style:{tableLayout:"fixed",visibility:Qt||Mo?null:"hidden"}},(!Qt||!Sr||Ir)&&De.createElement($r,{colWidths:Mo?[].concat((0,sr.Z)(Mo),[Hr]):[],columCount:Yn+1,columns:Dr}),Zi((0,pt.Z)((0,pt.Z)({},Lr),{},{stickyOffsets:lo,columns:mr,flattenColumns:Dr}))))});Ae.displayName="FixedHolder";var $n=De.memo(Ae);function oi(rt){var gt=rt.cells,Xt=rt.stickyOffsets,Qt=rt.flattenColumns,Pn=rt.rowComponent,hn=rt.cellComponent,Jn=rt.tdCellComponent,Yn=rt.onHeaderRow,Vn=rt.index,xi=et(Pe,["prefixCls","direction"]),si=xi.prefixCls,Si=xi.direction,Qi;Yn&&(Qi=Yn(gt.map(function(Ii){return Ii.column}),Vn));var Xi=Lt(gt.map(function(Ii){return Ii.column}));return De.createElement(Pn,Qi,gt.map(function(Ii,Sr){var Zi=Ii.column,Lr=mt(Ii.colStart,Ii.colEnd,Qt,Xt,Si,Zi),Er;return Zi&&Zi.onHeaderCell&&(Er=Ii.column.onHeaderCell(Zi)),De.createElement(Tn,(0,Ot.Z)({},Ii,{scope:Zi.title?Ii.colSpan>1?"colgroup":"col":null,ellipsis:Zi.ellipsis,align:Zi.align,component:Zi.title?hn:Jn,prefixCls:si,key:Xi[Sr]},Lr,{additionalProps:Er,rowType:"header"}))}))}oi.displayName="HeaderRow";var fn=oi;function Qn(rt){var gt=[];function Xt(Jn,Yn){var Vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;gt[Vn]=gt[Vn]||[];var xi=Yn,si=Jn.filter(Boolean).map(function(Si){var Qi={key:Si.key,className:Si.className||"",children:Si.title,column:Si,colStart:xi},Xi=1,Ii=Si.children;return Ii&&Ii.length>0&&(Xi=Xt(Ii,xi,Vn+1).reduce(function(Sr,Zi){return Sr+Zi},0),Qi.hasSubColumns=!0),"colSpan"in Si&&(Xi=Si.colSpan),"rowSpan"in Si&&(Qi.rowSpan=Si.rowSpan),Qi.colSpan=Xi,Qi.colEnd=Qi.colStart+Xi-1,gt[Vn].push(Qi),xi+=Xi,Xi});return si}Xt(rt,0);for(var Qt=gt.length,Pn=function(Yn){gt[Yn].forEach(function(Vn){!("rowSpan"in Vn)&&!Vn.hasSubColumns&&(Vn.rowSpan=Qt-Yn)})},hn=0;hn<Qt;hn+=1)Pn(hn);return gt}function Zn(rt){var gt=rt.stickyOffsets,Xt=rt.columns,Qt=rt.flattenColumns,Pn=rt.onHeaderRow,hn=et(Pe,["prefixCls","getComponent"]),Jn=hn.prefixCls,Yn=hn.getComponent,Vn=De.useMemo(function(){return Qn(Xt)},[Xt]),xi=Yn(["header","wrapper"],"thead"),si=Yn(["header","row"],"tr"),Si=Yn(["header","cell"],"th"),Qi=Yn(["header","cell"],"td");return De.createElement(xi,{className:"".concat(Jn,"-thead")},Vn.map(function(Xi,Ii){var Sr=De.createElement(fn,{key:Ii,flattenColumns:Qt,cells:Xi,stickyOffsets:gt,rowComponent:si,cellComponent:Si,tdCellComponent:Qi,onHeaderRow:Pn,index:Ii});return Sr}))}var an=me(Zn),Jt=ve(11592);function vn(rt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof gt=="number"?gt:gt.endsWith("%")?rt*parseFloat(gt)/100:null}function xt(rt,gt){return De.useMemo(function(){if(gt&&gt>0){var Xt=0,Qt=0;rt.forEach(function(xi){var si=vn(gt,xi.width);si?Xt+=si:Qt+=1});var Pn=gt-Xt,hn=Qt,Jn=Pn/Qt,Yn=0,Vn=rt.map(function(xi){var si=(0,pt.Z)({},xi),Si=vn(gt,si.width);if(Si)si.width=Si;else{var Qi=Math.floor(Jn);si.width=hn===1?Pn:Qi,Pn-=Qi,hn-=1}return Yn+=si.width,si});return[Vn,Yn]}return[rt,gt]},[rt,gt])}var wt=["children"],ze=["fixed"];function Yt(rt){return(0,Jt.Z)(rt).filter(function(gt){return De.isValidElement(gt)}).map(function(gt){var Xt=gt.key,Qt=gt.props,Pn=Qt.children,hn=(0,Ee.Z)(Qt,wt),Jn=(0,pt.Z)({key:Xt},hn);return Pn&&(Jn.children=Yt(Pn)),Jn})}function on(rt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return rt.filter(function(Xt){return Xt&&(0,Ye.Z)(Xt)==="object"}).reduce(function(Xt,Qt,Pn){var hn=Qt.fixed,Jn=hn===!0?"left":hn,Yn="".concat(gt,"-").concat(Pn),Vn=Qt.children;return Vn&&Vn.length>0?[].concat((0,sr.Z)(Xt),(0,sr.Z)(on(Vn,Yn).map(function(xi){return(0,pt.Z)({fixed:Jn},xi)}))):[].concat((0,sr.Z)(Xt),[(0,pt.Z)((0,pt.Z)({key:Yn},Qt),{},{fixed:Jn})])},[])}function ht(rt){for(var gt=!0,Xt=0;Xt<rt.length;Xt+=1){var Qt=rt[Xt];if(gt&&Qt.fixed!=="left")gt=!1;else if(!gt&&Qt.fixed==="left"){warning(!1,"Index ".concat(Xt-1," of `columns` missing `fixed='left'` prop."));break}}for(var Pn=!0,hn=rt.length-1;hn>=0;hn-=1){var Jn=rt[hn];if(Pn&&Jn.fixed!=="right")Pn=!1;else if(!Pn&&Jn.fixed==="right"){warning(!1,"Index ".concat(hn+1," of `columns` missing `fixed='right'` prop."));break}}}function Qe(rt){return rt.map(function(gt){var Xt=gt.fixed,Qt=(0,Ee.Z)(gt,ze),Pn=Xt;return Xt==="left"?Pn="right":Xt==="right"&&(Pn="left"),(0,pt.Z)({fixed:Pn},Qt)})}function _t(rt,gt){var Xt=rt.prefixCls,Qt=rt.columns,Pn=rt.children,hn=rt.expandable,Jn=rt.expandedKeys,Yn=rt.columnTitle,Vn=rt.getRowKey,xi=rt.onTriggerExpand,si=rt.expandIcon,Si=rt.rowExpandable,Qi=rt.expandIconColumnIndex,Xi=rt.direction,Ii=rt.expandRowByClick,Sr=rt.columnWidth,Zi=rt.fixed,Lr=rt.scrollWidth,Er=De.useMemo(function(){return Qt||Yt(Pn)},[Qt,Pn]),Or=De.useMemo(function(){if(hn){var ao,Wr=Er.slice();if(!Wr.includes(ye)){var mr=Qi||0;mr>=0&&Wr.splice(mr,0,ye)}var Dr=Wr.indexOf(ye);Wr=Wr.filter(function(Br,Go){return Br!==ye||Go===Dr});var lo=Er[Dr],Mo;(Zi==="left"||Zi)&&!Qi?Mo="left":(Zi==="right"||Zi)&&Qi===Er.length?Mo="right":Mo=lo?lo.fixed:null;var ko=(ao={},(0,Je.Z)(ao,zr,{className:"".concat(Xt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Je.Z)(ao,"title",Yn),(0,Je.Z)(ao,"fixed",Mo),(0,Je.Z)(ao,"className","".concat(Xt,"-row-expand-icon-cell")),(0,Je.Z)(ao,"width",Sr),(0,Je.Z)(ao,"render",function(Go,_o,na){var ta=Vn(_o,na),_a=Jn.has(ta),ga=Si?Si(_o):!0,Ho=si({prefixCls:Xt,expanded:_a,expandable:ga,record:_o,onExpand:xi});return Ii?De.createElement("span",{onClick:function(Oo){return Oo.stopPropagation()}},Ho):Ho}),ao);return Wr.map(function(Br){return Br===ye?ko:Br})}return Er.filter(function(Br){return Br!==ye})},[hn,Er,Vn,Jn,si,Xi]),yo=De.useMemo(function(){var ao=Or;return gt&&(ao=gt(ao)),ao.length||(ao=[{render:function(){return null}}]),ao},[gt,Or,Xi]),Lo=De.useMemo(function(){return Xi==="rtl"?Qe(on(yo)):on(yo)},[yo,Xi,Lr]),Hr=xt(Lo,Lr),qr=(0,He.Z)(Hr,2),Vo=qr[0],Ir=qr[1];return[yo,Vo,Ir]}var It=_t;function Fn(rt){var gt,Xt=rt.prefixCls,Qt=rt.record,Pn=rt.onExpand,hn=rt.expanded,Jn=rt.expandable,Yn="".concat(Xt,"-row-expand-icon");if(!Jn)return De.createElement("span",{className:Xe()(Yn,"".concat(Xt,"-row-spaced"))});var Vn=function(si){Pn(Qt,si),si.stopPropagation()};return De.createElement("span",{className:Xe()(Yn,(gt={},(0,Je.Z)(gt,"".concat(Xt,"-row-expanded"),hn),(0,Je.Z)(gt,"".concat(Xt,"-row-collapsed"),!hn),gt)),onClick:Vn})}function Hn(rt,gt,Xt){var Qt=[];function Pn(hn){(hn||[]).forEach(function(Jn,Yn){Qt.push(gt(Jn,Yn)),Pn(Jn[Xt])})}return Pn(rt),Qt}function ct(rt,gt,Xt){var Qt=Zr(rt),Pn=Qt.expandIcon,hn=Qt.expandedRowKeys,Jn=Qt.defaultExpandedRowKeys,Yn=Qt.defaultExpandAllRows,Vn=Qt.expandedRowRender,xi=Qt.onExpand,si=Qt.onExpandedRowsChange,Si=Qt.childrenColumnName,Qi=Pn||Fn,Xi=Si||"children",Ii=De.useMemo(function(){return Vn?"row":rt.expandable&&rt.internalHooks===Oe&&rt.expandable.__PARENT_RENDER_ICON__||gt.some(function(Lo){return Lo&&(0,Ye.Z)(Lo)==="object"&&Lo[Xi]})?"nest":!1},[!!Vn,gt]),Sr=De.useState(function(){return Jn||(Yn?Hn(gt,Xt,Xi):[])}),Zi=(0,He.Z)(Sr,2),Lr=Zi[0],Er=Zi[1],Or=De.useMemo(function(){return new Set(hn||Lr||[])},[hn,Lr]),yo=De.useCallback(function(Lo){var Hr=Xt(Lo,gt.indexOf(Lo)),qr,Vo=Or.has(Hr);Vo?(Or.delete(Hr),qr=(0,sr.Z)(Or)):qr=[].concat((0,sr.Z)(Or),[Hr]),Er(qr),xi&&xi(!Vo,Lo),si&&si(qr)},[Xt,Or,gt,xi,si]);return[Qt,Ii,Or,Qi,Xi,yo]}function sn(rt,gt,Xt,Qt){var Pn=rt.map(function(hn,Jn){return mt(Jn,Jn,rt,gt,Xt,Qt==null?void 0:Qt[Jn])});return(0,Wt.Z)(function(){return Pn},[Pn],function(hn,Jn){return!(0,qe.Z)(hn,Jn)})}function Un(rt){var gt=(0,De.useRef)(rt),Xt=(0,De.useState)({}),Qt=(0,He.Z)(Xt,2),Pn=Qt[1],hn=(0,De.useRef)(null),Jn=(0,De.useRef)([]);function Yn(Vn){Jn.current.push(Vn);var xi=Promise.resolve();hn.current=xi,xi.then(function(){if(hn.current===xi){var si=Jn.current,Si=gt.current;Jn.current=[],si.forEach(function(Qi){gt.current=Qi(gt.current)}),hn.current=null,Si!==gt.current&&Pn({})}})}return(0,De.useEffect)(function(){return function(){hn.current=null}},[]),[gt.current,Yn]}function _n(rt){var gt=(0,De.useRef)(rt||null),Xt=(0,De.useRef)();function Qt(){window.clearTimeout(Xt.current)}function Pn(Jn){gt.current=Jn,Qt(),Xt.current=window.setTimeout(function(){gt.current=null,Xt.current=void 0},100)}function hn(){return gt.current}return(0,De.useEffect)(function(){return Qt},[]),[Pn,hn]}function Zt(){var rt=De.useState(-1),gt=(0,He.Z)(rt,2),Xt=gt[0],Qt=gt[1],Pn=De.useState(-1),hn=(0,He.Z)(Pn,2),Jn=hn[0],Yn=hn[1],Vn=De.useCallback(function(xi,si){Qt(xi),Yn(si)},[]);return[Xt,Jn,Vn]}var rn=ve(47273),wi=(0,rn.Z)()?window:null;function Ci(rt,gt){var Xt=(0,Ye.Z)(rt)==="object"?rt:{},Qt=Xt.offsetHeader,Pn=Qt===void 0?0:Qt,hn=Xt.offsetSummary,Jn=hn===void 0?0:hn,Yn=Xt.offsetScroll,Vn=Yn===void 0?0:Yn,xi=Xt.getContainer,si=xi===void 0?function(){return wi}:xi,Si=si()||wi;return De.useMemo(function(){var Qi=!!rt;return{isSticky:Qi,stickyClassName:Qi?"".concat(gt,"-sticky-holder"):"",offsetHeader:Pn,offsetSummary:Jn,offsetScroll:Vn,container:Si}},[Vn,Pn,Jn,gt,Si])}function yi(rt,gt,Xt){var Qt=(0,De.useMemo)(function(){for(var Pn=[],hn=[],Jn=0,Yn=0,Vn=0;Vn<gt;Vn+=1)if(Xt==="rtl"){hn[Vn]=Yn,Yn+=rt[Vn]||0;var xi=gt-Vn-1;Pn[xi]=Jn,Jn+=rt[xi]||0}else{Pn[Vn]=Jn,Jn+=rt[Vn]||0;var si=gt-Vn-1;hn[si]=Yn,Yn+=rt[si]||0}return{left:Pn,right:hn}},[rt,gt,Xt]);return Qt}var ci=yi;function Pi(rt){var gt=rt.className,Xt=rt.children;return De.createElement("div",{className:gt},Xt)}var Mi=Pi,ji=ve(8224),lr=ve(55468),nr=function(gt,Xt){var Qt,Pn,hn=gt.scrollBodyRef,Jn=gt.onScroll,Yn=gt.offsetScroll,Vn=gt.container,xi=et(Pe,"prefixCls"),si=((Qt=hn.current)===null||Qt===void 0?void 0:Qt.scrollWidth)||0,Si=((Pn=hn.current)===null||Pn===void 0?void 0:Pn.clientWidth)||0,Qi=si&&Si*(Si/si),Xi=De.useRef(),Ii=Un({scrollLeft:0,isHiddenScrollBar:!1}),Sr=(0,He.Z)(Ii,2),Zi=Sr[0],Lr=Sr[1],Er=De.useRef({delta:0,x:0}),Or=De.useState(!1),yo=(0,He.Z)(Or,2),Lo=yo[0],Hr=yo[1],qr=function(){Hr(!1)},Vo=function(Dr){Dr.persist(),Er.current.delta=Dr.pageX-Zi.scrollLeft,Er.current.x=0,Hr(!0),Dr.preventDefault()},Ir=function(Dr){var lo,Mo=Dr||((lo=window)===null||lo===void 0?void 0:lo.event),ko=Mo.buttons;if(!Lo||ko===0){Lo&&Hr(!1);return}var Br=Er.current.x+Dr.pageX-Er.current.x-Er.current.delta;Br<=0&&(Br=0),Br+Qi>=Si&&(Br=Si-Qi),Jn({scrollLeft:Br/Si*(si+2)}),Er.current.x=Dr.pageX},ao=function(){if(hn.current){var Dr=(0,lr.os)(hn.current).top,lo=Dr+hn.current.offsetHeight,Mo=Vn===window?document.documentElement.scrollTop+window.innerHeight:(0,lr.os)(Vn).top+Vn.clientHeight;lo-(0,Ht.Z)()<=Mo||Dr>=Mo-Yn?Lr(function(ko){return(0,pt.Z)((0,pt.Z)({},ko),{},{isHiddenScrollBar:!0})}):Lr(function(ko){return(0,pt.Z)((0,pt.Z)({},ko),{},{isHiddenScrollBar:!1})})}},Wr=function(Dr){Lr(function(lo){return(0,pt.Z)((0,pt.Z)({},lo),{},{scrollLeft:Dr/si*Si||0})})};return De.useImperativeHandle(Xt,function(){return{setScrollLeft:Wr}}),De.useEffect(function(){var mr=(0,ji.Z)(document.body,"mouseup",qr,!1),Dr=(0,ji.Z)(document.body,"mousemove",Ir,!1);return ao(),function(){mr.remove(),Dr.remove()}},[Qi,Lo]),De.useEffect(function(){var mr=(0,ji.Z)(Vn,"scroll",ao,!1),Dr=(0,ji.Z)(window,"resize",ao,!1);return function(){mr.remove(),Dr.remove()}},[Vn]),De.useEffect(function(){Zi.isHiddenScrollBar||Lr(function(mr){var Dr=hn.current;return Dr?(0,pt.Z)((0,pt.Z)({},mr),{},{scrollLeft:Dr.scrollLeft/Dr.scrollWidth*Dr.clientWidth}):mr})},[Zi.isHiddenScrollBar]),si<=Si||!Qi||Zi.isHiddenScrollBar?null:De.createElement("div",{style:{height:(0,Ht.Z)(),width:Si,bottom:Yn},className:"".concat(xi,"-sticky-scroll")},De.createElement("div",{onMouseDown:Vo,ref:Xi,className:Xe()("".concat(xi,"-sticky-scroll-bar"),(0,Je.Z)({},"".concat(xi,"-sticky-scroll-bar-active"),Lo)),style:{width:"".concat(Qi,"px"),transform:"translate3d(".concat(Zi.scrollLeft,"px, 0, 0)")}}))},Nn=De.forwardRef(nr);function Pr(rt){return null}var Tr=Pr;function br(rt){return null}var Cn=br,di="rc-table",Ki=[],ir={};function Yi(){return"No Data"}function cr(rt){var gt,Xt=(0,pt.Z)({rowKey:"key",prefixCls:di,emptyText:Yi},rt),Qt=Xt.prefixCls,Pn=Xt.className,hn=Xt.rowClassName,Jn=Xt.style,Yn=Xt.data,Vn=Xt.rowKey,xi=Xt.scroll,si=Xt.tableLayout,Si=Xt.direction,Qi=Xt.title,Xi=Xt.footer,Ii=Xt.summary,Sr=Xt.caption,Zi=Xt.id,Lr=Xt.showHeader,Er=Xt.components,Or=Xt.emptyText,yo=Xt.onRow,Lo=Xt.onHeaderRow,Hr=Xt.internalHooks,qr=Xt.transformColumns,Vo=Xt.internalRefs,Ir=Xt.tailor,ao=Xt.sticky,Wr=Yn||Ki,mr=!!Wr.length,Dr=Hr===Oe,lo=De.useCallback(function(Ya,Es){return(0,zt.Z)(Er,Ya)||Es},[Er]),Mo=De.useMemo(function(){return typeof Vn=="function"?Vn:function(Ya){var Es=Ya&&Ya[Vn];return Es}},[Vn]),ko=lo(["body"]),Br=Zt(),Go=(0,He.Z)(Br,3),_o=Go[0],na=Go[1],ta=Go[2],_a=ct(Xt,Wr,Mo),ga=(0,He.Z)(_a,6),Ho=ga[0],wo=ga[1],Oo=ga[2],Ua=ga[3],Ia=ga[4],ts=ga[5],Ro=xi==null?void 0:xi.x,bo=De.useState(0),Wo=(0,He.Z)(bo,2),xo=Wo[0],oo=Wo[1],qi=It((0,pt.Z)((0,pt.Z)((0,pt.Z)({},Xt),Ho),{},{expandable:!!Ho.expandedRowRender,columnTitle:Ho.columnTitle,expandedKeys:Oo,getRowKey:Mo,onTriggerExpand:ts,expandIcon:Ua,expandIconColumnIndex:Ho.expandIconColumnIndex,direction:Si,scrollWidth:Dr&&Ir&&typeof Ro=="number"?Ro:null}),Dr?qr:null),Vr=(0,He.Z)(qi,3),Xo=Vr[0],ua=Vr[1],al=Vr[2],Rs=al!=null?al:Ro,Al=De.useMemo(function(){return{columns:Xo,flattenColumns:ua}},[Xo,ua]),Na=De.useRef(),Xa=De.useRef(),Bo=De.useRef(),Vs=De.useRef(),Ll=De.useRef(),Wa=De.useState(!1),$a=(0,He.Z)(Wa,2),ns=$a[0],bs=$a[1],Gs=De.useState(!1),Sa=(0,He.Z)(Gs,2),as=Sa[0],Js=Sa[1],Ja=Un(new Map),zo=(0,He.Z)(Ja,2),Ms=zo[0],Ys=zo[1],Wu=Lt(ua),vu=Wu.map(function(Ya){return Ms.get(Ya)}),qa=De.useMemo(function(){return vu},[vu.join("_")]),Ml=ci(qa,ua.length,Si),Ps=xi&&yn(xi.y),gs=xi&&yn(Rs)||!!Ho.fixed,Nu=gs&&ua.some(function(Ya){var Es=Ya.fixed;return Es}),Cc=De.useRef(),ql=Ci(ao,Qt),ac=ql.isSticky,sc=ql.offsetHeader,yu=ql.offsetSummary,Ra=ql.offsetScroll,ss=ql.stickyClassName,Qs=ql.container,ps=De.useMemo(function(){return Ii==null?void 0:Ii(Wr)},[Ii,Wr]),za=(Ps||ac)&&De.isValidElement(ps)&&ps.type===Se&&ps.props.fixed,_s,Rl,Zu;Ps&&(Rl={overflowY:"scroll",maxHeight:xi.y}),gs&&(_s={overflowX:"auto"},Ps||(Rl={overflowY:"hidden"}),Zu={width:Rs===!0?"auto":Rs,minWidth:"100%"});var uh=De.useCallback(function(Ya,Es){(0,bt.Z)(Na.current)&&Ys(function(Dl){if(Dl.get(Ya)!==Es){var Du=new Map(Dl);return Du.set(Ya,Es),Du}return Dl})},[]),gn=_n(null),Rc=(0,He.Z)(gn,2),bc=Rc[0],jh=Rc[1];function bd(Ya,Es){Es&&(typeof Es=="function"?Es(Ya):Es.scrollLeft!==Ya&&(Es.scrollLeft=Ya,Es.scrollLeft!==Ya&&setTimeout(function(){Es.scrollLeft=Ya},0)))}var _c=(0,Rt.Z)(function(Ya){var Es=Ya.currentTarget,Dl=Ya.scrollLeft,Du=Si==="rtl",Bu=typeof Dl=="number"?Dl:Es.scrollLeft,hh=Es||ir;if(!jh()||jh()===hh){var ed;bc(hh),bd(Bu,Xa.current),bd(Bu,Bo.current),bd(Bu,Ll.current),bd(Bu,(ed=Cc.current)===null||ed===void 0?void 0:ed.setScrollLeft)}var Jd=Es||Xa.current;if(Jd){var Qu=Jd.scrollWidth,uc=Jd.clientWidth;if(Qu===uc){bs(!1),Js(!1);return}Du?(bs(-Bu<Qu-uc),Js(-Bu>0)):(bs(Bu>0),Js(Bu<Qu-uc))}}),zc=function(){gs&&Bo.current?_c({currentTarget:Bo.current}):(bs(!1),Js(!1))},gf=function(Es){var Dl=Es.width;Dl!==xo&&(zc(),oo(Na.current?Na.current.offsetWidth:Dl))},kl=De.useRef(!1);De.useEffect(function(){kl.current&&zc()},[gs,Yn,Xo.length]),De.useEffect(function(){kl.current=!0},[]);var fd=De.useState(0),Wd=(0,He.Z)(fd,2),Zd=Wd[0],Kd=Wd[1],pf=De.useState(!0),Vd=(0,He.Z)(pf,2),Gd=Vd[0],ku=Vd[1];De.useEffect(function(){(!Ir||!Dr)&&(Bo.current instanceof Element?Kd((0,Ht.o)(Bo.current).width):Kd((0,Ht.o)(Vs.current).width)),ku((0,dt.G)("position","sticky"))},[]),De.useEffect(function(){Dr&&Vo&&(Vo.body.current=Bo.current)});var $c=De.useCallback(function(Ya){return De.createElement(De.Fragment,null,De.createElement(an,Ya),za==="top"&&De.createElement(At,Ya,ps))},[za,ps]),Hh=De.useCallback(function(Ya){return De.createElement(At,Ya,ps)},[ps]),lc=lo(["table"],"table"),qc=De.useMemo(function(){return si||(Nu?Rs==="max-content"?"auto":"fixed":Ps||ac||ua.some(function(Ya){var Es=Ya.ellipsis;return Es})?"fixed":"auto")},[Ps,Nu,ua,si,ac]),gd,pd={colWidths:qa,columCount:ua.length,stickyOffsets:Ml,onHeaderRow:Lo,fixHeader:Ps,scroll:xi},eu=De.useMemo(function(){return mr?null:typeof Or=="function"?Or():Or},[mr,Or]),ch=De.createElement(rr,{data:Wr,measureColumnWidth:Ps||gs||ac}),Yd=De.createElement($r,{colWidths:ua.map(function(Ya){var Es=Ya.width;return Es}),columns:ua}),Su=Sr!=null?De.createElement("caption",{className:"".concat(Qt,"-caption")},Sr):void 0,Ed=(0,En.Z)(Xt,{data:!0}),Ud=(0,En.Z)(Xt,{aria:!0});if(Ps||ac){var dh;typeof ko=="function"?(dh=ko(Wr,{scrollbarSize:Zd,ref:Bo,onScroll:_c}),pd.colWidths=ua.map(function(Ya,Es){var Dl=Ya.width,Du=Es===ua.length-1?Dl-Zd:Dl;return typeof Du=="number"&&!Number.isNaN(Du)?Du:0})):dh=De.createElement("div",{style:(0,pt.Z)((0,pt.Z)({},_s),Rl),onScroll:_c,ref:Bo,className:Xe()("".concat(Qt,"-body"))},De.createElement(lc,(0,Ot.Z)({style:(0,pt.Z)((0,pt.Z)({},Zu),{},{tableLayout:qc})},Ud),Su,Yd,ch,!za&&ps&&De.createElement(At,{stickyOffsets:Ml,flattenColumns:ua,columns:Xo},ps)));var jc=(0,pt.Z)((0,pt.Z)((0,pt.Z)({noData:!Wr.length,maxContentScroll:gs&&Rs==="max-content"},pd),Al),{},{direction:Si,stickyClassName:ss,onScroll:_c});gd=De.createElement(De.Fragment,null,Lr!==!1&&De.createElement($n,(0,Ot.Z)({},jc,{stickyTopOffset:sc,className:"".concat(Qt,"-header"),ref:Xa}),$c),dh,za&&za!=="top"&&De.createElement($n,(0,Ot.Z)({},jc,{stickyBottomOffset:yu,className:"".concat(Qt,"-summary"),ref:Ll}),Hh),ac&&De.createElement(Nn,{ref:Cc,offsetScroll:Ra,scrollBodyRef:Bo,onScroll:_c,container:Qs}))}else gd=De.createElement("div",{style:(0,pt.Z)((0,pt.Z)({},_s),Rl),className:Xe()("".concat(Qt,"-content")),onScroll:_c,ref:Bo},De.createElement(lc,(0,Ot.Z)({style:(0,pt.Z)((0,pt.Z)({},Zu),{},{tableLayout:qc})},Ud),Su,Yd,Lr!==!1&&De.createElement(an,(0,Ot.Z)({},pd,Al)),ch,ps&&De.createElement(At,{stickyOffsets:Ml,flattenColumns:ua,columns:Xo},ps)));var Hl=De.createElement("div",(0,Ot.Z)({className:Xe()(Qt,Pn,(gt={},(0,Je.Z)(gt,"".concat(Qt,"-rtl"),Si==="rtl"),(0,Je.Z)(gt,"".concat(Qt,"-ping-left"),ns),(0,Je.Z)(gt,"".concat(Qt,"-ping-right"),as),(0,Je.Z)(gt,"".concat(Qt,"-layout-fixed"),si==="fixed"),(0,Je.Z)(gt,"".concat(Qt,"-fixed-header"),Ps),(0,Je.Z)(gt,"".concat(Qt,"-fixed-column"),Nu),(0,Je.Z)(gt,"".concat(Qt,"-scroll-horizontal"),gs),(0,Je.Z)(gt,"".concat(Qt,"-has-fix-left"),ua[0]&&ua[0].fixed),(0,Je.Z)(gt,"".concat(Qt,"-has-fix-right"),ua[ua.length-1]&&ua[ua.length-1].fixed==="right"),gt)),style:Jn,id:Zi,ref:Na},Ed),Qi&&De.createElement(Mi,{className:"".concat(Qt,"-title")},Qi(Wr)),De.createElement("div",{ref:Vs,className:"".concat(Qt,"-container")},gd),Xi&&De.createElement(Mi,{className:"".concat(Qt,"-footer")},Xi(Wr)));gs&&(Hl=De.createElement(Ct.Z,{onResize:gf},Hl));var Xd=sn(ua,Ml,Si,Xo),sl=De.useMemo(function(){return{scrollX:Rs,prefixCls:Qt,getComponent:lo,scrollbarSize:Zd,direction:Si,fixedInfoList:Xd,isSticky:ac,supportSticky:Gd,componentWidth:xo,fixHeader:Ps,fixColumn:Nu,horizonScroll:gs,tableLayout:qc,rowClassName:hn,expandedRowClassName:Ho.expandedRowClassName,expandIcon:Ua,expandableType:wo,expandRowByClick:Ho.expandRowByClick,expandedRowRender:Ho.expandedRowRender,onTriggerExpand:ts,expandIconColumnIndex:Ho.expandIconColumnIndex,indentSize:Ho.indentSize,allColumnsFixedLeft:ua.every(function(Ya){return Ya.fixed==="left"}),emptyNode:eu,columns:Xo,flattenColumns:ua,onColumnResize:uh,hoverStartRow:_o,hoverEndRow:na,onHover:ta,rowExpandable:Ho.rowExpandable,onRow:yo,getRowKey:Mo,expandedKeys:Oo,childrenColumnName:Ia}},[Rs,Qt,lo,Zd,Si,Xd,ac,Gd,xo,Ps,Nu,gs,qc,hn,Ho.expandedRowClassName,Ua,wo,Ho.expandRowByClick,Ho.expandedRowRender,ts,Ho.expandIconColumnIndex,Ho.indentSize,eu,Xo,ua,uh,_o,na,ta,Ho.rowExpandable,yo,Mo,Oo,Ia]);return De.createElement(Pe.Provider,{value:sl},Hl)}function Mr(rt){return ge(cr,rt)}var Di=Mr();Di.EXPAND_COLUMN=ye,Di.INTERNAL_HOOKS=Oe,Di.Column=Tr,Di.ColumnGroup=Cn,Di.Summary=Ve;var Ui=Di,Wi=ve(57149),Dn=Et(null),Fr=Et(null);function Ln(rt,gt,Xt){var Qt=gt||1;return Xt[rt+Qt]-(Xt[rt]||0)}function fr(rt){var gt=rt.rowInfo,Xt=rt.column,Qt=rt.colIndex,Pn=rt.indent,hn=rt.index,Jn=rt.renderIndex,Yn=rt.record,Vn=rt.style,xi=rt.className,si=rt.inverse,Si=rt.getHeight,Qi=Xt.render,Xi=Xt.dataIndex,Ii=Xt.className,Sr=Xt.width,Zi=et(Fr,["columnsOffset"]),Lr=Zi.columnsOffset,Er=vi(gt,Xt,Qt,Pn,hn),Or=Er.key,yo=Er.fixedInfo,Lo=Er.appendCellNode,Hr=Er.additionalCellProps,qr=Hr.style,Vo=Hr.colSpan,Ir=Vo===void 0?1:Vo,ao=Hr.rowSpan,Wr=ao===void 0?1:ao,mr=Qt-1,Dr=Ln(mr,Ir,Lr),lo=Ir>1?Sr-Dr:0,Mo=(0,pt.Z)((0,pt.Z)((0,pt.Z)({},qr),Vn),{},{flex:"0 0 ".concat(Dr,"px"),width:"".concat(Dr,"px"),marginRight:lo,pointerEvents:"auto"}),ko=De.useMemo(function(){return si?Wr<=1:Ir===0||Wr===0||Wr>1},[Wr,Ir,si]);ko?Mo.visibility="hidden":si&&(Mo.height=Si==null?void 0:Si(Wr));var Br=ko?function(){return null}:Qi,Go={};return(Wr===0||Ir===0)&&(Go.rowSpan=1,Go.colSpan=1),De.createElement(Tn,(0,Ot.Z)({className:Xe()(Ii,xi),ellipsis:Xt.ellipsis,align:Xt.align,scope:Xt.rowScope,component:"div",prefixCls:gt.prefixCls,key:Or,record:Yn,index:hn,renderIndex:Jn,dataIndex:Xi,render:Br,shouldCellUpdate:Xt.shouldCellUpdate},yo,{appendNode:Lo,additionalProps:(0,pt.Z)((0,pt.Z)({},Hr),{},{style:Mo},Go)}))}var Ur=fr,Cr=["data","index","className","rowKey","style","extra","getHeight"],Do=De.forwardRef(function(rt,gt){var Xt=rt.data,Qt=rt.index,Pn=rt.className,hn=rt.rowKey,Jn=rt.style,Yn=rt.extra,Vn=rt.getHeight,xi=(0,Ee.Z)(rt,Cr),si=Xt.record,Si=Xt.indent,Qi=Xt.index,Xi=et(Pe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Ii=Xi.scrollX,Sr=Xi.flattenColumns,Zi=Xi.prefixCls,Lr=Xi.fixColumn,Er=Xi.componentWidth,Or=wn(si,hn,Qt,Si),yo=Or.rowSupportExpand,Lo=Or.expanded,Hr=Or.rowProps,qr=Or.expandedRowRender,Vo=Or.expandedRowClassName,Ir;if(yo&&Lo){var ao=qr(si,Qt,Si+1,Lo),Wr=Vo==null?void 0:Vo(si,Qt,Si),mr={};Lr&&(mr={style:(0,Je.Z)({},"--virtual-width","".concat(Er,"px"))});var Dr="".concat(Zi,"-expanded-row-cell");Ir=De.createElement("div",{className:Xe()("".concat(Zi,"-expanded-row"),"".concat(Zi,"-expanded-row-level-").concat(Si+1),Wr)},De.createElement(Tn,{component:"div",prefixCls:Zi,className:Xe()(Dr,(0,Je.Z)({},"".concat(Dr,"-fixed"),Lr)),additionalProps:mr},ao))}var lo=(0,pt.Z)((0,pt.Z)({},Jn),{},{width:Ii});Yn&&(lo.position="absolute",lo.pointerEvents="none");var Mo=De.createElement("div",(0,Ot.Z)({},Hr,xi,{ref:yo?null:gt,className:Xe()(Pn,"".concat(Zi,"-row"),Hr==null?void 0:Hr.className,(0,Je.Z)({},"".concat(Zi,"-row-extra"),Yn)),style:(0,pt.Z)((0,pt.Z)({},lo),Hr==null?void 0:Hr.style)}),Sr.map(function(ko,Br){return De.createElement(Ur,{key:Br,rowInfo:Or,column:ko,colIndex:Br,indent:Si,index:Qt,renderIndex:Qi,record:si,inverse:Yn,getHeight:Vn})}));return yo?De.createElement("div",{ref:gt},Mo,Ir):Mo}),so=me(Do),yr=so,gr=De.forwardRef(function(rt,gt){var Xt=rt.data,Qt=rt.onScroll,Pn=et(Pe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),hn=Pn.flattenColumns,Jn=Pn.onColumnResize,Yn=Pn.getRowKey,Vn=Pn.expandedKeys,xi=Pn.prefixCls,si=Pn.childrenColumnName,Si=Pn.emptyNode,Qi=Pn.scrollX,Xi=et(Dn),Ii=Xi.scrollY,Sr=Xi.listItemHeight,Zi=De.useRef(),Lr=qt(Xt,si,Vn,Yn),Er=De.useMemo(function(){var Ir=0;return hn.map(function(ao){var Wr=ao.width,mr=ao.key;return Ir+=Wr,[mr,Wr,Ir]})},[hn]),Or=De.useMemo(function(){return Er.map(function(Ir){return Ir[2]})},[Er]);De.useEffect(function(){Er.forEach(function(Ir){var ao=(0,He.Z)(Ir,2),Wr=ao[0],mr=ao[1];Jn(Wr,mr)})},[Er]),De.useImperativeHandle(gt,function(){var Ir={};return Object.defineProperty(Ir,"scrollLeft",{get:function(){var Wr;return((Wr=Zi.current)===null||Wr===void 0?void 0:Wr.getScrollInfo().x)||0},set:function(Wr){var mr;(mr=Zi.current)===null||mr===void 0||mr.scrollTo({left:Wr})}}),Ir});var yo=function(ao,Wr){var mr,Dr=(mr=Lr[Wr])===null||mr===void 0?void 0:mr.record,lo=ao.onCell;if(lo){var Mo,ko=lo(Dr,Wr);return(Mo=ko==null?void 0:ko.rowSpan)!==null&&Mo!==void 0?Mo:1}return 1},Lo=function(ao){var Wr=ao.start,mr=ao.end,Dr=ao.getSize,lo=ao.offsetY;if(mr<0)return null;for(var Mo=hn.filter(function(Ro){return yo(Ro,Wr)===0}),ko=Wr,Br=function(bo){if(Mo=Mo.filter(function(Wo){return yo(Wo,bo)===0}),!Mo.length)return ko=bo,"break"},Go=Wr;Go>=0;Go-=1){var _o=Br(Go);if(_o==="break")break}for(var na=hn.filter(function(Ro){return yo(Ro,mr)!==1}),ta=mr,_a=function(bo){if(na=na.filter(function(Wo){return yo(Wo,bo)!==1}),!na.length)return ta=Math.max(bo-1,mr),"break"},ga=mr;ga<Lr.length;ga+=1){var Ho=_a(ga);if(Ho==="break")break}for(var wo=[],Oo=function(bo){var Wo=Lr[bo];if(!Wo)return"continue";hn.some(function(xo){return yo(xo,bo)>1})&&wo.push(bo)},Ua=ko;Ua<=ta;Ua+=1)var Ia=Oo(Ua);var ts=wo.map(function(Ro){var bo=Lr[Ro],Wo=Yn(bo.record,Ro),xo=function(Vr){var Xo=Ro+Vr-1,ua=Yn(Lr[Xo].record,Xo),al=Dr(Wo,ua);return al.bottom-al.top},oo=Dr(Wo);return De.createElement(yr,{key:Ro,data:bo,rowKey:Wo,index:Ro,style:{top:-lo+oo.top},extra:!0,getHeight:xo})});return ts},Hr=De.useMemo(function(){return{columnsOffset:Or}},[Or]),qr="".concat(xi,"-tbody"),Vo;return Lr.length?Vo=De.createElement(Wi.Z,{fullHeight:!1,ref:Zi,className:Xe()(qr,"".concat(qr,"-virtual")),height:Ii,itemHeight:Sr||24,data:Lr,itemKey:function(ao){return Yn(ao.record)},scrollWidth:Qi,onVirtualScroll:function(ao){var Wr=ao.x;Qt({scrollLeft:Wr})},extraRender:Lo},function(Ir,ao,Wr){var mr=Yn(Ir.record,ao);return De.createElement(yr,(0,Ot.Z)({data:Ir,rowKey:mr,index:ao},Wr))}):Vo=De.createElement("div",{className:Xe()("".concat(xi,"-placeholder"))},De.createElement(Tn,{component:"div",prefixCls:xi},Si)),De.createElement(Fr.Provider,{value:Hr},Vo)}),hr=me(gr),Gr=hr,Oi=function(gt,Xt){var Qt=Xt.ref,Pn=Xt.onScroll;return De.createElement(Gr,{ref:Qt,data:gt,onScroll:Pn})},_e=100;function yt(rt){var gt=rt.columns,Xt=rt.scroll,Qt=rt.prefixCls,Pn=Qt===void 0?di:Qt,hn=rt.className,Jn=rt.listItemHeight,Yn=Xt||{},Vn=Yn.x,xi=Yn.y;typeof Vn!="number"&&(Vn=((gt||[]).length+1)*_e),typeof xi!="number"&&(xi=500);var si=De.useMemo(function(){return{scrollY:xi,listItemHeight:Jn}},[xi,Jn]);return De.createElement(Dn.Provider,{value:si},De.createElement(Ui,(0,Ot.Z)({},rt,{className:Xe()(hn,"".concat(Pn,"-virtual")),scroll:(0,pt.Z)((0,pt.Z)({},Xt),{},{x:Vn}),components:{body:Oi},columns:gt,internalHooks:Oe,tailor:!0})))}function Bt(rt){return ge(yt,rt)}var ln=Bt(),jn=null;function ri(rt){return null}var tn=ri;function bn(rt){return null}var Xn=bn,Kn=ve(2738),Ei=ve(68031),vr=ve(36355),Ai=ve(93891),Bi=ve(19716),zn=ve(8628),pr=ve(31724),kr=ve(58421),po=ve(71418),to=ve(88088);function Jr(rt){return function(Xt){let{prefixCls:Qt,onExpand:Pn,record:hn,expanded:Jn,expandable:Yn}=Xt;const Vn=`${Qt}-row-expand-icon`;return De.createElement("button",{type:"button",onClick:xi=>{Pn(hn,xi),xi.stopPropagation()},className:Xe()(Vn,{[`${Vn}-spaced`]:!Yn,[`${Vn}-expanded`]:Yn&&Jn,[`${Vn}-collapsed`]:Yn&&!Jn}),"aria-label":Jn?rt.collapse:rt.expand,"aria-expanded":Jn})}}var eo=Jr;function Zo(rt,gt){return"key"in rt&&rt.key!==void 0&&rt.key!==null?rt.key:rt.dataIndex?Array.isArray(rt.dataIndex)?rt.dataIndex.join("."):rt.dataIndex:gt}function $o(rt,gt){return gt?`${gt}-${rt}`:`${rt}`}function ia(rt,gt){return typeof rt=="function"?rt(gt):rt}function qo(rt,gt){const Xt=ia(rt,gt);return Object.prototype.toString.call(Xt)==="[object Object]"?"":Xt}var Sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},oa=Sn,vs=ve(7657),Ga=function(gt,Xt){return De.createElement(vs.Z,(0,Ot.Z)({},gt,{ref:Xt,icon:oa}))},Zs=De.forwardRef(Ga),xa=Zs,pl=ve(56762);function wa(rt){const gt=De.useRef(rt),Xt=(0,pl.Z)();return[()=>gt.current,Qt=>{gt.current=Qt,Xt()}]}var Ao=ve(3113),Ko=ve(24905),Ka=ve(38854),Kr=ve(64165),No=ve(20834),ro=ve(40875),Hi=ve(5112),fa=ve(17574),ka=ve(47472),Ds=ve(92832);function ys(rt){let{value:gt,onChange:Xt,filterSearch:Qt,tablePrefixCls:Pn,locale:hn}=rt;return Qt?De.createElement("div",{className:`${Pn}-filter-dropdown-search`},De.createElement(Ds.default,{prefix:De.createElement(ka.Z,null),placeholder:hn.filterSearchPlaceholder,onChange:Xt,value:gt,htmlSize:1,className:`${Pn}-filter-dropdown-search-input`})):null}var nl=ys,Gi=ve(10228);const Da=rt=>{const{keyCode:gt}=rt;gt===Gi.Z.ENTER&&rt.stopPropagation()};var Os=De.forwardRef((rt,gt)=>De.createElement("div",{className:rt.className,onClick:Xt=>Xt.stopPropagation(),onKeyDown:Da,ref:gt},rt.children));function ml(rt){let gt=[];return(rt||[]).forEach(Xt=>{let{value:Qt,children:Pn}=Xt;gt.push(Qt),Pn&&(gt=[].concat((0,sr.Z)(gt),(0,sr.Z)(ml(Pn))))}),gt}function Gl(rt){return rt.some(gt=>{let{children:Xt}=gt;return Xt})}function So(rt,gt){return typeof gt=="string"||typeof gt=="number"?gt==null?void 0:gt.toString().toLowerCase().includes(rt.trim().toLowerCase()):!1}function Au(rt){let{filters:gt,prefixCls:Xt,filteredKeys:Qt,filterMultiple:Pn,searchValue:hn,filterSearch:Jn}=rt;return gt.map((Yn,Vn)=>{const xi=String(Yn.value);if(Yn.children)return{key:xi||Vn,label:Yn.text,popupClassName:`${Xt}-dropdown-submenu`,children:Au({filters:Yn.children,prefixCls:Xt,filteredKeys:Qt,filterMultiple:Pn,searchValue:hn,filterSearch:Jn})};const si=Pn?Ko.default:Hi.ZP,Si={key:Yn.value!==void 0?xi:Vn,label:De.createElement(De.Fragment,null,De.createElement(si,{checked:Qt.includes(xi)}),De.createElement("span",null,Yn.text))};return hn.trim()?typeof Jn=="function"?Jn(hn,Yn)?Si:null:So(hn,Yn.text)?Si:null:Si})}function il(rt){var gt,Xt;const{tablePrefixCls:Qt,prefixCls:Pn,column:hn,dropdownPrefixCls:Jn,columnKey:Yn,filterMultiple:Vn,filterMode:xi="menu",filterSearch:si=!1,filterState:Si,triggerFilter:Qi,locale:Xi,children:Ii,getPopupContainer:Sr}=rt,{filterDropdownOpen:Zi,onFilterDropdownOpenChange:Lr,filterResetToDefaultFilteredValue:Er,defaultFilteredValue:Or,filterDropdownVisible:yo,onFilterDropdownVisibleChange:Lo}=hn,[Hr,qr]=De.useState(!1),Vo=!!(Si&&(!((gt=Si.filteredKeys)===null||gt===void 0)&&gt.length||Si.forceFiltered)),Ir=qi=>{qr(qi),Lr==null||Lr(qi),Lo==null||Lo(qi)},ao=(Xt=Zi!=null?Zi:yo)!==null&&Xt!==void 0?Xt:Hr,Wr=Si==null?void 0:Si.filteredKeys,[mr,Dr]=wa(Wr||[]),lo=qi=>{let{selectedKeys:Vr}=qi;Dr(Vr)},Mo=(qi,Vr)=>{let{node:Xo,checked:ua}=Vr;lo(Vn?{selectedKeys:qi}:{selectedKeys:ua&&Xo.key?[Xo.key]:[]})};De.useEffect(()=>{Hr&&lo({selectedKeys:Wr||[]})},[Wr]);const[ko,Br]=De.useState([]),Go=qi=>{Br(qi)},[_o,na]=De.useState(""),ta=qi=>{const{value:Vr}=qi.target;na(Vr)};De.useEffect(()=>{Hr||na("")},[Hr]);const _a=qi=>{const Vr=qi&&qi.length?qi:null;if(Vr===null&&(!Si||!Si.filteredKeys)||(0,qe.Z)(Vr,Si==null?void 0:Si.filteredKeys,!0))return null;Qi({column:hn,key:Yn,filteredKeys:Vr})},ga=()=>{Ir(!1),_a(mr())},Ho=function(){let{confirm:qi,closeDropdown:Vr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};qi&&_a([]),Vr&&Ir(!1),na(""),Dr(Er?(Or||[]).map(Xo=>String(Xo)):[])},wo=function(){let{closeDropdown:qi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};qi&&Ir(!1),_a(mr())},Oo=qi=>{qi&&Wr!==void 0&&Dr(Wr||[]),Ir(qi),!qi&&!hn.filterDropdown&&ga()},Ua=Xe()({[`${Jn}-menu-without-submenu`]:!Gl(hn.filters||[])}),Ia=qi=>{if(qi.target.checked){const Vr=ml(hn==null?void 0:hn.filters).map(Xo=>String(Xo));Dr(Vr)}else Dr([])},ts=qi=>{let{filters:Vr}=qi;return(Vr||[]).map((Xo,ua)=>{const al=String(Xo.value),Rs={title:Xo.text,key:Xo.value!==void 0?al:ua};return Xo.children&&(Rs.children=ts({filters:Xo.children})),Rs})},Ro=qi=>{var Vr;return Object.assign(Object.assign({},qi),{text:qi.title,value:qi.key,children:((Vr=qi.children)===null||Vr===void 0?void 0:Vr.map(Xo=>Ro(Xo)))||[]})};let bo;if(typeof hn.filterDropdown=="function")bo=hn.filterDropdown({prefixCls:`${Jn}-custom`,setSelectedKeys:qi=>lo({selectedKeys:qi}),selectedKeys:mr(),confirm:wo,clearFilters:Ho,filters:hn.filters,visible:ao,close:()=>{Ir(!1)}});else if(hn.filterDropdown)bo=hn.filterDropdown;else{const qi=mr()||[],Vr=()=>(hn.filters||[]).length===0?De.createElement(Kr.Z,{image:Kr.Z.PRESENTED_IMAGE_SIMPLE,description:Xi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):xi==="tree"?De.createElement(De.Fragment,null,De.createElement(nl,{filterSearch:si,value:_o,onChange:ta,tablePrefixCls:Qt,locale:Xi}),De.createElement("div",{className:`${Qt}-filter-dropdown-tree`},Vn?De.createElement(Ko.default,{checked:qi.length===ml(hn.filters).length,indeterminate:qi.length>0&&qi.length<ml(hn.filters).length,className:`${Qt}-filter-dropdown-checkall`,onChange:Ia},Xi.filterCheckall):null,De.createElement(fa.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Vn,checkStrictly:!Vn,className:`${Jn}-menu`,onCheck:Mo,checkedKeys:qi,selectedKeys:qi,showIcon:!1,treeData:ts({filters:hn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:_o.trim()?ua=>typeof si=="function"?si(_o,Ro(ua)):So(_o,ua.title):void 0}))):De.createElement(De.Fragment,null,De.createElement(nl,{filterSearch:si,value:_o,onChange:ta,tablePrefixCls:Qt,locale:Xi}),De.createElement(No.default,{selectable:!0,multiple:Vn,prefixCls:`${Jn}-menu`,className:Ua,onSelect:lo,onDeselect:lo,selectedKeys:qi,getPopupContainer:Sr,openKeys:ko,onOpenChange:Go,items:Au({filters:hn.filters||[],filterSearch:si,prefixCls:Pn,filteredKeys:mr(),filterMultiple:Vn,searchValue:_o})})),Xo=()=>Er?(0,qe.Z)((Or||[]).map(ua=>String(ua)),qi,!0):qi.length===0;bo=De.createElement(De.Fragment,null,Vr(),De.createElement("div",{className:`${Pn}-dropdown-btns`},De.createElement(Ao.ZP,{type:"link",size:"small",disabled:Xo(),onClick:()=>Ho()},Xi.filterReset),De.createElement(Ao.ZP,{type:"primary",size:"small",onClick:ga},Xi.filterConfirm)))}hn.filterDropdown&&(bo=De.createElement(ro.J,{selectable:void 0},bo));const Wo=()=>De.createElement(Os,{className:`${Pn}-dropdown`},bo);let xo;typeof hn.filterIcon=="function"?xo=hn.filterIcon(Vo):hn.filterIcon?xo=hn.filterIcon:xo=De.createElement(xa,null);const{direction:oo}=De.useContext(vr.E_);return De.createElement("div",{className:`${Pn}-column`},De.createElement("span",{className:`${Qt}-column-title`},Ii),De.createElement(Ka.Z,{dropdownRender:Wo,trigger:["click"],open:ao,onOpenChange:Oo,getPopupContainer:Sr,placement:oo==="rtl"?"bottomLeft":"bottomRight"},De.createElement("span",{role:"button",tabIndex:-1,className:Xe()(`${Pn}-trigger`,{active:Vo}),onClick:qi=>{qi.stopPropagation()}},xo)))}var Nl=il;function vl(rt,gt,Xt){let Qt=[];return(rt||[]).forEach((Pn,hn)=>{var Jn;const Yn=$o(hn,Xt);if(Pn.filters||"filterDropdown"in Pn||"onFilter"in Pn)if("filteredValue"in Pn){let Vn=Pn.filteredValue;"filterDropdown"in Pn||(Vn=(Jn=Vn==null?void 0:Vn.map(String))!==null&&Jn!==void 0?Jn:Vn),Qt.push({column:Pn,key:Zo(Pn,Yn),filteredKeys:Vn,forceFiltered:Pn.filtered})}else Qt.push({column:Pn,key:Zo(Pn,Yn),filteredKeys:gt&&Pn.defaultFilteredValue?Pn.defaultFilteredValue:void 0,forceFiltered:Pn.filtered});"children"in Pn&&(Qt=[].concat((0,sr.Z)(Qt),(0,sr.Z)(vl(Pn.children,gt,Yn))))}),Qt}function fu(rt,gt,Xt,Qt,Pn,hn,Jn,Yn){return Xt.map((Vn,xi)=>{const si=$o(xi,Yn),{filterMultiple:Si=!0,filterMode:Qi,filterSearch:Xi}=Vn;let Ii=Vn;if(Ii.filters||Ii.filterDropdown){const Sr=Zo(Ii,si),Zi=Qt.find(Lr=>{let{key:Er}=Lr;return Sr===Er});Ii=Object.assign(Object.assign({},Ii),{title:Lr=>De.createElement(Nl,{tablePrefixCls:rt,prefixCls:`${rt}-filter`,dropdownPrefixCls:gt,column:Ii,columnKey:Sr,filterState:Zi,filterMultiple:Si,filterMode:Qi,filterSearch:Xi,triggerFilter:hn,locale:Pn,getPopupContainer:Jn},ia(Vn.title,Lr))})}return"children"in Ii&&(Ii=Object.assign(Object.assign({},Ii),{children:fu(rt,gt,Ii.children,Qt,Pn,hn,Jn,si)})),Ii})}function yl(rt){const gt={};return rt.forEach(Xt=>{let{key:Qt,filteredKeys:Pn,column:hn}=Xt;const{filters:Jn,filterDropdown:Yn}=hn;if(Yn)gt[Qt]=Pn||null;else if(Array.isArray(Pn)){const Vn=ml(Jn);gt[Qt]=Vn.filter(xi=>Pn.includes(String(xi)))}else gt[Qt]=null}),gt}function rl(rt,gt){return gt.reduce((Xt,Qt)=>{const{column:{onFilter:Pn,filters:hn},filteredKeys:Jn}=Qt;return Pn&&Jn&&Jn.length?Xt.filter(Yn=>Jn.some(Vn=>{const xi=ml(hn),si=xi.findIndex(Qi=>String(Qi)===String(Vn)),Si=si!==-1?xi[si]:Vn;return Pn(Si,Yn)})):Xt},rt)}const Sl=rt=>rt.flatMap(gt=>"children"in gt?[gt].concat((0,sr.Z)(Sl(gt.children||[]))):[gt]);function oc(rt){let{prefixCls:gt,dropdownPrefixCls:Xt,mergedColumns:Qt,onFilterChange:Pn,getPopupContainer:hn,locale:Jn}=rt;const Yn=De.useMemo(()=>Sl(Qt||[]),[Qt]),[Vn,xi]=De.useState(()=>vl(Yn,!0)),si=De.useMemo(()=>{const Ii=vl(Yn,!1);if(Ii.length===0)return Ii;let Sr=!0,Zi=!0;if(Ii.forEach(Lr=>{let{filteredKeys:Er}=Lr;Er!==void 0?Sr=!1:Zi=!1}),Sr){const Lr=(Yn||[]).map((Er,Or)=>Zo(Er,$o(Or)));return Vn.filter(Er=>{let{key:Or}=Er;return Lr.includes(Or)}).map(Er=>{const Or=Yn[Lr.findIndex(yo=>yo===Er.key)];return Object.assign(Object.assign({},Er),{column:Object.assign(Object.assign({},Er.column),Or),forceFiltered:Or.filtered})})}return Ii},[Yn,Vn]),Si=De.useMemo(()=>yl(si),[si]),Qi=Ii=>{const Sr=si.filter(Zi=>{let{key:Lr}=Zi;return Lr!==Ii.key});Sr.push(Ii),xi(Sr),Pn(yl(Sr),Sr)};return[Ii=>fu(gt,Xt,Ii,si,Jn,Qi,hn),si,Si]}var Sc=oc;function xc(rt,gt,Xt){const Qt=De.useRef({});function Pn(hn){if(!Qt.current||Qt.current.data!==rt||Qt.current.childrenColumnName!==gt||Qt.current.getRowKey!==Xt){let Yn=function(Vn){Vn.forEach((xi,si)=>{const Si=Xt(xi,si);Jn.set(Si,xi),xi&&typeof xi=="object"&&gt in xi&&Yn(xi[gt]||[])})};const Jn=new Map;Yn(rt),Qt.current={data:rt,childrenColumnName:gt,kvMap:Jn,getRowKey:Xt}}return Qt.current.kvMap.get(hn)}return[Pn]}var Qc=ve(50371),gu=function(rt,gt){var Xt={};for(var Qt in rt)Object.prototype.hasOwnProperty.call(rt,Qt)&&gt.indexOf(Qt)<0&&(Xt[Qt]=rt[Qt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pn=0,Qt=Object.getOwnPropertySymbols(rt);Pn<Qt.length;Pn++)gt.indexOf(Qt[Pn])<0&&Object.prototype.propertyIsEnumerable.call(rt,Qt[Pn])&&(Xt[Qt[Pn]]=rt[Qt[Pn]]);return Xt};const zl=10;function xl(rt,gt){const Xt={current:rt.current,pageSize:rt.pageSize};return Object.keys(gt&&typeof gt=="object"?gt:{}).forEach(Pn=>{const hn=rt[Pn];typeof hn!="function"&&(Xt[Pn]=hn)}),Xt}function Tl(rt,gt,Xt){const Qt=Xt&&typeof Xt=="object"?Xt:{},{total:Pn=0}=Qt,hn=gu(Qt,["total"]),[Jn,Yn]=(0,De.useState)(()=>({current:"defaultCurrent"in hn?hn.defaultCurrent:1,pageSize:"defaultPageSize"in hn?hn.defaultPageSize:zl})),Vn=(0,Qc.Z)(Jn,hn,{total:Pn>0?Pn:rt}),xi=Math.ceil((Pn||rt)/Vn.pageSize);Vn.current>xi&&(Vn.current=xi||1);const si=(Qi,Xi)=>{Yn({current:Qi!=null?Qi:1,pageSize:Xi||Vn.pageSize})},Si=(Qi,Xi)=>{var Ii;Xt&&((Ii=Xt.onChange)===null||Ii===void 0||Ii.call(Xt,Qi,Xi)),si(Qi,Xi),gt(Qi,Xi||(Vn==null?void 0:Vn.pageSize))};return Xt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Vn),{onChange:Si}),si]}var pu=Tl,wc=ve(84105),mu=ve(35654),Jo=ve(90782),ma=ve(71430),dl=ve(18929);const Cs={},Ss="SELECT_ALL",rs="SELECT_INVERT",ds="SELECT_NONE",Ls=[],xs=(rt,gt)=>{let Xt=[];return(gt||[]).forEach(Qt=>{Xt.push(Qt),Qt&&typeof Qt=="object"&&rt in Qt&&(Xt=[].concat((0,sr.Z)(Xt),(0,sr.Z)(xs(rt,Qt[rt]))))}),Xt};var Bs=(rt,gt)=>{const{preserveSelectedRowKeys:Xt,selectedRowKeys:Qt,defaultSelectedRowKeys:Pn,getCheckboxProps:hn,onChange:Jn,onSelect:Yn,onSelectAll:Vn,onSelectInvert:xi,onSelectNone:si,onSelectMultiple:Si,columnWidth:Qi,type:Xi,selections:Ii,fixed:Sr,renderCell:Zi,hideSelectAll:Lr,checkStrictly:Er=!0}=gt||{},{prefixCls:Or,data:yo,pageData:Lo,getRecordByKey:Hr,getRowKey:qr,expandType:Vo,childrenColumnName:Ir,locale:ao,getPopupContainer:Wr}=rt,[mr,Dr]=(0,dl.Z)(Qt||Pn||Ls,{value:Qt}),lo=De.useRef(new Map),Mo=(0,De.useCallback)(Ro=>{if(Xt){const bo=new Map;Ro.forEach(Wo=>{let xo=Hr(Wo);!xo&&lo.current.has(Wo)&&(xo=lo.current.get(Wo)),bo.set(Wo,xo)}),lo.current=bo}},[Hr,Xt]);De.useEffect(()=>{Mo(mr)},[mr]);const{keyEntities:ko}=(0,De.useMemo)(()=>{if(Er)return{keyEntities:null};let Ro=yo;if(Xt){const bo=new Set(yo.map((xo,oo)=>qr(xo,oo))),Wo=Array.from(lo.current).reduce((xo,oo)=>{let[qi,Vr]=oo;return bo.has(qi)?xo:xo.concat(Vr)},[]);Ro=[].concat((0,sr.Z)(Ro),(0,sr.Z)(Wo))}return(0,ma.I8)(Ro,{externalGetKey:qr,childrenPropName:Ir})},[yo,qr,Er,Ir,Xt]),Br=(0,De.useMemo)(()=>xs(Ir,Lo),[Ir,Lo]),Go=(0,De.useMemo)(()=>{const Ro=new Map;return Br.forEach((bo,Wo)=>{const xo=qr(bo,Wo),oo=(hn?hn(bo):null)||{};Ro.set(xo,oo)}),Ro},[Br,qr,hn]),_o=(0,De.useCallback)(Ro=>{var bo;return!!(!((bo=Go.get(qr(Ro)))===null||bo===void 0)&&bo.disabled)},[Go,qr]),[na,ta]=(0,De.useMemo)(()=>{if(Er)return[mr||[],[]];const{checkedKeys:Ro,halfCheckedKeys:bo}=(0,Jo.S)(mr,!0,ko,_o);return[Ro||[],bo]},[mr,Er,ko,_o]),_a=(0,De.useMemo)(()=>{const Ro=Xi==="radio"?na.slice(0,1):na;return new Set(Ro)},[na,Xi]),ga=(0,De.useMemo)(()=>Xi==="radio"?new Set:new Set(ta),[ta,Xi]),[Ho,wo]=(0,De.useState)(null);De.useEffect(()=>{gt||Dr(Ls)},[!!gt]);const Oo=(0,De.useCallback)((Ro,bo)=>{let Wo,xo;Mo(Ro),Xt?(Wo=Ro,xo=Ro.map(oo=>lo.current.get(oo))):(Wo=[],xo=[],Ro.forEach(oo=>{const qi=Hr(oo);qi!==void 0&&(Wo.push(oo),xo.push(qi))})),Dr(Wo),Jn==null||Jn(Wo,xo,{type:bo})},[Dr,Hr,Jn,Xt]),Ua=(0,De.useCallback)((Ro,bo,Wo,xo)=>{if(Yn){const oo=Wo.map(qi=>Hr(qi));Yn(Hr(Ro),bo,oo,xo)}Oo(Wo,"single")},[Yn,Hr,Oo]),Ia=(0,De.useMemo)(()=>!Ii||Lr?null:(Ii===!0?[Ss,rs,ds]:Ii).map(bo=>bo===Ss?{key:"all",text:ao.selectionAll,onSelect(){Oo(yo.map((Wo,xo)=>qr(Wo,xo)).filter(Wo=>{const xo=Go.get(Wo);return!(xo!=null&&xo.disabled)||_a.has(Wo)}),"all")}}:bo===rs?{key:"invert",text:ao.selectInvert,onSelect(){const Wo=new Set(_a);Lo.forEach((oo,qi)=>{const Vr=qr(oo,qi),Xo=Go.get(Vr);Xo!=null&&Xo.disabled||(Wo.has(Vr)?Wo.delete(Vr):Wo.add(Vr))});const xo=Array.from(Wo);xi&&xi(xo),Oo(xo,"invert")}}:bo===ds?{key:"none",text:ao.selectNone,onSelect(){si==null||si(),Oo(Array.from(_a).filter(Wo=>{const xo=Go.get(Wo);return xo==null?void 0:xo.disabled}),"none")}}:bo).map(bo=>Object.assign(Object.assign({},bo),{onSelect:function(){for(var Wo,xo,oo=arguments.length,qi=new Array(oo),Vr=0;Vr<oo;Vr++)qi[Vr]=arguments[Vr];(xo=bo.onSelect)===null||xo===void 0||(Wo=xo).call.apply(Wo,[bo].concat(qi)),wo(null)}})),[Ii,_a,Lo,qr,xi,Oo]);return[(0,De.useCallback)(Ro=>{var bo;if(!gt)return Ro.filter(Wa=>Wa!==Cs);let Wo=(0,sr.Z)(Ro);const xo=new Set(_a),oo=Br.map(qr).filter(Wa=>!Go.get(Wa).disabled),qi=oo.every(Wa=>xo.has(Wa)),Vr=oo.some(Wa=>xo.has(Wa)),Xo=()=>{const Wa=[];qi?oo.forEach(ns=>{xo.delete(ns),Wa.push(ns)}):oo.forEach(ns=>{xo.has(ns)||(xo.add(ns),Wa.push(ns))});const $a=Array.from(xo);Vn==null||Vn(!qi,$a.map(ns=>Hr(ns)),Wa.map(ns=>Hr(ns))),Oo($a,"all"),wo(null)};let ua;if(Xi!=="radio"){let Wa;if(Ia){const Sa={getPopupContainer:Wr,items:Ia.map((as,Js)=>{const{key:Ja,text:zo,onSelect:Ms}=as;return{key:Ja!=null?Ja:Js,onClick:()=>{Ms==null||Ms(oo)},label:zo}})};Wa=De.createElement("div",{className:`${Or}-selection-extra`},De.createElement(Ka.Z,{menu:Sa,getPopupContainer:Wr},De.createElement("span",null,De.createElement(wc.Z,null))))}const $a=Br.map((Sa,as)=>{const Js=qr(Sa,as),Ja=Go.get(Js)||{};return Object.assign({checked:xo.has(Js)},Ja)}).filter(Sa=>{let{disabled:as}=Sa;return as}),ns=!!$a.length&&$a.length===Br.length,bs=ns&&$a.every(Sa=>{let{checked:as}=Sa;return as}),Gs=ns&&$a.some(Sa=>{let{checked:as}=Sa;return as});ua=!Lr&&De.createElement("div",{className:`${Or}-selection`},De.createElement(Ko.default,{checked:ns?bs:!!Br.length&&qi,indeterminate:ns?!bs&&Gs:!qi&&Vr,onChange:Xo,disabled:Br.length===0||ns,"aria-label":Wa?"Custom selection":"Select all",skipGroup:!0}),Wa)}let al;Xi==="radio"?al=(Wa,$a,ns)=>{const bs=qr($a,ns),Gs=xo.has(bs);return{node:De.createElement(Hi.ZP,Object.assign({},Go.get(bs),{checked:Gs,onClick:Sa=>Sa.stopPropagation(),onChange:Sa=>{xo.has(bs)||Ua(bs,!0,[bs],Sa.nativeEvent)}})),checked:Gs}}:al=(Wa,$a,ns)=>{var bs;const Gs=qr($a,ns),Sa=xo.has(Gs),as=ga.has(Gs),Js=Go.get(Gs);let Ja;return Vo==="nest"?Ja=as:Ja=(bs=Js==null?void 0:Js.indeterminate)!==null&&bs!==void 0?bs:as,{node:De.createElement(Ko.default,Object.assign({},Js,{indeterminate:Ja,checked:Sa,skipGroup:!0,onClick:zo=>zo.stopPropagation(),onChange:zo=>{let{nativeEvent:Ms}=zo;const{shiftKey:Ys}=Ms;let Wu=-1,vu=-1;if(Ys&&Er){const qa=new Set([Ho,Gs]);oo.some((Ml,Ps)=>{if(qa.has(Ml))if(Wu===-1)Wu=Ps;else return vu=Ps,!0;return!1})}if(vu!==-1&&Wu!==vu&&Er){const qa=oo.slice(Wu,vu+1),Ml=[];Sa?qa.forEach(gs=>{xo.has(gs)&&(Ml.push(gs),xo.delete(gs))}):qa.forEach(gs=>{xo.has(gs)||(Ml.push(gs),xo.add(gs))});const Ps=Array.from(xo);Si==null||Si(!Sa,Ps.map(gs=>Hr(gs)),Ml.map(gs=>Hr(gs))),Oo(Ps,"multiple")}else{const qa=na;if(Er){const Ml=Sa?(0,mu._5)(qa,Gs):(0,mu.L0)(qa,Gs);Ua(Gs,!Sa,Ml,Ms)}else{const Ml=(0,Jo.S)([].concat((0,sr.Z)(qa),[Gs]),!0,ko,_o),{checkedKeys:Ps,halfCheckedKeys:gs}=Ml;let Nu=Ps;if(Sa){const Cc=new Set(Ps);Cc.delete(Gs),Nu=(0,Jo.S)(Array.from(Cc),{checked:!1,halfCheckedKeys:gs},ko,_o).checkedKeys}Ua(Gs,!Sa,Nu,Ms)}}wo(Sa?null:Gs)}})),checked:Sa}};const Rs=(Wa,$a,ns)=>{const{node:bs,checked:Gs}=al(Wa,$a,ns);return Zi?Zi(Gs,$a,ns,bs):bs};if(!Wo.includes(Cs))if(Wo.findIndex(Wa=>{var $a;return(($a=Wa[zr])===null||$a===void 0?void 0:$a.columnType)==="EXPAND_COLUMN"})===0){const[Wa,...$a]=Wo;Wo=[Wa,Cs].concat((0,sr.Z)($a))}else Wo=[Cs].concat((0,sr.Z)(Wo));const Al=Wo.indexOf(Cs);Wo=Wo.filter((Wa,$a)=>Wa!==Cs||$a===Al);const Na=Wo[Al-1],Xa=Wo[Al+1];let Bo=Sr;Bo===void 0&&((Xa==null?void 0:Xa.fixed)!==void 0?Bo=Xa.fixed:(Na==null?void 0:Na.fixed)!==void 0&&(Bo=Na.fixed)),Bo&&Na&&((bo=Na[zr])===null||bo===void 0?void 0:bo.columnType)==="EXPAND_COLUMN"&&Na.fixed===void 0&&(Na.fixed=Bo);const Vs=Xe()(`${Or}-selection-col`,{[`${Or}-selection-col-with-dropdown`]:Ii&&Xi==="checkbox"}),Ll={fixed:Bo,width:Qi,className:`${Or}-selection-column`,title:gt.columnTitle||ua,render:Rs,onCell:gt.onCell,[zr]:{className:Vs}};return Wo.map(Wa=>Wa===Cs?Ll:Wa)},[qr,Br,gt,na,_a,ga,Qi,Ia,Vo,Ho,Go,Si,Ua,_o]),_a]},Fa=ve(89489),Hu=ve(59477),Ol=ve(6848);const El="ascend",jr="descend";function Lu(rt){return typeof rt.sorter=="object"&&typeof rt.sorter.multiple=="number"?rt.sorter.multiple:!1}function Vt(rt){return typeof rt=="function"?rt:rt&&typeof rt=="object"&&rt.compare?rt.compare:!1}function gi(rt,gt){return gt?rt[rt.indexOf(gt)+1]:rt[0]}function Mu(rt,gt,Xt){let Qt=[];function Pn(hn,Jn){Qt.push({column:hn,key:Zo(hn,Jn),multiplePriority:Lu(hn),sortOrder:hn.sortOrder})}return(rt||[]).forEach((hn,Jn)=>{const Yn=$o(Jn,Xt);hn.children?("sortOrder"in hn&&Pn(hn,Yn),Qt=[].concat((0,sr.Z)(Qt),(0,sr.Z)(Mu(hn.children,gt,Yn)))):hn.sorter&&("sortOrder"in hn?Pn(hn,Yn):gt&&hn.defaultSortOrder&&Qt.push({column:hn,key:Zo(hn,Yn),multiplePriority:Lu(hn),sortOrder:hn.defaultSortOrder}))}),Qt}function Fu(rt,gt,Xt,Qt,Pn,hn,Jn,Yn){return(gt||[]).map((Vn,xi)=>{const si=$o(xi,Yn);let Si=Vn;if(Si.sorter){const Qi=Si.sortDirections||Pn,Xi=Si.showSorterTooltip===void 0?Jn:Si.showSorterTooltip,Ii=Zo(Si,si),Sr=Xt.find(Vo=>{let{key:Ir}=Vo;return Ir===Ii}),Zi=Sr?Sr.sortOrder:null,Lr=gi(Qi,Zi);let Er;if(Vn.sortIcon)Er=Vn.sortIcon({sortOrder:Zi});else{const Vo=Qi.includes(El)&&De.createElement(Hu.Z,{className:Xe()(`${rt}-column-sorter-up`,{active:Zi===El})}),Ir=Qi.includes(jr)&&De.createElement(Fa.Z,{className:Xe()(`${rt}-column-sorter-down`,{active:Zi===jr})});Er=De.createElement("span",{className:Xe()(`${rt}-column-sorter`,{[`${rt}-column-sorter-full`]:!!(Vo&&Ir)})},De.createElement("span",{className:`${rt}-column-sorter-inner`,"aria-hidden":"true"},Vo,Ir))}const{cancelSort:Or,triggerAsc:yo,triggerDesc:Lo}=hn||{};let Hr=Or;Lr===jr?Hr=Lo:Lr===El&&(Hr=yo);const qr=typeof Xi=="object"?Xi:{title:Hr};Si=Object.assign(Object.assign({},Si),{className:Xe()(Si.className,{[`${rt}-column-sort`]:Zi}),title:Vo=>{const Ir=De.createElement("div",{className:`${rt}-column-sorters`},De.createElement("span",{className:`${rt}-column-title`},ia(Vn.title,Vo)),Er);return Xi?De.createElement(Ol.Z,Object.assign({},qr),Ir):Ir},onHeaderCell:Vo=>{const Ir=Vn.onHeaderCell&&Vn.onHeaderCell(Vo)||{},ao=Ir.onClick,Wr=Ir.onKeyDown;Ir.onClick=lo=>{Qt({column:Vn,key:Ii,sortOrder:Lr,multiplePriority:Lu(Vn)}),ao==null||ao(lo)},Ir.onKeyDown=lo=>{lo.keyCode===Gi.Z.ENTER&&(Qt({column:Vn,key:Ii,sortOrder:Lr,multiplePriority:Lu(Vn)}),Wr==null||Wr(lo))};const mr=qo(Vn.title,{}),Dr=mr==null?void 0:mr.toString();return Zi?Ir["aria-sort"]=Zi==="ascend"?"ascending":"descending":Ir["aria-label"]=Dr||"",Ir.className=Xe()(Ir.className,`${rt}-column-has-sorters`),Ir.tabIndex=0,Vn.ellipsis&&(Ir.title=(mr!=null?mr:"").toString()),Ir}})}return"children"in Si&&(Si=Object.assign(Object.assign({},Si),{children:Fu(rt,Si.children,Xt,Qt,Pn,hn,Jn,si)})),Si})}function _l(rt){const{column:gt,sortOrder:Xt}=rt;return{column:gt,order:Xt,field:gt.dataIndex,columnKey:gt.key}}function $l(rt){const gt=rt.filter(Xt=>{let{sortOrder:Qt}=Xt;return Qt}).map(_l);return gt.length===0&&rt.length?Object.assign(Object.assign({},_l(rt[rt.length-1])),{column:void 0}):gt.length<=1?gt[0]||{}:gt}function jl(rt,gt,Xt){const Qt=gt.slice().sort((Jn,Yn)=>Yn.multiplePriority-Jn.multiplePriority),Pn=rt.slice(),hn=Qt.filter(Jn=>{let{column:{sorter:Yn},sortOrder:Vn}=Jn;return Vt(Yn)&&Vn});return hn.length?Pn.sort((Jn,Yn)=>{for(let Vn=0;Vn<hn.length;Vn+=1){const xi=hn[Vn],{column:{sorter:si},sortOrder:Si}=xi,Qi=Vt(si);if(Qi&&Si){const Xi=Qi(Jn,Yn,Si);if(Xi!==0)return Si===El?Xi:-Xi}}return 0}).map(Jn=>{const Yn=Jn[Xt];return Yn?Object.assign(Object.assign({},Jn),{[Xt]:jl(Yn,gt,Xt)}):Jn}):Pn}function Pc(rt){let{prefixCls:gt,mergedColumns:Xt,onSorterChange:Qt,sortDirections:Pn,tableLocale:hn,showSorterTooltip:Jn}=rt;const[Yn,Vn]=De.useState(Mu(Xt,!0)),xi=De.useMemo(()=>{let Ii=!0;const Sr=Mu(Xt,!1);if(!Sr.length)return Yn;const Zi=[];function Lr(Or){Ii?Zi.push(Or):Zi.push(Object.assign(Object.assign({},Or),{sortOrder:null}))}let Er=null;return Sr.forEach(Or=>{Er===null?(Lr(Or),Or.sortOrder&&(Or.multiplePriority===!1?Ii=!1:Er=!0)):(Er&&Or.multiplePriority!==!1||(Ii=!1),Lr(Or))}),Zi},[Xt,Yn]),si=De.useMemo(()=>{const Ii=xi.map(Sr=>{let{column:Zi,sortOrder:Lr}=Sr;return{column:Zi,order:Lr}});return{sortColumns:Ii,sortColumn:Ii[0]&&Ii[0].column,sortOrder:Ii[0]&&Ii[0].order}},[xi]);function Si(Ii){let Sr;Ii.multiplePriority===!1||!xi.length||xi[0].multiplePriority===!1?Sr=[Ii]:Sr=[].concat((0,sr.Z)(xi.filter(Zi=>{let{key:Lr}=Zi;return Lr!==Ii.key})),[Ii]),Vn(Sr),Qt($l(Sr),Sr)}return[Ii=>Fu(gt,Ii,xi,Si,Pn,hn,Jn),xi,si,()=>$l(xi)]}function Ic(rt,gt){return rt.map(Xt=>{const Qt=Object.assign({},Xt);return Qt.title=ia(Xt.title,gt),"children"in Qt&&(Qt.children=Ic(Qt.children,gt)),Qt})}function Ts(rt){return[De.useCallback(Xt=>Ic(Xt,rt),[rt])]}var Io=Mr((rt,gt)=>{const{_renderTimes:Xt}=rt,{_renderTimes:Qt}=gt;return Xt!==Qt}),wl=Bt((rt,gt)=>{const{_renderTimes:Xt}=rt,{_renderTimes:Qt}=gt;return Xt!==Qt}),Il=ve(64993),ws=ve(17313),va=ve(83116),ol=ve(37613),nt=rt=>{const{componentCls:gt}=rt,Xt=`${rt.lineWidth}px ${rt.lineType} ${rt.tableBorderColor}`,Qt=(Pn,hn,Jn)=>({[`&${gt}-${Pn}`]:{[`> ${gt}-container`]:{[`> ${gt}-content, > ${gt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${gt}-expanded-row-fixed`]:{margin:`-${hn}px -${Jn+rt.lineWidth}px`}}}}}});return{[`${gt}-wrapper`]:{[`${gt}${gt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${gt}-title`]:{border:Xt,borderBottom:0},[`> ${gt}-container`]:{borderInlineStart:Xt,borderTop:Xt,[`
> ${gt}-content,
> ${gt}-header,
> ${gt}-body,
> ${gt}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Xt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Xt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${gt}-cell-fix-right-first::after`]:{borderInlineEnd:Xt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${gt}-expanded-row-fixed`]:{margin:`-${rt.tablePaddingVertical}px -${rt.tablePaddingHorizontal+rt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:rt.lineWidth,bottom:0,borderInlineEnd:Xt,content:'""'}}}}}},[`&${gt}-scroll-horizontal`]:{[`> ${gt}-container > ${gt}-body`]:{"> table > tbody":{[`
> tr${gt}-expanded-row,
> tr${gt}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Qt("middle",rt.tablePaddingVerticalMiddle,rt.tablePaddingHorizontalMiddle)),Qt("small",rt.tablePaddingVerticalSmall,rt.tablePaddingHorizontalSmall)),{[`> ${gt}-footer`]:{border:Xt,borderTop:0}}),[`${gt}-cell`]:{[`${gt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${rt.lineWidth}px 0 ${rt.lineWidth}px ${rt.tableHeaderBg}`}},[`${gt}-bordered ${gt}-cell-scrollbar`]:{borderInlineEnd:Xt}}}},$t=rt=>{const{componentCls:gt}=rt;return{[`${gt}-wrapper`]:{[`${gt}-cell-ellipsis`]:Object.assign(Object.assign({},ws.vS),{wordBreak:"keep-all",[`
&${gt}-cell-fix-left-last,
&${gt}-cell-fix-right-first
`]:{overflow:"visible",[`${gt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${gt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},In=rt=>{const{componentCls:gt}=rt;return{[`${gt}-wrapper`]:{[`${gt}-tbody > tr${gt}-placeholder`]:{textAlign:"center",color:rt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:rt.colorBgContainer}}}}},Wn=ve(15969),fi=rt=>{const{componentCls:gt,antCls:Xt,controlInteractiveSize:Qt,motionDurationSlow:Pn,lineWidth:hn,paddingXS:Jn,lineType:Yn,tableBorderColor:Vn,tableExpandIconBg:xi,tableExpandColumnWidth:si,borderRadius:Si,fontSize:Qi,fontSizeSM:Xi,lineHeight:Ii,tablePaddingVertical:Sr,tablePaddingHorizontal:Zi,tableExpandedRowBg:Lr,paddingXXS:Er}=rt,Or=Qt/2-hn,yo=Or*2+hn*3,Lo=`${hn}px ${Yn} ${Vn}`,Hr=Er-hn;return{[`${gt}-wrapper`]:{[`${gt}-expand-icon-col`]:{width:si},[`${gt}-row-expand-icon-cell`]:{textAlign:"center",[`${gt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${gt}-row-indent`]:{height:1,float:"left"},[`${gt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Wn.N)(rt)),{position:"relative",float:"left",boxSizing:"border-box",width:yo,height:yo,padding:0,color:"inherit",lineHeight:`${yo}px`,background:xi,border:Lo,borderRadius:Si,transform:`scale(${Qt/yo})`,transition:`all ${Pn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Pn} ease-out`,content:'""'},"&::before":{top:Or,insetInlineEnd:Hr,insetInlineStart:Hr,height:hn},"&::after":{top:Hr,bottom:Hr,insetInlineStart:Or,width:hn,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${gt}-row-indent + ${gt}-row-expand-icon`]:{marginTop:(Qi*Ii-hn*3)/2-Math.ceil((Xi*1.4-hn*3)/2),marginInlineEnd:Jn},[`tr${gt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Lr}},[`${Xt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${gt}-expanded-row-fixed`]:{position:"relative",margin:`-${Sr}px -${Zi}px`,padding:`${Sr}px ${Zi}px`}}}},ar=rt=>{const{componentCls:gt,antCls:Xt,iconCls:Qt,tableFilterDropdownWidth:Pn,tableFilterDropdownSearchWidth:hn,paddingXXS:Jn,paddingXS:Yn,colorText:Vn,lineWidth:xi,lineType:si,tableBorderColor:Si,tableHeaderIconColor:Qi,fontSizeSM:Xi,tablePaddingHorizontal:Ii,borderRadius:Sr,motionDurationSlow:Zi,colorTextDescription:Lr,colorPrimary:Er,tableHeaderFilterActiveBg:Or,colorTextDisabled:yo,tableFilterDropdownBg:Lo,tableFilterDropdownHeight:Hr,controlItemBgHover:qr,controlItemBgActive:Vo,boxShadowSecondary:Ir,filterDropdownMenuBg:ao}=rt,Wr=`${Xt}-dropdown`,mr=`${gt}-filter-dropdown`,Dr=`${Xt}-tree`,lo=`${xi}px ${si} ${Si}`;return[{[`${gt}-wrapper`]:{[`${gt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${gt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Jn,marginInline:`${Jn}px ${-Ii/2}px`,padding:`0 ${Jn}px`,color:Qi,fontSize:Xi,borderRadius:Sr,cursor:"pointer",transition:`all ${Zi}`,"&:hover":{color:Lr,background:Or},"&.active":{color:Er}}}},{[`${Xt}-dropdown`]:{[mr]:Object.assign(Object.assign({},(0,ws.Wf)(rt)),{minWidth:Pn,backgroundColor:Lo,borderRadius:Sr,boxShadow:Ir,overflow:"hidden",[`${Wr}-menu`]:{maxHeight:Hr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ao,"&:empty::after":{display:"block",padding:`${Yn}px 0`,color:yo,fontSize:Xi,textAlign:"center",content:'"Not Found"'}},[`${mr}-tree`]:{paddingBlock:`${Yn}px 0`,paddingInline:Yn,[Dr]:{padding:0},[`${Dr}-treenode ${Dr}-node-content-wrapper:hover`]:{backgroundColor:qr},[`${Dr}-treenode-checkbox-checked ${Dr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Vo}}},[`${mr}-search`]:{padding:Yn,borderBottom:lo,"&-input":{input:{minWidth:hn},[Qt]:{color:yo}}},[`${mr}-checkall`]:{width:"100%",marginBottom:Jn,marginInlineStart:Jn},[`${mr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Yn-xi}px ${Yn}px`,overflow:"hidden",borderTop:lo}})}},{[`${Xt}-dropdown ${mr}, ${mr}-submenu`]:{[`${Xt}-checkbox-wrapper + span`]:{paddingInlineStart:Yn,color:Vn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_i=rt=>{const{componentCls:gt,lineWidth:Xt,colorSplit:Qt,motionDurationSlow:Pn,zIndexTableFixed:hn,tableBg:Jn,zIndexTableSticky:Yn}=rt,Vn=Qt;return{[`${gt}-wrapper`]:{[`
${gt}-cell-fix-left,
${gt}-cell-fix-right
`]:{position:"sticky !important",zIndex:hn,background:Jn},[`
${gt}-cell-fix-left-first::after,
${gt}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Xt,width:30,transform:"translateX(100%)",transition:`box-shadow ${Pn}`,content:'""',pointerEvents:"none"},[`${gt}-cell-fix-left-all::after`]:{display:"none"},[`
${gt}-cell-fix-right-first::after,
${gt}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Xt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Pn}`,content:'""',pointerEvents:"none"},[`${gt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Yn+1,width:30,transition:`box-shadow ${Pn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${gt}-ping-left`]:{[`&:not(${gt}-has-fix-left) ${gt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Vn}`}},[`
${gt}-cell-fix-left-first::after,
${gt}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Vn}`},[`${gt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${gt}-ping-right`]:{[`&:not(${gt}-has-fix-right) ${gt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Vn}`}},[`
${gt}-cell-fix-right-first::after,
${gt}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Vn}`}}}}},xr=rt=>{const{componentCls:gt,antCls:Xt}=rt;return{[`${gt}-wrapper`]:{[`${gt}-pagination${Xt}-pagination`]:{margin:`${rt.margin}px 0`},[`${gt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:rt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},$i=rt=>{const{componentCls:gt,tableRadius:Xt}=rt;return{[`${gt}-wrapper`]:{[gt]:{[`${gt}-title, ${gt}-header`]:{borderRadius:`${Xt}px ${Xt}px 0 0`},[`${gt}-title + ${gt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${gt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Xt,borderStartEndRadius:Xt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Xt},"> *:last-child":{borderStartEndRadius:Xt}}},"&-footer":{borderRadius:`0 0 ${Xt}px ${Xt}px`}}}}},co=rt=>{const{componentCls:gt}=rt;return{[`${gt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${gt}-pagination-left`]:{justifyContent:"flex-end"},[`${gt}-pagination-right`]:{justifyContent:"flex-start"},[`${gt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${gt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${gt}-row-indent`]:{float:"right"}}}}},mo=rt=>{const{componentCls:gt,antCls:Xt,iconCls:Qt,fontSizeIcon:Pn,padding:hn,paddingXS:Jn,tableHeaderIconColor:Yn,tableHeaderIconColorHover:Vn,tableSelectionColumnWidth:xi}=rt;return{[`${gt}-wrapper`]:{[`${gt}-selection-col`]:{width:xi,[`&${gt}-selection-col-with-dropdown`]:{width:xi+Pn+hn/4}},[`${gt}-bordered ${gt}-selection-col`]:{width:xi+Jn*2,[`&${gt}-selection-col-with-dropdown`]:{width:xi+Pn+hn/4+Jn*2}},[`
table tr th${gt}-selection-column,
table tr td${gt}-selection-column
`]:{paddingInlineEnd:rt.paddingXS,paddingInlineStart:rt.paddingXS,textAlign:"center",[`${Xt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${gt}-selection-column${gt}-cell-fix-left`]:{zIndex:rt.zIndexTableFixed+1},[`table tr th${gt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${gt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${gt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${rt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${rt.tablePaddingHorizontal/4}px`,[Qt]:{color:Yn,fontSize:Pn,verticalAlign:"baseline","&:hover":{color:Vn}}}}}},ho=rt=>{const{componentCls:gt}=rt,Xt=(Qt,Pn,hn,Jn)=>({[`${gt}${gt}-${Qt}`]:{fontSize:Jn,[`
${gt}-title,
${gt}-footer,
${gt}-cell,
${gt}-thead > tr > th,
${gt}-tbody > tr > th,
${gt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Pn}px ${hn}px`},[`${gt}-filter-trigger`]:{marginInlineEnd:`-${hn/2}px`},[`${gt}-expanded-row-fixed`]:{margin:`-${Pn}px -${hn}px`},[`${gt}-tbody`]:{[`${gt}-wrapper:only-child ${gt}`]:{marginBlock:`-${Pn}px`,marginInline:`${rt.tableExpandColumnWidth-hn}px -${hn}px`}},[`${gt}-selection-column`]:{paddingInlineStart:`${hn/4}px`}}});return{[`${gt}-wrapper`]:Object.assign(Object.assign({},Xt("middle",rt.tablePaddingVerticalMiddle,rt.tablePaddingHorizontalMiddle,rt.tableFontSizeMiddle)),Xt("small",rt.tablePaddingVerticalSmall,rt.tablePaddingHorizontalSmall,rt.tableFontSizeSmall))}},la=rt=>{const{componentCls:gt,marginXXS:Xt,fontSizeIcon:Qt,tableHeaderIconColor:Pn,tableHeaderIconColorHover:hn}=rt;return{[`${gt}-wrapper`]:{[`${gt}-thead th${gt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${rt.motionDurationSlow}`,"&:hover":{background:rt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:rt.colorPrimary},[`
&${gt}-cell-fix-left:hover,
&${gt}-cell-fix-right:hover
`]:{background:rt.tableFixedHeaderSortActiveBg}},[`${gt}-thead th${gt}-column-sort`]:{background:rt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${gt}-column-sort`]:{background:rt.tableBodySortBg},[`${gt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${gt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${gt}-column-sorter`]:{marginInlineStart:Xt,color:Pn,fontSize:0,transition:`color ${rt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Qt,"&.active":{color:rt.colorPrimary}},[`${gt}-column-sorter-up + ${gt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${gt}-column-sorters:hover ${gt}-column-sorter`]:{color:hn}}}},ya=rt=>{const{componentCls:gt,opacityLoading:Xt,tableScrollThumbBg:Qt,tableScrollThumbBgHover:Pn,tableScrollThumbSize:hn,tableScrollBg:Jn,zIndexTableSticky:Yn,stickyScrollBarBorderRadius:Vn}=rt,xi=`${rt.lineWidth}px ${rt.lineType} ${rt.tableBorderColor}`;return{[`${gt}-wrapper`]:{[`${gt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Yn,background:rt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${hn}px !important`,zIndex:Yn,display:"flex",alignItems:"center",background:Jn,borderTop:xi,opacity:Xt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:hn,backgroundColor:Qt,borderRadius:Vn,transition:`all ${rt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Pn}}}}}}},Ha=rt=>{const{componentCls:gt,lineWidth:Xt,tableBorderColor:Qt}=rt,Pn=`${Xt}px ${rt.lineType} ${Qt}`;return{[`${gt}-wrapper`]:{[`${gt}-summary`]:{position:"relative",zIndex:rt.zIndexTableFixed,background:rt.tableBg,"> tr":{"> th, > td":{borderBottom:Pn}}},[`div${gt}-summary`]:{boxShadow:`0 -${Xt}px 0 ${Qt}`}}}},hs=rt=>{const{componentCls:gt}=rt,Xt=`${rt.lineWidth}px ${rt.lineType} ${rt.tableBorderColor}`,Qt=`${gt}-expanded-row-cell`;return{[`${gt}-wrapper`]:{[`${gt}-tbody-virtual`]:{[`${gt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${gt}-cell`]:{borderBottom:Xt},[`${gt}-expanded-row`]:{[`${Qt}${Qt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${rt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${gt}-bordered`]:{[`${gt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Xt,position:"absolute"},[`${gt}-cell`]:{borderInlineEnd:Xt,[`&${gt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-rt.lineWidth,borderInlineStart:Xt}}}}}}};const La=rt=>{const{componentCls:gt,fontWeightStrong:Xt,tablePaddingVertical:Qt,tablePaddingHorizontal:Pn,lineWidth:hn,lineType:Jn,tableBorderColor:Yn,tableFontSize:Vn,tableBg:xi,tableRadius:si,tableHeaderTextColor:Si,motionDurationMid:Qi,tableHeaderBg:Xi,tableHeaderCellSplitColor:Ii,tableRowHoverBg:Sr,tableSelectedRowBg:Zi,tableSelectedRowHoverBg:Lr,tableFooterTextColor:Er,tableFooterBg:Or,paddingContentVerticalLG:yo}=rt,Lo=`${hn}px ${Jn} ${Yn}`;return{[`${gt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ws.dF)()),{[gt]:Object.assign(Object.assign({},(0,ws.Wf)(rt)),{fontSize:Vn,background:xi,borderRadius:`${si}px ${si}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${si}px ${si}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${gt}-cell,
${gt}-thead > tr > th,
${gt}-tbody > tr > th,
${gt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${yo}px ${Pn}px`,overflowWrap:"break-word"},[`${gt}-title`]:{padding:`${Qt}px ${Pn}px`},[`${gt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Si,fontWeight:Xt,textAlign:"start",background:Xi,borderBottom:Lo,transition:`background ${Qi} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${gt}-selection-column):not(${gt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Ii,transform:"translateY(-50%)",transition:`background-color ${Qi}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${gt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Qi}, border-color ${Qi}`,borderBottom:Lo,[`
> ${gt}-wrapper:only-child,
> ${gt}-expanded-row-fixed > ${gt}-wrapper:only-child
`]:{[gt]:{marginBlock:`-${Qt}px`,marginInline:`${rt.tableExpandColumnWidth-Pn}px -${Pn}px`,[`${gt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Si,fontWeight:Xt,textAlign:"start",background:Xi,borderBottom:Lo,transition:`background ${Qi} ease`},[`
&${gt}-row:hover > th,
&${gt}-row:hover > td,
> th${gt}-cell-row-hover,
> td${gt}-cell-row-hover
`]:{background:Sr},[`&${gt}-row-selected`]:{"> th, > td":{background:Zi},"&:hover > th, &:hover > td":{background:Lr}}}},[`${gt}-footer`]:{padding:`${Qt}px ${Pn}px`,color:Er,background:Or}})}};var Ca=(0,va.Z)("Table",rt=>{const{colorTextHeading:gt,colorSplit:Xt,colorIcon:Qt,colorIconHover:Pn,opacityLoading:hn,colorBgContainer:Jn,controlInteractiveSize:Yn,headerBg:Vn,headerColor:xi,headerSortActiveBg:si,headerSortHoverBg:Si,bodySortBg:Qi,rowHoverBg:Xi,rowSelectedBg:Ii,rowSelectedHoverBg:Sr,rowExpandedBg:Zi,cellPaddingBlock:Lr,cellPaddingInline:Er,cellPaddingBlockMD:Or,cellPaddingInlineMD:yo,cellPaddingBlockSM:Lo,cellPaddingInlineSM:Hr,borderColor:qr,footerBg:Vo,footerColor:Ir,headerBorderRadius:ao,cellFontSize:Wr,cellFontSizeMD:mr,cellFontSizeSM:Dr,headerSplitColor:lo,fixedHeaderSortActiveBg:Mo,headerFilterHoverBg:ko,filterDropdownBg:Br,expandIconBg:Go,selectionColumnWidth:_o,stickyScrollBarBg:na}=rt,ta=new Il.C(Qt),_a=new Il.C(Pn),ga=2,Ho=(0,ol.TS)(rt,{tableFontSize:Wr,tableBg:Jn,tableRadius:ao,tablePaddingVertical:Lr,tablePaddingHorizontal:Er,tablePaddingVerticalMiddle:Or,tablePaddingHorizontalMiddle:yo,tablePaddingVerticalSmall:Lo,tablePaddingHorizontalSmall:Hr,tableBorderColor:qr,tableHeaderTextColor:xi,tableHeaderBg:Vn,tableFooterTextColor:Ir,tableFooterBg:Vo,tableHeaderCellSplitColor:lo,tableHeaderSortBg:si,tableHeaderSortHoverBg:Si,tableHeaderIconColor:ta.clone().setAlpha(ta.getAlpha()*hn).toRgbString(),tableHeaderIconColorHover:_a.clone().setAlpha(_a.getAlpha()*hn).toRgbString(),tableBodySortBg:Qi,tableFixedHeaderSortActiveBg:Mo,tableHeaderFilterActiveBg:ko,tableFilterDropdownBg:Br,tableRowHoverBg:Xi,tableSelectedRowBg:Ii,tableSelectedRowHoverBg:Sr,zIndexTableFixed:ga,zIndexTableSticky:ga+1,tableFontSizeMiddle:mr,tableFontSizeSmall:Dr,tableSelectionColumnWidth:_o,tableExpandIconBg:Go,tableExpandColumnWidth:Yn+2*rt.padding,tableExpandedRowBg:Zi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:na,tableScrollThumbBgHover:gt,tableScrollBg:Xt});return[La(Ho),xr(Ho),Ha(Ho),la(Ho),ar(Ho),nt(Ho),$i(Ho),fi(Ho),Ha(Ho),In(Ho),mo(Ho),_i(Ho),ya(Ho),$t(Ho),ho(Ho),co(Ho),hs(Ho)]},rt=>{const{colorFillAlter:gt,colorBgContainer:Xt,colorTextHeading:Qt,colorFillSecondary:Pn,colorFillContent:hn,controlItemBgActive:Jn,controlItemBgActiveHover:Yn,padding:Vn,paddingSM:xi,paddingXS:si,colorBorderSecondary:Si,borderRadiusLG:Qi,fontSize:Xi,controlHeight:Ii,colorTextPlaceholder:Sr}=rt,Zi=new Il.C(Pn).onBackground(Xt).toHexShortString(),Lr=new Il.C(hn).onBackground(Xt).toHexShortString(),Er=new Il.C(gt).onBackground(Xt).toHexShortString();return{headerBg:Er,headerColor:Qt,headerSortActiveBg:Zi,headerSortHoverBg:Lr,bodySortBg:Er,rowHoverBg:Er,rowSelectedBg:Jn,rowSelectedHoverBg:Yn,rowExpandedBg:gt,cellPaddingBlock:Vn,cellPaddingInline:Vn,cellPaddingBlockMD:xi,cellPaddingInlineMD:si,cellPaddingBlockSM:si,cellPaddingInlineSM:si,borderColor:Si,headerBorderRadius:Qi,footerBg:Er,footerColor:Qt,cellFontSize:Xi,cellFontSizeMD:Xi,cellFontSizeSM:Xi,headerSplitColor:Si,fixedHeaderSortActiveBg:Zi,headerFilterHoverBg:hn,filterDropdownMenuBg:Xt,filterDropdownBg:Xt,expandIconBg:Xt,selectionColumnWidth:Ii,stickyScrollBarBg:Sr,stickyScrollBarBorderRadius:100}});const Ta=[],os=(rt,gt)=>{const{prefixCls:Xt,className:Qt,rootClassName:Pn,style:hn,size:Jn,bordered:Yn,dropdownPrefixCls:Vn,dataSource:xi,pagination:si,rowSelection:Si,rowKey:Qi="key",rowClassName:Xi,columns:Ii,children:Sr,childrenColumnName:Zi,onChange:Lr,getPopupContainer:Er,loading:Or,expandIcon:yo,expandable:Lo,expandedRowRender:Hr,expandIconColumnIndex:qr,indentSize:Vo,scroll:Ir,sortDirections:ao,locale:Wr,showSorterTooltip:mr=!0,virtual:Dr}=rt,lo=De.useMemo(()=>Ii||Yt(Sr),[Ii,Sr]),Mo=De.useMemo(()=>lo.some(Ra=>Ra.responsive),[lo]),ko=(0,zn.Z)(Mo),Br=De.useMemo(()=>{const Ra=new Set(Object.keys(ko).filter(ss=>ko[ss]));return lo.filter(ss=>!ss.responsive||ss.responsive.some(Qs=>Ra.has(Qs)))},[lo,ko]),Go=(0,Kn.Z)(rt,["className","style","columns"]),{locale:_o=pr.Z,direction:na,table:ta,renderEmpty:_a,getPrefixCls:ga,getPopupContainer:Ho}=De.useContext(vr.E_),wo=(0,Bi.Z)(Jn),Oo=Object.assign(Object.assign({},_o.Table),Wr),Ua=xi||Ta,Ia=ga("table",Xt),ts=ga("dropdown",Vn),Ro=Object.assign({childrenColumnName:Zi,expandIconColumnIndex:qr},Lo),{childrenColumnName:bo="children"}=Ro,Wo=De.useMemo(()=>Ua.some(Ra=>Ra==null?void 0:Ra[bo])?"nest":Hr||Lo&&Lo.expandedRowRender?"row":null,[Ua]),xo={body:De.useRef()},oo=De.useMemo(()=>typeof Qi=="function"?Qi:Ra=>Ra==null?void 0:Ra[Qi],[Qi]),[qi]=xc(Ua,bo,oo),Vr={},Xo=function(Ra,ss){let Qs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ps,za,_s;const Rl=Object.assign(Object.assign({},Vr),Ra);Qs&&((ps=Vr.resetPagination)===null||ps===void 0||ps.call(Vr),!((za=Rl.pagination)===null||za===void 0)&&za.current&&(Rl.pagination.current=1),si&&si.onChange&&si.onChange(1,(_s=Rl.pagination)===null||_s===void 0?void 0:_s.pageSize)),Ir&&Ir.scrollToFirstRowOnChange!==!1&&xo.body.current&&(0,Ei.Z)(0,{getContainer:()=>xo.body.current}),Lr==null||Lr(Rl.pagination,Rl.filters,Rl.sorter,{currentDataSource:rl(jl(Ua,Rl.sorterStates,bo),Rl.filterStates),action:ss})},ua=(Ra,ss)=>{Xo({sorter:Ra,sorterStates:ss},"sort",!1)},[al,Rs,Al,Na]=Pc({prefixCls:Ia,mergedColumns:Br,onSorterChange:ua,sortDirections:ao||["ascend","descend"],tableLocale:Oo,showSorterTooltip:mr}),Xa=De.useMemo(()=>jl(Ua,Rs,bo),[Ua,Rs]);Vr.sorter=Na(),Vr.sorterStates=Rs;const Bo=(Ra,ss)=>{Xo({filters:Ra,filterStates:ss},"filter",!0)},[Vs,Ll,Wa]=Sc({prefixCls:Ia,locale:Oo,dropdownPrefixCls:ts,mergedColumns:Br,onFilterChange:Bo,getPopupContainer:Er||Ho}),$a=rl(Xa,Ll);Vr.filters=Wa,Vr.filterStates=Ll;const ns=De.useMemo(()=>{const Ra={};return Object.keys(Wa).forEach(ss=>{Wa[ss]!==null&&(Ra[ss]=Wa[ss])}),Object.assign(Object.assign({},Al),{filters:Ra})},[Al,Wa]),[bs]=Ts(ns),Gs=(Ra,ss)=>{Xo({pagination:Object.assign(Object.assign({},Vr.pagination),{current:Ra,pageSize:ss})},"paginate")},[Sa,as]=pu($a.length,Gs,si);Vr.pagination=si===!1?{}:xl(Sa,si),Vr.resetPagination=as;const Js=De.useMemo(()=>{if(si===!1||!Sa.pageSize)return $a;const{current:Ra=1,total:ss,pageSize:Qs=zl}=Sa;return $a.length<ss?$a.length>Qs?$a.slice((Ra-1)*Qs,Ra*Qs):$a:$a.slice((Ra-1)*Qs,Ra*Qs)},[!!si,$a,Sa&&Sa.current,Sa&&Sa.pageSize,Sa&&Sa.total]),[Ja,zo]=Bs({prefixCls:Ia,data:$a,pageData:Js,getRowKey:oo,getRecordByKey:qi,expandType:Wo,childrenColumnName:bo,locale:Oo,getPopupContainer:Er||Ho},Si),Ms=(Ra,ss,Qs)=>{let ps;return typeof Xi=="function"?ps=Xe()(Xi(Ra,ss,Qs)):ps=Xe()(Xi),Xe()({[`${Ia}-row-selected`]:zo.has(oo(Ra,ss))},ps)};Ro.__PARENT_RENDER_ICON__=Ro.expandIcon,Ro.expandIcon=Ro.expandIcon||yo||eo(Oo),Wo==="nest"&&Ro.expandIconColumnIndex===void 0?Ro.expandIconColumnIndex=Si?1:0:Ro.expandIconColumnIndex>0&&Si&&(Ro.expandIconColumnIndex-=1),typeof Ro.indentSize!="number"&&(Ro.indentSize=typeof Vo=="number"?Vo:15);const Ys=De.useCallback(Ra=>bs(Ja(Vs(al(Ra)))),[al,Vs,Ja]);let Wu,vu;if(si!==!1&&(Sa!=null&&Sa.total)){let Ra;Sa.size?Ra=Sa.size:Ra=wo==="small"||wo==="middle"?"small":void 0;const ss=za=>De.createElement(kr.Z,Object.assign({},Sa,{className:Xe()(`${Ia}-pagination ${Ia}-pagination-${za}`,Sa.className),size:Ra})),Qs=na==="rtl"?"left":"right",{position:ps}=Sa;if(ps!==null&&Array.isArray(ps)){const za=ps.find(Zu=>Zu.includes("top")),_s=ps.find(Zu=>Zu.includes("bottom")),Rl=ps.every(Zu=>`${Zu}`=="none");!za&&!_s&&!Rl&&(vu=ss(Qs)),za&&(Wu=ss(za.toLowerCase().replace("top",""))),_s&&(vu=ss(_s.toLowerCase().replace("bottom","")))}else vu=ss(Qs)}let qa;typeof Or=="boolean"?qa={spinning:Or}:typeof Or=="object"&&(qa=Object.assign({spinning:!0},Or));const[Ml,Ps]=Ca(Ia),[,gs]=(0,to.Z)(),Nu=Xe()(`${Ia}-wrapper`,ta==null?void 0:ta.className,{[`${Ia}-wrapper-rtl`]:na==="rtl"},Qt,Pn,Ps),Cc=Object.assign(Object.assign({},ta==null?void 0:ta.style),hn),ql=Wr&&Wr.emptyText||(_a==null?void 0:_a("Table"))||De.createElement(Ai.Z,{componentName:"Table"}),ac=Dr?wl:Io,sc={},yu=De.useMemo(()=>{const{fontSize:Ra,lineHeight:ss,padding:Qs,paddingXS:ps,paddingSM:za}=gs,_s=Math.floor(Ra*ss);switch(wo){case"large":return Qs*2+_s;case"small":return ps*2+_s;default:return za*2+_s}},[gs,wo]);return Dr&&(sc.listItemHeight=yu),Ml(De.createElement("div",{ref:gt,className:Nu,style:Cc},De.createElement(po.Z,Object.assign({spinning:!1},qa),Wu,De.createElement(ac,Object.assign({},sc,Go,{columns:Br,direction:na,expandable:Ro,prefixCls:Ia,className:Xe()({[`${Ia}-middle`]:wo==="middle",[`${Ia}-small`]:wo==="small",[`${Ia}-bordered`]:Yn,[`${Ia}-empty`]:Ua.length===0}),data:Js,rowKey:oo,rowClassName:Ms,emptyText:ql,internalHooks:Oe,internalRefs:xo,transformColumns:Ys})),vu)))};var fs=De.forwardRef(os);const Qa=(rt,gt)=>{const Xt=De.useRef(0);return Xt.current+=1,De.createElement(fs,Object.assign({},rt,{ref:gt,_renderTimes:Xt.current}))},Oa=De.forwardRef(Qa);Oa.SELECTION_COLUMN=Cs,Oa.EXPAND_COLUMN=ye,Oa.SELECTION_ALL=Ss,Oa.SELECTION_INVERT=rs,Oa.SELECTION_NONE=ds,Oa.Column=tn,Oa.ColumnGroup=Xn,Oa.Summary=Ve;var Is=Oa,hl=Is},98228:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return Fo}});var ye=ve(92310),Oe=ve.n(ye),He=ve(92413),Rt=ve(26407),$e=ve(33708),qe=ve(33606),De=ve(37061),Tt=ve(39559),Et=ve(77861),et=ve(17115),Ot=ve(90782),it=ve(18929),Pt=ve(48736),Me=ve(59301),te=function(ti){var Ae=Me.useRef({valueLabels:new Map});return Me.useMemo(function(){var $n=Ae.current.valueLabels,oi=new Map,fn=ti.map(function(Qn){var Zn,an=Qn.value,Jt=(Zn=Qn.label)!==null&&Zn!==void 0?Zn:$n.get(an);return oi.set(an,Jt),(0,$e.Z)((0,$e.Z)({},Qn),{},{label:Jt})});return Ae.current.valueLabels=oi,[fn]},[ti])},ne=function(ti,Ae,$n,oi){return Me.useMemo(function(){var fn=ti.map(function(Jt){var vn=Jt.value;return vn}),Qn=Ae.map(function(Jt){var vn=Jt.value;return vn}),Zn=fn.filter(function(Jt){return!oi[Jt]});if($n){var an=(0,Ot.S)(fn,!0,oi);fn=an.checkedKeys,Qn=an.halfCheckedKeys}return[Array.from(new Set([].concat((0,Rt.Z)(Zn),(0,Rt.Z)(fn)))),Qn]},[ti,Ae,$n,oi])},ce=ve(71430),se=function(ti,Ae){return Me.useMemo(function(){var $n=(0,ce.I8)(ti,{fieldNames:Ae,initWrapper:function(fn){return(0,$e.Z)((0,$e.Z)({},fn),{},{valueEntities:new Map})},processEntity:function(fn,Qn){var Zn=fn.node[Ae.value];if(0)var an;Qn.valueEntities.set(Zn,fn)}});return $n},[ti,Ae])},ge=ve(400),me=ve(11592),Ce=function(){return null},Fe=Ce,Pe=["children","value"];function Ie(ti){return(0,me.Z)(ti).map(function(Ae){if(!Me.isValidElement(Ae)||!Ae.type)return null;var $n=Ae,oi=$n.key,fn=$n.props,Qn=fn.children,Zn=fn.value,an=(0,De.Z)(fn,Pe),Jt=(0,$e.Z)({key:oi,value:Zn},an),vn=Ie(Qn);return vn.length&&(Jt.children=vn),Jt}).filter(function(Ae){return Ae})}function Ge(ti){if(!ti)return ti;var Ae=(0,$e.Z)({},ti);return"props"in Ae||Object.defineProperty(Ae,"props",{get:function(){return(0,Pt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ae}}),Ae}function Ke(ti,Ae,$n,oi,fn,Qn){var Zn=null,an=null;function Jt(){function vn(xt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return xt.map(function(Yt,on){var ht="".concat(wt,"-").concat(on),Qe=Yt[Qn.value],_t=$n.includes(Qe),It=vn(Yt[Qn.children]||[],ht,_t),Fn=Me.createElement(Fe,Yt,It.map(function(ct){return ct.node}));if(Ae===Qe&&(Zn=Fn),_t){var Hn={pos:ht,node:Fn,children:It};return ze||an.push(Hn),Hn}return null}).filter(function(Yt){return Yt})}an||(an=[],vn(oi),an.sort(function(xt,wt){var ze=xt.node.props.value,Yt=wt.node.props.value,on=$n.indexOf(ze),ht=$n.indexOf(Yt);return on-ht}))}Object.defineProperty(ti,"triggerNode",{get:function(){return(0,Pt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Jt(),Zn}}),Object.defineProperty(ti,"allCheckedNodes",{get:function(){return(0,Pt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Jt(),fn?an:an.map(function(xt){var wt=xt.node;return wt})}})}var Ye=function(ti,Ae,$n){var oi=$n.treeNodeFilterProp,fn=$n.filterTreeNode,Qn=$n.fieldNames,Zn=Qn.children;return Me.useMemo(function(){if(!Ae||fn===!1)return ti;var an;if(typeof fn=="function")an=fn;else{var Jt=Ae.toUpperCase();an=function(wt,ze){var Yt=ze[oi];return String(Yt).toUpperCase().includes(Jt)}}function vn(xt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xt.reduce(function(ze,Yt){var on=Yt[Zn],ht=wt||an(Ae,Ge(Yt)),Qe=vn(on||[],ht);return(ht||Qe.length)&&ze.push((0,$e.Z)((0,$e.Z)({},Yt),{},(0,ge.Z)({isLeaf:void 0},Zn,Qe))),ze},[])}return vn(ti)},[ti,Ae,Zn,oi,fn])};function pt(ti){var Ae=Me.useRef();Ae.current=ti;var $n=Me.useCallback(function(){return Ae.current.apply(Ae,arguments)},[]);return $n}function Je(ti,Ae){var $n=Ae.id,oi=Ae.pId,fn=Ae.rootPId,Qn={},Zn=[],an=ti.map(function(Jt){var vn=(0,$e.Z)({},Jt),xt=vn[$n];return Qn[xt]=vn,vn.key=vn.key||xt,vn});return an.forEach(function(Jt){var vn=Jt[oi],xt=Qn[vn];xt&&(xt.children=xt.children||[],xt.children.push(Jt)),(vn===fn||!xt&&fn===null)&&Zn.push(Jt)}),Zn}function kt(ti,Ae,$n){return Me.useMemo(function(){return ti?$n?Je(ti,(0,$e.Z)({id:"id",pId:"pId",rootPId:null},$n!==!0?$n:{})):ti:Ie(Ae)},[Ae,$n,ti])}var Xe=Me.createContext(null),Wt=Xe,zt=ve(10228),jt=ve(80547),Mt=ve(23130),Ut=Me.createContext(null),ft=Ut;function Re(ti){return Array.isArray(ti)?ti:ti!==void 0?[ti]:[]}function Lt(ti){var Ae=ti||{},$n=Ae.label,oi=Ae.value,fn=Ae.children,Qn=oi||"value";return{_title:$n?[$n]:["title","label"],value:Qn,key:Qn,children:fn||"children"}}function yn(ti){return!ti||ti.disabled||ti.disableCheckbox||ti.checkable===!1}function mn(ti,Ae){var $n=[];function oi(fn){fn.forEach(function(Qn){var Zn=Qn[Ae.children];Zn&&($n.push(Qn[Ae.value]),oi(Zn))})}return oi(ti),$n}function Nt(ti){return ti==null}var en={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},nn=function(Ae,$n){var oi=(0,Et.lk)(),fn=oi.prefixCls,Qn=oi.multiple,Zn=oi.searchValue,an=oi.toggleOpen,Jt=oi.open,vn=oi.notFoundContent,xt=Me.useContext(ft),wt=xt.virtual,ze=xt.listHeight,Yt=xt.listItemHeight,on=xt.treeData,ht=xt.fieldNames,Qe=xt.onSelect,_t=xt.dropdownMatchSelectWidth,It=xt.treeExpandAction,Fn=Me.useContext(Wt),Hn=Fn.checkable,ct=Fn.checkedKeys,sn=Fn.halfCheckedKeys,Un=Fn.treeExpandedKeys,_n=Fn.treeDefaultExpandAll,Zt=Fn.treeDefaultExpandedKeys,rn=Fn.onTreeExpand,wi=Fn.treeIcon,Ci=Fn.showTreeIcon,yi=Fn.switcherIcon,ci=Fn.treeLine,Pi=Fn.treeNodeFilterProp,Mi=Fn.loadData,ji=Fn.treeLoadedKeys,lr=Fn.treeMotion,nr=Fn.onTreeLoad,Nn=Fn.keyEntities,Pr=Me.useRef(),Tr=(0,jt.Z)(function(){return on},[Jt,on],function(hr,Gr){return Gr[0]&&hr[1]!==Gr[1]}),br=Me.useState(null),Cn=(0,qe.Z)(br,2),di=Cn[0],Ki=Cn[1],ir=Nn[di],Yi=Me.useMemo(function(){return Hn?{checked:ct,halfChecked:sn}:null},[Hn,ct,sn]);Me.useEffect(function(){if(Jt&&!Qn&&ct.length){var hr;(hr=Pr.current)===null||hr===void 0||hr.scrollTo({key:ct[0]}),Ki(ct[0])}},[Jt]);var cr=String(Zn).toLowerCase(),Mr=function(Gr){return cr?String(Gr[Pi]).toLowerCase().includes(cr):!1},Di=Me.useState(Zt),Ui=(0,qe.Z)(Di,2),Wi=Ui[0],Dn=Ui[1],Fr=Me.useState(null),Ln=(0,qe.Z)(Fr,2),fr=Ln[0],Ur=Ln[1],Cr=Me.useMemo(function(){return Un?(0,Rt.Z)(Un):Zn?fr:Wi},[Wi,fr,Un,Zn]);Me.useEffect(function(){Zn&&Ur(mn(on,ht))},[Zn]);var Do=function(Gr){Dn(Gr),Ur(Gr),rn&&rn(Gr)},so=function(Gr){Gr.preventDefault()},yr=function(Gr,Oi){var _e=Oi.node;Hn&&yn(_e)||(Qe(_e.key,{selected:!ct.includes(_e.key)}),Qn||an(!1))};if(Me.useImperativeHandle($n,function(){var hr;return{scrollTo:(hr=Pr.current)===null||hr===void 0?void 0:hr.scrollTo,onKeyDown:function(Oi){var _e,yt=Oi.which;switch(yt){case zt.Z.UP:case zt.Z.DOWN:case zt.Z.LEFT:case zt.Z.RIGHT:(_e=Pr.current)===null||_e===void 0||_e.onKeyDown(Oi);break;case zt.Z.ENTER:{if(ir){var Bt=(ir==null?void 0:ir.node)||{},ln=Bt.selectable,jn=Bt.value;ln!==!1&&yr(null,{node:{key:di},selected:!ct.includes(jn)})}break}case zt.Z.ESC:an(!1)}},onKeyUp:function(){}}}),Tr.length===0)return Me.createElement("div",{role:"listbox",className:"".concat(fn,"-empty"),onMouseDown:so},vn);var gr={fieldNames:ht};return ji&&(gr.loadedKeys=ji),Cr&&(gr.expandedKeys=Cr),Me.createElement("div",{onMouseDown:so},ir&&Jt&&Me.createElement("span",{style:en,"aria-live":"assertive"},ir.node.value),Me.createElement(Mt.Z,(0,He.Z)({ref:Pr,focusable:!1,prefixCls:"".concat(fn,"-tree"),treeData:Tr,height:ze,itemHeight:Yt,virtual:wt!==!1&&_t!==!1,multiple:Qn,icon:wi,showIcon:Ci,switcherIcon:yi,showLine:ci,loadData:Zn?null:Mi,motion:lr,activeKey:di,checkable:Hn,checkStrictly:!0,checkedKeys:Yi,selectedKeys:Hn?[]:ct,defaultExpandAll:_n},gr,{onActiveChange:Ki,onSelect:yr,onCheck:yr,onExpand:Do,onLoad:nr,filterTreeNode:Mr,expandAction:It})))},On=Me.forwardRef(nn);On.displayName="OptionList";var dn=On,Tn="SHOW_ALL",mt="SHOW_PARENT",Gn="SHOW_CHILD";function xn(ti,Ae,$n,oi){var fn=new Set(ti);return Ae===Gn?ti.filter(function(Qn){var Zn=$n[Qn];return!(Zn&&Zn.children&&Zn.children.some(function(an){var Jt=an.node;return fn.has(Jt[oi.value])})&&Zn.children.every(function(an){var Jt=an.node;return yn(Jt)||fn.has(Jt[oi.value])}))}):Ae===mt?ti.filter(function(Qn){var Zn=$n[Qn],an=Zn?Zn.parent:null;return!(an&&!yn(an.node)&&fn.has(an.key))}):ti}function tt(ti){var Ae=ti.searchPlaceholder,$n=ti.treeCheckStrictly,oi=ti.treeCheckable,fn=ti.labelInValue,Qn=ti.value,Zn=ti.multiple;warning(!Ae,"`searchPlaceholder` has been removed."),$n&&fn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(fn||$n)&&warning(toArray(Qn).every(function(an){return an&&_typeof(an)==="object"&&"value"in an}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),$n||Zn||oi?warning(!Qn||Array.isArray(Qn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Qn),"`value` should not be array when `TreeSelect` is single mode.")}var Ee=null,we=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function Be(ti){return!ti||(0,Tt.Z)(ti)!=="object"}var ke=Me.forwardRef(function(ti,Ae){var $n=ti.id,oi=ti.prefixCls,fn=oi===void 0?"rc-tree-select":oi,Qn=ti.value,Zn=ti.defaultValue,an=ti.onChange,Jt=ti.onSelect,vn=ti.onDeselect,xt=ti.searchValue,wt=ti.inputValue,ze=ti.onSearch,Yt=ti.autoClearSearchValue,on=Yt===void 0?!0:Yt,ht=ti.filterTreeNode,Qe=ti.treeNodeFilterProp,_t=Qe===void 0?"value":Qe,It=ti.showCheckedStrategy,Fn=ti.treeNodeLabelProp,Hn=ti.multiple,ct=ti.treeCheckable,sn=ti.treeCheckStrictly,Un=ti.labelInValue,_n=ti.fieldNames,Zt=ti.treeDataSimpleMode,rn=ti.treeData,wi=ti.children,Ci=ti.loadData,yi=ti.treeLoadedKeys,ci=ti.onTreeLoad,Pi=ti.treeDefaultExpandAll,Mi=ti.treeExpandedKeys,ji=ti.treeDefaultExpandedKeys,lr=ti.onTreeExpand,nr=ti.treeExpandAction,Nn=ti.virtual,Pr=ti.listHeight,Tr=Pr===void 0?200:Pr,br=ti.listItemHeight,Cn=br===void 0?20:br,di=ti.onDropdownVisibleChange,Ki=ti.dropdownMatchSelectWidth,ir=Ki===void 0?!0:Ki,Yi=ti.treeLine,cr=ti.treeIcon,Mr=ti.showTreeIcon,Di=ti.switcherIcon,Ui=ti.treeMotion,Wi=(0,De.Z)(ti,we),Dn=(0,et.ZP)($n),Fr=ct&&!sn,Ln=ct||sn,fr=sn||Un,Ur=Ln||Hn,Cr=(0,it.Z)(Zn,{value:Qn}),Do=(0,qe.Z)(Cr,2),so=Do[0],yr=Do[1],gr=Me.useMemo(function(){return ct?It||Gn:Tn},[It,ct]),hr=Me.useMemo(function(){return Lt(_n)},[JSON.stringify(_n)]),Gr=(0,it.Z)("",{value:xt!==void 0?xt:wt,postState:function(Ao){return Ao||""}}),Oi=(0,qe.Z)(Gr,2),_e=Oi[0],yt=Oi[1],Bt=function(Ao){yt(Ao),ze==null||ze(Ao)},ln=kt(rn,wi,Zt),jn=se(ln,hr),ri=jn.keyEntities,tn=jn.valueEntities,bn=Me.useCallback(function(wa){var Ao=[],Ko=[];return wa.forEach(function(Ka){tn.has(Ka)?Ko.push(Ka):Ao.push(Ka)}),{missingRawValues:Ao,existRawValues:Ko}},[tn]),Xn=Ye(ln,_e,{fieldNames:hr,treeNodeFilterProp:_t,filterTreeNode:ht}),Kn=Me.useCallback(function(wa){if(wa){if(Fn)return wa[Fn];for(var Ao=hr._title,Ko=0;Ko<Ao.length;Ko+=1){var Ka=wa[Ao[Ko]];if(Ka!==void 0)return Ka}}},[hr,Fn]),Ei=Me.useCallback(function(wa){var Ao=Re(wa);return Ao.map(function(Ko){return Be(Ko)?{value:Ko}:Ko})},[]),vr=Me.useCallback(function(wa){var Ao=Ei(wa);return Ao.map(function(Ko){var Ka=Ko.label,Kr=Ko.value,No=Ko.halfChecked,ro,Hi=tn.get(Kr);if(Hi){var fa;Ka=(fa=Ka)!==null&&fa!==void 0?fa:Kn(Hi.node),ro=Hi.node.disabled}else if(Ka===void 0){var ka=Ei(so).find(function(Ds){return Ds.value===Kr});Ka=ka.label}return{label:Ka,value:Kr,halfChecked:No,disabled:ro}})},[tn,Kn,Ei,so]),Ai=Me.useMemo(function(){return Ei(so)},[Ei,so]),Bi=Me.useMemo(function(){var wa=[],Ao=[];return Ai.forEach(function(Ko){Ko.halfChecked?Ao.push(Ko):wa.push(Ko)}),[wa,Ao]},[Ai]),zn=(0,qe.Z)(Bi,2),pr=zn[0],kr=zn[1],po=Me.useMemo(function(){return pr.map(function(wa){return wa.value})},[pr]),to=ne(pr,kr,Fr,ri),Jr=(0,qe.Z)(to,2),eo=Jr[0],Zo=Jr[1],$o=Me.useMemo(function(){var wa=xn(eo,gr,ri,hr),Ao=wa.map(function(No){var ro,Hi,fa;return(ro=(Hi=ri[No])===null||Hi===void 0||(fa=Hi.node)===null||fa===void 0?void 0:fa[hr.value])!==null&&ro!==void 0?ro:No}),Ko=Ao.map(function(No){var ro=pr.find(function(Hi){return Hi.value===No});return{value:No,label:ro==null?void 0:ro.label}}),Ka=vr(Ko),Kr=Ka[0];return!Ur&&Kr&&Nt(Kr.value)&&Nt(Kr.label)?[]:Ka.map(function(No){var ro;return(0,$e.Z)((0,$e.Z)({},No),{},{label:(ro=No.label)!==null&&ro!==void 0?ro:No.value})})},[hr,Ur,eo,pr,vr,gr,ri]),ia=te($o),qo=(0,qe.Z)(ia,1),Sn=qo[0],oa=pt(function(wa,Ao,Ko){var Ka=vr(wa);if(yr(Ka),on&&yt(""),an){var Kr=wa;if(Fr){var No=xn(wa,gr,ri,hr);Kr=No.map(function(pa){var Os=tn.get(pa);return Os?Os.node[hr.value]:pa})}var ro=Ao||{triggerValue:void 0,selected:void 0},Hi=ro.triggerValue,fa=ro.selected,ka=Kr;if(sn){var Ds=kr.filter(function(pa){return!Kr.includes(pa.value)});ka=[].concat((0,Rt.Z)(ka),(0,Rt.Z)(Ds))}var ys=vr(ka),nl={preValue:pr,triggerValue:Hi},Gi=!0;(sn||Ko==="selection"&&!fa)&&(Gi=!1),Ke(nl,Hi,wa,ln,Gi,hr),Ln?nl.checked=fa:nl.selected=fa;var Da=fr?ys:ys.map(function(pa){return pa.value});an(Ur?Da:Da[0],fr?null:ys.map(function(pa){return pa.label}),nl)}}),vs=Me.useCallback(function(wa,Ao){var Ko,Ka=Ao.selected,Kr=Ao.source,No=ri[wa],ro=No==null?void 0:No.node,Hi=(Ko=ro==null?void 0:ro[hr.value])!==null&&Ko!==void 0?Ko:wa;if(!Ur)oa([Hi],{selected:!0,triggerValue:Hi},"option");else{var fa=Ka?[].concat((0,Rt.Z)(po),[Hi]):eo.filter(function(Os){return Os!==Hi});if(Fr){var ka=bn(fa),Ds=ka.missingRawValues,ys=ka.existRawValues,nl=ys.map(function(Os){return tn.get(Os).key}),Gi;if(Ka){var Da=(0,Ot.S)(nl,!0,ri);Gi=Da.checkedKeys}else{var pa=(0,Ot.S)(nl,{checked:!1,halfCheckedKeys:Zo},ri);Gi=pa.checkedKeys}fa=[].concat((0,Rt.Z)(Ds),(0,Rt.Z)(Gi.map(function(Os){return ri[Os].node[hr.value]})))}oa(fa,{selected:Ka,triggerValue:Hi},Kr||"option")}Ka||!Ur?Jt==null||Jt(Hi,Ge(ro)):vn==null||vn(Hi,Ge(ro))},[bn,tn,ri,hr,Ur,po,oa,Fr,Jt,vn,eo,Zo]),Ga=Me.useCallback(function(wa){if(di){var Ao={};Object.defineProperty(Ao,"documentClickClose",{get:function(){return(0,Pt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),di(wa,Ao)}},[di]),Zs=pt(function(wa,Ao){var Ko=wa.map(function(Ka){return Ka.value});if(Ao.type==="clear"){oa(Ko,{},"selection");return}Ao.values.length&&vs(Ao.values[0].value,{selected:!1,source:"selection"})}),xa=Me.useMemo(function(){return{virtual:Nn,dropdownMatchSelectWidth:ir,listHeight:Tr,listItemHeight:Cn,treeData:Xn,fieldNames:hr,onSelect:vs,treeExpandAction:nr}},[Nn,ir,Tr,Cn,Xn,hr,vs,nr]),pl=Me.useMemo(function(){return{checkable:Ln,loadData:Ci,treeLoadedKeys:yi,onTreeLoad:ci,checkedKeys:eo,halfCheckedKeys:Zo,treeDefaultExpandAll:Pi,treeExpandedKeys:Mi,treeDefaultExpandedKeys:ji,onTreeExpand:lr,treeIcon:cr,treeMotion:Ui,showTreeIcon:Mr,switcherIcon:Di,treeLine:Yi,treeNodeFilterProp:_t,keyEntities:ri}},[Ln,Ci,yi,ci,eo,Zo,Pi,Mi,ji,lr,cr,Ui,Mr,Di,Yi,_t,ri]);return Me.createElement(ft.Provider,{value:xa},Me.createElement(Wt.Provider,{value:pl},Me.createElement(Et.Ac,(0,He.Z)({ref:Ae},Wi,{id:Dn,prefixCls:fn,mode:Ur?"multiple":void 0,displayValues:Sn,onDisplayValuesChange:Zs,searchValue:_e,onSearch:Bt,OptionList:dn,emptyOptions:!ln.length,onDropdownVisibleChange:Ga,dropdownMatchSelectWidth:ir}))))}),Se=ke;Se.TreeNode=Fe,Se.SHOW_ALL=Tn,Se.SHOW_PARENT=mt,Se.SHOW_CHILD=Gn;var st=Se,At=st,Ve=ve(2738),We=ve(53487),Ct=ve(62892),bt=ve(19080),dt=ve(36355),Ht=ve(1684),En=ve(93891),An=ve(19716),qt=ve(32441),cn=ve(14154),qn=ve(58582),wn=ve(84443),vi=ve(66339),ei=ve(33234),Li=ve(71997),Vi=ve(98447),zi=ve(37613),Bn=ve(83116),rr=ve(20648);const Yr=ti=>{const{componentCls:Ae,treePrefixCls:$n,colorBgElevated:oi}=ti,fn=`.${$n}`;return[{[`${Ae}-dropdown`]:[{padding:`${ti.paddingXS}px ${ti.paddingXS/2}px`},(0,rr.Yk)($n,(0,zi.TS)(ti,{colorBgContainer:oi})),{[fn]:{borderRadius:0,[`${fn}-list-holder-inner`]:{alignItems:"stretch",[`${fn}-treenode`]:{[`${fn}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Vi.C2)(`${$n}-checkbox`,ti),{"&-rtl":{direction:"rtl",[`${fn}-switcher${fn}-switcher_close`]:{[`${fn}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function zr(ti,Ae){return(0,Bn.Z)("TreeSelect",$n=>{const oi=(0,zi.TS)($n,{treePrefixCls:Ae});return[Yr(oi)]},rr.TM)(ti)}var Zr=function(ti,Ae){var $n={};for(var oi in ti)Object.prototype.hasOwnProperty.call(ti,oi)&&Ae.indexOf(oi)<0&&($n[oi]=ti[oi]);if(ti!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,oi=Object.getOwnPropertySymbols(ti);fn<oi.length;fn++)Ae.indexOf(oi[fn])<0&&Object.prototype.propertyIsEnumerable.call(ti,oi[fn])&&($n[oi[fn]]=ti[oi[fn]]);return $n};const Nr=(ti,Ae)=>{var $n,{prefixCls:oi,size:fn,disabled:Qn,bordered:Zn=!0,className:an,rootClassName:Jt,treeCheckable:vn,multiple:xt,listHeight:wt=256,listItemHeight:ze=26,placement:Yt,notFoundContent:on,switcherIcon:ht,treeLine:Qe,getPopupContainer:_t,popupClassName:It,dropdownClassName:Fn,treeIcon:Hn=!1,transitionName:ct,choiceTransitionName:sn="",status:Un,treeExpandAction:_n,builtinPlacements:Zt,dropdownMatchSelectWidth:rn,popupMatchSelectWidth:wi,allowClear:Ci}=ti,yi=Zr(ti,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:ci,getPrefixCls:Pi,renderEmpty:Mi,direction:ji,virtual:lr,popupMatchSelectWidth:nr,popupOverflow:Nn}=Me.useContext(dt.E_),Pr=Pi(),Tr=Pi("select",oi),br=Pi("select-tree",oi),Cn=Pi("tree-select",oi),{compactSize:di,compactItemClassnames:Ki}=(0,ei.ri)(Tr,ji),[ir,Yi]=(0,cn.Z)(Tr),[cr]=zr(Cn,br),Mr=Oe()(It||Fn,`${Cn}-dropdown`,{[`${Cn}-dropdown-rtl`]:ji==="rtl"},Jt,Yi),Di=!!(vn||xt),Ui=(0,wn.Z)(yi.suffixIcon,yi.showArrow),Wi=($n=wi!=null?wi:rn)!==null&&$n!==void 0?$n:nr,{status:Dn,hasFeedback:Fr,isFormItemInput:Ln,feedbackIcon:fr}=Me.useContext(qt.aM),Ur=(0,bt.F)(Dn,Un),{suffixIcon:Cr,removeIcon:Do,clearIcon:so}=(0,vi.Z)(Object.assign(Object.assign({},yi),{multiple:Di,showSuffixIcon:Ui,hasFeedback:Fr,feedbackIcon:fr,prefixCls:Tr,componentName:"TreeSelect"})),yr=Ci===!0?{clearIcon:so}:Ci;let gr;on!==void 0?gr=on:gr=(Mi==null?void 0:Mi("Select"))||Me.createElement(En.Z,{componentName:"Select"});const hr=(0,Ve.Z)(yi,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Gr=Me.useMemo(()=>Yt!==void 0?Yt:ji==="rtl"?"bottomRight":"bottomLeft",[Yt,ji]),Oi=(0,qn.Z)(Zt,Nn),_e=(0,An.Z)(tn=>{var bn;return(bn=fn!=null?fn:di)!==null&&bn!==void 0?bn:tn}),yt=Me.useContext(Ht.Z),Bt=Qn!=null?Qn:yt,ln=Oe()(!oi&&Cn,{[`${Tr}-lg`]:_e==="large",[`${Tr}-sm`]:_e==="small",[`${Tr}-rtl`]:ji==="rtl",[`${Tr}-borderless`]:!Zn,[`${Tr}-in-form-item`]:Ln},(0,bt.Z)(Tr,Ur,Fr),Ki,an,Jt,Yi),jn=tn=>Me.createElement(Li.Z,{prefixCls:br,switcherIcon:ht,treeNodeProps:tn,showLine:Qe}),ri=Me.createElement(At,Object.assign({virtual:lr,disabled:Bt},hr,{dropdownMatchSelectWidth:Wi,builtinPlacements:Oi,ref:Ae,prefixCls:Tr,className:ln,listHeight:wt,listItemHeight:ze,treeCheckable:vn&&Me.createElement("span",{className:`${Tr}-tree-checkbox-inner`}),treeLine:!!Qe,suffixIcon:Cr,multiple:Di,placement:Gr,removeIcon:Do,allowClear:yr,switcherIcon:jn,showTreeIcon:Hn,notFoundContent:gr,getPopupContainer:_t||ci,treeMotion:null,dropdownClassName:Mr,choiceTransitionName:(0,Ct.m)(Pr,"",sn),transitionName:(0,Ct.m)(Pr,"slide-up",ct),treeExpandAction:_n}));return ir(cr(ri))},$r=Me.forwardRef(Nr),sr=(0,We.Z)($r);$r.TreeNode=Fe,$r.SHOW_ALL=Tn,$r.SHOW_PARENT=mt,$r.SHOW_CHILD=Gn,$r._InternalPanelDoNotUseOrYouWillBeFired=sr;var Fo=$r},17574:function(Rn,Mn,ve){"use strict";ve.d(Mn,{default:function(){return ft}});var ye=ve(23130),Oe=ve(26407),He=ve(52671),Rt=ve(8657),$e=ve(92413),qe=ve(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Tt=De,Et=ve(7657),et=function(Lt,yn){return qe.createElement(Et.Z,(0,$e.Z)({},Lt,{ref:yn,icon:Tt}))},Ot=qe.forwardRef(et),it=Ot,Pt=ve(92310),Me=ve.n(Pt),te=ve(35654),ne=ve(71430),ce=ve(36355),se=ve(56082),ge=ve(62892),me=ve(20648);const Ce=4;function Fe(Re){const{dropPosition:Lt,dropLevelOffset:yn,prefixCls:mn,indent:Nt,direction:en="ltr"}=Re,nn=en==="ltr"?"left":"right",On=en==="ltr"?"right":"left",dn={[nn]:-yn*Nt+Ce,[On]:0};switch(Lt){case-1:dn.top=-3;break;case 1:dn.bottom=-3;break;default:dn.bottom=-3,dn[nn]=Nt+Ce;break}return qe.createElement("div",{style:dn,className:`${mn}-drop-indicator`})}var Pe=ve(71997),Ge=qe.forwardRef((Re,Lt)=>{const{getPrefixCls:yn,direction:mn,virtual:Nt,tree:en}=qe.useContext(ce.E_),{prefixCls:nn,className:On,showIcon:dn=!1,showLine:Tn,switcherIcon:mt,blockNode:Gn=!1,children:xn,checkable:tt=!1,selectable:Ee=!0,draggable:we,motion:Be,style:ke}=Re,Se=yn("tree",nn),st=yn(),At=Be!=null?Be:Object.assign(Object.assign({},(0,ge.Z)(st)),{motionAppear:!1}),Ve=Object.assign(Object.assign({},Re),{checkable:tt,selectable:Ee,showIcon:dn,motion:At,blockNode:Gn,showLine:!!Tn,dropIndicatorRender:Fe}),[We,Ct]=(0,me.ZP)(Se),bt=qe.useMemo(()=>{if(!we)return!1;let Ht={};switch(typeof we){case"function":Ht.nodeDraggable=we;break;case"object":Ht=Object.assign({},we);break;default:break}return Ht.icon!==!1&&(Ht.icon=Ht.icon||qe.createElement(se.Z,null)),Ht},[we]),dt=Ht=>qe.createElement(Pe.Z,{prefixCls:Se,switcherIcon:mt,treeNodeProps:Ht,showLine:Tn});return We(qe.createElement(ye.Z,Object.assign({itemHeight:20,ref:Lt,virtual:Nt},Ve,{style:Object.assign(Object.assign({},en==null?void 0:en.style),ke),prefixCls:Se,className:Me()({[`${Se}-icon-hide`]:!dn,[`${Se}-block-node`]:Gn,[`${Se}-unselectable`]:!Ee,[`${Se}-rtl`]:mn==="rtl"},en==null?void 0:en.className,On,Ct),direction:mn,checkable:tt&&qe.createElement("span",{className:`${Se}-checkbox-inner`}),selectable:Ee,switcherIcon:dt,draggable:bt}),xn))}),Ke;(function(Re){Re[Re.None=0]="None",Re[Re.Start=1]="Start",Re[Re.End=2]="End"})(Ke||(Ke={}));function Ye(Re,Lt){function yn(mn){const{key:Nt,children:en}=mn;Lt(Nt,mn)!==!1&&Ye(en||[],Lt)}Re.forEach(yn)}function pt(Re){let{treeData:Lt,expandedKeys:yn,startKey:mn,endKey:Nt}=Re;const en=[];let nn=Ke.None;if(mn&&mn===Nt)return[mn];if(!mn||!Nt)return[];function On(dn){return dn===mn||dn===Nt}return Ye(Lt,dn=>{if(nn===Ke.End)return!1;if(On(dn)){if(en.push(dn),nn===Ke.None)nn=Ke.Start;else if(nn===Ke.Start)return nn=Ke.End,!1}else nn===Ke.Start&&en.push(dn);return yn.includes(dn)}),en}function Je(Re,Lt){const yn=(0,Oe.Z)(Lt),mn=[];return Ye(Re,(Nt,en)=>{const nn=yn.indexOf(Nt);return nn!==-1&&(mn.push(en),yn.splice(nn,1)),!!yn.length}),mn}var kt=function(Re,Lt){var yn={};for(var mn in Re)Object.prototype.hasOwnProperty.call(Re,mn)&&Lt.indexOf(mn)<0&&(yn[mn]=Re[mn]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,mn=Object.getOwnPropertySymbols(Re);Nt<mn.length;Nt++)Lt.indexOf(mn[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Re,mn[Nt])&&(yn[mn[Nt]]=Re[mn[Nt]]);return yn};function Xe(Re){const{isLeaf:Lt,expanded:yn}=Re;return Lt?qe.createElement(He.Z,null):yn?qe.createElement(Rt.Z,null):qe.createElement(it,null)}function Wt(Re){let{treeData:Lt,children:yn}=Re;return Lt||(0,ne.zn)(yn)}const zt=(Re,Lt)=>{var{defaultExpandAll:yn,defaultExpandParent:mn,defaultExpandedKeys:Nt}=Re,en=kt(Re,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const nn=qe.useRef(),On=qe.useRef(),dn=()=>{const{keyEntities:bt}=(0,ne.I8)(Wt(en));let dt;return yn?dt=Object.keys(bt):mn?dt=(0,te.r7)(en.expandedKeys||Nt||[],bt):dt=en.expandedKeys||Nt,dt},[Tn,mt]=qe.useState(en.selectedKeys||en.defaultSelectedKeys||[]),[Gn,xn]=qe.useState(()=>dn());qe.useEffect(()=>{"selectedKeys"in en&&mt(en.selectedKeys)},[en.selectedKeys]),qe.useEffect(()=>{"expandedKeys"in en&&xn(en.expandedKeys)},[en.expandedKeys]);const tt=(bt,dt)=>{var Ht;return"expandedKeys"in en||xn(bt),(Ht=en.onExpand)===null||Ht===void 0?void 0:Ht.call(en,bt,dt)},Ee=(bt,dt)=>{var Ht;const{multiple:En}=en,{node:An,nativeEvent:qt}=dt,{key:cn=""}=An,qn=Wt(en),wn=Object.assign(Object.assign({},dt),{selected:!0}),vi=(qt==null?void 0:qt.ctrlKey)||(qt==null?void 0:qt.metaKey),ei=qt==null?void 0:qt.shiftKey;let Li;En&&vi?(Li=bt,nn.current=cn,On.current=Li,wn.selectedNodes=Je(qn,Li)):En&&ei?(Li=Array.from(new Set([].concat((0,Oe.Z)(On.current||[]),(0,Oe.Z)(pt({treeData:qn,expandedKeys:Gn,startKey:cn,endKey:nn.current}))))),wn.selectedNodes=Je(qn,Li)):(Li=[cn],nn.current=cn,On.current=Li,wn.selectedNodes=Je(qn,Li)),(Ht=en.onSelect)===null||Ht===void 0||Ht.call(en,Li,wn),"selectedKeys"in en||mt(Li)},{getPrefixCls:we,direction:Be}=qe.useContext(ce.E_),{prefixCls:ke,className:Se,showIcon:st=!0,expandAction:At="click"}=en,Ve=kt(en,["prefixCls","className","showIcon","expandAction"]),We=we("tree",ke),Ct=Me()(`${We}-directory`,{[`${We}-directory-rtl`]:Be==="rtl"},Se);return qe.createElement(Ge,Object.assign({icon:Xe,ref:Lt,blockNode:!0},Ve,{showIcon:st,expandAction:At,prefixCls:We,className:Ct,expandedKeys:Gn,selectedKeys:Tn,onSelect:Ee,onExpand:tt}))};var Mt=qe.forwardRef(zt);const Ut=Ge;Ut.DirectoryTree=Mt,Ut.TreeNode=ye.O;var ft=Ut},20648:function(Rn,Mn,ve){"use strict";ve.d(Mn,{TM:function(){return Pt},Yk:function(){return it}});var ye=ve(93083),Oe=ve(98447),He=ve(17313),Rt=ve(8378),$e=ve(37613),qe=ve(83116);const De=new ye.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Tt=(Me,te)=>({[`.${Me}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),Et=(Me,te)=>({[`.${Me}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${te.lineWidthBold}px solid ${te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),et=(Me,te)=>{const{treeCls:ne,treeNodeCls:ce,treeNodePadding:se,titleHeight:ge,nodeSelectedBg:me,nodeHoverBg:Ce}=te,Fe=te.paddingXS;return{[ne]:Object.assign(Object.assign({},(0,He.Wf)(te)),{background:te.colorBgContainer,borderRadius:te.borderRadius,transition:`background-color ${te.motionDurationSlow}`,[`&${ne}-rtl`]:{[`${ne}-switcher`]:{"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ne}-active-focused)`]:Object.assign({},(0,He.oN)(te)),[`${ne}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ne}-block-node`]:{[`${ne}-list-holder-inner`]:{alignItems:"stretch",[`${ne}-node-content-wrapper`]:{flex:"auto"},[`${ce}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:se,insetInlineStart:0,border:`1px solid ${te.colorPrimary}`,opacity:0,animationName:De,animationDuration:te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ce}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ne}-node-content-wrapper`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ne}-node-content-wrapper`]:Object.assign({},(0,He.oN)(te)),[`&:not(${ce}-disabled).filter-node ${ne}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ne}-draggable-icon`]:{flexShrink:0,width:ge,lineHeight:`${ge}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${te.motionDurationSlow}`,[`${ce}:hover &`]:{opacity:.45}},[`&${ce}-disabled`]:{[`${ne}-draggable-icon`]:{visibility:"hidden"}}}},[`${ne}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ge}},[`${ne}-draggable-icon`]:{visibility:"hidden"},[`${ne}-switcher`]:Object.assign(Object.assign({},Tt(Me,te)),{position:"relative",flex:"none",alignSelf:"stretch",width:ge,margin:0,lineHeight:`${ge}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:te.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ge/2,bottom:-se,marginInlineStart:-1,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ge/2*.8,height:ge/2,borderBottom:`1px solid ${te.colorBorder}`,content:'""'}}}),[`${ne}-checkbox`]:{top:"initial",marginInlineEnd:Fe},[`${ne}-node-content-wrapper, ${ne}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ge,margin:0,padding:`0 ${te.paddingXS/2}px`,color:"inherit",lineHeight:`${ge}px`,background:"transparent",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Ce},[`&${ne}-node-selected`]:{backgroundColor:me},[`${ne}-iconEle`]:{display:"inline-block",width:ge,height:ge,lineHeight:`${ge}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ne}-unselectable ${ne}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ne}-node-content-wrapper`]:Object.assign({lineHeight:`${ge}px`,userSelect:"none"},Et(Me,te)),[`${ce}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${te.colorPrimary}`}},"&-show-line":{[`${ne}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ge/2,bottom:-se,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ne}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ce}-leaf-last`]:{[`${ne}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ge/2}px !important`}}}}})}},Ot=Me=>{const{treeCls:te,treeNodeCls:ne,treeNodePadding:ce,directoryNodeSelectedBg:se,directoryNodeSelectedColor:ge}=Me;return{[`${te}${te}-directory`]:{[ne]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ce,insetInlineStart:0,transition:`background-color ${Me.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Me.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${Me.motionDurationMid}`},[`${te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${te}-node-selected`]:{color:ge,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:se},[`${te}-switcher`]:{color:ge},[`${te}-node-content-wrapper`]:{color:ge,background:"transparent"}}}}}},it=(Me,te)=>{const ne=`.${Me}`,ce=`${ne}-treenode`,se=te.paddingXS/2,ge=(0,$e.TS)(te,{treeCls:ne,treeNodeCls:ce,treeNodePadding:se});return[et(Me,ge),Ot(ge)]},Pt=Me=>{const{controlHeightSM:te}=Me;return{titleHeight:te,nodeHoverBg:Me.controlItemBgHover,nodeSelectedBg:Me.controlItemBgActive}};Mn.ZP=(0,qe.Z)("Tree",(Me,te)=>{let{prefixCls:ne}=te;return[{[Me.componentCls]:(0,Oe.C2)(`${ne}-checkbox`,Me)},it(ne,Me),(0,Rt.Z)(Me)]},Me=>{const{colorTextLightSolid:te,colorPrimary:ne}=Me;return Object.assign(Object.assign({},Pt(Me)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:ne})})},71997:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return ce}});var ye=ve(92413),Oe=ve(59301),He={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Rt=He,$e=ve(7657),qe=function(ge,me){return Oe.createElement($e.Z,(0,ye.Z)({},ge,{ref:me,icon:Rt}))},De=Oe.forwardRef(qe),Tt=De,Et=ve(52671),et=ve(58617),Ot=ve(15075),it=ve(43531),Pt=ve(92310),Me=ve.n(Pt),te=ve(92343),ce=se=>{const{prefixCls:ge,switcherIcon:me,treeNodeProps:Ce,showLine:Fe}=se,{isLeaf:Pe,expanded:Ie,loading:Ge}=Ce;if(Ge)return Oe.createElement(et.Z,{className:`${ge}-switcher-loading-icon`});let Ke;if(Fe&&typeof Fe=="object"&&(Ke=Fe.showLeafIcon),Pe){if(!Fe)return null;if(typeof Ke!="boolean"&&Ke){const Je=typeof Ke=="function"?Ke(Ce):Ke,kt=`${ge}-switcher-line-custom-icon`;return(0,te.l$)(Je)?(0,te.Tm)(Je,{className:Me()(Je.props.className||"",kt)}):Je}return Ke?Oe.createElement(Et.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement("span",{className:`${ge}-switcher-leaf-line`})}const Ye=`${ge}-switcher-icon`,pt=typeof me=="function"?me(Ce):me;return(0,te.l$)(pt)?(0,te.Tm)(pt,{className:Me()(pt.props.className||"",Ye)}):pt!==void 0?pt:Fe?Ie?Oe.createElement(Ot.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement(it.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement(Tt,{className:Ye})}},99498:function(Rn,Mn,ve){(function(ye){ye(ve(89780))})(function(ye){ye.defineOption("placeholder","",function(Tt,Et,et){var Ot=et&&et!=ye.Init;if(Et&&!Ot)Tt.on("blur",$e),Tt.on("change",qe),Tt.on("swapDoc",qe),ye.on(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose=function(){Rt(Tt)}),qe(Tt);else if(!Et&&Ot){Tt.off("blur",$e),Tt.off("change",qe),Tt.off("swapDoc",qe),ye.off(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose),Oe(Tt);var it=Tt.getWrapperElement();it.className=it.className.replace(" CodeMirror-empty","")}Et&&!Tt.hasFocus()&&$e(Tt)});function Oe(Tt){Tt.state.placeholder&&(Tt.state.placeholder.parentNode.removeChild(Tt.state.placeholder),Tt.state.placeholder=null)}function He(Tt){Oe(Tt);var Et=Tt.state.placeholder=document.createElement("pre");Et.style.cssText="height: 0; overflow: visible",Et.style.direction=Tt.getOption("direction"),Et.className="CodeMirror-placeholder CodeMirror-line-like";var et=Tt.getOption("placeholder");typeof et=="string"&&(et=document.createTextNode(et)),Et.appendChild(et),Tt.display.lineSpace.insertBefore(Et,Tt.display.lineSpace.firstChild)}function Rt(Tt){setTimeout(function(){var Et=!1,et=Tt.getInputField();et.nodeName=="TEXTAREA"?Et=!et.value:Tt.lineCount()==1&&(Et=!/[^\u200b]/.test(et.querySelector(".CodeMirror-line").textContent)),Et?He(Tt):Oe(Tt)},20)}function $e(Tt){De(Tt)&&He(Tt)}function qe(Tt){var Et=Tt.getWrapperElement(),et=De(Tt);Et.className=Et.className.replace(" CodeMirror-empty","")+(et?" CodeMirror-empty":""),et?He(Tt):Oe(Tt)}function De(Tt){return Tt.lineCount()===1&&Tt.getLine(0)===""}})},25717:function(Rn,Mn,ve){(function(ye){ye(ve(89780))})(function(ye){var Oe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},He=ye.Pos;ye.defineOption("autoCloseBrackets",!1,function(te,ne,ce){ce&&ce!=ye.Init&&(te.removeKeyMap($e),te.state.closeBrackets=null),ne&&(qe(Rt(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap($e))});function Rt(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:Oe[ne]}var $e={Backspace:Et,Enter:et};function qe(te){for(var ne=0;ne<te.length;ne++){var ce=te.charAt(ne),se="'"+ce+"'";$e[se]||($e[se]=De(ce))}}qe(Oe.pairs+"`");function De(te){return function(ne){return it(ne,te)}}function Tt(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var ce=te.getModeAt(te.getCursor());return ce.closeBrackets||ne}function Et(te){var ne=Tt(te);if(!ne||te.getOption("disableInput"))return ye.Pass;for(var ce=Rt(ne,"pairs"),se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ye.Pass;var me=Pt(te,se[ge].head);if(!me||ce.indexOf(me)%2!=0)return ye.Pass}for(var ge=se.length-1;ge>=0;ge--){var Ce=se[ge].head;te.replaceRange("",He(Ce.line,Ce.ch-1),He(Ce.line,Ce.ch+1),"+delete")}}function et(te){var ne=Tt(te),ce=ne&&Rt(ne,"explode");if(!ce||te.getOption("disableInput"))return ye.Pass;for(var se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ye.Pass;var me=Pt(te,se[ge].head);if(!me||ce.indexOf(me)%2!=0)return ye.Pass}te.operation(function(){var Ce=te.lineSeparator()||`
`;te.replaceSelection(Ce+Ce,null),te.execCommand("goCharLeft"),se=te.listSelections();for(var Fe=0;Fe<se.length;Fe++){var Pe=se[Fe].head.line;te.indentLine(Pe,null,!0),te.indentLine(Pe+1,null,!0)}})}function Ot(te){var ne=ye.cmpPos(te.anchor,te.head)>0;return{anchor:new He(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new He(te.head.line,te.head.ch+(ne?1:-1))}}function it(te,ne){var ce=Tt(te);if(!ce||te.getOption("disableInput"))return ye.Pass;var se=Rt(ce,"pairs"),ge=se.indexOf(ne);if(ge==-1)return ye.Pass;for(var me=Rt(ce,"closeBefore"),Ce=Rt(ce,"triples"),Fe=se.charAt(ge+1)==ne,Pe=te.listSelections(),Ie=ge%2==0,Ge,Ke=0;Ke<Pe.length;Ke++){var Ye=Pe[Ke],pt=Ye.head,Je,kt=te.getRange(pt,He(pt.line,pt.ch+1));if(Ie&&!Ye.empty())Je="surround";else if((Fe||!Ie)&&kt==ne)Fe&&Me(te,pt)?Je="both":Ce.indexOf(ne)>=0&&te.getRange(pt,He(pt.line,pt.ch+3))==ne+ne+ne?Je="skipThree":Je="skip";else if(Fe&&pt.ch>1&&Ce.indexOf(ne)>=0&&te.getRange(He(pt.line,pt.ch-2),pt)==ne+ne){if(pt.ch>2&&/\bstring/.test(te.getTokenTypeAt(He(pt.line,pt.ch-2))))return ye.Pass;Je="addFour"}else if(Fe){var Xe=pt.ch==0?" ":te.getRange(He(pt.line,pt.ch-1),pt);if(!ye.isWordChar(kt)&&Xe!=ne&&!ye.isWordChar(Xe))Je="both";else return ye.Pass}else if(Ie&&(kt.length===0||/\s/.test(kt)||me.indexOf(kt)>-1))Je="both";else return ye.Pass;if(!Ge)Ge=Je;else if(Ge!=Je)return ye.Pass}var Wt=ge%2?se.charAt(ge-1):ne,zt=ge%2?ne:se.charAt(ge+1);te.operation(function(){if(Ge=="skip")te.execCommand("goCharRight");else if(Ge=="skipThree")for(var jt=0;jt<3;jt++)te.execCommand("goCharRight");else if(Ge=="surround"){for(var Mt=te.getSelections(),jt=0;jt<Mt.length;jt++)Mt[jt]=Wt+Mt[jt]+zt;te.replaceSelections(Mt,"around"),Mt=te.listSelections().slice();for(var jt=0;jt<Mt.length;jt++)Mt[jt]=Ot(Mt[jt]);te.setSelections(Mt)}else Ge=="both"?(te.replaceSelection(Wt+zt,null),te.triggerElectric(Wt+zt),te.execCommand("goCharLeft")):Ge=="addFour"&&(te.replaceSelection(Wt+Wt+Wt+Wt,"before"),te.execCommand("goCharRight"))})}function Pt(te,ne){var ce=te.getRange(He(ne.line,ne.ch-1),He(ne.line,ne.ch+1));return ce.length==2?ce:null}function Me(te,ne){var ce=te.getTokenAt(He(ne.line,ne.ch+1));return/\bstring/.test(ce.type)&&ce.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function(Rn,Mn,ve){(function(ye){ye(ve(89780),ve(32855))})(function(ye){ye.defineOption("autoCloseTags",!1,function(Et,et,Ot){if(Ot!=ye.Init&&Ot&&Et.removeKeyMap("autoCloseTags"),!!et){var it={name:"autoCloseTags"};(typeof et!="object"||et.whenClosing!==!1)&&(it["'/'"]=function(Pt){return qe(Pt)}),(typeof et!="object"||et.whenOpening!==!1)&&(it["'>'"]=function(Pt){return Rt(Pt)}),Et.addKeyMap(it)}});var Oe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],He=["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 Rt(Et){if(Et.getOption("disableInput"))return ye.Pass;for(var et=Et.listSelections(),Ot=[],it=Et.getOption("autoCloseTags"),Pt=0;Pt<et.length;Pt++){if(!et[Pt].empty())return ye.Pass;var Me=et[Pt].head,te=Et.getTokenAt(Me),ne=ye.innerMode(Et.getMode(),te.state),ce=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(ce),ge=se&&se.name;if(!ge)return ye.Pass;var me=ne.mode.configuration=="html",Ce=typeof it=="object"&&it.dontCloseTags||me&&Oe,Fe=typeof it=="object"&&it.indentTags||me&&He;te.end>Me.ch&&(ge=ge.slice(0,ge.length-te.end+Me.ch));var Pe=ge.toLowerCase();if(!ge||te.type=="string"&&(te.end!=Me.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Me.ch-te.start-1||Ce&&De(Ce,Pe)>-1||Tt(Et,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(ce)||[],ge,Me,!0))return ye.Pass;var Ie=typeof it=="object"&&it.emptyTags;if(Ie&&De(Ie,ge)>-1){Ot[Pt]={text:"/>",newPos:ye.Pos(Me.line,Me.ch+2)};continue}var Ge=Fe&&De(Fe,Pe)>-1;Ot[Pt]={indent:Ge,text:">"+(Ge?`
`:"")+"</"+ge+">",newPos:Ge?ye.Pos(Me.line+1,0):ye.Pos(Me.line,Me.ch+1)}}for(var Ke=typeof it=="object"&&it.dontIndentOnAutoClose,Pt=et.length-1;Pt>=0;Pt--){var Ye=Ot[Pt];Et.replaceRange(Ye.text,et[Pt].head,et[Pt].anchor,"+insert");var pt=Et.listSelections().slice(0);pt[Pt]={head:Ye.newPos,anchor:Ye.newPos},Et.setSelections(pt),!Ke&&Ye.indent&&(Et.indentLine(Ye.newPos.line,null,!0),Et.indentLine(Ye.newPos.line+1,null,!0))}}function $e(Et,et){for(var Ot=Et.listSelections(),it=[],Pt=et?"/":"</",Me=Et.getOption("autoCloseTags"),te=typeof Me=="object"&&Me.dontIndentOnSlash,ne=0;ne<Ot.length;ne++){if(!Ot[ne].empty())return ye.Pass;var ce=Ot[ne].head,se=Et.getTokenAt(ce),ge=ye.innerMode(Et.getMode(),se.state),me=ge.state;if(et&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=ce.ch-1))return ye.Pass;var Ce,Fe=ge.mode.name!="xml"&&Et.getMode().name=="htmlmixed";if(Fe&&ge.mode.name=="javascript")Ce=Pt+"script";else if(Fe&&ge.mode.name=="css")Ce=Pt+"style";else{var Pe=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(me);if(!Pe||Pe.length&&Tt(Et,Pe,Pe[Pe.length-1],ce))return ye.Pass;Ce=Pt+Pe[Pe.length-1]}Et.getLine(ce.line).charAt(se.end)!=">"&&(Ce+=">"),it[ne]=Ce}if(Et.replaceSelections(it),Ot=Et.listSelections(),!te)for(var ne=0;ne<Ot.length;ne++)(ne==Ot.length-1||Ot[ne].head.line<Ot[ne+1].head.line)&&Et.indentLine(Ot[ne].head.line)}function qe(Et){return Et.getOption("disableInput")?ye.Pass:$e(Et,!0)}ye.commands.closeTag=function(Et){return $e(Et)};function De(Et,et){if(Et.indexOf)return Et.indexOf(et);for(var Ot=0,it=Et.length;Ot<it;++Ot)if(Et[Ot]==et)return Ot;return-1}function Tt(Et,et,Ot,it,Pt){if(!ye.scanForClosingTag)return!1;var Me=Math.min(Et.lastLine()+1,it.line+500),te=ye.scanForClosingTag(Et,it,null,Me);if(!te||te.tag!=Ot)return!1;for(var ne=Pt?1:0,ce=et.length-1;ce>=0&&et[ce]==Ot;ce--)++ne;it=te.to;for(var ce=1;ce<ne;ce++){var se=ye.scanForClosingTag(Et,it,null,Me);if(!se||se.tag!=Ot)return!1;it=se.to}return!0}})},32855:function(Rn,Mn,ve){(function(ye){ye(ve(89780))})(function(ye){"use strict";var Oe=ye.Pos;function He(ce,se){return ce.line-se.line||ce.ch-se.ch}var Rt="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",$e=Rt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",qe=new RegExp("<(/?)(["+Rt+"]["+$e+"]*)","g");function De(ce,se,ge,me){this.line=se,this.ch=ge,this.cm=ce,this.text=ce.getLine(se),this.min=me?Math.max(me.from,ce.firstLine()):ce.firstLine(),this.max=me?Math.min(me.to-1,ce.lastLine()):ce.lastLine()}function Tt(ce,se){var ge=ce.cm.getTokenTypeAt(Oe(ce.line,se));return ge&&/\btag\b/.test(ge)}function Et(ce){if(!(ce.line>=ce.max))return ce.ch=0,ce.text=ce.cm.getLine(++ce.line),!0}function et(ce){if(!(ce.line<=ce.min))return ce.text=ce.cm.getLine(--ce.line),ce.ch=ce.text.length,!0}function Ot(ce){for(;;){var se=ce.text.indexOf(">",ce.ch);if(se==-1){if(Et(ce))continue;return}if(!Tt(ce,se+1)){ce.ch=se+1;continue}var ge=ce.text.lastIndexOf("/",se),me=ge>-1&&!/\S/.test(ce.text.slice(ge+1,se));return ce.ch=se+1,me?"selfClose":"regular"}}function it(ce){for(;;){var se=ce.ch?ce.text.lastIndexOf("<",ce.ch-1):-1;if(se==-1){if(et(ce))continue;return}if(!Tt(ce,se+1)){ce.ch=se;continue}qe.lastIndex=se,ce.ch=se;var ge=qe.exec(ce.text);if(ge&&ge.index==se)return ge}}function Pt(ce){for(;;){qe.lastIndex=ce.ch;var se=qe.exec(ce.text);if(!se){if(Et(ce))continue;return}if(!Tt(ce,se.index+1)){ce.ch=se.index+1;continue}return ce.ch=se.index+se[0].length,se}}function Me(ce){for(;;){var se=ce.ch?ce.text.lastIndexOf(">",ce.ch-1):-1;if(se==-1){if(et(ce))continue;return}if(!Tt(ce,se+1)){ce.ch=se;continue}var ge=ce.text.lastIndexOf("/",se),me=ge>-1&&!/\S/.test(ce.text.slice(ge+1,se));return ce.ch=se+1,me?"selfClose":"regular"}}function te(ce,se){for(var ge=[];;){var me=Pt(ce),Ce,Fe=ce.line,Pe=ce.ch-(me?me[0].length:0);if(!me||!(Ce=Ot(ce)))return;if(Ce!="selfClose")if(me[1]){for(var Ie=ge.length-1;Ie>=0;--Ie)if(ge[Ie]==me[2]){ge.length=Ie;break}if(Ie<0&&(!se||se==me[2]))return{tag:me[2],from:Oe(Fe,Pe),to:Oe(ce.line,ce.ch)}}else ge.push(me[2])}}function ne(ce,se){for(var ge=[];;){var me=Me(ce);if(!me)return;if(me=="selfClose"){it(ce);continue}var Ce=ce.line,Fe=ce.ch,Pe=it(ce);if(!Pe)return;if(Pe[1])ge.push(Pe[2]);else{for(var Ie=ge.length-1;Ie>=0;--Ie)if(ge[Ie]==Pe[2]){ge.length=Ie;break}if(Ie<0&&(!se||se==Pe[2]))return{tag:Pe[2],from:Oe(ce.line,ce.ch),to:Oe(Ce,Fe)}}}}ye.registerHelper("fold","xml",function(ce,se){for(var ge=new De(ce,se.line,0);;){var me=Pt(ge);if(!me||ge.line!=se.line)return;var Ce=Ot(ge);if(!Ce)return;if(!me[1]&&Ce!="selfClose"){var Fe=Oe(ge.line,ge.ch),Pe=te(ge,me[2]);return Pe&&He(Pe.from,Fe)>0?{from:Fe,to:Pe.from}:null}}}),ye.findMatchingTag=function(ce,se,ge){var me=new De(ce,se.line,se.ch,ge);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var Ce=Ot(me),Fe=Ce&&Oe(me.line,me.ch),Pe=Ce&&it(me);if(!(!Ce||!Pe||He(me,se)>0)){var Ie={from:Oe(me.line,me.ch),to:Fe,tag:Pe[2]};return Ce=="selfClose"?{open:Ie,close:null,at:"open"}:Pe[1]?{open:ne(me,Pe[2]),close:Ie,at:"close"}:(me=new De(ce,Fe.line,Fe.ch,ge),{open:Ie,close:te(me,Pe[2]),at:"open"})}}},ye.findEnclosingTag=function(ce,se,ge,me){for(var Ce=new De(ce,se.line,se.ch,ge);;){var Fe=ne(Ce,me);if(!Fe)break;var Pe=new De(ce,se.line,se.ch,ge),Ie=te(Pe,Fe.tag);if(Ie)return{open:Fe,close:Ie}}},ye.scanForClosingTag=function(ce,se,ge,me){var Ce=new De(ce,se.line,se.ch,me?{from:0,to:me}:null);return te(Ce,ge)}})},89780:function(Rn){(function(Mn,ve){Rn.exports=ve()})(this,function(){"use strict";var Mn=navigator.userAgent,ve=navigator.platform,ye=/gecko\/\d/i.test(Mn),Oe=/MSIE \d/.test(Mn),He=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Mn),Rt=/Edge\/(\d+)/.exec(Mn),$e=Oe||He||Rt,qe=$e&&(Oe?document.documentMode||6:+(Rt||He)[1]),De=!Rt&&/WebKit\//.test(Mn),Tt=De&&/Qt\/\d+\.\d+/.test(Mn),Et=!Rt&&/Chrome\//.test(Mn),et=/Opera\//.test(Mn),Ot=/Apple Computer/.test(navigator.vendor),it=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Mn),Pt=/PhantomJS/.test(Mn),Me=!Rt&&/AppleWebKit/.test(Mn)&&/Mobile\/\w+/.test(Mn),te=/Android/.test(Mn),ne=Me||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Mn),ce=Me||/Mac/.test(ve),se=/\bCrOS\b/.test(Mn),ge=/win/i.test(ve),me=et&&Mn.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(et=!1,De=!0);var Ce=ce&&(Tt||et&&(me==null||me<12.11)),Fe=ye||$e&&qe>=9;function Pe(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ie=function(ie,ae){var he=ie.className,de=Pe(ae).exec(he);if(de){var pe=he.slice(de.index+de[0].length);ie.className=he.slice(0,de.index)+(pe?de[1]+pe:"")}};function Ge(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function Ke(ie,ae){return Ge(ie).appendChild(ae)}function Ye(ie,ae,he,de){var pe=document.createElement(ie);if(he&&(pe.className=he),de&&(pe.style.cssText=de),typeof ae=="string")pe.appendChild(document.createTextNode(ae));else if(ae)for(var Ne=0;Ne<ae.length;++Ne)pe.appendChild(ae[Ne]);return pe}function pt(ie,ae,he,de){var pe=Ye(ie,ae,he,de);return pe.setAttribute("role","presentation"),pe}var Je;document.createRange?Je=function(ie,ae,he,de){var pe=document.createRange();return pe.setEnd(de||ie,he),pe.setStart(ie,ae),pe}:Je=function(ie,ae,he){var de=document.body.createTextRange();try{de.moveToElementText(ie.parentNode)}catch(pe){return de}return de.collapse(!0),de.moveEnd("character",he),de.moveStart("character",ae),de};function kt(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function Xe(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Wt(ie,ae){var he=ie.className;Pe(ae).test(he)||(ie.className+=(he?" ":"")+ae)}function zt(ie,ae){for(var he=ie.split(" "),de=0;de<he.length;de++)he[de]&&!Pe(he[de]).test(ae)&&(ae+=" "+he[de]);return ae}var jt=function(ie){ie.select()};Me?jt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:$e&&(jt=function(ie){try{ie.select()}catch(ae){}});function Mt(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function Ut(ie,ae,he){ae||(ae={});for(var de in ie)ie.hasOwnProperty(de)&&(he!==!1||!ae.hasOwnProperty(de))&&(ae[de]=ie[de]);return ae}function ft(ie,ae,he,de,pe){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Ne=de||0,Ze=pe||0;;){var lt=ie.indexOf(" ",Ne);if(lt<0||lt>=ae)return Ze+(ae-Ne);Ze+=lt-Ne,Ze+=he-Ze%he,Ne=lt+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=Mt(this.onTimeout,this)};Re.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},Re.prototype.set=function(ie,ae){this.f=ae;var he=+new Date+ie;(!this.id||he<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=he)};function Lt(ie,ae){for(var he=0;he<ie.length;++he)if(ie[he]==ae)return he;return-1}var yn=50,mn={toString:function(){return"CodeMirror.Pass"}},Nt={scroll:!1},en={origin:"*mouse"},nn={origin:"+move"};function On(ie,ae,he){for(var de=0,pe=0;;){var Ne=ie.indexOf(" ",de);Ne==-1&&(Ne=ie.length);var Ze=Ne-de;if(Ne==ie.length||pe+Ze>=ae)return de+Math.min(Ze,ae-pe);if(pe+=Ne-de,pe+=he-pe%he,de=Ne+1,pe>=ae)return de}}var dn=[""];function Tn(ie){for(;dn.length<=ie;)dn.push(mt(dn)+" ");return dn[ie]}function mt(ie){return ie[ie.length-1]}function Gn(ie,ae){for(var he=[],de=0;de<ie.length;de++)he[de]=ae(ie[de],de);return he}function xn(ie,ae,he){for(var de=0,pe=he(ae);de<ie.length&&he(ie[de])<=pe;)de++;ie.splice(de,0,ae)}function tt(){}function Ee(ie,ae){var he;return Object.create?he=Object.create(ie):(tt.prototype=ie,he=new tt),ae&&Ut(ae,he),he}var we=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Be(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||we.test(ie))}function ke(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Be(ie)?!0:ae.test(ie):Be(ie)}function Se(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var st=/[\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 At(ie){return ie.charCodeAt(0)>=768&&st.test(ie)}function Ve(ie,ae,he){for(;(he<0?ae>0:ae<ie.length)&&At(ie.charAt(ae));)ae+=he;return ae}function We(ie,ae,he){for(var de=ae>he?-1:1;;){if(ae==he)return ae;var pe=(ae+he)/2,Ne=de<0?Math.ceil(pe):Math.floor(pe);if(Ne==ae)return ie(Ne)?ae:he;ie(Ne)?he=Ne:ae=Ne+de}}function Ct(ie,ae,he,de){if(!ie)return de(ae,he,"ltr",0);for(var pe=!1,Ne=0;Ne<ie.length;++Ne){var Ze=ie[Ne];(Ze.from<he&&Ze.to>ae||ae==he&&Ze.to==ae)&&(de(Math.max(Ze.from,ae),Math.min(Ze.to,he),Ze.level==1?"rtl":"ltr",Ne),pe=!0)}pe||de(ae,he,"ltr")}var bt=null;function dt(ie,ae,he){var de;bt=null;for(var pe=0;pe<ie.length;++pe){var Ne=ie[pe];if(Ne.from<ae&&Ne.to>ae)return pe;Ne.to==ae&&(Ne.from!=Ne.to&&he=="before"?de=pe:bt=pe),Ne.from==ae&&(Ne.from!=Ne.to&&he!="before"?de=pe:bt=pe)}return de!=null?de:bt}var Ht=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function he(Dt){return Dt<=247?ie.charAt(Dt):1424<=Dt&&Dt<=1524?"R":1536<=Dt&&Dt<=1785?ae.charAt(Dt-1536):1774<=Dt&&Dt<=2220?"r":8192<=Dt&&Dt<=8203?"w":Dt==8204?"b":"L"}var de=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Ne=/[LRr]/,Ze=/[Lb1n]/,lt=/[1n]/;function ot(Dt,kn,Gt){this.level=Dt,this.from=kn,this.to=Gt}return function(Dt,kn){var Gt=kn=="ltr"?"L":"R";if(Dt.length==0||kn=="ltr"&&!de.test(Dt))return!1;for(var li=Dt.length,ii=[],er=0;er<li;++er)ii.push(he(Dt.charCodeAt(er)));for(var or=0,Ar=Gt;or<li;++or){var _r=ii[or];_r=="m"?ii[or]=Ar:Ar=_r}for(var Eo=0,fo=Gt;Eo<li;++Eo){var jo=ii[Eo];jo=="1"&&fo=="r"?ii[Eo]="n":Ne.test(jo)&&(fo=jo,jo=="r"&&(ii[Eo]="R"))}for(var da=1,uo=ii[0];da<li-1;++da){var Ma=ii[da];Ma=="+"&&uo=="1"&&ii[da+1]=="1"?ii[da]="1":Ma==","&&uo==ii[da+1]&&(uo=="1"||uo=="n")&&(ii[da]=uo),uo=Ma}for(var $s=0;$s<li;++$s){var Ul=ii[$s];if(Ul==",")ii[$s]="N";else if(Ul=="%"){var fl=void 0;for(fl=$s+1;fl<li&&ii[fl]=="%";++fl);for(var qu=$s&&ii[$s-1]=="!"||fl<li&&ii[fl]=="1"?"1":"N",Tu=$s;Tu<fl;++Tu)ii[Tu]=qu;$s=fl-1}}for(var Zl=0,cc=Gt;Zl<li;++Zl){var xu=ii[Zl];cc=="L"&&xu=="1"?ii[Zl]="L":Ne.test(xu)&&(cc=xu)}for(var Kl=0;Kl<li;++Kl)if(pe.test(ii[Kl])){var cs=void 0;for(cs=Kl+1;cs<li&&pe.test(ii[cs]);++cs);for(var Pl=(Kl?ii[Kl-1]:Gt)=="L",nu=(cs<li?ii[cs]:Gt)=="L",wu=Pl==nu?Pl?"L":"R":Gt,id=Kl;id<cs;++id)ii[id]=wu;Kl=cs-1}for(var gl=[],Wc,Fl=0;Fl<li;)if(Ze.test(ii[Fl])){var $f=Fl;for(++Fl;Fl<li&&Ze.test(ii[Fl]);++Fl);gl.push(new ot(0,$f,Fl))}else{var Mc=Fl,dc=gl.length,ec=kn=="rtl"?1:0;for(++Fl;Fl<li&&ii[Fl]!="L";++Fl);for(var js=Mc;js<Fl;)if(lt.test(ii[js])){Mc<js&&(gl.splice(dc,0,new ot(1,Mc,js)),dc+=ec);var iu=js;for(++js;js<Fl&&lt.test(ii[js]);++js);gl.splice(dc,0,new ot(2,iu,js)),dc+=ec,Mc=js}else++js;Mc<Fl&&gl.splice(dc,0,new ot(1,Mc,Fl))}return kn=="ltr"&&(gl[0].level==1&&(Wc=Dt.match(/^\s+/))&&(gl[0].from=Wc[0].length,gl.unshift(new ot(0,0,Wc[0].length))),mt(gl).level==1&&(Wc=Dt.match(/\s+$/))&&(mt(gl).to-=Wc[0].length,gl.push(new ot(0,li-Wc[0].length,li)))),kn=="rtl"?gl.reverse():gl}}();function En(ie,ae){var he=ie.order;return he==null&&(he=ie.order=Ht(ie.text,ae)),he}var An=[],qt=function(ie,ae,he){if(ie.addEventListener)ie.addEventListener(ae,he,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,he);else{var de=ie._handlers||(ie._handlers={});de[ae]=(de[ae]||An).concat(he)}};function cn(ie,ae){return ie._handlers&&ie._handlers[ae]||An}function qn(ie,ae,he){if(ie.removeEventListener)ie.removeEventListener(ae,he,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,he);else{var de=ie._handlers,pe=de&&de[ae];if(pe){var Ne=Lt(pe,he);Ne>-1&&(de[ae]=pe.slice(0,Ne).concat(pe.slice(Ne+1)))}}}function wn(ie,ae){var he=cn(ie,ae);if(he.length)for(var de=Array.prototype.slice.call(arguments,2),pe=0;pe<he.length;++pe)he[pe].apply(null,de)}function vi(ie,ae,he){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),wn(ie,he||ae.type,ie,ae),rr(ae)||ae.codemirrorIgnore}function ei(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var he=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),de=0;de<ae.length;++de)Lt(he,ae[de])==-1&&he.push(ae[de])}function Li(ie,ae){return cn(ie,ae).length>0}function Vi(ie){ie.prototype.on=function(ae,he){qt(this,ae,he)},ie.prototype.off=function(ae,he){qn(this,ae,he)}}function zi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Bn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function rr(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Yr(ie){zi(ie),Bn(ie)}function zr(ie){return ie.target||ie.srcElement}function Zr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),ce&&ie.ctrlKey&&ae==1&&(ae=3),ae}var Nr=function(){if($e&&qe<9)return!1;var ie=Ye("div");return"draggable"in ie||"dragDrop"in ie}(),Co;function $r(ie){if(Co==null){var ae=Ye("span","\u200B");Ke(ie,Ye("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Co=ae.offsetWidth<=1&&ae.offsetHeight>2&&!($e&&qe<8))}var he=Co?Ye("span","\u200B"):Ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return he.setAttribute("cm-text",""),he}var sr;function Fo(ie){if(sr!=null)return sr;var ae=Ke(ie,document.createTextNode("A\u062EA")),he=Je(ae,0,1).getBoundingClientRect(),de=Je(ae,1,2).getBoundingClientRect();return Ge(ie),!he||he.left==he.right?!1:sr=de.right-he.right<3}var ti=`
b`.split(/\n/).length!=3?function(ie){for(var ae=0,he=[],de=ie.length;ae<=de;){var pe=ie.indexOf(`
`,ae);pe==-1&&(pe=ie.length);var Ne=ie.slice(ae,ie.charAt(pe-1)=="\r"?pe-1:pe),Ze=Ne.indexOf("\r");Ze!=-1?(he.push(Ne.slice(0,Ze)),ae+=Ze+1):(he.push(Ne),ae=pe+1)}return he}:function(ie){return ie.split(/\r\n?|\n/)},Ae=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(he){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},$n=function(){var ie=Ye("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),oi=null;function fn(ie){if(oi!=null)return oi;var ae=Ke(ie,Ye("span","x")),he=ae.getBoundingClientRect(),de=Je(ae,0,1).getBoundingClientRect();return oi=Math.abs(he.left-de.left)>1}var Qn={},Zn={};function an(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Qn[ie]=ae}function Jt(ie,ae){Zn[ie]=ae}function vn(ie){if(typeof ie=="string"&&Zn.hasOwnProperty(ie))ie=Zn[ie];else if(ie&&typeof ie.name=="string"&&Zn.hasOwnProperty(ie.name)){var ae=Zn[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Ee(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return vn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return vn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function xt(ie,ae){ae=vn(ae);var he=Qn[ae.name];if(!he)return xt(ie,"text/plain");var de=he(ie,ae);if(wt.hasOwnProperty(ae.name)){var pe=wt[ae.name];for(var Ne in pe)pe.hasOwnProperty(Ne)&&(de.hasOwnProperty(Ne)&&(de["_"+Ne]=de[Ne]),de[Ne]=pe[Ne])}if(de.name=ae.name,ae.helperType&&(de.helperType=ae.helperType),ae.modeProps)for(var Ze in ae.modeProps)de[Ze]=ae.modeProps[Ze];return de}var wt={};function ze(ie,ae){var he=wt.hasOwnProperty(ie)?wt[ie]:wt[ie]={};Ut(ae,he)}function Yt(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var he={};for(var de in ae){var pe=ae[de];pe instanceof Array&&(pe=pe.concat([])),he[de]=pe}return he}function on(ie,ae){for(var he;ie.innerMode&&(he=ie.innerMode(ae),!(!he||he.mode==ie));)ae=he.state,ie=he.mode;return he||{mode:ie,state:ae}}function ht(ie,ae,he){return ie.startState?ie.startState(ae,he):!0}var Qe=function(ie,ae,he){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=he};Qe.prototype.eol=function(){return this.pos>=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qe.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),he;if(typeof ie=="string"?he=ae==ie:he=ae&&(ie.test?ie.test(ae):ie(ae)),he)return++this.pos,ae},Qe.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Qe.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Qe.prototype.backUp=function(ie){this.pos-=ie},Qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ft(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.indentation=function(){return ft(this.string,null,this.tabSize)-(this.lineStart?ft(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.match=function(ie,ae,he){if(typeof ie=="string"){var de=function(Ze){return he?Ze.toLowerCase():Ze},pe=this.string.substr(this.pos,ie.length);if(de(pe)==de(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Ne=this.string.slice(this.pos).match(ie);return Ne&&Ne.index>0?null:(Ne&&ae!==!1&&(this.pos+=Ne[0].length),Ne)}},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Qe.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Qe.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function _t(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var he=ie;!he.lines;)for(var de=0;;++de){var pe=he.children[de],Ne=pe.chunkSize();if(ae<Ne){he=pe;break}ae-=Ne}return he.lines[ae]}function It(ie,ae,he){var de=[],pe=ae.line;return ie.iter(ae.line,he.line+1,function(Ne){var Ze=Ne.text;pe==he.line&&(Ze=Ze.slice(0,he.ch)),pe==ae.line&&(Ze=Ze.slice(ae.ch)),de.push(Ze),++pe}),de}function Fn(ie,ae,he){var de=[];return ie.iter(ae,he,function(pe){de.push(pe.text)}),de}function Hn(ie,ae){var he=ae-ie.height;if(he)for(var de=ie;de;de=de.parent)de.height+=he}function ct(ie){if(ie.parent==null)return null;for(var ae=ie.parent,he=Lt(ae.lines,ie),de=ae.parent;de;ae=de,de=de.parent)for(var pe=0;de.children[pe]!=ae;++pe)he+=de.children[pe].chunkSize();return he+ae.first}function sn(ie,ae){var he=ie.first;e:do{for(var de=0;de<ie.children.length;++de){var pe=ie.children[de],Ne=pe.height;if(ae<Ne){ie=pe;continue e}ae-=Ne,he+=pe.chunkSize()}return he}while(!ie.lines);for(var Ze=0;Ze<ie.lines.length;++Ze){var lt=ie.lines[Ze],ot=lt.height;if(ae<ot)break;ae-=ot}return he+Ze}function Un(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function _n(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Zt(ie,ae,he){if(he===void 0&&(he=null),!(this instanceof Zt))return new Zt(ie,ae,he);this.line=ie,this.ch=ae,this.sticky=he}function rn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function wi(ie,ae){return ie.sticky==ae.sticky&&rn(ie,ae)==0}function Ci(ie){return Zt(ie.line,ie.ch)}function yi(ie,ae){return rn(ie,ae)<0?ae:ie}function ci(ie,ae){return rn(ie,ae)<0?ie:ae}function Pi(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Mi(ie,ae){if(ae.line<ie.first)return Zt(ie.first,0);var he=ie.first+ie.size-1;return ae.line>he?Zt(he,_t(ie,he).text.length):ji(ae,_t(ie,ae.line).text.length)}function ji(ie,ae){var he=ie.ch;return he==null||he>ae?Zt(ie.line,ae):he<0?Zt(ie.line,0):ie}function lr(ie,ae){for(var he=[],de=0;de<ae.length;de++)he[de]=Mi(ie,ae[de]);return he}var nr=function(ie,ae){this.state=ie,this.lookAhead=ae},Nn=function(ie,ae,he,de){this.state=ae,this.doc=ie,this.line=he,this.maxLookAhead=de||0,this.baseTokens=null,this.baseTokenPos=1};Nn.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Nn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Nn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Nn.fromSaved=function(ie,ae,he){return ae instanceof nr?new Nn(ie,Yt(ie.mode,ae.state),he,ae.lookAhead):new Nn(ie,Yt(ie.mode,ae),he)},Nn.prototype.save=function(ie){var ae=ie!==!1?Yt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new nr(ae,this.maxLookAhead):ae};function Pr(ie,ae,he,de){var pe=[ie.state.modeGen],Ne={};Mr(ie,ae.text,ie.doc.mode,he,function(Dt,kn){return pe.push(Dt,kn)},Ne,de);for(var Ze=he.state,lt=function(Dt){he.baseTokens=pe;var kn=ie.state.overlays[Dt],Gt=1,li=0;he.state=!0,Mr(ie,ae.text,kn.mode,he,function(ii,er){for(var or=Gt;li<ii;){var Ar=pe[Gt];Ar>ii&&pe.splice(Gt,1,ii,pe[Gt+1],Ar),Gt+=2,li=Math.min(ii,Ar)}if(er)if(kn.opaque)pe.splice(or,Gt-or,ii,"overlay "+er),Gt=or+2;else for(;or<Gt;or+=2){var _r=pe[or+1];pe[or+1]=(_r?_r+" ":"")+"overlay "+er}},Ne),he.state=Ze,he.baseTokens=null,he.baseTokenPos=1},ot=0;ot<ie.state.overlays.length;++ot)lt(ot);return{styles:pe,classes:Ne.bgClass||Ne.textClass?Ne:null}}function Tr(ie,ae,he){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var de=br(ie,ct(ae)),pe=ae.text.length>ie.options.maxHighlightLength&&Yt(ie.doc.mode,de.state),Ne=Pr(ie,ae,de);pe&&(de.state=pe),ae.stateAfter=de.save(!pe),ae.styles=Ne.styles,Ne.classes?ae.styleClasses=Ne.classes:ae.styleClasses&&(ae.styleClasses=null),he===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function br(ie,ae,he){var de=ie.doc,pe=ie.display;if(!de.mode.startState)return new Nn(de,!0,ae);var Ne=Di(ie,ae,he),Ze=Ne>de.first&&_t(de,Ne-1).stateAfter,lt=Ze?Nn.fromSaved(de,Ze,Ne):new Nn(de,ht(de.mode),Ne);return de.iter(Ne,ae,function(ot){Cn(ie,ot.text,lt);var Dt=lt.line;ot.stateAfter=Dt==ae-1||Dt%5==0||Dt>=pe.viewFrom&&Dt<pe.viewTo?lt.save():null,lt.nextLine()}),he&&(de.modeFrontier=lt.line),lt}function Cn(ie,ae,he,de){var pe=ie.doc.mode,Ne=new Qe(ae,ie.options.tabSize,he);for(Ne.start=Ne.pos=de||0,ae==""&&di(pe,he.state);!Ne.eol();)Ki(pe,Ne,he.state),Ne.start=Ne.pos}function di(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var he=on(ie,ae);if(he.mode.blankLine)return he.mode.blankLine(he.state)}}function Ki(ie,ae,he,de){for(var pe=0;pe<10;pe++){de&&(de[0]=on(ie,he).mode);var Ne=ie.token(ae,he);if(ae.pos>ae.start)return Ne}throw new Error("Mode "+ie.name+" failed to advance stream.")}var ir=function(ie,ae,he){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=he};function Yi(ie,ae,he,de){var pe=ie.doc,Ne=pe.mode,Ze;ae=Mi(pe,ae);var lt=_t(pe,ae.line),ot=br(ie,ae.line,he),Dt=new Qe(lt.text,ie.options.tabSize,ot),kn;for(de&&(kn=[]);(de||Dt.pos<ae.ch)&&!Dt.eol();)Dt.start=Dt.pos,Ze=Ki(Ne,Dt,ot.state),de&&kn.push(new ir(Dt,Ze,Yt(pe.mode,ot.state)));return de?kn:new ir(Dt,Ze,ot.state)}function cr(ie,ae){if(ie)for(;;){var he=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!he)break;ie=ie.slice(0,he.index)+ie.slice(he.index+he[0].length);var de=he[1]?"bgClass":"textClass";ae[de]==null?ae[de]=he[2]:new RegExp("(?:^|\\s)"+he[2]+"(?:$|\\s)").test(ae[de])||(ae[de]+=" "+he[2])}return ie}function Mr(ie,ae,he,de,pe,Ne,Ze){var lt=he.flattenSpans;lt==null&&(lt=ie.options.flattenSpans);var ot=0,Dt=null,kn=new Qe(ae,ie.options.tabSize,de),Gt,li=ie.options.addModeClass&&[null];for(ae==""&&cr(di(he,de.state),Ne);!kn.eol();){if(kn.pos>ie.options.maxHighlightLength?(lt=!1,Ze&&Cn(ie,ae,de,kn.pos),kn.pos=ae.length,Gt=null):Gt=cr(Ki(he,kn,de.state,li),Ne),li){var ii=li[0].name;ii&&(Gt="m-"+(Gt?ii+" "+Gt:ii))}if(!lt||Dt!=Gt){for(;ot<kn.start;)ot=Math.min(kn.start,ot+5e3),pe(ot,Dt);Dt=Gt}kn.start=kn.pos}for(;ot<kn.pos;){var er=Math.min(kn.pos,ot+5e3);pe(er,Dt),ot=er}}function Di(ie,ae,he){for(var de,pe,Ne=ie.doc,Ze=he?-1:ae-(ie.doc.mode.innerMode?1e3:100),lt=ae;lt>Ze;--lt){if(lt<=Ne.first)return Ne.first;var ot=_t(Ne,lt-1),Dt=ot.stateAfter;if(Dt&&(!he||lt+(Dt instanceof nr?Dt.lookAhead:0)<=Ne.modeFrontier))return lt;var kn=ft(ot.text,null,ie.options.tabSize);(pe==null||de>kn)&&(pe=lt-1,de=kn)}return pe}function Ui(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var he=ie.first,de=ae-1;de>he;de--){var pe=_t(ie,de).stateAfter;if(pe&&(!(pe instanceof nr)||de+pe.lookAhead<ae)){he=de+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,he)}}var Wi=!1,Dn=!1;function Fr(){Wi=!0}function Ln(){Dn=!0}function fr(ie,ae,he){this.marker=ie,this.from=ae,this.to=he}function Ur(ie,ae){if(ie)for(var he=0;he<ie.length;++he){var de=ie[he];if(de.marker==ae)return de}}function Cr(ie,ae){for(var he,de=0;de<ie.length;++de)ie[de]!=ae&&(he||(he=[])).push(ie[de]);return he}function Do(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function so(ie,ae,he){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Ne=ie[pe],Ze=Ne.marker,lt=Ne.from==null||(Ze.inclusiveLeft?Ne.from<=ae:Ne.from<ae);if(lt||Ne.from==ae&&Ze.type=="bookmark"&&(!he||!Ne.marker.insertLeft)){var ot=Ne.to==null||(Ze.inclusiveRight?Ne.to>=ae:Ne.to>ae);(de||(de=[])).push(new fr(Ze,Ne.from,ot?null:Ne.to))}}return de}function yr(ie,ae,he){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Ne=ie[pe],Ze=Ne.marker,lt=Ne.to==null||(Ze.inclusiveRight?Ne.to>=ae:Ne.to>ae);if(lt||Ne.from==ae&&Ze.type=="bookmark"&&(!he||Ne.marker.insertLeft)){var ot=Ne.from==null||(Ze.inclusiveLeft?Ne.from<=ae:Ne.from<ae);(de||(de=[])).push(new fr(Ze,ot?null:Ne.from-ae,Ne.to==null?null:Ne.to-ae))}}return de}function gr(ie,ae){if(ae.full)return null;var he=Un(ie,ae.from.line)&&_t(ie,ae.from.line).markedSpans,de=Un(ie,ae.to.line)&&_t(ie,ae.to.line).markedSpans;if(!he&&!de)return null;var pe=ae.from.ch,Ne=ae.to.ch,Ze=rn(ae.from,ae.to)==0,lt=so(he,pe,Ze),ot=yr(de,Ne,Ze),Dt=ae.text.length==1,kn=mt(ae.text).length+(Dt?pe:0);if(lt)for(var Gt=0;Gt<lt.length;++Gt){var li=lt[Gt];if(li.to==null){var ii=Ur(ot,li.marker);ii?Dt&&(li.to=ii.to==null?null:ii.to+kn):li.to=pe}}if(ot)for(var er=0;er<ot.length;++er){var or=ot[er];if(or.to!=null&&(or.to+=kn),or.from==null){var Ar=Ur(lt,or.marker);Ar||(or.from=kn,Dt&&(lt||(lt=[])).push(or))}else or.from+=kn,Dt&&(lt||(lt=[])).push(or)}lt&&(lt=hr(lt)),ot&&ot!=lt&&(ot=hr(ot));var _r=[lt];if(!Dt){var Eo=ae.text.length-2,fo;if(Eo>0&&lt)for(var jo=0;jo<lt.length;++jo)lt[jo].to==null&&(fo||(fo=[])).push(new fr(lt[jo].marker,null,null));for(var da=0;da<Eo;++da)_r.push(fo);_r.push(ot)}return _r}function hr(ie){for(var ae=0;ae<ie.length;++ae){var he=ie[ae];he.from!=null&&he.from==he.to&&he.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function Gr(ie,ae,he){var de=null;if(ie.iter(ae.line,he.line+1,function(ii){if(ii.markedSpans)for(var er=0;er<ii.markedSpans.length;++er){var or=ii.markedSpans[er].marker;or.readOnly&&(!de||Lt(de,or)==-1)&&(de||(de=[])).push(or)}}),!de)return null;for(var pe=[{from:ae,to:he}],Ne=0;Ne<de.length;++Ne)for(var Ze=de[Ne],lt=Ze.find(0),ot=0;ot<pe.length;++ot){var Dt=pe[ot];if(!(rn(Dt.to,lt.from)<0||rn(Dt.from,lt.to)>0)){var kn=[ot,1],Gt=rn(Dt.from,lt.from),li=rn(Dt.to,lt.to);(Gt<0||!Ze.inclusiveLeft&&!Gt)&&kn.push({from:Dt.from,to:lt.from}),(li>0||!Ze.inclusiveRight&&!li)&&kn.push({from:lt.to,to:Dt.to}),pe.splice.apply(pe,kn),ot+=kn.length-3}}return pe}function Oi(ie){var ae=ie.markedSpans;if(ae){for(var he=0;he<ae.length;++he)ae[he].marker.detachLine(ie);ie.markedSpans=null}}function _e(ie,ae){if(ae){for(var he=0;he<ae.length;++he)ae[he].marker.attachLine(ie);ie.markedSpans=ae}}function yt(ie){return ie.inclusiveLeft?-1:0}function Bt(ie){return ie.inclusiveRight?1:0}function ln(ie,ae){var he=ie.lines.length-ae.lines.length;if(he!=0)return he;var de=ie.find(),pe=ae.find(),Ne=rn(de.from,pe.from)||yt(ie)-yt(ae);if(Ne)return-Ne;var Ze=rn(de.to,pe.to)||Bt(ie)-Bt(ae);return Ze||ae.id-ie.id}function jn(ie,ae){var he=Dn&&ie.markedSpans,de;if(he)for(var pe=void 0,Ne=0;Ne<he.length;++Ne)pe=he[Ne],pe.marker.collapsed&&(ae?pe.from:pe.to)==null&&(!de||ln(de,pe.marker)<0)&&(de=pe.marker);return de}function ri(ie){return jn(ie,!0)}function tn(ie){return jn(ie,!1)}function bn(ie,ae){var he=Dn&&ie.markedSpans,de;if(he)for(var pe=0;pe<he.length;++pe){var Ne=he[pe];Ne.marker.collapsed&&(Ne.from==null||Ne.from<ae)&&(Ne.to==null||Ne.to>ae)&&(!de||ln(de,Ne.marker)<0)&&(de=Ne.marker)}return de}function Xn(ie,ae,he,de,pe){var Ne=_t(ie,ae),Ze=Dn&&Ne.markedSpans;if(Ze)for(var lt=0;lt<Ze.length;++lt){var ot=Ze[lt];if(ot.marker.collapsed){var Dt=ot.marker.find(0),kn=rn(Dt.from,he)||yt(ot.marker)-yt(pe),Gt=rn(Dt.to,de)||Bt(ot.marker)-Bt(pe);if(!(kn>=0&&Gt<=0||kn<=0&&Gt>=0)&&(kn<=0&&(ot.marker.inclusiveRight&&pe.inclusiveLeft?rn(Dt.to,he)>=0:rn(Dt.to,he)>0)||kn>=0&&(ot.marker.inclusiveRight&&pe.inclusiveLeft?rn(Dt.from,de)<=0:rn(Dt.from,de)<0)))return!0}}}function Kn(ie){for(var ae;ae=ri(ie);)ie=ae.find(-1,!0).line;return ie}function Ei(ie){for(var ae;ae=tn(ie);)ie=ae.find(1,!0).line;return ie}function vr(ie){for(var ae,he;ae=tn(ie);)ie=ae.find(1,!0).line,(he||(he=[])).push(ie);return he}function Ai(ie,ae){var he=_t(ie,ae),de=Kn(he);return he==de?ae:ct(de)}function Bi(ie,ae){if(ae>ie.lastLine())return ae;var he=_t(ie,ae),de;if(!zn(ie,he))return ae;for(;de=tn(he);)he=de.find(1,!0).line;return ct(he)+1}function zn(ie,ae){var he=Dn&&ae.markedSpans;if(he){for(var de=void 0,pe=0;pe<he.length;++pe)if(de=he[pe],!!de.marker.collapsed){if(de.from==null)return!0;if(!de.marker.widgetNode&&de.from==0&&de.marker.inclusiveLeft&&pr(ie,ae,de))return!0}}}function pr(ie,ae,he){if(he.to==null){var de=he.marker.find(1,!0);return pr(ie,de.line,Ur(de.line.markedSpans,he.marker))}if(he.marker.inclusiveRight&&he.to==ae.text.length)return!0;for(var pe=void 0,Ne=0;Ne<ae.markedSpans.length;++Ne)if(pe=ae.markedSpans[Ne],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==he.to&&(pe.to==null||pe.to!=he.from)&&(pe.marker.inclusiveLeft||he.marker.inclusiveRight)&&pr(ie,ae,pe))return!0}function kr(ie){ie=Kn(ie);for(var ae=0,he=ie.parent,de=0;de<he.lines.length;++de){var pe=he.lines[de];if(pe==ie)break;ae+=pe.height}for(var Ne=he.parent;Ne;he=Ne,Ne=he.parent)for(var Ze=0;Ze<Ne.children.length;++Ze){var lt=Ne.children[Ze];if(lt==he)break;ae+=lt.height}return ae}function po(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,he,de=ie;he=ri(de);){var pe=he.find(0,!0);de=pe.from.line,ae+=pe.from.ch-pe.to.ch}for(de=ie;he=tn(de);){var Ne=he.find(0,!0);ae-=de.text.length-Ne.from.ch,de=Ne.to.line,ae+=de.text.length-Ne.to.ch}return ae}function to(ie){var ae=ie.display,he=ie.doc;ae.maxLine=_t(he,he.first),ae.maxLineLength=po(ae.maxLine),ae.maxLineChanged=!0,he.iter(function(de){var pe=po(de);pe>ae.maxLineLength&&(ae.maxLineLength=pe,ae.maxLine=de)})}var Jr=function(ie,ae,he){this.text=ie,_e(this,ae),this.height=he?he(this):1};Jr.prototype.lineNo=function(){return ct(this)},Vi(Jr);function eo(ie,ae,he,de){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Oi(ie),_e(ie,he);var pe=de?de(ie):1;pe!=ie.height&&Hn(ie,pe)}function Zo(ie){ie.parent=null,Oi(ie)}var $o={},ia={};function qo(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var he=ae.addModeClass?ia:$o;return he[ie]||(he[ie]=ie.replace(/\S+/g,"cm-$&"))}function Sn(ie,ae){var he=pt("span",null,null,De?"padding-right: .1px":null),de={pre:pt("pre",[he],"CodeMirror-line"),content:he,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var pe=0;pe<=(ae.rest?ae.rest.length:0);pe++){var Ne=pe?ae.rest[pe-1]:ae.line,Ze=void 0;de.pos=0,de.addToken=vs,Fo(ie.display.measure)&&(Ze=En(Ne,ie.doc.direction))&&(de.addToken=Zs(de.addToken,Ze)),de.map=[];var lt=ae!=ie.display.externalMeasured&&ct(Ne);pl(Ne,de,Tr(ie,Ne,lt)),Ne.styleClasses&&(Ne.styleClasses.bgClass&&(de.bgClass=zt(Ne.styleClasses.bgClass,de.bgClass||"")),Ne.styleClasses.textClass&&(de.textClass=zt(Ne.styleClasses.textClass,de.textClass||""))),de.map.length==0&&de.map.push(0,0,de.content.appendChild($r(ie.display.measure))),pe==0?(ae.measure.map=de.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(de.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(De){var ot=de.content.lastChild;(/\bcm-tab\b/.test(ot.className)||ot.querySelector&&ot.querySelector(".cm-tab"))&&(de.content.className="cm-tab-wrap-hack")}return wn(ie,"renderLine",ie,ae.line,de.pre),de.pre.className&&(de.textClass=zt(de.pre.className,de.textClass||"")),de}function oa(ie){var ae=Ye("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function vs(ie,ae,he,de,pe,Ne,Ze){if(ae){var lt=ie.splitSpaces?Ga(ae,ie.trailingSpace):ae,ot=ie.cm.state.specialChars,Dt=!1,kn;if(!ot.test(ae))ie.col+=ae.length,kn=document.createTextNode(lt),ie.map.push(ie.pos,ie.pos+ae.length,kn),$e&&qe<9&&(Dt=!0),ie.pos+=ae.length;else{kn=document.createDocumentFragment();for(var Gt=0;;){ot.lastIndex=Gt;var li=ot.exec(ae),ii=li?li.index-Gt:ae.length-Gt;if(ii){var er=document.createTextNode(lt.slice(Gt,Gt+ii));$e&&qe<9?kn.appendChild(Ye("span",[er])):kn.appendChild(er),ie.map.push(ie.pos,ie.pos+ii,er),ie.col+=ii,ie.pos+=ii}if(!li)break;Gt+=ii+1;var or=void 0;if(li[0]==" "){var Ar=ie.cm.options.tabSize,_r=Ar-ie.col%Ar;or=kn.appendChild(Ye("span",Tn(_r),"cm-tab")),or.setAttribute("role","presentation"),or.setAttribute("cm-text"," "),ie.col+=_r}else li[0]=="\r"||li[0]==`
`?(or=kn.appendChild(Ye("span",li[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),or.setAttribute("cm-text",li[0]),ie.col+=1):(or=ie.cm.options.specialCharPlaceholder(li[0]),or.setAttribute("cm-text",li[0]),$e&&qe<9?kn.appendChild(Ye("span",[or])):kn.appendChild(or),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,or),ie.pos++}}if(ie.trailingSpace=lt.charCodeAt(ae.length-1)==32,he||de||pe||Dt||Ne||Ze){var Eo=he||"";de&&(Eo+=de),pe&&(Eo+=pe);var fo=Ye("span",[kn],Eo,Ne);if(Ze)for(var jo in Ze)Ze.hasOwnProperty(jo)&&jo!="style"&&jo!="class"&&fo.setAttribute(jo,Ze[jo]);return ie.content.appendChild(fo)}ie.content.appendChild(kn)}}function Ga(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var he=ae,de="",pe=0;pe<ie.length;pe++){var Ne=ie.charAt(pe);Ne==" "&&he&&(pe==ie.length-1||ie.charCodeAt(pe+1)==32)&&(Ne="\xA0"),de+=Ne,he=Ne==" "}return de}function Zs(ie,ae){return function(he,de,pe,Ne,Ze,lt,ot){pe=pe?pe+" cm-force-border":"cm-force-border";for(var Dt=he.pos,kn=Dt+de.length;;){for(var Gt=void 0,li=0;li<ae.length&&(Gt=ae[li],!(Gt.to>Dt&&Gt.from<=Dt));li++);if(Gt.to>=kn)return ie(he,de,pe,Ne,Ze,lt,ot);ie(he,de.slice(0,Gt.to-Dt),pe,Ne,null,lt,ot),Ne=null,de=de.slice(Gt.to-Dt),Dt=Gt.to}}}function xa(ie,ae,he,de){var pe=!de&&he.widgetNode;pe&&ie.map.push(ie.pos,ie.pos+ae,pe),!de&&ie.cm.display.input.needsContentAttribute&&(pe||(pe=ie.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",he.id)),pe&&(ie.cm.display.input.setUneditable(pe),ie.content.appendChild(pe)),ie.pos+=ae,ie.trailingSpace=!1}function pl(ie,ae,he){var de=ie.markedSpans,pe=ie.text,Ne=0;if(!de){for(var Ze=1;Ze<he.length;Ze+=2)ae.addToken(ae,pe.slice(Ne,Ne=he[Ze]),qo(he[Ze+1],ae.cm.options));return}for(var lt=pe.length,ot=0,Dt=1,kn="",Gt,li,ii=0,er,or,Ar,_r,Eo;;){if(ii==ot){er=or=Ar=li="",Eo=null,_r=null,ii=1/0;for(var fo=[],jo=void 0,da=0;da<de.length;++da){var uo=de[da],Ma=uo.marker;if(Ma.type=="bookmark"&&uo.from==ot&&Ma.widgetNode)fo.push(Ma);else if(uo.from<=ot&&(uo.to==null||uo.to>ot||Ma.collapsed&&uo.to==ot&&uo.from==ot)){if(uo.to!=null&&uo.to!=ot&&ii>uo.to&&(ii=uo.to,or=""),Ma.className&&(er+=" "+Ma.className),Ma.css&&(li=(li?li+";":"")+Ma.css),Ma.startStyle&&uo.from==ot&&(Ar+=" "+Ma.startStyle),Ma.endStyle&&uo.to==ii&&(jo||(jo=[])).push(Ma.endStyle,uo.to),Ma.title&&((Eo||(Eo={})).title=Ma.title),Ma.attributes)for(var $s in Ma.attributes)(Eo||(Eo={}))[$s]=Ma.attributes[$s];Ma.collapsed&&(!_r||ln(_r.marker,Ma)<0)&&(_r=uo)}else uo.from>ot&&ii>uo.from&&(ii=uo.from)}if(jo)for(var Ul=0;Ul<jo.length;Ul+=2)jo[Ul+1]==ii&&(or+=" "+jo[Ul]);if(!_r||_r.from==ot)for(var fl=0;fl<fo.length;++fl)xa(ae,0,fo[fl]);if(_r&&(_r.from||0)==ot){if(xa(ae,(_r.to==null?lt+1:_r.to)-ot,_r.marker,_r.from==null),_r.to==null)return;_r.to==ot&&(_r=!1)}}if(ot>=lt)break;for(var qu=Math.min(lt,ii);;){if(kn){var Tu=ot+kn.length;if(!_r){var Zl=Tu>qu?kn.slice(0,qu-ot):kn;ae.addToken(ae,Zl,Gt?Gt+er:er,Ar,ot+Zl.length==ii?or:"",li,Eo)}if(Tu>=qu){kn=kn.slice(qu-ot),ot=qu;break}ot=Tu,Ar=""}kn=pe.slice(Ne,Ne=he[Dt++]),Gt=qo(he[Dt++],ae.cm.options)}}}function wa(ie,ae,he){this.line=ae,this.rest=vr(ae),this.size=this.rest?ct(mt(this.rest))-he+1:1,this.node=this.text=null,this.hidden=zn(ie,ae)}function Ao(ie,ae,he){for(var de=[],pe,Ne=ae;Ne<he;Ne=pe){var Ze=new wa(ie.doc,_t(ie.doc,Ne),Ne);pe=Ne+Ze.size,de.push(Ze)}return de}var Ko=null;function Ka(ie){Ko?Ko.ops.push(ie):ie.ownsGroup=Ko={ops:[ie],delayedCallbacks:[]}}function Kr(ie){var ae=ie.delayedCallbacks,he=0;do{for(;he<ae.length;he++)ae[he].call(null);for(var de=0;de<ie.ops.length;de++){var pe=ie.ops[de];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(he<ae.length)}function No(ie,ae){var he=ie.ownsGroup;if(he)try{Kr(he)}finally{Ko=null,ae(he)}}var ro=null;function Hi(ie,ae){var he=cn(ie,ae);if(he.length){var de=Array.prototype.slice.call(arguments,2),pe;Ko?pe=Ko.delayedCallbacks:ro?pe=ro:(pe=ro=[],setTimeout(fa,0));for(var Ne=function(lt){pe.push(function(){return he[lt].apply(null,de)})},Ze=0;Ze<he.length;++Ze)Ne(Ze)}}function fa(){var ie=ro;ro=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function ka(ie,ae,he,de){for(var pe=0;pe<ae.changes.length;pe++){var Ne=ae.changes[pe];Ne=="text"?Gi(ie,ae):Ne=="gutter"?pa(ie,ae,he,de):Ne=="class"?Da(ie,ae):Ne=="widget"&&Os(ie,ae,de)}ae.changes=null}function Ds(ie){return ie.node==ie.text&&(ie.node=Ye("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),$e&&qe<8&&(ie.node.style.zIndex=2)),ie.node}function ys(ie,ae){var he=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(he&&(he+=" CodeMirror-linebackground"),ae.background)he?ae.background.className=he:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(he){var de=Ds(ae);ae.background=de.insertBefore(Ye("div",null,he),de.firstChild),ie.display.input.setUneditable(ae.background)}}function nl(ie,ae){var he=ie.display.externalMeasured;return he&&he.line==ae.line?(ie.display.externalMeasured=null,ae.measure=he.measure,he.built):Sn(ie,ae)}function Gi(ie,ae){var he=ae.text.className,de=nl(ie,ae);ae.text==ae.node&&(ae.node=de.pre),ae.text.parentNode.replaceChild(de.pre,ae.text),ae.text=de.pre,de.bgClass!=ae.bgClass||de.textClass!=ae.textClass?(ae.bgClass=de.bgClass,ae.textClass=de.textClass,Da(ie,ae)):he&&(ae.text.className=he)}function Da(ie,ae){ys(ie,ae),ae.line.wrapClass?Ds(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var he=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=he||""}function pa(ie,ae,he,de){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var pe=Ds(ae);ae.gutterBackground=Ye("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px; width: "+de.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),pe.insertBefore(ae.gutterBackground,ae.text)}var Ne=ae.line.gutterMarkers;if(ie.options.lineNumbers||Ne){var Ze=Ds(ae),lt=ae.gutter=Ye("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(lt),Ze.insertBefore(lt,ae.text),ae.line.gutterClass&&(lt.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Ne||!Ne["CodeMirror-linenumbers"])&&(ae.lineNumber=lt.appendChild(Ye("div",_n(ie.options,he),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+de.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Ne)for(var ot=0;ot<ie.display.gutterSpecs.length;++ot){var Dt=ie.display.gutterSpecs[ot].className,kn=Ne.hasOwnProperty(Dt)&&Ne[Dt];kn&&lt.appendChild(Ye("div",[kn],"CodeMirror-gutter-elt","left: "+de.gutterLeft[Dt]+"px; width: "+de.gutterWidth[Dt]+"px"))}}}function Os(ie,ae,he){ae.alignable&&(ae.alignable=null);for(var de=Pe("CodeMirror-linewidget"),pe=ae.node.firstChild,Ne=void 0;pe;pe=Ne)Ne=pe.nextSibling,de.test(pe.className)&&ae.node.removeChild(pe);Gl(ie,ae,he)}function ml(ie,ae,he,de){var pe=nl(ie,ae);return ae.text=ae.node=pe.pre,pe.bgClass&&(ae.bgClass=pe.bgClass),pe.textClass&&(ae.textClass=pe.textClass),Da(ie,ae),pa(ie,ae,he,de),Gl(ie,ae,de),ae.node}function Gl(ie,ae,he){if(So(ie,ae.line,ae,he,!0),ae.rest)for(var de=0;de<ae.rest.length;de++)So(ie,ae.rest[de],ae,he,!1)}function So(ie,ae,he,de,pe){if(ae.widgets)for(var Ne=Ds(he),Ze=0,lt=ae.widgets;Ze<lt.length;++Ze){var ot=lt[Ze],Dt=Ye("div",[ot.node],"CodeMirror-linewidget"+(ot.className?" "+ot.className:""));ot.handleMouseEvents||Dt.setAttribute("cm-ignore-events","true"),Au(ot,Dt,he,de),ie.display.input.setUneditable(Dt),pe&&ot.above?Ne.insertBefore(Dt,he.gutter||he.text):Ne.appendChild(Dt),Hi(ot,"redraw")}}function Au(ie,ae,he,de){if(ie.noHScroll){(he.alignable||(he.alignable=[])).push(ae);var pe=de.wrapperWidth;ae.style.left=de.fixedPos+"px",ie.coverGutter||(pe-=de.gutterTotalWidth,ae.style.paddingLeft=de.gutterTotalWidth+"px"),ae.style.width=pe+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-de.gutterTotalWidth+"px"))}function il(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!kt(document.body,ie.node)){var he="position: relative;";ie.coverGutter&&(he+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(he+="width: "+ae.display.wrapper.clientWidth+"px;"),Ke(ae.display.measure,Ye("div",[ie.node],null,he))}return ie.height=ie.node.parentNode.offsetHeight}function Nl(ie,ae){for(var he=zr(ae);he!=ie.wrapper;he=he.parentNode)if(!he||he.nodeType==1&&he.getAttribute("cm-ignore-events")=="true"||he.parentNode==ie.sizer&&he!=ie.mover)return!0}function vl(ie){return ie.lineSpace.offsetTop}function fu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function yl(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=Ke(ie.measure,Ye("pre","x","CodeMirror-line-like")),he=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,de={left:parseInt(he.paddingLeft),right:parseInt(he.paddingRight)};return!isNaN(de.left)&&!isNaN(de.right)&&(ie.cachedPaddingH=de),de}function rl(ie){return yn-ie.display.nativeBarWidth}function Sl(ie){return ie.display.scroller.clientWidth-rl(ie)-ie.display.barWidth}function oc(ie){return ie.display.scroller.clientHeight-rl(ie)-ie.display.barHeight}function Sc(ie,ae,he){var de=ie.options.lineWrapping,pe=de&&Sl(ie);if(!ae.measure.heights||de&&ae.measure.width!=pe){var Ne=ae.measure.heights=[];if(de){ae.measure.width=pe;for(var Ze=ae.text.firstChild.getClientRects(),lt=0;lt<Ze.length-1;lt++){var ot=Ze[lt],Dt=Ze[lt+1];Math.abs(ot.bottom-Dt.bottom)>2&&Ne.push((ot.bottom+Dt.top)/2-he.top)}}Ne.push(he.bottom-he.top)}}function xc(ie,ae,he){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var de=0;de<ie.rest.length;de++)if(ie.rest[de]==ae)return{map:ie.measure.maps[de],cache:ie.measure.caches[de]};for(var pe=0;pe<ie.rest.length;pe++)if(ct(ie.rest[pe])>he)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function Qc(ie,ae){ae=Kn(ae);var he=ct(ae),de=ie.display.externalMeasured=new wa(ie.doc,ae,he);de.lineN=he;var pe=de.built=Sn(ie,de);return de.text=pe.pre,Ke(ie.display.lineMeasure,pe.pre),de}function gu(ie,ae,he,de){return Tl(ie,xl(ie,ae),he,de)}function zl(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[Il(ie,ae)];var he=ie.display.externalMeasured;if(he&&ae>=he.lineN&&ae<he.lineN+he.size)return he}function xl(ie,ae){var he=ct(ae),de=zl(ie,he);de&&!de.text?de=null:de&&de.changes&&(ka(ie,de,he,Pc(ie)),ie.curOp.forceUpdate=!0),de||(de=Qc(ie,ae));var pe=xc(de,ae,he);return{line:ae,view:de,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function Tl(ie,ae,he,de,pe){ae.before&&(he=-1);var Ne=he+(de||""),Ze;return ae.cache.hasOwnProperty(Ne)?Ze=ae.cache[Ne]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(Sc(ie,ae.view,ae.rect),ae.hasHeights=!0),Ze=Jo(ie,ae,he,de),Ze.bogus||(ae.cache[Ne]=Ze)),{left:Ze.left,right:Ze.right,top:pe?Ze.rtop:Ze.top,bottom:pe?Ze.rbottom:Ze.bottom}}var pu={left:0,right:0,top:0,bottom:0};function wc(ie,ae,he){for(var de,pe,Ne,Ze,lt,ot,Dt=0;Dt<ie.length;Dt+=3)if(lt=ie[Dt],ot=ie[Dt+1],ae<lt?(pe=0,Ne=1,Ze="left"):ae<ot?(pe=ae-lt,Ne=pe+1):(Dt==ie.length-3||ae==ot&&ie[Dt+3]>ae)&&(Ne=ot-lt,pe=Ne-1,ae>=ot&&(Ze="right")),pe!=null){if(de=ie[Dt+2],lt==ot&&he==(de.insertLeft?"left":"right")&&(Ze=he),he=="left"&&pe==0)for(;Dt&&ie[Dt-2]==ie[Dt-3]&&ie[Dt-1].insertLeft;)de=ie[(Dt-=3)+2],Ze="left";if(he=="right"&&pe==ot-lt)for(;Dt<ie.length-3&&ie[Dt+3]==ie[Dt+4]&&!ie[Dt+5].insertLeft;)de=ie[(Dt+=3)+2],Ze="right";break}return{node:de,start:pe,end:Ne,collapse:Ze,coverStart:lt,coverEnd:ot}}function mu(ie,ae){var he=pu;if(ae=="left")for(var de=0;de<ie.length&&(he=ie[de]).left==he.right;de++);else for(var pe=ie.length-1;pe>=0&&(he=ie[pe]).left==he.right;pe--);return he}function Jo(ie,ae,he,de){var pe=wc(ae.map,he,de),Ne=pe.node,Ze=pe.start,lt=pe.end,ot=pe.collapse,Dt;if(Ne.nodeType==3){for(var kn=0;kn<4;kn++){for(;Ze&&At(ae.line.text.charAt(pe.coverStart+Ze));)--Ze;for(;pe.coverStart+lt<pe.coverEnd&&At(ae.line.text.charAt(pe.coverStart+lt));)++lt;if($e&&qe<9&&Ze==0&&lt==pe.coverEnd-pe.coverStart?Dt=Ne.parentNode.getBoundingClientRect():Dt=mu(Je(Ne,Ze,lt).getClientRects(),de),Dt.left||Dt.right||Ze==0)break;lt=Ze,Ze=Ze-1,ot="right"}$e&&qe<11&&(Dt=ma(ie.display.measure,Dt))}else{Ze>0&&(ot=de="right");var Gt;ie.options.lineWrapping&&(Gt=Ne.getClientRects()).length>1?Dt=Gt[de=="right"?Gt.length-1:0]:Dt=Ne.getBoundingClientRect()}if($e&&qe<9&&!Ze&&(!Dt||!Dt.left&&!Dt.right)){var li=Ne.parentNode.getClientRects()[0];li?Dt={left:li.left,right:li.left+jl(ie.display),top:li.top,bottom:li.bottom}:Dt=pu}for(var ii=Dt.top-ae.rect.top,er=Dt.bottom-ae.rect.top,or=(ii+er)/2,Ar=ae.view.measure.heights,_r=0;_r<Ar.length-1&&!(or<Ar[_r]);_r++);var Eo=_r?Ar[_r-1]:0,fo=Ar[_r],jo={left:(ot=="right"?Dt.right:Dt.left)-ae.rect.left,right:(ot=="left"?Dt.left:Dt.right)-ae.rect.left,top:Eo,bottom:fo};return!Dt.left&&!Dt.right&&(jo.bogus=!0),ie.options.singleCursorHeightPerLine||(jo.rtop=ii,jo.rbottom=er),jo}function ma(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fn(ie))return ae;var he=screen.logicalXDPI/screen.deviceXDPI,de=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*he,right:ae.right*he,top:ae.top*de,bottom:ae.bottom*de}}function dl(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function Cs(ie){ie.display.externalMeasure=null,Ge(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)dl(ie.display.view[ae])}function Ss(ie){Cs(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function rs(){return Et&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ds(){return Et&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ls(ie){var ae=0;if(ie.widgets)for(var he=0;he<ie.widgets.length;++he)ie.widgets[he].above&&(ae+=il(ie.widgets[he]));return ae}function xs(ie,ae,he,de,pe){if(!pe){var Ne=Ls(ae);he.top+=Ne,he.bottom+=Ne}if(de=="line")return he;de||(de="local");var Ze=kr(ae);if(de=="local"?Ze+=vl(ie.display):Ze-=ie.display.viewOffset,de=="page"||de=="window"){var lt=ie.display.lineSpace.getBoundingClientRect();Ze+=lt.top+(de=="window"?0:ds());var ot=lt.left+(de=="window"?0:rs());he.left+=ot,he.right+=ot}return he.top+=Ze,he.bottom+=Ze,he}function Ks(ie,ae,he){if(he=="div")return ae;var de=ae.left,pe=ae.top;if(he=="page")de-=rs(),pe-=ds();else if(he=="local"||!he){var Ne=ie.display.sizer.getBoundingClientRect();de+=Ne.left,pe+=Ne.top}var Ze=ie.display.lineSpace.getBoundingClientRect();return{left:de-Ze.left,top:pe-Ze.top}}function Bs(ie,ae,he,de,pe){return de||(de=_t(ie.doc,ae.line)),xs(ie,de,gu(ie,de,ae.ch,pe),he)}function Fa(ie,ae,he,de,pe,Ne){de=de||_t(ie.doc,ae.line),pe||(pe=xl(ie,de));function Ze(er,or){var Ar=Tl(ie,pe,er,or?"right":"left",Ne);return or?Ar.left=Ar.right:Ar.right=Ar.left,xs(ie,de,Ar,he)}var lt=En(de,ie.doc.direction),ot=ae.ch,Dt=ae.sticky;if(ot>=de.text.length?(ot=de.text.length,Dt="before"):ot<=0&&(ot=0,Dt="after"),!lt)return Ze(Dt=="before"?ot-1:ot,Dt=="before");function kn(er,or,Ar){var _r=lt[or],Eo=_r.level==1;return Ze(Ar?er-1:er,Eo!=Ar)}var Gt=dt(lt,ot,Dt),li=bt,ii=kn(ot,Gt,Dt=="before");return li!=null&&(ii.other=kn(ot,li,Dt!="before")),ii}function Hu(ie,ae){var he=0;ae=Mi(ie.doc,ae),ie.options.lineWrapping||(he=jl(ie.display)*ae.ch);var de=_t(ie.doc,ae.line),pe=kr(de)+vl(ie.display);return{left:he,right:he,top:pe,bottom:pe+de.height}}function Ol(ie,ae,he,de,pe){var Ne=Zt(ie,ae,he);return Ne.xRel=pe,de&&(Ne.outside=de),Ne}function El(ie,ae,he){var de=ie.doc;if(he+=ie.display.viewOffset,he<0)return Ol(de.first,0,null,-1,-1);var pe=sn(de,he),Ne=de.first+de.size-1;if(pe>Ne)return Ol(de.first+de.size-1,_t(de,Ne).text.length,null,1,1);ae<0&&(ae=0);for(var Ze=_t(de,pe);;){var lt=gi(ie,Ze,pe,ae,he),ot=bn(Ze,lt.ch+(lt.xRel>0||lt.outside>0?1:0));if(!ot)return lt;var Dt=ot.find(1);if(Dt.line==pe)return Dt;Ze=_t(de,pe=Dt.line)}}function jr(ie,ae,he,de){de-=Ls(ae);var pe=ae.text.length,Ne=We(function(Ze){return Tl(ie,he,Ze-1).bottom<=de},pe,0);return pe=We(function(Ze){return Tl(ie,he,Ze).top>de},Ne,pe),{begin:Ne,end:pe}}function Lu(ie,ae,he,de){he||(he=xl(ie,ae));var pe=xs(ie,ae,Tl(ie,he,de),"line").top;return jr(ie,ae,he,pe)}function Vt(ie,ae,he,de){return ie.bottom<=he?!1:ie.top>he?!0:(de?ie.left:ie.right)>ae}function gi(ie,ae,he,de,pe){pe-=kr(ae);var Ne=xl(ie,ae),Ze=Ls(ae),lt=0,ot=ae.text.length,Dt=!0,kn=En(ae,ie.doc.direction);if(kn){var Gt=(ie.options.lineWrapping?Fu:Mu)(ie,ae,he,Ne,kn,de,pe);Dt=Gt.level!=1,lt=Dt?Gt.from:Gt.to-1,ot=Dt?Gt.to:Gt.from-1}var li=null,ii=null,er=We(function(da){var uo=Tl(ie,Ne,da);return uo.top+=Ze,uo.bottom+=Ze,Vt(uo,de,pe,!1)?(uo.top<=pe&&uo.left<=de&&(li=da,ii=uo),!0):!1},lt,ot),or,Ar,_r=!1;if(ii){var Eo=de-ii.left<ii.right-de,fo=Eo==Dt;er=li+(fo?0:1),Ar=fo?"after":"before",or=Eo?ii.left:ii.right}else{!Dt&&(er==ot||er==lt)&&er++,Ar=er==0?"after":er==ae.text.length?"before":Tl(ie,Ne,er-(Dt?1:0)).bottom+Ze<=pe==Dt?"after":"before";var jo=Fa(ie,Zt(he,er,Ar),"line",ae,Ne);or=jo.left,_r=pe<jo.top?-1:pe>=jo.bottom?1:0}return er=Ve(ae.text,er,1),Ol(he,er,Ar,_r,de-or)}function Mu(ie,ae,he,de,pe,Ne,Ze){var lt=We(function(Gt){var li=pe[Gt],ii=li.level!=1;return Vt(Fa(ie,Zt(he,ii?li.to:li.from,ii?"before":"after"),"line",ae,de),Ne,Ze,!0)},0,pe.length-1),ot=pe[lt];if(lt>0){var Dt=ot.level!=1,kn=Fa(ie,Zt(he,Dt?ot.from:ot.to,Dt?"after":"before"),"line",ae,de);Vt(kn,Ne,Ze,!0)&&kn.top>Ze&&(ot=pe[lt-1])}return ot}function Fu(ie,ae,he,de,pe,Ne,Ze){var lt=jr(ie,ae,de,Ze),ot=lt.begin,Dt=lt.end;/\s/.test(ae.text.charAt(Dt-1))&&Dt--;for(var kn=null,Gt=null,li=0;li<pe.length;li++){var ii=pe[li];if(!(ii.from>=Dt||ii.to<=ot)){var er=ii.level!=1,or=Tl(ie,de,er?Math.min(Dt,ii.to)-1:Math.max(ot,ii.from)).right,Ar=or<Ne?Ne-or+1e9:or-Ne;(!kn||Gt>Ar)&&(kn=ii,Gt=Ar)}}return kn||(kn=pe[pe.length-1]),kn.from<ot&&(kn={from:ot,to:kn.to,level:kn.level}),kn.to>Dt&&(kn={from:kn.from,to:Dt,level:kn.level}),kn}var _l;function $l(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(_l==null){_l=Ye("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)_l.appendChild(document.createTextNode("x")),_l.appendChild(Ye("br"));_l.appendChild(document.createTextNode("x"))}Ke(ie.measure,_l);var he=_l.offsetHeight/50;return he>3&&(ie.cachedTextHeight=he),Ge(ie.measure),he||1}function jl(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Ye("span","xxxxxxxxxx"),he=Ye("pre",[ae],"CodeMirror-line-like");Ke(ie.measure,he);var de=ae.getBoundingClientRect(),pe=(de.right-de.left)/10;return pe>2&&(ie.cachedCharWidth=pe),pe||10}function Pc(ie){for(var ae=ie.display,he={},de={},pe=ae.gutters.clientLeft,Ne=ae.gutters.firstChild,Ze=0;Ne;Ne=Ne.nextSibling,++Ze){var lt=ie.display.gutterSpecs[Ze].className;he[lt]=Ne.offsetLeft+Ne.clientLeft+pe,de[lt]=Ne.clientWidth}return{fixedPos:Ic(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:he,gutterWidth:de,wrapperWidth:ae.wrapper.clientWidth}}function Ic(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Ts(ie){var ae=$l(ie.display),he=ie.options.lineWrapping,de=he&&Math.max(5,ie.display.scroller.clientWidth/jl(ie.display)-3);return function(pe){if(zn(ie.doc,pe))return 0;var Ne=0;if(pe.widgets)for(var Ze=0;Ze<pe.widgets.length;Ze++)pe.widgets[Ze].height&&(Ne+=pe.widgets[Ze].height);return he?Ne+(Math.ceil(pe.text.length/de)||1)*ae:Ne+ae}}function Io(ie){var ae=ie.doc,he=Ts(ie);ae.iter(function(de){var pe=he(de);pe!=de.height&&Hn(de,pe)})}function wl(ie,ae,he,de){var pe=ie.display;if(!he&&zr(ae).getAttribute("cm-not-content")=="true")return null;var Ne,Ze,lt=pe.lineSpace.getBoundingClientRect();try{Ne=ae.clientX-lt.left,Ze=ae.clientY-lt.top}catch(Gt){return null}var ot=El(ie,Ne,Ze),Dt;if(de&&ot.xRel>0&&(Dt=_t(ie.doc,ot.line).text).length==ot.ch){var kn=ft(Dt,Dt.length,ie.options.tabSize)-Dt.length;ot=Zt(ot.line,Math.max(0,Math.round((Ne-yl(ie.display).left)/jl(ie.display))-kn))}return ot}function Il(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var he=ie.display.view,de=0;de<he.length;de++)if(ae-=he[de].size,ae<0)return de}function ws(ie,ae,he,de){ae==null&&(ae=ie.doc.first),he==null&&(he=ie.doc.first+ie.doc.size),de||(de=0);var pe=ie.display;if(de&&he<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>ae)&&(pe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=pe.viewTo)Dn&&Ai(ie.doc,ae)<pe.viewTo&&ol(ie);else if(he<=pe.viewFrom)Dn&&Bi(ie.doc,he+de)>pe.viewFrom?ol(ie):(pe.viewFrom+=de,pe.viewTo+=de);else if(ae<=pe.viewFrom&&he>=pe.viewTo)ol(ie);else if(ae<=pe.viewFrom){var Ne=je(ie,he,he+de,1);Ne?(pe.view=pe.view.slice(Ne.index),pe.viewFrom=Ne.lineN,pe.viewTo+=de):ol(ie)}else if(he>=pe.viewTo){var Ze=je(ie,ae,ae,-1);Ze?(pe.view=pe.view.slice(0,Ze.index),pe.viewTo=Ze.lineN):ol(ie)}else{var lt=je(ie,ae,ae,-1),ot=je(ie,he,he+de,1);lt&&ot?(pe.view=pe.view.slice(0,lt.index).concat(Ao(ie,lt.lineN,ot.lineN)).concat(pe.view.slice(ot.index)),pe.viewTo+=de):ol(ie)}var Dt=pe.externalMeasured;Dt&&(he<Dt.lineN?Dt.lineN+=de:ae<Dt.lineN+Dt.size&&(pe.externalMeasured=null))}function va(ie,ae,he){ie.curOp.viewChanged=!0;var de=ie.display,pe=ie.display.externalMeasured;if(pe&&ae>=pe.lineN&&ae<pe.lineN+pe.size&&(de.externalMeasured=null),!(ae<de.viewFrom||ae>=de.viewTo)){var Ne=de.view[Il(ie,ae)];if(Ne.node!=null){var Ze=Ne.changes||(Ne.changes=[]);Lt(Ze,he)==-1&&Ze.push(he)}}}function ol(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function je(ie,ae,he,de){var pe=Il(ie,ae),Ne,Ze=ie.display.view;if(!Dn||he==ie.doc.first+ie.doc.size)return{index:pe,lineN:he};for(var lt=ie.display.viewFrom,ot=0;ot<pe;ot++)lt+=Ze[ot].size;if(lt!=ae){if(de>0){if(pe==Ze.length-1)return null;Ne=lt+Ze[pe].size-ae,pe++}else Ne=lt-ae;ae+=Ne,he+=Ne}for(;Ai(ie.doc,he)!=he;){if(pe==(de<0?0:Ze.length-1))return null;he+=de*Ze[pe-(de<0?1:0)].size,pe+=de}return{index:pe,lineN:he}}function nt(ie,ae,he){var de=ie.display,pe=de.view;pe.length==0||ae>=de.viewTo||he<=de.viewFrom?(de.view=Ao(ie,ae,he),de.viewFrom=ae):(de.viewFrom>ae?de.view=Ao(ie,ae,de.viewFrom).concat(de.view):de.viewFrom<ae&&(de.view=de.view.slice(Il(ie,ae))),de.viewFrom=ae,de.viewTo<he?de.view=de.view.concat(Ao(ie,de.viewTo,he)):de.viewTo>he&&(de.view=de.view.slice(0,Il(ie,he)))),de.viewTo=he}function ut(ie){for(var ae=ie.display.view,he=0,de=0;de<ae.length;de++){var pe=ae[de];!pe.hidden&&(!pe.node||pe.changes)&&++he}return he}function $t(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function un(ie,ae){ae===void 0&&(ae=!0);for(var he=ie.doc,de={},pe=de.cursors=document.createDocumentFragment(),Ne=de.selection=document.createDocumentFragment(),Ze=0;Ze<he.sel.ranges.length;Ze++)if(!(!ae&&Ze==he.sel.primIndex)){var lt=he.sel.ranges[Ze];if(!(lt.from().line>=ie.display.viewTo||lt.to().line<ie.display.viewFrom)){var ot=lt.empty();(ot||ie.options.showCursorWhenSelecting)&&In(ie,lt.head,pe),ot||ui(ie,lt,Ne)}}return de}function In(ie,ae,he){var de=Fa(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),pe=he.appendChild(Ye("div","\xA0","CodeMirror-cursor"));if(pe.style.left=de.left+"px",pe.style.top=de.top+"px",pe.style.height=Math.max(0,de.bottom-de.top)*ie.options.cursorHeight+"px",de.other){var Ne=he.appendChild(Ye("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ne.style.display="",Ne.style.left=de.other.left+"px",Ne.style.top=de.other.top+"px",Ne.style.height=(de.other.bottom-de.other.top)*.85+"px"}}function Wn(ie,ae){return ie.top-ae.top||ie.left-ae.left}function ui(ie,ae,he){var de=ie.display,pe=ie.doc,Ne=document.createDocumentFragment(),Ze=yl(ie.display),lt=Ze.left,ot=Math.max(de.sizerWidth,Sl(ie)-de.sizer.offsetLeft)-Ze.right,Dt=pe.direction=="ltr";function kn(fo,jo,da,uo){jo<0&&(jo=0),jo=Math.round(jo),uo=Math.round(uo),Ne.appendChild(Ye("div",null,"CodeMirror-selected","position: absolute; left: "+fo+`px;
top: `+jo+"px; width: "+(da==null?ot-fo:da)+`px;
height: `+(uo-jo)+"px"))}function Gt(fo,jo,da){var uo=_t(pe,fo),Ma=uo.text.length,$s,Ul;function fl(Zl,cc){return Bs(ie,Zt(fo,Zl),"div",uo,cc)}function qu(Zl,cc,xu){var Kl=Lu(ie,uo,null,Zl),cs=cc=="ltr"==(xu=="after")?"left":"right",Pl=xu=="after"?Kl.begin:Kl.end-(/\s/.test(uo.text.charAt(Kl.end-1))?2:1);return fl(Pl,cs)[cs]}var Tu=En(uo,pe.direction);return Ct(Tu,jo||0,da==null?Ma:da,function(Zl,cc,xu,Kl){var cs=xu=="ltr",Pl=fl(Zl,cs?"left":"right"),nu=fl(cc-1,cs?"right":"left"),wu=jo==null&&Zl==0,id=da==null&&cc==Ma,gl=Kl==0,Wc=!Tu||Kl==Tu.length-1;if(nu.top-Pl.top<=3){var Fl=(Dt?wu:id)&&gl,$f=(Dt?id:wu)&&Wc,Mc=Fl?lt:(cs?Pl:nu).left,dc=$f?ot:(cs?nu:Pl).right;kn(Mc,Pl.top,dc-Mc,Pl.bottom)}else{var ec,js,iu,Ld;cs?(ec=Dt&&wu&&gl?lt:Pl.left,js=Dt?ot:qu(Zl,xu,"before"),iu=Dt?lt:qu(cc,xu,"after"),Ld=Dt&&id&&Wc?ot:nu.right):(ec=Dt?qu(Zl,xu,"before"):lt,js=!Dt&&wu&&gl?ot:Pl.right,iu=!Dt&&id&&Wc?lt:nu.left,Ld=Dt?qu(cc,xu,"after"):ot),kn(ec,Pl.top,js-ec,Pl.bottom),Pl.bottom<nu.top&&kn(lt,Pl.bottom,null,nu.top),kn(iu,nu.top,Ld-iu,nu.bottom)}(!$s||Wn(Pl,$s)<0)&&($s=Pl),Wn(nu,$s)<0&&($s=nu),(!Ul||Wn(Pl,Ul)<0)&&(Ul=Pl),Wn(nu,Ul)<0&&(Ul=nu)}),{start:$s,end:Ul}}var li=ae.from(),ii=ae.to();if(li.line==ii.line)Gt(li.line,li.ch,ii.ch);else{var er=_t(pe,li.line),or=_t(pe,ii.line),Ar=Kn(er)==Kn(or),_r=Gt(li.line,li.ch,Ar?er.text.length+1:null).end,Eo=Gt(ii.line,Ar?0:null,ii.ch).start;Ar&&(_r.top<Eo.top-2?(kn(_r.right,_r.top,null,_r.bottom),kn(lt,Eo.top,Eo.left,Eo.bottom)):kn(_r.right,_r.top,Eo.left-_r.right,_r.bottom)),_r.bottom<Eo.top&&kn(lt,_r.bottom,null,Eo.top)}he.appendChild(Ne)}function fi(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var he=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||_i(ie),ae.cursorDiv.style.visibility=(he=!he)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function Ni(ie){ie.state.focused||(ie.display.input.focus(),Fi(ie))}function ar(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,_i(ie))},100)}function Fi(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(wn(ie,"focus",ie,ae),ie.state.focused=!0,Wt(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),De&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),fi(ie))}function _i(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(wn(ie,"blur",ie,ae),ie.state.focused=!1,Ie(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function bi(ie){for(var ae=ie.display,he=ae.lineDiv.offsetTop,de=0;de<ae.view.length;de++){var pe=ae.view[de],Ne=ie.options.lineWrapping,Ze=void 0,lt=0;if(!pe.hidden){if($e&&qe<8){var ot=pe.node.offsetTop+pe.node.offsetHeight;Ze=ot-he,he=ot}else{var Dt=pe.node.getBoundingClientRect();Ze=Dt.bottom-Dt.top,!Ne&&pe.text.firstChild&&(lt=pe.text.firstChild.getBoundingClientRect().right-Dt.left-1)}var kn=pe.line.height-Ze;if((kn>.005||kn<-.005)&&(Hn(pe.line,Ze),xr(pe.line),pe.rest))for(var Gt=0;Gt<pe.rest.length;Gt++)xr(pe.rest[Gt]);if(lt>ie.display.sizerWidth){var li=Math.ceil(lt/jl(ie.display));li>ie.display.maxLineLength&&(ie.display.maxLineLength=li,ie.display.maxLine=pe.line,ie.display.maxLineChanged=!0)}}}}function xr(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var he=ie.widgets[ae],de=he.node.parentNode;de&&(he.height=de.offsetHeight)}}function ai(ie,ae,he){var de=he&&he.top!=null?Math.max(0,he.top):ie.scroller.scrollTop;de=Math.floor(de-vl(ie));var pe=he&&he.bottom!=null?he.bottom:de+ie.wrapper.clientHeight,Ne=sn(ae,de),Ze=sn(ae,pe);if(he&&he.ensure){var lt=he.ensure.from.line,ot=he.ensure.to.line;lt<Ne?(Ne=lt,Ze=sn(ae,kr(_t(ae,lt))+ie.wrapper.clientHeight)):Math.min(ot,ae.lastLine())>=Ze&&(Ne=sn(ae,kr(_t(ae,ot))-ie.wrapper.clientHeight),Ze=ot)}return{from:Ne,to:Math.max(Ze,Ne+1)}}function $i(ie,ae){if(!vi(ie,"scrollCursorIntoView")){var he=ie.display,de=he.sizer.getBoundingClientRect(),pe=null;if(ae.top+de.top<0?pe=!0:ae.bottom+de.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!Pt){var Ne=Ye("div","\u200B",null,`position: absolute;
top: `+(ae.top-he.viewOffset-vl(ie.display))+`px;
height: `+(ae.bottom-ae.top+rl(ie)+he.barHeight)+`px;
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Ne),Ne.scrollIntoView(pe),ie.display.lineSpace.removeChild(Ne)}}}function wr(ie,ae,he,de){de==null&&(de=0);var pe;!ie.options.lineWrapping&&ae==he&&(ae=ae.ch?Zt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,he=ae.sticky=="before"?Zt(ae.line,ae.ch+1,"before"):ae);for(var Ne=0;Ne<5;Ne++){var Ze=!1,lt=Fa(ie,ae),ot=!he||he==ae?lt:Fa(ie,he);pe={left:Math.min(lt.left,ot.left),top:Math.min(lt.top,ot.top)-de,right:Math.max(lt.left,ot.left),bottom:Math.max(lt.bottom,ot.bottom)+de};var Dt=no(ie,pe),kn=ie.doc.scrollTop,Gt=ie.doc.scrollLeft;if(Dt.scrollTop!=null&&(ya(ie,Dt.scrollTop),Math.abs(ie.doc.scrollTop-kn)>1&&(Ze=!0)),Dt.scrollLeft!=null&&(Ha(ie,Dt.scrollLeft),Math.abs(ie.doc.scrollLeft-Gt)>1&&(Ze=!0)),!Ze)break}return pe}function co(ie,ae){var he=no(ie,ae);he.scrollTop!=null&&ya(ie,he.scrollTop),he.scrollLeft!=null&&Ha(ie,he.scrollLeft)}function no(ie,ae){var he=ie.display,de=$l(ie.display);ae.top<0&&(ae.top=0);var pe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:he.scroller.scrollTop,Ne=oc(ie),Ze={};ae.bottom-ae.top>Ne&&(ae.bottom=ae.top+Ne);var lt=ie.doc.height+fu(he),ot=ae.top<de,Dt=ae.bottom>lt-de;if(ae.top<pe)Ze.scrollTop=ot?0:ae.top;else if(ae.bottom>pe+Ne){var kn=Math.min(ae.top,(Dt?lt:ae.bottom)-Ne);kn!=pe&&(Ze.scrollTop=kn)}var Gt=ie.options.fixedGutter?0:he.gutters.offsetWidth,li=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:he.scroller.scrollLeft-Gt,ii=Sl(ie)-he.gutters.offsetWidth,er=ae.right-ae.left>ii;return er&&(ae.right=ae.left+ii),ae.left<10?Ze.scrollLeft=0:ae.left<li?Ze.scrollLeft=Math.max(0,ae.left+Gt-(er?0:10)):ae.right>ii+li-3&&(Ze.scrollLeft=ae.right+(er?0:10)-ii),Ze}function mo(ie,ae){ae!=null&&(la(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function vo(ie){la(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function ho(ie,ae,he){(ae!=null||he!=null)&&la(ie),ae!=null&&(ie.curOp.scrollLeft=ae),he!=null&&(ie.curOp.scrollTop=he)}function ur(ie,ae){la(ie),ie.curOp.scrollToPos=ae}function la(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var he=Hu(ie,ae.from),de=Hu(ie,ae.to);ea(ie,he,de,ae.margin)}}function ea(ie,ae,he,de){var pe=no(ie,{left:Math.min(ae.left,he.left),top:Math.min(ae.top,he.top)-de,right:Math.max(ae.right,he.right),bottom:Math.max(ae.bottom,he.bottom)+de});ho(ie,pe.scrollLeft,pe.scrollTop)}function ya(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ye||Lr(ie,{top:ae}),Va(ie,ae,!0),ye&&Lr(ie),xi(ie,100))}function Va(ie,ae,he){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!he)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function Ha(ie,ae,he,de){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((he?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!de)&&(ie.doc.scrollLeft=ae,Lo(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function Ba(ie){var ae=ie.display,he=ae.gutters.offsetWidth,de=Math.round(ie.doc.height+fu(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?he:0,docHeight:de,scrollHeight:de+rl(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:he}}var hs=function(ie,ae,he){this.cm=he;var de=this.vert=Ye("div",[Ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=Ye("div",[Ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=pe.tabIndex=-1,ie(de),ie(pe),qt(de,"scroll",function(){de.clientHeight&&ae(de.scrollTop,"vertical")}),qt(pe,"scroll",function(){pe.clientWidth&&ae(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,$e&&qe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};hs.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,he=ie.scrollHeight>ie.clientHeight+1,de=ie.nativeBarWidth;if(he){this.vert.style.display="block",this.vert.style.bottom=ae?de+"px":"0";var pe=ie.viewHeight-(ae?de:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=he?de+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Ne=ie.viewWidth-ie.barLeft-(he?de:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(de==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:he?de:0,bottom:ae?de:0}},hs.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},hs.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},hs.prototype.zeroWidthHack=function(){var ie=ce&&!it?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Re,this.disableVert=new Re},hs.prototype.enableZeroWidthBar=function(ie,ae,he){ie.style.pointerEvents="auto";function de(){var pe=ie.getBoundingClientRect(),Ne=he=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Ne!=ie?ie.style.pointerEvents="none":ae.set(1e3,de)}ae.set(1e3,de)},hs.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var La=function(){};La.prototype.update=function(){return{bottom:0,right:0}},La.prototype.setScrollLeft=function(){},La.prototype.setScrollTop=function(){},La.prototype.clear=function(){};function Ca(ie,ae){ae||(ae=Ba(ie));var he=ie.display.barWidth,de=ie.display.barHeight;Ta(ie,ae);for(var pe=0;pe<4&&he!=ie.display.barWidth||de!=ie.display.barHeight;pe++)he!=ie.display.barWidth&&ie.options.lineWrapping&&bi(ie),Ta(ie,Ba(ie)),he=ie.display.barWidth,de=ie.display.barHeight}function Ta(ie,ae){var he=ie.display,de=he.scrollbars.update(ae);he.sizer.style.paddingRight=(he.barWidth=de.right)+"px",he.sizer.style.paddingBottom=(he.barHeight=de.bottom)+"px",he.heightForcer.style.borderBottom=de.bottom+"px solid transparent",de.right&&de.bottom?(he.scrollbarFiller.style.display="block",he.scrollbarFiller.style.height=de.bottom+"px",he.scrollbarFiller.style.width=de.right+"px"):he.scrollbarFiller.style.display="",de.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(he.gutterFiller.style.display="block",he.gutterFiller.style.height=de.bottom+"px",he.gutterFiller.style.width=ae.gutterWidth+"px"):he.gutterFiller.style.display=""}var os={native:hs,null:La};function fs(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ie(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new os[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),qt(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,he){he=="horizontal"?Ha(ie,ae):ya(ie,ae)},ie),ie.display.scrollbars.addClass&&Wt(ie.display.wrapper,ie.display.scrollbars.addClass)}var Qa=0;function Oa(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.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:++Qa},Ka(ie.curOp)}function Is(ie){var ae=ie.curOp;ae&&No(ae,function(he){for(var de=0;de<he.ops.length;de++)he.ops[de].cm.curOp=null;hl(he)})}function hl(ie){for(var ae=ie.ops,he=0;he<ae.length;he++)rt(ae[he]);for(var de=0;de<ae.length;de++)gt(ae[de]);for(var pe=0;pe<ae.length;pe++)Xt(ae[pe]);for(var Ne=0;Ne<ae.length;Ne++)Qt(ae[Ne]);for(var Ze=0;Ze<ae.length;Ze++)Pn(ae[Ze])}function rt(ie){var ae=ie.cm,he=ae.display;Qi(ae),ie.updateMaxLine&&to(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<he.viewFrom||ie.scrollToPos.to.line>=he.viewTo)||he.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Si(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function gt(ie){ie.updatedDisplay=ie.mustUpdate&&Sr(ie.cm,ie.update)}function Xt(ie){var ae=ie.cm,he=ae.display;ie.updatedDisplay&&bi(ae),ie.barMeasure=Ba(ae),he.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=gu(ae,he.maxLine,he.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(he.scroller.clientWidth,he.sizer.offsetLeft+ie.adjustWidthTo+rl(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,he.sizer.offsetLeft+ie.adjustWidthTo-Sl(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=he.input.prepareSelection())}function Qt(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&Ha(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var he=ie.focus&&ie.focus==Xe();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,he),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&Ca(ae,ie.barMeasure),ie.updatedDisplay&&yo(ae,ie.barMeasure),ie.selectionChanged&&fi(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),he&&Ni(ie.cm)}function Pn(ie){var ae=ie.cm,he=ae.display,de=ae.doc;if(ie.updatedDisplay&&Zi(ae,ie.update),he.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(he.wheelStartX=he.wheelStartY=null),ie.scrollTop!=null&&Va(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Ha(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var pe=wr(ae,Mi(de,ie.scrollToPos.from),Mi(de,ie.scrollToPos.to),ie.scrollToPos.margin);$i(ae,pe)}var Ne=ie.maybeHiddenMarkers,Ze=ie.maybeUnhiddenMarkers;if(Ne)for(var lt=0;lt<Ne.length;++lt)Ne[lt].lines.length||wn(Ne[lt],"hide");if(Ze)for(var ot=0;ot<Ze.length;++ot)Ze[ot].lines.length&&wn(Ze[ot],"unhide");he.wrapper.offsetHeight&&(de.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&wn(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function hn(ie,ae){if(ie.curOp)return ae();Oa(ie);try{return ae()}finally{Is(ie)}}function Jn(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);Oa(ie);try{return ae.apply(ie,arguments)}finally{Is(ie)}}}function Yn(ie){return function(){if(this.curOp)return ie.apply(this,arguments);Oa(this);try{return ie.apply(this,arguments)}finally{Is(this)}}}function Vn(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);Oa(ae);try{return ie.apply(this,arguments)}finally{Is(ae)}}}function xi(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Mt(si,ie))}function si(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var he=+new Date+ie.options.workTime,de=br(ie,ae.highlightFrontier),pe=[];ae.iter(de.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Ne){if(de.line>=ie.display.viewFrom){var Ze=Ne.styles,lt=Ne.text.length>ie.options.maxHighlightLength?Yt(ae.mode,de.state):null,ot=Pr(ie,Ne,de,!0);lt&&(de.state=lt),Ne.styles=ot.styles;var Dt=Ne.styleClasses,kn=ot.classes;kn?Ne.styleClasses=kn:Dt&&(Ne.styleClasses=null);for(var Gt=!Ze||Ze.length!=Ne.styles.length||Dt!=kn&&(!Dt||!kn||Dt.bgClass!=kn.bgClass||Dt.textClass!=kn.textClass),li=0;!Gt&&li<Ze.length;++li)Gt=Ze[li]!=Ne.styles[li];Gt&&pe.push(de.line),Ne.stateAfter=de.save(),de.nextLine()}else Ne.text.length<=ie.options.maxHighlightLength&&Cn(ie,Ne.text,de),Ne.stateAfter=de.line%5==0?de.save():null,de.nextLine();if(+new Date>he)return xi(ie,ie.options.workDelay),!0}),ae.highlightFrontier=de.line,ae.modeFrontier=Math.max(ae.modeFrontier,de.line),pe.length&&hn(ie,function(){for(var Ne=0;Ne<pe.length;Ne++)va(ie,pe[Ne],"text")})}}var Si=function(ie,ae,he){var de=ie.display;this.viewport=ae,this.visible=ai(de,ie.doc,ae),this.editorIsHidden=!de.wrapper.offsetWidth,this.wrapperHeight=de.wrapper.clientHeight,this.wrapperWidth=de.wrapper.clientWidth,this.oldDisplayWidth=Sl(ie),this.force=he,this.dims=Pc(ie),this.events=[]};Si.prototype.signal=function(ie,ae){Li(ie,ae)&&this.events.push(arguments)},Si.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)wn.apply(null,this.events[ie])};function Qi(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=rl(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=rl(ie)+"px",ae.scrollbarsClipped=!0)}function Xi(ie){if(ie.hasFocus())return null;var ae=Xe();if(!ae||!kt(ie.display.lineDiv,ae))return null;var he={activeElt:ae};if(window.getSelection){var de=window.getSelection();de.anchorNode&&de.extend&&kt(ie.display.lineDiv,de.anchorNode)&&(he.anchorNode=de.anchorNode,he.anchorOffset=de.anchorOffset,he.focusNode=de.focusNode,he.focusOffset=de.focusOffset)}return he}function Ii(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Xe())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&kt(document.body,ie.anchorNode)&&kt(document.body,ie.focusNode))){var ae=window.getSelection(),he=document.createRange();he.setEnd(ie.anchorNode,ie.anchorOffset),he.collapse(!1),ae.removeAllRanges(),ae.addRange(he),ae.extend(ie.focusNode,ie.focusOffset)}}function Sr(ie,ae){var he=ie.display,de=ie.doc;if(ae.editorIsHidden)return ol(ie),!1;if(!ae.force&&ae.visible.from>=he.viewFrom&&ae.visible.to<=he.viewTo&&(he.updateLineNumbers==null||he.updateLineNumbers>=he.viewTo)&&he.renderedView==he.view&&ut(ie)==0)return!1;Hr(ie)&&(ol(ie),ae.dims=Pc(ie));var pe=de.first+de.size,Ne=Math.max(ae.visible.from-ie.options.viewportMargin,de.first),Ze=Math.min(pe,ae.visible.to+ie.options.viewportMargin);he.viewFrom<Ne&&Ne-he.viewFrom<20&&(Ne=Math.max(de.first,he.viewFrom)),he.viewTo>Ze&&he.viewTo-Ze<20&&(Ze=Math.min(pe,he.viewTo)),Dn&&(Ne=Ai(ie.doc,Ne),Ze=Bi(ie.doc,Ze));var lt=Ne!=he.viewFrom||Ze!=he.viewTo||he.lastWrapHeight!=ae.wrapperHeight||he.lastWrapWidth!=ae.wrapperWidth;nt(ie,Ne,Ze),he.viewOffset=kr(_t(ie.doc,he.viewFrom)),ie.display.mover.style.top=he.viewOffset+"px";var ot=ut(ie);if(!lt&&ot==0&&!ae.force&&he.renderedView==he.view&&(he.updateLineNumbers==null||he.updateLineNumbers>=he.viewTo))return!1;var Dt=Xi(ie);return ot>4&&(he.lineDiv.style.display="none"),Er(ie,he.updateLineNumbers,ae.dims),ot>4&&(he.lineDiv.style.display=""),he.renderedView=he.view,Ii(Dt),Ge(he.cursorDiv),Ge(he.selectionDiv),he.gutters.style.height=he.sizer.style.minHeight=0,lt&&(he.lastWrapHeight=ae.wrapperHeight,he.lastWrapWidth=ae.wrapperWidth,xi(ie,400)),he.updateLineNumbers=null,!0}function Zi(ie,ae){for(var he=ae.viewport,de=!0;;de=!1){if(!de||!ie.options.lineWrapping||ae.oldDisplayWidth==Sl(ie)){if(he&&he.top!=null&&(he={top:Math.min(ie.doc.height+fu(ie.display)-oc(ie),he.top)}),ae.visible=ai(ie.display,ie.doc,he),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else de&&(ae.visible=ai(ie.display,ie.doc,he));if(!Sr(ie,ae))break;bi(ie);var pe=Ba(ie);$t(ie),Ca(ie,pe),yo(ie,pe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Lr(ie,ae){var he=new Si(ie,ae);if(Sr(ie,he)){bi(ie),Zi(ie,he);var de=Ba(ie);$t(ie),Ca(ie,de),yo(ie,de),he.finish()}}function Er(ie,ae,he){var de=ie.display,pe=ie.options.lineNumbers,Ne=de.lineDiv,Ze=Ne.firstChild;function lt(er){var or=er.nextSibling;return De&&ce&&ie.display.currentWheelTarget==er?er.style.display="none":er.parentNode.removeChild(er),or}for(var ot=de.view,Dt=de.viewFrom,kn=0;kn<ot.length;kn++){var Gt=ot[kn];if(!Gt.hidden)if(!Gt.node||Gt.node.parentNode!=Ne){var li=ml(ie,Gt,Dt,he);Ne.insertBefore(li,Ze)}else{for(;Ze!=Gt.node;)Ze=lt(Ze);var ii=pe&&ae!=null&&ae<=Dt&&Gt.lineNumber;Gt.changes&&(Lt(Gt.changes,"gutter")>-1&&(ii=!1),ka(ie,Gt,Dt,he)),ii&&(Ge(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(_n(ie.options,Dt)))),Ze=Gt.node.nextSibling}Dt+=Gt.size}for(;Ze;)Ze=lt(Ze)}function Or(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function yo(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+rl(ie)+"px"}function Lo(ie){var ae=ie.display,he=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var de=Ic(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,pe=ae.gutters.offsetWidth,Ne=de+"px",Ze=0;Ze<he.length;Ze++)if(!he[Ze].hidden){ie.options.fixedGutter&&(he[Ze].gutter&&(he[Ze].gutter.style.left=Ne),he[Ze].gutterBackground&&(he[Ze].gutterBackground.style.left=Ne));var lt=he[Ze].alignable;if(lt)for(var ot=0;ot<lt.length;ot++)lt[ot].style.left=Ne}ie.options.fixedGutter&&(ae.gutters.style.left=de+pe+"px")}}function Hr(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,he=_n(ie.options,ae.first+ae.size-1),de=ie.display;if(he.length!=de.lineNumChars){var pe=de.measure.appendChild(Ye("div",[Ye("div",he)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ne=pe.firstChild.offsetWidth,Ze=pe.offsetWidth-Ne;return de.lineGutter.style.width="",de.lineNumInnerWidth=Math.max(Ne,de.lineGutter.offsetWidth-Ze)+1,de.lineNumWidth=de.lineNumInnerWidth+Ze,de.lineNumChars=de.lineNumInnerWidth?he.length:-1,de.lineGutter.style.width=de.lineNumWidth+"px",Or(ie.display),!0}return!1}function qr(ie,ae){for(var he=[],de=!1,pe=0;pe<ie.length;pe++){var Ne=ie[pe],Ze=null;if(typeof Ne!="string"&&(Ze=Ne.style,Ne=Ne.className),Ne=="CodeMirror-linenumbers")if(ae)de=!0;else continue;he.push({className:Ne,style:Ze})}return ae&&!de&&he.push({className:"CodeMirror-linenumbers",style:null}),he}function Vo(ie){var ae=ie.gutters,he=ie.gutterSpecs;Ge(ae),ie.lineGutter=null;for(var de=0;de<he.length;++de){var pe=he[de],Ne=pe.className,Ze=pe.style,lt=ae.appendChild(Ye("div",null,"CodeMirror-gutter "+Ne));Ze&&(lt.style.cssText=Ze),Ne=="CodeMirror-linenumbers"&&(ie.lineGutter=lt,lt.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=he.length?"":"none",Or(ie)}function Ir(ie){Vo(ie.display),ws(ie),Lo(ie)}function ao(ie,ae,he,de){var pe=this;this.input=he,pe.scrollbarFiller=Ye("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=Ye("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=pt("div",null,"CodeMirror-code"),pe.selectionDiv=Ye("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=Ye("div",null,"CodeMirror-cursors"),pe.measure=Ye("div",null,"CodeMirror-measure"),pe.lineMeasure=Ye("div",null,"CodeMirror-measure"),pe.lineSpace=pt("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Ne=pt("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=Ye("div",[Ne],null,"position: relative"),pe.sizer=Ye("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=Ye("div",null,null,"position: absolute; height: "+yn+"px; width: 1px;"),pe.gutters=Ye("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=Ye("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=Ye("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),$e&&qe<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!De&&!(ye&&ne)&&(pe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(pe.wrapper):ie(pe.wrapper)),pe.viewFrom=pe.viewTo=ae.first,pe.reportedViewFrom=pe.reportedViewTo=ae.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=qr(de.gutters,de.lineNumbers),Vo(pe),he.init(pe)}var Wr=0,mr=null;$e?mr=-.53:ye?mr=15:Et?mr=-.7:Ot&&(mr=-1/3);function Dr(ie){var ae=ie.wheelDeltaX,he=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),he==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?he=ie.detail:he==null&&(he=ie.wheelDelta),{x:ae,y:he}}function lo(ie){var ae=Dr(ie);return ae.x*=mr,ae.y*=mr,ae}function Mo(ie,ae){var he=Dr(ae),de=he.x,pe=he.y,Ne=ie.display,Ze=Ne.scroller,lt=Ze.scrollWidth>Ze.clientWidth,ot=Ze.scrollHeight>Ze.clientHeight;if(de&&lt||pe&&ot){if(pe&&ce&&De){e:for(var Dt=ae.target,kn=Ne.view;Dt!=Ze;Dt=Dt.parentNode)for(var Gt=0;Gt<kn.length;Gt++)if(kn[Gt].node==Dt){ie.display.currentWheelTarget=Dt;break e}}if(de&&!ye&&!et&&mr!=null){pe&&ot&&ya(ie,Math.max(0,Ze.scrollTop+pe*mr)),Ha(ie,Math.max(0,Ze.scrollLeft+de*mr)),(!pe||pe&&ot)&&zi(ae),Ne.wheelStartX=null;return}if(pe&&mr!=null){var li=pe*mr,ii=ie.doc.scrollTop,er=ii+Ne.wrapper.clientHeight;li<0?ii=Math.max(0,ii+li-50):er=Math.min(ie.doc.height,er+li+50),Lr(ie,{top:ii,bottom:er})}Wr<20&&(Ne.wheelStartX==null?(Ne.wheelStartX=Ze.scrollLeft,Ne.wheelStartY=Ze.scrollTop,Ne.wheelDX=de,Ne.wheelDY=pe,setTimeout(function(){if(Ne.wheelStartX!=null){var or=Ze.scrollLeft-Ne.wheelStartX,Ar=Ze.scrollTop-Ne.wheelStartY,_r=Ar&&Ne.wheelDY&&Ar/Ne.wheelDY||or&&Ne.wheelDX&&or/Ne.wheelDX;Ne.wheelStartX=Ne.wheelStartY=null,_r&&(mr=(mr*Wr+_r)/(Wr+1),++Wr)}},200)):(Ne.wheelDX+=de,Ne.wheelDY+=pe))}}var ko=function(ie,ae){this.ranges=ie,this.primIndex=ae};ko.prototype.primary=function(){return this.ranges[this.primIndex]},ko.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var he=this.ranges[ae],de=ie.ranges[ae];if(!wi(he.anchor,de.anchor)||!wi(he.head,de.head))return!1}return!0},ko.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new Br(Ci(this.ranges[ae].anchor),Ci(this.ranges[ae].head));return new ko(ie,this.primIndex)},ko.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},ko.prototype.contains=function(ie,ae){ae||(ae=ie);for(var he=0;he<this.ranges.length;he++){var de=this.ranges[he];if(rn(ae,de.from())>=0&&rn(ie,de.to())<=0)return he}return-1};var Br=function(ie,ae){this.anchor=ie,this.head=ae};Br.prototype.from=function(){return ci(this.anchor,this.head)},Br.prototype.to=function(){return yi(this.anchor,this.head)},Br.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Go(ie,ae,he){var de=ie&&ie.options.selectionsMayTouch,pe=ae[he];ae.sort(function(li,ii){return rn(li.from(),ii.from())}),he=Lt(ae,pe);for(var Ne=1;Ne<ae.length;Ne++){var Ze=ae[Ne],lt=ae[Ne-1],ot=rn(lt.to(),Ze.from());if(de&&!Ze.empty()?ot>0:ot>=0){var Dt=ci(lt.from(),Ze.from()),kn=yi(lt.to(),Ze.to()),Gt=lt.empty()?Ze.from()==Ze.head:lt.from()==lt.head;Ne<=he&&--he,ae.splice(--Ne,2,new Br(Gt?kn:Dt,Gt?Dt:kn))}}return new ko(ae,he)}function _o(ie,ae){return new ko([new Br(ie,ae||ie)],0)}function na(ie){return ie.text?Zt(ie.from.line+ie.text.length-1,mt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function ta(ie,ae){if(rn(ie,ae.from)<0)return ie;if(rn(ie,ae.to)<=0)return na(ae);var he=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,de=ie.ch;return ie.line==ae.to.line&&(de+=na(ae).ch-ae.to.ch),Zt(he,de)}function _a(ie,ae){for(var he=[],de=0;de<ie.sel.ranges.length;de++){var pe=ie.sel.ranges[de];he.push(new Br(ta(pe.anchor,ae),ta(pe.head,ae)))}return Go(ie.cm,he,ie.sel.primIndex)}function ga(ie,ae,he){return ie.line==ae.line?Zt(he.line,ie.ch-ae.ch+he.ch):Zt(he.line+(ie.line-ae.line),ie.ch)}function Ho(ie,ae,he){for(var de=[],pe=Zt(ie.first,0),Ne=pe,Ze=0;Ze<ae.length;Ze++){var lt=ae[Ze],ot=ga(lt.from,pe,Ne),Dt=ga(na(lt),pe,Ne);if(pe=lt.to,Ne=Dt,he=="around"){var kn=ie.sel.ranges[Ze],Gt=rn(kn.head,kn.anchor)<0;de[Ze]=new Br(Gt?Dt:ot,Gt?ot:Dt)}else de[Ze]=new Br(ot,ot)}return new ko(de,ie.sel.primIndex)}function wo(ie){ie.doc.mode=xt(ie.options,ie.doc.modeOption),Oo(ie)}function Oo(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,xi(ie,100),ie.state.modeGen++,ie.curOp&&ws(ie)}function Ua(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&mt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ia(ie,ae,he,de){function pe(Eo){return he?he[Eo]:null}function Ne(Eo,fo,jo){eo(Eo,fo,jo,de),Hi(Eo,"change",Eo,ae)}function Ze(Eo,fo){for(var jo=[],da=Eo;da<fo;++da)jo.push(new Jr(Dt[da],pe(da),de));return jo}var lt=ae.from,ot=ae.to,Dt=ae.text,kn=_t(ie,lt.line),Gt=_t(ie,ot.line),li=mt(Dt),ii=pe(Dt.length-1),er=ot.line-lt.line;if(ae.full)ie.insert(0,Ze(0,Dt.length)),ie.remove(Dt.length,ie.size-Dt.length);else if(Ua(ie,ae)){var or=Ze(0,Dt.length-1);Ne(Gt,Gt.text,ii),er&&ie.remove(lt.line,er),or.length&&ie.insert(lt.line,or)}else if(kn==Gt)if(Dt.length==1)Ne(kn,kn.text.slice(0,lt.ch)+li+kn.text.slice(ot.ch),ii);else{var Ar=Ze(1,Dt.length-1);Ar.push(new Jr(li+kn.text.slice(ot.ch),ii,de)),Ne(kn,kn.text.slice(0,lt.ch)+Dt[0],pe(0)),ie.insert(lt.line+1,Ar)}else if(Dt.length==1)Ne(kn,kn.text.slice(0,lt.ch)+Dt[0]+Gt.text.slice(ot.ch),pe(0)),ie.remove(lt.line+1,er);else{Ne(kn,kn.text.slice(0,lt.ch)+Dt[0],pe(0)),Ne(Gt,li+Gt.text.slice(ot.ch),ii);var _r=Ze(1,Dt.length-1);er>1&&ie.remove(lt.line+1,er-1),ie.insert(lt.line+1,_r)}Hi(ie,"change",ie,ae)}function ts(ie,ae,he){function de(pe,Ne,Ze){if(pe.linked)for(var lt=0;lt<pe.linked.length;++lt){var ot=pe.linked[lt];if(ot.doc!=Ne){var Dt=Ze&&ot.sharedHist;he&&!Dt||(ae(ot.doc,Dt),de(ot.doc,pe,Dt))}}}de(ie,null,!0)}function Ro(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,Io(ie),wo(ie),bo(ie),ie.options.lineWrapping||to(ie),ie.options.mode=ae.modeOption,ws(ie)}function bo(ie){(ie.doc.direction=="rtl"?Wt:Ie)(ie.display.lineDiv,"CodeMirror-rtl")}function Wo(ie){hn(ie,function(){bo(ie),ws(ie)})}function xo(ie){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=ie||1}function oo(ie,ae){var he={from:Ci(ae.from),to:na(ae),text:It(ie,ae.from,ae.to)};return Al(ie,he,ae.from.line,ae.to.line+1),ts(ie,function(de){return Al(de,he,ae.from.line,ae.to.line+1)},!0),he}function qi(ie){for(;ie.length;){var ae=mt(ie);if(ae.ranges)ie.pop();else break}}function Vr(ie,ae){if(ae)return qi(ie.done),mt(ie.done);if(ie.done.length&&!mt(ie.done).ranges)return mt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),mt(ie.done)}function Xo(ie,ae,he,de){var pe=ie.history;pe.undone.length=0;var Ne=+new Date,Ze,lt;if((pe.lastOp==de||pe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&pe.lastModTime>Ne-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Ze=Vr(pe,pe.lastOp==de)))lt=mt(Ze.changes),rn(ae.from,ae.to)==0&&rn(ae.from,lt.to)==0?lt.to=na(ae):Ze.changes.push(oo(ie,ae));else{var ot=mt(pe.done);for((!ot||!ot.ranges)&&Rs(ie.sel,pe.done),Ze={changes:[oo(ie,ae)],generation:pe.generation},pe.done.push(Ze);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(he),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Ne,pe.lastOp=pe.lastSelOp=de,pe.lastOrigin=pe.lastSelOrigin=ae.origin,lt||wn(ie,"historyAdded")}function ua(ie,ae,he,de){var pe=ae.charAt(0);return pe=="*"||pe=="+"&&he.ranges.length==de.ranges.length&&he.somethingSelected()==de.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function al(ie,ae,he,de){var pe=ie.history,Ne=de&&de.origin;he==pe.lastSelOp||Ne&&pe.lastSelOrigin==Ne&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Ne||ua(ie,Ne,mt(pe.done),ae))?pe.done[pe.done.length-1]=ae:Rs(ae,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Ne,pe.lastSelOp=he,de&&de.clearRedo!==!1&&qi(pe.undone)}function Rs(ie,ae){var he=mt(ae);he&&he.ranges&&he.equals(ie)||ae.push(ie)}function Al(ie,ae,he,de){var pe=ae["spans_"+ie.id],Ne=0;ie.iter(Math.max(ie.first,he),Math.min(ie.first+ie.size,de),function(Ze){Ze.markedSpans&&((pe||(pe=ae["spans_"+ie.id]={}))[Ne]=Ze.markedSpans),++Ne})}function Na(ie){if(!ie)return null;for(var ae,he=0;he<ie.length;++he)ie[he].marker.explicitlyCleared?ae||(ae=ie.slice(0,he)):ae&&ae.push(ie[he]);return ae?ae.length?ae:null:ie}function Xa(ie,ae){var he=ae["spans_"+ie.id];if(!he)return null;for(var de=[],pe=0;pe<ae.text.length;++pe)de.push(Na(he[pe]));return de}function Bo(ie,ae){var he=Xa(ie,ae),de=gr(ie,ae);if(!he)return de;if(!de)return he;for(var pe=0;pe<he.length;++pe){var Ne=he[pe],Ze=de[pe];if(Ne&&Ze)e:for(var lt=0;lt<Ze.length;++lt){for(var ot=Ze[lt],Dt=0;Dt<Ne.length;++Dt)if(Ne[Dt].marker==ot.marker)continue e;Ne.push(ot)}else Ze&&(he[pe]=Ze)}return he}function Vs(ie,ae,he){for(var de=[],pe=0;pe<ie.length;++pe){var Ne=ie[pe];if(Ne.ranges){de.push(he?ko.prototype.deepCopy.call(Ne):Ne);continue}var Ze=Ne.changes,lt=[];de.push({changes:lt});for(var ot=0;ot<Ze.length;++ot){var Dt=Ze[ot],kn=void 0;if(lt.push({from:Dt.from,to:Dt.to,text:Dt.text}),ae)for(var Gt in Dt)(kn=Gt.match(/^spans_(\d+)$/))&&Lt(ae,Number(kn[1]))>-1&&(mt(lt)[Gt]=Dt[Gt],delete Dt[Gt])}}return de}function Ll(ie,ae,he,de){if(de){var pe=ie.anchor;if(he){var Ne=rn(ae,pe)<0;Ne!=rn(he,pe)<0?(pe=ae,ae=he):Ne!=rn(ae,he)<0&&(ae=he)}return new Br(pe,ae)}else return new Br(he||ae,ae)}function Wa(ie,ae,he,de,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),as(ie,new ko([Ll(ie.sel.primary(),ae,he,pe)],0),de)}function $a(ie,ae,he){for(var de=[],pe=ie.cm&&(ie.cm.display.shift||ie.extend),Ne=0;Ne<ie.sel.ranges.length;Ne++)de[Ne]=Ll(ie.sel.ranges[Ne],ae[Ne],null,pe);var Ze=Go(ie.cm,de,ie.sel.primIndex);as(ie,Ze,he)}function ns(ie,ae,he,de){var pe=ie.sel.ranges.slice(0);pe[ae]=he,as(ie,Go(ie.cm,pe,ie.sel.primIndex),de)}function bs(ie,ae,he,de){as(ie,_o(ae,he),de)}function Gs(ie,ae,he){var de={ranges:ae.ranges,update:function(pe){this.ranges=[];for(var Ne=0;Ne<pe.length;Ne++)this.ranges[Ne]=new Br(Mi(ie,pe[Ne].anchor),Mi(ie,pe[Ne].head))},origin:he&&he.origin};return wn(ie,"beforeSelectionChange",ie,de),ie.cm&&wn(ie.cm,"beforeSelectionChange",ie.cm,de),de.ranges!=ae.ranges?Go(ie.cm,de.ranges,de.ranges.length-1):ae}function Sa(ie,ae,he){var de=ie.history.done,pe=mt(de);pe&&pe.ranges?(de[de.length-1]=ae,Js(ie,ae,he)):as(ie,ae,he)}function as(ie,ae,he){Js(ie,ae,he),al(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,he)}function Js(ie,ae,he){(Li(ie,"beforeSelectionChange")||ie.cm&&Li(ie.cm,"beforeSelectionChange"))&&(ae=Gs(ie,ae,he));var de=he&&he.bias||(rn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ja(ie,Ms(ie,ae,de,!0)),!(he&&he.scroll===!1)&&ie.cm&&vo(ie.cm)}function Ja(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,ei(ie.cm)),Hi(ie,"cursorActivity",ie))}function zo(ie){Ja(ie,Ms(ie,ie.sel,null,!1))}function Ms(ie,ae,he,de){for(var pe,Ne=0;Ne<ae.ranges.length;Ne++){var Ze=ae.ranges[Ne],lt=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Ne],ot=Wu(ie,Ze.anchor,lt&&lt.anchor,he,de),Dt=Wu(ie,Ze.head,lt&&lt.head,he,de);(pe||ot!=Ze.anchor||Dt!=Ze.head)&&(pe||(pe=ae.ranges.slice(0,Ne)),pe[Ne]=new Br(ot,Dt))}return pe?Go(ie.cm,pe,ae.primIndex):ae}function Ys(ie,ae,he,de,pe){var Ne=_t(ie,ae.line);if(Ne.markedSpans)for(var Ze=0;Ze<Ne.markedSpans.length;++Ze){var lt=Ne.markedSpans[Ze],ot=lt.marker,Dt="selectLeft"in ot?!ot.selectLeft:ot.inclusiveLeft,kn="selectRight"in ot?!ot.selectRight:ot.inclusiveRight;if((lt.from==null||(Dt?lt.from<=ae.ch:lt.from<ae.ch))&&(lt.to==null||(kn?lt.to>=ae.ch:lt.to>ae.ch))){if(pe&&(wn(ot,"beforeCursorEnter"),ot.explicitlyCleared))if(Ne.markedSpans){--Ze;continue}else break;if(!ot.atomic)continue;if(he){var Gt=ot.find(de<0?1:-1),li=void 0;if((de<0?kn:Dt)&&(Gt=vu(ie,Gt,-de,Gt&&Gt.line==ae.line?Ne:null)),Gt&&Gt.line==ae.line&&(li=rn(Gt,he))&&(de<0?li<0:li>0))return Ys(ie,Gt,ae,de,pe)}var ii=ot.find(de<0?-1:1);return(de<0?Dt:kn)&&(ii=vu(ie,ii,de,ii.line==ae.line?Ne:null)),ii?Ys(ie,ii,ae,de,pe):null}}return ae}function Wu(ie,ae,he,de,pe){var Ne=de||1,Ze=Ys(ie,ae,he,Ne,pe)||!pe&&Ys(ie,ae,he,Ne,!0)||Ys(ie,ae,he,-Ne,pe)||!pe&&Ys(ie,ae,he,-Ne,!0);return Ze||(ie.cantEdit=!0,Zt(ie.first,0))}function vu(ie,ae,he,de){return he<0&&ae.ch==0?ae.line>ie.first?Mi(ie,Zt(ae.line-1)):null:he>0&&ae.ch==(de||_t(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Zt(ae.line+1,0):null:new Zt(ae.line,ae.ch+he)}function qa(ie){ie.setSelection(Zt(ie.firstLine(),0),Zt(ie.lastLine()),Nt)}function Ml(ie,ae,he){var de={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return de.canceled=!0}};return he&&(de.update=function(pe,Ne,Ze,lt){pe&&(de.from=Mi(ie,pe)),Ne&&(de.to=Mi(ie,Ne)),Ze&&(de.text=Ze),lt!==void 0&&(de.origin=lt)}),wn(ie,"beforeChange",ie,de),ie.cm&&wn(ie.cm,"beforeChange",ie.cm,de),de.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:de.from,to:de.to,text:de.text,origin:de.origin}}function Ps(ie,ae,he){if(ie.cm){if(!ie.cm.curOp)return Jn(ie.cm,Ps)(ie,ae,he);if(ie.cm.state.suppressEdits)return}if(!((Li(ie,"beforeChange")||ie.cm&&Li(ie.cm,"beforeChange"))&&(ae=Ml(ie,ae,!0),!ae))){var de=Wi&&!he&&Gr(ie,ae.from,ae.to);if(de)for(var pe=de.length-1;pe>=0;--pe)gs(ie,{from:de[pe].from,to:de[pe].to,text:pe?[""]:ae.text,origin:ae.origin});else gs(ie,ae)}}function gs(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&rn(ae.from,ae.to)==0)){var he=_a(ie,ae);Xo(ie,ae,he,ie.cm?ie.cm.curOp.id:NaN),ql(ie,ae,he,gr(ie,ae));var de=[];ts(ie,function(pe,Ne){!Ne&&Lt(de,pe.history)==-1&&(ss(pe.history,ae),de.push(pe.history)),ql(pe,ae,null,gr(pe,ae))})}}function Nu(ie,ae,he){var de=ie.cm&&ie.cm.state.suppressEdits;if(!(de&&!he)){for(var pe=ie.history,Ne,Ze=ie.sel,lt=ae=="undo"?pe.done:pe.undone,ot=ae=="undo"?pe.undone:pe.done,Dt=0;Dt<lt.length&&(Ne=lt[Dt],!(he?Ne.ranges&&!Ne.equals(ie.sel):!Ne.ranges));Dt++);if(Dt!=lt.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Ne=lt.pop(),Ne.ranges){if(Rs(Ne,ot),he&&!Ne.equals(ie.sel)){as(ie,Ne,{clearRedo:!1});return}Ze=Ne}else if(de){lt.push(Ne);return}else break;var kn=[];Rs(Ze,ot),ot.push({changes:kn,generation:pe.generation}),pe.generation=Ne.generation||++pe.maxGeneration;for(var Gt=Li(ie,"beforeChange")||ie.cm&&Li(ie.cm,"beforeChange"),li=function(or){var Ar=Ne.changes[or];if(Ar.origin=ae,Gt&&!Ml(ie,Ar,!1))return lt.length=0,{};kn.push(oo(ie,Ar));var _r=or?_a(ie,Ar):mt(lt);ql(ie,Ar,_r,Bo(ie,Ar)),!or&&ie.cm&&ie.cm.scrollIntoView({from:Ar.from,to:na(Ar)});var Eo=[];ts(ie,function(fo,jo){!jo&&Lt(Eo,fo.history)==-1&&(ss(fo.history,Ar),Eo.push(fo.history)),ql(fo,Ar,null,Bo(fo,Ar))})},ii=Ne.changes.length-1;ii>=0;--ii){var er=li(ii);if(er)return er.v}}}}function Cc(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new ko(Gn(ie.sel.ranges,function(pe){return new Br(Zt(pe.anchor.line+ae,pe.anchor.ch),Zt(pe.head.line+ae,pe.head.ch))}),ie.sel.primIndex),ie.cm)){ws(ie.cm,ie.first,ie.first-ae,ae);for(var he=ie.cm.display,de=he.viewFrom;de<he.viewTo;de++)va(ie.cm,de,"gutter")}}function ql(ie,ae,he,de){if(ie.cm&&!ie.cm.curOp)return Jn(ie.cm,ql)(ie,ae,he,de);if(ae.to.line<ie.first){Cc(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var pe=ae.text.length-1-(ie.first-ae.from.line);Cc(ie,pe),ae={from:Zt(ie.first,0),to:Zt(ae.to.line+pe,ae.to.ch),text:[mt(ae.text)],origin:ae.origin}}var Ne=ie.lastLine();ae.to.line>Ne&&(ae={from:ae.from,to:Zt(Ne,_t(ie,Ne).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=It(ie,ae.from,ae.to),he||(he=_a(ie,ae)),ie.cm?ac(ie.cm,ae,de):Ia(ie,ae,de),Js(ie,he,Nt),ie.cantEdit&&Wu(ie,Zt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function ac(ie,ae,he){var de=ie.doc,pe=ie.display,Ne=ae.from,Ze=ae.to,lt=!1,ot=Ne.line;ie.options.lineWrapping||(ot=ct(Kn(_t(de,Ne.line))),de.iter(ot,Ze.line+1,function(ii){if(ii==pe.maxLine)return lt=!0,!0})),de.sel.contains(ae.from,ae.to)>-1&&ei(ie),Ia(de,ae,he,Ts(ie)),ie.options.lineWrapping||(de.iter(ot,Ne.line+ae.text.length,function(ii){var er=po(ii);er>pe.maxLineLength&&(pe.maxLine=ii,pe.maxLineLength=er,pe.maxLineChanged=!0,lt=!1)}),lt&&(ie.curOp.updateMaxLine=!0)),Ui(de,Ne.line),xi(ie,400);var Dt=ae.text.length-(Ze.line-Ne.line)-1;ae.full?ws(ie):Ne.line==Ze.line&&ae.text.length==1&&!Ua(ie.doc,ae)?va(ie,Ne.line,"text"):ws(ie,Ne.line,Ze.line+1,Dt);var kn=Li(ie,"changes"),Gt=Li(ie,"change");if(Gt||kn){var li={from:Ne,to:Ze,text:ae.text,removed:ae.removed,origin:ae.origin};Gt&&Hi(ie,"change",ie,li),kn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(li)}ie.display.selForContextMenu=null}function sc(ie,ae,he,de,pe){var Ne;de||(de=he),rn(de,he)<0&&(Ne=[de,he],he=Ne[0],de=Ne[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),Ps(ie,{from:he,to:de,text:ae,origin:pe})}function yu(ie,ae,he,de){he<ie.line?ie.line+=de:ae<ie.line&&(ie.line=ae,ie.ch=0)}function Ra(ie,ae,he,de){for(var pe=0;pe<ie.length;++pe){var Ne=ie[pe],Ze=!0;if(Ne.ranges){Ne.copied||(Ne=ie[pe]=Ne.deepCopy(),Ne.copied=!0);for(var lt=0;lt<Ne.ranges.length;lt++)yu(Ne.ranges[lt].anchor,ae,he,de),yu(Ne.ranges[lt].head,ae,he,de);continue}for(var ot=0;ot<Ne.changes.length;++ot){var Dt=Ne.changes[ot];if(he<Dt.from.line)Dt.from=Zt(Dt.from.line+de,Dt.from.ch),Dt.to=Zt(Dt.to.line+de,Dt.to.ch);else if(ae<=Dt.to.line){Ze=!1;break}}Ze||(ie.splice(0,pe+1),pe=0)}}function ss(ie,ae){var he=ae.from.line,de=ae.to.line,pe=ae.text.length-(de-he)-1;Ra(ie.done,he,de,pe),Ra(ie.undone,he,de,pe)}function Qs(ie,ae,he,de){var pe=ae,Ne=ae;return typeof ae=="number"?Ne=_t(ie,Pi(ie,ae)):pe=ct(ae),pe==null?null:(de(Ne,pe)&&ie.cm&&va(ie.cm,pe,he),Ne)}function ps(ie){this.lines=ie,this.parent=null;for(var ae=0,he=0;he<ie.length;++he)ie[he].parent=this,ae+=ie[he].height;this.height=ae}ps.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var he=ie,de=ie+ae;he<de;++he){var pe=this.lines[he];this.height-=pe.height,Zo(pe),Hi(pe,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,he){this.height+=he,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var de=0;de<ae.length;++de)ae[de].parent=this},iterN:function(ie,ae,he){for(var de=ie+ae;ie<de;++ie)if(he(this.lines[ie]))return!0}};function za(ie){this.children=ie;for(var ae=0,he=0,de=0;de<ie.length;++de){var pe=ie[de];ae+=pe.chunkSize(),he+=pe.height,pe.parent=this}this.size=ae,this.height=he,this.parent=null}za.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var he=0;he<this.children.length;++he){var de=this.children[he],pe=de.chunkSize();if(ie<pe){var Ne=Math.min(ae,pe-ie),Ze=de.height;if(de.removeInner(ie,Ne),this.height-=Ze-de.height,pe==Ne&&(this.children.splice(he--,1),de.parent=null),(ae-=Ne)==0)break;ie=0}else ie-=pe}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof ps))){var lt=[];this.collapse(lt),this.children=[new ps(lt)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,he){this.size+=ae.length,this.height+=he;for(var de=0;de<this.children.length;++de){var pe=this.children[de],Ne=pe.chunkSize();if(ie<=Ne){if(pe.insertInner(ie,ae,he),pe.lines&&pe.lines.length>50){for(var Ze=pe.lines.length%25+25,lt=Ze;lt<pe.lines.length;){var ot=new ps(pe.lines.slice(lt,lt+=25));pe.height-=ot.height,this.children.splice(++de,0,ot),ot.parent=this}pe.lines=pe.lines.slice(0,Ze),this.maybeSpill()}break}ie-=Ne}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),he=new za(ae);if(ie.parent){ie.size-=he.size,ie.height-=he.height;var pe=Lt(ie.parent.children,ie);ie.parent.children.splice(pe+1,0,he)}else{var de=new za(ie.children);de.parent=ie,ie.children=[de,he],ie=de}he.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,he){for(var de=0;de<this.children.length;++de){var pe=this.children[de],Ne=pe.chunkSize();if(ie<Ne){var Ze=Math.min(ae,Ne-ie);if(pe.iterN(ie,Ze,he))return!0;if((ae-=Ze)==0)break;ie=0}else ie-=Ne}}};var _s=function(ie,ae,he){if(he)for(var de in he)he.hasOwnProperty(de)&&(this[de]=he[de]);this.doc=ie,this.node=ae};_s.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,he=this.line,de=ct(he);if(!(de==null||!ae)){for(var pe=0;pe<ae.length;++pe)ae[pe]==this&&ae.splice(pe--,1);ae.length||(he.widgets=null);var Ne=il(this);Hn(he,Math.max(0,he.height-Ne)),ie&&(hn(ie,function(){Rl(ie,he,-Ne),va(ie,de,"widget")}),Hi(ie,"lineWidgetCleared",ie,this,de))}},_s.prototype.changed=function(){var ie=this,ae=this.height,he=this.doc.cm,de=this.line;this.height=null;var pe=il(this)-ae;pe&&(zn(this.doc,de)||Hn(de,de.height+pe),he&&hn(he,function(){he.curOp.forceUpdate=!0,Rl(he,de,pe),Hi(he,"lineWidgetChanged",he,ie,ct(de))}))},Vi(_s);function Rl(ie,ae,he){kr(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&mo(ie,he)}function Zu(ie,ae,he,de){var pe=new _s(ie,he,de),Ne=ie.cm;return Ne&&pe.noHScroll&&(Ne.display.alignWidgets=!0),Qs(ie,ae,"widget",function(Ze){var lt=Ze.widgets||(Ze.widgets=[]);if(pe.insertAt==null?lt.push(pe):lt.splice(Math.min(lt.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=Ze,Ne&&!zn(ie,Ze)){var ot=kr(Ze)<ie.scrollTop;Hn(Ze,Ze.height+il(pe)),ot&&mo(Ne,pe.height),Ne.curOp.forceUpdate=!0}return!0}),Ne&&Hi(Ne,"lineWidgetAdded",Ne,pe,typeof ae=="number"?ae:ct(ae)),pe}var uh=0,gn=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++uh};gn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&Oa(ie),Li(this,"clear")){var he=this.find();he&&Hi(this,"clear",he.from,he.to)}for(var de=null,pe=null,Ne=0;Ne<this.lines.length;++Ne){var Ze=this.lines[Ne],lt=Ur(Ze.markedSpans,this);ie&&!this.collapsed?va(ie,ct(Ze),"text"):ie&&(lt.to!=null&&(pe=ct(Ze)),lt.from!=null&&(de=ct(Ze))),Ze.markedSpans=Cr(Ze.markedSpans,lt),lt.from==null&&this.collapsed&&!zn(this.doc,Ze)&&ie&&Hn(Ze,$l(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var ot=0;ot<this.lines.length;++ot){var Dt=Kn(this.lines[ot]),kn=po(Dt);kn>ie.display.maxLineLength&&(ie.display.maxLine=Dt,ie.display.maxLineLength=kn,ie.display.maxLineChanged=!0)}de!=null&&ie&&this.collapsed&&ws(ie,de,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&zo(ie.doc)),ie&&Hi(ie,"markerCleared",ie,this,de,pe),ae&&Is(ie),this.parent&&this.parent.clear()}},gn.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var he,de,pe=0;pe<this.lines.length;++pe){var Ne=this.lines[pe],Ze=Ur(Ne.markedSpans,this);if(Ze.from!=null&&(he=Zt(ae?Ne:ct(Ne),Ze.from),ie==-1))return he;if(Ze.to!=null&&(de=Zt(ae?Ne:ct(Ne),Ze.to),ie==1))return de}return he&&{from:he,to:de}},gn.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),he=this,de=this.doc.cm;!ae||!de||hn(de,function(){var pe=ae.line,Ne=ct(ae.line),Ze=zl(de,Ne);if(Ze&&(dl(Ze),de.curOp.selectionChanged=de.curOp.forceUpdate=!0),de.curOp.updateMaxLine=!0,!zn(he.doc,pe)&&he.height!=null){var lt=he.height;he.height=null;var ot=il(he)-lt;ot&&Hn(pe,pe.height+ot)}Hi(de,"markerChanged",de,ie)})},gn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||Lt(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},gn.prototype.detachLine=function(ie){if(this.lines.splice(Lt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},Vi(gn);function Rc(ie,ae,he,de,pe){if(de&&de.shared)return jh(ie,ae,he,de,pe);if(ie.cm&&!ie.cm.curOp)return Jn(ie.cm,Rc)(ie,ae,he,de,pe);var Ne=new gn(ie,pe),Ze=rn(ae,he);if(de&&Ut(de,Ne,!1),Ze>0||Ze==0&&Ne.clearWhenEmpty!==!1)return Ne;if(Ne.replacedWith&&(Ne.collapsed=!0,Ne.widgetNode=pt("span",[Ne.replacedWith],"CodeMirror-widget"),de.handleMouseEvents||Ne.widgetNode.setAttribute("cm-ignore-events","true"),de.insertLeft&&(Ne.widgetNode.insertLeft=!0)),Ne.collapsed){if(Xn(ie,ae.line,ae,he,Ne)||ae.line!=he.line&&Xn(ie,he.line,ae,he,Ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}Ne.addToHistory&&Xo(ie,{from:ae,to:he,origin:"markText"},ie.sel,NaN);var lt=ae.line,ot=ie.cm,Dt;if(ie.iter(lt,he.line+1,function(Gt){ot&&Ne.collapsed&&!ot.options.lineWrapping&&Kn(Gt)==ot.display.maxLine&&(Dt=!0),Ne.collapsed&&lt!=ae.line&&Hn(Gt,0),Do(Gt,new fr(Ne,lt==ae.line?ae.ch:null,lt==he.line?he.ch:null)),++lt}),Ne.collapsed&&ie.iter(ae.line,he.line+1,function(Gt){zn(ie,Gt)&&Hn(Gt,0)}),Ne.clearOnEnter&&qt(Ne,"beforeCursorEnter",function(){return Ne.clear()}),Ne.readOnly&&(Fr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ne.collapsed&&(Ne.id=++uh,Ne.atomic=!0),ot){if(Dt&&(ot.curOp.updateMaxLine=!0),Ne.collapsed)ws(ot,ae.line,he.line+1);else if(Ne.className||Ne.startStyle||Ne.endStyle||Ne.css||Ne.attributes||Ne.title)for(var kn=ae.line;kn<=he.line;kn++)va(ot,kn,"text");Ne.atomic&&zo(ot.doc),Hi(ot,"markerAdded",ot,Ne)}return Ne}var bc=function(ie,ae){this.markers=ie,this.primary=ae;for(var he=0;he<ie.length;++he)ie[he].parent=this};bc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Hi(this,"clear")}},bc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},Vi(bc);function jh(ie,ae,he,de,pe){de=Ut(de),de.shared=!1;var Ne=[Rc(ie,ae,he,de,pe)],Ze=Ne[0],lt=de.widgetNode;return ts(ie,function(ot){lt&&(de.widgetNode=lt.cloneNode(!0)),Ne.push(Rc(ot,Mi(ot,ae),Mi(ot,he),de,pe));for(var Dt=0;Dt<ot.linked.length;++Dt)if(ot.linked[Dt].isParent)return;Ze=mt(Ne)}),new bc(Ne,Ze)}function bd(ie){return ie.findMarks(Zt(ie.first,0),ie.clipPos(Zt(ie.lastLine())),function(ae){return ae.parent})}function _c(ie,ae){for(var he=0;he<ae.length;he++){var de=ae[he],pe=de.find(),Ne=ie.clipPos(pe.from),Ze=ie.clipPos(pe.to);if(rn(Ne,Ze)){var lt=Rc(ie,Ne,Ze,de.primary,de.primary.type);de.markers.push(lt),lt.parent=de}}}function zc(ie){for(var ae=function(de){var pe=ie[de],Ne=[pe.primary.doc];ts(pe.primary.doc,function(ot){return Ne.push(ot)});for(var Ze=0;Ze<pe.markers.length;Ze++){var lt=pe.markers[Ze];Lt(Ne,lt.doc)==-1&&(lt.parent=null,pe.markers.splice(Ze--,1))}},he=0;he<ie.length;he++)ae(he)}var gf=0,kl=function(ie,ae,he,de,pe){if(!(this instanceof kl))return new kl(ie,ae,he,de,pe);he==null&&(he=0),za.call(this,[new ps([new Jr("",null)])]),this.first=he,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=he;var Ne=Zt(he,0);this.sel=_o(Ne),this.history=new xo(null),this.id=++gf,this.modeOption=ae,this.lineSep=de,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Ia(this,{from:Ne,to:Ne,text:ie}),as(this,_o(Ne),Nt)};kl.prototype=Ee(za.prototype,{constructor:kl,iter:function(ie,ae,he){he?this.iterN(ie-this.first,ae-ie,he):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var he=0,de=0;de<ae.length;++de)he+=ae[de].height;this.insertInner(ie-this.first,ae,he)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=Fn(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:Vn(function(ie){var ae=Zt(this.first,0),he=this.first+this.size-1;Ps(this,{from:ae,to:Zt(he,_t(this,he).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&ho(this.cm,0,0),as(this,_o(ae),Nt)}),replaceRange:function(ie,ae,he,de){ae=Mi(this,ae),he=he?Mi(this,he):ae,sc(this,ie,ae,he,de)},getRange:function(ie,ae,he){var de=It(this,Mi(this,ie),Mi(this,ae));return he===!1?de:de.join(he||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(Un(this,ie))return _t(this,ie)},getLineNumber:function(ie){return ct(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=_t(this,ie)),Kn(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Mi(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),he;return ie==null||ie=="head"?he=ae.head:ie=="anchor"?he=ae.anchor:ie=="end"||ie=="to"||ie===!1?he=ae.to():he=ae.from(),he},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vn(function(ie,ae,he){bs(this,Mi(this,typeof ie=="number"?Zt(ie,ae||0):ie),null,he)}),setSelection:Vn(function(ie,ae,he){bs(this,Mi(this,ie),Mi(this,ae||ie),he)}),extendSelection:Vn(function(ie,ae,he){Wa(this,Mi(this,ie),ae&&Mi(this,ae),he)}),extendSelections:Vn(function(ie,ae){$a(this,lr(this,ie),ae)}),extendSelectionsBy:Vn(function(ie,ae){var he=Gn(this.sel.ranges,ie);$a(this,lr(this,he),ae)}),setSelections:Vn(function(ie,ae,he){if(ie.length){for(var de=[],pe=0;pe<ie.length;pe++)de[pe]=new Br(Mi(this,ie[pe].anchor),Mi(this,ie[pe].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),as(this,Go(this.cm,de,ae),he)}}),addSelection:Vn(function(ie,ae,he){var de=this.sel.ranges.slice(0);de.push(new Br(Mi(this,ie),Mi(this,ae||ie))),as(this,Go(this.cm,de,de.length-1),he)}),getSelection:function(ie){for(var ae=this.sel.ranges,he,de=0;de<ae.length;de++){var pe=It(this,ae[de].from(),ae[de].to());he=he?he.concat(pe):pe}return ie===!1?he:he.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],he=this.sel.ranges,de=0;de<he.length;de++){var pe=It(this,he[de].from(),he[de].to());ie!==!1&&(pe=pe.join(ie||this.lineSeparator())),ae[de]=pe}return ae},replaceSelection:function(ie,ae,he){for(var de=[],pe=0;pe<this.sel.ranges.length;pe++)de[pe]=ie;this.replaceSelections(de,ae,he||"+input")},replaceSelections:Vn(function(ie,ae,he){for(var de=[],pe=this.sel,Ne=0;Ne<pe.ranges.length;Ne++){var Ze=pe.ranges[Ne];de[Ne]={from:Ze.from(),to:Ze.to(),text:this.splitLines(ie[Ne]),origin:he}}for(var lt=ae&&ae!="end"&&Ho(this,de,ae),ot=de.length-1;ot>=0;ot--)Ps(this,de[ot]);lt?Sa(this,lt):this.cm&&vo(this.cm)}),undo:Vn(function(){Nu(this,"undo")}),redo:Vn(function(){Nu(this,"redo")}),undoSelection:Vn(function(){Nu(this,"undo",!0)}),redoSelection:Vn(function(){Nu(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,he=0,de=0;de<ie.done.length;de++)ie.done[de].ranges||++ae;for(var pe=0;pe<ie.undone.length;pe++)ie.undone[pe].ranges||++he;return{undo:ae,redo:he}},clearHistory:function(){var ie=this;this.history=new xo(this.history.maxGeneration),ts(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:Vs(this.history.done),undone:Vs(this.history.undone)}},setHistory:function(ie){var ae=this.history=new xo(this.history.maxGeneration);ae.done=Vs(ie.done.slice(0),null,!0),ae.undone=Vs(ie.undone.slice(0),null,!0)},setGutterMarker:Vn(function(ie,ae,he){return Qs(this,ie,"gutter",function(de){var pe=de.gutterMarkers||(de.gutterMarkers={});return pe[ae]=he,!he&&Se(pe)&&(de.gutterMarkers=null),!0})}),clearGutter:Vn(function(ie){var ae=this;this.iter(function(he){he.gutterMarkers&&he.gutterMarkers[ie]&&Qs(ae,he,"gutter",function(){return he.gutterMarkers[ie]=null,Se(he.gutterMarkers)&&(he.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!Un(this,ie)||(ae=ie,ie=_t(this,ie),!ie))return null}else if(ae=ct(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:Vn(function(ie,ae,he){return Qs(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!de[pe])de[pe]=he;else{if(Pe(he).test(de[pe]))return!1;de[pe]+=" "+he}return!0})}),removeLineClass:Vn(function(ie,ae,he){return Qs(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Ne=de[pe];if(Ne)if(he==null)de[pe]=null;else{var Ze=Ne.match(Pe(he));if(!Ze)return!1;var lt=Ze.index+Ze[0].length;de[pe]=Ne.slice(0,Ze.index)+(!Ze.index||lt==Ne.length?"":" ")+Ne.slice(lt)||null}else return!1;return!0})}),addLineWidget:Vn(function(ie,ae,he){return Zu(this,ie,ae,he)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,he){return Rc(this,Mi(this,ie),Mi(this,ae),he,he&&he.type||"range")},setBookmark:function(ie,ae){var he={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=Mi(this,ie),Rc(this,ie,ie,he,"bookmark")},findMarksAt:function(ie){ie=Mi(this,ie);var ae=[],he=_t(this,ie.line).markedSpans;if(he)for(var de=0;de<he.length;++de){var pe=he[de];(pe.from==null||pe.from<=ie.ch)&&(pe.to==null||pe.to>=ie.ch)&&ae.push(pe.marker.parent||pe.marker)}return ae},findMarks:function(ie,ae,he){ie=Mi(this,ie),ae=Mi(this,ae);var de=[],pe=ie.line;return this.iter(ie.line,ae.line+1,function(Ne){var Ze=Ne.markedSpans;if(Ze)for(var lt=0;lt<Ze.length;lt++){var ot=Ze[lt];!(ot.to!=null&&pe==ie.line&&ie.ch>=ot.to||ot.from==null&&pe!=ie.line||ot.from!=null&&pe==ae.line&&ot.from>=ae.ch)&&(!he||he(ot.marker))&&de.push(ot.marker.parent||ot.marker)}++pe}),de},getAllMarks:function(){var ie=[];return this.iter(function(ae){var he=ae.markedSpans;if(he)for(var de=0;de<he.length;++de)he[de].from!=null&&ie.push(he[de].marker)}),ie},posFromIndex:function(ie){var ae,he=this.first,de=this.lineSeparator().length;return this.iter(function(pe){var Ne=pe.text.length+de;if(Ne>ie)return ae=ie,!0;ie-=Ne,++he}),Mi(this,Zt(he,ae))},indexFromPos:function(ie){ie=Mi(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var he=this.lineSeparator().length;return this.iter(this.first,ie.line,function(de){ae+=de.text.length+he}),ae},copy:function(ie){var ae=new kl(Fn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,he=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<he&&(he=ie.to);var de=new kl(Fn(this,ae,he),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(de.history=this.history),(this.linked||(this.linked=[])).push({doc:de,sharedHist:ie.sharedHist}),de.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],_c(de,bd(this)),de},unlinkDoc:function(ie){if(ie instanceof us&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var he=this.linked[ae];if(he.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),zc(bd(this));break}}if(ie.history==this.history){var de=[ie.id];ts(ie,function(pe){return de.push(pe.id)},!0),ie.history=new xo(null),ie.history.done=Vs(this.history.done,de),ie.history.undone=Vs(this.history.undone,de)}},iterLinkedDocs:function(ie){ts(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):ti(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Vn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&Wo(this.cm))})}),kl.prototype.eachLine=kl.prototype.iter;var fd=0;function Wd(ie){var ae=this;if(pf(ae),!(vi(ae,ie)||Nl(ae.display,ie))){zi(ie),$e&&(fd=+new Date);var he=wl(ae,ie,!0),de=ie.dataTransfer.files;if(!(!he||ae.isReadOnly()))if(de&&de.length&&window.FileReader&&window.File)for(var pe=de.length,Ne=Array(pe),Ze=0,lt=function(){++Ze==pe&&Jn(ae,function(){he=Mi(ae.doc,he);var ii={from:he,to:he,text:ae.doc.splitLines(Ne.filter(function(er){return er!=null}).join(ae.doc.lineSeparator())),origin:"paste"};Ps(ae.doc,ii),Sa(ae.doc,_o(Mi(ae.doc,he),Mi(ae.doc,na(ii))))})()},ot=function(ii,er){if(ae.options.allowDropFileTypes&&Lt(ae.options.allowDropFileTypes,ii.type)==-1){lt();return}var or=new FileReader;or.onerror=function(){return lt()},or.onload=function(){var Ar=or.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ar)){lt();return}Ne[er]=Ar,lt()},or.readAsText(ii)},Dt=0;Dt<de.length;Dt++)ot(de[Dt],Dt);else{if(ae.state.draggingText&&ae.doc.sel.contains(he)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var kn=ie.dataTransfer.getData("Text");if(kn){var Gt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Gt=ae.listSelections()),Js(ae.doc,_o(he,he)),Gt)for(var li=0;li<Gt.length;++li)sc(ae.doc,"",Gt[li].anchor,Gt[li].head,"drag");ae.replaceSelection(kn,"around","paste"),ae.display.input.focus()}}catch(ii){}}}}function Zd(ie,ae){if($e&&(!ie.state.draggingText||+new Date-fd<100)){Yr(ae);return}if(!(vi(ie,ae)||Nl(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!Ot)){var he=Ye("img",null,null,"position: fixed; left: 0; top: 0;");he.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",et&&(he.width=he.height=1,ie.display.wrapper.appendChild(he),he._top=he.offsetTop),ae.dataTransfer.setDragImage(he,0,0),et&&he.parentNode.removeChild(he)}}function Kd(ie,ae){var he=wl(ie,ae);if(he){var de=document.createDocumentFragment();In(ie,he,de),ie.display.dragCursor||(ie.display.dragCursor=Ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Ke(ie.display.dragCursor,de)}}function pf(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function Vd(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),he=[],de=0;de<ae.length;de++){var pe=ae[de].CodeMirror;pe&&he.push(pe)}he.length&&he[0].operation(function(){for(var Ne=0;Ne<he.length;Ne++)ie(he[Ne])})}}var Gd=!1;function ku(){Gd||($c(),Gd=!0)}function $c(){var ie;qt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,Vd(Hh)},100))}),qt(window,"blur",function(){return Vd(_i)})}function Hh(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var lc={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"},qc=0;qc<10;qc++)lc[qc+48]=lc[qc+96]=String(qc);for(var gd=65;gd<=90;gd++)lc[gd]=String.fromCharCode(gd);for(var pd=1;pd<=12;pd++)lc[pd+111]=lc[pd+63235]="F"+pd;var eu={};eu.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"},eu.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"},eu.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"},eu.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"]},eu.default=ce?eu.macDefault:eu.pcDefault;function ch(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var he,de,pe,Ne,Ze=0;Ze<ae.length-1;Ze++){var lt=ae[Ze];if(/^(cmd|meta|m)$/i.test(lt))Ne=!0;else if(/^a(lt)?$/i.test(lt))he=!0;else if(/^(c|ctrl|control)$/i.test(lt))de=!0;else if(/^s(hift)?$/i.test(lt))pe=!0;else throw new Error("Unrecognized modifier name: "+lt)}return he&&(ie="Alt-"+ie),de&&(ie="Ctrl-"+ie),Ne&&(ie="Cmd-"+ie),pe&&(ie="Shift-"+ie),ie}function Yd(ie){var ae={};for(var he in ie)if(ie.hasOwnProperty(he)){var de=ie[he];if(/^(name|fallthrough|(de|at)tach)$/.test(he))continue;if(de=="..."){delete ie[he];continue}for(var pe=Gn(he.split(" "),ch),Ne=0;Ne<pe.length;Ne++){var Ze=void 0,lt=void 0;Ne==pe.length-1?(lt=pe.join(" "),Ze=de):(lt=pe.slice(0,Ne+1).join(" "),Ze="...");var ot=ae[lt];if(!ot)ae[lt]=Ze;else if(ot!=Ze)throw new Error("Inconsistent bindings for "+lt)}delete ie[he]}for(var Dt in ae)ie[Dt]=ae[Dt];return ie}function Su(ie,ae,he,de){ae=jc(ae);var pe=ae.call?ae.call(ie,de):ae[ie];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&he(pe))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return Su(ie,ae.fallthrough,he,de);for(var Ne=0;Ne<ae.fallthrough.length;Ne++){var Ze=Su(ie,ae.fallthrough[Ne],he,de);if(Ze)return Ze}}}function Ed(ie){var ae=typeof ie=="string"?ie:lc[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Ud(ie,ae,he){var de=ie;return ae.altKey&&de!="Alt"&&(ie="Alt-"+ie),(Ce?ae.metaKey:ae.ctrlKey)&&de!="Ctrl"&&(ie="Ctrl-"+ie),(Ce?ae.ctrlKey:ae.metaKey)&&de!="Mod"&&(ie="Cmd-"+ie),!he&&ae.shiftKey&&de!="Shift"&&(ie="Shift-"+ie),ie}function dh(ie,ae){if(et&&ie.keyCode==34&&ie.char)return!1;var he=lc[ie.keyCode];return he==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(he=ie.code),Ud(he,ie,ae))}function jc(ie){return typeof ie=="string"?eu[ie]:ie}function Hl(ie,ae){for(var he=ie.doc.sel.ranges,de=[],pe=0;pe<he.length;pe++){for(var Ne=ae(he[pe]);de.length&&rn(Ne.from,mt(de).to)<=0;){var Ze=de.pop();if(rn(Ze.from,Ne.from)<0){Ne.from=Ze.from;break}}de.push(Ne)}hn(ie,function(){for(var lt=de.length-1;lt>=0;lt--)sc(ie.doc,"",de[lt].from,de[lt].to,"+delete");vo(ie)})}function Xd(ie,ae,he){var de=Ve(ie.text,ae+he,he);return de<0||de>ie.text.length?null:de}function sl(ie,ae,he){var de=Xd(ie,ae.ch,he);return de==null?null:new Zt(ae.line,de,he<0?"after":"before")}function Ya(ie,ae,he,de,pe){if(ie){ae.doc.direction=="rtl"&&(pe=-pe);var Ne=En(he,ae.doc.direction);if(Ne){var Ze=pe<0?mt(Ne):Ne[0],lt=pe<0==(Ze.level==1),ot=lt?"after":"before",Dt;if(Ze.level>0||ae.doc.direction=="rtl"){var kn=xl(ae,he);Dt=pe<0?he.text.length-1:0;var Gt=Tl(ae,kn,Dt).top;Dt=We(function(li){return Tl(ae,kn,li).top==Gt},pe<0==(Ze.level==1)?Ze.from:Ze.to-1,Dt),ot=="before"&&(Dt=Xd(he,Dt,1))}else Dt=pe<0?Ze.to:Ze.from;return new Zt(de,Dt,ot)}}return new Zt(de,pe<0?he.text.length:0,pe<0?"before":"after")}function Es(ie,ae,he,de){var pe=En(ae,ie.doc.direction);if(!pe)return sl(ae,he,de);he.ch>=ae.text.length?(he.ch=ae.text.length,he.sticky="before"):he.ch<=0&&(he.ch=0,he.sticky="after");var Ne=dt(pe,he.ch,he.sticky),Ze=pe[Ne];if(ie.doc.direction=="ltr"&&Ze.level%2==0&&(de>0?Ze.to>he.ch:Ze.from<he.ch))return sl(ae,he,de);var lt=function(_r,Eo){return Xd(ae,_r instanceof Zt?_r.ch:_r,Eo)},ot,Dt=function(_r){return ie.options.lineWrapping?(ot=ot||xl(ie,ae),Lu(ie,ae,ot,_r)):{begin:0,end:ae.text.length}},kn=Dt(he.sticky=="before"?lt(he,-1):he.ch);if(ie.doc.direction=="rtl"||Ze.level==1){var Gt=Ze.level==1==de<0,li=lt(he,Gt?1:-1);if(li!=null&&(Gt?li<=Ze.to&&li<=kn.end:li>=Ze.from&&li>=kn.begin)){var ii=Gt?"before":"after";return new Zt(he.line,li,ii)}}var er=function(_r,Eo,fo){for(var jo=function($s,Ul){return Ul?new Zt(he.line,lt($s,1),"before"):new Zt(he.line,$s,"after")};_r>=0&&_r<pe.length;_r+=Eo){var da=pe[_r],uo=Eo>0==(da.level!=1),Ma=uo?fo.begin:lt(fo.end,-1);if(da.from<=Ma&&Ma<da.to||(Ma=uo?da.from:lt(da.to,-1),fo.begin<=Ma&&Ma<fo.end))return jo(Ma,uo)}},or=er(Ne+de,de,kn);if(or)return or;var Ar=de>0?kn.end:lt(kn.begin,-1);return Ar!=null&&!(de>0&&Ar==ae.text.length)&&(or=er(de>0?0:pe.length-1,de,Dt(Ar)),or)?or:null}var Dl={selectAll:qa,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Nt)},killLine:function(ie){return Hl(ie,function(ae){if(ae.empty()){var he=_t(ie.doc,ae.head.line).text.length;return ae.head.ch==he&&ae.head.line<ie.lastLine()?{from:ae.head,to:Zt(ae.head.line+1,0)}:{from:ae.head,to:Zt(ae.head.line,he)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return Hl(ie,function(ae){return{from:Zt(ae.from().line,0),to:Mi(ie.doc,Zt(ae.to().line+1,0))}})},delLineLeft:function(ie){return Hl(ie,function(ae){return{from:Zt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return Hl(ie,function(ae){var he=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:he},"div");return{from:de,to:ae.from()}})},delWrappedLineRight:function(ie){return Hl(ie,function(ae){var he=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:he},"div");return{from:ae.from(),to:de}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(Zt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Zt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return Du(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return hh(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return Bu(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var he=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:he},"div")},nn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var he=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:he},"div")},nn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var he=ie.cursorCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:he},"div");return de.ch<ie.getLine(de.line).search(/\S/)?hh(ie,ae.head):de},nn)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],he=ie.listSelections(),de=ie.options.tabSize,pe=0;pe<he.length;pe++){var Ne=he[pe].from(),Ze=ft(ie.getLine(Ne.line),Ne.ch,de);ae.push(Tn(de-Ze%de))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return hn(ie,function(){for(var ae=ie.listSelections(),he=[],de=0;de<ae.length;de++)if(ae[de].empty()){var pe=ae[de].head,Ne=_t(ie.doc,pe.line).text;if(Ne){if(pe.ch==Ne.length&&(pe=new Zt(pe.line,pe.ch-1)),pe.ch>0)pe=new Zt(pe.line,pe.ch+1),ie.replaceRange(Ne.charAt(pe.ch-1)+Ne.charAt(pe.ch-2),Zt(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var Ze=_t(ie.doc,pe.line-1).text;Ze&&(pe=new Zt(pe.line,1),ie.replaceRange(Ne.charAt(0)+ie.doc.lineSeparator()+Ze.charAt(Ze.length-1),Zt(pe.line-1,Ze.length-1),pe,"+transpose"))}}he.push(new Br(pe,pe))}ie.setSelections(he)})},newlineAndIndent:function(ie){return hn(ie,function(){for(var ae=ie.listSelections(),he=ae.length-1;he>=0;he--)ie.replaceRange(ie.doc.lineSeparator(),ae[he].anchor,ae[he].head,"+input");ae=ie.listSelections();for(var de=0;de<ae.length;de++)ie.indentLine(ae[de].from().line,null,!0);vo(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function Du(ie,ae){var he=_t(ie.doc,ae),de=Kn(he);return de!=he&&(ae=ct(de)),Ya(!0,ie,de,ae,1)}function Bu(ie,ae){var he=_t(ie.doc,ae),de=Ei(he);return de!=he&&(ae=ct(de)),Ya(!0,ie,he,ae,-1)}function hh(ie,ae){var he=Du(ie,ae.line),de=_t(ie.doc,he.line),pe=En(de,ie.doc.direction);if(!pe||pe[0].level==0){var Ne=Math.max(he.ch,de.text.search(/\S/)),Ze=ae.line==he.line&&ae.ch<=Ne&&ae.ch;return Zt(he.line,Ze?0:Ne,he.sticky)}return he}function ed(ie,ae,he){if(typeof ae=="string"&&(ae=Dl[ae],!ae))return!1;ie.display.input.ensurePolled();var de=ie.display.shift,pe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),he&&(ie.display.shift=!1),pe=ae(ie)!=mn}finally{ie.display.shift=de,ie.state.suppressEdits=!1}return pe}function Jd(ie,ae,he){for(var de=0;de<ie.state.keyMaps.length;de++){var pe=Su(ae,ie.state.keyMaps[de],he,ie);if(pe)return pe}return ie.options.extraKeys&&Su(ae,ie.options.extraKeys,he,ie)||Su(ae,ie.options.keyMap,he,ie)}var Qu=new Re;function uc(ie,ae,he,de){var pe=ie.state.keySeq;if(pe){if(Ed(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Qu.set(50,function(){ie.state.keySeq==pe&&(ie.state.keySeq=null,ie.display.input.reset())}),mf(ie,pe+" "+ae,he,de))return!0}return mf(ie,ae,he,de)}function mf(ie,ae,he,de){var pe=Jd(ie,ae,de);return pe=="multi"&&(ie.state.keySeq=ae),pe=="handled"&&Hi(ie,"keyHandled",ie,ae,he),(pe=="handled"||pe=="multi")&&(zi(he),fi(ie)),!!pe}function vf(ie,ae){var he=dh(ae,!0);return he?ae.shiftKey&&!ie.state.keySeq?uc(ie,"Shift-"+he,ae,function(de){return ed(ie,de,!0)})||uc(ie,he,ae,function(de){if(typeof de=="string"?/^go[A-Z]/.test(de):de.motion)return ed(ie,de)}):uc(ie,he,ae,function(de){return ed(ie,de)}):!1}function fh(ie,ae,he){return uc(ie,"'"+he+"'",ae,function(de){return ed(ie,de,!0)})}var _u=null;function yf(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=Xe(),!vi(ae,ie))){$e&&qe<11&&ie.keyCode==27&&(ie.returnValue=!1);var he=ie.keyCode;ae.display.shift=he==16||ie.shiftKey;var de=vf(ae,ie);et&&(_u=de?he:null,!de&&he==88&&!$n&&(ce?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),ye&&!ce&&!de&&he==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),he==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&Kf(ae)}}function Kf(ie){var ae=ie.display.lineDiv;Wt(ae,"CodeMirror-crosshair");function he(de){(de.keyCode==18||!de.altKey)&&(Ie(ae,"CodeMirror-crosshair"),qn(document,"keyup",he),qn(document,"mouseover",he))}qt(document,"keyup",he),qt(document,"mouseover",he)}function Sf(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),vi(this,ie)}function Ec(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Nl(ae.display,ie)||vi(ae,ie)||ie.ctrlKey&&!ie.altKey||ce&&ie.metaKey)){var he=ie.keyCode,de=ie.charCode;if(et&&he==_u){_u=null,zi(ie);return}if(!(et&&(!ie.which||ie.which<10)&&vf(ae,ie))){var pe=String.fromCharCode(de==null?he:de);pe!="\b"&&(fh(ae,ie,pe)||ae.display.input.onKeyPress(ie))}}}var wg=400,Vf=function(ie,ae,he){this.time=ie,this.pos=ae,this.button=he};Vf.prototype.compare=function(ie,ae,he){return this.time+wg>ie&&rn(ae,this.pos)==0&&he==this.button};var gh,Ad;function Gf(ie,ae){var he=+new Date;return Ad&&Ad.compare(he,ie,ae)?(gh=Ad=null,"triple"):gh&&gh.compare(he,ie,ae)?(Ad=new Vf(he,ie,ae),gh=null,"double"):(gh=new Vf(he,ie,ae),Ad=null,"single")}function Hc(ie){var ae=this,he=ae.display;if(!(vi(ae,ie)||he.activeTouch&&he.input.supportsTouch())){if(he.input.ensurePolled(),he.shift=ie.shiftKey,Nl(he,ie)){De||(he.scroller.draggable=!1,setTimeout(function(){return he.scroller.draggable=!0},100));return}if(!ca(ae,ie)){var de=wl(ae,ie),pe=Zr(ie),Ne=de?Gf(de,pe):"single";window.focus(),pe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(de&&Yf(ae,pe,de,Ne,ie))&&(pe==1?de?xf(ae,de,Ne,ie):zr(ie)==he.scroller&&zi(ie):pe==2?(de&&Wa(ae.doc,de),setTimeout(function(){return he.input.focus()},20)):pe==3&&(Fe?ae.display.input.onContextMenu(ie):ar(ae)))}}}function Yf(ie,ae,he,de,pe){var Ne="Click";return de=="double"?Ne="Double"+Ne:de=="triple"&&(Ne="Triple"+Ne),Ne=(ae==1?"Left":ae==2?"Middle":"Right")+Ne,uc(ie,Ud(Ne,pe),pe,function(Ze){if(typeof Ze=="string"&&(Ze=Dl[Ze]),!Ze)return!1;var lt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),lt=Ze(ie,he)!=mn}finally{ie.state.suppressEdits=!1}return lt})}function Wh(ie,ae,he){var de=ie.getOption("configureMouse"),pe=de?de(ie,ae,he):{};if(pe.unit==null){var Ne=se?he.shiftKey&&he.metaKey:he.altKey;pe.unit=Ne?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(pe.extend==null||ie.doc.extend)&&(pe.extend=ie.doc.extend||he.shiftKey),pe.addNew==null&&(pe.addNew=ce?he.metaKey:he.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(ce?he.altKey:he.ctrlKey)),pe}function xf(ie,ae,he,de){$e?setTimeout(Mt(Ni,ie),0):ie.curOp.focus=Xe();var pe=Wh(ie,he,de),Ne=ie.doc.sel,Ze;ie.options.dragDrop&&Nr&&!ie.isReadOnly()&&he=="single"&&(Ze=Ne.contains(ae))>-1&&(rn((Ze=Ne.ranges[Ze]).from(),ae)<0||ae.xRel>0)&&(rn(Ze.to(),ae)>0||ae.xRel<0)?Zh(ie,de,ae,pe):up(ie,de,ae,pe)}function Zh(ie,ae,he,de){var pe=ie.display,Ne=!1,Ze=Jn(ie,function(Dt){De&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,qn(pe.wrapper.ownerDocument,"mouseup",Ze),qn(pe.wrapper.ownerDocument,"mousemove",lt),qn(pe.scroller,"dragstart",ot),qn(pe.scroller,"drop",Ze),Ne||(zi(Dt),de.addNew||Wa(ie.doc,he,null,null,de.extend),De&&!Ot||$e&&qe==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),lt=function(Dt){Ne=Ne||Math.abs(ae.clientX-Dt.clientX)+Math.abs(ae.clientY-Dt.clientY)>=10},ot=function(){return Ne=!0};De&&(pe.scroller.draggable=!0),ie.state.draggingText=Ze,Ze.copy=!de.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),qt(pe.wrapper.ownerDocument,"mouseup",Ze),qt(pe.wrapper.ownerDocument,"mousemove",lt),qt(pe.scroller,"dragstart",ot),qt(pe.scroller,"drop",Ze),ar(ie),setTimeout(function(){return pe.input.focus()},20)}function Uf(ie,ae,he){if(he=="char")return new Br(ae,ae);if(he=="word")return ie.findWordAt(ae);if(he=="line")return new Br(Zt(ae.line,0),Mi(ie.doc,Zt(ae.line+1,0)));var de=he(ie,ae);return new Br(de.from,de.to)}function up(ie,ae,he,de){var pe=ie.display,Ne=ie.doc;zi(ae);var Ze,lt,ot=Ne.sel,Dt=ot.ranges;if(de.addNew&&!de.extend?(lt=Ne.sel.contains(he),lt>-1?Ze=Dt[lt]:Ze=new Br(he,he)):(Ze=Ne.sel.primary(),lt=Ne.sel.primIndex),de.unit=="rectangle")de.addNew||(Ze=new Br(he,he)),he=wl(ie,ae,!0,!0),lt=-1;else{var kn=Uf(ie,he,de.unit);de.extend?Ze=Ll(Ze,kn.anchor,kn.head,de.extend):Ze=kn}de.addNew?lt==-1?(lt=Dt.length,as(Ne,Go(ie,Dt.concat([Ze]),lt),{scroll:!1,origin:"*mouse"})):Dt.length>1&&Dt[lt].empty()&&de.unit=="char"&&!de.extend?(as(Ne,Go(ie,Dt.slice(0,lt).concat(Dt.slice(lt+1)),0),{scroll:!1,origin:"*mouse"}),ot=Ne.sel):ns(Ne,lt,Ze,en):(lt=0,as(Ne,new ko([Ze],0),en),ot=Ne.sel);var Gt=he;function li(fo){if(rn(Gt,fo)!=0)if(Gt=fo,de.unit=="rectangle"){for(var jo=[],da=ie.options.tabSize,uo=ft(_t(Ne,he.line).text,he.ch,da),Ma=ft(_t(Ne,fo.line).text,fo.ch,da),$s=Math.min(uo,Ma),Ul=Math.max(uo,Ma),fl=Math.min(he.line,fo.line),qu=Math.min(ie.lastLine(),Math.max(he.line,fo.line));fl<=qu;fl++){var Tu=_t(Ne,fl).text,Zl=On(Tu,$s,da);$s==Ul?jo.push(new Br(Zt(fl,Zl),Zt(fl,Zl))):Tu.length>Zl&&jo.push(new Br(Zt(fl,Zl),Zt(fl,On(Tu,Ul,da))))}jo.length||jo.push(new Br(he,he)),as(Ne,Go(ie,ot.ranges.slice(0,lt).concat(jo),lt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(fo)}else{var cc=Ze,xu=Uf(ie,fo,de.unit),Kl=cc.anchor,cs;rn(xu.anchor,Kl)>0?(cs=xu.head,Kl=ci(cc.from(),xu.anchor)):(cs=xu.anchor,Kl=yi(cc.to(),xu.head));var Pl=ot.ranges.slice(0);Pl[lt]=ls(ie,new Br(Mi(Ne,Kl),cs)),as(Ne,Go(ie,Pl,lt),en)}}var ii=pe.wrapper.getBoundingClientRect(),er=0;function or(fo){var jo=++er,da=wl(ie,fo,!0,de.unit=="rectangle");if(da)if(rn(da,Gt)!=0){ie.curOp.focus=Xe(),li(da);var uo=ai(pe,Ne);(da.line>=uo.to||da.line<uo.from)&&setTimeout(Jn(ie,function(){er==jo&&or(fo)}),150)}else{var Ma=fo.clientY<ii.top?-20:fo.clientY>ii.bottom?20:0;Ma&&setTimeout(Jn(ie,function(){er==jo&&(pe.scroller.scrollTop+=Ma,or(fo))}),50)}}function Ar(fo){ie.state.selectingText=!1,er=1/0,fo&&(zi(fo),pe.input.focus()),qn(pe.wrapper.ownerDocument,"mousemove",_r),qn(pe.wrapper.ownerDocument,"mouseup",Eo),Ne.history.lastSelOrigin=null}var _r=Jn(ie,function(fo){fo.buttons===0||!Zr(fo)?Ar(fo):or(fo)}),Eo=Jn(ie,Ar);ie.state.selectingText=Eo,qt(pe.wrapper.ownerDocument,"mousemove",_r),qt(pe.wrapper.ownerDocument,"mouseup",Eo)}function ls(ie,ae){var he=ae.anchor,de=ae.head,pe=_t(ie.doc,he.line);if(rn(he,de)==0&&he.sticky==de.sticky)return ae;var Ne=En(pe);if(!Ne)return ae;var Ze=dt(Ne,he.ch,he.sticky),lt=Ne[Ze];if(lt.from!=he.ch&&lt.to!=he.ch)return ae;var ot=Ze+(lt.from==he.ch==(lt.level!=1)?0:1);if(ot==0||ot==Ne.length)return ae;var Dt;if(de.line!=he.line)Dt=(de.line-he.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var kn=dt(Ne,de.ch,de.sticky),Gt=kn-Ze||(de.ch-he.ch)*(lt.level==1?-1:1);kn==ot-1||kn==ot?Dt=Gt<0:Dt=Gt>0}var li=Ne[ot+(Dt?-1:0)],ii=Dt==(li.level==1),er=ii?li.from:li.to,or=ii?"after":"before";return he.ch==er&&he.sticky==or?ae:new Br(new Zt(he.line,er,or),de)}function Yo(ie,ae,he,de){var pe,Ne;if(ae.touches)pe=ae.touches[0].clientX,Ne=ae.touches[0].clientY;else try{pe=ae.clientX,Ne=ae.clientY}catch(li){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;de&&zi(ae);var Ze=ie.display,lt=Ze.lineDiv.getBoundingClientRect();if(Ne>lt.bottom||!Li(ie,he))return rr(ae);Ne-=lt.top-Ze.viewOffset;for(var ot=0;ot<ie.display.gutterSpecs.length;++ot){var Dt=Ze.gutters.childNodes[ot];if(Dt&&Dt.getBoundingClientRect().right>=pe){var kn=sn(ie.doc,Ne),Gt=ie.display.gutterSpecs[ot];return wn(ie,he,ie,kn,Gt.className,ae),rr(ae)}}}function ca(ie,ae){return Yo(ie,ae,"gutterClick",!0)}function is(ie,ae){Nl(ie.display,ae)||ll(ie,ae)||vi(ie,ae,"contextmenu")||Fe||ie.display.input.onContextMenu(ae)}function ll(ie,ae){return Li(ie,"gutterContextMenu")?Yo(ie,ae,"gutterContextMenu",!1):!1}function md(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ss(ie)}var tu={toString:function(){return"CodeMirror.Init"}},td={},Ac={};function ph(ie){var ae=ie.optionHandlers;function he(de,pe,Ne,Ze){ie.defaults[de]=pe,Ne&&(ae[de]=Ze?function(lt,ot,Dt){Dt!=tu&&Ne(lt,ot,Dt)}:Ne)}ie.defineOption=he,ie.Init=tu,he("value","",function(de,pe){return de.setValue(pe)},!0),he("mode",null,function(de,pe){de.doc.modeOption=pe,wo(de)},!0),he("indentUnit",2,wo,!0),he("indentWithTabs",!1),he("smartIndent",!0),he("tabSize",4,function(de){Oo(de),Ss(de),ws(de)},!0),he("lineSeparator",null,function(de,pe){if(de.doc.lineSep=pe,!!pe){var Ne=[],Ze=de.doc.first;de.doc.iter(function(ot){for(var Dt=0;;){var kn=ot.text.indexOf(pe,Dt);if(kn==-1)break;Dt=kn+pe.length,Ne.push(Zt(Ze,kn))}Ze++});for(var lt=Ne.length-1;lt>=0;lt--)sc(de.doc,pe,Ne[lt],Zt(Ne[lt].line,Ne[lt].ch+pe.length))}}),he("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(de,pe,Ne){de.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Ne!=tu&&de.refresh()}),he("specialCharPlaceholder",oa,function(de){return de.refresh()},!0),he("electricChars",!0),he("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),he("spellcheck",!1,function(de,pe){return de.getInputField().spellcheck=pe},!0),he("autocorrect",!1,function(de,pe){return de.getInputField().autocorrect=pe},!0),he("autocapitalize",!1,function(de,pe){return de.getInputField().autocapitalize=pe},!0),he("rtlMoveVisually",!ge),he("wholeLineUpdateBefore",!0),he("theme","default",function(de){md(de),Ir(de)},!0),he("keyMap","default",function(de,pe,Ne){var Ze=jc(pe),lt=Ne!=tu&&jc(Ne);lt&&lt.detach&&lt.detach(de,Ze),Ze.attach&&Ze.attach(de,lt||null)}),he("extraKeys",null),he("configureMouse",null),he("lineWrapping",!1,Lc,!0),he("gutters",[],function(de,pe){de.display.gutterSpecs=qr(pe,de.options.lineNumbers),Ir(de)},!0),he("fixedGutter",!0,function(de,pe){de.display.gutters.style.left=pe?Ic(de.display)+"px":"0",de.refresh()},!0),he("coverGutterNextToScrollbar",!1,function(de){return Ca(de)},!0),he("scrollbarStyle","native",function(de){fs(de),Ca(de),de.display.scrollbars.setScrollTop(de.doc.scrollTop),de.display.scrollbars.setScrollLeft(de.doc.scrollLeft)},!0),he("lineNumbers",!1,function(de,pe){de.display.gutterSpecs=qr(de.options.gutters,pe),Ir(de)},!0),he("firstLineNumber",1,Ir,!0),he("lineNumberFormatter",function(de){return de},Ir,!0),he("showCursorWhenSelecting",!1,$t,!0),he("resetSelectionOnContextMenu",!0),he("lineWiseCopyCut",!0),he("pasteLinesPerSelection",!0),he("selectionsMayTouch",!1),he("readOnly",!1,function(de,pe){pe=="nocursor"&&(_i(de),de.display.input.blur()),de.display.input.readOnlyChanged(pe)}),he("screenReaderLabel",null,function(de,pe){pe=pe===""?null:pe,de.display.input.screenReaderLabelChanged(pe)}),he("disableInput",!1,function(de,pe){pe||de.display.input.reset()},!0),he("dragDrop",!0,nd),he("allowDropFileTypes",null),he("cursorBlinkRate",530),he("cursorScrollMargin",0),he("cursorHeight",1,$t,!0),he("singleCursorHeightPerLine",!0,$t,!0),he("workTime",100),he("workDelay",100),he("flattenSpans",!0,Oo,!0),he("addModeClass",!1,Oo,!0),he("pollInterval",100),he("undoDepth",200,function(de,pe){return de.doc.history.undoDepth=pe}),he("historyEventDelay",1250),he("viewportMargin",10,function(de){return de.refresh()},!0),he("maxHighlightLength",1e4,Oo,!0),he("moveInputWithCursor",!0,function(de,pe){pe||de.display.input.resetPosition()}),he("tabindex",null,function(de,pe){return de.display.input.getField().tabIndex=pe||""}),he("autofocus",null),he("direction","ltr",function(de,pe){return de.doc.setDirection(pe)},!0),he("phrases",null)}function nd(ie,ae,he){var de=he&&he!=tu;if(!ae!=!de){var pe=ie.display.dragFunctions,Ne=ae?qt:qn;Ne(ie.display.scroller,"dragstart",pe.start),Ne(ie.display.scroller,"dragenter",pe.enter),Ne(ie.display.scroller,"dragover",pe.over),Ne(ie.display.scroller,"dragleave",pe.leave),Ne(ie.display.scroller,"drop",pe.drop)}}function Lc(ie){ie.options.lineWrapping?(Wt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ie(ie.display.wrapper,"CodeMirror-wrap"),to(ie)),Io(ie),ws(ie),Ss(ie),setTimeout(function(){return Ca(ie)},100)}function us(ie,ae){var he=this;if(!(this instanceof us))return new us(ie,ae);this.options=ae=ae?Ut(ae):{},Ut(td,ae,!1);var de=ae.value;typeof de=="string"?de=new kl(de,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(de.modeOption=ae.mode),this.doc=de;var pe=new us.inputStyles[ae.inputStyle](this),Ne=this.display=new ao(ie,de,pe,ae);Ne.wrapper.CodeMirror=this,md(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),fs(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 Re,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Ne.input.focus(),$e&&qe<11&&setTimeout(function(){return he.display.input.reset(!0)},20),wf(this),ku(),Oa(this),this.curOp.forceUpdate=!0,Ro(this,de),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){he.hasFocus()&&!he.state.focused&&Fi(he)},20):_i(this);for(var Ze in Ac)Ac.hasOwnProperty(Ze)&&Ac[Ze](this,ae[Ze],tu);Hr(this),ae.finishInit&&ae.finishInit(this);for(var lt=0;lt<Kh.length;++lt)Kh[lt](this);Is(this),De&&ae.lineWrapping&&getComputedStyle(Ne.lineDiv).textRendering=="optimizelegibility"&&(Ne.lineDiv.style.textRendering="auto")}us.defaults=td,us.optionHandlers=Ac;function wf(ie){var ae=ie.display;qt(ae.scroller,"mousedown",Jn(ie,Hc)),$e&&qe<11?qt(ae.scroller,"dblclick",Jn(ie,function(ot){if(!vi(ie,ot)){var Dt=wl(ie,ot);if(!(!Dt||ca(ie,ot)||Nl(ie.display,ot))){zi(ot);var kn=ie.findWordAt(Dt);Wa(ie.doc,kn.anchor,kn.head)}}})):qt(ae.scroller,"dblclick",function(ot){return vi(ie,ot)||zi(ot)}),qt(ae.scroller,"contextmenu",function(ot){return is(ie,ot)}),qt(ae.input.getField(),"contextmenu",function(ot){ae.scroller.contains(ot.target)||is(ie,ot)});var he,de={end:0};function pe(){ae.activeTouch&&(he=setTimeout(function(){return ae.activeTouch=null},1e3),de=ae.activeTouch,de.end=+new Date)}function Ne(ot){if(ot.touches.length!=1)return!1;var Dt=ot.touches[0];return Dt.radiusX<=1&&Dt.radiusY<=1}function Ze(ot,Dt){if(Dt.left==null)return!0;var kn=Dt.left-ot.left,Gt=Dt.top-ot.top;return kn*kn+Gt*Gt>20*20}qt(ae.scroller,"touchstart",function(ot){if(!vi(ie,ot)&&!Ne(ot)&&!ca(ie,ot)){ae.input.ensurePolled(),clearTimeout(he);var Dt=+new Date;ae.activeTouch={start:Dt,moved:!1,prev:Dt-de.end<=300?de:null},ot.touches.length==1&&(ae.activeTouch.left=ot.touches[0].pageX,ae.activeTouch.top=ot.touches[0].pageY)}}),qt(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),qt(ae.scroller,"touchend",function(ot){var Dt=ae.activeTouch;if(Dt&&!Nl(ae,ot)&&Dt.left!=null&&!Dt.moved&&new Date-Dt.start<300){var kn=ie.coordsChar(ae.activeTouch,"page"),Gt;!Dt.prev||Ze(Dt,Dt.prev)?Gt=new Br(kn,kn):!Dt.prev.prev||Ze(Dt,Dt.prev.prev)?Gt=ie.findWordAt(kn):Gt=new Br(Zt(kn.line,0),Mi(ie.doc,Zt(kn.line+1,0))),ie.setSelection(Gt.anchor,Gt.head),ie.focus(),zi(ot)}pe()}),qt(ae.scroller,"touchcancel",pe),qt(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(ya(ie,ae.scroller.scrollTop),Ha(ie,ae.scroller.scrollLeft,!0),wn(ie,"scroll",ie))}),qt(ae.scroller,"mousewheel",function(ot){return Mo(ie,ot)}),qt(ae.scroller,"DOMMouseScroll",function(ot){return Mo(ie,ot)}),qt(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(ot){vi(ie,ot)||Yr(ot)},over:function(ot){vi(ie,ot)||(Kd(ie,ot),Yr(ot))},start:function(ot){return Zd(ie,ot)},drop:Jn(ie,Wd),leave:function(ot){vi(ie,ot)||pf(ie)}};var lt=ae.input.getField();qt(lt,"keyup",function(ot){return Sf.call(ie,ot)}),qt(lt,"keydown",Jn(ie,yf)),qt(lt,"keypress",Jn(ie,Ec)),qt(lt,"focus",function(ot){return Fi(ie,ot)}),qt(lt,"blur",function(ot){return _i(ie,ot)})}var Kh=[];us.defineInitHook=function(ie){return Kh.push(ie)};function Yl(ie,ae,he,de){var pe=ie.doc,Ne;he==null&&(he="add"),he=="smart"&&(pe.mode.indent?Ne=br(ie,ae).state:he="prev");var Ze=ie.options.tabSize,lt=_t(pe,ae),ot=ft(lt.text,null,Ze);lt.stateAfter&&(lt.stateAfter=null);var Dt=lt.text.match(/^\s*/)[0],kn;if(!de&&!/\S/.test(lt.text))kn=0,he="not";else if(he=="smart"&&(kn=pe.mode.indent(Ne,lt.text.slice(Dt.length),lt.text),kn==mn||kn>150)){if(!de)return;he="prev"}he=="prev"?ae>pe.first?kn=ft(_t(pe,ae-1).text,null,Ze):kn=0:he=="add"?kn=ot+ie.options.indentUnit:he=="subtract"?kn=ot-ie.options.indentUnit:typeof he=="number"&&(kn=ot+he),kn=Math.max(0,kn);var Gt="",li=0;if(ie.options.indentWithTabs)for(var ii=Math.floor(kn/Ze);ii;--ii)li+=Ze,Gt+=" ";if(li<kn&&(Gt+=Tn(kn-li)),Gt!=Dt)return sc(pe,Gt,Zt(ae,0),Zt(ae,Dt.length),"+input"),lt.stateAfter=null,!0;for(var er=0;er<pe.sel.ranges.length;er++){var or=pe.sel.ranges[er];if(or.head.line==ae&&or.head.ch<Dt.length){var Ar=Zt(ae,Dt.length);ns(pe,er,new Br(Ar,Ar));break}}}var $u=null;function Vh(ie){$u=ie}function Xf(ie,ae,he,de,pe){var Ne=ie.doc;ie.display.shift=!1,de||(de=Ne.sel);var Ze=+new Date-200,lt=pe=="paste"||ie.state.pasteIncoming>Ze,ot=ti(ae),Dt=null;if(lt&&de.ranges.length>1)if($u&&$u.text.join(`
`)==ae){if(de.ranges.length%$u.text.length==0){Dt=[];for(var kn=0;kn<$u.text.length;kn++)Dt.push(Ne.splitLines($u.text[kn]))}}else ot.length==de.ranges.length&&ie.options.pasteLinesPerSelection&&(Dt=Gn(ot,function(_r){return[_r]}));for(var Gt=ie.curOp.updateInput,li=de.ranges.length-1;li>=0;li--){var ii=de.ranges[li],er=ii.from(),or=ii.to();ii.empty()&&(he&&he>0?er=Zt(er.line,er.ch-he):ie.state.overwrite&&!lt?or=Zt(or.line,Math.min(_t(Ne,or.line).text.length,or.ch+mt(ot).length)):lt&&$u&&$u.lineWise&&$u.text.join(`
`)==ot.join(`
`)&&(er=or=Zt(er.line,0)));var Ar={from:er,to:or,text:Dt?Dt[li%Dt.length]:ot,origin:pe||(lt?"paste":ie.state.cutIncoming>Ze?"cut":"+input")};Ps(ie.doc,Ar),Hi(ie,"inputRead",ie,Ar)}ae&&!lt&&dp(ie,ae),vo(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Gt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function cp(ie,ae){var he=ie.clipboardData&&ie.clipboardData.getData("Text");if(he)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&hn(ae,function(){return Xf(ae,he,0,null,"paste")}),!0}function dp(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var he=ie.doc.sel,de=he.ranges.length-1;de>=0;de--){var pe=he.ranges[de];if(!(pe.head.ch>100||de&&he.ranges[de-1].head.line==pe.head.line)){var Ne=ie.getModeAt(pe.head),Ze=!1;if(Ne.electricChars){for(var lt=0;lt<Ne.electricChars.length;lt++)if(ae.indexOf(Ne.electricChars.charAt(lt))>-1){Ze=Yl(ie,pe.head.line,"smart");break}}else Ne.electricInput&&Ne.electricInput.test(_t(ie.doc,pe.head.line).text.slice(0,pe.head.ch))&&(Ze=Yl(ie,pe.head.line,"smart"));Ze&&Hi(ie,"electricInput",ie,pe.head.line)}}}function hp(ie){for(var ae=[],he=[],de=0;de<ie.doc.sel.ranges.length;de++){var pe=ie.doc.sel.ranges[de].head.line,Ne={anchor:Zt(pe,0),head:Zt(pe+1,0)};he.push(Ne),ae.push(ie.getRange(Ne.anchor,Ne.head))}return{text:ae,ranges:he}}function fp(ie,ae,he,de){ie.setAttribute("autocorrect",he?"":"off"),ie.setAttribute("autocapitalize",de?"":"off"),ie.setAttribute("spellcheck",!!ae)}function gp(){var ie=Ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=Ye("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return De?ie.style.width="1000px":ie.setAttribute("wrap","off"),Me&&(ie.style.border="1px solid black"),fp(ie),ae}function mh(ie){var ae=ie.optionHandlers,he=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(de,pe){var Ne=this.options,Ze=Ne[de];Ne[de]==pe&&de!="mode"||(Ne[de]=pe,ae.hasOwnProperty(de)&&Jn(this,ae[de])(this,pe,Ze),wn(this,"optionChange",this,de))},getOption:function(de){return this.options[de]},getDoc:function(){return this.doc},addKeyMap:function(de,pe){this.state.keyMaps[pe?"push":"unshift"](jc(de))},removeKeyMap:function(de){for(var pe=this.state.keyMaps,Ne=0;Ne<pe.length;++Ne)if(pe[Ne]==de||pe[Ne].name==de)return pe.splice(Ne,1),!0},addOverlay:Yn(function(de,pe){var Ne=de.token?de:ie.getMode(this.options,de);if(Ne.startState)throw new Error("Overlays may not be stateful.");xn(this.state.overlays,{mode:Ne,modeSpec:de,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(Ze){return Ze.priority}),this.state.modeGen++,ws(this)}),removeOverlay:Yn(function(de){for(var pe=this.state.overlays,Ne=0;Ne<pe.length;++Ne){var Ze=pe[Ne].modeSpec;if(Ze==de||typeof de=="string"&&Ze.name==de){pe.splice(Ne,1),this.state.modeGen++,ws(this);return}}}),indentLine:Yn(function(de,pe,Ne){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),Un(this.doc,de)&&Yl(this,de,pe,Ne)}),indentSelection:Yn(function(de){for(var pe=this.doc.sel.ranges,Ne=-1,Ze=0;Ze<pe.length;Ze++){var lt=pe[Ze];if(lt.empty())lt.head.line>Ne&&(Yl(this,lt.head.line,de,!0),Ne=lt.head.line,Ze==this.doc.sel.primIndex&&vo(this));else{var ot=lt.from(),Dt=lt.to(),kn=Math.max(Ne,ot.line);Ne=Math.min(this.lastLine(),Dt.line-(Dt.ch?0:1))+1;for(var Gt=kn;Gt<Ne;++Gt)Yl(this,Gt,de);var li=this.doc.sel.ranges;ot.ch==0&&pe.length==li.length&&li[Ze].from().ch>0&&ns(this.doc,Ze,new Br(ot,li[Ze].to()),Nt)}}}),getTokenAt:function(de,pe){return Yi(this,de,pe)},getLineTokens:function(de,pe){return Yi(this,Zt(de),pe,!0)},getTokenTypeAt:function(de){de=Mi(this.doc,de);var pe=Tr(this,_t(this.doc,de.line)),Ne=0,Ze=(pe.length-1)/2,lt=de.ch,ot;if(lt==0)ot=pe[2];else for(;;){var Dt=Ne+Ze>>1;if((Dt?pe[Dt*2-1]:0)>=lt)Ze=Dt;else if(pe[Dt*2+1]<lt)Ne=Dt+1;else{ot=pe[Dt*2+2];break}}var kn=ot?ot.indexOf("overlay "):-1;return kn<0?ot:kn==0?null:ot.slice(0,kn-1)},getModeAt:function(de){var pe=this.doc.mode;return pe.innerMode?ie.innerMode(pe,this.getTokenAt(de).state).mode:pe},getHelper:function(de,pe){return this.getHelpers(de,pe)[0]},getHelpers:function(de,pe){var Ne=[];if(!he.hasOwnProperty(pe))return Ne;var Ze=he[pe],lt=this.getModeAt(de);if(typeof lt[pe]=="string")Ze[lt[pe]]&&Ne.push(Ze[lt[pe]]);else if(lt[pe])for(var ot=0;ot<lt[pe].length;ot++){var Dt=Ze[lt[pe][ot]];Dt&&Ne.push(Dt)}else lt.helperType&&Ze[lt.helperType]?Ne.push(Ze[lt.helperType]):Ze[lt.name]&&Ne.push(Ze[lt.name]);for(var kn=0;kn<Ze._global.length;kn++){var Gt=Ze._global[kn];Gt.pred(lt,this)&&Lt(Ne,Gt.val)==-1&&Ne.push(Gt.val)}return Ne},getStateAfter:function(de,pe){var Ne=this.doc;return de=Pi(Ne,de==null?Ne.first+Ne.size-1:de),br(this,de+1,pe).state},cursorCoords:function(de,pe){var Ne,Ze=this.doc.sel.primary();return de==null?Ne=Ze.head:typeof de=="object"?Ne=Mi(this.doc,de):Ne=de?Ze.from():Ze.to(),Fa(this,Ne,pe||"page")},charCoords:function(de,pe){return Bs(this,Mi(this.doc,de),pe||"page")},coordsChar:function(de,pe){return de=Ks(this,de,pe||"page"),El(this,de.left,de.top)},lineAtHeight:function(de,pe){return de=Ks(this,{top:de,left:0},pe||"page").top,sn(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,pe,Ne){var Ze=!1,lt;if(typeof de=="number"){var ot=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>ot&&(de=ot,Ze=!0),lt=_t(this.doc,de)}else lt=de;return xs(this,lt,{top:0,left:0},pe||"page",Ne||Ze).top+(Ze?this.doc.height-kr(lt):0)},defaultTextHeight:function(){return $l(this.display)},defaultCharWidth:function(){return jl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(de,pe,Ne,Ze,lt){var ot=this.display;de=Fa(this,Mi(this.doc,de));var Dt=de.bottom,kn=de.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),ot.sizer.appendChild(pe),Ze=="over")Dt=de.top;else if(Ze=="above"||Ze=="near"){var Gt=Math.max(ot.wrapper.clientHeight,this.doc.height),li=Math.max(ot.sizer.clientWidth,ot.lineSpace.clientWidth);(Ze=="above"||de.bottom+pe.offsetHeight>Gt)&&de.top>pe.offsetHeight?Dt=de.top-pe.offsetHeight:de.bottom+pe.offsetHeight<=Gt&&(Dt=de.bottom),kn+pe.offsetWidth>li&&(kn=li-pe.offsetWidth)}pe.style.top=Dt+"px",pe.style.left=pe.style.right="",lt=="right"?(kn=ot.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(lt=="left"?kn=0:lt=="middle"&&(kn=(ot.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=kn+"px"),Ne&&co(this,{left:kn,top:Dt,right:kn+pe.offsetWidth,bottom:Dt+pe.offsetHeight})},triggerOnKeyDown:Yn(yf),triggerOnKeyPress:Yn(Ec),triggerOnKeyUp:Sf,triggerOnMouseDown:Yn(Hc),execCommand:function(de){if(Dl.hasOwnProperty(de))return Dl[de].call(null,this)},triggerElectric:Yn(function(de){dp(this,de)}),findPosH:function(de,pe,Ne,Ze){var lt=1;pe<0&&(lt=-1,pe=-pe);for(var ot=Mi(this.doc,de),Dt=0;Dt<pe&&(ot=Jf(this.doc,ot,lt,Ne,Ze),!ot.hitSide);++Dt);return ot},moveH:Yn(function(de,pe){var Ne=this;this.extendSelectionsBy(function(Ze){return Ne.display.shift||Ne.doc.extend||Ze.empty()?Jf(Ne.doc,Ze.head,de,pe,Ne.options.rtlMoveVisually):de<0?Ze.from():Ze.to()},nn)}),deleteH:Yn(function(de,pe){var Ne=this.doc.sel,Ze=this.doc;Ne.somethingSelected()?Ze.replaceSelection("",null,"+delete"):Hl(this,function(lt){var ot=Jf(Ze,lt.head,de,pe,!1);return de<0?{from:ot,to:lt.head}:{from:lt.head,to:ot}})}),findPosV:function(de,pe,Ne,Ze){var lt=1,ot=Ze;pe<0&&(lt=-1,pe=-pe);for(var Dt=Mi(this.doc,de),kn=0;kn<pe;++kn){var Gt=Fa(this,Dt,"div");if(ot==null?ot=Gt.left:Gt.left=ot,Dt=vh(this,Gt,lt,Ne),Dt.hitSide)break}return Dt},moveV:Yn(function(de,pe){var Ne=this,Ze=this.doc,lt=[],ot=!this.display.shift&&!Ze.extend&&Ze.sel.somethingSelected();if(Ze.extendSelectionsBy(function(kn){if(ot)return de<0?kn.from():kn.to();var Gt=Fa(Ne,kn.head,"div");kn.goalColumn!=null&&(Gt.left=kn.goalColumn),lt.push(Gt.left);var li=vh(Ne,Gt,de,pe);return pe=="page"&&kn==Ze.sel.primary()&&mo(Ne,Bs(Ne,li,"div").top-Gt.top),li},nn),lt.length)for(var Dt=0;Dt<Ze.sel.ranges.length;Dt++)Ze.sel.ranges[Dt].goalColumn=lt[Dt]}),findWordAt:function(de){var pe=this.doc,Ne=_t(pe,de.line).text,Ze=de.ch,lt=de.ch;if(Ne){var ot=this.getHelper(de,"wordChars");(de.sticky=="before"||lt==Ne.length)&&Ze?--Ze:++lt;for(var Dt=Ne.charAt(Ze),kn=ke(Dt,ot)?function(Gt){return ke(Gt,ot)}:/\s/.test(Dt)?function(Gt){return/\s/.test(Gt)}:function(Gt){return!/\s/.test(Gt)&&!ke(Gt)};Ze>0&&kn(Ne.charAt(Ze-1));)--Ze;for(;lt<Ne.length&&kn(Ne.charAt(lt));)++lt}return new Br(Zt(de.line,Ze),Zt(de.line,lt))},toggleOverwrite:function(de){de!=null&&de==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Wt(this.display.cursorDiv,"CodeMirror-overwrite"):Ie(this.display.cursorDiv,"CodeMirror-overwrite"),wn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Xe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Yn(function(de,pe){ho(this,de,pe)}),getScrollInfo:function(){var de=this.display.scroller;return{left:de.scrollLeft,top:de.scrollTop,height:de.scrollHeight-rl(this)-this.display.barHeight,width:de.scrollWidth-rl(this)-this.display.barWidth,clientHeight:oc(this),clientWidth:Sl(this)}},scrollIntoView:Yn(function(de,pe){de==null?(de={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof de=="number"?de={from:Zt(de,0),to:null}:de.from==null&&(de={from:de,to:null}),de.to||(de.to=de.from),de.margin=pe||0,de.from.line!=null?ur(this,de):ea(this,de.from,de.to,de.margin)}),setSize:Yn(function(de,pe){var Ne=this,Ze=function(ot){return typeof ot=="number"||/^\d+$/.test(String(ot))?ot+"px":ot};de!=null&&(this.display.wrapper.style.width=Ze(de)),pe!=null&&(this.display.wrapper.style.height=Ze(pe)),this.options.lineWrapping&&Cs(this);var lt=this.display.viewFrom;this.doc.iter(lt,this.display.viewTo,function(ot){if(ot.widgets){for(var Dt=0;Dt<ot.widgets.length;Dt++)if(ot.widgets[Dt].noHScroll){va(Ne,lt,"widget");break}}++lt}),this.curOp.forceUpdate=!0,wn(this,"refresh",this)}),operation:function(de){return hn(this,de)},startOperation:function(){return Oa(this)},endOperation:function(){return Is(this)},refresh:Yn(function(){var de=this.display.cachedTextHeight;ws(this),this.curOp.forceUpdate=!0,Ss(this),ho(this,this.doc.scrollLeft,this.doc.scrollTop),Or(this.display),(de==null||Math.abs(de-$l(this.display))>.5||this.options.lineWrapping)&&Io(this),wn(this,"refresh",this)}),swapDoc:Yn(function(de){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),Ro(this,de),Ss(this),this.display.input.reset(),ho(this,de.scrollLeft,de.scrollTop),this.curOp.forceScroll=!0,Hi(this,"swapDoc",this,pe),pe}),phrase:function(de){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,de)?pe[de]:de},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}},Vi(ie),ie.registerHelper=function(de,pe,Ne){he.hasOwnProperty(de)||(he[de]=ie[de]={_global:[]}),he[de][pe]=Ne},ie.registerGlobalHelper=function(de,pe,Ne,Ze){ie.registerHelper(de,pe,Ze),he[de]._global.push({pred:Ne,val:Ze})}}function Jf(ie,ae,he,de,pe){var Ne=ae,Ze=he,lt=_t(ie,ae.line),ot=pe&&ie.direction=="rtl"?-he:he;function Dt(){var Eo=ae.line+ot;return Eo<ie.first||Eo>=ie.first+ie.size?!1:(ae=new Zt(Eo,ae.ch,ae.sticky),lt=_t(ie,Eo))}function kn(Eo){var fo;if(de=="codepoint"){var jo=lt.text.charCodeAt(ae.ch+(de>0?0:-1));isNaN(jo)?fo=null:fo=new Zt(ae.line,Math.max(0,Math.min(lt.text.length,ae.ch+he*(jo>=55296&&jo<56320?2:1))),-he)}else pe?fo=Es(ie.cm,lt,ae,he):fo=sl(lt,ae,he);if(fo==null)if(!Eo&&Dt())ae=Ya(pe,ie.cm,lt,ae.line,ot);else return!1;else ae=fo;return!0}if(de=="char"||de=="codepoint")kn();else if(de=="column")kn(!0);else if(de=="word"||de=="group")for(var Gt=null,li=de=="group",ii=ie.cm&&ie.cm.getHelper(ae,"wordChars"),er=!0;!(he<0&&!kn(!er));er=!1){var or=lt.text.charAt(ae.ch)||`
`,Ar=ke(or,ii)?"w":li&&or==`
`?"n":!li||/\s/.test(or)?null:"p";if(li&&!er&&!Ar&&(Ar="s"),Gt&&Gt!=Ar){he<0&&(he=1,kn(),ae.sticky="after");break}if(Ar&&(Gt=Ar),he>0&&!kn(!er))break}var _r=Wu(ie,ae,Ne,Ze,!0);return wi(Ne,_r)&&(_r.hitSide=!0),_r}function vh(ie,ae,he,de){var pe=ie.doc,Ne=ae.left,Ze;if(de=="page"){var lt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ot=Math.max(lt-.5*$l(ie.display),3);Ze=(he>0?ae.bottom:ae.top)+he*ot}else de=="line"&&(Ze=he>0?ae.bottom+3:ae.top-3);for(var Dt;Dt=El(ie,Ne,Ze),!!Dt.outside;){if(he<0?Ze<=0:Ze>=pe.height){Dt.hitSide=!0;break}Ze+=he*5}return Dt}var zs=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zs.prototype.init=function(ie){var ae=this,he=this,de=he.cm,pe=he.div=ie.lineDiv;fp(pe,de.options.spellcheck,de.options.autocorrect,de.options.autocapitalize);function Ne(lt){for(var ot=lt.target;ot;ot=ot.parentNode){if(ot==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ot.className))break}return!1}qt(pe,"paste",function(lt){!Ne(lt)||vi(de,lt)||cp(lt,de)||qe<=11&&setTimeout(Jn(de,function(){return ae.updateFromDOM()}),20)}),qt(pe,"compositionstart",function(lt){ae.composing={data:lt.data,done:!1}}),qt(pe,"compositionupdate",function(lt){ae.composing||(ae.composing={data:lt.data,done:!1})}),qt(pe,"compositionend",function(lt){ae.composing&&(lt.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),qt(pe,"touchstart",function(){return he.forceCompositionEnd()}),qt(pe,"input",function(){ae.composing||ae.readFromDOMSoon()});function Ze(lt){if(!(!Ne(lt)||vi(de,lt))){if(de.somethingSelected())Vh({lineWise:!1,text:de.getSelections()}),lt.type=="cut"&&de.replaceSelection("",null,"cut");else if(de.options.lineWiseCopyCut){var ot=hp(de);Vh({lineWise:!0,text:ot.text}),lt.type=="cut"&&de.operation(function(){de.setSelections(ot.ranges,0,Nt),de.replaceSelection("",null,"cut")})}else return;if(lt.clipboardData){lt.clipboardData.clearData();var Dt=$u.text.join(`
`);if(lt.clipboardData.setData("Text",Dt),lt.clipboardData.getData("Text")==Dt){lt.preventDefault();return}}var kn=gp(),Gt=kn.firstChild;de.display.lineSpace.insertBefore(kn,de.display.lineSpace.firstChild),Gt.value=$u.text.join(`
`);var li=document.activeElement;jt(Gt),setTimeout(function(){de.display.lineSpace.removeChild(kn),li.focus(),li==pe&&he.showPrimarySelection()},50)}}qt(pe,"copy",Ze),qt(pe,"cut",Ze)},zs.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},zs.prototype.prepareSelection=function(){var ie=un(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},zs.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},zs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zs.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,he=ae.doc.sel.primary(),de=he.from(),pe=he.to();if(ae.display.viewTo==ae.display.viewFrom||de.line>=ae.display.viewTo||pe.line<ae.display.viewFrom){ie.removeAllRanges();return}var Ne=Qf(ae,ie.anchorNode,ie.anchorOffset),Ze=Qf(ae,ie.focusNode,ie.focusOffset);if(!(Ne&&!Ne.bad&&Ze&&!Ze.bad&&rn(ci(Ne,Ze),de)==0&&rn(yi(Ne,Ze),pe)==0)){var lt=ae.display.view,ot=de.line>=ae.display.viewFrom&&Pg(ae,de)||{node:lt[0].measure.map[2],offset:0},Dt=pe.line<ae.display.viewTo&&Pg(ae,pe);if(!Dt){var kn=lt[lt.length-1].measure,Gt=kn.maps?kn.maps[kn.maps.length-1]:kn.map;Dt={node:Gt[Gt.length-1],offset:Gt[Gt.length-2]-Gt[Gt.length-3]}}if(!ot||!Dt){ie.removeAllRanges();return}var li=ie.rangeCount&&ie.getRangeAt(0),ii;try{ii=Je(ot.node,ot.offset,Dt.offset,Dt.node)}catch(er){}ii&&(!ye&&ae.state.focused?(ie.collapse(ot.node,ot.offset),ii.collapsed||(ie.removeAllRanges(),ie.addRange(ii))):(ie.removeAllRanges(),ie.addRange(ii)),li&&ie.anchorNode==null?ie.addRange(li):ye&&this.startGracePeriod()),this.rememberSelection()}},zs.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},zs.prototype.showMultipleSelections=function(ie){Ke(this.cm.display.cursorDiv,ie.cursors),Ke(this.cm.display.selectionDiv,ie.selection)},zs.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},zs.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return kt(this.div,ae)},zs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zs.prototype.blur=function(){this.div.blur()},zs.prototype.getField=function(){return this.div},zs.prototype.supportsTouch=function(){return!0},zs.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():hn(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},zs.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},zs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&Et&&this.cm.display.gutterSpecs.length&&pp(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var he=Qf(ae,ie.anchorNode,ie.anchorOffset),de=Qf(ae,ie.focusNode,ie.focusOffset);he&&de&&hn(ae,function(){as(ae.doc,_o(he,de),Nt),(he.bad||de.bad)&&(ae.curOp.selectionChanged=!0)})}}},zs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,he=ie.doc.sel.primary(),de=he.from(),pe=he.to();if(de.ch==0&&de.line>ie.firstLine()&&(de=Zt(de.line-1,_t(ie.doc,de.line-1).length)),pe.ch==_t(ie.doc,pe.line).text.length&&pe.line<ie.lastLine()&&(pe=Zt(pe.line+1,0)),de.line<ae.viewFrom||pe.line>ae.viewTo-1)return!1;var Ne,Ze,lt;de.line==ae.viewFrom||(Ne=Il(ie,de.line))==0?(Ze=ct(ae.view[0].line),lt=ae.view[0].node):(Ze=ct(ae.view[Ne].line),lt=ae.view[Ne-1].node.nextSibling);var ot=Il(ie,pe.line),Dt,kn;if(ot==ae.view.length-1?(Dt=ae.viewTo-1,kn=ae.lineDiv.lastChild):(Dt=ct(ae.view[ot+1].line)-1,kn=ae.view[ot+1].node.previousSibling),!lt)return!1;for(var Gt=ie.doc.splitLines(Cf(ie,lt,kn,Ze,Dt)),li=It(ie.doc,Zt(Ze,0),Zt(Dt,_t(ie.doc,Dt).text.length));Gt.length>1&&li.length>1;)if(mt(Gt)==mt(li))Gt.pop(),li.pop(),Dt--;else if(Gt[0]==li[0])Gt.shift(),li.shift(),Ze++;else break;for(var ii=0,er=0,or=Gt[0],Ar=li[0],_r=Math.min(or.length,Ar.length);ii<_r&&or.charCodeAt(ii)==Ar.charCodeAt(ii);)++ii;for(var Eo=mt(Gt),fo=mt(li),jo=Math.min(Eo.length-(Gt.length==1?ii:0),fo.length-(li.length==1?ii:0));er<jo&&Eo.charCodeAt(Eo.length-er-1)==fo.charCodeAt(fo.length-er-1);)++er;if(Gt.length==1&&li.length==1&&Ze==de.line)for(;ii&&ii>de.ch&&Eo.charCodeAt(Eo.length-er-1)==fo.charCodeAt(fo.length-er-1);)ii--,er++;Gt[Gt.length-1]=Eo.slice(0,Eo.length-er).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(ii).replace(/\u200b+$/,"");var da=Zt(Ze,ii),uo=Zt(Dt,li.length?mt(li).length-er:0);if(Gt.length>1||Gt[0]||rn(da,uo))return sc(ie.doc,Gt,da,uo,"+input"),!0},zs.prototype.ensurePolled=function(){this.forceCompositionEnd()},zs.prototype.reset=function(){this.forceCompositionEnd()},zs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zs.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},zs.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&hn(this.cm,function(){return ws(ie.cm)})},zs.prototype.setUneditable=function(ie){ie.contentEditable="false"},zs.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Jn(this.cm,Xf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},zs.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},zs.prototype.onContextMenu=function(){},zs.prototype.resetPosition=function(){},zs.prototype.needsContentAttribute=!0;function Pg(ie,ae){var he=zl(ie,ae.line);if(!he||he.hidden)return null;var de=_t(ie.doc,ae.line),pe=xc(he,de,ae.line),Ne=En(de,ie.doc.direction),Ze="left";if(Ne){var lt=dt(Ne,ae.ch);Ze=lt%2?"right":"left"}var ot=wc(pe.map,ae.ch,Ze);return ot.offset=ot.collapse=="right"?ot.end:ot.start,ot}function pp(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Pf(ie,ae){return ae&&(ie.bad=!0),ie}function Cf(ie,ae,he,de,pe){var Ne="",Ze=!1,lt=ie.doc.lineSeparator(),ot=!1;function Dt(ii){return function(er){return er.id==ii}}function kn(){Ze&&(Ne+=lt,ot&&(Ne+=lt),Ze=ot=!1)}function Gt(ii){ii&&(kn(),Ne+=ii)}function li(ii){if(ii.nodeType==1){var er=ii.getAttribute("cm-text");if(er){Gt(er);return}var or=ii.getAttribute("cm-marker"),Ar;if(or){var _r=ie.findMarks(Zt(de,0),Zt(pe+1,0),Dt(+or));_r.length&&(Ar=_r[0].find(0))&&Gt(It(ie.doc,Ar.from,Ar.to).join(lt));return}if(ii.getAttribute("contenteditable")=="false")return;var Eo=/^(pre|div|p|li|table|br)$/i.test(ii.nodeName);if(!/^br$/i.test(ii.nodeName)&&ii.textContent.length==0)return;Eo&&kn();for(var fo=0;fo<ii.childNodes.length;fo++)li(ii.childNodes[fo]);/^(pre|p)$/i.test(ii.nodeName)&&(ot=!0),Eo&&(Ze=!0)}else ii.nodeType==3&&Gt(ii.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;li(ae),ae!=he;)ae=ae.nextSibling,ot=!1;return Ne}function Qf(ie,ae,he){var de;if(ae==ie.display.lineDiv){if(de=ie.display.lineDiv.childNodes[he],!de)return Pf(ie.clipPos(Zt(ie.display.viewTo-1)),!0);ae=null,he=0}else for(de=ae;;de=de.parentNode){if(!de||de==ie.display.lineDiv)return null;if(de.parentNode&&de.parentNode==ie.display.lineDiv)break}for(var pe=0;pe<ie.display.view.length;pe++){var Ne=ie.display.view[pe];if(Ne.node==de)return fm(Ne,ae,he)}}function fm(ie,ae,he){var de=ie.text.firstChild,pe=!1;if(!ae||!kt(de,ae))return Pf(Zt(ct(ie.line),0),!0);if(ae==de&&(pe=!0,ae=de.childNodes[he],he=0,!ae)){var Ne=ie.rest?mt(ie.rest):ie.line;return Pf(Zt(ct(Ne),Ne.text.length),pe)}var Ze=ae.nodeType==3?ae:null,lt=ae;for(!Ze&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Ze=ae.firstChild,he&&(he=Ze.nodeValue.length));lt.parentNode!=de;)lt=lt.parentNode;var ot=ie.measure,Dt=ot.maps;function kn(Ar,_r,Eo){for(var fo=-1;fo<(Dt?Dt.length:0);fo++)for(var jo=fo<0?ot.map:Dt[fo],da=0;da<jo.length;da+=3){var uo=jo[da+2];if(uo==Ar||uo==_r){var Ma=ct(fo<0?ie.line:ie.rest[fo]),$s=jo[da]+Eo;return(Eo<0||uo!=Ar)&&($s=jo[da+(Eo?1:0)]),Zt(Ma,$s)}}}var Gt=kn(Ze,lt,he);if(Gt)return Pf(Gt,pe);for(var li=lt.nextSibling,ii=Ze?Ze.nodeValue.length-he:0;li;li=li.nextSibling){if(Gt=kn(li,li.firstChild,0),Gt)return Pf(Zt(Gt.line,Gt.ch-ii),pe);ii+=li.textContent.length}for(var er=lt.previousSibling,or=he;er;er=er.previousSibling){if(Gt=kn(er,er.firstChild,-1),Gt)return Pf(Zt(Gt.line,Gt.ch+or),pe);or+=er.textContent.length}}var Wl=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new Re,this.hasSelection=!1,this.composing=null};Wl.prototype.init=function(ie){var ae=this,he=this,de=this.cm;this.createField(ie);var pe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Me&&(pe.style.width="0px"),qt(pe,"input",function(){$e&&qe>=9&&ae.hasSelection&&(ae.hasSelection=null),he.poll()}),qt(pe,"paste",function(Ze){vi(de,Ze)||cp(Ze,de)||(de.state.pasteIncoming=+new Date,he.fastPoll())});function Ne(Ze){if(!vi(de,Ze)){if(de.somethingSelected())Vh({lineWise:!1,text:de.getSelections()});else if(de.options.lineWiseCopyCut){var lt=hp(de);Vh({lineWise:!0,text:lt.text}),Ze.type=="cut"?de.setSelections(lt.ranges,null,Nt):(he.prevInput="",pe.value=lt.text.join(`
`),jt(pe))}else return;Ze.type=="cut"&&(de.state.cutIncoming=+new Date)}}qt(pe,"cut",Ne),qt(pe,"copy",Ne),qt(ie.scroller,"paste",function(Ze){if(!(Nl(ie,Ze)||vi(de,Ze))){if(!pe.dispatchEvent){de.state.pasteIncoming=+new Date,he.focus();return}var lt=new Event("paste");lt.clipboardData=Ze.clipboardData,pe.dispatchEvent(lt)}}),qt(ie.lineSpace,"selectstart",function(Ze){Nl(ie,Ze)||zi(Ze)}),qt(pe,"compositionstart",function(){var Ze=de.getCursor("from");he.composing&&he.composing.range.clear(),he.composing={start:Ze,range:de.markText(Ze,de.getCursor("to"),{className:"CodeMirror-composing"})}}),qt(pe,"compositionend",function(){he.composing&&(he.poll(),he.composing.range.clear(),he.composing=null)})},Wl.prototype.createField=function(ie){this.wrapper=gp(),this.textarea=this.wrapper.firstChild},Wl.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Wl.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,he=ie.doc,de=un(ie);if(ie.options.moveInputWithCursor){var pe=Fa(ie,he.sel.primary().head,"div"),Ne=ae.wrapper.getBoundingClientRect(),Ze=ae.lineDiv.getBoundingClientRect();de.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,pe.top+Ze.top-Ne.top)),de.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,pe.left+Ze.left-Ne.left))}return de},Wl.prototype.showSelection=function(ie){var ae=this.cm,he=ae.display;Ke(he.cursorDiv,ie.cursors),Ke(he.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Wl.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var he=ae.getSelection();this.textarea.value=he,ae.state.focused&&jt(this.textarea),$e&&qe>=9&&(this.hasSelection=he)}else ie||(this.prevInput=this.textarea.value="",$e&&qe>=9&&(this.hasSelection=null))}},Wl.prototype.getField=function(){return this.textarea},Wl.prototype.supportsTouch=function(){return!1},Wl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||Xe()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Wl.prototype.blur=function(){this.textarea.blur()},Wl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wl.prototype.receivedFocus=function(){this.slowPoll()},Wl.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Wl.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function he(){var de=ae.poll();!de&&!ie?(ie=!0,ae.polling.set(60,he)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,he)},Wl.prototype.poll=function(){var ie=this,ae=this.cm,he=this.textarea,de=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ae(he)&&!de&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var pe=he.value;if(pe==de&&!ae.somethingSelected())return!1;if($e&&qe>=9&&this.hasSelection===pe||ce&&/[\uf700-\uf7ff]/.test(pe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Ne=pe.charCodeAt(0);if(Ne==8203&&!de&&(de="\u200B"),Ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ze=0,lt=Math.min(de.length,pe.length);Ze<lt&&de.charCodeAt(Ze)==pe.charCodeAt(Ze);)++Ze;return hn(ae,function(){Xf(ae,pe.slice(Ze),de.length-Ze,null,ie.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
`)>-1?he.value=ie.prevInput="":ie.prevInput=pe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wl.prototype.onKeyPress=function(){$e&&qe>=9&&(this.hasSelection=null),this.fastPoll()},Wl.prototype.onContextMenu=function(ie){var ae=this,he=ae.cm,de=he.display,pe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Ne=wl(he,ie),Ze=de.scroller.scrollTop;if(!Ne||et)return;var lt=he.options.resetSelectionOnContextMenu;lt&&he.doc.sel.contains(Ne)==-1&&Jn(he,as)(he.doc,_o(Ne),Nt);var ot=pe.style.cssText,Dt=ae.wrapper.style.cssText,kn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-kn.top-5)+"px; left: "+(ie.clientX-kn.left-5)+`px;
z-index: 1000; background: `+($e?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Gt;De&&(Gt=window.scrollY),de.input.focus(),De&&window.scrollTo(null,Gt),de.input.reset(),he.somethingSelected()||(pe.value=ae.prevInput=" "),ae.contextMenuPending=ii,de.selForContextMenu=he.doc.sel,clearTimeout(de.detectingSelectAll);function li(){if(pe.selectionStart!=null){var or=he.somethingSelected(),Ar="\u200B"+(or?pe.value:"");pe.value="\u21DA",pe.value=Ar,ae.prevInput=or?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=Ar.length,de.selForContextMenu=he.doc.sel}}function ii(){if(ae.contextMenuPending==ii&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=Dt,pe.style.cssText=ot,$e&&qe<9&&de.scrollbars.setScrollTop(de.scroller.scrollTop=Ze),pe.selectionStart!=null)){(!$e||$e&&qe<9)&&li();var or=0,Ar=function(){de.selForContextMenu==he.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&ae.prevInput=="\u200B"?Jn(he,qa)(he):or++<10?de.detectingSelectAll=setTimeout(Ar,500):(de.selForContextMenu=null,de.input.reset())};de.detectingSelectAll=setTimeout(Ar,200)}}if($e&&qe>=9&&li(),Fe){Yr(ie);var er=function(){qn(window,"mouseup",er),setTimeout(ii,20)};qt(window,"mouseup",er)}else setTimeout(ii,50)},Wl.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Wl.prototype.setUneditable=function(){},Wl.prototype.needsContentAttribute=!1;function gm(ie,ae){if(ae=ae?Ut(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var he=Xe();ae.autofocus=he==ie||ie.getAttribute("autofocus")!=null&&he==document.body}function de(){ie.value=lt.getValue()}var pe;if(ie.form&&(qt(ie.form,"submit",de),!ae.leaveSubmitMethodAlone)){var Ne=ie.form;pe=Ne.submit;try{var Ze=Ne.submit=function(){de(),Ne.submit=pe,Ne.submit(),Ne.submit=Ze}}catch(ot){}}ae.finishInit=function(ot){ot.save=de,ot.getTextArea=function(){return ie},ot.toTextArea=function(){ot.toTextArea=isNaN,de(),ie.parentNode.removeChild(ot.getWrapperElement()),ie.style.display="",ie.form&&(qn(ie.form,"submit",de),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var lt=us(function(ot){return ie.parentNode.insertBefore(ot,ie.nextSibling)},ae);return lt}function bf(ie){ie.off=qn,ie.on=qt,ie.wheelEventPixels=lo,ie.Doc=kl,ie.splitLines=ti,ie.countColumn=ft,ie.findColumn=On,ie.isWordChar=Be,ie.Pass=mn,ie.signal=wn,ie.Line=Jr,ie.changeEnd=na,ie.scrollbarModel=os,ie.Pos=Zt,ie.cmpPos=rn,ie.modes=Qn,ie.mimeModes=Zn,ie.resolveMode=vn,ie.getMode=xt,ie.modeExtensions=wt,ie.extendMode=ze,ie.copyState=Yt,ie.startState=ht,ie.innerMode=on,ie.commands=Dl,ie.keyMap=eu,ie.keyName=dh,ie.isModifierKey=Ed,ie.lookupKey=Su,ie.normalizeKeyMap=Yd,ie.StringStream=Qe,ie.SharedTextMarker=bc,ie.TextMarker=gn,ie.LineWidget=_s,ie.e_preventDefault=zi,ie.e_stopPropagation=Bn,ie.e_stop=Yr,ie.addClass=Wt,ie.contains=kt,ie.rmClass=Ie,ie.keyNames=lc}ph(us),mh(us);var Qd="iter insert remove copy getEditor constructor".split(" ");for(var _f in kl.prototype)kl.prototype.hasOwnProperty(_f)&&Lt(Qd,_f)<0&&(us.prototype[_f]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(kl.prototype[_f]));return Vi(kl),us.inputStyles={textarea:Wl,contenteditable:zs},us.defineMode=function(ie){!us.defaults.mode&&ie!="null"&&(us.defaults.mode=ie),an.apply(this,arguments)},us.defineMIME=Jt,us.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),us.defineMIME("text/plain","null"),us.defineExtension=function(ie,ae){us.prototype[ie]=ae},us.defineDocExtension=function(ie,ae){kl.prototype[ie]=ae},us.fromTextArea=gm,bf(us),us.version="5.58.2",us})},25419:function(Rn,Mn,ve){(function(ye){ye(ve(89780),ve(15525),ve(98101))})(function(ye){"use strict";ye.defineMode("markdown",function(Oe,He){var Rt=ye.getMode(Oe,"text/html"),$e=Rt.name=="null";function qe(ft){if(ye.findModeByName){var Re=ye.findModeByName(ft);Re&&(ft=Re.mime||Re.mimes[0])}var Lt=ye.getMode(Oe,ft);return Lt.name=="null"?null:Lt}He.highlightFormatting===void 0&&(He.highlightFormatting=!1),He.maxBlockquoteDepth===void 0&&(He.maxBlockquoteDepth=0),He.taskLists===void 0&&(He.taskLists=!1),He.strikethrough===void 0&&(He.strikethrough=!1),He.emoji===void 0&&(He.emoji=!1),He.fencedCodeBlockHighlighting===void 0&&(He.fencedCodeBlockHighlighting=!0),He.fencedCodeBlockDefaultMode===void 0&&(He.fencedCodeBlockDefaultMode="text/plain"),He.xml===void 0&&(He.xml=!0),He.tokenTypeOverrides===void 0&&(He.tokenTypeOverrides={});var De={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 Tt in De)De.hasOwnProperty(Tt)&&He.tokenTypeOverrides[Tt]&&(De[Tt]=He.tokenTypeOverrides[Tt]);var Et=/^([*\-_])(?:\s*\1){2,}\s*$/,et=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ot=/^\[(x| )\](?=\s)/i,it=He.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Pt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Me=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,ce=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,se=" ";function ge(ft,Re,Lt){return Re.f=Re.inline=Lt,Lt(ft,Re)}function me(ft,Re,Lt){return Re.f=Re.block=Lt,Lt(ft,Re)}function Ce(ft){return!ft||!/\S/.test(ft.string)}function Fe(ft){if(ft.linkTitle=!1,ft.linkHref=!1,ft.linkText=!1,ft.em=!1,ft.strong=!1,ft.strikethrough=!1,ft.quote=0,ft.indentedCode=!1,ft.f==Ie){var Re=$e;if(!Re){var Lt=ye.innerMode(Rt,ft.htmlState);Re=Lt.mode.name=="xml"&&Lt.state.tagStart===null&&!Lt.state.context&&Lt.state.tokenize.isInText}Re&&(ft.f=pt,ft.block=Pe,ft.htmlState=null)}return ft.trailingSpace=0,ft.trailingSpaceNewLine=!1,ft.prevLine=ft.thisLine,ft.thisLine={stream:null},null}function Pe(ft,Re){var Lt=ft.column()===Re.indentation,yn=Ce(Re.prevLine.stream),mn=Re.indentedCode,Nt=Re.prevLine.hr,en=Re.list!==!1,nn=(Re.listStack[Re.listStack.length-1]||0)+3;Re.indentedCode=!1;var On=Re.indentation;if(Re.indentationDiff===null&&(Re.indentationDiff=Re.indentation,en)){for(Re.list=null;On<Re.listStack[Re.listStack.length-1];)Re.listStack.pop(),Re.listStack.length?Re.indentation=Re.listStack[Re.listStack.length-1]:Re.list=!1;Re.list!==!1&&(Re.indentationDiff=On-Re.listStack[Re.listStack.length-1])}var dn=!yn&&!Nt&&!Re.prevLine.header&&(!en||!mn)&&!Re.prevLine.fencedCodeEnd,Tn=(Re.list===!1||Nt||yn)&&Re.indentation<=nn&&ft.match(Et),mt=null;if(Re.indentationDiff>=4&&(mn||Re.prevLine.fencedCodeEnd||Re.prevLine.header||yn))return ft.skipToEnd(),Re.indentedCode=!0,De.code;if(ft.eatSpace())return null;if(Lt&&Re.indentation<=nn&&(mt=ft.match(it))&&mt[1].length<=6)return Re.quote=0,Re.header=mt[1].length,Re.thisLine.header=!0,He.highlightFormatting&&(Re.formatting="header"),Re.f=Re.inline,Ke(Re);if(Re.indentation<=nn&&ft.eat(">"))return Re.quote=Lt?1:Re.quote+1,He.highlightFormatting&&(Re.formatting="quote"),ft.eatSpace(),Ke(Re);if(!Tn&&!Re.setext&&Lt&&Re.indentation<=nn&&(mt=ft.match(et))){var Gn=mt[1]?"ol":"ul";return Re.indentation=On+ft.current().length,Re.list=!0,Re.quote=0,Re.listStack.push(Re.indentation),Re.em=!1,Re.strong=!1,Re.code=!1,Re.strikethrough=!1,He.taskLists&&ft.match(Ot,!1)&&(Re.taskList=!0),Re.f=Re.inline,He.highlightFormatting&&(Re.formatting=["list","list-"+Gn]),Ke(Re)}else{if(Lt&&Re.indentation<=nn&&(mt=ft.match(te,!0)))return Re.quote=0,Re.fencedEndRE=new RegExp(mt[1]+"+ *$"),Re.localMode=He.fencedCodeBlockHighlighting&&qe(mt[2]||He.fencedCodeBlockDefaultMode),Re.localMode&&(Re.localState=ye.startState(Re.localMode)),Re.f=Re.block=Ge,He.highlightFormatting&&(Re.formatting="code-block"),Re.code=-1,Ke(Re);if(Re.setext||(!dn||!en)&&!Re.quote&&Re.list===!1&&!Re.code&&!Tn&&!ne.test(ft.string)&&(mt=ft.lookAhead(1))&&(mt=mt.match(Pt)))return Re.setext?(Re.header=Re.setext,Re.setext=0,ft.skipToEnd(),He.highlightFormatting&&(Re.formatting="header")):(Re.header=mt[0].charAt(0)=="="?1:2,Re.setext=Re.header),Re.thisLine.header=!0,Re.f=Re.inline,Ke(Re);if(Tn)return ft.skipToEnd(),Re.hr=!0,Re.thisLine.hr=!0,De.hr;if(ft.peek()==="[")return ge(ft,Re,zt)}return ge(ft,Re,Re.inline)}function Ie(ft,Re){var Lt=Rt.token(ft,Re.htmlState);if(!$e){var yn=ye.innerMode(Rt,Re.htmlState);(yn.mode.name=="xml"&&yn.state.tagStart===null&&!yn.state.context&&yn.state.tokenize.isInText||Re.md_inside&&ft.current().indexOf(">")>-1)&&(Re.f=pt,Re.block=Pe,Re.htmlState=null)}return Lt}function Ge(ft,Re){var Lt=Re.listStack[Re.listStack.length-1]||0,yn=Re.indentation<Lt,mn=Lt+3;if(Re.fencedEndRE&&Re.indentation<=mn&&(yn||ft.match(Re.fencedEndRE))){He.highlightFormatting&&(Re.formatting="code-block");var Nt;return yn||(Nt=Ke(Re)),Re.localMode=Re.localState=null,Re.block=Pe,Re.f=pt,Re.fencedEndRE=null,Re.code=0,Re.thisLine.fencedCodeEnd=!0,yn?me(ft,Re,Re.block):Nt}else return Re.localMode?Re.localMode.token(ft,Re.localState):(ft.skipToEnd(),De.code)}function Ke(ft){var Re=[];if(ft.formatting){Re.push(De.formatting),typeof ft.formatting=="string"&&(ft.formatting=[ft.formatting]);for(var Lt=0;Lt<ft.formatting.length;Lt++)Re.push(De.formatting+"-"+ft.formatting[Lt]),ft.formatting[Lt]==="header"&&Re.push(De.formatting+"-"+ft.formatting[Lt]+"-"+ft.header),ft.formatting[Lt]==="quote"&&(!He.maxBlockquoteDepth||He.maxBlockquoteDepth>=ft.quote?Re.push(De.formatting+"-"+ft.formatting[Lt]+"-"+ft.quote):Re.push("error"))}if(ft.taskOpen)return Re.push("meta"),Re.length?Re.join(" "):null;if(ft.taskClosed)return Re.push("property"),Re.length?Re.join(" "):null;if(ft.linkHref?Re.push(De.linkHref,"url"):(ft.strong&&Re.push(De.strong),ft.em&&Re.push(De.em),ft.strikethrough&&Re.push(De.strikethrough),ft.emoji&&Re.push(De.emoji),ft.linkText&&Re.push(De.linkText),ft.code&&Re.push(De.code),ft.image&&Re.push(De.image),ft.imageAltText&&Re.push(De.imageAltText,"link"),ft.imageMarker&&Re.push(De.imageMarker)),ft.header&&Re.push(De.header,De.header+"-"+ft.header),ft.quote&&(Re.push(De.quote),!He.maxBlockquoteDepth||He.maxBlockquoteDepth>=ft.quote?Re.push(De.quote+"-"+ft.quote):Re.push(De.quote+"-"+He.maxBlockquoteDepth)),ft.list!==!1){var yn=(ft.listStack.length-1)%3;yn?yn===1?Re.push(De.list2):Re.push(De.list3):Re.push(De.list1)}return ft.trailingSpaceNewLine?Re.push("trailing-space-new-line"):ft.trailingSpace&&Re.push("trailing-space-"+(ft.trailingSpace%2?"a":"b")),Re.length?Re.join(" "):null}function Ye(ft,Re){if(ft.match(Me,!0))return Ke(Re)}function pt(ft,Re){var Lt=Re.text(ft,Re);if(typeof Lt!="undefined")return Lt;if(Re.list)return Re.list=null,Ke(Re);if(Re.taskList){var yn=ft.match(Ot,!0)[1]===" ";return yn?Re.taskOpen=!0:Re.taskClosed=!0,He.highlightFormatting&&(Re.formatting="task"),Re.taskList=!1,Ke(Re)}if(Re.taskOpen=!1,Re.taskClosed=!1,Re.header&&ft.match(/^#+$/,!0))return He.highlightFormatting&&(Re.formatting="header"),Ke(Re);var mn=ft.next();if(Re.linkTitle){Re.linkTitle=!1;var Nt=mn;mn==="("&&(Nt=")"),Nt=(Nt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var en="^\\s*(?:[^"+Nt+"\\\\]+|\\\\\\\\|\\\\.)"+Nt;if(ft.match(new RegExp(en),!0))return De.linkHref}if(mn==="`"){var nn=Re.formatting;He.highlightFormatting&&(Re.formatting="code"),ft.eatWhile("`");var On=ft.current().length;if(Re.code==0&&(!Re.quote||On==1))return Re.code=On,Ke(Re);if(On==Re.code){var dn=Ke(Re);return Re.code=0,dn}else return Re.formatting=nn,Ke(Re)}else if(Re.code)return Ke(Re);if(mn==="\\"&&(ft.next(),He.highlightFormatting)){var Tn=Ke(Re),mt=De.formatting+"-escape";return Tn?Tn+" "+mt:mt}if(mn==="!"&&ft.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Re.imageMarker=!0,Re.image=!0,He.highlightFormatting&&(Re.formatting="image"),Ke(Re);if(mn==="["&&Re.imageMarker&&ft.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Re.imageMarker=!1,Re.imageAltText=!0,He.highlightFormatting&&(Re.formatting="image"),Ke(Re);if(mn==="]"&&Re.imageAltText){He.highlightFormatting&&(Re.formatting="image");var Tn=Ke(Re);return Re.imageAltText=!1,Re.image=!1,Re.inline=Re.f=kt,Tn}if(mn==="["&&!Re.image)return Re.linkText&&ft.match(/^.*?\]/)||(Re.linkText=!0,He.highlightFormatting&&(Re.formatting="link")),Ke(Re);if(mn==="]"&&Re.linkText){He.highlightFormatting&&(Re.formatting="link");var Tn=Ke(Re);return Re.linkText=!1,Re.inline=Re.f=ft.match(/\(.*?\)| ?\[.*?\]/,!1)?kt:pt,Tn}if(mn==="<"&&ft.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Re.f=Re.inline=Je,He.highlightFormatting&&(Re.formatting="link");var Tn=Ke(Re);return Tn?Tn+=" ":Tn="",Tn+De.linkInline}if(mn==="<"&&ft.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Re.f=Re.inline=Je,He.highlightFormatting&&(Re.formatting="link");var Tn=Ke(Re);return Tn?Tn+=" ":Tn="",Tn+De.linkEmail}if(He.xml&&mn==="<"&&ft.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Gn=ft.string.indexOf(">",ft.pos);if(Gn!=-1){var xn=ft.string.substring(ft.start,Gn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(xn)&&(Re.md_inside=!0)}return ft.backUp(1),Re.htmlState=ye.startState(Rt),me(ft,Re,Ie)}if(He.xml&&mn==="<"&&ft.match(/^\/\w*?>/))return Re.md_inside=!1,"tag";if(mn==="*"||mn==="_"){for(var tt=1,Ee=ft.pos==1?" ":ft.string.charAt(ft.pos-2);tt<3&&ft.eat(mn);)tt++;var we=ft.peek()||" ",Be=!/\s/.test(we)&&(!ce.test(we)||/\s/.test(Ee)||ce.test(Ee)),ke=!/\s/.test(Ee)&&(!ce.test(Ee)||/\s/.test(we)||ce.test(we)),Se=null,st=null;if(tt%2&&(!Re.em&&Be&&(mn==="*"||!ke||ce.test(Ee))?Se=!0:Re.em==mn&&ke&&(mn==="*"||!Be||ce.test(we))&&(Se=!1)),tt>1&&(!Re.strong&&Be&&(mn==="*"||!ke||ce.test(Ee))?st=!0:Re.strong==mn&&ke&&(mn==="*"||!Be||ce.test(we))&&(st=!1)),st!=null||Se!=null){He.highlightFormatting&&(Re.formatting=Se==null?"strong":st==null?"em":"strong em"),Se===!0&&(Re.em=mn),st===!0&&(Re.strong=mn);var dn=Ke(Re);return Se===!1&&(Re.em=!1),st===!1&&(Re.strong=!1),dn}}else if(mn===" "&&(ft.eat("*")||ft.eat("_"))){if(ft.peek()===" ")return Ke(Re);ft.backUp(1)}if(He.strikethrough){if(mn==="~"&&ft.eatWhile(mn)){if(Re.strikethrough){He.highlightFormatting&&(Re.formatting="strikethrough");var dn=Ke(Re);return Re.strikethrough=!1,dn}else if(ft.match(/^[^\s]/,!1))return Re.strikethrough=!0,He.highlightFormatting&&(Re.formatting="strikethrough"),Ke(Re)}else if(mn===" "&&ft.match(/^~~/,!0)){if(ft.peek()===" ")return Ke(Re);ft.backUp(2)}}if(He.emoji&&mn===":"&&ft.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Re.emoji=!0,He.highlightFormatting&&(Re.formatting="emoji");var At=Ke(Re);return Re.emoji=!1,At}return mn===" "&&(ft.match(/^ +$/,!1)?Re.trailingSpace++:Re.trailingSpace&&(Re.trailingSpaceNewLine=!0)),Ke(Re)}function Je(ft,Re){var Lt=ft.next();if(Lt===">"){Re.f=Re.inline=pt,He.highlightFormatting&&(Re.formatting="link");var yn=Ke(Re);return yn?yn+=" ":yn="",yn+De.linkInline}return ft.match(/^[^>]+/,!0),De.linkInline}function kt(ft,Re){if(ft.eatSpace())return null;var Lt=ft.next();return Lt==="("||Lt==="["?(Re.f=Re.inline=Wt(Lt==="("?")":"]"),He.highlightFormatting&&(Re.formatting="link-string"),Re.linkHref=!0,Ke(Re)):"error"}var Xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Wt(ft){return function(Re,Lt){var yn=Re.next();if(yn===ft){Lt.f=Lt.inline=pt,He.highlightFormatting&&(Lt.formatting="link-string");var mn=Ke(Lt);return Lt.linkHref=!1,mn}return Re.match(Xe[ft]),Lt.linkHref=!0,Ke(Lt)}}function zt(ft,Re){return ft.match(/^([^\]\\]|\\.)*\]:/,!1)?(Re.f=jt,ft.next(),He.highlightFormatting&&(Re.formatting="link"),Re.linkText=!0,Ke(Re)):ge(ft,Re,pt)}function jt(ft,Re){if(ft.match(/^\]:/,!0)){Re.f=Re.inline=Mt,He.highlightFormatting&&(Re.formatting="link");var Lt=Ke(Re);return Re.linkText=!1,Lt}return ft.match(/^([^\]\\]|\\.)+/,!0),De.linkText}function Mt(ft,Re){return ft.eatSpace()?null:(ft.match(/^[^\s]+/,!0),ft.peek()===void 0?Re.linkTitle=!0:ft.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Re.f=Re.inline=pt,De.linkHref+" url")}var Ut={startState:function(){return{f:Pe,prevLine:{stream:null},thisLine:{stream:null},block:Pe,htmlState:null,indentation:0,inline:pt,text:Ye,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(ft){return{f:ft.f,prevLine:ft.prevLine,thisLine:ft.thisLine,block:ft.block,htmlState:ft.htmlState&&ye.copyState(Rt,ft.htmlState),indentation:ft.indentation,localMode:ft.localMode,localState:ft.localMode?ye.copyState(ft.localMode,ft.localState):null,inline:ft.inline,text:ft.text,formatting:!1,linkText:ft.linkText,linkTitle:ft.linkTitle,linkHref:ft.linkHref,code:ft.code,em:ft.em,strong:ft.strong,strikethrough:ft.strikethrough,emoji:ft.emoji,header:ft.header,setext:ft.setext,hr:ft.hr,taskList:ft.taskList,list:ft.list,listStack:ft.listStack.slice(0),quote:ft.quote,indentedCode:ft.indentedCode,trailingSpace:ft.trailingSpace,trailingSpaceNewLine:ft.trailingSpaceNewLine,md_inside:ft.md_inside,fencedEndRE:ft.fencedEndRE}},token:function(ft,Re){if(Re.formatting=!1,ft!=Re.thisLine.stream){if(Re.header=0,Re.hr=!1,ft.match(/^\s*$/,!0))return Fe(Re),null;if(Re.prevLine=Re.thisLine,Re.thisLine={stream:ft},Re.taskList=!1,Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,!Re.localState&&(Re.f=Re.block,Re.f!=Ie)){var Lt=ft.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(Re.indentation=Lt,Re.indentationDiff=null,Lt>0)return null}}return Re.f(ft,Re)},innerMode:function(ft){return ft.block==Ie?{state:ft.htmlState,mode:Rt}:ft.localState?{state:ft.localState,mode:ft.localMode}:{state:ft,mode:Ut}},indent:function(ft,Re,Lt){return ft.block==Ie&&Rt.indent?Rt.indent(ft.htmlState,Re,Lt):ft.localState&&ft.localMode.indent?ft.localMode.indent(ft.localState,Re,Lt):ye.Pass},blankLine:Fe,getType:Ke,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ut},"xml"),ye.defineMIME("text/markdown","markdown"),ye.defineMIME("text/x-markdown","markdown")})},98101:function(Rn,Mn,ve){(function(ye){ye(ve(89780))})(function(ye){"use strict";ye.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 Oe=0;Oe<ye.modeInfo.length;Oe++){var He=ye.modeInfo[Oe];He.mimes&&(He.mime=He.mimes[0])}ye.findModeByMIME=function(Rt){Rt=Rt.toLowerCase();for(var $e=0;$e<ye.modeInfo.length;$e++){var qe=ye.modeInfo[$e];if(qe.mime==Rt)return qe;if(qe.mimes){for(var De=0;De<qe.mimes.length;De++)if(qe.mimes[De]==Rt)return qe}}if(/\+xml$/.test(Rt))return ye.findModeByMIME("application/xml");if(/\+json$/.test(Rt))return ye.findModeByMIME("application/json")},ye.findModeByExtension=function(Rt){Rt=Rt.toLowerCase();for(var $e=0;$e<ye.modeInfo.length;$e++){var qe=ye.modeInfo[$e];if(qe.ext){for(var De=0;De<qe.ext.length;De++)if(qe.ext[De]==Rt)return qe}}},ye.findModeByFileName=function(Rt){for(var $e=0;$e<ye.modeInfo.length;$e++){var qe=ye.modeInfo[$e];if(qe.file&&qe.file.test(Rt))return qe}var De=Rt.lastIndexOf("."),Tt=De>-1&&Rt.substring(De+1,Rt.length);if(Tt)return ye.findModeByExtension(Tt)},ye.findModeByName=function(Rt){Rt=Rt.toLowerCase();for(var $e=0;$e<ye.modeInfo.length;$e++){var qe=ye.modeInfo[$e];if(qe.name.toLowerCase()==Rt)return qe;if(qe.alias){for(var De=0;De<qe.alias.length;De++)if(qe.alias[De].toLowerCase()==Rt)return qe}}}})},67549:function(Rn,Mn,ve){(function(ye){ye(ve(89780))})(function(ye){"use strict";ye.defineMode("stex",function(Oe,He){"use strict";function Rt(Me,te){Me.cmdState.push(te)}function $e(Me){return Me.cmdState.length>0?Me.cmdState[Me.cmdState.length-1]:null}function qe(Me){var te=Me.cmdState.pop();te&&te.closeBracket()}function De(Me){for(var te=Me.cmdState,ne=te.length-1;ne>=0;ne--){var ce=te[ne];if(ce.name!="DEFAULT")return ce}return{styleIdentifier:function(){return null}}}function Tt(Me,te,ne){return function(){this.name=Me,this.bracketNo=0,this.style=te,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Et={};Et.importmodule=Tt("importmodule","tag",["string","builtin"]),Et.documentclass=Tt("documentclass","tag",["","atom"]),Et.usepackage=Tt("usepackage","tag",["atom"]),Et.begin=Tt("begin","tag",["atom"]),Et.end=Tt("end","tag",["atom"]),Et.label=Tt("label","tag",["atom"]),Et.ref=Tt("ref","tag",["atom"]),Et.eqref=Tt("eqref","tag",["atom"]),Et.cite=Tt("cite","tag",["atom"]),Et.bibitem=Tt("bibitem","tag",["atom"]),Et.Bibitem=Tt("Bibitem","tag",["atom"]),Et.RBibitem=Tt("RBibitem","tag",["atom"]),Et.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function et(Me,te){Me.f=te}function Ot(Me,te){var ne;if(Me.match(/^\\[a-zA-Z@]+/)){var ce=Me.current().slice(1);return ne=Et.hasOwnProperty(ce)?Et[ce]:Et.DEFAULT,ne=new ne,Rt(te,ne),et(te,Pt),ne.style}if(Me.match(/^\\[$&%#{}_]/)||Me.match(/^\\[,;!\/\\]/))return"tag";if(Me.match("\\["))return et(te,function(ge,me){return it(ge,me,"\\]")}),"keyword";if(Me.match("\\("))return et(te,function(ge,me){return it(ge,me,"\\)")}),"keyword";if(Me.match("$$"))return et(te,function(ge,me){return it(ge,me,"$$")}),"keyword";if(Me.match("$"))return et(te,function(ge,me){return it(ge,me,"$")}),"keyword";var se=Me.next();if(se=="%")return Me.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=$e(te),ne)ne.closeBracket(se),et(te,Pt);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=Et.DEFAULT,ne=new ne,Rt(te,ne),"bracket"):/\d/.test(se)?(Me.eatWhile(/[\w.%]/),"atom"):(Me.eatWhile(/[\w\-_]/),ne=De(te),ne.name=="begin"&&(ne.argument=Me.current()),ne.styleIdentifier())}function it(Me,te,ne){if(Me.eatSpace())return null;if(ne&&Me.match(ne))return et(te,Ot),"keyword";if(Me.match(/^\\[a-zA-Z@]+/))return"tag";if(Me.match(/^[a-zA-Z]+/))return"variable-2";if(Me.match(/^\\[$&%#{}_]/)||Me.match(/^\\[,;!\/]/)||Me.match(/^[\^_&]/))return"tag";if(Me.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Me.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ce=Me.next();return ce=="{"||ce=="}"||ce=="["||ce=="]"||ce=="("||ce==")"?"bracket":ce=="%"?(Me.skipToEnd(),"comment"):"error"}function Pt(Me,te){var ne=Me.peek(),ce;return ne=="{"||ne=="["?(ce=$e(te),ce.openBracket(ne),Me.eat(ne),et(te,Ot),"bracket"):/[ \t\r]/.test(ne)?(Me.eat(ne),null):(et(te,Ot),qe(te),Ot(Me,te))}return{startState:function(){var Me=He.inMathMode?function(te,ne){return it(te,ne)}:Ot;return{cmdState:[],f:Me}},copyState:function(Me){return{cmdState:Me.cmdState.slice(),f:Me.f}},token:function(Me,te){return te.f(Me,te)},blankLine:function(Me){Me.f=Ot,Me.cmdState.length=0},lineComment:"%"}}),ye.defineMIME("text/x-stex","stex"),ye.defineMIME("text/x-latex","stex")})},15525:function(Rn,Mn,ve){(function(ye){ye(ve(89780))})(function(ye){"use strict";var Oe={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},He={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ye.defineMode("xml",function(Rt,$e){var qe=Rt.indentUnit,De={},Tt=$e.htmlMode?Oe:He;for(var Et in Tt)De[Et]=Tt[Et];for(var Et in $e)De[Et]=$e[Et];var et,Ot;function it(Je,kt){function Xe(jt){return kt.tokenize=jt,jt(Je,kt)}var Wt=Je.next();if(Wt=="<")return Je.eat("!")?Je.eat("[")?Je.match("CDATA[")?Xe(te("atom","]]>")):null:Je.match("--")?Xe(te("comment","-->")):Je.match("DOCTYPE",!0,!0)?(Je.eatWhile(/[\w\._\-]/),Xe(ne(1))):null:Je.eat("?")?(Je.eatWhile(/[\w\._\-]/),kt.tokenize=te("meta","?>"),"meta"):(et=Je.eat("/")?"closeTag":"openTag",kt.tokenize=Pt,"tag bracket");if(Wt=="&"){var zt;return Je.eat("#")?Je.eat("x")?zt=Je.eatWhile(/[a-fA-F\d]/)&&Je.eat(";"):zt=Je.eatWhile(/[\d]/)&&Je.eat(";"):zt=Je.eatWhile(/[\w\.\-:]/)&&Je.eat(";"),zt?"atom":"error"}else return Je.eatWhile(/[^&<]/),null}it.isInText=!0;function Pt(Je,kt){var Xe=Je.next();if(Xe==">"||Xe=="/"&&Je.eat(">"))return kt.tokenize=it,et=Xe==">"?"endTag":"selfcloseTag","tag bracket";if(Xe=="=")return et="equals",null;if(Xe=="<"){kt.tokenize=it,kt.state=me,kt.tagName=kt.tagStart=null;var Wt=kt.tokenize(Je,kt);return Wt?Wt+" tag error":"tag error"}else return/[\'\"]/.test(Xe)?(kt.tokenize=Me(Xe),kt.stringStartCol=Je.column(),kt.tokenize(Je,kt)):(Je.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Me(Je){var kt=function(Xe,Wt){for(;!Xe.eol();)if(Xe.next()==Je){Wt.tokenize=Pt;break}return"string"};return kt.isInAttribute=!0,kt}function te(Je,kt){return function(Xe,Wt){for(;!Xe.eol();){if(Xe.match(kt)){Wt.tokenize=it;break}Xe.next()}return Je}}function ne(Je){return function(kt,Xe){for(var Wt;(Wt=kt.next())!=null;){if(Wt=="<")return Xe.tokenize=ne(Je+1),Xe.tokenize(kt,Xe);if(Wt==">")if(Je==1){Xe.tokenize=it;break}else return Xe.tokenize=ne(Je-1),Xe.tokenize(kt,Xe)}return"meta"}}function ce(Je,kt,Xe){this.prev=Je.context,this.tagName=kt,this.indent=Je.indented,this.startOfLine=Xe,(De.doNotIndent.hasOwnProperty(kt)||Je.context&&Je.context.noIndent)&&(this.noIndent=!0)}function se(Je){Je.context&&(Je.context=Je.context.prev)}function ge(Je,kt){for(var Xe;;){if(!Je.context||(Xe=Je.context.tagName,!De.contextGrabbers.hasOwnProperty(Xe)||!De.contextGrabbers[Xe].hasOwnProperty(kt)))return;se(Je)}}function me(Je,kt,Xe){return Je=="openTag"?(Xe.tagStart=kt.column(),Ce):Je=="closeTag"?Fe:me}function Ce(Je,kt,Xe){return Je=="word"?(Xe.tagName=kt.current(),Ot="tag",Ge):De.allowMissingTagName&&Je=="endTag"?(Ot="tag bracket",Ge(Je,kt,Xe)):(Ot="error",Ce)}function Fe(Je,kt,Xe){if(Je=="word"){var Wt=kt.current();return Xe.context&&Xe.context.tagName!=Wt&&De.implicitlyClosed.hasOwnProperty(Xe.context.tagName)&&se(Xe),Xe.context&&Xe.context.tagName==Wt||De.matchClosing===!1?(Ot="tag",Pe):(Ot="tag error",Ie)}else return De.allowMissingTagName&&Je=="endTag"?(Ot="tag bracket",Pe(Je,kt,Xe)):(Ot="error",Ie)}function Pe(Je,kt,Xe){return Je!="endTag"?(Ot="error",Pe):(se(Xe),me)}function Ie(Je,kt,Xe){return Ot="error",Pe(Je,kt,Xe)}function Ge(Je,kt,Xe){if(Je=="word")return Ot="attribute",Ke;if(Je=="endTag"||Je=="selfcloseTag"){var Wt=Xe.tagName,zt=Xe.tagStart;return Xe.tagName=Xe.tagStart=null,Je=="selfcloseTag"||De.autoSelfClosers.hasOwnProperty(Wt)?ge(Xe,Wt):(ge(Xe,Wt),Xe.context=new ce(Xe,Wt,zt==Xe.indented)),me}return Ot="error",Ge}function Ke(Je,kt,Xe){return Je=="equals"?Ye:(De.allowMissing||(Ot="error"),Ge(Je,kt,Xe))}function Ye(Je,kt,Xe){return Je=="string"?pt:Je=="word"&&De.allowUnquoted?(Ot="string",Ge):(Ot="error",Ge(Je,kt,Xe))}function pt(Je,kt,Xe){return Je=="string"?pt:Ge(Je,kt,Xe)}return{startState:function(Je){var kt={tokenize:it,state:me,indented:Je||0,tagName:null,tagStart:null,context:null};return Je!=null&&(kt.baseIndent=Je),kt},token:function(Je,kt){if(!kt.tagName&&Je.sol()&&(kt.indented=Je.indentation()),Je.eatSpace())return null;et=null;var Xe=kt.tokenize(Je,kt);return(Xe||et)&&Xe!="comment"&&(Ot=null,kt.state=kt.state(et||Xe,Je,kt),Ot&&(Xe=Ot=="error"?Xe+" error":Ot)),Xe},indent:function(Je,kt,Xe){var Wt=Je.context;if(Je.tokenize.isInAttribute)return Je.tagStart==Je.indented?Je.stringStartCol+1:Je.indented+qe;if(Wt&&Wt.noIndent)return ye.Pass;if(Je.tokenize!=Pt&&Je.tokenize!=it)return Xe?Xe.match(/^(\s*)/)[0].length:0;if(Je.tagName)return De.multilineTagIndentPastTag!==!1?Je.tagStart+Je.tagName.length+2:Je.tagStart+qe*(De.multilineTagIndentFactor||1);if(De.alignCDATA&&/<!\[CDATA\[/.test(kt))return 0;var zt=kt&&/^<(\/)?([\w_:\.-]*)/.exec(kt);if(zt&&zt[1])for(;Wt;)if(Wt.tagName==zt[2]){Wt=Wt.prev;break}else if(De.implicitlyClosed.hasOwnProperty(Wt.tagName))Wt=Wt.prev;else break;else if(zt)for(;Wt;){var jt=De.contextGrabbers[Wt.tagName];if(jt&&jt.hasOwnProperty(zt[2]))Wt=Wt.prev;else break}for(;Wt&&Wt.prev&&!Wt.startOfLine;)Wt=Wt.prev;return Wt?Wt.indent+qe:Je.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:De.htmlMode?"html":"xml",helperType:De.htmlMode?"html":"xml",skipAttribute:function(Je){Je.state==Ye&&(Je.state=Ge)},xmlCurrentTag:function(Je){return Je.tagName?{name:Je.tagName,close:Je.type=="closeTag"}:null},xmlCurrentContext:function(Je){for(var kt=[],Xe=Je.context;Xe;Xe=Xe.prev)Xe.tagName&&kt.push(Xe.tagName);return kt.reverse()}}}),ye.defineMIME("text/xml","xml"),ye.defineMIME("application/xml","xml"),ye.mimeModes.hasOwnProperty("text/html")||ye.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Rn,Mn,ve){"use strict";ve.d(Mn,{$u:function(){return Et},BD:function(){return tt},E9:function(){return Tt},FF:function(){return Co},FJ:function(){return me},Hn:function(){return ge},KX:function(){return Fe},NB:function(){return Ct},S0:function(){return mt},UL:function(){return et},Vk:function(){return se},Vm:function(){return dt},YI:function(){return Gn},ZA:function(){return He},Zt:function(){return Ot},al:function(){return Se},bn:function(){return ke},bx:function(){return Ee},g2:function(){return xn},h1:function(){return Ye},hD:function(){return Vi},l4:function(){return qe},rU:function(){return bt},s_:function(){return we},uz:function(){return We},z6:function(){return it}}),Rn=ve.hmd(Rn),function(){var Ae;function $n(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function oi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:$n(a)}}function fn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Qn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Zn;if(typeof Object.setPrototypeOf=="function")Zn=Object.setPrototypeOf;else{var an;e:{var Jt={a:!0},vn={};try{vn.__proto__=Jt,an=vn.a;break e}catch(a){}an=!1}Zn=an?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var xt=Zn;function wt(a,y){if(a.prototype=Qn(y.prototype),a.prototype.constructor=a,xt)xt(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 ze=typeof ve.g!="undefined"&&ve.g!=null?ve.g:self,Yt=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},on=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function ht(a,y){if(y){var x=ze;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&&on(x,a,{writable:!0,value:y})}}ht("Object.assign",function(a){return a||Yt}),ht("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 Qe=typeof globalThis=="object"&&globalThis||typeof ve.g=="object"&&ve.g.global===ve.g&&ve.g||typeof self=="object"&&self.self===self&&self||{};Qe.requestAnimationFrame===void 0&&(Qe.setImmediate===void 0?Qe.requestAnimationFrame=function(a){Qe.setTimeout(a,0)}:Qe.requestAnimationFrame=Qe.setImmediate);function _t(){}function It(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Qe.clearTimeout(x),x=Fn(function(){x=-1,a.apply(b,E)},y)}}function Fn(a,y){return Qe.setTimeout(a,y)}function Hn(a){return Qe.document.createElement(a)}function ct(a){throw Error(a)}function sn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),ct(a)}function Un(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),ct(x+" is not in the range "+y+": "+a)}function _n(a){Qe.console&&Qe.console.log(a)}function Zt(a){return typeof a=="object"&&a!==null}function rn(a){return Array.isArray(a)||Qe.NodeList&&a instanceof Qe.NodeList||Qe.HTMLCollection&&a instanceof Qe.HTMLCollection}function wi(a){return Array.prototype.slice.call(a)}function Ci(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):ct("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function yi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ct("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ci(){var a=br.pop();return a===void 0?[]:a}function Pi(a){a.length=0,br.push(a)}function Mi(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(Zt(a)&&a.constructor)return Mi(a.constructor);return typeof a}function ji(a){var y=a;return Zt(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 lr(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 nr(a,y,x){Object.defineProperty(ai.prototype,a,{get:y,set:x})}function Nn(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="",ee=0;ee<a.length;ee++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(ee)^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 Pr=Qe.navigator!==void 0&&0<Qe.navigator.userAgent.indexOf("Trident/7"),Tr=Qe.navigator!==void 0&&Qe.navigator.platform!==void 0&&Qe.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,br=[];Object.freeze([]),_t.className="Util",_t.Dx="32ab5ff3b26f42dc0ed90f21472913b5",_t.adym="gojs.net",_t.vfo="28e645fdb266",_t.className="Util";function Cn(a,y,x){fr(this),this.j=a,this.xa=y,this.o=x}Cn.prototype.toString=function(){return"EnumValue."+this.xa};function di(a,y){return y==null||y===""?null:a[y]}ze.Object.defineProperties(Cn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Cn.className="EnumValue";function Ki(){this.ew=[]}Ki.prototype.toString=function(){return this.ew.join("")},Ki.prototype.add=function(a){a!==""&&this.ew.push(a)},Ki.className="StringBuilder";function ir(){}ir.className="PropertyCollection";var Yi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Qe.console&&Qe.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(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function cr(){}cr.prototype.reset=function(){},cr.prototype.next=function(){return!1},cr.prototype.Ad=function(){return!1},cr.prototype.first=function(){return null},cr.prototype.any=function(){return!1},cr.prototype.all=function(){return!0},cr.prototype.each=function(){return this},cr.prototype.map=function(){return this},cr.prototype.filter=function(){return this},cr.prototype.de=function(){},cr.prototype.toString=function(){return"EmptyIterator"},ze.Object.defineProperties(cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),cr.prototype.first=cr.prototype.first,cr.prototype.hasNext=cr.prototype.Ad,cr.prototype.next=cr.prototype.next,cr.prototype.reset=cr.prototype.reset;var Mr=null;cr.className="EmptyIterator",Mr=new cr;function Di(a){this.key=-1,this.value=a}Di.prototype.reset=function(){this.key=-1},Di.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Di.prototype.Ad=function(){return this.next()},Di.prototype.first=function(){return this.key=0,this.value},Di.prototype.any=function(a){return this.key=-1,a(this.value)},Di.prototype.all=function(a){return this.key=-1,a(this.value)},Di.prototype.each=function(a){return this.key=-1,a(this.value),this},Di.prototype.map=function(a){return new Di(a(this.value))},Di.prototype.filter=function(a){return a(this.value)?new Di(this.value):Mr},Di.prototype.de=function(){this.value=null},Di.prototype.toString=function(){return"SingletonIterator("+this.value+")"},ze.Object.defineProperties(Di.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Di.prototype.first=Di.prototype.first,Di.prototype.hasNext=Di.prototype.Ad,Di.prototype.next=Di.prototype.next,Di.prototype.reset=Di.prototype.reset,Di.className="SingletonIterator";function Ui(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ui.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ui.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},Ui.prototype.Ad=function(){return this.next()},Ui.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},Ui.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},Ui.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},Ui.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},Ui.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 ee=y[z];(E===null||E(ee))&&x.push(a(ee))}return a=new Dn,a.s=x,a.xb(),a.iterator},Ui.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 ee=y[z];(E===null||E(ee))&&a(ee)&&x.push(ee)}return a=new Dn,a.s=x,a.xb(),a.iterator},Ui.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ui.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},ze.Object.defineProperties(Ui.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}}}),Ui.prototype.first=Ui.prototype.first,Ui.prototype.hasNext=Ui.prototype.Ad,Ui.prototype.next=Ui.prototype.next,Ui.prototype.reset=Ui.prototype.reset,Ui.className="ListIterator";function Wi(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Wi.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Wi.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)},Wi.prototype.Ad=function(){return this.next()},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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 Dn,a.s=x,a.xb(),a.iterator},Wi.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 Dn,a.s=x,a.xb(),a.iterator},Wi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Wi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ze.Object.defineProperties(Wi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Wi.prototype.first=Wi.prototype.first,Wi.prototype.hasNext=Wi.prototype.Ad,Wi.prototype.next=Wi.prototype.next,Wi.prototype.reset=Wi.prototype.reset,Wi.className="ListIteratorBackwards";function Dn(a){fr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ct("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ae=Dn.prototype,Ae.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return this._isFrozen=!1,this},Ae.toString=function(){return"List()#"+Cr(this)},Ae.add=function(a){return a===null?this:(this._isFrozen&&sn(this,a),this.s.push(a),this.xb(),this)},Ae.push=function(a){this.add(a)},Ae.addAll=function(a){if(a===null)return this;this._isFrozen&&sn(this);var y=this.s;if(rn(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},Ae.clear=function(){this._isFrozen&&sn(this),this.s.length=0,this.xb()},Ae.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ae.has=function(a){return this.contains(a)},Ae.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ae.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Un(a,"0 <= i < length",Dn,"elt:i"),y[a]},Ae.get=function(a){return this.M(a)},Ae.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Un(a,"0 <= i < length",Dn,"setElt:i"),this._isFrozen&&sn(this,a),x[a]=y},Ae.set=function(a,y){this.cd(a,y)},Ae.first=function(){var a=this.s;return a.length===0?null:a[0]},Ae.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ae.pop=function(){this._isFrozen&&sn(this);var a=this.s;return 0<a.length?a.pop():null},Dn.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},Dn.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},Dn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Dn.prototype.map=function(a){for(var y=new Dn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Dn.prototype.filter=function(a){for(var y=new Dn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var ee=b[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Ae=Dn.prototype,Ae.Gb=function(a,y){0>a&&Un(a,">= 0",Dn,"insertAt:i"),this._isFrozen&&sn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ae.remove=function(a){if(a===null)return!1;this._isFrozen&&sn(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)},Ae.delete=function(a){return this.remove(a)},Ae.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Un(a,"0 <= i < length",Dn,"removeAt:i"),this._isFrozen&&sn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ae.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&&sn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Dn.prototype.copy=function(){var a=new Dn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ae=Dn.prototype,Ae.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Ae.Iv=function(){for(var a=new Ln,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Ae.sort=function(a){return this._isFrozen&&sn(this),this.s.sort(a),this.xb(),this},Ae.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&sn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Un(y,"0 <= from < length",Dn,"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},Ae.reverse=function(){return this._isFrozen&&sn(this),this.s.reverse(),this.xb(),this},ze.Object.defineProperties(Dn.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 Mr;var a=this.Sa;return a!==null?(a.reset(),a):new Ui(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Mr;var a=this.Hg;return a!==null?(a.reset(),a):new Wi(this)}}}),Dn.prototype.reverse=Dn.prototype.reverse,Dn.prototype.sortRange=Dn.prototype.zi,Dn.prototype.sort=Dn.prototype.sort,Dn.prototype.toSet=Dn.prototype.Iv,Dn.prototype.toArray=Dn.prototype.Fa,Dn.prototype.removeRange=Dn.prototype.removeRange,Dn.prototype.removeAt=Dn.prototype.mb,Dn.prototype.delete=Dn.prototype.delete,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.insertAt=Dn.prototype.Gb,Dn.prototype.pop=Dn.prototype.pop,Dn.prototype.last=Dn.prototype.jc,Dn.prototype.first=Dn.prototype.first,Dn.prototype.set=Dn.prototype.set,Dn.prototype.setElt=Dn.prototype.cd,Dn.prototype.get=Dn.prototype.get,Dn.prototype.elt=Dn.prototype.M,Dn.prototype.indexOf=Dn.prototype.indexOf,Dn.prototype.has=Dn.prototype.has,Dn.prototype.contains=Dn.prototype.contains,Dn.prototype.clear=Dn.prototype.clear,Dn.prototype.addAll=Dn.prototype.addAll,Dn.prototype.push=Dn.prototype.push,Dn.prototype.add=Dn.prototype.add,Dn.prototype.thaw=Dn.prototype.ka,Dn.prototype.freeze=Dn.prototype.freeze,Dn.className="List";function Fr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Fr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Fr.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)},Fr.prototype.Ad=function(){return this.next()},Fr.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},Fr.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},Fr.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},Fr.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},Fr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Fr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Fr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Fr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ze.Object.defineProperties(Fr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Fr.prototype.first=Fr.prototype.first,Fr.prototype.hasNext=Fr.prototype.Ad,Fr.prototype.next=Fr.prototype.next,Fr.prototype.reset=Fr.prototype.reset,Fr.className="SetIterator";function Ln(a){fr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ct("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ae=Ln.prototype,Ae.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return this._isFrozen=!1,this},Ae.toString=function(){return"Set()#"+Cr(this)},Ae.add=function(a){if(a===null)return this;this._isFrozen&&sn(this,a);var y=a;return Zt(a)&&(y=Ur(a)),this.Tb[y]===void 0&&(this.Sb++,a=new hr(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},Ae.addAll=function(a){if(a===null)return this;if(this._isFrozen&&sn(this),rn(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},Ae.contains=function(a){if(a===null)return!1;var y=a;return Zt(a)&&(y=Cr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ae.has=function(a){return this.contains(a)},Ae.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ae.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ae.first=function(){var a=this.ea;return a===null?null:a.value},Ln.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ln.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ln.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ln.prototype.map=function(a){for(var y=new Ln,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ln.prototype.filter=function(a){for(var y=new Ln,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Ae=Ln.prototype,Ae.remove=function(a){if(a===null)return!1;this._isFrozen&&sn(this,a);var y=a;if(Zt(a)&&(y=Cr(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},Ae.delete=function(a){return this.remove(a)},Ae.hp=function(a){if(a===null)return this;if(this._isFrozen&&sn(this),rn(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},Ae.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&sn(this);var y=new Ln;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},Ae.clear=function(){this._isFrozen&&sn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ln.prototype.copy=function(){var a=new Ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ln.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},Ln.prototype.Hv=function(){var a=new Dn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function fr(a){a.__gohashid=Do++}function Ur(a){var y=a.__gohashid;return y===void 0&&(y=Do++,a.__gohashid=y),y}function Cr(a){return a.__gohashid}ze.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Mr;var a=this.Sa;return a!==null?(a.reset(),a):new Fr(this)}}}),Ln.prototype.toList=Ln.prototype.Hv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.retainAll=Ln.prototype.pA,Ln.prototype.removeAll=Ln.prototype.hp,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.first=Ln.prototype.first,Ln.prototype.containsAny=Ln.prototype.Ty,Ln.prototype.containsAll=Ln.prototype.Sy,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze;var Do=1;Ln.className="Set",Ln.uniqueHash=fr,Ln.hashIdUnique=Ur,Ln.hashId=Cr;function so(a){this.ma=a,this.qa=a.Ja,this.sa=null}so.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},so.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)},so.prototype.Ad=function(){return this.next()},so.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},so.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},so.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},so.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},so.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},so.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Dn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},so.prototype.de=function(){this.value=this.key=null,this.qa=-1},so.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ze.Object.defineProperties(so.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.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="MapKeySetIterator";function yr(a){Ln.call(this),fr(this),this._isFrozen=!0,this.ma=a}wt(yr,Ln),Ae=yr.prototype,Ae.freeze=function(){return this},Ae.ka=function(){return this},Ae.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ae.add=function(){ct("This Set is read-only: "+this.toString())},Ae.contains=function(a){return this.ma.contains(a)},Ae.has=function(a){return this.contains(a)},Ae.remove=function(){ct("This Set is read-only: "+this.toString())},Ae.delete=function(a){return this.remove(a)},Ae.clear=function(){ct("This Set is read-only: "+this.toString())},Ae.first=function(){var a=this.ma.ea;return a!==null?a.key:null},yr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},yr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},yr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},yr.prototype.map=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},yr.prototype.filter=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},yr.prototype.copy=function(){return new yr(this.ma)},yr.prototype.Iv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},yr.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},yr.prototype.Hv=function(){var a=new Dn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ze.Object.defineProperties(yr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Mr:new so(this.ma)}}}),yr.prototype.toList=yr.prototype.Hv,yr.prototype.toArray=yr.prototype.Fa,yr.prototype.toSet=yr.prototype.Iv,yr.prototype.first=yr.prototype.first,yr.prototype.clear=yr.prototype.clear,yr.prototype.delete=yr.prototype.delete,yr.prototype.remove=yr.prototype.remove,yr.prototype.has=yr.prototype.has,yr.prototype.contains=yr.prototype.contains,yr.prototype.add=yr.prototype.add,yr.prototype.thaw=yr.prototype.ka,yr.prototype.freeze=yr.prototype.freeze,yr.className="MapKeySet";function gr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}gr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},gr.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)},gr.prototype.Ad=function(){return this.next()},gr.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},gr.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},gr.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},gr.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},gr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},gr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Dn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},gr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},gr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ze.Object.defineProperties(gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),gr.prototype.first=gr.prototype.first,gr.prototype.hasNext=gr.prototype.Ad,gr.prototype.next=gr.prototype.next,gr.prototype.reset=gr.prototype.reset,gr.className="MapValueSetIterator";function hr(a,y){this.key=a,this.value=y,this.ll=this.va=null}hr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},hr.className="KeyValuePair";function Gr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Gr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Gr.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)},Gr.prototype.Ad=function(){return this.next()},Gr.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},Gr.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},Gr.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},Gr.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},Gr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Gr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Dn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Gr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Gr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ze.Object.defineProperties(Gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gr.prototype.first=Gr.prototype.first,Gr.prototype.hasNext=Gr.prototype.Ad,Gr.prototype.next=Gr.prototype.next,Gr.prototype.reset=Gr.prototype.reset,Gr.className="MapIterator";function Oi(a){fr(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"&&ct("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ae=Oi.prototype,Ae.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return this._isFrozen=!1,this},Ae.toString=function(){return"Map()#"+Cr(this)},Ae.add=function(a,y){this._isFrozen&&sn(this,a);var x=a;Zt(a)&&(x=Ur(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new hr(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},Ae.set=function(a,y){return this.add(a,y)},Ae.addAll=function(a){if(a===null)return this;if(rn(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 Oi)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},Ae.first=function(){return this.ea},Oi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Oi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Oi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Oi.prototype.map=function(a){for(var y=new Oi,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Oi.prototype.filter=function(a){for(var y=new Oi,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ae=Oi.prototype,Ae.contains=function(a){var y=a;return Zt(a)&&(y=Cr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ae.has=function(a){return this.contains(a)},Ae.I=function(a){var y=a;return Zt(a)&&(y=Cr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ae.get=function(a){return this.I(a)},Ae.remove=function(a){if(a===null)return!1;this._isFrozen&&sn(this,a);var y=a;if(Zt(a)&&(y=Cr(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},Ae.delete=function(a){return this.remove(a)},Ae.clear=function(){this._isFrozen&&sn(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()},Oi.prototype.copy=function(){var a=new Oi,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Oi.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 hr(E.key,E.value),x++}return y},Oi.prototype.Lf=function(){return new yr(this)},ze.Object.defineProperties(Oi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Mr;var a=this.Sa;return a!==null?(a.reset(),a):new Gr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Mr:new so(this)}},iteratorValues:{get:function(){if(0>=this.count)return Mr;var a=this.jf;return a!==null?(a.reset(),a):new gr(this)}}}),Oi.prototype.toKeySet=Oi.prototype.Lf,Oi.prototype.toArray=Oi.prototype.Fa,Oi.prototype.clear=Oi.prototype.clear,Oi.prototype.delete=Oi.prototype.delete,Oi.prototype.remove=Oi.prototype.remove,Oi.prototype.get=Oi.prototype.get,Oi.prototype.getValue=Oi.prototype.I,Oi.prototype.has=Oi.prototype.has,Oi.prototype.contains=Oi.prototype.contains,Oi.prototype.first=Oi.prototype.first,Oi.prototype.addAll=Oi.prototype.addAll,Oi.prototype.set=Oi.prototype.set,Oi.prototype.add=Oi.prototype.add,Oi.prototype.thaw=Oi.prototype.ka,Oi.prototype.freeze=Oi.prototype.freeze,Oi.className="Map";function _e(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ct("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var yt,Bt,ln,jn,ri;_e.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},_e.prototype.h=function(a,y){return this.x=a,this.y=y,this},_e.prototype.sg=function(a,y){return this.x=a,this.y=y,this},_e.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},_e.prototype.copy=function(){var a=new _e;return a.x=this.x,a.y=this.y,a},Ae=_e.prototype,Ae.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ae.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return Object.isFrozen(this)&&ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function tn(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 _e(x,E)}return new _e}function bn(a){return a.x.toString()+" "+a.y.toString()}Ae.toString=function(){return"Point("+this.x+","+this.y+")"},Ae.D=function(a){return a instanceof _e?this.x===a.x&&this.y===a.y:!1},Ae.hi=function(a,y){return this.x===a&&this.y===y},Ae.Xa=function(a){return Vt.B(this.x,a.x)&&Vt.B(this.y,a.y)},Ae.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ae.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ae.offset=function(a,y){return this.x+=a,this.y+=y,this},_e.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},Ae=_e.prototype,Ae.scale=function(a,y){return this.x*=a,this.y*=y,this},Ae.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ae.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ae.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},Ae.ab=function(a){return Xn(a.x-this.x,a.y-this.y)},Ae.direction=function(a,y){return Xn(a-this.x,y-this.y)};function Xn(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}Ae.Ry=function(a,y){return Vt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ae.fA=function(a,y,x,b){return Vt.qh(a,y,x,b,this.x,this.y,this),this},Ae.gA=function(a,y){return Vt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ae.uA=function(a,y,x,b){return Vt.No(this.x,this.y,a,y,x,b,this),this},Ae.vA=function(a,y){return Vt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ae.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},Ae.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},Ae.transform=function(a){return a.Ga(this),this};function Kn(a,y){return y.Cd(a),a}function Ei(a,y,x,b,E,z){var ee=E-x,re=z-b,oe=ee*ee+re*re;x-=a,b-=y;var le=-x*ee-b*re;return 0>=le||le>=oe?(ee=E-a,re=z-y,Math.min(x*x+b*b,ee*ee+re*re)):(a=ee*b-re*x,a*a/oe)}function vr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Ai(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)}Ae.w=function(){return isFinite(this.x)&&isFinite(this.y)},_e.alloc=function(){var a=Bi.pop();return a===void 0?new _e:a},_e.allocAt=function(a,y){var x=Bi.pop();return x===void 0?new _e(a,y):(x.x=a,x.y=y,x)},_e.free=function(a){Bi.push(a)},_e.prototype.isReal=_e.prototype.w,_e.prototype.setSpot=_e.prototype.yi,_e.prototype.setRectSpot=_e.prototype.xi,_e.prototype.snapToGridPoint=_e.prototype.vA,_e.prototype.snapToGrid=_e.prototype.uA,_e.prototype.projectOntoLineSegmentPoint=_e.prototype.gA,_e.prototype.projectOntoLineSegment=_e.prototype.fA,_e.intersectingLineSegments=function(a,y,x,b,E,z,ee,re){return Vt.Rl(a,y,x,b,E,z,ee,re)},_e.prototype.compareWithLineSegmentPoint=_e.prototype.Ry,_e.compareWithLineSegment=function(a,y,x,b,E,z){return Vt.Fl(a,y,x,b,E,z)},_e.prototype.direction=_e.prototype.direction,_e.prototype.directionPoint=_e.prototype.ab,_e.prototype.normalize=_e.prototype.normalize,_e.prototype.distanceSquared=_e.prototype.zd,_e.prototype.distanceSquaredPoint=_e.prototype.Bf,_e.prototype.scale=_e.prototype.scale,_e.prototype.rotate=_e.prototype.rotate,_e.prototype.offset=_e.prototype.offset,_e.prototype.subtract=_e.prototype.re,_e.prototype.add=_e.prototype.add,_e.prototype.equalsApprox=_e.prototype.Xa,_e.prototype.equalTo=_e.prototype.hi,_e.prototype.equals=_e.prototype.D,_e.prototype.set=_e.prototype.set,_e.prototype.setTo=_e.prototype.sg;var Bi=[];_e.className="Point",_e.parse=tn,_e.stringify=bn,_e.distanceLineSegmentSquared=Ei,_e.distanceSquared=vr,_e.direction=Ai,_e.Origin=yt=new _e(0,0).ja(),_e.InfiniteTopLeft=Bt=new _e(-1/0,-1/0).ja(),_e.InfiniteBottomRight=ln=new _e(1/0,1/0).ja(),_e.SixPoint=jn=new _e(6,6).ja(),_e.NoPoint=ri=new _e(NaN,NaN).ja(),_e.parse=tn,_e.stringify=bn,_e.distanceLineSegmentSquared=Ei,_e.distanceSquared=vr,_e.direction=Ai;function zn(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):ct("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var pr,kr,po,to,Jr,eo,Zo;zn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},zn.prototype.h=function(a,y){return this.width=a,this.height=y,this},zn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},zn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},zn.prototype.copy=function(){var a=new zn;return a.width=this.width,a.height=this.height,a},Ae=zn.prototype,Ae.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ae.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return Object.isFrozen(this)&&ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function $o(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 zn(x,E)}return new zn}function ia(a){return a.width.toString()+" "+a.height.toString()}Ae.toString=function(){return"Size("+this.width+","+this.height+")"},Ae.D=function(a){return a instanceof zn?this.width===a.width&&this.height===a.height:!1},Ae.hi=function(a,y){return this.width===a&&this.height===y},Ae.Xa=function(a){return Vt.B(this.width,a.width)&&Vt.B(this.height,a.height)},Ae.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},Ae.w=function(){return isFinite(this.width)&&isFinite(this.height)},zn.alloc=function(){var a=qo.pop();return a===void 0?new zn:a},zn.free=function(a){qo.push(a)},zn.prototype.isReal=zn.prototype.w,zn.prototype.inflate=zn.prototype.Bc,zn.prototype.equalsApprox=zn.prototype.Xa,zn.prototype.equalTo=zn.prototype.hi,zn.prototype.equals=zn.prototype.D,zn.prototype.set=zn.prototype.set,zn.prototype.setTo=zn.prototype.sg;var qo=[];zn.className="Size",zn.parse=$o,zn.stringify=ia,zn.ZeroSize=pr=new zn(0,0).ja(),zn.OneSize=kr=new zn(1,1).ja(),zn.SixSize=po=new zn(6,6).ja(),zn.EightSize=to=new zn(8,8).ja(),zn.TenSize=Jr=new zn(10,10).ja(),zn.InfiniteSize=eo=new zn(1/0,1/0).ja(),zn.NoSize=Zo=new zn(NaN,NaN).ja(),zn.parse=$o,zn.stringify=ia;function Sn(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 _e?(x=a.x,a=a.y,y instanceof _e?(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 zn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ct("Incorrect second argument supplied to Rect constructor "+y)):ct("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Ae=Sn.prototype,Ae.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ae.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function oa(a,y,x){a.width=y,a.height=x}Ae.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Ae.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ae.dd=function(a){return this.x=a.x,this.y=a.y,this},Ae.tA=function(a){return this.width=a.width,this.height=a.height,this},Sn.prototype.copy=function(){var a=new Sn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ae=Sn.prototype,Ae.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ae.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return Object.isFrozen(this)&&ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function vs(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 ee=0;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),new Sn(x,E,z,ee)}return new Sn}function Ga(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ae.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ae.D=function(a){return a instanceof Sn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ae.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Ae.Xa=function(a){return Vt.B(this.x,a.x)&&Vt.B(this.y,a.y)&&Vt.B(this.width,a.width)&&Vt.B(this.height,a.height)};function Zs(a,y){return Vt.$(a.x,y.x)&&Vt.$(a.y,y.y)&&Vt.$(a.width,y.width)&&Vt.$(a.height,y.height)}Ae.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ae.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},Ae.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},Ae.offset=function(a,y){return this.x+=a,this.y+=y,this},Ae.Bc=function(a,y){return xa(this,y,a,y,a)},Ae.Co=function(a){return xa(this,a.top,a.right,a.bottom,a.left)},Ae.Fv=function(a){return xa(this,-a.top,-a.right,-a.bottom,-a.left)},Ae.Hz=function(a,y,x,b){return xa(this,a,y,x,b)};function xa(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}Ae.Ex=function(a){return pl(this,a.x,a.y,a.width,a.height)},Ae.Uu=function(a,y,x,b){return pl(this,a,y,x,b)};function pl(a,y,x,b,E){var z=Math.max(a.x,y),ee=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=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Ae.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ae.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 wa(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))}Ae.Ye=function(a){return Ao(this,a.x,a.y,0,0)},Ae.ed=function(a){return Ao(this,a.x,a.y,a.width,a.height)},Ae.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Ao(this,a,y,x,b)};function Ao(a,y,x,b,E){var z=Math.min(a.x,y),ee=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=ee,a.width=y-z,a.height=x-ee,a}Ae.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 Ko(a,y,x,b,E,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=E&&E+ee<=a+x&&y<=z&&z+re<=y+b}function Ka(a,y,x,b,E,z,ee,re){return a>ee+E||E>x+a?!1:!(y>re+z||z>b+y)}Ae.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ae.Mz=function(){return this.width===0&&this.height===0},Sn.alloc=function(){var a=ro.pop();return a===void 0?new Sn:a},Sn.allocAt=function(a,y,x,b){var E=ro.pop();return E===void 0?new Sn(a,y,x,b):E.h(a,y,x,b)},Sn.free=function(a){ro.push(a)},ze.Object.defineProperties(Sn.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 _e(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new zn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new _e(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}}}),Sn.prototype.isEmpty=Sn.prototype.Mz,Sn.prototype.isReal=Sn.prototype.w,Sn.intersectsLineSegment=function(a,y,x,b,E,z,ee,re){return Vt.Fx(a,y,x,b,E,z,ee,re)},Sn.prototype.setSpot=Sn.prototype.yi,Sn.prototype.union=Sn.prototype.Kv,Sn.prototype.unionRect=Sn.prototype.ed,Sn.prototype.unionPoint=Sn.prototype.Ye,Sn.prototype.intersects=Sn.prototype.Vu,Sn.prototype.intersectsRect=Sn.prototype.Yc,Sn.prototype.intersect=Sn.prototype.Uu,Sn.prototype.intersectRect=Sn.prototype.Ex,Sn.prototype.grow=Sn.prototype.Hz,Sn.prototype.subtractMargin=Sn.prototype.Fv,Sn.prototype.addMargin=Sn.prototype.Co,Sn.prototype.inflate=Sn.prototype.Bc,Sn.prototype.offset=Sn.prototype.offset,Sn.prototype.contains=Sn.prototype.contains,Sn.prototype.containsRect=Sn.prototype.Re,Sn.prototype.containsPoint=Sn.prototype.ca,Sn.prototype.equalsApprox=Sn.prototype.Xa,Sn.prototype.equalTo=Sn.prototype.hi,Sn.prototype.equals=Sn.prototype.D,Sn.prototype.setSize=Sn.prototype.tA,Sn.prototype.setPoint=Sn.prototype.dd,Sn.prototype.set=Sn.prototype.set,Sn.prototype.setTo=Sn.prototype.sg;var Kr=null,No=null,ro=[];Sn.className="Rect",Sn.parse=vs,Sn.stringify=Ga,Sn.contains=Ko,Sn.intersects=Ka,Sn.ZeroRect=Kr=new Sn(0,0,0,0).ja(),Sn.NoRect=No=new Sn(NaN,NaN,NaN,NaN).ja(),Sn.parse=vs,Sn.stringify=Ga,Sn.contains=Ko,Sn.intersects=Ka;function Hi(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):ct("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Hi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Hi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Hi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Hi.prototype.copy=function(){var a=new Hi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ae=Hi.prototype,Ae.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ae.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return Object.isFrozen(this)&&ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function fa(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 Hi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Hi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Hi(x,E);for(var ee=NaN;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),isNaN(ee)?new Hi(x,E):new Hi(x,E,z,ee)}return new Hi}function ka(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ae.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ae.D=function(a){return a instanceof Hi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ae.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Ae.Xa=function(a){return Vt.B(this.top,a.top)&&Vt.B(this.right,a.right)&&Vt.B(this.bottom,a.bottom)&&Vt.B(this.left,a.left)},Ae.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Hi.alloc=function(){var a=nl.pop();return a===void 0?new Hi:a},Hi.free=function(a){nl.push(a)},Hi.prototype.isReal=Hi.prototype.w,Hi.prototype.equalsApprox=Hi.prototype.Xa,Hi.prototype.equalTo=Hi.prototype.hi,Hi.prototype.equals=Hi.prototype.D,Hi.prototype.set=Hi.prototype.set,Hi.prototype.setTo=Hi.prototype.sg;var Ds=null,ys=null,nl=[];Hi.className="Margin",Hi.parse=fa,Hi.stringify=ka,Hi.ZeroMargin=Ds=new Hi(0,0,0,0).ja(),Hi.TwoMargin=ys=new Hi(2,2,2,2).ja(),Hi.parse=fa,Hi.stringify=ka;function Gi(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 Da,pa,Os,ml,Gl,So,Au,il,Nl,vl,fu,yl,rl,Sl,oc,Sc,xc,Qc,gu,zl,xl,Tl,pu,wc,mu,Jo,ma,dl,Cs,Ss,rs,ds,Ls,xs,Ks,Bs;Gi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Gi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Gi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Gi.prototype.copy=function(){var a=new Gi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ae=Gi.prototype,Ae.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ae.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return Object.isFrozen(this)&&ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fa(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Hu(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Da;if(a==="TopLeft")return pa;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Os;if(a==="TopRight")return ml;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Gl;if(a==="Center")return So;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Au;if(a==="BottomLeft")return il;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Nl;if(a==="BottomRight")return vl;if(a==="TopSide")return fu;if(a==="LeftSide")return yl;if(a==="RightSide")return rl;if(a==="BottomSide")return Sl;if(a==="TopBottomSides")return oc;if(a==="LeftRightSides")return Sc;if(a==="TopLeftSides")return xc;if(a==="TopRightSides")return Qc;if(a==="BottomLeftSides")return gu;if(a==="BottomRightSides")return zl;if(a==="NotTopSide")return xl;if(a==="NotLeftSide")return Tl;if(a==="NotRightSide")return pu;if(a==="NotBottomSide")return wc;if(a==="AllSides")return mu;if(a==="Default")return Jo;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 ee=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ee=parseFloat(b)),new Gi(x,E,z,ee)}return new Gi}function Ol(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ae.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(Da)?"None":this.D(pa)?"TopLeft":this.D(Os)?"Top":this.D(ml)?"TopRight":this.D(Gl)?"Left":this.D(So)?"Center":this.D(Au)?"Right":this.D(il)?"BottomLeft":this.D(Nl)?"Bottom":this.D(vl)?"BottomRight":this.D(fu)?"TopSide":this.D(yl)?"LeftSide":this.D(rl)?"RightSide":this.D(Sl)?"BottomSide":this.D(oc)?"TopBottomSides":this.D(Sc)?"LeftRightSides":this.D(xc)?"TopLeftSides":this.D(Qc)?"TopRightSides":this.D(gu)?"BottomLeftSides":this.D(zl)?"BottomRightSides":this.D(xl)?"NotTopSide":this.D(Tl)?"NotLeftSide":this.D(pu)?"NotRightSide":this.D(wc)?"NotBottomSide":this.D(mu)?"AllSides":this.D(Jo)?"Default":"None"},Ae.D=function(a){return a instanceof Gi?(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},Ae.gv=function(){return new Gi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ae.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ma))a=yl;else if(a.D(dl))a=rl;else if(a.D(Cs))a=fu;else if(a.D(Ss))a=Sl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ae.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ae.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ae.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ae.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ae.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Gi.alloc=function(){var a=El.pop();return a===void 0?new Gi:a},Gi.free=function(a){El.push(a)},Gi.prototype.isDefault=Gi.prototype.Xb,Gi.prototype.isNone=Gi.prototype.ys,Gi.prototype.isSide=Gi.prototype.$c,Gi.prototype.isNoSpot=Gi.prototype.Mc,Gi.prototype.isSpot=Gi.prototype.sb,Gi.prototype.includesSide=Gi.prototype.Hf,Gi.prototype.opposite=Gi.prototype.gv,Gi.prototype.equals=Gi.prototype.D,Gi.prototype.set=Gi.prototype.set,Gi.prototype.setTo=Gi.prototype.sg;var El=[];Gi.className="Spot",Gi.parse=Hu,Gi.stringify=Ol,Gi.None=Da=Fa(new Gi(0,0,0,0),0).ja(),Gi.Default=Jo=Fa(new Gi(0,0,-1,0),-1).ja(),Gi.TopLeft=pa=new Gi(0,0,0,0).ja(),Gi.TopCenter=Os=new Gi(.5,0,0,0).ja(),Gi.TopRight=ml=new Gi(1,0,0,0).ja(),Gi.LeftCenter=Gl=new Gi(0,.5,0,0).ja(),Gi.Center=So=new Gi(.5,.5,0,0).ja(),Gi.RightCenter=Au=new Gi(1,.5,0,0).ja(),Gi.BottomLeft=il=new Gi(0,1,0,0).ja(),Gi.BottomCenter=Nl=new Gi(.5,1,0,0).ja(),Gi.BottomRight=vl=new Gi(1,1,0,0).ja(),Gi.MiddleTop=rs=Os,Gi.MiddleLeft=ds=Gl,Gi.MiddleRight=Ls=Au,Gi.MiddleBottom=xs=Nl,Gi.Top=Cs=Os,Gi.Left=ma=Gl,Gi.Right=dl=Au,Gi.Bottom=Ss=Nl,Gi.TopSide=fu=Fa(new Gi(0,0,1,1),1).ja(),Gi.LeftSide=yl=Fa(new Gi(0,0,1,2),1).ja(),Gi.RightSide=rl=Fa(new Gi(0,0,1,4),1).ja(),Gi.BottomSide=Sl=Fa(new Gi(0,0,1,8),1).ja(),Gi.TopBottomSides=oc=Fa(new Gi(0,0,1,9),1).ja(),Gi.LeftRightSides=Sc=Fa(new Gi(0,0,1,6),1).ja(),Gi.TopLeftSides=xc=Fa(new Gi(0,0,1,3),1).ja(),Gi.TopRightSides=Qc=Fa(new Gi(0,0,1,5),1).ja(),Gi.BottomLeftSides=gu=Fa(new Gi(0,0,1,10),1).ja(),Gi.BottomRightSides=zl=Fa(new Gi(0,0,1,12),1).ja(),Gi.NotTopSide=xl=Fa(new Gi(0,0,1,14),1).ja(),Gi.NotLeftSide=Tl=Fa(new Gi(0,0,1,13),1).ja(),Gi.NotRightSide=pu=Fa(new Gi(0,0,1,11),1).ja(),Gi.NotBottomSide=wc=Fa(new Gi(0,0,1,7),1).ja(),Gi.AllSides=mu=Fa(new Gi(0,0,1,15),1).ja(),Ks=new Gi(.156,.156).ja(),Bs=new Gi(.844,.844).ja(),Gi.parse=Hu,Gi.stringify=Ol;function jr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}jr.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},jr.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},jr.prototype.copy=function(){var a=new jr;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},jr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},jr.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},jr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},jr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},jr.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},jr.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,ee=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*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},jr.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},jr.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,ee=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Ae=jr.prototype,Ae.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ae.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ae.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)},Ae.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))},Ae.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))},Ae.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,le=this.dx,ue=this.dy,fe=y*z+x*re+le,xe=y*ee+x*oe+ue,be=b*z+x*re+le,Le=b*ee+x*oe+ue;return x=y*z+E*re+le,y=y*ee+E*oe+ue,z=b*z+E*re+le,b=b*ee+E*oe+ue,E=Math.min(fe,be),fe=Math.max(fe,be),be=Math.min(xe,Le),xe=Math.max(xe,Le),E=Math.min(E,x),fe=Math.max(fe,x),be=Math.min(be,y),xe=Math.max(xe,y),E=Math.min(E,z),fe=Math.max(fe,z),be=Math.min(be,b),xe=Math.max(xe,b),a.h(E,be,fe-E,xe-be),a},jr.alloc=function(){var a=Lu.pop();return a===void 0?new jr:a},jr.free=function(a){Lu.push(a)},jr.prototype.transformRect=jr.prototype.pp,jr.prototype.transformPoint=jr.prototype.Ga,jr.prototype.scale=jr.prototype.scale,jr.prototype.translate=jr.prototype.translate,jr.prototype.rotate=jr.prototype.rotate,jr.prototype.invert=jr.prototype.Vj,jr.prototype.multiplyInverted=jr.prototype.bv,jr.prototype.multiply=jr.prototype.multiply,jr.prototype.reset=jr.prototype.reset,jr.prototype.isIdentity=jr.prototype.ws,jr.prototype.equals=jr.prototype.D,jr.prototype.setTransform=jr.prototype.setTransform,jr.prototype.set=jr.prototype.set;var Lu=[];jr.className="Transform",jr.xF="54a702f3e53909c447824c6706603faf4c";var Vt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Vt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Vt.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,ee){if(0>=E&&(E=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<b)var le=y,ue=b;else le=b,ue=y;if(a===x)return le<=ee&&ee<=ue&&a-E<=z&&z<=a+E;if(y===b)return re<=z&&z<=oe&&y-E<=ee&&ee<=y+E;if(oe+=E,re-=E,re<=z&&z<=oe&&(ue+=E,le-=E,le<=ee&&ee<=ue))if(oe-re>ue-le)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=ee&&ee<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ee=(x-a)/(b-y)*(ee-y)+a,ee-E<=z&&z<=ee+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe){if(Vt.Yb(a,y,ee,re,fe,x,b)&&Vt.Yb(a,y,ee,re,fe,E,z))return Vt.Yb(a,y,ee,re,fe,le,ue);var xe=(a+x)/2,be=(y+b)/2,Le=(x+E)/2,Te=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(xe+Le)/2,x=(be+Te)/2,Le=(Le+E)/2,Te=(Te+z)/2;var at=(b+Le)/2,Ue=(x+Te)/2;return Vt.cs(a,y,xe,be,b,x,at,Ue,oe,le,ue,fe)||Vt.cs(at,Ue,Le,Te,E,z,ee,re,oe,le,ue,fe)},ax:function(a,y,x,b,E,z,ee,re,oe){var le=(x+E)/2,ue=(b+z)/2;return oe.h((((a+x)/2+le)/2+(le+(E+ee)/2)/2)/2,(((y+b)/2+ue)/2+(ue+(z+re)/2)/2)/2),oe},My:function(a,y,x,b,E,z,ee,re){var oe=(x+E)/2,le=(b+z)/2;return Ai(((a+x)/2+oe)/2,((y+b)/2+le)/2,(oe+(E+ee)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,b,E,z,ee,re,oe,le){if(Vt.Yb(a,y,ee,re,oe,x,b)&&Vt.Yb(a,y,ee,re,oe,E,z))Ao(le,a,y,0,0),Ao(le,ee,re,0,0);else{var ue=(a+x)/2,fe=(y+b)/2,xe=(x+E)/2,be=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+xe)/2,x=(fe+be)/2,xe=(xe+E)/2,be=(be+z)/2;var Le=(b+xe)/2,Te=(x+be)/2;Vt.Dl(a,y,ue,fe,b,x,Le,Te,oe,le),Vt.Dl(Le,Te,xe,be,E,z,ee,re,oe,le)}return le},Qe:function(a,y,x,b,E,z,ee,re,oe,le){if(Vt.Yb(a,y,ee,re,oe,x,b)&&Vt.Yb(a,y,ee,re,oe,E,z))le.length===0&&(le.push(a),le.push(y)),le.push(ee),le.push(re);else{var ue=(a+x)/2,fe=(y+b)/2,xe=(x+E)/2,be=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+xe)/2,x=(fe+be)/2,xe=(xe+E)/2,be=(be+z)/2;var Le=(b+xe)/2,Te=(x+be)/2;Vt.Qe(a,y,ue,fe,b,x,Le,Te,oe,le),Vt.Qe(Le,Te,xe,be,E,z,ee,re,oe,le)}return le},jv:function(a,y,x,b,E,z,ee,re,oe,le){if(Vt.Yb(a,y,E,z,le,x,b))return Vt.Yb(a,y,E,z,le,re,oe);var ue=(a+x)/2,fe=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var xe=(ue+x)/2,be=(fe+b)/2;return Vt.jv(a,y,ue,fe,xe,be,ee,re,oe,le)||Vt.jv(xe,be,x,b,E,z,ee,re,oe,le)},OA:function(a,y,x,b,E,z,ee){return ee.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),ee},iv:function(a,y,x,b,E,z,ee,re){if(Vt.Yb(a,y,E,z,ee,x,b))Ao(re,a,y,0,0),Ao(re,E,z,0,0);else{var oe=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(oe+x)/2,fe=(le+b)/2;Vt.iv(a,y,oe,le,ue,fe,ee,re),Vt.iv(ue,fe,x,b,E,z,ee,re)}return re},ep:function(a,y,x,b,E,z,ee,re){if(Vt.Yb(a,y,E,z,ee,x,b))re.length===0&&(re.push(a),re.push(y)),re.push(E),re.push(z);else{var oe=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(oe+x)/2,fe=(le+b)/2;Vt.ep(a,y,oe,le,ue,fe,ee,re),Vt.ep(ue,fe,x,b,E,z,ee,re)}return re},Eo:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe,xe,be){if(Vt.Yb(a,y,ee,re,xe,x,b)&&Vt.Yb(a,y,ee,re,xe,E,z))return!Vt.Rl(a,y,ee,re,oe,le,ue,fe)||(xe=(a-ee)*(le-fe)-(y-re)*(oe-ue),xe===0)?!1:(be.h(((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-le*ue))/xe,((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/xe),!0);var Le=(a+x)/2,Te=(y+b)/2,at=(x+E)/2,Ue=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Le+at)/2,x=(Te+Ue)/2,at=(at+E)/2,Ue=(Ue+z)/2;var vt=(b+at)/2,St=(x+Ue)/2,Ft=1/0,Kt=!1,pn=0,ki=0;return Vt.Eo(a,y,Le,Te,b,x,vt,St,oe,le,ue,fe,xe,be)&&(a=(be.x-oe)*(be.x-oe)+(be.y-le)*(be.y-le),a<Ft&&(Ft=a,Kt=!0,pn=be.x,ki=be.y)),Vt.Eo(vt,St,at,Ue,E,z,ee,re,oe,le,ue,fe,xe,be)&&(be.x-oe)*(be.x-oe)+(be.y-le)*(be.y-le)<Ft&&(Kt=!0,pn=be.x,ki=be.y),Kt&&(be.x=pn,be.y=ki),Kt},Fo:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe,xe){var be=0;if(Vt.Yb(a,y,ee,re,xe,x,b)&&Vt.Yb(a,y,ee,re,xe,E,z)){if(xe=(a-ee)*(le-fe)-(y-re)*(oe-ue),xe===0)return be;var Le=((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-le*ue))/xe,Te=((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/xe;if(Le>=ue)return be;if((oe>ue?oe-ue:ue-oe)<(le>fe?le-fe:fe-le)){if(y<re?(oe=y,a=re):(oe=re,a=y),Te<oe||Te>a)return be}else if(a<ee?(oe=a,a=ee):oe=ee,Le<oe||Le>a)return be;0<xe?be++:0>xe&&be--}else{Le=(a+x)/2,Te=(y+b)/2;var at=(x+E)/2,Ue=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Le+at)/2,x=(Te+Ue)/2,at=(at+E)/2,Ue=(Ue+z)/2;var vt=(b+at)/2,St=(x+Ue)/2;be+=Vt.Fo(a,y,Le,Te,b,x,vt,St,oe,le,ue,fe,xe),be+=Vt.Fo(vt,St,at,Ue,E,z,ee,re,oe,le,ue,fe,xe)}return be},qh:function(a,y,x,b,E,z,ee){return Vt.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):Vt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ee.h(b,y),!1):E>a?(ee.h(a,y),!1):(ee.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ee.h(a,y),!1):1.000005<E?(ee.h(x,b),!1):(ee.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,ee,re,oe){return Vt.B(a,x)&&Vt.B(y,b)?(oe.h(a,y),!1):Vt.$(E,ee)?Vt.$(a,x)?(Vt.qh(a,y,x,b,E,z,oe),!1):Vt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,oe):(re=(re-z)/(ee-E),Vt.$(a,x)?(x=re*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(oe.h(a,E),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(b-y)/(x-a),Vt.$(re,ee)?(Vt.qh(a,y,x,b,E,z,oe),!1):(E=(ee*a-re*E+z-y)/(ee-re),Vt.$(ee,0)?(a<x?(b=a,a=x):b=x,E<b?(oe.h(b,y),!1):E>a?(oe.h(a,y),!1):(oe.h(E,y),!0)):Vt.qh(a,y,x,b,E,ee*(E-a)+y,oe))))},MA:function(a,y,x,b,E){return Vt.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,ee,re,oe,le){function ue(at,Ue){var vt=(at-a)*(at-a)+(Ue-y)*(Ue-y);vt<fe&&(fe=vt,oe.h(at,Ue))}var fe=1/0;ue(oe.x,oe.y);var xe=0,be=0,Le=0,Te=0;if(E<ee?(xe=E,be=ee):(xe=ee,be=E),z<re?(Le=E,Te=ee):(Le=ee,Te=E),xe=(be-xe)/2+le,le=(Te-Le)/2+le,E=(E+ee)/2,z=(z+re)/2,xe===0||le===0)return oe;if(.5>(x>a?x-a:a-x)){if(xe=1-(x-E)*(x-E)/(xe*xe),0>xe)return oe;xe=Math.sqrt(xe),b=-le*xe+z,ue(x,le*xe+z),ue(x,b)}else{if(x=(b-y)/(x-a),b=1/(xe*xe)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*E/(xe*xe),xe=re*re-4*b*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+E*E/(xe*xe)-1+(y-x*a)*(y-x*a)/(le*le)),0>xe)return oe;xe=Math.sqrt(xe),le=(-re+xe)/(2*b),ue(le,x*le-x*a+y),xe=(-re-xe)/(2*b),ue(xe,x*xe-x*a+y)}return oe},Ff:function(a,y,x,b,E,z,ee,re,oe){var le=1e21,ue=a,fe=y;if(Vt.Ve(a,y,a,b,E,z,ee,re,oe)){var xe=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z);xe<le&&(le=xe,ue=oe.x,fe=oe.y)}return Vt.Ve(x,y,x,b,E,z,ee,re,oe)&&(xe=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),xe<le&&(le=xe,ue=oe.x,fe=oe.y)),Vt.Ve(a,y,x,y,E,z,ee,re,oe)&&(y=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),y<le&&(le=y,ue=oe.x,fe=oe.y)),Vt.Ve(a,b,x,b,E,z,ee,re,oe)&&(a=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),a<le&&(le=a,ue=oe.x,fe=oe.y)),oe.h(ue,fe),1e21>le},us:function(a,y,x){return Vt.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,ee,re){var oe=a+x,le=y+b;return E===ee?(z<re?(ee=z,z=re):ee=re,a<=E&&E<=oe&&ee<=le&&z>=y):z===re?(E<ee?(re=E,E=ee):re=ee,y<=z&&z<=le&&re<=oe&&E>=a):!!(Ko(a,y,x,b,E,z)||Ko(a,y,x,b,ee,re)||Vt.Rl(a,y,oe,y,E,z,ee,re)||Vt.Rl(oe,y,oe,le,E,z,ee,re)||Vt.Rl(oe,le,a,le,E,z,ee,re)||Vt.Rl(a,le,a,y,E,z,ee,re))},Rl:function(a,y,x,b,E,z,ee,re){return a===x&&y===b&&E===ee&&z===re?a===E&&y===z:0>=Vt.Fl(a,y,x,b,E,z)*Vt.Fl(a,y,x,b,ee,re)&&0>=Vt.Fl(E,z,ee,re,a,y)*Vt.Fl(E,z,ee,re,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 ee=Math.PI;z||(b*=ee/180,E*=ee/180);var re=b>E?-1:1;z=[];var oe=ee/2,le=b;if(b=Math.min(2*ee,Math.abs(E-b)),1e-5>b)return oe=le+re*Math.min(b,oe),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(le+y)/2,z.push([re,le,x,oe,x,oe,a,y]),z;for(;1e-5<b;)E=le+re*Math.min(b,oe),z.push(Vt.Vy(x,le,E,a,y)),b-=Math.abs(E-le),le=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,le=ee*ee+oe*oe,ue=le+ee*ee+oe*re;return le=4/3*(Math.sqrt(2*le*ue)-ue)/(ee*re-oe*ee),re=ee-le*oe,ee=oe+le*ee,oe=-ee,le=z+y,z=Math.cos(le),le=Math.sin(le),[b+a*Math.cos(y),E+a*Math.sin(y),b+re*z-ee*le,E+re*le+ee*z,b+re*z-oe*le,E+re*le+oe*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,ee){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var re=x;return x+E-a<E/2&&(re=x+E),a=b,b+z-y<z/2&&(a=b+z),ee.h(re,a),ee},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 ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,le=ee===0?x:b;return(ee===0?E:z)&&(le=-le),ee=re,x=ee===0?x:b,(ee===0?E:z)&&(x=-x),Vt.az(oe,ee===0?a:y,le,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 ee=y*b,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var le=0;9999999999>le&&(y=.5*(re+oe),!(y===re||y===oe));++le){var ue=a/(y+E),fe=ee/(y+z);if(ue=ue*ue+fe*fe-1,0<ue)re=y;else if(0>ue)oe=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 ir,um:new ir,Mf:new ir,Nf:0,vm:100};Vt.za=Vt.AA;function gi(a){fr(this),this.l=2,a===void 0&&(a=gi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===gi.o?this.ee=new Dn:(gi.V===null&&(gi.V=new Dn().freeze()),this.ee=gi.V),this.aq=this.ee.Ja,this.Ip=new Sn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=pa,this.gg=vl,this.Rk=this.Sk=NaN,this.Uf=li}gi.prototype.copy=function(){var a=new gi;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===gi.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},gi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},gi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==gi.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},gi.prototype.ka=function(){if(Object.isFrozen(this)&&ct("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==gi.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},gi.prototype.Xa=function(a){if(!(a instanceof gi))return!1;if(this.type!==a.type)return this.type===gi.j&&a.type===gi.o?Mu(this,a):a.type===gi.j&&this.type===gi.o?Mu(a,this):!1;if(this.type===gi.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 Vt.B(this.startX,a.startX)&&Vt.B(this.startY,a.startY)&&Vt.B(this.endX,a.endX)&&Vt.B(this.endY,a.endY)};function Mu(a,y){return a.type!==gi.j||y.type!==gi.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Vt.B(a.startX,y.startX)&&Vt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===va&&Vt.B(a.endX,y.endX)&&Vt.B(a.endY,y.endY))))}gi.ia=function(a){return a.toString()},gi.prototype.qb=function(a){a.classType===gi&&(this.type=a)},gi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case gi.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 gi.u:var y=new Sn(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 gi.F:if(y=new Sn(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 gi.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()}},gi.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},gi.parse=function(a,y){function x(){return Te>=Ft-1?!0:le[Te+1].match(Kt)!==null}function b(){return Te++,le[Te]}function E(Xr){var Rr=parseFloat(b()),Qo=parseFloat(b());at===at.toLowerCase()&&(Rr=St.x+Rr,Qo=St.y+Qo),Xr.h(Rr,Qo)}function z(){return E(St),St}function ee(){return E(vt),vt}function re(){var Xr=Ue.toLowerCase();return Xr!=="c"&&Xr!=="s"&&Xr!=="q"&&Xr!=="t"?St:new _e(2*St.x-vt.x,2*St.y-vt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$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 le=a.split(" ");for(a=0;a<le.length;a++){var ue=le[a];if(ue.match(/(\.[0-9]*)(\.)/gm)!==null){oe=ci();for(var fe="",xe=!1,be=0;be<ue.length;be++){var Le=ue[be];Le!=="."||xe?Le==="."?(oe.push(fe),fe="."):fe+=Le:(xe=!0,fe+=Le)}for(oe.push(fe),le.splice(a,1),ue=0;ue<oe.length;ue++)le.splice(a+ue,0,oe[ue]);a+=oe.length-1,Pi(oe)}}var Te=-1,at="",Ue="";oe=new _e(0,0);var vt=new _e(0,0),St=new _e(0,0),Ft=le.length;a=O1(null),xe=fe=ue=!1,be=!0,Le=null;for(var Kt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Te>=Ft-1);)if(Ue=at,at=b(),at!=="")switch(at.toUpperCase()){case"X":be=!0,fe=ue=!1;break;case"M":for(Le=z(),a.mc===null||be===!0?(Ig(a,Le.x,Le.y,ue,!fe,xe),be=!1):a.moveTo(Le.x,Le.y),oe.assign(St);!x();)Le=z(),a.lineTo(Le.x,Le.y);break;case"L":for(;!x();)Le=z(),a.lineTo(Le.x,Le.y);break;case"H":for(;!x();)St=new _e((at===at.toLowerCase()?St.x:0)+parseFloat(b()),St.y),a.lineTo(St.x,St.y);break;case"V":for(;!x();)St=new _e(St.x,(at===at.toLowerCase()?St.y:0)+parseFloat(b())),a.lineTo(St.x,St.y);break;case"C":for(;!x();){Le=new _e,E(Le);var pn=ee(),ki=z();wh(a,Le.x,Le.y,pn.x,pn.y,ki.x,ki.y)}break;case"S":for(;!x();)Le=re(),pn=ee(),ki=z(),wh(a,Le.x,Le.y,pn.x,pn.y,ki.x,ki.y);break;case"Q":for(;!x();)Le=ee(),pn=z(),Vm(a,Le.x,Le.y,pn.x,pn.y);break;case"T":for(;!x();)vt=Le=re(),pn=z(),Vm(a,Le.x,Le.y,pn.x,pn.y);break;case"B":for(;!x();){Le=parseFloat(b()),pn=parseFloat(b()),ki=parseFloat(b());var Ji=parseFloat(b()),Ri=parseFloat(b()),pi=Ri,ni=!1;x()||(pi=parseFloat(b()),x()||(ni=parseFloat(b())!==0)),at===at.toLowerCase()&&(ki+=St.x,Ji+=St.y),a.arcTo(Le,pn,ki,Ji,Ri,pi,ni)}break;case"A":for(;!x();)Le=Math.abs(parseFloat(b())),pn=Math.abs(parseFloat(b())),ki=parseFloat(b()),Ri=Ji=!1,ni=pi=0,pi=b(),pi.length===1?(Ji=!!parseFloat(pi),Ri=!!parseFloat(b()),pi=parseFloat(b())):pi.length===2?(Ji=!!parseFloat(pi[0]),Ri=!!parseFloat(pi[1]),pi=parseFloat(b())):(Ji=!!parseFloat(pi[0]),Ri=!!parseFloat(pi[1]),pi=parseFloat(pi.slice(2))),ni=parseFloat(b()),at===at.toLowerCase()&&(pi=St.x+pi,ni=St.y+ni),St.h(pi,ni),kx(a,Le,pn,ki,Ji,Ri,pi,ni);break;case"Z":Nx(a),St.assign(oe);break;case"F":for(Le="",pn=1;le[Te+pn];)if(le[Te+pn]==="0")xe=!0,pn++;else if(le[Te+pn].match(/[Uu]/)!==null)pn++;else if(le[Te+pn].match(Kt)===null)pn++;else{Le=le[Te+pn];break}Le.match(/[Mm]/)?ue=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Le="",pn=1;le[Te+pn];)if(le[Te+pn].match(/[Ff]/)!==null)pn++;else if(le[Te+pn].match(Kt)===null)pn++;else{Le=le[Te+pn];break}Le.match(/[Mm]/)?fe=!0:a.mc.isShadowed=!1}if(oe=a.os,Gm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},gi.Ha=function(a,y){for(var x=a.length,b=_e.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}_e.free(b)},gi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===gi.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},gi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===gi.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 ee=b[z];ee._isInvalidBounds=!1,ee.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),Fu(this,a,!1),Ao(a,0,0,0,0),a.freeze()},gi.prototype.ix=function(){var a=new Sn;return Fu(this,a,!0),a};function Fu(a,y,x){switch(a.type){case gi.j:case gi.u:case gi.F:x?y.h(a.od,a.pd,0,0):Ao(y,a.od,a.pd,0,0),Ao(y,a.Dc,a.Ec,0,0);break;case gi.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):Ao(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,le=z.startY,ue=0;ue<re;ue++){var fe=ee[ue];switch(fe.type){case va:case ws:oe=fe.endX,le=fe.endY,Ao(y,oe,le,0,0);break;case ol:Vt.Dl(oe,le,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case je:Vt.iv(oe,le,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case nt:case ut:var xe=fe.type===nt?wl(fe,z):Il(fe,z,oe,le),be=xe.length;if(be===0){oe=fe.type===nt?fe.centerX:fe.endX,le=fe.type===nt?fe.centerY:fe.endY,Ao(y,oe,le,0,0);break}fe=null;for(var Le=0;Le<be;Le++)fe=xe[Le],Vt.Dl(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,y);fe!==null&&(oe=fe[6],le=fe[7]);break;default:ct("Unknown Segment type: "+fe.type)}}}break;default:ct("Unknown Geometry type: "+a.type)}}gi.prototype.normalize=function(){this._isFrozen&&sn(this);var a=this.ix();return this.offset(-a.x,-a.y),new _e(-a.x,-a.y)},gi.prototype.offset=function(a,y){return this._isFrozen&&sn(this),this.transform(1,0,0,1,a,y),this},gi.prototype.scale=function(a,y){return this._isFrozen&&sn(this),this.transform(a,0,0,y,0,0),this},gi.prototype.rotate=function(a,y,x){this._isFrozen&&sn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=jr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),jr.free(b),this},Ae=gi.prototype,Ae.transform=function(a,y,x,b,E,z){switch(this.type){case gi.j:case gi.u:case gi.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+E,this.pd=ee*y+re*b+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+E,this.Ec=ee*y+re*b+z;break;case gi.o:for(var oe=this.figures.s,le=oe.length,ue=0;ue<le;ue++){var fe=oe[ue];ee=fe.startX,re=fe.startY,fe.startX=ee*a+re*x+E,fe.startY=ee*y+re*b+z,fe=fe.segments.s;for(var xe=fe.length,be=0;be<xe;be++){var Le=fe[be];switch(Le.type){case va:case ws:ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case ol:ee=Le.point1X,re=Le.point1Y,Le.point1X=ee*a+re*x+E,Le.point1Y=ee*y+re*b+z,ee=Le.point2X,re=Le.point2Y,Le.point2X=ee*a+re*x+E,Le.point2Y=ee*y+re*b+z,ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case je:ee=Le.point1X,re=Le.point1Y,Le.point1X=ee*a+re*x+E,Le.point1Y=ee*y+re*b+z,ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case nt:ee=Le.centerX,re=Le.centerY,Le.centerX=ee*a+re*x+E,Le.centerY=ee*y+re*b+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Le.startAngle+=ee),0>a&&(Le.startAngle=180-Le.startAngle,Le.sweepAngle=-Le.sweepAngle),0>b&&(Le.startAngle=-Le.startAngle,Le.sweepAngle=-Le.sweepAngle),Le.radiusX*=Math.sqrt(a*a+x*x),Le.radiusY!==void 0&&(Le.radiusY*=Math.sqrt(y*y+b*b));break;case ut:if(ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z,Le.radiusX===0||Le.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Le.xAxisRotation+=ee),0>a&&(Le.xAxisRotation=180-Le.xAxisRotation,Le.isClockwiseArc=!Le.isClockwiseArc),0>b&&(Le.xAxisRotation=-Le.xAxisRotation,Le.isClockwiseArc=!Le.isClockwiseArc),Le.radiusX*=Math.sqrt(a*a+x*x),Le.radiusY*=Math.sqrt(y*y+b*b);break;default:ct("Unknown Segment type: "+Le.type)}}}}return this._isInvalidBounds=!0,this},Ae.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 gi.j:return Vt.Yb(x,b,E,z,y,a.x,a.y);case gi.u:var ee=Sn.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=ee.ca(a),Sn.free(ee),a;case gi.F:ee=Math.min(x,E)-y;var re=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:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case gi.o:return _l(this,a,y,!0,!1);default:return!1}};function _l(a,y,x,b,E){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,le,ue,fe,xe=a.figures.s,be=xe.length,Le=0;Le<be;Le++){var Te=xe[Le],at=!Te.isEvenOdd;if(Te.isFilled){if(b&&Te.ca(z,y,x))return!0;var Ue=Te.segments;oe=Te.startX,le=Te.startY;for(var vt=oe,St=le,Ft=Ue.s,Kt=0;Kt<=Ue.length;Kt++){var pn=void 0;if(Kt!==Ue.length){pn=Ft[Kt];var ki=pn.type;a=pn.endX,fe=pn.endY}else ki=va,a=vt,fe=St;switch(ki){case ws:if(vt=$l(z,y,ee,y,oe,le,vt,St),isNaN(vt))return!0;re+=vt,vt=a,St=fe;break;case va:if(oe=$l(z,y,ee,y,oe,le,a,fe),isNaN(oe))return!0;re+=oe;break;case ol:ue=Vt.Fo(oe,le,pn.point1X,pn.point1Y,pn.point2X,pn.point2Y,a,fe,ee,y,z,y,.5),re+=ue;break;case je:ue=Vt.Fo(oe,le,(oe+2*pn.point1X)/3,(le+2*pn.point1Y)/3,(2*pn.point1X+a)/3,(2*pn.point1Y+fe)/3,a,fe,ee,y,z,y,.5),re+=ue;break;case nt:case ut:ki=pn.type===nt?wl(pn,Te):Il(pn,Te,oe,le);var Ji=ki.length;if(Ji===0){if(oe=$l(z,y,ee,y,oe,le,pn.type===nt?pn.centerX:pn.endX,pn.type===nt?pn.centerY:pn.endY),isNaN(oe))return!0;re+=oe;break}pn=null;for(var Ri=0;Ri<Ji;Ri++){if(pn=ki[Ri],Ri===0){if(ue=$l(z,y,ee,y,oe,le,pn[0],pn[1]),isNaN(ue))return!0;re+=ue}ue=Vt.Fo(pn[0],pn[1],pn[2],pn[3],pn[4],pn[5],pn[6],pn[7],ee,y,z,y,.5),re+=ue}pn!==null&&(a=pn[6],fe=pn[7]);break;default:ct("Unknown Segment type: "+pn.type)}oe=a,le=fe}if(at){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Te.ca(z,y,E?x:x+2))return!0}return!1}function $l(a,y,x,b,E,z,ee,re){if(Vt.Yb(E,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var le=((a*b-y*x)*(E-ee)-(a-x)*(E*re-z*ee))/oe;if(y=(a*b-y*x)*(z-re)/oe,le>=a)return 0;if((E>ee?E-ee:ee-E)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(E<ee){if(le<E||le>ee)return 0}else if(le<ee||le>E)return 0;return 0<oe?1:-1}function jl(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}Ae.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new _e),this.type===gi.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,ee=0,re=0;re<E;re++){var oe=b[re],le=oe.length;for(a=0;a<le;a++){var ue=oe[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,x=x[re],re=x[2*a],E=x[2*a+1],y.h(re+(x[2*a+2]-re)*b,E+(x[2*a+3]-E)*b),y;ee+=ue}}return y},Ae.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===gi.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,ee=0;ee<b;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var le=re[a];if(z+le>=E)return E=y[ee],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+=le}}return NaN},Ae.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===gi.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,ee=0,re=0;re<E;re++){var oe=b[re],le=oe.length;for(a=0;a<le;a++){var ue=oe[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,ue=x[re],x=ue[2*a],re=ue[2*a+1],E=ue[2*a+2],a=ue[2*a+3],y[0]=x+(E-x)*b,y[1]=re+(a-re)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-re)?0:1>Math.abs(E-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=E-x?0:180:180*Math.atan2(a-re,E-x)/Math.PI,y;ee+=ue}}return y},Ae.xx=function(a){if(this.type===gi.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 ee=x;b=E}else ee=E,b=x;return a<=ee?ee===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ee)}if(x===E)return y<b?ee=y:(ee=b,b=y),z<=ee?ee===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-ee);ee=(b-y)*(b-y)+(E-x)*(E-x);var re=_e.alloc();return Vt.qh(y,x,b,E,z,a,re),a=re.x,z=re.y,_e.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===gi.u){ee=this.startX,re=this.startY;var oe=this.endX;if(E=this.endY,ee!==oe||re!==E){y=oe-ee,x=E-re,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ee),oe),a=Math.min(Math.max(a,re),E),ee=Math.abs(b-ee),oe=Math.abs(b-oe),re=Math.abs(a-re),E=Math.abs(a-E);var le=Math.min(ee,oe,re,E);if(le===re)return b/z;if(le===oe)return(y+a)/z;if(le===E)return(2*y+x-b)/z;if(le===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=_e.alloc(),E=1/0,re=ee=0,oe=y.length;for(var ue=le=0,fe=0;fe<oe;fe++)for(var xe=y[fe],be=x[fe],Le=xe.length,Te=0;Te<Le;Te+=2){var at=xe[Te],Ue=xe[Te+1];if(Te!==0){Vt.qh(le,ue,at,Ue,a.x,a.y,b);var vt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);vt<E&&(E=vt,ee=re,ee+=Math.sqrt((b.x-le)*(b.x-le)+(b.y-ue)*(b.y-ue))),re+=be[(Te-2)/2]}le=at,ue=Ue}return _e.free(b),a=ee/z,0>a?0:1<a?1:a}return 0};function Pc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===gi.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===gi.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===gi.F){var z=new Ts;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new Io(nt);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=wl(ee,z),E=a.length,E===0)b.push(ee.centerX),b.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<E;re++){var oe=a[re];Vt.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,b),ee=oe[6],z=oe[7]}}y.push(b),x.push(Ic(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),ee=E.startX,z=E.startY,re=ee,oe=z;for(var le=E.segments.s,ue=le.length,fe=0;fe<ue;fe++){var xe=le[fe];switch(xe.type){case ws:4<=b.length&&(y.push(b),x.push(Ic(b))),b=[],b.push(xe.endX),b.push(xe.endY),ee=xe.endX,z=xe.endY,re=ee,oe=z;break;case va:b.push(xe.endX),b.push(xe.endY),ee=xe.endX,z=xe.endY;break;case ol:Vt.Qe(ee,z,xe.point1X,xe.point1Y,xe.point2X,xe.point2Y,xe.endX,xe.endY,.5,b),ee=xe.endX,z=xe.endY;break;case je:Vt.ep(ee,z,xe.point1X,xe.point1Y,xe.endX,xe.endY,.5,b),ee=xe.endX,z=xe.endY;break;case nt:var be=wl(xe,E),Le=be.length;if(Le===0){b.push(xe.centerX),b.push(xe.centerY),ee=xe.centerX,z=xe.centerY;break}for(var Te=0;Te<Le;Te++){var at=be[Te];Vt.Qe(ee,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),ee=at[6],z=at[7]}break;case ut:if(be=Il(xe,E,ee,z),Le=be.length,Te=xe.endX,at=xe.endY,Le===0){b.push(Te),b.push(at),ee=Te,z=at;break}for(Te=0;Te<Le;Te++)at=be[Te],Vt.Qe(ee,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),ee=at[6],z=at[7];break;default:ct("Segment not of valid type: "+xe.type)}xe.isClosed&&(b.push(re),b.push(oe))}4<=b.length&&(y.push(b),x.push(Ic(b)))}}}function Ic(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(vr(x,b,ee,re))),x=ee,b=re}return y}Ae.add=function(a){return this.ee.add(a),this},Ae.pm=function(a,y,x,b,E,z,ee,re){return this._isFrozen&&sn(this),this.fg=new Gi(a,y,E,z).freeze(),this.gg=new Gi(x,b,ee,re).freeze(),this},ze.Object.defineProperties(gi.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 Pc(this),this.tk}},flattenedLengths:{get:function(){return Pc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===gi.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===gi.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,ee=0;ee<z;ee++)a+=E[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&sn(this,a),this.na=a,a===gi.o?this.ee=new Dn:(gi.V===null&&(gi.V=new Dn().freeze()),this.ee=gi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&sn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&sn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&sn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&sn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&sn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&sn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&sn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&sn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),gi.prototype.setSpots=gi.prototype.pm,gi.prototype.add=gi.prototype.add,gi.prototype.getFractionForPoint=gi.prototype.xx,gi.prototype.getPointAndAngleAlongPath=gi.prototype.Qu,gi.prototype.getAngleAlongPath=gi.prototype.wx,gi.prototype.getPointAlongPath=gi.prototype.Pu,gi.prototype.containsPoint=gi.prototype.ca,gi.prototype.transform=gi.prototype.transform,gi.prototype.rotate=gi.prototype.rotate,gi.prototype.scale=gi.prototype.scale,gi.prototype.offset=gi.prototype.offset,gi.prototype.normalize=gi.prototype.normalize,gi.prototype.computeBoundsWithoutOrigin=gi.prototype.ix,gi.prototype.equalsApprox=gi.prototype.Xa,gi.className="Geometry",gi.j=new Cn(gi,"Line",0),gi.u=new Cn(gi,"Rectangle",1),gi.F=new Cn(gi,"Ellipse",2),gi.o=new Cn(gi,"Path",3),gi.V=null,gi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",gi.className="Geometry",gi.stringify=gi.ia,gi.fillPath=gi.nb,gi.parse=gi.parse,gi.Line=gi.j,gi.Rectangle=gi.u,gi.Ellipse=gi.F,gi.Path=gi.o;function Ts(a,y,x,b,E){fr(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 Dn,this.sr=this.pl.Ja,this.fw=null}Ts.prototype.copy=function(){var a=new Ts;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},Ae=Ts.prototype,Ae.Xa=function(a){if(!(a instanceof Ts&&Vt.B(this.startX,a.startX)&&Vt.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},Ae.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},Ae.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},Ae.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},Ae.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},Ae.add=function(a){return this.pl.add(a),this},Ae.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,ee=E,re=this.segments.s,oe=re.length,le=0;le<oe;le++){var ue=re[le];switch(ue.type){case ws:z=ue.endX,ee=ue.endY,b=ue.endX,E=ue.endY;break;case va:if(Vt.Yb(b,E,ue.endX,ue.endY,x,a,y))return!0;b=ue.endX,E=ue.endY;break;case ol:if(Vt.cs(b,E,ue.point1X,ue.point1Y,ue.point2X,ue.point2Y,ue.endX,ue.endY,.5,a,y,x))return!0;b=ue.endX,E=ue.endY;break;case je:if(Vt.jv(b,E,ue.point1X,ue.point1Y,ue.endX,ue.endY,.5,a,y,x))return!0;b=ue.endX,E=ue.endY;break;case nt:case ut:var fe=ue.type===nt?wl(ue,this):Il(ue,this,b,E),xe=fe.length,be=ue.type===nt?ue.centerX:ue.endX,Le=ue.type===nt?ue.centerY:ue.endY;if(xe===0){if(Vt.Yb(b,E,be,Le,x,a,y))return!0;b=be,E=Le;break}for(be=null,Le=0;Le<xe;Le++)if(be=fe[Le],Le===0&&Vt.Yb(b,E,be[0],be[1],x,a,y)||Vt.cs(be[0],be[1],be[2],be[3],be[4],be[5],be[6],be[7],.5,a,y,x))return!0;be!==null&&(b=be[6],E=be[7]);break;default:ct("Unknown Segment type: "+ue.type)}if(ue.isClosed&&(b!==z||E!==ee)&&Vt.Yb(b,E,z,ee,x,a,y))return!0}return!1},ze.Object.defineProperties(Ts.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&&sn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&sn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&sn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&sn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&sn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&sn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Ts.prototype.add=Ts.prototype.add,Ts.prototype.equalsApprox=Ts.prototype.Xa,Ts.className="PathFigure";function Io(a,y,x,b,E,z,ee,re){fr(this),a===void 0&&(a=va),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),ee===void 0&&(ee=0),a===ut?(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 ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===nt&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===nt&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}Io.prototype.copy=function(){var a=new Io;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},Ae=Io.prototype,Ae.Xa=function(a){if(!(a instanceof Io)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ws:case va:return Vt.B(this.endX,a.endX)&&Vt.B(this.endY,a.endY);case ol:return Vt.B(this.endX,a.endX)&&Vt.B(this.endY,a.endY)&&Vt.B(this.point1X,a.point1X)&&Vt.B(this.point1Y,a.point1Y)&&Vt.B(this.point2X,a.point2X)&&Vt.B(this.point2Y,a.point2Y);case je:return Vt.B(this.endX,a.endX)&&Vt.B(this.endY,a.endY)&&Vt.B(this.point1X,a.point1X)&&Vt.B(this.point1Y,a.point1Y);case nt:return Vt.B(this.startAngle,a.startAngle)&&Vt.B(this.sweepAngle,a.sweepAngle)&&Vt.B(this.centerX,a.centerX)&&Vt.B(this.centerY,a.centerY)&&Vt.B(this.radiusX,a.radiusX)&&Vt.B(this.radiusY,a.radiusY);case ut:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Vt.B(this.xAxisRotation,a.xAxisRotation)&&Vt.B(this.endX,a.endX)&&Vt.B(this.endY,a.endY)&&Vt.B(this.radiusX,a.radiusX)&&Vt.B(this.radiusY,a.radiusY);default:return!1}},Ae.qb=function(a){a.classType===Io&&(this.type=a)},Ae.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ws:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case va:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ol: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 je: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 nt: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 ut: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":"")},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return this._isFrozen=!1,this},Ae.close=function(){return this.isClosed=!0,this};function wl(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=Vt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ee=jr.alloc();ee.reset(),x<b?ee.scale(1,b/x):ee.scale(x/b,1),gi.Ha(z,ee),jr.free(ee)}for(x=z.length,b=0;b<x;b++)ee=z[b],ee[0]+=y,ee[1]+=E,ee[2]+=y,ee[3]+=E,ee[4]+=y,ee[5]+=E,ee[6]+=y,ee[7]+=E;return a.ae=z,a.ae}function Il(a,y,x,b){function E(Te,at,Ue,vt){return(Te*vt<at*Ue?-1:1)*Math.acos((Te*Ue+at*vt)/(Math.sqrt(Te*Te+at*at)*Math.sqrt(Ue*Ue+vt*vt)))}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 ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,le=a.Dc,ue=a.Ec,fe=Math.cos(ee),xe=Math.sin(ee),be=fe*(x-le)/2+xe*(b-ue)/2;ee=-xe*(x-le)/2+fe*(b-ue)/2;var Le=be*be/(y*y)+ee*ee/(z*z);return 1<Le&&(y*=Math.sqrt(Le),z*=Math.sqrt(Le)),Le=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*be*be)/(y*y*ee*ee+z*z*be*be)),isNaN(Le)&&(Le=0),re=Le*y*ee/z,Le=Le*-z*be/y,isNaN(re)&&(re=0),isNaN(Le)&&(Le=0),x=(x+le)/2+fe*re-xe*Le,b=(b+ue)/2+xe*re+fe*Le,ue=E(1,0,(be-re)/y,(ee-Le)/z),fe=(be-re)/y,le=(ee-Le)/z,be=(-be-re)/y,re=(-ee-Le)/z,ee=E(fe,le,be,re),be=(fe*be+le*re)/(Math.sqrt(fe*fe+le*le)*Math.sqrt(be*be+re*re)),-1>=be?ee=Math.PI:1<=be&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,be=y>z?z/y:1,y=Vt.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=jr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(oe,be),gi.Ha(y,z),jr.free(z),a.ae=y,a.ae}ze.Object.defineProperties(Io.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&&sn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&sn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&sn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&sn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&sn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&sn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&sn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&sn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&sn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Un(a,">= zero",Io,"radiusX"),this._isFrozen&&sn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Un(a,">= zero",Io,"radiusY"),this._isFrozen&&sn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&sn(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&&sn(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&&sn(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&&sn(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&&sn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Io.prototype.equalsApprox=Io.prototype.Xa;var ws=new Cn(Io,"Move",0),va=new Cn(Io,"Line",1),ol=new Cn(Io,"Bezier",2),je=new Cn(Io,"QuadraticBezier",3),nt=new Cn(Io,"Arc",4),ut=new Cn(Io,"SvgArc",4);Io.className="PathSegment",Io.Move=ws,Io.Line=va,Io.Bezier=ol,Io.QuadraticBezier=je,Io.Arc=nt,Io.SvgArc=ut;function $t(){this.H=null,this.xu=new _e(0,0).freeze(),this.mt=new _e(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}$t.prototype.copy=function(){var a=new $t;return this.clone(a)},$t.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},$t.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},$t.prototype.So=function(a,y){var x=this.diagram;return x===null||Ud(x,a,y),y},$t.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ud(x,a,y),y.assign(x.Ps(y))),y},ze.Object.defineProperties($t.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}}}),$t.prototype.getMultiTouchDocumentPoint=$t.prototype.Bz,$t.prototype.getMultiTouchViewPoint=$t.prototype.So,$t.className="InputEvent";function un(){this.H=null,this.xa="",this.ar=this.Lr=null}un.prototype.copy=function(){var a=new un;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},un.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},ze.Object.defineProperties(un.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}}}),un.className="DiagramEvent";function In(){this.Fm=ui,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}In.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},In.prototype.copy=function(){var a=new In;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=Zt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Zt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Zt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Zt(y)&&typeof y.J=="function"?y.J():y,a},In.prototype.qb=function(a){a.classType===In&&(this.change=a)},In.prototype.toString=function(){var a="";return a=this.change===Wn?a+"* ":this.change===ui?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===Wn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=ji(this.object)),this.oldValue!==null&&(a+=" old: "+ji(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ji(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},In.prototype.I=function(a){return a?this.oldValue:this.newValue},In.prototype.Dz=function(a){return a?this.oldParam:this.newParam},In.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},In.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},In.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},In.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ze.Object.defineProperties(In.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===Wn&&(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}}}),In.prototype.redo=In.prototype.redo,In.prototype.canRedo=In.prototype.canRedo,In.prototype.undo=In.prototype.undo,In.prototype.canUndo=In.prototype.canUndo,In.prototype.getParam=In.prototype.Dz,In.prototype.getValue=In.prototype.I,In.prototype.clear=In.prototype.clear;var Wn=new Cn(In,"Transaction",-1),ui=new Cn(In,"Property",0),fi=new Cn(In,"Insert",1),Ni=new Cn(In,"Remove",2);In.className="ChangedEvent",In.Transaction=Wn,In.Property=ui,In.Insert=fi,In.Remove=Ni;function ar(){this.o=new Dn().freeze(),this.xa="",this.j=!1}ar.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},ar.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()},ar.prototype.canUndo=function(){return this.isComplete},ar.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()}},ar.prototype.canRedo=function(){return this.isComplete},ar.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()}},ar.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Oi,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===ui&&b.object){var E=y.get(b.object);E||(E=new Oi,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()}},ze.Object.defineProperties(ar.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}}}),ar.prototype.optimize=ar.prototype.ak,ar.prototype.redo=ar.prototype.redo,ar.prototype.canRedo=ar.prototype.canRedo,ar.prototype.undo=ar.prototype.undo,ar.prototype.canUndo=ar.prototype.canUndo,ar.prototype.clear=ar.prototype.clear,ar.className="Transaction";function Fi(){this.Pt=new Ln,this.Jd=!1,this.u=new Dn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Dn().freeze(),this.hl=new Dn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Fi.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},Fi.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},Fi.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ae=Fi.prototype,Ae.Xw=function(a){this.Pt.add(a)},Ae.Rx=function(a){this.Pt.remove(a)},Ae.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},Ae.eb=function(a){return a===void 0&&(a=""),_i(this,!0,a)},Ae.Kf=function(){return _i(this,!1,"")};function _i(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&_n("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 ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-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}Ae.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()}},Fi.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Fi.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){_n("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Fi.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Fi.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){_n("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Fi.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new In;for(b.change=Wn,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Fi.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new ar);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||_n("Change not within a transaction: "+x.toString()))}},Fi.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},ze.Object.defineProperties(Fi.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}}}),Fi.prototype.handleChanged=Fi.prototype.Tu,Fi.prototype.redo=Fi.prototype.redo,Fi.prototype.undo=Fi.prototype.undo,Fi.prototype.canUndo=Fi.prototype.canUndo,Fi.prototype.discardHistoryAfterIndex=Fi.prototype.lx,Fi.prototype.rollbackTransaction=Fi.prototype.Kf,Fi.prototype.commitTransaction=Fi.prototype.eb,Fi.prototype.startTransaction=Fi.prototype.Ea,Fi.prototype.removeModel=Fi.prototype.Rx,Fi.prototype.addModel=Fi.prototype.Xw,Fi.prototype.clear=Fi.prototype.clear,Fi.className="UndoManager";function bi(){fr(this),this.H=bc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new $t,this.Zr=-1}bi.prototype.toString=function(){return this.name!==""?this.name+" Tool":Mi(this.constructor)},bi.prototype.updateAdornments=function(){},bi.prototype.canStart=function(){return this.isEnabled},bi.prototype.doStart=function(){},bi.prototype.doActivate=function(){this.isActive=!0},bi.prototype.doDeactivate=function(){this.isActive=!1},bi.prototype.doStop=function(){},bi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},bi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},bi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},bi.prototype.doMouseMove=function(){},bi.prototype.doMouseUp=function(){this.stopTool()},bi.prototype.doMouseWheel=function(){},bi.prototype.canStartMultiTouch=function(){return!0},bi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,_e.allocAt(NaN,NaN)),b=y.So(1,_e.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}_e.free(x),_e.free(b)},bi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,_e.allocAt(NaN,NaN)),b=y.So(1,_e.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 _e((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 ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=E,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}_e.free(x),_e.free(b)},bi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},bi.prototype.doKeyUp=function(){},bi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},bi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},bi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Tr?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||(Tr?y.meta:y.control)||y.shift||a.clearSelection()}},bi.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,xr(a,b,x),b.handled};function xr(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)}}}bi.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,ee=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(b===z||b!==null&&b.rg(z)||(re(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;b!==null&&(ee=b.mouseEnter,!(ee!==null&&(z===b||z!==null&&z.rg(b)||(ee(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,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}},bi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},bi.prototype.doCurrentObjectChanged=function(){},bi.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===co&&!y.shift||E===wr&&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===co&&y.shift||E===wr&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},bi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},bi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Fn(function(){x.doWaitAfter(b)},a)},bi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Qe.clearTimeout(this.Zr),this.Zr=-1},bi.prototype.doWaitAfter=function(){},bi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Uo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},bi.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},ze.Object.defineProperties(bi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof gn&&(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}}}),bi.prototype.startTransaction=bi.prototype.Ea,bi.className="Tool";function ai(){bi.call(this),this.name="ToolManager",this.hb=new Dn,this.ob=new Dn,this.Hb=new Dn,this.F=this.V=850,this.o=new zn(2,2).ja(),this.Ha=5e3,this.ia=wr,this.u=mo,this.Mp=this.j=null,this.zj=-1}wt(ai,bi),ai.prototype.initializeStandardTools=function(){},ai.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Uo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},ai.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===vo&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===ho){y.bubbles=!0;return}if(this.gestureBehavior===vo)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===wr?this.mouseWheelBehavior=co:this.mouseWheelBehavior===co&&(this.mouseWheelBehavior=wr)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ai.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===ho){y.bubbles=!0;return}if(this.gestureBehavior===vo)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}}$i(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function $i(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}ai.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Uo&&(y===a||y.rg(a))||this.hideToolTip()},ai.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()))},ai.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)},ai.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 Uo)||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()},ai.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Uo){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 Dr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Qe.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Fn(function(){E.hideToolTip()},a)}},ai.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}},ai.prototype.hideToolTip=function(){this.zj!==-1&&(Qe.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Uo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Dr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ai.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()},ai.prototype.doMouseWheel=function(){this.standardMouseWheel()},ai.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ai.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ai.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},ai.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},ai.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)},ze.Object.defineProperties(ai.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 Uo?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}}}),ai.prototype.replaceStandardTool=ai.prototype.gb;var wr=new Cn(ai,"WheelScroll",0),co=new Cn(ai,"WheelZoom",1),no=new Cn(ai,"WheelNone",2),mo=new Cn(ai,"GestureZoom",3),vo=new Cn(ai,"GestureCancel",4),ho=new Cn(ai,"GestureNone",5);ai.className="ToolManager",ai.WheelScroll=wr,ai.WheelZoom=co,ai.WheelNone=no,ai.GestureZoom=mo,ai.GestureCancel=vo,ai.GestureNone=ho;function ur(){bi.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 _e(NaN,NaN),this.Fr=new _e,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ln().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var la;wt(ur,bi),ur.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},ur.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},ur.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,(Tr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},ur.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),Qt=null,this.isActive=!0,this.tl.set(a.position),ea(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&&kl(a),fh(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Qt=this,Pn=this.diagram,this.doSimulatedDragOut()))};function ea(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof mi?(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 Ii,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}ur.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},ur.prototype.Pd=function(a){return a===void 0?new Qd(yt):this.isGridSnapEnabled?new Qd(new _e(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Qd(a.copy())},ur.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ya(this),_u(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<la.count){for(var y=la,x=y.length,b=0;b<x;b++){var E=y.M(b);hs(E),Ba(E),ya(E),E.diagram.ug()}y.clear()}hs(this),this.tl.h(NaN,NaN),Pn!==null&&(Pn.currentCursor=""),Qt=Pn=null,Ba(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),fd(a,!0)},ur.prototype.stopTransaction=function(){var a=this.diagram,y=bi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ya(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,os(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Va(){var a=Qt;Ba(a),Ca(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}ur.prototype.doCancel=function(){Ba(this),Ca(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},ur.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},ur.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Ha(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")):Ca(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 Oi,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 mi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,ea(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,bh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Ba(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 mi&&(x.value.point=new _e(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function hs(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 La(a,y,x){var b=a.diagram,E=a.startPoint,z=_e.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),_e.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(kl(b),b.hk())}ur.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&uc(b,a,y,this.dragOptions,x)};function Ca(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 mi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),bh(b,-E.x,-E.y)}y.bd()}}function Ta(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Oa(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=os(a,E,b),!a.isActive&&Qt===null)return;var re=b!==null?b.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Qr)){var oe=x.mouseDragOver;oe!==null&&(oe(E),ee=!0)}if(!a.isActive&&Qt===null||(a.doDragOver(y,b),!a.isActive&&Qt===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}ur.prototype.findDragOverObject=function(a){var y=this;return lc(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Uo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},ur.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 os(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 ee=0;ee<E;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Qt===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=fs(E);for(E=a.Cg.length,x=0;x<E&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),b=!0,!y.handled));x++);return b}function fs(a){var y=a.panel;return y!==null?y:a instanceof dr&&!(a instanceof Qr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Qa(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(le){return b.findValidLinkablePort(le,x)});a=_e.alloc();var z=1/0,ee=null;for(E=E.iterator;E.next();){var re=E.value;if(re.part!==null){var oe=re.ga(So,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return _e.free(a),ee}function Oa(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,ee=null;x.fromNode===null&&(z=Qa(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Qa(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),E.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Sr(E,ee,z,oe,re):Sr(E,null,null,null,null)}}}}ur.prototype.doDragOver=function(){};function Is(a,y){var x=a.diagram;a.dragsLink&&Oa(a,!0),ya(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 ee=z.mouseDrop;if(ee!==null&&(ee(E,z),E.handled))break;hl(a,E,z),z=fs(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Qt!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Ti&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Qt!==null){for(a=Sn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Ti&&rt(x,b,a);Sn.free(a)}}}function hl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Qr||(x=a.mouseDrop,x!==null&&x(y))}function rt(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 mi},!0,function(E){return E instanceof mi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}ur.prototype.doDropOnto=function(){},ur.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()?(Ha(this,!1),fh(a,this.copiedParts),La(this,this.copiedParts,!1),_u(a,this.copiedParts)):this.mayMove()?(Ba(this),La(this,this.draggedParts,!0)):this.mayDragOut()?(Ha(this,!1),La(this,this.copiedParts,!1)):Ba(this),Ta(this,a.lastInput.documentPoint))}},ur.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?(Ba(this),Ha(this,!0),fh(a,this.copiedParts),La(this,this.copiedParts,!1),_u(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,Ba(this),this.mayMove()&&(La(this,this.draggedParts,!0),Ta(this,a.lastInput.documentPoint))),this.Ym=!0,Is(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&gt(this),a.Ya(),_u(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},ur.prototype.simulatedMouseMove=function(a,y,x){if(Qt===null)return!1;var b=Qt.diagram;x instanceof gn||(x=null);var E=Pn;return x!==E&&(E!==null&&E!==b&&(E.ug(),Qt.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Pn=x,x!==null&&x!==b&&(Va(),E=x.toolManager.findTool("Dragging"),E!==null&&(la.contains(E)||la.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)},ur.prototype.simulatedMouseUp=function(a,y,x){if(Qt===null)return!1;var b=Pn,E=Qt.diagram;if(x===null)return Qt.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Qt.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Pn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Va(),la.contains(b)||la.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 _e),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=Qt,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function gt(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Ti&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}ur.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Tr?!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())},ur.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())},ur.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())},ur.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},ur.prototype.Az=function(){return Qt},ur.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Qt;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},ur.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Hl(a),a.animationManager.Cc(),a=Qt,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},ur.prototype.doSimulatedDragLeave=function(){var a=Qt;a!==null&&a.doSimulatedDragOut(),this.doCancel()},ur.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Qt;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Xt(this,y.draggedParts.Lf(),!1,a.firstInput),La(this,this.copiedParts,!1),Ta(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},ur.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Qt;if(y!==null){var x=y.diagram;if(y.Ym=!0,Ba(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Xt(this,y.draggedParts.Lf(),!0,a.lastInput),La(this,this.copiedParts,!1);var b=new Ln;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Is(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 Xt(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=Sn.alloc();E=b=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var le=oe.value;if(le.isVisible()){var ue=le.location;le=ue.x,ue=ue.y,isNaN(le)||isNaN(ue)||(le<b&&(b=le),ue<E&&(E=ue),le>ee&&(ee=le),ue>re&&(re=ue))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,ee-b,re-E),b=z.x+z.width/2,E=z.y+z.height/2,Sn.free(z),z=a.Fr,ee=new Oi,re=_e.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof mi&&le.canCopy()&&(ue=x.I(le),ue!==null&&(ue.points=le.points,bh(ue,z.x-b,z.y-E),ue.suspendsRouting=!0,ee.add(ue,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(oe=x.I(le),oe!==null&&(le=le.location,re.h(z.x-(b-le.x),z.y-(E-le.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));_e.free(re),a.copiedParts=ee,ea(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,bh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}ur.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},ur.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new _e},ze.Object.defineProperties(ur.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}}}),ur.prototype.getDraggingSource=ur.prototype.Az;var Qt=null,Pn=null;ur.className="DraggingTool",la=new Dn,nr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ai.prototype.doCancel=function(){Qt!==null&&Qt.doCancel(),bi.prototype.doCancel.call(this)};function hn(){bi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new mi,y=new io;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new io,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Ti,y=new io,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=kr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Ti,y=new io,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=kr,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 Oi,this.Of=this.gj=this.Pf=null}wt(hn,bi),hn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},hn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),ee=zn.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,b.desiredSize=ee,zn.free(ee),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=So,z=_e.alloc(),x.location=y.ga(So,z),_e.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},hn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=kr,y.fromSpot=Da,y.toSpot=Da),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},hn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},hn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Ti){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)}},hn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Ti))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Ti)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},hn.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(fe){return E.findValidLinkablePort(fe,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof Ti){var oe=ee.ga(So,_e.alloc()),le=x.x-oe.x,ue=x.y-oe.y;_e.free(oe),oe=le*le+ue*ue,oe<b&&(le=this.validPortsCache.I(ee),le!==null?le&&(y=ee,b=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,b=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof Ti&&(x.layer===null||x.layer.allowLink))?y:null},hn.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},hn.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},hn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},hn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Ti))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Ti))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},hn.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)},hn.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 Ln;return b.add(a),Jn(this,x,y,b)};function Jn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Jn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Jn(a,y.labeledLink,x,b))))}hn.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!==Xf){if(b===fp){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!Yn(this,a,y,x,!0)}if(b===gp){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!Yn(this,a,y,x,!0)}if(b===cp)return a===y?a=!0:(b=new Ln,b.add(y),a=Vn(this,b,a,y,x)),!a;if(b===dp)return!Yn(this,a,y,x,!1);if(b===hp)return a===y?a=!0:(b=new Ln,b.add(y),a=xi(this,b,a,y,x)),!a}return!0};function Yn(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 ee=z.value;if(ee!==b&&(!E||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Yn(a,ee,x,b,E)))return!0}return!1}function Vn(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 ee=z.value;if(ee!==E&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&Vn(a,y,ee,b,E)))return!0}return!1}function xi(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 ee=z.value;if(ee!==E){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&xi(a,y,re,b,E))return!0}}return!1}ze.Object.defineProperties(hn.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}}}),hn.className="LinkingBaseTool";function si(){hn.call(this),this.name="Linking",this.V={},this.F=null,this.K=Si,this.Xd=null}wt(si,hn),si.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},si.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 Ti)))return null;var x=this.direction;if(x===Si||x===Qi){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===Si||x===Xi)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},si.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 Ti&&(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 Ti&&(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)},si.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()},si.prototype.doStop=function(){hn.prototype.doStop.call(this),this.startObject=null},si.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof Ti&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=re,E=ee):(y=re,x=ee,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?(ee===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)}}},si.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof mi)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)},si.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},si.prototype.doNoLink=function(){},ze.Object.defineProperties(si.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 Si=new Cn(si,"Either",0),Qi=new Cn(si,"ForwardsOnly",0),Xi=new Cn(si,"BackwardsOnly",0);si.className="LinkingTool",si.Either=Si,si.ForwardsOnly=Qi,si.BackwardsOnly=Xi;function Ii(){hn.call(this),this.name="Relinking";var a=new io;a.figure="Diamond",a.desiredSize=to,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new io,a.figure="Diamond",a.desiredSize=to,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Sn}wt(Ii,hn),Ii.prototype.updateAdornments=function(a){if(a!==null&&a instanceof mi){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)}},Ii.prototype.makeAdornment=function(a,y){var x=new Uo;return x.type=hi.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Ii.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},Ii.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 Uo&&x.adornedPart instanceof mi))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=pr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=pr),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},Ii.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===jg||x===Eh)&&(x=au),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}},Ii.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()},Ii.prototype.doStop=function(){hn.prototype.doStop.call(this),this.handle=null},Ii.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 ee=this.targetPort.part;ee instanceof Ti&&(this.isForwards?(b=ee,E=this.targetPort):(y=ee,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()}}},Ii.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},Ii.prototype.doNoRelink=function(){};function Sr(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)}ze.Object.defineProperties(Ii.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 Uo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Ii.className="RelinkingTool",nr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),nr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Zi(){bi.call(this),this.name="LinkReshaping";var a=new io;a.figure="Rectangle",a.desiredSize=po,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new io,a.figure="Diamond",a.desiredSize=to,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new _e,this.Yq=new Dn}wt(Zi,bi),Zi.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Er},Zi.prototype.om=function(a,y){a.reshapingBehavior=y},Zi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof mi){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)}},Zi.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Uo,E.type=hi.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=b?1:0;if(y.resegmentable&&y.computeCurve()!==nc)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,E.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&b){oe=y.i(x);var le=y.i(x+1);Vt.B(oe.x,le.x)&&Vt.B(oe.y,le.y)&&(le=y.i(x-1)),Vt.B(oe.x,le.x)?(this.om(re,yo),re.cursor="n-resize"):Vt.B(oe.y,le.y)&&(this.om(re,Or),re.cursor="w-resize")}else ee===z-1&&b?(oe=y.i(z-1),le=y.i(z),Vt.B(oe.x,le.x)&&Vt.B(oe.y,le.y)&&(oe=y.i(z+1)),Vt.B(oe.x,le.x)?(this.om(re,yo),re.cursor="n-resize"):Vt.B(oe.y,le.y)&&(this.om(re,Or),re.cursor="w-resize")):ee!==z&&(this.om(re,Lo),re.cursor="move");E.add(re)}E.adornedObject=a}return E},Zi.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Zi.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Zi.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},Zi.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 mi){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}}},Zi.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Zi.prototype.stopTransaction=function(){var a=this.diagram,y=bi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Zi.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Zi.prototype.getResegmentingPoint=function(){return this.handle.ga(So)},Zi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Zi.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 ee=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Lr(this,ee,b,E,z,!0)||Lr(this,ee,b,E,z,!1))){var re=y.points.copy();Lr(this,ee,b,E,z,!0)?(re.cd(x-2,new _e(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new _e(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new _e((z.x+ee.x)/2,ee.y)),re.cd(x+1,new _e((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Lr(this,b,E,z,ee,!0)||Lr(this,b,E,z,ee,!1))&&(re=y.points.copy(),Lr(this,b,E,z,ee,!0)?(re.cd(x-1,new _e(b.x,(b.y+ee.y)/2)),re.cd(x+2,new _e(ee.x,(b.y+ee.y)/2))):(re.cd(x-1,new _e((b.x+ee.x)/2,b.y)),re.cd(x+2,new _e((b.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=_e.alloc(),Vt.qh(b.x,b.y,z.x,z.y,E.x,E.y,ee)&&ee.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),_e.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Lr(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}Zi.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===yo?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Or&&(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===yo?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===Or&&(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),ee=y.i(b+1);Vt.B(z.x,E.x)&&Vt.B(E.y,ee.y)?(Vt.B(z.x,y.i(b-2).x)&&!Vt.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),Vt.B(ee.y,y.i(b+2).y)&&!Vt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.x,a.y)):Vt.B(z.y,E.y)&&Vt.B(E.x,ee.x)?(Vt.B(z.y,y.i(b-2).y)&&!Vt.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),Vt.B(ee.x,y.i(b+2).x)&&!Vt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Vt.B(z.x,E.x)&&Vt.B(E.x,ee.x)?(Vt.B(z.x,y.i(b-2).x)&&!Vt.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),Vt.B(ee.x,y.i(b+2).x)&&!Vt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Vt.B(z.y,E.y)&&Vt.B(E.y,ee.y)&&(Vt.B(z.y,y.i(b-2).y)&&!Vt.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),Vt.B(ee.y,y.i(b+2).y)&&!Vt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.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(So,_e.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,_e.alloc()),y.L(0,b.x,b.y),_e.free(z),_e.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(So,_e.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,_e.alloc()),y.L(y.pointsCount-1,a.x,a.y),_e.free(x),_e.free(a));y.zf()},Zi.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Lo:return a;case yo:return new _e(y.i(x).x,a.y);case Or:return new _e(a.x,y.i(x).y);default:case Er:return y.i(x)}},ze.Object.defineProperties(Zi.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 Uo))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}}}),Zi.prototype.setReshapingBehavior=Zi.prototype.om,Zi.prototype.getReshapingBehavior=Zi.prototype.Ru;var Er=new Cn(Zi,"None",0),Or=new Cn(Zi,"Horizontal",1),yo=new Cn(Zi,"Vertical",2),Lo=new Cn(Zi,"All",3);Zi.className="LinkReshapingTool",Zi.None=Er,Zi.Horizontal=Or,Zi.Vertical=yo,Zi.All=Lo,nr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Hr(){bi.call(this),this.name="Resizing",this.o=new zn(1,1).freeze(),this.j=new zn(9999,9999).freeze(),this.yg=new zn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new io;a.alignmentFocus=So,a.figure="Rectangle",a.desiredSize=po,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new _e,this.Dw=new zn,this.Tn=new _e,this.rt=new zn(0,0),this.qt=new zn(1/0,1/0),this.pt=new zn(1,1)}wt(Hr,bi),Hr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof mi)){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(),Uh(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Hr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Uo,y.type=hi.Spot,y.locationSpot=So;var x=new ou;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,pa)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,vl)),y.add(this.makeHandle(a,il)),y.add(this.makeHandle(a,rs)),y.add(this.makeHandle(a,Ls)),y.add(this.makeHandle(a,xs)),y.add(this.makeHandle(a,ds))}else if(Nc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Hr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Hr.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=So),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 e;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 hi)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Hr.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},Hr.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))},Hr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Hr.prototype.stopTransaction=function(){var a=this.diagram,y=bi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Hr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Hr.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,_e.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),_e.free(E)}},Hr.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,_e.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),_e.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Hr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Qr){var b=new Dn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new ae;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()}},Hr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=So);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,le=ee.x+ee.width,ue=ee.y+ee.height,fe=1;if(!z){fe=ee.width;var xe=ee.height;0>=fe&&(fe=1),0>=xe&&(xe=1),fe=xe/fe}return xe=_e.alloc(),Vt.No(a.x,a.y,re,oe,E.width,E.height,xe),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(xe.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(xe.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.x=le-a.width,a.y=ue-a.height)):1<=y.y?(a.x=Math.max(xe.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(xe.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.x=le-a.width)):(a.x=Math.max(xe.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(xe.x-re,b.width),x.width),a.y=Math.max(xe.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.y=ue-a.height)):1<=y.y?(a.width=Math.max(Math.min(xe.x-re,b.width),x.width),a.height=Math.max(Math.min(xe.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width))):(a.width=Math.max(Math.min(xe.x-re,b.width),x.width),z||(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):0>=y.y?(a.y=Math.max(xe.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=ue-a.y,z||(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(xe.y-oe,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))),_e.free(xe),a},Hr.prototype.computeReshape=function(){var a=ii;return this.adornedObject instanceof io&&(a=Mv(this.adornedObject)),!(a===er||this.diagram.lastInput.shift)},Hr.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},Hr.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},Hr.prototype.computeCellSize=function(){var a=new zn(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},ze.Object.defineProperties(Hr.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 Uo))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 Uo)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}}}),Hr.className="ResizingTool",nr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function qr(){bi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new _e,this.ue=null;var a=new io;a.figure="Ellipse",a.desiredSize=to,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new _e(NaN,NaN),this.u=0,this.F=50}wt(qr,bi),qr.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)}},qr.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Uo,y.type=hi.Position,y.locationSpot=So;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Nc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},qr.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},qr.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)},qr.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(So)},qr.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)},qr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new _e(NaN,NaN),this.isActive=a.isMouseCaptured=!1},qr.prototype.stopTransaction=function(){var a=this.diagram,y=bi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},qr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},qr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},qr.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()},qr.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()}},qr.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},ze.Object.defineProperties(qr.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 Uo))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 Uo)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}}}),qr.className="RotatingTool",nr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Vo(){bi.call(this),this.name="ClickSelecting"}wt(Vo,bi),Vo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Vo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Vo.className="ClickSelectingTool";function Ir(){bi.call(this),this.name="Action",this.pk=null}wt(Ir,bi),Ir.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},Ir.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()},Ir.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))}},Ir.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()},Ir.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())},Ir.prototype.doStop=function(){this.pk=null},Ir.className="ActionTool";function ao(){bi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new _e(0,0)}wt(ao,bi),ao.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)},ao.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},ao.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 dr)x.Zc()&&(Nc(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Zt(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=_e.allocAt(a.x,a.y);this.isGridSnapEnabled&&vf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),_e.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},ze.Object.defineProperties(ao.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}}}),ao.className="ClickCreatingTool";function Wr(){bi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new dr;a.layerName="Tool",a.selectable=!1;var y=new io;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}wt(Wr,bi),Wr.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))},Wr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Wr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Wr.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=zn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),zn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Wr.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()},Wr.prototype.computeBoxBounds=function(){var a=this.diagram;return new Sn(a.firstInput.documentPoint,a.lastInput.documentPoint)},Wr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Tr?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 Dn,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)}},ze.Object.defineProperties(Wr.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}}}),Wr.className="DragSelectingTool";function mr(){bi.call(this),this.name="Panning",this.Xt=new _e,this.xy=new _e,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Qe.document,"scroll",a.Kw,!1),a.stopTool()}}wt(mr,bi),mr.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())},mr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Qe.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},mr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},mr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},mr.prototype.doMouseMove=function(){this.move()},mr.prototype.doMouseUp=function(){this.move(),this.stopTool()},mr.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)}},ze.Object.defineProperties(mr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),mr.className="PanningTool",nr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),nr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),nr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),nr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),nr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Dr(){this.F=this.u=this.j=this.o=null}ze.Object.defineProperties(Dr.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}}}),Dr.className="HTMLInfo";function lo(a,y,x){this.text=a,this.hx=y,this.visible=x}lo.className="ContextMenuButtonInfo";function Mo(){bi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new _e,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}wt(Mo,bi);function ko(a){var y=new Dr;y.show=function(E,z,ee){ee.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},ta=y,a.tu=function(){a.stopTool()},y=Hn("div");var x=Hn("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=Hn("style");Qe.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",Br,!1),b.addEventListener(y,"selectstart",Br,!1),b.addEventListener(x,"contextmenu",Br,!1)),y.className="goCXforeground",x.className="goCXbackground",Qe.document.body&&(Qe.document.body.appendChild(y),Qe.document.body.appendChild(x)),Ho=y,ga=x,_a=!0}function Br(a){return a.preventDefault(),!1}Mo.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)},Mo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Mo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Mo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof gn||(a instanceof Gt?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},Mo.prototype.doActivate=function(){},Mo.prototype.doMouseDown=function(){if(bi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Uo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Go(this)},Mo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Uo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Go(this)};function Go(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Dr||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(_o(a,!0),a.isActive||a.stopTool())}Mo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function _o(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=ta,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Gt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Uo&&!a.currentContextMenu.visible&&a.stopTool()}}Mo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Mo.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Uo){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 Dr&&a.show(y,x,this);this.currentContextMenu=a},Mo.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}},Mo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Uo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Dr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function na(a){var y=new Dn;return y.add(new lo("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new lo("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new lo("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new lo("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new lo("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new lo("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new lo("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new lo("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new lo("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new lo("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new lo("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new lo("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new lo("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Mo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=na(this)),Ho.innerHTML="",ga.addEventListener("pointerdown",this.tu,!1);var y=this,x=Hn("ul");x.className="goCXul",Ho.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=Hn("li"),z.className="goCXli";var ee=Hn("a");ee.className="goCXa",ee.href="#",ee.ky=E.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=E.text,z.appendChild(ee),x.appendChild(z)}}Ho.style.display="block",ga.style.display="block"},Mo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ta){Ho.style.display="none",ga.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ga,"pointerdown",this.tu,!1),this.currentContextMenu=null}},ze.Object.defineProperties(Mo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Uo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return _a===!1&&ta===null&&us&&ko(this),ta},set:function(a){a===null&&(_a=!0),ta=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ta=null,_a=!1,ga=null,Ho=null;Mo.className="ContextMenuTool",nr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function wo(){bi.call(this),this.name="TextEditing",this.Zh=new ba,this.ia=null,this.V=xo,this.vj=null,this.qa=qi,this.u=1,this.F=!0,this.o=null,this.j=new Dr,this.kt=null,Oo(this,this.j)}wt(wo,bi);function Oo(a,y){if(us){var x=Hn("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(bo)):E==="Tab"?(a.acceptText(Ro),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==qi){var b=a.kt;a.qa===Vr&&(a.qa=Xo),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==qi){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 ba&&z instanceof wo)if(z.state===al)x.style.border="3px solid red",x.focus();else{var ee=b.ga(So),re=E.position,oe=E.scale,le=b.Df()*oe;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var ue=b.naturalBounds.width*le+6,fe=b.naturalBounds.height*le+2,xe=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=b.verticalAlignment,oe=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*le,fe=re.y*fe-re.y*oe+re.offsetY-(.5*fe-.5*oe)-oe/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*le+"%",x.style.lineHeight="normal",x.style.width=ue+"px",x.style.left=(xe-ue/2|0)-1+"px",x.style.top=(ee+fe|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=le,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)}}}wo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Al&&Al!==this&&(Al.acceptText(ts),Al&&Al!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ba&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===xo&&!y.isSelected||this.starting===oo&&2>a.lastInput.clickCount)):!1},wo.prototype.doStart=function(){Al=this,this.textBlock!==null&&this.doActivate()},wo.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 ba&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Vr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Sn(this.textBlock.ga(pa),this.textBlock.ga(vl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},wo.prototype.doCancel=function(){this.stopTool()},wo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},wo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(ts)},wo.prototype.acceptText=function(a){switch(a){case ts:this.qa===Rs?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Vr||this.qa===al||this.qa===Xo)&&(this.qa=ua,Ua(this));break;case Ia:case bo:case Ro:(bo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Vr||this.qa===al||this.qa===Xo)&&(this.qa=ua,Ua(this))}};function Ua(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=Rs,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=al,a.doError(E,z))}}wo.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)},wo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},wo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=qi,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},wo.prototype.doStop=function(){Al=null},wo.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)))},wo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},ze.Object.defineProperties(wo.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)}}}),wo.prototype.measureTemporaryTextBlock=wo.prototype.Lx;var Ia=new Cn(wo,"LostFocus",0),ts=new Cn(wo,"MouseDown",1),Ro=new Cn(wo,"Tab",2),bo=new Cn(wo,"Enter",3),Wo=new Cn(wo,"SingleClick",0),xo=new Cn(wo,"SingleClickSelected",1),oo=new Cn(wo,"DoubleClick",2),qi=new Cn(wo,"StateNone",0),Vr=new Cn(wo,"StateActive",1),Xo=new Cn(wo,"StateEditing",2),ua=new Cn(wo,"StateValidating",3),al=new Cn(wo,"StateInvalid",4),Rs=new Cn(wo,"StateValidated",5),Al=null;wo.className="TextEditingTool",wo.LostFocus=Ia,wo.MouseDown=ts,wo.Tab=Ro,wo.Enter=bo,wo.SingleClick=Wo,wo.SingleClickSelected=xo,wo.DoubleClick=oo,wo.StateNone=qi,wo.StateActive=Vr,wo.StateEditing=Xo,wo.StateValidating=ua,wo.StateInvalid=al,wo.StateValidated=Rs,nr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Na(a){Ms||(Ja(),Ms=!0),this.H=bc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Ys,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ln,this.ce=new qa,this.ce.Yd=this,this.Ei=new Ln,this.pu=new Ln,this.Sr=new Ln,this.pr=new Ln,a&&Object.assign(this,a)}Na.prototype.Xe=function(a){this.H=a},Na.prototype.canStart=function(){return!0};function Xa(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),sl(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===Ys?(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===vu&&y.vc.clear(),a.Qw=!!(a.Pk===Wu&&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(),Ml(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Yl&&b!==null&&(delete b.start.scale,delete b.end.scale),Qe.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&kl(x),Wd(x),a.zb=!1,y.start(),y.bc&&(ns(a),x.Ya(),Cc(y,0),Hl(x,!0),bs(a),x.R("AnimationStarting",a)))}))}}function Vs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ll(a,y,x,b){a.isTicking||Vs(a)||y instanceof mi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Ae=Na.prototype,Ae.fv=function(a){return this.ce.fv(a)},Ae.Xu=function(a){return this.ce.Xu(a)};function Wa(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 ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof Gt&&oe.diagram!==null||oe instanceof gn){re=!0;break e}}re=!1}re?Nu(ee,!1):ee.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ns(E),Hl(E.H),bs(E)),Qe.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Qe.requestAnimationFrame(function(){x()}))}function $a(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ns(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 bs(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ae.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(),Ml(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ml(y,this.H)},Ae.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))},Ae.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),as(this,a))},Ae.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ps(this.ce,y,"position",y.position,y.position),as(this,a))};function Gs(a,y,x){!a.zb||y.D(x)||Vs(a)||(a.H.pi||(y=x.copy()),Ps(a.ce,a.H,"position",y,x))}function Sa(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function as(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Js(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],le=y[1],ue=y[2];return y=y[3],re===0||re===100?(z=oe,ee=le):(ue===0||ue===100)&&(oe=z,le=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=E(x,z,oe-z,b)%360,ee=E(x,ee,le-ee,b),re=E(x,re,ue-re,b),x=E(x,a,y-a,b),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function Ja(){function a(x,b,E,z,ee,re){x.position=new _e(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}var y=new Oi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new _e(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("location",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!0):x.location=new _e(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:placeholder",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new _e(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:nodeCollapse",function(x,b,E,z,ee,re){var oe=x.actualBounds,le=E.actualBounds;E=le.x+le.width/2-oe.width/2,oe=le.y+le.height/2-oe.height/2,ee<re?x.mm(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re),!1):x.position=new _e(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re))}),y.add("desiredSize",function(x,b,E,z,ee,re){x.desiredSize=new Sn(z(ee,b.width,E.width-b.width,re),z(ee,b.height,E.height-b.height,re))}),y.add("width",function(x,b,E,z,ee,re){x.width=z(ee,b,E-b,re)}),y.add("height",function(x,b,E,z,ee,re){x.height=z(ee,b,E-b,re)}),y.add("fill",function(x,b,E,z,ee,re){x.fill=Js(b,E,ee,re,z)}),y.add("stroke",function(x,b,E,z,ee,re){x.stroke=Js(b,E,ee,re,z)}),y.add("strokeWidth",function(x,b,E,z,ee,re){x.strokeWidth=z(ee,b,E-b,re)}),y.add("strokeDashOffset",function(x,b,E,z,ee,re){x.strokeDashOffset=z(ee,b,E-b,re)}),y.add("background",function(x,b,E,z,ee,re){x.background=Js(b,E,ee,re,z)}),y.add("areaBackground",function(x,b,E,z,ee,re){x.areaBackground=Js(b,E,ee,re,z)}),y.add("opacity",function(x,b,E,z,ee,re){x.opacity=z(ee,b,E-b,re)}),y.add("scale",function(x,b,E,z,ee,re){x.scale=z(ee,b,E-b,re)}),y.add("angle",function(x,b,E,z,ee,re){x.angle=z(ee,b,E-b,re)}),zo=y}ze.Object.defineProperties(Na.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&&Un(a,">= 1",Na,"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}}}),Na.prototype.stopAnimation=Na.prototype.Cc;var zo=null,Ms=!1,Ys=new Cn(Na,"Default",1),Wu=new Cn(Na,"AnimateLocations",2),vu=new Cn(Na,"None",3);Na.className="AnimationManager",Na.defineAnimationEffect=function(a,y){Ms||(Ja(),Ms=!0),zo.add(a,y)},Na.Default=Ys,Na.AnimateLocations=Wu,Na.None=vu;function qa(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=ql,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=yt,this.vc=new Oi,this.Tt=new Oi,this.yl=new Ln,this.Ut=new Ln,this.dw=mh,a&&Object.assign(this,a)}qa.prototype.suspend=function(){this.Xk=!0},qa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Nu(this,!0),ns(this.Yd),Hl(this.H),bs(this.Yd),this.H.redraw()};function Ml(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}Ae=qa.prototype,Ae.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 gn?a=x:x instanceof Gt&&(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===Ys&&this===y.defaultAnimation&&(this.Lp=ac,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Jf),ns(y),this.yl.each(function(b){b.data=null,a.add(b)}),bs(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Wa(y,this),this)},Ae.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ae.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof gn?this.H=a:a instanceof Gt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof dr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ps(this,a,y,x,b,E),this};function Ps(a,y,x,b,E,z){var ee=a.vc;if(y instanceof gn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&($d(b),cv(),b=[tc.j,tc.u,tc.o,tc.F],$d(E),cv(),E=[tc.j,tc.u,tc.o,tc.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,le=re.end;oe[x]===void 0&&(oe[x]=gs(b)),le[x]=gs(E)}else oe={},le={},oe[x]=gs(b),le[x]=gs(E),re=oe.position,y instanceof Gt&&re instanceof _e&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new sc(oe,le,z),ee.add(y,re);ee=oe[x],ee instanceof _e&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof dr?re.Ku.location=gs(y.location):z&&(re.Ku[x]=gs(b))}function gs(a){return a instanceof _e||a instanceof zn?a.copy():a}Ae.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ae.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Nu(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),ns(x),Cc(a,E),Hl(a.H,!0),bs(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 Cc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Gt&&z.diagram===null)){var ee=b.value,re=E?ee.end:ee.start;ee=E?ee.start:ee.end;var oe=zo,le;for(le in ee)le==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(le)===null||oe.get(le)(z,re[le],ee[le],a.Lp,y,x,a)}}}Ae.stop=function(){return this.bc?(this.Ml(!0),this):this},Ae.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,ns(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=zo;b.next();){var ee=b.key,re=b.value,oe=E?re.end:re.start,le=E?re.start:re.end,ue=re.Ku,fe;for(fe in le)if(z.get(fe)!==null){var xe=fe;!re.Hu||xe!=="position:nodeCollapse"&&xe!=="position:placeholder"||(xe="position"),z.get(xe)(ee,oe[fe],ue[fe]!==void 0?ue[fe]:re.Hu?oe[fe]:le[fe],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ue.location!==void 0&&ee instanceof dr&&(ee.location=ue.location),re.nv&&ee instanceof dr&&ee.Zb(!1)}if(y.As.clear(),fd(y,!1),y.Ya(),y.N(),Hl(y,!0),x.defaultAnimation===this){for(fe=x.pr.iterator;fe.next();)E=fe.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Hl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),bs(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ml(this,null),x.Ml(this),y.$b())}},Ae.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Qr&&(b=y.placeholder),b!==null?(x=b.ga(pa),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new _e(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Qr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Ti&&this.Cj(b,y)},Ae.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Qr&&(x=y.placeholder),x!==null){var b=x.ga(pa);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Qr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Ti&&this.Aj(b,y)}},Ae.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},ze.Object.defineProperties(qa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Un(a,">= 1",qa,"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:ct("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}}}),qa.prototype.getTemporaryState=qa.prototype.Ez,qa.prototype.stop=qa.prototype.stop,qa.prototype.add=qa.prototype.add,qa.prototype.addTemporaryPart=qa.prototype.Iy;function ql(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function ac(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}qa.className="Animation",qa.EaseLinear=function(a,y,x,b){return x*a/b+y},qa.EaseInOutQuad=ql,qa.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},qa.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},qa.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},qa.EaseOutExpo=ac;function sc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}sc.className="AnimationState";function yu(a,y,x){this.xd=null,this.rf=a,this.so=x||ss,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Qs))}yu.prototype.copy=function(){var a=new yu(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 Ra(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))}ze.Object.defineProperties(yu.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 ss=new Cn(yu,"Default",1),Qs=new Cn(yu,"Immediate",2),ps=new Cn(yu,"Bundled",3);yu.className="AnimationTrigger",yu.Default=ss,yu.Immediate=Qs,yu.Bundled=ps;function za(a){fr(this),this.H=null,this.Pa=new Dn,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)}Ae=za.prototype,Ae.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Kl(x)}a.clear(),this.Zq.length=0},Ae.Xe=function(a){this.H=a},Ae.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,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Qr?E++:oe instanceof Ti?b++:oe instanceof mi?z++:oe instanceof Uo?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<b&&(re+=b+" Nodes "),0<E&&(re+=E+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
`+x.toString(),b=x.data,b!==null&&Cr(b)&&(re+=" #"+Cr(b)),x instanceof Ti?re+=" "+ji(b):x instanceof mi&&(re+=" "+ji(x.fromNode)+" "+ji(x.toNode));return y+" "+this.Pa.count+": "+re},Ae.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=_e.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((b!==!0||Uh(re)!==!1)&&re.isVisible()&&(E.assign(a),Kn(E,re.oe),re=re.ic(E,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return _e.free(E),re}return _e.free(E),null},Ae.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Dn||b instanceof Ln||(b=new Ln),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=_e.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((E!==!0||Uh(oe)!==!1)&&oe.isVisible()){z.assign(a),Kn(z,oe.oe);var le=oe;oe.ji(z,y,x,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return _e.free(z),b},Ae.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 Dn||E instanceof Ln||(E=new Ln),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||Uh(oe)!==!1)&&oe.isVisible()){var le=oe;oe.Cf(a,y,x,b,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return E},Ae.Nu=function(a,y,x,b,E,z,ee){if(this.Uh===!1)return E;for(var re=this.Pa.s,oe=re.length;oe--;){var le=re[oe];if((ee!==!0||Uh(le)!==!1)&&z(le)&&le.isVisible()){var ue=le;le.Cf(a,y,x,b,E)&&(y!==null&&(ue=y(ue)),ue===null||x!==null&&!x(ue)||E.add(ue))}}return E},Ae.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 Dn||E instanceof Ln)&&(z=E),E=!0),z instanceof Dn||z instanceof Ln||(z=new Ln),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=_e.alloc(),oe=_e.alloc(),le=this.Pa.s,ue=le.length;ue--;){var fe=le[ue];if((ee!==!0||Uh(fe)!==!1)&&fe.isVisible()){re.assign(a),Kn(re,fe.oe),oe.h(a.x+y,a.y),Kn(oe,fe.oe);var xe=fe;fe.og(re,oe,x,b,E,z)&&(x!==null&&(xe=x(xe)),xe===null||b!==null&&!b(xe)||z.add(xe))}}return _e.free(re),_e.free(oe),z},Ae.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=ci();for(var E=ci(),z=0;z<b;z++){var ee=x[z];if(ee.vw=z,ee instanceof mi){if(ee.fd===!1)continue}else if(ee instanceof Uo&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&wa(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&E.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],jv(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++)jv(E[y]);Pi(a),Pi(E)}}};function _s(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ae.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=_s(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=Sn.alloc(),oe=0;oe<b;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(Sn.free(re),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Rl(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 ee=_s(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,le=Sn.alloc(),ue=0;ue<z;ue++){var fe=E[ue];b.contains(fe)&&a.Oj(y,fe,x,re,oe,le,!1)}Sn.free(le),y.globalAlpha=ee}}}Ae.Oj=function(a,y,x,b,E,z,ee){if(ee&&!Uh(y))a.Hs(y);else{if(b!==null&&y instanceof mi&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,b=y.containingGroup;b!==null;)ee?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(ee=!0,z.assign(b.tb)),b=b.containingGroup;var re=y.actualBounds;if(b=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}b=!z.Re(re)}b&&(a.save(),a instanceof Ku?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*E>x.Oq||re.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&&(cs(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(cs(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),cs(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))}},Ae.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(ui,a,this,y,x,b,E)},Ae.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Kl(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)),Zu(this,a,y),a},Ae.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,Kl(y),a};function Zu(a,y,x){if(y=uh(a,y,x),x instanceof Qr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];if(re===x&&(y=ee,0<=b)||0>b&&re.containingGroup===x&&(b=ee,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Zu(a,-1,y)}x.svg!==null&&x.svg.remove()}function uh(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,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<E&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>b)for(;;){if(z===-1||ee<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<b)for(;;){if(re===E||oe>=b){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<E&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}ze.Object.defineProperties(za.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===""&&ct("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&ct("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)&&Un(a,"0 <= value <= 1",za,"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))}}}),za.prototype.findObjectsNear=za.prototype.og,za.prototype.findObjectsIn=za.prototype.Cf,za.prototype.findObjectsAt=za.prototype.ji,za.prototype.findObjectAt=za.prototype.ic,za.className="Layer";function gn(a,y){if(fm||(Wl(),fm=!0),fr(this),bc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,us){var x=this,b=function(){x.removeEventListener(Qe.document,"DOMContentLoaded",b,!1),x.setRTL()};Qe.document.body!==null?this.setRTL():x.addEventListener(Qe.document,"DOMContentLoaded",b,!1)}this.ol=null,nd.add("Model",aa);var E=this;return this.Hb=function(z){var ee=E.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===ui&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,jh(this),this.model=gy(),this.Wg=!0,Zd(this),this.layout=new Za,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 gm,a!==void 0&&(typeof a=="string"||Qe.Element&&a instanceof Element?zc(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Rc,bc;function jh(a){a.Yd=new Na,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Dn,a.pj=new Oi,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new _e(NaN,NaN).freeze(),a.du=new _e(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new _e(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new jr,a.zu=new _e(NaN,NaN).freeze(),a.ut=new Sn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Hi(0,0,0,0).freeze(),a.sj=mh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Yl,a.zk=Jo,a.Fg=Yl,a.pq=Jo,a.yt=pa,a.Bt=pa,a.Fc=!0,a.pn=!1,a.De=new Ln,a.Eh=new Oi,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Hi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new $t,a.bq.diagram=a,a.Qg=new $t,a.Qg.diagram=a,a.cj=new $t,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,up(a),a.ai=new Ln,a.Ht=!0,a.uu=vh,a.pw=!1,a.wu=Xf,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 Oi,a.Xn=new Dn,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 Hi(5).freeze(),a.Hw=new Ln().freeze(),a.Nt=999999999,a.nw=new Ln().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 Ln,a.ow=new Ln,a.Xh=null,a.aw=new zn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new _e,bounds:new Sn,Py:new zn,bA:new zn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Sn(NaN,NaN,NaN,NaN).freeze(),a.wo=new zn(NaN,NaN).freeze(),a.Sp=new Sn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Oi;var y=new Ti,x=new ba;x.bind(new Fs("text","",ji)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Ti,x=new ba,x.stroke="brown",x.bind(new Fs("text","",ji)),y.add(x),a.Lg.add("Comment",y),y=new Ti,y.selectable=!1,y.avoidable=!1,x=new io,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new zn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Oi,y=new Qr,y.selectionObjectName="GROUPPANEL",y.type=hi.Vertical,x=new ba,x.font="bold 12pt sans-serif",x.bind(new Fs("text","",ji)),y.add(x),x=new hi(hi.Auto),x.name="GROUPPANEL";var b=new io;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new ou,b.padding=new Hi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Oi,y=new mi,x=new io,x.isPanelMain=!0,y.add(x),x=new io,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new mi,x=new io,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Uo,y.type=hi.Auto,x=new io,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new ou,x.margin=new Hi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Uo,y.type=hi.Link,x=new io,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new aa,a.toolManager=new ai,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=_c(),a.eq=null,a.fq=ri,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 _e,a.zy=500,a.wp=new _e,a.wq=!1}gn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),wf=null,Kh="",bd(this,!1),this.Xn.clear(),Tg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function bd(a,y){a.animationManager.Cc(!0),a.Hw=new Ln().freeze(),a.nw=new Ln().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=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==E&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;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(),Tg(),a.Og.clear(),br=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function _c(){return null}gn.prototype.reset=function(){this.clear(),this.vb=!0,jh(this),Hc(this),this.Wg=!0,Zd(this),this.layout=new Za,this.Wg=!1,this.model=gy(),this.model.undoManager=new Fi,this.vb=this.rn=!1,this.N()},gn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Qe.document.body);var y=Hn("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},gn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Qe.document.body);var y=0;if(us){var x=Lc;y=Rc,x===null&&(x=Lc=Hn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Rc=Hn("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||Tr||(y=11)}this.Db=y,this.Gw=!0},gn.prototype.qb=function(a){a.classType===gn&&(this.autoScale=a)},gn.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 zc(a,y){if(us){if(y!=null||ct("Diagram setup requires an argument DIV."),a.Ka!==null&&ct("Diagram has already completed setup."),typeof y=="string"?a.Ka=Qe.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ct("No DIV or DIV id supplied: "+y),a.Ka===null&&ct("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ct("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Qe.ResizeObserver){var x=It(function(){a.$b()},250);a.ol=new Qe.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Qe.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=Qe.go;var E=new Fc(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Qe.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),hh(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Fc(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,us){E=Hn("div");var z=Hn("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=pf,E.addEventListener("pointerdown",Vd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=It(function(){a.Yh=null,a.N()},300),a.Ov=It(function(){Wd(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=eu(a,ee,!0);re.bubbles=!0;var oe=0,le=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(le=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-le):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(le=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-le):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),Su(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,eu(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=oe;oe=Yd(a,ee,!0,!1,!0,le),Ed(a,ee,oe),oe.targetDiagram=ch(ee,ee.target),oe.targetObject=null,le||oe.clone(a.bq),le=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-ee.screenX)>re||Math.abs(le.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():Su(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Yd(a,ee,!1,!1,!1,re[1]!==null);var oe=Qe.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var le=a,ue=ee;oe&&oe.H&&(ue=ee,le=oe.H),re.targetDiagram=le,Ed(a,ue,re),re.targetObject=null,a.doMouseMove(),Su(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Yd(a,ee,!1,!0,!0,!1);var le=Qe.document.elementFromPoint(ee.clientX,ee.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),le!==null&&le.H instanceof gn&&le.H!==a&&Ed(le.H,ee,oe),le===null&&(le=ee.target),Ed(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=ch(ee,le),oe.targetObject=null,a.doMouseUp(),Su(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=b.Z["d"+_f[1]+_f[2]+"wI"+Cf.slice(1,5)]["b"+Wx.slice(1,y)](b.Z,Qf,y,y),b.Vc(!0),gf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}gn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},gn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function gf(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(Qe,"resize",a.Ov,!1)}function kl(a){30<a.Sq&&(a.Yh=1)}function fd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Yi&&Yi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}gn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Qe.devicePixelRatio||1},gn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},gn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},gn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},gn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},gn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},gn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},gn.prototype.doFocus=function(){this.focus()},gn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Qe.scrollX||Qe.pageXOffset,y=Qe.scrollY||Qe.pageYOffset;this.ta.focus(),Qe.scrollTo(a,y)}},gn.prototype.Oy=function(){this.H.R("GainedFocus")},gn.prototype.Ny=function(){this.H.R("LostFocus")};function Wd(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===Yl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Zd(a){var y=new za;y.name="Background",a.Al(y),y=new za,y.name="",a.Al(y),y=new za,y.name="Foreground",a.Al(y),y=new za,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new za,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new za,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Kd(a){var y=new hi(hi.Grid);y.name="GRID";var x=new io;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new io,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new io,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new io,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new io,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new io,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new dr,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 pf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):ed(this.H)}function Vd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):ed(this.H)}gn.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,ee=b.x-z.left,re=b.y-z.top,oe=b.width+z.left+z.right,le=b.height+z.top+z.bottom,ue=b.right+z.right;z=b.bottom+z.bottom;var fe=E.x;b=E.y;var xe=E.width,be=E.height,Le=E.right,Te=E.bottom;E=this.scale;var at=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":at=at+a.scrollWidth-a.clientWidth;break;case"reverse":at=a.scrollWidth-at-a.clientWidth}var Ue=at;xe<oe||be<le?(at=_e.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ue&&(at.x=Ue/E+ee,this.ju=Ue),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(at.y=a.scrollTop/E+re,this.lu=a.scrollTop),this.position=at,_e.free(at),this.Ee=this.qr=!1):(at=_e.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=at.h(Ue+ee,this.position.y)),ue>Le&&(this.position=at.h(-(y.scrollWidth-this.Aa)+Ue-this.Aa/E+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=at.h(this.position.x,a.scrollTop+re)),z>Te&&(this.position=at.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),_e.free(at),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ue=b.right,Le=E.right,z=b.bottom,Te=E.bottom,ee=b.x,fe=E.x,re=b.y,b=E.y,xe>=oe&&ee>=fe&&ue<=Le&&(x.style.width="1px"),be>=le&&re>=b&&z<=Te&&(x.style.height="1px"))}},gn.prototype.computeBounds=function(a){return a===void 0&&(a=new Sn),sl(this),Gd(this,a)};function Gd(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 ee=b[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];le.isInDocumentBounds&&le.isVisible()&&(le=le.actualBounds,le.w()&&(x?(x=!1,y.assign(le)):y.ed(le)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}gn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(rn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof mi||(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 mi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Sn(NaN,NaN,0,0):x};function ku(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=_e.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Sn.allocAt(0,0,b.width,b.height);var E=_e.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Sn.free(b),_e.free(E),_e.free(x)}x=a.yh,y&&a.Fg!==Yl&&(x=a.Fg);var z=x!==Yl?$c(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?So:oe),Hh(a,a.documentBounds,E,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Vt.B(z.x,x)&&Vt.B(z.y,b)&&Vt.B(z.width,E)&&Vt.B(z.height,ee)||a.onViewportBoundsChanged(new Sn(x,b,E,ee),z,y,!1)}}function $c(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),ee=a.ya+(a.Be?a.Db:0),re=z/E,oe=ee/b;return y===$u?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Vh?(y=oe>re?(ee-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}gn.prototype.zoomToFit=function(){var a=this.sj;this.sj=mh,this.scale=$c(this,$u),a!==mh&&(ku(this,!1),Hh(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ae=gn.prototype,Ae.BA=function(a,y){y===void 0&&(y=$u);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===$u||y===Vh)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===Vh?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 _e(a.x,a.y)}},Ae.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new _e(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))},Ae.zz=function(a){if(a instanceof Gt){this.eq=a;var y=_e.alloc();this.fq=this.op(a.ga(pa,y)),_e.free(y)}else this.eq=null,this.fq=ri};function Hh(a,y,x,b,E,z){var ee=_e.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var le=_e.alloc();le=a.eq.ga(pa,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,E=Da,_e.free(le)}(z||a.scrollMode===mh)&&(E.sb()&&(x>y.width&&(re=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(oe=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?(re=Math.min(re+x/2,y.right+Math.max(z,E.right)-x/2),re=Math.max(re,y.left-Math.max(z,E.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(oe=Math.min(oe+b/2,y.bottom+Math.max(x,E.bottom)-b/2),oe=Math.max(oe,y.top-Math.max(x,E.top)+b/2),oe-=b/2):oe>y.top?oe=y.top:oe<y.bottom-b&&(oe=y.bottom-b)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),Gs(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),Hc(a),_e.free(ee)}Ae.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=lc(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof dr)return a}else if(a=lc(this,a,function(x){return x.part}),a instanceof dr)return a;return null},Ae.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),sl(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 lc(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),sl(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}Ae.lz=function(a,y,x){return y===void 0&&(y=!0),qc(this,a,function(b){return b.part},y?function(b){return b instanceof dr&&b.canSelect()}:null,x)};function qc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Dn||E instanceof Ln||(E=new Ln),sl(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Ae.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Dn||b instanceof Ln||(b=new Ln),sl(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Ae.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),gd(this,a,function(E){return E instanceof dr&&(!x||E.canSelect())},y,b)},Ae.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Dn||E instanceof Ln||(E=new Ln),sl(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,b,E)}return E},Ae.Nu=function(a,y,x,b,E,z){var ee=new Ln;sl(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,b,ee,E,z)}return ee};function gd(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 Dn||E instanceof Ln||(E=new Ln),sl(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,b,E)}return E}Ae.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),pd(this,a,y,function(z){return z instanceof dr&&(!b||z.canSelect())},x,E)},Ae.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 Dn||E instanceof Ln)&&(z=E),E=!0),z instanceof Dn||z instanceof Ln||(z=new Ln),sl(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,b,E,z)}return z};function pd(a,y,x,b,E,z){var ee=null;for(ee===void 0&&(ee=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Dn||E instanceof Ln)&&(z=E),E=!0),z instanceof Dn||z instanceof Ln||(z=new Ln),sl(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,b,E,z)}return z}gn.prototype.acceptEvent=function(a){return eu(this,a,a instanceof MouseEvent)};function eu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Ed(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),Tr&&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=ch(y,y.target),b.targetObject=null,b}function ch(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 Yd(a,y,x,b,E,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,Tr&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=b,ee.handled=!1,ee.bubbles=E,ee.isMultiTouch=z,ee}function Su(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}gn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=eu(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(),Su(x,a)},gn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=eu(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(),Su(x,a)},gn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=eu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Su(x,a)},gn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=eu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Su(x,a)},gn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new _e(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?Kn(new _e(y,a),this.Ab):new _e(y,a)};function Ed(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,ee=0,re=0;b!==null&&(b=b.getBoundingClientRect(),ee=y.clientX-E/b.width*b.left,re=y.clientY-z/b.height*b.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=_e.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),_e.free(y)):x.documentPoint.h(ee,re)}function Ud(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))}}gn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function dh(a){a.ld||sl(a),a.Va()}gn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ae=gn.prototype,Ae.Pz=function(){return this.kg},Ae.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Hl(this),this.hf=!1,this.du=new _e(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Fn(function(){b.ld=!1,Xa(y,"Model"),a(b)},1)},Ae.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Qe.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ae.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Hl(this))};function jc(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||ed(a)||(y&&sl(a),x&&ku(a,!1))}function Hl(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,ee=0;ee<z;ee++){var re=E[ee];js(re,!1),re.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(oe){oe.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Wd(a),jc(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Ec(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),sl(a),z=!1,(!a.hf||a.xh)&&(a.hf?Zh(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Zh(a,!1)),z=!0),a.Jk=!1,sl(a),a.ou||dh(a),jc(a,!0,!1),ee=!1,z?(x=Sn.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Xd(a)),a.R("LayoutCompleted"),jc(a,!0,!1),Sn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Yl?a.scale=$c(a,a.Fg):a.yh!==Yl?a.scale=$c(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),ku(a,!0)),z&&ee&&a.eb("Initial Layout"),sl(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Xd(a){if(a.Fg!==Yl)a.scale=$c(a,a.Fg);else if(a.yh!==Yl)a.scale=$c(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}ku(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Ec(a)}function sl(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 Ln,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Qr&&b.U&65536&&(b.U=b.U^65536)})}}Ae.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Qr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Qr&&x.isVisible()&&Ya(this,x);for(a.reset();a.next();)x=a.value,x instanceof mi&&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 Uo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Ya(a,y){for(var x=ci(),b=ci(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Qr?(ec(z)||iu(z)||Yh(z))&&Ya(a,z):z instanceof mi?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(Pi(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();Pi(b)}Ae.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Ae.gc=function(a){if(this.Ka!==null){if(this.ta===null&&ct("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Bu(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,ee=Math.round(y.y*E)/E,re=this.Ab;for(re.reset(),E!==1&&re.scale(E),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,qy(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Dl(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?bf(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(jr.prototype.Cd=jr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Bu(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 e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,le=Math.round(re.x*oe)/oe,ue=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-le,-ue),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Dl(this,a),re=0;re<E;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?bf(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(jr.prototype.Cd=jr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Yi&&Yi.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 Es(a,y,x,b,E,z,ee,re,oe,le){if(a.Ka!==null){a.ta===null&&ct("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),le===void 0&&(le=!1),Bu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ue=a.Ca;a.Ca=E;var fe=a.Wa.s,xe=fe.length;try{var be=new Sn(z.x,z.y,b.width/E,b.height/E),Le=be.copy();Le.Co(x),Ec(a,Le),sl(a),a.Fd(fe,xe,a,be),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,b.width,b.height));var Te=a.Mb;y.scale(Te,Te);var at=jr.alloc();at.reset(),at.translate(x.left,x.top),at.scale(E),z.x===0&&z.y===0||at.translate(-z.x,-z.y),y.setTransform(at.m11,at.m12,at.m21,at.m22,at.dx,at.dy),y.yc(),y instanceof Ku&&qy(y,at.m11,at.m12,at.m21,at.m22,at.dx,at.dy),jr.free(at),Dl(a,y),y.globalAlpha=a.pb;var Ue=a.Qj("Grid");if(ee){var vt=new Ln,St=ee.iterator;for(St.reset();St.next();){var Ft=St.value;Ft instanceof dr&&(le||Ft.layer!==Ue)&&(Ft.Gj(),vt.add(Ft))}for(le=0;le<xe;le++)Rl(fe[le],y,a,vt,oe);vt.each(function(pn){return pn.Gj()})}else for(vt=0;vt<xe;vt++){var Kt=fe[vt];Kt===Ue?le&&Kt.gc(y,a,!0):Kt.gc(y,a,oe)}a.$i=!1,a.Yf&&bf(a.Yf,a)&&a.Vp()}finally{a.Ca=ue,a.ib.Vc(!0),a.vd=!0,a.Fd(fe,xe,a,a.viewportBounds),Ec(a),a.ib instanceof Ku&&(a.ib.Nj.PA(),a.redraw())}}}Ae.Gf=function(a){return this.Rg[a]},Ae.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ae.Tx=function(){this.Rg=new ir,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Tr||Pr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Dl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ae.Ql=function(a){return this.on[a]},Ae.sA=function(a,y){this.on[a]=y},Ae.Sx=function(){this.on=new ir,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ae.set=function(a){return Object.assign(this,a),this},Ae.Du=function(a){return this.nm(a)},Ae.nm=function(a){return Du(this,a),this};function Du(a,y){var x=a instanceof hi,b=a instanceof gn,E;for(E in y){E===""&&ct("Setting properties requires non-empty property names");var z=a,ee=E;if(x||b){var re=E.indexOf(".");if(0<re){var oe=E.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),Zt(z)?ee=E.substr(re+1):ct("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+E)}}if(ee[0]!=="_"&&!lr(z,ee))if(b&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(b&&ee==="Changed"){a.Pe(y[ee]);continue}else if(b&&lr(a.toolManager,ee))z=a.toolManager;else if(b&&ls(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof tr&&ee==="Changed"){a.Pe(y[ee]);continue}else ct('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[E],ee[0]==="_"&&z instanceof Gt&&z.Vw(ee)}}Ae.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Oi,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ae.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")},gn.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!==Jf&&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=Sn.alloc(),Yf(this,this.computeBounds(b)),Sn.free(b)),b=this.ta,b===null||b instanceof vd)))){var ee=this.Mb;E=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==E&&(oe.width=E),oe.height!==re&&(oe.height=re),a.clearRect(0,0,E,re),oe=190*ee;var le=70*ee,ue=Math.max(z,0),fe=Math.max(y,0),xe=Math.floor(E-ue),be=Math.floor(re-fe);a.drawImage(b.Oa,ue,fe,xe,be,0,0,xe,be),bf(this.Yf,this)&&a.clearRect(0,0,oe,le),b=ci(),a=ci(),be=Math.abs(z),xe=Math.abs(y);var Le=ue===0?0:E-be;ue=_e.allocAt(Le,0),be=_e.allocAt(be+Le,re),a.push(new Sn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y)));var Te=this.Ab;if(Te.reset(),Te.scale(ee,ee),this.Ca!==1&&Te.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Te.translate(-ee.x,-ee.y),Kn(ue,Te),Kn(be,Te),b.push(new Sn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y))),Le=fe===0?0:re-xe,ue.h(0,Le),be.h(E,xe+Le),a.push(new Sn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y))),Kn(ue,Te),Kn(be,Te),b.push(new Sn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y))),bf(this.Yf,this)&&(E=0<z?0:-z,re=0<y?0:-y,ue.h(E,re),be.h(oe+E,le+re),a.push(new Sn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y))),Kn(ue,Te),Kn(be,Te),b.push(new Sn(Math.min(ue.x,be.x),Math.min(ue.y,be.y),Math.abs(ue.x-be.x),Math.abs(ue.y-be.y)))),_e.free(ue),_e.free(be),jc(this,!1,!0),this.Ka===null&&ct("No div specified"),this.ta===null&&ct("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(Bu(this),re=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*re,this.ya*re),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,le=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-le),E.save(),E.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&E.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(E.clip(),E.setTransform(re,0,0,re,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),Dl(this,E),E.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=b,ee.visible&&ee.pb!==0){le=_s(ee,E),fe=ee.Zq,fe.length=0,ue=this.scale,xe=Sn.alloc(),be=ee.Pa.s,Te=be.length,Le=oe.length;for(var at=0;at<Te;at++){var Ue=be[at],vt=kf(Ue,Ue.actualBounds);e:{for(var St=2/ue,Ft=4/ue,Kt=0;Kt<Le;Kt++){var pn=oe[Kt];if(pn.width!==0&&pn.height!==0&&vt.Vu(pn.x-St,pn.y-St,pn.width+Ft,pn.height+Ft)){vt=!0;break e}}vt=!1}vt&&ee.Oj(E,Ue,this,fe,ue,xe,!0)}Sn.free(xe),E.globalAlpha=le}E.restore(),E.Vc(!0),this.Yf&&bf(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Pi(b),Pi(a),this.ld=!1}}else this.bd();x&&(kl(this),this.bd(),fd(this,!0))}else x?(kl(this),this.bd(),fd(this,!0)):this.bd()}};function Bu(a){a.pn!==!1&&(a.pn=!1,hh(a,a.Aa,a.ya))}function hh(a,y,x){Hc(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function ed(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,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=E.clientWidth||x+ee,le=E.clientHeight||b+re,ue=a.viewportBounds;E=ue.x;var fe=ue.y,xe=ue.width,be=ue.height;if((oe!==x+ee||le!==b+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=le,z=a.pn=!0,Hc(a)),!a.hf||!a.viewportBounds.w())return!0;var Le=a.ku,Te=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var at=a.documentBounds,Ue=0,vt=0,St=0,Ft=0,Kt=ue.width,pn=ue.height,ki=a.rj;a.contentAlignment.sb()?(at.width>Kt&&(Ue=ki.left,vt=ki.right),at.height>pn&&(St=ki.top,Ft=ki.bottom)):(Ue=ki.left,vt=ki.right,St=ki.top,Ft=ki.bottom);var Ji=at.width+Ue+vt,Ri=at.height+St+Ft;ki=a.scale;var pi=Ji>oe/ki,ni=Ri>le/ki;if(!(z||a.gf||a.Be||pi||ni))return!0;Ue=at.x-Ue,oe=ue.x,vt=at.right+vt,le=ue.right+ee,St=at.y-St;var Xr=ue.y;at=at.bottom+Ft,ue=ue.bottom+re;var Rr="1px";if(Ft="1px",a.scrollMode===mh&&(pi||ni)&&(pi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(pi=1,Ue+1<oe&&(pi=Math.max((oe-Ue)*ki+a.Aa,pi)),vt>le+1&&(pi=Math.max((vt-le)*ki+a.Aa,pi)),Kt+ee+1<Ji&&(pi=Math.max((Ji-Kt)*ki+a.Aa,pi)),Rr=pi.toString()+"px"),ni&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(pi=1,St+1<Xr&&(pi=Math.max((Xr-St)*ki+a.ya,pi)),at>ue+1&&(pi=Math.max((at-ue)*ki+a.ya,pi)),pn+re+1<Ri&&(pi=Math.max((Ri-pn)*ki+a.ya,pi)),Ft=pi.toString()+"px")),pi=Rr!=="1px",ni=Ft!=="1px",pi&&ni||!pi&&!ni||(ni&&(le-=a.Db),pi&&(ue-=a.Db),Ji<Kt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ue+1<oe&&(ee=Math.max((oe-Ue)*ki+a.Aa,ee)),vt>le+1&&(ee=Math.max((vt-le)*ki+a.Aa,ee)),Kt+1<Ji&&(ee=Math.max((Ji-Kt)*ki+a.Aa,ee)),Rr=ee.toString()+"px"),pi=Rr!=="1px",ee=a.ya,pi!==a.Be&&(ee=pi?a.ya-a.Db:a.ya+a.Db),Ri<pn+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,St+1<Xr&&(re=Math.max((Xr-St)*ki+ee,re)),at>ue+1&&(re=Math.max((at-ue)*ki+ee,re)),pn+1<Ri&&(re=Math.max((Ri-pn)*ki+ee,re)),Ft=re.toString()+"px"),ni=Ft!=="1px"),a.qr&&pi===a.Be&&ni===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(pi!==a.Be&&(Rr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=pi,Te.style.width=Rr,ni!==a.gf&&(Ft==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=_e.alloc(),ni?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),_e.free(re))),z&&Hc(a),a.gf=ni,Te.style.height=Ft,a.gu=!0,z&&(a.pn=!0),y=Le.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Kt+1<Ji?y=(a.position.x-Ue)*ki:Ue+1<oe?y=Le.scrollWidth-Le.clientWidth:vt>le+1&&(y=a.position.x*ki)),a.tn)switch(a.bu){case"negative":y=-(Le.scrollWidth-y-Le.clientWidth);break;case"reverse":y=Le.scrollWidth-y-Le.clientWidth}return Le.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(pn+1<Ri?Le.scrollTop=(a.position.y-St)*ki:St+1<Xr?Le.scrollTop=Le.scrollHeight-Le.clientHeight:at>ue+1&&(Le.scrollTop=a.position.y*ki)),oe=a.Aa,le=a.ya,Le.style.width=oe+(a.gf?a.Db:0)+"px",Le.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||b!==le||a.animationManager.zb?(x=Sn.allocAt(E,fe,xe,be),a.onViewportBoundsChanged(x,a.viewportBounds,ki,z),Sn.free(x),!1):!0}Ae=gn.prototype,Ae.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ct("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&&ct('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(fi,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ae.oi=function(a){this.partManager.oi(a);var y=this;Mf(a,function(x){gh(y,x)}),(a instanceof Uo||a instanceof Qr&&a.placeholder!==null)&&a.v(),a.data!==null&&Mf(a,function(x){dy(y.partManager,x)}),iu(a)!==!0&&Yh(a)!==!0||this.De.add(a),Z1(a,!0,this),V1(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Ae.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Mf(a,function(x){hy(y.partManager,x,y)}),this.De.remove(a),V1(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Ae.remove=function(a){Jd(this,a,!0)};function Jd(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(Ni,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Ae.Is=function(a,y){if(y===void 0&&(y=!1),rn(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 Ln,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ae.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},gn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=mf(this)),this.toolManager!==null){var E=new Oi;if(a!==null)if(rn(a))for(var z=0;z<a.length;z++)Qu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Qu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Qu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Qu(this,E,a.value,x,b);for(a=this.links;a.next();)Qu(this,E,a.value,x,b)}uc(this,E,y,b,x)}};function Qu(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=mf(a)),x instanceof Ti){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Qr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Qu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Qu(a,y,ee,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Qu(a,y,x.value,b,E)}else if(x instanceof mi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Qu(a,y,x.value,b,E);else x instanceof Uo||y.add(x,a.Pd(E,x,x.location))}function uc(a,y,x,b,E){if(y!==null&&y.count!==0){var z=_e.alloc(),ee=_e.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||fh(a,y);for(var re=ci(),oe=ci(),le=y.iterator,ue=_e.alloc();le.next();){var fe=le.key,xe=le.value;if(fe.Zc()){var be=yf(a,fe,y);be!==null?re.push(new ie(fe,xe,be)):(!E||fe.canMove())&&(be=xe.point,z.assign(be),a.computeMove(fe,z.add(ee),b,ue),fe.location=ue,xe.shifted===void 0&&(xe.shifted=new _e),xe.shifted.assign(ue.re(be)))}else le.key instanceof mi&&oe.push(le.sa)}for(_e.free(ue),E=re.length,le=0;le<E;le++)fe=re[le],z.assign(fe.info.point),fe.Su.shifted===void 0&&(fe.Su.shifted=new _e),fe.node.location=z.add(fe.Su.shifted);for(E=_e.alloc(),le=_e.alloc(),fe=oe.length,xe=0;xe<fe;xe++){var Le=oe[xe];if(be=Le.key,be instanceof mi)if(be.suspendsRouting){be.Tg=null,ue=be.fromNode;var Te=be.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Te=Le.value.point,be.dragComputation===null)y.add(be,a.Pd(b,be,ee)),bh(be,ee.x-Te.x,ee.y-Te.y);else{Le=_e.allocAt(0,0),(ue=be.i(0))&&ue.w()&&Le.assign(ue);var at=ue=_e.alloc().assign(Le).add(ee);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(at=_e.alloc(),vf(a,be,ue,at,b)),ue.assign(be.dragComputation(be,ue,at)).re(Le),y.add(be,a.Pd(b,be,ue)),bh(be,ue.x-Te.x,ue.y-Te.y),_e.free(Le),_e.free(ue),at!==ue&&_e.free(at)}else ue!==null&&(E.assign(ue.location),at=y.I(ue),at!==null&&E.re(at.point)),Te!==null&&(le.assign(Te.location),at=y.I(Te),at!==null&&le.re(at.point)),ue!==null&&Te!==null?E.Xa(le)?(ue=Le.value.point,Te=z,Te.assign(E),Te.re(ue),y.add(be,a.Pd(b,be,E)),bh(be,Te.x,Te.y)):(be.suspendsRouting=!1,be.bb()):(Le=Le.value.point,ue=ue!==null?E:Te!==null?le:ee,y.add(be,a.Pd(b,be,ue)),bh(be,ue.x-Le.x,ue.y-Le.y))}else(be.fromNode===null||be.toNode===null)&&(ue=Le.value.point,y.add(be,a.Pd(b,be,ee)),bh(be,ee.x-ue.x,ee.y-ue.y))}_e.free(z),_e.free(ee),_e.free(E),_e.free(le),Pi(re),Pi(oe),x||(sl(a),_u(a,y))}}gn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new _e),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=_e.alloc(),vf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,le=oe.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(re,Math.min(x.x,le)),Math.max(ee,Math.min(x.y,oe))),E!==y&&_e.free(E),b};function mf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function vf(a,y,x,b,E){if(E===void 0&&(E=mf(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ee=E.gridSnapOrigin,re=ee.x;if(ee=ee.y,E=E.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=_e.allocAt(0,0),z.yi(0,0,a,y,E),Vt.No(x.x,x.y,re+z.x,ee+z.y,a,y,b),_e.free(z)}}function fh(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof mi&&(y.suspendsRouting=!0)}function _u(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof mi&&(x.suspendsRouting=!1,_v(x)&&x.bb())}a.Mr=!1}}function yf(a,y,x){return y=y.containingGroup,y!==null&&(a=yf(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ae=gn.prototype,Ae.Pd=function(a,y,x){if(x===void 0)return new Qd(yt);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Qd(new _e(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Qd(x.copy())};function Kf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&ct("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&ct("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&ct("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&ct("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&&ct("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ae.Al=function(a){Kf(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(fi,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ae.Ww=function(a,y){Kf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ni,"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(fi,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Ae.Cy=function(a,y){Kf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ni,"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(fi,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Ae.kA=function(a){if(a.diagram!==this&&ct("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(Ni,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ae.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ae.Yw=function(a){return this.pf===null&&(this.pf=new Dn),this.pf.add(a),this.model.Pe(a),this},Ae.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ae.Pe=function(a){return this.zg===null&&(this.zg=new Dn),this.zg.add(a),this},Ae.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ae.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Wn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ae.cb=function(a,y,x,b,E,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new In;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=b,re.oldParam=z,re.newValue=E,re.newParam=ee,this.ds(re)},Ae.g=function(a,y,x,b,E){this.cb(ui,a,this,y,x,b,E)},gn.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===ui){var E=a.object;if(ja(E,a.propertyName,a.I(y)),E instanceof Gt){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===fi){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof hi)if(typeof re=="number"&&oe instanceof Gt){y?ee.pc(re):ee.Gb(re,oe);var le=ee.part;le!==null&&le.Wb()}else typeof re=="number"&&oe instanceof Hs&&(oe.isRow?p1(ee,re,y?void 0:oe):m1(ee,re,y?void 0:oe));else if(ee instanceof za){var ue=a.oldParam===!0;typeof re=="number"&&oe instanceof dr&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(ue?re:-1,oe,ue)):ee.oi(re,oe,ue))}else ee instanceof gn?typeof re=="number"&&oe instanceof za&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):ct("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Ni){var fe=a.object,xe=a.oldParam,be=a.oldValue;if(fe instanceof hi)typeof xe=="number"&&be instanceof Gt?y?fe.Gb(xe,be):fe.pc(xe):typeof xe=="number"&&be instanceof Hs&&(be.isRow?p1(fe,xe,y?be:void 0):m1(fe,xe,y?be:void 0));else if(fe instanceof za){var Le=a.newParam===!0;typeof xe=="number"&&be instanceof dr&&(y?0>fe.Pa.indexOf(be)&&fe.oi(xe,be,Le):(be.isSelected=!1,be.isHighlighted=!1,be.Wb(),fe.pc(Le?xe:-1,be,Le)))}else fe instanceof gn?typeof xe=="number"&&be instanceof za&&(y?(be.Xe(this),this.Wa.Gb(xe,be)):this.Wa.mb(xe)):ct("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Wn&&ct("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},gn.prototype.Ea=function(a){return this.undoManager.Ea(a)},gn.prototype.eb=function(a){return this.undoManager.eb(a)},gn.prototype.Kf=function(){return this.undoManager.Kf()},gn.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}},gn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},gn.prototype.rp=function(){this.partManager.rp()};function Sf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Hc(a),a.N(),a.Ee=!0,b.zb&&(Vs(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Hc(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(yl)?re=0:le.Hf(rl)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(fu)?oe=0:le.Hf(Sl)&&(oe=ee-1):oe=le.sb()?le.y*(ee-1):ee/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=_e.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,_e.free(z),a.Ca=x,Hc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),ku(a,!1),b.zb&&(Vs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}gn.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!==Yl||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof ai&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),$i(E,this)),this.vb||this.invalidateViewport(a,y),Ec(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 Ec(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=zn.alloc(),E=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe],ue=Math.abs(le.interval);2>ue||(Sv(le.figure)?z=z*ue/Vt.vx(z,ue):E=E*ue/Vt.vx(E,ue))}if(ee=x.gridCellSize,b.h(z*ee.width,E*ee.height),y!==void 0)E=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=Sn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Sn.free(y);return}E=y.width,z=y.height,a=y.x,ee=y.y,Sn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=_e.alloc(),Vt.No(a,ee,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),zn.free(b),x.part.location=y,_e.free(y)}}gn.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)}},gn.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))},gn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),rn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof dr||ct("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 dr||ct("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},gn.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()}},Ae=gn.prototype,Ae.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ae.Jz=function(a){a=new Ln().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 dr||ct("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ae.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=_e.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)),_e.free(z);return}ct("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):ct("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),_e.free(z)},Ae.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)},Ae.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ae.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)},Ae.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,ee=y.m11,re=y.m12,oe=y.m21,le=y.m22,ue=y.dx,fe=y.dy,xe=x*ee+b*oe+ue;y=x*re+b*le+fe;var be=E*ee+b*oe+ue;return a=E*re+b*le+fe,b=x*ee+z*oe+ue,x=x*re+z*le+fe,ee=E*ee+z*oe+ue,E=E*re+z*le+fe,z=Math.min(xe,be),xe=Math.max(xe,be),be=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),xe=Math.max(xe,b),be=Math.min(be,x),y=Math.max(y,x),z=Math.min(z,ee),xe=Math.max(xe,ee),be=Math.min(be,E),y=Math.max(y,E),new Sn(z,be,xe-z,y-be)},Ae.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),Kn(a.copy(),this.Ab)};function wg(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Vf(a){return a=nd.get(a),a!==null?new a:new aa}gn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Wn&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=E}),a.mouseMoveTools.each(function(oe){return oe.diagram=E}),a.mouseUpTools.each(function(oe){return oe.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===Wn){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),sl(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 ee=a.isTransactionFinished;if(ee&&(wg(this),this.As.clear(),$a(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Fn(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function gh(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Ad(a,y[b])}function Ad(a,y){if(y instanceof Cu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ln&&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 Gf(a,y){if(y instanceof Cu){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 Ln&&x.Bg.remove(a),Tg(b));break}}}}}gn.prototype.Wd=function(){this.partManager.Wd()},gn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},gn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},gn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},gn.prototype.Vb=function(a){return this.partManager.Vb(a)},gn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ae=gn.prototype,Ae.Lc=function(a){return this.partManager.Lc(a)},Ae.ii=function(a){return this.partManager.ii(a)},Ae.Kc=function(a){return this.partManager.Kc(a)},Ae.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:fn(oi(y)))},Ae.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:fn(oi(y)))};function Hc(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 Yf(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),ku(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ae.Va=function(){if(this.Zi){var a=Sn.alloc();Yf(this,this.computeBounds(a)),Sn.free(a)}},Ae.rz=function(){for(var a=new Ln,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},Ae.qz=function(){return this.ai.iterator},Ae.Uz=function(a){sl(this),a&&Wh(this,!0),this.ld?Zh(this,!1):(this.Jk=!0,Hl(this))};function Wh(a,y){for(var x=a.ai.iterator;x.next();)xf(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function xf(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)xf(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Zh(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||Xa(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Uf(a,ee.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),sl(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 Uf(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Uf(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),Ya(a,y),E.isValidLayout=!0):a.xh=!0)}}Ae.yz=function(){for(var a=new Dn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function up(a){function y(E){var z=E.toLowerCase(),ee=new Dn;x.add(E,ee),x.add(z,ee),b.add(E,E),b.add(z,E)}var x=new Oi,b=new Oi;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 ls(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Yo(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ct("Unknown DiagramEvent name: "+y)}Ae.Bj=function(a,y){return a=Yo(this,a),a!==null&&a.add(y),this},Ae.am=function(a,y){a=Yo(this,a),a!==null&&a.remove(y)},Ae.R=function(a,y,x){var b=Yo(this,a),E=new un;if(E.diagram=this,a=ls(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 ca(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ae.Yj=function(a,y){return is(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},gn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Gd(this,a):a.assign(this.documentBounds)};function is(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Rp(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=ll(a,x)),x===null){y=Sn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&md(a,ee,b,y)}Sn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Sn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof Ti&&md(a,ee,b,y);Sn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&uS(E);return E}function ll(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ll(a,y.containingGroup):null}function md(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(Hg(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(Ah,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Ah}else if(y instanceof Qr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Ti&&md(a,E,x,b)}}function tu(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}gn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():td(this)};function td(a){a.vk===-1&&(a.vk=Fn(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=Sn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Yf(a,y),Sn.free(y),a.Fc=!0,a.bd(),td(a))}},a.vp))}gn.prototype.ug=function(){this.vk!==-1&&(Qe.clearTimeout(this.vk),this.vk=-1)},gn.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=Sn.allocAt(0,0,b.width*E,b.height*E);var z=_e.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<b.x+x.left/2&&(z.x-=ee),a.x<b.x+x.left/4&&(z.x-=4*ee)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>b.x+b.width-x.right/2&&(z.x+=ee),a.x>b.x+b.width-x.right/4&&(z.x+=4*ee));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<b.y+x.top/2&&(z.y-=ee),a.y<b.y+x.top/4&&(z.y-=4*ee)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>b.y+b.height-x.bottom/2&&(z.y+=ee),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(yt)||(y=new _e(y.x+z.x/E,y.y+z.y/E)),Sn.free(b),_e.free(z),y},Ae=gn.prototype,Ae.Cs=function(){return null},Ae.av=function(){return null},Ae.bs=function(a,y){this.pj.add(a,y)},Ae.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Qr&&(y.$p=null)})};function Ac(a,y,x){function b(){var ue=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ue-le>oe?y(x,E,re):Qe.requestAnimationFrame(b)}for(var E=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var re=a,oe=x.callbackTimeout||300,le=+new Date;return Qe.requestAnimationFrame(function(){b()}),null}Ae.Wz=function(a){return us?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ae.Jx=function(a){return a===void 0&&(a={}),Ac(this,this.Xz,a)},Ae.Xz=function(a,y,x){var b=ph(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 Cf+"data":E=b.getImageData(0,0,x.width,x.height);break;case Cf:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&ct('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 ph(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ct("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 ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new zn(1/0,1/0):new zn(2e3,2e3));var re=y.position||null,oe=y.parts||null,le=y.padding===void 0?1:y.padding,ue=y.background||null,fe=y.omitTemporary;fe===void 0&&(fe=!0);var xe=y.document||document,be=y.elementFinished||null,Le=y.showTemporary;Le===void 0&&(Le=!fe),y=y.showGrid,y===void 0&&(y=Le),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof le=="number"?le=new Hi(le):le instanceof Hi||ct("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),fe=new Fc(null,xe,void 0,!0);var Te=fe.context;if(!(E||z||oe||re))return fe.width=a.Aa+Math.ceil(le.left+le.right),fe.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=xe,b.hs=be,Es(a,b.context,le,new zn(fe.width,fe.height),a.Ca,a.pa,oe,ue,Le,y),b.context):(a.Xm=!1,Es(a,Te,le,new zn(fe.width,fe.height),a.Ca,a.pa,oe,ue,Le,y),a.Xm=!0,fe.context);var at=a.Pp,Ue=a.documentBounds.copy();if(Ue.Fv(a.yb),Le)for(var vt=a.Wa.s,St=vt.length,Ft=0;Ft<St;Ft++){var Kt=vt[Ft];if(Kt.visible&&Kt.isTemporary){Kt=Kt.Pa.s;for(var pn=Kt.length,ki=0;ki<pn;ki++){var Ji=Kt[ki];Ji.isInDocumentBounds&&Ji.isVisible()&&(Ji=Ji.actualBounds,Ji.w()&&Ue.ed(Ji))}}}if(vt=new _e(Ue.x,Ue.y),oe!==null){for(St=new Sn(0,0,0,0),Ft=!0,Kt=oe.iterator,Kt.reset();Kt.next();)pn=Kt.value,pn instanceof dr&&(ki=pn.layer,ki!==null&&!ki.visible||ki!==null&&!Le&&ki.isTemporary||!pn.isVisible()||(pn=pn.actualBounds,pn.w()&&(Ft?(Ft=!1,St.assign(pn)):St.ed(pn))));Ue.width=St.width,Ue.height=St.height,vt.x=St.x,vt.y=St.y}return re!==null&&re.w()&&(vt=re,z||(z=at)),St=re=0,le!==null&&(re=le.left+le.right,St=le.top+le.bottom),Ft=Kt=0,E!==null&&(Kt=E.width,Ft=E.height,isFinite(Kt)&&(Kt=Math.max(0,Kt-re)),isFinite(Ft)&&(Ft=Math.max(0,Ft-St))),E!==null&&z!==null?(z==="NaN"&&(z=at),E.w()?(E=Kt,Ue=Ft):isNaN(Ft)?(E=Kt,Ue=Ue.height*z):(E=Ue.width*z,Ue=Ft)):E!==null?E.w()?(z=Math.min(Kt/Ue.width,Ft/Ue.height),E=Kt,Ue=Ft):isNaN(Ft)?(z=Kt/Ue.width,E=Kt,Ue=Ue.height*z):(z=Ft/Ue.height,E=Ue.width*z,Ue=Ft):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/Ue.width,(ee.height-St)/Ue.height),z>at?(z=at,E=Ue.width,Ue=Ue.height):(E=ee.width,Ue=ee.height)):(E=Ue.width*z,Ue=Ue.height*z):(z=at,E=Ue.width,Ue=Ue.height),le!==null?(E+=re,Ue+=St):le=new Hi(0),ee!==null&&(at=ee.width,ee=ee.height,isNaN(at)&&(at=2e3),isNaN(ee)&&(ee=2e3),isFinite(at)&&(E=Math.min(E,at)),isFinite(ee)&&(Ue=Math.min(Ue,ee))),fe.width=Math.ceil(E),fe.height=Math.ceil(Ue),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=xe,b.hs=be,Es(a,b.context,le,new zn(Math.ceil(E),Math.ceil(Ue)),z,vt,oe,ue,Le,y),b.context):(a.Xm=!1,Es(a,Te,le,new zn(Math.ceil(E),Math.ceil(Ue)),z,vt,oe,ue,Le,y),a.Xm=!0,fe.context)}ze.Object.defineProperties(gn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pe||(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 vd(this,Qe.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 vd(this,Qe.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(Qe,"resize",this.Ov,!1),this.removeEventListener(Qe,"wheel",this.$j,!0),bc===this&&(bc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),zc(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)&&Un(a,"0 <= value <= 1",gn,"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),ku(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),ku(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),ku(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),ku(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Un(a,">= 0",gn,"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&&Un(a,">= 0",gn,"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 Un(a,">= 0",gn,"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||wg(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&&ct("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=bd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Xa(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=Vf(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(Qe,"pointermove",this.dk,!0),this.addEventListener(Qe,"pointerdown",this.ui,!0),this.addEventListener(Qe,"pointerup",this.fk,!0),this.addEventListener(Qe,"pointerout",this.ek,!0),this.addEventListener(Qe,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Qe,"wheel",this.$j,!0),this.addEventListener(Qe,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Qe,"pointermove",this.dk,!0),this.removeEventListener(Qe,"pointerdown",this.ui,!0),this.removeEventListener(Qe,"pointerup",this.fk,!0),this.removeEventListener(Qe,"pointerout",this.ek,!0),this.removeEventListener(Qe,"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(Qe,"wheel",this.$j,!0),this.removeEventListener(Qe,"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=_e.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Gs(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Hc(this):(this.vb=!0,a=this.scale,Hh(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)}_e.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=Kd(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Kd(this)),a.type!==hi.Grid&&ct("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),Ec(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),Hc(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||ct("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 Hi(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===mh&&ku(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,ku(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,Sf(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&&Sf(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!==Yl&&ku(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()||ct("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()||ct("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)):Un(a,"> 0",gn,"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)):Un(a,"> 0",gn,"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),ku(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 Hi(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&&ct("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();)Lp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==vh&&a!==zs&&a!==Pg&&ct("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 zn(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 Hi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),ze.Object.defineProperties(gn,{licenseKey:{get:function(){return pp.jc()},set:function(a){pp.add(a.replace(/\s/g,""))}},version:{get:function(){return Pf}}}),gn.prototype.makeImageData=gn.prototype.Jx,gn.prototype.makeImage=gn.prototype.Wz,gn.prototype.cacheGroupExternalLinks=gn.prototype.Fu,gn.prototype.addRenderer=gn.prototype.bs,gn.prototype.makeSVG=gn.prototype.av,gn.prototype.makeSvg=gn.prototype.Cs,gn.prototype.stopAutoScroll=gn.prototype.ug,gn.prototype.doAutoScroll=gn.prototype.gs,gn.prototype.isUnoccupied=gn.prototype.Yj,gn.prototype.raiseDiagramEvent=gn.prototype.R,gn.prototype.removeDiagramListener=gn.prototype.am,gn.prototype.addDiagramListener=gn.prototype.Bj,gn.prototype.findTreeRoots=gn.prototype.yz,gn.prototype.layoutDiagram=gn.prototype.Uz,gn.prototype.findTopLevelGroups=gn.prototype.qz,gn.prototype.findTopLevelNodesAndLinks=gn.prototype.rz,gn.prototype.ensureBounds=gn.prototype.Va,gn.prototype.findLinksByExample=gn.prototype.ls,gn.prototype.findNodesByExample=gn.prototype.ms,gn.prototype.findLinkForData=gn.prototype.Kc,gn.prototype.findNodeForData=gn.prototype.ii,gn.prototype.findPartForData=gn.prototype.Lc,gn.prototype.findLinkForKey=gn.prototype.findLinkForKey,gn.prototype.findNodeForKey=gn.prototype.Vb,gn.prototype.findPartForKey=gn.prototype.findPartForKey,gn.prototype.rebuildParts=gn.prototype.Wd,gn.prototype.transformViewToDoc=gn.prototype.Ps,gn.prototype.transformRectDocToView=gn.prototype.zA,gn.prototype.transformDocToView=gn.prototype.op,gn.prototype.centerRect=gn.prototype.es,gn.prototype.scrollToRect=gn.prototype.tv,gn.prototype.scroll=gn.prototype.scroll,gn.prototype.highlightCollection=gn.prototype.Jz,gn.prototype.highlight=gn.prototype.Iz,gn.prototype.selectCollection=gn.prototype.rA,gn.prototype.select=gn.prototype.select,gn.prototype.updateAllRelationshipsFromData=gn.prototype.rp,gn.prototype.updateAllTargetBindings=gn.prototype.updateAllTargetBindings,gn.prototype.commit=gn.prototype.commit,gn.prototype.rollbackTransaction=gn.prototype.Kf,gn.prototype.commitTransaction=gn.prototype.eb,gn.prototype.startTransaction=gn.prototype.Ea,gn.prototype.raiseChanged=gn.prototype.g,gn.prototype.raiseChangedEvent=gn.prototype.cb,gn.prototype.removeChangedListener=gn.prototype.ik,gn.prototype.addChangedListener=gn.prototype.Pe,gn.prototype.removeModelChangedListener=gn.prototype.mA,gn.prototype.addModelChangedListener=gn.prototype.Yw,gn.prototype.findLayer=gn.prototype.Qj,gn.prototype.removeLayer=gn.prototype.kA,gn.prototype.addLayerAfter=gn.prototype.Cy,gn.prototype.addLayerBefore=gn.prototype.Ww,gn.prototype.addLayer=gn.prototype.Al,gn.prototype.moveParts=gn.prototype.moveParts,gn.prototype.copyParts=gn.prototype.Kj,gn.prototype.removeParts=gn.prototype.Is,gn.prototype.remove=gn.prototype.remove,gn.prototype.add=gn.prototype.add,gn.prototype.clearDelayedGeometries=gn.prototype.bx,gn.prototype.setProperties=gn.prototype.nm,gn.prototype.attach=gn.prototype.Du,gn.prototype.set=gn.prototype.set,gn.prototype.resetInputOptions=gn.prototype.Sx,gn.prototype.setInputOption=gn.prototype.sA,gn.prototype.getInputOption=gn.prototype.Ql,gn.prototype.resetRenderingHints=gn.prototype.Tx,gn.prototype.setRenderingHint=gn.prototype.Xx,gn.prototype.getRenderingHint=gn.prototype.Gf,gn.prototype.maybeUpdate=gn.prototype.bd,gn.prototype.requestUpdate=gn.prototype.$b,gn.prototype.delayInitialization=gn.prototype.Xy,gn.prototype.isUpdateRequested=gn.prototype.Pz,gn.prototype.invalidateDocumentBounds=gn.prototype.Ya,gn.prototype.findObjectsNear=gn.prototype.og,gn.prototype.findPartsNear=gn.prototype.mz,gn.prototype.findObjectsIn=gn.prototype.Cf,gn.prototype.findPartsIn=gn.prototype.ux,gn.prototype.findObjectsAt=gn.prototype.ji,gn.prototype.findPartsAt=gn.prototype.lz,gn.prototype.findObjectAt=gn.prototype.ic,gn.prototype.findPartAt=gn.prototype.Ol,gn.prototype.focusObject=gn.prototype.zz,gn.prototype.alignDocument=gn.prototype.Jy,gn.prototype.zoomToRect=gn.prototype.BA,gn.prototype.zoomToFit=gn.prototype.zoomToFit,gn.prototype.diagramScroll=gn.prototype.kx,gn.prototype.focus=gn.prototype.focus;var nd=new Oi,Lc=null,us=Qe.document!==void 0,wf=null,Kh="",Yl=new Cn(gn,"None",0),$u=new Cn(gn,"Uniform",1),Vh=new Cn(gn,"UniformToFill",2),Xf=new Cn(gn,"CycleAll",10),cp=new Cn(gn,"CycleNotDirected",11),dp=new Cn(gn,"CycleNotDirectedFast",12),hp=new Cn(gn,"CycleNotUndirected",13),fp=new Cn(gn,"CycleDestinationTree",14),gp=new Cn(gn,"CycleSourceTree",15),mh=new Cn(gn,"DocumentScroll",1),Jf=new Cn(gn,"InfiniteScroll",2),vh=new Cn(gn,"TreeParentCollapsed",21),zs=new Cn(gn,"AllParentsCollapsed",22),Pg=new Cn(gn,"AnyParentsCollapsed",23),pp=new Dn,Pf="2.3.10",Cf="image",Qf=null,fm=!1;function Wl(){if(us){var a=Qe.document.createElement("canvas"),y=a.getContext("2d"),x=Nn("7ca11abfd022028846");y[x]=Nn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",_t.Dx+"4ae6247590da4bb21c324ba3a84e385776",jr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Vt.za],E=1;5>E;E++)y[Nn("7ca11abfd7330390")](Nn(b[E-1]),10,15*E);for(y[x]=Nn("39f046ebb36e4b"),x=1;5>x;x++)y[Nn("7ca11abfd7330390")](Nn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(jr.prototype.Cd=jr.prototype.Eu),Qf=a}}gn.className="Diagram",gn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Qe.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof gn?y.H:null},gn.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},gn.useDOM=function(a){us=a?Qe.document!==void 0:!1},gn.isUsingDOM=function(){return us},gn.None=Yl,gn.Uniform=$u,gn.UniformToFill=Vh,gn.CycleAll=Xf,gn.CycleNotDirected=cp,gn.CycleNotDirectedFast=dp,gn.CycleNotUndirected=hp,gn.CycleDestinationTree=fp,gn.CycleSourceTree=gp,gn.DocumentScroll=mh,gn.InfiniteScroll=Jf,gn.TreeParentCollapsed=vh,gn.AllParentsCollapsed=zs,gn.AnyParentsCollapsed=Pg;function gm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function bf(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=Qe[Nn("76a715b2f73f148a")][Nn("72ba13b5")]||"";if(a.Rc=!0,us){var b=gn[Nn("76a115b6ed251eaf4692")];if(b)for(var E=pp.iterator;E.next()&&(b=E.value,b=Nn(b).split(Nn("39e9")),!(6>b.length));){var z=Nn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ee=Nn(_t[Nn("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Qe[Nn("74a900bae4370f8b51")][Nn("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Nn("73a612b6fb191d")](Nn("3aad1ab6e022098b4dc4")),z=Nn(b[2]),-1<ee&&(re=re[Nn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[Nn("76ad18b4f73e")],re=x[Nn("73a612b6fb191d")](Nn("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[Nn("73a612b6fb191d")](z),0>ee&&z!==Nn("7da71ca0ad381e90")&&(ee=y[Nn("73a612b6fb191d")](Nn("76a715b2ef3e149757"))),0>ee&&(ee=y[Nn("73a612b6fb191d")](Nn("76a715b2ef3e149757"))),0>ee&&(ee=y[Nn("73a612b6fb191d")](Nn("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Nn("73a612b6fb191d")](Nn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Nn("73a612b6fb191d")](Nn("35"))||y[Nn("73a612b6fb191d")](Nn("35"))===-1),!a.Rc||x[Nn("73a612b6fb191d")](Nn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Nn("73a612b6fb191d")](z)),!a.Rc)||(ee=Qe[Nn("76a715b2f73f148a")][Nn("69ad17a1e03e")],re=ee[Nn("73a612b6fb191d")](Nn("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Nn("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Qe.document.createElement("div");for(var oe=b[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),b="",b+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[Nn("79a417a0f0181a8946")]=b,Qe.document[Nn("78a712aa")]){Qe.document[Nn("78a712aa")][Nn("7bb806b6ed32388c4a875b")](ee),oe=Qe.getComputedStyle(ee).getPropertyValue(Nn("78a704b7e62456904c9b12701b6532a8"));var le=Qe.getComputedStyle(ee).getPropertyValue(Nn("75b817b0ea2202"));if(Qe.document[Nn("78a712aa")][Nn("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Qe[Nn("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(Nn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ue in ee)if(b===ee[ue].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ue=x[Nn("76ad18b4f73e")],E=x[Nn("73a612b6fb191d")](Nn("35e7"))+2;E<ue;E++)y+=x[E];x=y[Nn("73a612b6fb191d")](Nn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Nn("73a612b6fb191d")](Nn("35")))}}}return 0<a.Rc&&a!==a.wy}gm.className="DiagramHelper";function Qd(a){this.j=a===void 0?new _e:a,this.o=new _e}ze.Object.defineProperties(Qd.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 _f="DraggingInfo";Qd.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new zn(NaN,NaN).freeze(),this.gridSnapCellSpot=pa,this.gridSnapOrigin=new _e(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function he(a,y){if(typeof a=="string"||Qe.Element&&a instanceof Element)var x=gn.call(this,a)||this;else x=gn.call(this)||this,y=a;return de(x),y&&x.nm(y),x}wt(he,gn);function de(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Os,a.layout=new Cl}he.prototype.reset=function(){gn.prototype.reset.call(this),de(this)},he.className="Palette";function pe(a,y){if(typeof a=="string"||Qe.Element&&a instanceof Element)var x=gn.call(this,a)||this;else x=gn.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 dr;var E=new io;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Hi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new lt,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var ee=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new _e(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){b.Ya(),Ze(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&&Ze(b)},x.autoScale=$u,x.vb=!1,y&&Object.assign(x,y),x}wt(pe,gn),pe.prototype.computePixelRatio=function(){return 1},pe.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(Bu(this),this.ql===null){var x=new Fc(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),Ne(this)}finally{this.ta=a,this.ib=y}}}gn.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&ct("No div specified"),this.ta===null&&ct("No canvas specified"),!(this.ta instanceof vd)&&(jv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Bu(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?Ne(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 Ne(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=Sn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Ec(y,E),Sn.free(E),sl(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 ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)b&&le.layer===re&&(re=_s(re,E),le.gc(E,oe),E.globalAlpha=re);else{for(var ue=_s(re,E),fe=oe.scale,xe=Sn.alloc(),be=re.Pa.s,Le=be.length,Te=0;Te<Le;Te++){var at=be[Te];(b||at!==le)&&re.Oj(E,at,oe,null,fe,xe,!1)}Sn.free(xe),E.globalAlpha=ue}}}}}function Ze(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=zn.alloc();E.h(x.width,x.height),b.desiredSize=E,zn.free(E),a=2/a.scale,b instanceof io&&(b.strokeWidth=a),y.location=new _e(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Kr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pe.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ze(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))},ze.Object.defineProperties(pe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pe&&ct("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),Ze(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),Ze(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)}}}),pe.className="Overview";function lt(){ur.call(this),this.j=null}wt(lt,ur),lt.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 _e(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new _e(a.x-this.j.x,a.y-this.j.y)),!0)},lt.prototype.doActivate=function(){this.j=null,ur.prototype.doActivate.call(this)},lt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},lt.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 _e(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new _e(a.x-this.j.x,a.y-this.j.y)}}},lt.className="OverviewDraggingTool";function ot(){fr(this),this.H=bc,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=Kr,this.hb=!0,this.cg=null,this.ob=200}ot.prototype.toString=function(){return"CommandHandler"},ot.prototype.Xe=function(a){this.H=a},ot.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Tr?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()},ot.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ot.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ai&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ot.prototype.canStopCommand=function(){return!0},ot.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=""}},ot.prototype.canSelectAll=function(){return this.diagram.allowSelect},ot.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 Ln,x=a.selection.iterator;x.next();)Xh(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=""}},ot.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ot.prototype.copySelection=function(){var a=this.diagram,y=new Ln;for(a=a.selection.iterator;a.next();)Xh(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},ot.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ot.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ot.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ot.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)wf=null,Kh="";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 Dn,x.addAll(z),wf=x,Kh=y.model.dataFormat}}y.R("ClipboardChanged",x)},ot.prototype.pasteFromClipboard=function(){var a=new Ln,y=wf;if(y===null)return a;var x=this.diagram;if(Kh!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,ee=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=ee.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},ot.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);uc(y,z,new _e(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=""}},ot.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||wf===null||wf.count===0||Kh!==a.model.dataFormat)},ot.prototype.undo=function(){this.diagram.undoManager.undo()},ot.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ot.prototype.redo=function(){this.diagram.undoManager.redo()},ot.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ot.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Yl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ot.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Yl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ot.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Yl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ot.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Yl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ot.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ot.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ot.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Xa(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=Kr):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Bo(y)},ot.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ot.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(oe){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;Xa(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Dt(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 oe=E.pop();0<E.length&&oe instanceof Ti&&oe.isTreeExpanded&&(!(oe instanceof Qr)||oe.isSubGraphExpanded);)oe=E.pop();0<E.length?(oe instanceof dr&&y.tv(oe.actualBounds),oe instanceof Ti&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Qr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof dr&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Fn(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function Dt(a,y,x){if(y.isVisible())return x;if(y instanceof Uo)Dt(a,y.adornedPart,x);else if(y instanceof mi){var b=y.fromNode;b!==null&&Dt(a,b,x),y=y.toNode,y!==null&&Dt(a,y,x)}else y instanceof Ti&&(b=y.labeledLink,b!==null&&Dt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Dt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Dt(a,y,x));return x}ot.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof dr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ot.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Xa(y.animationManager,"Collapse Tree");var x=new Dn;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 Ti&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},ot.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ti&&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 Ti&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ot.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Xa(y.animationManager,"Expand Tree");var x=new Dn;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 Ti&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},ot.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ti)||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 Ti&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ot.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 Dn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&E.add(ee)}for(var re=new Dn,oe=E.iterator;oe.next();){var le=oe.value;z=!1;for(var ue=E.iterator;ue.next();)if(le.Td(ue.value)){z=!0;break}z||re.add(le)}if(0<re.count){var fe=re.first().containingGroup;if(fe!==null)for(;fe!==null;){E=!1;for(var xe=re.iterator;xe.next();)if(!xe.value.Td(fe)){E=!0;break}if(E)fe=fe.containingGroup;else break}if(x instanceof Qr)Nc(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var be=y.copyNodeData(x);Zt(be)&&(y.xf(be),b=a.ii(be))}if(b!==null){fe!==null&&this.isValidMember(fe,b)&&(b.containingGroup=fe);for(var Le=re.iterator;Le.next();){var Te=Le.value;this.isValidMember(b,Te)&&(Te.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ot.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 kn(a){var y=ci();for(a=a.iterator;a.next();){var x=a.value;x instanceof mi||y.push(x)}a=new Ln,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,ee=0;ee<x;ee++)if(E.Td(y[ee])){z=!1;break}z&&a.add(E)}return Pi(y),a}ot.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof mi)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},ot.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 Dn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Qr&&z.canUngroup()&&b.add(z)}var ee=new Dn;if(0<b.count){y.clearSelection(!0);for(var re=b.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var le=oe.containingGroup,ue=le!==null&&le.data!==null?x.wa(le.data):void 0;ee.addAll(oe.memberParts);for(var fe=ee.iterator;fe.next();){var xe=fe.value;if(xe.isSelected=!0,!(xe instanceof mi)){var be=xe.data;be!==null?x.mp(be,ue):xe.containingGroup=le}}y.remove(oe)}}y.R("SelectionUngrouped",b,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ot.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Qr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Qr&&y.canUngroup())return!0;return!1},ot.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=kn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},ot.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Xa(y.animationManager,"Collapse SubGraph");var x=new Dn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Qr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},ot.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Qr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Qr&&y.isSubGraphExpanded)return!0;return!1},ot.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Xa(y.animationManager,"Expand SubGraph");var x=new Dn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Qr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},ot.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Qr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Qr&&!y.isSubGraphExpanded)return!0;return!1},ot.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 ba&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},ot.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 ba))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 ba&&x.editable}),a!==null))return!0;return!1},ot.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 Gt?E=a.ga(So):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new _e(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,_o(x,!1,a)}},ot.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)},ot.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 Oi,a===null)return b;for(var z=a.iterator;z.next();)Qu(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 mi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},ze.Object.defineProperties(ot.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||ct("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}}}),ot.className="CommandHandler",_c=function(){return new ot};function Gt(){fr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new _e(NaN,NaN).freeze(),this.jd=Zo,this.Ab=new jr,this.wh=new jr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ds,this.uc=new Sn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Sn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Sn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Jo,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 li,ii,er,or,Ar,_r,Eo,fo,jo,da;Gt.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=wi(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Gt.prototype.Vw=function(a){var y=this.Dh;if(rn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Gt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Gt.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},Gt.prototype.copy=function(){return this.clone()},Ae=Gt.prototype,Ae.qb=function(a){a.classType===mi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:ct("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Gt&&(this.stretch=a)},Ae.toString=function(){return Mi(this.constructor)+"#"+Cr(this)},Ae.th=function(){this.A!==null&&(this.A.nc=!0)};function uo(a){a.A===null?a.A=new qf:a.A.nc&&(a.A=a.A.copy())}Ae.Xc=function(){if(this.ba===null){var a=new mp;a.Xi=Da,a.yj=Da,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ae.cb=function(a,y,x,b,E,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,b,E,z,ee),x===this&&a===ui&&Fl(this)&&Ma(this,re,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 Oi),ee=z.undoManager.transactionLevel===0,a.startCondition===Qs?ee=!0:a.startCondition===ps&&(ee=!1),ee?(z=new qa,Ra(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Xa(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof hi&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)re=x[E],re instanceof hi&&Mf(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function Ma(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,ee=null;if(z.sourceName!==null){if(ee=kS(z,b,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,b)}else{if(re=b.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,b)}ee===a&&(re=b.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Ae.ks=function(a){return this.bindingId===a?this:null},Ae.g=function(a,y,x){this.cb(ui,a,this,y,x)},Ae.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 jr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function $s(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Ae.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Ei(a.x,a.y,0,0,0,b.height)<=y||Ei(a.x,a.y,0,b.height,b.width,b.height)<=y||Ei(a.x,a.y,b.width,b.height,b.width,0)<=y||Ei(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},Ae.se=function(){return!0},Ae.ca=function(a){var y=_e.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return _e.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;b=this.Df()*b.scale;var oe=1/b;if(re.width*b<E&&re.height*b<E)return a=Ko(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),_e.free(y),a}return E=!1,(this instanceof Uo||this instanceof io?Ko(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)),_e.free(y),E},Ae.gh=function(a){var y=this.naturalBounds;return Ko(0,0,y.width,y.height,a.x,a.y)},Ae.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Sn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=_e.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)))),_e.free(E),Sn.free(y),b},Ae.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=_e.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)))),_e.free(E),b},Ae.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=_e.allocAt(0,0),E=_e.allocAt(0,x.height),z=_e.allocAt(x.width,x.height),ee=_e.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=Sn.allocAt(0,0,x.width,x.height);var oe=_e.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),_e.free(oe),Sn.free(x),!re&&(Vt.us(a,b,E)||Vt.us(a,E,z)||Vt.us(a,z,ee)||Vt.us(a,ee,b))&&(re=!0)}return _e.free(b),_e.free(E),_e.free(z),_e.free(ee),re},Ae.ga=function(a,y){if(y===void 0&&(y=new _e),a instanceof Gi){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},Ae.mi=function(a){a===void 0&&(a=new Sn);var y=this.naturalBounds,x=this.oe,b=_e.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Ao(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Ao(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Ao(a,b.x,b.y,0,0),_e.free(b),a},Ae.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},Ae.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ae.qs=function(a,y){return y===void 0&&(y=new _e),y.assign(a),this.oe.Cd(y),y},Ae.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ae.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),xe=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Vt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(ee=a*re+y*le+fe,a=a*oe+y*ue+xe,y=x*re+b*le+fe,x=x*oe+b*ue+xe,E.h(0,0),b=this.naturalBounds,x=Vt.Ff(0,0,b.width,b.height,ee,a,y,x,E),E.transform(z),x)},Gt.prototype.measure=function(a,y,x,b){if(ec(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 ee=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+ee:a,y=isFinite(E.width)?E.width+ee:y):(a=isFinite(E.width)?E.width+ee:a,y=isFinite(E.height)?E.height+ee:y),E=x||0,ee=b||0;var re=this instanceof hi;switch(wu(this,!0)){case ii:ee=E=0,re&&(y=a=1/0);break;case li:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ee=y);break;case or:isFinite(a)&&a>x&&(E=a),ee=0,re&&(y=1/0);break;case Ar:isFinite(y)&&y>b&&(ee=y),E=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;E>re.width&&oe.width<re.width&&(E=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(E,oe.width),b=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<b&&(b=Math.min(oe.height,b)),a=Math.min(re.width,a),y=Math.min(re.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()||ct("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),js(this,!1)}},Gt.prototype.Wl=function(){},Gt.prototype.Dd=function(){return!1},Gt.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=Sn.alloc();z.assign(this.Ib),this.Ib.ka(),iu(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&&xh(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 ba&&(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()||ct("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ld(this,!1),Sn.free(z)},Ae=Gt.prototype,Ae.eh=function(){};function Ul(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 ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,b+=y,E+=ee,y=wu(a,!0),x===b&&z===E&&(y=ii),y){case ii:(x>b||z>E)&&(js(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case li:js(a,!0),a.measure(b,E,0,0);break;case or:js(a,!0),a.measure(b,z,0,0);break;case Ar:js(a,!0),a.measure(x,E,0,0)}}}Ae.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Zv(x,!0),this.N(),Zs(a,y)||(x.oh(),this.Pn(x)))},Ae.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof Ti&&X1(a,this))},Ae.gc=function(a,y){if(!cc(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 hi&&xh(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,le=this.areaBackground,ue=this.Ma;le===null&&ue===null||a.yc(),le!==null&&(cs(this,a,le,!0,!0,oe,re),le instanceof ra&&le.type===fc?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),ue!==null&&(cs(this,a,ue,!0,!1,oe,re),ue instanceof ra&&ue.type===fc?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&Pl(this),le=this.part,oe=!1;var fe=0;le&&y.Gf("drawShadows")&&(oe=le.isShadowed)&&(ue=le.shadowOffset,fe=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var xe;if(!(xe=y.$i||!ue)){var be=this.naturalBounds;xe=this.wh;var Le=xe.m11,Te=xe.m21,at=xe.dx,Ue=xe.m12,vt=xe.m22,St=xe.dy,Ft,Kt=Ft=0;xe=Ft*Le+Kt*Te+at;var pn=Ft*Ue+Kt*vt+St;Ft=be.width+fe,Kt=0;var ki=Ft*Le+Kt*Te+at;Ft=Ft*Ue+Kt*vt+St,Kt=Math.min(xe,ki);var Ji=Math.min(pn,Ft),Ri=Math.max(xe+0,ki)-Kt,pi=Math.max(pn+0,Ft)-Ji;xe=Kt,pn=Ji,Ft=be.width+fe,Kt=be.height+fe,ki=Ft*Le+Kt*Te+at,Ft=Ft*Ue+Kt*vt+St,Kt=Math.min(xe,ki),Ji=Math.min(pn,Ft),Ri=Math.max(xe+Ri,ki)-Kt,pi=Math.max(pn+pi,Ft)-Ji,xe=Kt,pn=Ji,Ft=0,Kt=be.height+fe,ki=Ft*Le+Kt*Te+at,Ft=Ft*Ue+Kt*vt+St,Kt=Math.min(xe,ki),Ji=Math.min(pn,Ft),Ri=Math.max(xe+Ri,ki)-Kt,pi=Math.max(pn+pi,Ft)-Ji,xe=Kt,pn=Ji,fe=y.viewportBounds,be=fe.x,Le=fe.y,xe=!(xe>fe.width+be||be>Ri+xe||pn>fe.height+Le||Le>pi+pn)}if(xe){if(xe=(this.l&256)!==0,a.clipInsteadOfFill&&(xe=!1),this instanceof ba&&(a.font=this.font),xe){if(pn=re.se()?re.naturalBounds:re.actualBounds,Ri=Math.max(ee.x,pn.x),pi=Math.max(ee.y,pn.y),fe=Math.min(ee.right,pn.right)-Ri,be=Math.min(ee.bottom,pn.bottom)-pi,Le=this.tb,Le!==null&&(Ri=Le.x,pi=Le.y,fe=Le.width,be=Le.height),Ri>ee.width+ee.x||ee.x>pn.width+pn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Ri,pi,fe,be),a.clip()}if(ue){if(!le.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}oe&&(pn=le.shadowOffset,a.Ev(pn.x*y.scale*this.scale*y.Mb,pn.y*y.scale*this.scale*y.Mb,le.shadowBlur),_d(a),a.shadowColor=le.shadowColor)}oe&&this.shadowVisible===!0?_d(a):oe&&this.shadowVisible===!1&&Md(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),qu(this,a,le,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&fl(this,re)&&this.shadowVisible===null&&Md(a),this.Ma!==null&&(a.yc(),Tu(this,a,le,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||fl(this,re))?(Wc(this,!0),this.shadowVisible===null&&Md(a)):Wc(this,!1),this.hh(a,y),oe&&this.l&512&&_d(a),ue&&oe&&Md(a),xe&&(a.restore(),a.Vc(this instanceof hi)),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 fl(a,y){return y===null?!1:(xh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===hi.Auto||y.type===hi.Spot)&&y.Pb()!==a)}Ae.Dv=function(){};function qu(a,y,x,b){cs(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof ra&&a.areaBackground.type===fc?(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 Tu(a,y,x,b){var E=a.kq(),z=x.x,ee=x.y,re=x.width+E,oe=x.height+E;cs(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof ra&&a.Ma.type===fc?(y.beginPath(),y.rect(z-E/2,ee-E/2,re,oe),y.ng(a.Ma)):y.fillRect(z-E/2,ee-E/2,re,oe)}function Zl(a,y,x){for(var b=y.O.s,E=b.length,z=-1,ee=0;ee<E;ee++)if(b[ee]===a){z=ee;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===hi.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 cc(a,y,x){if(!(y instanceof Ku))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&&Zl(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),_d(y),y.shadowColor=a.shadowColor}a instanceof ba&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof hi;var re=a instanceof hi?xh(a):!1;a.l&4096&&Pl(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&re?(vp(y,1,0,0,1,0,0),a.svg=y.ad):z?(vp(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):vp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var le=ee.copy().Vj();y.rb.ha=[le.m11,le.m12,le.m21,le.m22,le.dx,le.dy],qu(a,y,E,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),Tu(a,y,E,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Tu(a,y,E,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,E=a.part,re=!1,E&&x.Gf("drawShadows")&&(re=E.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&_d(y),re&&a.shadowVisible===!0?_d(y):re&&a.shadowVisible===!1&&Md(y),E=a.panel,re&&fl(a,E)&&a.shadowVisible===null&&Md(y),y.Il&&(le=x.computePixelRatio(),le="drop-shadow("+y.shadowOffsetX/le+"px "+y.shadowOffsetY/le+"px "+y.shadowBlur/le/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",le),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",le)),re&&(a.Ma!==null||a.areaBackground!==null||fl(a,E))?(Wc(a,!0),a.shadowVisible===null&&Md(y)):Wc(a,!1),E=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&re!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,b,oe,re),xu(y,le),!0):(a.svg=re,ee!==null&&re===null&&(mm(y),y.nh.pop()),re===null||(a.$o(y,b,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&_d(y),a.Dd()&&Md(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):b!==null&&Zl(a,b,re),ee!==null&&ee(a,re)),!0)}Ae.$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 ee=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,ee=z.width,x=z.height),z=b.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+Do++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:ee,height:x}),this instanceof hi&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),re.appendChild(y),a.svg.appendChild(re),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),xu(a,b)};function xu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Kl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=oi(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()}}Ae.hh=function(){},Ae.lv=function(){this.Uc=!0},Ae.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 hi?xh(this):!1;if(!(this instanceof hi&&E))if(this instanceof Cu){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&e1(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",t1(a)):y.setAttributeNS(null,"transform",t1(a))}else if(!x||this instanceof hi)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof io){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].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):(ee=b.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],qu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&vm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(vm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof hi))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Tu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(vm(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&&vm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ae.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 cs(a,y,x,b,E,z,ee){if(x!==null){var re=1,oe=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Sh)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var le=a.kq();if(re=z.width,oe=z.height,E?(re=ee.width,oe=ee.height):b||(re+=le,oe+=le),(z=y instanceof Lf)&&x.xe&&(x.type===Fg||x.yk===re&&x.ft===oe))var ue=x.xe;else{var fe=0,xe=0,be=0,Le=0,Te=0,at=0;if(at=Te=0,E?(Te=ee.x,at=ee.y):b||(Te-=le/2,at-=le/2),fe=x.start.x*re+x.start.offsetX,xe=x.start.y*oe+x.start.offsetY,be=x.end.x*re+x.end.offsetX,Le=x.end.y*oe+x.end.offsetY,fe+=Te,be+=Te,xe+=at,Le+=at,x.type===qd)ue=y.createLinearGradient(fe,xe,be,Le);else if(x.type===fc)at=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Te=0,at=Math.max(re,oe)/2):Te=x.startRadius,ue=y.createRadialGradient(fe,xe,Te,be,Le,at);else if(x.type===Fg)try{ue=y.createPattern(x.pattern,"repeat")}catch(vt){ue=null}if(x.type!==Fg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ue.addColorStop(E.key,E.value);if(z&&(x.xe=ue,ue!==null&&(x.yk=re,x.ft=oe),ue===null&&x.type===Fg&&x.yk!==-1)){x.yk=-1;var Ue=a.diagram;Ue!==null&&x.yk===-1&&Fn(function(){Ue.redraw()},600)}}b?y.fillStyle=ue:y.strokeStyle=ue}}}Ae.rg=function(a){if(a instanceof hi)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Ae.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ae.If=function(){for(var a=this instanceof hi?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Pl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Mc(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)}Mc(a,!1),dc(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,dc(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,dc(a,!1)))}Ae.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=_e.alloc();z.yi(y,x,b,E,So),a.rotate(this.Kb,z.x,z.y),_e.free(z)}},Ae.v=function(a){if(!ec(this)){a===void 0&&(a=!1),js(this,!0),Ld(this,!0);var y=this.panel;y===null||a||y.v()}},Ae.Uj=function(){ec(this)||(js(this,!0),Ld(this,!0))};function nu(a){if(!iu(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Ti&&a.Bd(),y.$b())),Ld(a,!0)}}Ae.Uk=function(){!(this.l&2048)&&(Mc(this,!0),dc(this,!0))},Ae.Wu=function(){dc(this,!0)},Ae.N=function(){var a=this.part;a!==null&&a.N()};function wu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===hi.Table?id(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===hi.Auto&&b.Pb()===a?gl(a,li,y):x===_r?b!==null?b.type===hi.Spot&&b.Pb()===a?gl(a,li,y):(x=b.defaultStretch,x===_r?gl(a,ii,y):gl(a,x,y)):gl(a,ii,y):gl(a,x,y)}function id(a,y,x,b){var E=a.stretch;if(E!==_r)return gl(a,E,b);var z=E=null;switch(y.stretch){case Ar:z=!0;break;case li:z=!0}switch(x.stretch){case or:E=!0;break;case li:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===or||y===li),z===null&&(z=y===Ar||y===li),E===!0&&z===!0?gl(a,li,b):E===!0?gl(a,or,b):z===!0?gl(a,Ar,b):gl(a,ii,b)}function gl(a,y,x){if(x)return y;if(y===ii||(x=a.desiredSize,x.w()))return ii;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===or)return ii;if(y===li)return Ar}else{if(y===Ar)return ii;if(y===li)return or}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ar)return ii;if(y===li)return or}else{if(y===or)return ii;if(y===li)return Ar}return y}function Wc(a,y){a.l=y?a.l|512:a.l&-513}function Fl(a){return(a.l&1024)!==0}function $f(a,y){a.l=y?a.l|1024:a.l&-1025}function Mc(a,y){a.l=y?a.l|2048:a.l&-2049}function dc(a,y){a.l=y?a.l|4096:a.l&-4097}function ec(a){return(a.l&8192)!==0}function js(a,y){a.l=y?a.l|8192:a.l&-8193}function iu(a){return(a.l&16384)!==0}function Ld(a,y){a.l=y?a.l|16384:a.l&-16385}Ae.Gj=function(){this.svg=null},Ae.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ae.Av=function(){},Ae.zv=function(a){return this.pa=a,nu(this),!0},Ae.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ae.kq=function(){return 0};function Ef(a){var y=a.part;if(y instanceof Ti&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||X1(y,a)}}function $y(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof hi?a instanceof Ti?a.Bd():a.qm(a,function(x){Ef(x)}):Ef(a))}Ae.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Fs(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&v1(a)&&ct("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Dn),this.localBindings.add(E),this},Ae.set=function(a){return Object.assign(this,a),this},Ae.Du=function(a){return av(this,a),this},Ae.apply=function(a){return a(this),this},Ae.nm=function(a){return Du(this,a),this},Ae.pz=function(){return this.ih()},Ae.ih=function(){for(var a=this instanceof hi?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ae.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Oi),this.animationTriggers.add(a.propertyName,a),this};function hc(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=Cg.I(a);typeof z=="function"?(x=wi(arguments),b=z(x),Zt(b)||ct('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Qe.go[a]}if(b===null&&(E!=null&&E.constructor||ct("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 gn&&1<x.length){z=b;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(zc(z,ee),E++)}for(;E<x.length;E++)z=x[E],z===void 0?ct("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):av(b,z);return b}function av(a,y){if(typeof y=="string")if(a instanceof ba)a.text=y;else if(a instanceof io)a.figure=y;else if(a instanceof Cu)a.source=y;else if(a instanceof hi)y=Zc.I(y),y!==null&&(a.type=y);else if(a instanceof ra){var x=di(ra,y);x!==null?a.type=x:ct("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof gi?(y=di(gi,y),y!==null&&(a.type=y)):a instanceof Io&&(y=di(Io,y),y!==null&&(a.type=y));else if(y instanceof Gt)a instanceof hi||ct("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Hs){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 Hs?Bm(b,y):ct("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Cn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Us)a.type=y;else if(y instanceof Fs)a instanceof Gt||a instanceof Hs?a.bind(y):ct("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof yu)a instanceof Gt?a.Jv(y):ct("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Ts)a instanceof gi&&a.type===gi.o?a.figures.add(y):ct("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Io)a instanceof Ts?a.segments.add(y):ct("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Za)a instanceof gn||a instanceof Qr?a.layout=y:ct("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++)av(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof ra){x=new ir;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Du(a,x)}else if(a instanceof Hs){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&ct("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)&&ct("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new ir;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Du(a,E)}else Du(a,y);else ct('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function yh(a,y){Cg.add(a,y)}function pm(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}ze.Object.defineProperties(Gt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new qf),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 qf),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 qf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(uo(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&&(uo(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:au},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===au&&(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 Gh),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 Gh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:yt},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Gh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:_r},set:function(a){var y=this.stretch;y!==a&&(uo(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&&(uo(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)&&Un(a,"0 <= value <= 1",Gt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(kf(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(kf(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(),$y(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&&tg(a,"GraphObject.areaBackground"),a instanceof ra&&a.freeze(),uo(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&&tg(a,"GraphObject.background"),a instanceof ra&&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 dr)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 _e(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&&ct("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,$y(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof io&&this.qc(),this.g("desiredSize",b,a),Fl(this)&&(a=this.part,a!==null&&(Ma(this,a,"width"),Ma(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 zn(a,this.jd.height).freeze(),this.v(),this instanceof io&&this.qc(),this.g("desiredSize",y,a),Fl(this)&&(a=this.part,a!==null&&Ma(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 zn(this.jd.width,a).freeze(),this.v(),this instanceof io&&this.qc(),this.g("desiredSize",y,a),Fl(this)&&(a=this.part,a!==null&&Ma(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:pr},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(),uo(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:eo},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(),uo(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 Hi(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&&Pl(this),this.Ab}},oe:{get:function(){return this.l&4096&&Pl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(uo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:ii},set:function(a){this.reshapingBehavior!==a&&(uo(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()&&ct("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),nu(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&&Un(a,">= 0",Gt,"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&&Un(a,">= 1",Gt,"columnSpan"),uo(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&&Un(a,">= 0",Gt,"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&&Un(a,">= 1",Gt,"rowSpan"),uo(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&&(uo(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 Ti||ct("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Yv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,_1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Da},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Ef(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Un(a,">= 0",Gt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Ef(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),Ef(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&&Un(a,">= 0",Gt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Da},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Ef(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Un(a,">= 0",Gt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Ef(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),Ef(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&&Un(a,">= 0",Gt,"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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Gt.prototype.trigger=Gt.prototype.Jv,Gt.prototype.findBindingPanel=Gt.prototype.ih,Gt.prototype.findTemplateBinder=Gt.prototype.pz,Gt.prototype.setProperties=Gt.prototype.nm,Gt.prototype.apply=Gt.prototype.apply,Gt.prototype.attach=Gt.prototype.Du,Gt.prototype.set=Gt.prototype.set,Gt.prototype.isEnabledObject=Gt.prototype.If,Gt.prototype.isVisibleObject=Gt.prototype.Ed,Gt.prototype.isContainedBy=Gt.prototype.rg,Gt.prototype.getNearestIntersectionPoint=Gt.prototype.rs,Gt.prototype.getLocalPoint=Gt.prototype.qs,Gt.prototype.getDocumentScale=Gt.prototype.Df,Gt.prototype.getDocumentAngle=Gt.prototype.li,Gt.prototype.getDocumentBounds=Gt.prototype.mi,Gt.prototype.getDocumentPoint=Gt.prototype.ga,Gt.prototype.intersectsRect=Gt.prototype.Yc,Gt.prototype.containedInRect=Gt.prototype.fh,Gt.prototype.containsRect=Gt.prototype.Re,Gt.prototype.containsPoint=Gt.prototype.ca,Gt.prototype.raiseChanged=Gt.prototype.g,Gt.prototype.raiseChangedEvent=Gt.prototype.cb,Gt.prototype.addCopyProperty=Gt.prototype.Vw;var Cg=null;Gt.className="GraphObject",Cg=new Oi,yh("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=hc(hi,hi.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof hi){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"},hc(io,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Gi(0,0,2.76142374915397,2.761423749153969),spot2:new Gi(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 hi&&(x=b.fb("ButtonBorder"),x instanceof io)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof hi&&(x=b.fb("ButtonBorder"),x instanceof io&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof hi&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof io){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ee,ee=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof hi&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof io){var z=x.diagram,ee=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=ee}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof hi&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof io){var z=x.diagram,ee=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=ee}}},y.actionMove=function(x,b){if(b.If()&&b instanceof hi&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof io))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ee=b._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=b._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),E.skipsUndoManager=z}}},y}),yh("TreeExpanderButton",function(){var a=hc("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},hc(io,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:to},new Fs("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Fs("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Uo&&(x=x.adornedPart),x instanceof Ti){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}),yh("SubGraphExpanderButton",function(){var a=hc("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},hc(io,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:to},new Fs("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 Uo&&(x=x.adornedPart),x instanceof Qr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),yh("ToolTip",function(){return hc(Uo,hi.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new _e(0,3),shadowBlur:5},hc(io,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Gi(0,0,4,6),spot2:new Gi(1,1,-4,-4)}))}),yh("ContextMenu",function(){return hc(Uo,hi.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new _e(0,3),shadowBlur:5},new Fs("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),yh("ContextMenuButton",function(){var a=hc("Button");a.stretch=or;var y=a.fb("ButtonBorder");return y instanceof io&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Gi(0,0,2,3),y.spot2=new Gi(1,1,-2,-2)),a}),yh("PanelExpanderButton",function(a){var y=pm(a,"COLLAPSIBLE"),x=hc("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},hc(io,{name:"ButtonIcon",strokeWidth:2},new Fs("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof io&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var ee=E.ih();ee===null&&(ee=E.part),ee!==null&&(E=ee.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),yh("CheckBoxButton",function(a){var y=pm(a);return a=hc("Button",{desiredSize:new zn(14,14)},hc(io,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:li,geometryStretch:er,visible:!1},y!==""?new Fs("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof hi){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}),yh("CheckBox",function(a){a=pm(a),a=hc("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Hi(0,1,0,0)});var y=hc(hi,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Hi(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}),Gt.None=ii=new Cn(Gt,"None",0),Gt.Default=_r=new Cn(Gt,"Default",0),Gt.Vertical=Ar=new Cn(Gt,"Vertical",4),Gt.Horizontal=or=new Cn(Gt,"Horizontal",5),Gt.Fill=li=new Cn(Gt,"Fill",3),Gt.Uniform=er=new Cn(Gt,"Uniform",1),Gt.UniformToFill=Eo=new Cn(Gt,"UniformToFill",2),Gt.FlipVertical=fo=new Cn(Gt,"FlipVertical",1),Gt.FlipHorizontal=jo=new Cn(Gt,"FlipHorizontal",2),Gt.FlipBoth=da=new Cn(Gt,"FlipBoth",3),Gt.make=hc,Gt.getBuilders=function(){var a=new Oi,y;for(y in Cg)if(y!==y.toLowerCase()){var x=Cg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Gt.defineBuilder=yh,Gt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=Cg.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Gt))return y&&b.set(y),b;ct('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Gt.takeBuilderArgument=pm;function qf(){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=pr,this.o=eo,this.hg=_r,this.ob=this.Bi=1,this.Pf=ii,this.Pc=this.Ci=this.gd=null,this.Oc="category"}qf.prototype.copy=function(){var a=new qf;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 Gh(){this.u=-1/0,this.o=0,this.F=yt,this.rr=au,this.j=this.V="None"}Gh.prototype.copy=function(){var a=new Gh;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},Gh.className="LinkElementSettings";function mp(){this.yj=this.Xi=Jo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}mp.prototype.copy=function(){var a=new mp;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},mp.className="LinkSettings";function Af(){this.ha=[1,0,0,1,0,0]}Af.prototype.copy=function(){var a=new Af;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},Af.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},Af.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Af.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,ee=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]=ee,this.translate(-y,-x)}},Af.className="STransform";function eg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}eg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},eg.className="SGradient";function vd(a,y,x){this.ownerDocument=a=y===void 0?Qe.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 Ku(this,x)}vd.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},vd.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Zt(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},vd.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vd.prototype.focus=function(){this.Oa.focus()},vd.prototype.mx=function(){this.ownerDocument=null},ze.Object.defineProperties(vd.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}}}),vd.className="SVGSurface";function Ku(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 Af,this.j=mm(this),this.Nj=mm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Do++,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 qy(a,y,x,b,E,z,ee){a.Nj===void 0?vp(a,y,x,b,E,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+ee+")")}Ae=Ku.prototype,Ae.arc=function(a,y,x,b,E,z,ee,re){var oe=2*Math.PI,le=oe-1e-6,ue=x*Math.cos(b),fe=x*Math.sin(b),xe=a+ue,be=y+fe,Le=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(ee-xe)||1e-6<Math.abs(re-be))&&this.path.push(["L",xe,+be]),0>b&&(b=b%oe+oe),b>le?(this.path.push(["A",x,x,0,1,Le,a-ue,y-fe]),this.path.push(["A",x,x,0,1,Le,xe,be])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Le,a+x*Math.cos(E),y+x*Math.sin(E)])},Ae.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ae.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ae.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Ae.clearRect=function(){},Ae.clip=function(){this.Yl.clipPath=!0},Ae.closePath=function(){this.path.push(["z"])},Ae.createLinearGradient=function(a,y,x,b){var E=new eg("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Ae.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"+Do++,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(Cf,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Ae.createRadialGradient=function(a,y,x,b,E,z){var ee=new eg("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=b,ee.y2=E,ee.r2=z,ee};function e1(a,y,x,b,E,z,ee,re,oe){b=re/b,E=oe/E,z===0&&ee===0||a.rb.translate(z,ee),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Ae.drawImage=function(a,y,x,b,E,z,ee,re,oe){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var ue=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,ee=x,re=b=ue,oe=E=a),b=b||0,E=E||0,re=re||0,oe=oe||0,e1(this,y,x,b,E,z||0,ee||0,re,oe),z={x:0,y:0,width:ue||b,height:a||E,href:le},Vt.$(b,re)&&Vt.$(E,oe)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ue||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),bg(this,Cf,z,this.rb),this.addElement(Cf,z)},Ae.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),sv(this,this.Yl)},Ae.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ae.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},bg(this,"fill",a,this.rb),this.addElement("rect",a)},Ae.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},bg(this,"fill",a,this.rb),sv(this,a),this.svg.prepend(this.Ud("rect",a))},Ae.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},bg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ae.lineTo=function(a,y){this.path.push(["L",a,y])},Ae.moveTo=function(a,y){this.path.push(["M",a,y])},Ae.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Ae.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"])},Ae.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},Ae.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())},Ae.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||vp(this,a,y,x,b,E,z)};function t1(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ae.scale=function(a,y){this.rb.scale(a,y)},Ae.translate=function(a,y){this.rb.translate(a,y)},Ae.transform=function(){},Ae.yc=function(){},Ae.stroke=function(){i1(this,this.Yl)},Ae.jk=function(){this.clipInsteadOfFill||this.stroke()},Ae.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ae.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 bg(a,y,x,b){y==="fill"?sv(a,x):y==="stroke"&&i1(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function sv(a,y){a.fillStyle instanceof eg?y.fill=lv(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 n1(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof eg?y.setAttributeNS(null,"fill",lv(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 i1(a,y){if(a.strokeStyle instanceof eg)y.stroke=lv(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 lv(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"+Do++,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=[],ee=0;ee<y;ee++){var re=E[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(le,ue){return le.offset>ue.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Ae.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=wi(a[E]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());b.push(ee.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,bg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function vp(a,y,x,b,E,z,ee){var re=new Af;re.ha=[y,x,b,E,z,ee],y={},bg(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function mm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ae.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Md(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function _d(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ae.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ae.fs=function(){this.Ct=!1},Ae.Vc=function(){},Ae.Wx=function(){},Ku.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Ku.prototype.getImageData=function(){return null},Ku.prototype.measureText=function(){return null};function vm(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()))}Ku.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Ku.className="SVGContext",gn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new vd(this,Qe.document));var y=new vd(this,Qe.document,!0);a===void 0&&(a=new ir);var x=this;return Ac(this,function(b,E){return b=ph(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},gn.prototype.makeSvg=gn.prototype.Cs,gn.prototype.av=function(a){return this.Cs(a)},gn.prototype.makeSVG=gn.prototype.av;function Fc(a,y,x,b){this.ownerDocument=y=y===void 0?Qe.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Lf(y,x,b),y.H=a}Fc.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},Fc.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Fc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Fc.prototype.focus=function(){this.Oa.focus()},Fc.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},ze.Object.defineProperties(Fc.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}}}),Fc.className="CanvasSurface";function Lf(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&ct("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 jr,this.isTemporary=!!x}Ae=Lf.prototype,Ae.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ae.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Ae.beginPath=function(){this.Z.beginPath()},Ae.Se=function(){},Ae.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Ae.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Ae.clip=function(){this.Z.clip()},Ae.closePath=function(){this.Z.closePath()},Ae.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Ae.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ae.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Ae.drawImage=function(a,y,x,b,E,z,ee,re,oe){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,ee,re,oe)},Ae.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ae.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ae.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ae.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ae.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Ae.lineTo=function(a,y){this.Z.lineTo(a,y)},Ae.measureText=function(a){return this.Z.measureText(a)},Ae.moveTo=function(a,y){this.Z.moveTo(a,y)},Ae.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Ae.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Ae.restore=function(){this.Z.restore()},Ae.save=function(){this.yc(),this.Z.save()},Lf.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ae=Lf.prototype,Ae.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Ae.scale=function(a,y){this.El.scale(a,y)},Ae.translate=function(a,y){this.El.translate(a,y)},Ae.stroke=function(){this.Z.stroke()},Ae.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*b,x=ee.m12*x+ee.m22*b,ee.dx=ee.m11*E+ee.m21*z+ee.dx,ee.dy=ee.m12*E+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Ae.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ae.ng=function(a,y){if(a instanceof ra&&a.type===fc){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)},Ae.jk=function(){this.Hm||this.stroke()},Ae.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ae.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ae.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Ex),a.lineDashOffset=0)},Ae.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ae.Hs=function(){},ze.Object.defineProperties(Lf.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 Ex=Object.freeze([]);Lf.className="CanvasSurfaceContext";function yp(){this.F=this.o=this.u=this.j=0}yp.className="ColorNumbers";function ra(a,y){Mg||(gv(),Mg=!0),fr(this),this._isFrozen=!1,a===void 0?(this.na=Sh,this.xk="black"):typeof a=="string"?(this.na=Sh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===qd?(this.Qd=Os,this.Lk=Nl):this.Lk=a===fc?this.Qd=So:this.Qd=Da,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}ra.prototype.copy=function(){var a=new ra;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},Ae=ra.prototype,Ae.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ae.ka=function(){return Object.isFrozen(this)&&ct("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ae.qb=function(a){a.classType===ra&&(this.type=a)},Ae.toString=function(){var a="Brush(";if(this.type===Sh)a+=this.color;else if(a=this.type===qd?a+"Linear ":this.type===fc?a+"Radial ":this.type===Fg?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+")"},Ae.addColorStop=function(a,y){return this._isFrozen&&sn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Un(a,"0 <= loc <= 1",ra,"addColorStop:loc"),this.we===null&&(this.we=new Oi),this.we.add(a,y),this.na===Sh&&(this.type=qd),this.xe=null,this},Ae.Vz=function(a,y){if(this._isFrozen&&sn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ng:y,this.type===Sh)$d(this.color),this.color=Ag(a,y);else if((this.type===qd||this.type===fc)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)$d(x.value),this.addColorStop(x.key,Ag(a,y));return this};function r1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ng:x,$d(a),Ag(y,x)}Ae.Wy=function(a,y){if(this._isFrozen&&sn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ng:y,this.type===Sh)$d(this.color),this.color=Ag(-a,y);else if((this.type===qd||this.type===fc)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)$d(x.value),this.addColorStop(x.key,Ag(-a,y));return this};function o1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ng:x,$d(a),Ag(-y,x)}function uv(a,y,x){$d(a),a=Aa.j;var b=Aa.u,E=Aa.o,z=Aa.F;return $d(y),x===void 0&&(x=.5),"rgba("+Math.round((Aa.j-a)*x+a)+", "+Math.round((Aa.u-b)*x+b)+", "+Math.round((Aa.o-E)*x+E)+", "+Math.round((Aa.F-z)*x+z)+")"}Ae.Gx=function(){if(this.type===Sh)return Eg(this.color);if((this.type===qd||this.type===fc)&&this.colorStops!==null){var a=this.colorStops;if(this.type===fc)return Eg(a.first().value);if(a.get(.5)!==null)return Eg(a.get(.5));if(a.count===2)return a=a.Fa(),Eg(uv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);E>z&&re<E?(x=ee,E=re):z>=E&&re<z&&(b=ee,z=re)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Eg(uv(a.get(x),a.get(b),1-z/E))}return!1};function Eg(a){return a?a instanceof ra?a.Gx():($d(a),128>(299*Aa.j+587*Aa.u+114*Aa.o)/1e3):!1}function Ag(a,y){switch(y){case Ng:y=100*dv(Aa.j);var x=100*dv(Aa.u),b=100*dv(Aa.o);return ru.j=.4124564*y+.3575761*x+.1804375*b,ru.u=.2126729*y+.7151522*x+.072175*b,ru.o=.0193339*y+.119192*x+.9503041*b,ru.F=Aa.F,y=fv(ru.j/Lg[0]),x=fv(ru.u/Lg[1]),b=fv(ru.o/Lg[2]),Fd.j=116*x-16,Fd.u=500*(y-x),Fd.o=200*(x-b),Fd.F=ru.F,Fd.j=Math.min(100,Math.max(0,Fd.j+100*a)),a=(Fd.j+16)/116,y=a-Fd.o/200,ru.j=Lg[0]*a1(Fd.u/500+a),ru.u=Lg[1]*(Fd.j>ym*pv?Math.pow(a,3):Fd.j/ym),ru.o=Lg[2]*a1(y),ru.F=Fd.F,a=-.969266*ru.j+1.8760108*ru.u+.041556*ru.o,y=.0556434*ru.j+-.2040259*ru.u+1.0572252*ru.o,Aa.j=255*hv((3.2404542*ru.j+-1.5371385*ru.u+-.4985314*ru.o)/100),Aa.u=255*hv(a/100),Aa.o=255*hv(y/100),Aa.F=ru.F,Aa.j=Math.round(Aa.j),255<Aa.j?Aa.j=255:0>Aa.j&&(Aa.j=0),Aa.u=Math.round(Aa.u),255<Aa.u?Aa.u=255:0>Aa.u&&(Aa.u=0),Aa.o=Math.round(Aa.o),255<Aa.o?Aa.o=255:0>Aa.o&&(Aa.o=0),"rgba("+Aa.j+", "+Aa.u+", "+Aa.o+", "+Aa.F+")";case s1:return cv(),tc.o=Math.min(100,Math.max(0,tc.o+100*a)),"hsla("+tc.j+", "+tc.u+"%, "+tc.o+"%, "+tc.F+")";default:ct("Unknown color space: "+y)}}function $d(a){Mg||(gv(),Mg=!0);var y=mv;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,Aa.j=a[0],Aa.u=a[1],Aa.o=a[2],Aa.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Aa.j=0,Aa.u=0,Aa.o=0,Aa.F=1)}}function cv(){var a=Aa.j/255,y=Aa.u/255,x=Aa.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 ee=a=0;else{switch(b){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*E-1))}tc.j=Math.round(ee),tc.u=Math.round(100*a),tc.o=Math.round(100*E),tc.F=Aa.F}function dv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function hv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function fv(a){return a>pv?Math.pow(a,1/3):(ym*a+16)/116}function a1(a){var y=a*a*a;return y>pv?y:(116*a-16)/ym}function tg(a,y){typeof a!="string"&&(a instanceof ra||ct("Value for "+y+" must be a color string or a Brush, not "+a))}function gv(){mv=us?new Fc(null,void 0,{willReadFrequently:!0}).context:null}ze.Object.defineProperties(ra.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&sn(this,a),this.na=a,this.start.Mc()&&(a===qd?this.start=Os:a===fc&&(this.start=So)),this.end.Mc()&&(a===qd?this.end=Nl:a===fc&&(this.end=So)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&sn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&sn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&sn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&sn(this,a),0>a&&Un(a,">= zero",ra,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&sn(this,a),0>a&&Un(a,">= zero",ra,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&sn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&sn(this,a),this.cr=a,this.xe=null}}}),ra.prototype.isDark=ra.prototype.Gx,ra.prototype.darkenBy=ra.prototype.Wy,ra.prototype.lightenBy=ra.prototype.Vz,ra.prototype.addColorStop=ra.prototype.addColorStop;var pv=216/24389,ym=24389/27,Lg=[95.047,100,108.883],mv=null,Aa=new yp,tc=new yp,ru=new yp,Fd=new yp,Mg=!1;ra.className="Brush";var Sh;ra.Solid=Sh=new Cn(ra,"Solid",0);var qd;ra.Linear=qd=new Cn(ra,"Linear",1);var fc;ra.Radial=fc=new Cn(ra,"Radial",2);var Fg;ra.Pattern=Fg=new Cn(ra,"Pattern",4);var Ng;ra.Lab=Ng=new Cn(ra,"Lab",5);var s1;ra.HSL=s1=new Cn(ra,"HSL",6),ra.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},ra.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Mg||(gv(),Mg=!0);var y=mv;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)},ra.lighten=function(a){return r1(a)},ra.lightenBy=r1,ra.darken=function(a){return o1(a)},ra.darkenBy=o1,ra.mix=uv,ra.isDark=Eg;function Us(){this.xa="Base"}Us.prototype.measure=function(){},Us.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Us.prototype.arrange=function(){},Us.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Us.prototype.iA=function(a){a.Uj()},Us.prototype.gc=function(){},ze.Object.defineProperties(Us.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return hi}}}),Us.prototype.remeasureObject=Us.prototype.iA,Us.prototype.arrangeElement=Us.prototype.Ly,Us.prototype.measureElement=Us.prototype.Yz,Us.className="PanelLayout";function Sm(){this.xa="Base"}wt(Sm,Us),Sm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;a=eh(a);for(var oe=0;oe<re;oe++){var le=b[oe];if(le.visible||le===a){var ue=le.margin,fe=ue.right+ue.left;ue=ue.top+ue.bottom,le.measure(y,x,z,ee);var xe=le.measuredBounds;fe=Math.max(xe.width+fe,0),ue=Math.max(xe.height+ue,0),xe=le.position.x;var be=le.position.y;isFinite(xe)||(xe=0),isFinite(be)||(be=0),le instanceof io&&le.isGeometryPositioned&&(le=le.strokeWidth/2,xe-=le,be-=le),Ao(E,xe,be,fe,ue)}}},Sm.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],ee=z.measuredBounds,re=z.margin,oe=z.position.x,le=z.position.y;if(oe=isNaN(oe)?-a:oe-a,le=isNaN(le)?-x:le-x,z instanceof io&&z.isGeometryPositioned){var ue=z.strokeWidth/2;oe-=ue,le-=ue}z.visible&&z.arrange(oe+re.left,le+re.top,ee.width,ee.height)}};function xm(){this.xa="Base"}wt(xm,Us),xm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;y=ci(),z=eh(a);for(var oe=0;oe<re;oe++){var le=b[oe];if(le.visible||le===z){var ue=wu(le,!1);if(ue!==ii&&ue!==or)y.push(le);else{le.measure(1/0,x,0,ee),ue=le.margin,le=le.measuredBounds;var fe=Math.max(le.height+ue.top+ue.bottom,0);E.width+=Math.max(le.width+ue.right+ue.left,0),E.height=Math.max(E.height,fe)}}}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++)oe=y[a],(oe.visible||oe===z)&&(ue=oe.margin,re=ue.right+ue.left,ue=ue.top+ue.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,ue=Math.max(oe.height+ue,0),E.width+=Math.max(oe.width+re,0),E.height=Math.max(E.height,ue));Pi(y)},xm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,ee=a.isOpposite,re=ee?x.width:E.left,oe=0;oe<b;oe++){var le=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,xe=ue.margin,be=xe.top+xe.bottom,Le=z+E.bottom,Te=fe.height,at=wu(ue,!1);(isNaN(ue.desiredSize.height)&&at===li||at===Ar)&&(Te=Math.max(x.height-be-Le,0)),be=Te+be+Le,Le=ue.alignment,Le.Xb()&&(Le=a.defaultAlignment),Le.sb()||(Le=So),ee&&(re-=fe.width+xe.left+xe.right),ue.arrange(re+Le.offsetX+xe.left,le+Le.offsetY+xe.top+(x.height*Le.y-be*Le.y),fe.width,Te),ee||(re+=fe.width+xe.left+xe.right)}}};function wm(){this.xa="Base"}wt(wm,Us),wm.prototype.measure=function(a,y,x,b,E,z){var ee=b.length;x=ci();for(var re=eh(a),oe=0;oe<ee;oe++){var le=b[oe];if(le.visible||le===re){var ue=wu(le,!1);if(ue!==ii&&ue!==Ar)x.push(le);else{var fe=le.margin;ue=fe.right+fe.left,fe=fe.top+fe.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,oa(E,Math.max(E.width,Math.max(le.width+ue,0)),E.height+Math.max(le.height+fe,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++)oe=x[a],(oe.visible||oe===re)&&(le=oe.margin,ee=le.right+le.left,le=le.top+le.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,le=Math.max(oe.height+le,0),E.width=Math.max(E.width,Math.max(oe.width+ee,0)),E.height+=le);Pi(x)}},wm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,ee=a.isOpposite,re=ee?x.height:E.top,oe=0;oe<b;oe++){var le=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,xe=ue.margin,be=xe.left+xe.right,Le=z+E.right,Te=fe.width,at=wu(ue,!1);(isNaN(ue.desiredSize.width)&&at===li||at===or)&&(Te=Math.max(x.width-be-Le,0)),be=Te+be+Le,Le=ue.alignment,Le.Xb()&&(Le=a.defaultAlignment),Le.sb()||(Le=So),ee&&(re-=fe.height+xe.bottom+xe.top),ue.arrange(le+Le.offsetX+xe.left+(x.width*Le.x-be*Le.x),re+Le.offsetY+xe.top,Te,fe.height),ee||(re+=fe.height+xe.bottom+xe.top)}}};function Pm(){this.xa="Base"}wt(Pm,Us),Pm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),le=oe.margin,ue=le.right+le.left,fe=le.top+le.bottom;oe.measure(y,x,z,ee);var xe=oe.measuredBounds;z=xe.width,ee=xe.height;var be=Math.max(z+ue,0),Le=Math.max(ee+fe,0),Te=a.isClipping,at=Sn.allocAt(-le.left,-le.top,be,Le),Ue=Sn.allocAt(0,0,z,ee);vv(oe,Ue,!0),z=Ue.width,ee=Ue.height;for(var vt=!0,St=eh(a),Ft=0;Ft<re;Ft++){var Kt=b[Ft];xe=y;var pn=x;if(Kt!==oe&&(Kt.visible||Kt===St)){le=Kt.margin;var ki=le.left,Ji=le.top;switch(be=le.right+le.left,Le=le.top+le.bottom,le=wu(Kt,!1),le){case li:xe=z,pn=ee,Ji=ki=Le=be=0;break;case or:xe=z,ki=be=0;break;case Ar:pn=ee,Ji=Le=0}Kt.measure(xe,pn,0,0),xe=Kt.measuredBounds,be=Math.max(xe.width+be,0),Le=Math.max(xe.height+Le,0),le=Kt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=So);var Ri=Kt.alignmentFocus;if(Ri.Xb()&&(Ri=So),pn=null,Kt instanceof hi&&Kt.$e!==""&&(pn=Kt.fb(Kt.$e),pn===Kt&&(pn=null)),ki=Ue.x-ki,Ji=Ue.y-Ji,pn!==null){for(Kt.arrange(0,0,xe.width,xe.height),xe=pn.actualBounds,xe=_e.allocAt(xe.x+(Ri.x*xe.width-Ri.offsetX),xe.y+(Ri.y*xe.height-Ri.offsetY)),pn=pn.panel;pn!==Kt;)pn.transform.Ga(xe),pn=pn.panel;ki+=le.x*z+le.offsetX-xe.x,Ji+=le.y*ee+le.offsetY-xe.y,_e.free(xe)}else ki+=le.x*z+le.offsetX-(Ri.x*xe.width+Ri.offsetX),Ji+=le.y*ee+le.offsetY-(Ri.y*xe.height+Ri.offsetY);vt?(vt=!1,E.h(ki,Ji,be,Le)):Ao(E,ki,Ji,be,Le)}}switch(vt?E.assign(at):Te?E.Uu(Ue.x,Ue.y,Ue.width,Ue.height):Ao(E,at.x,at.y,at.width,at.height),Sn.free(at),Sn.free(Ue),le=oe.stretch,le===_r&&(le=wu(oe,!1)),le){case ii:return;case li:if(!isFinite(y)&&!isFinite(x))return;break;case or:if(!isFinite(y))return;break;case Ar:if(!isFinite(x))return}for(xe=oe.measuredBounds,z=xe.width,ee=xe.height,be=Math.max(z+ue,0),Le=Math.max(ee+fe,0),le=oe.margin,Ue=Sn.allocAt(-le.left,-le.top,be,Le),vv(oe,Ue,!0),z=Ue.width,ee=Ue.height,y=0;y<re;y++)x=b[y],x===oe||!x.visible&&x!==St||(le=x.margin,be=le.right+le.left,Le=le.top+le.bottom,xe=x.measuredBounds,be=Math.max(xe.width+be,0),Le=Math.max(xe.height+Le,0),ue=x.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=So),x=x.alignmentFocus,x.Xb()&&(x=So),vt?(vt=!1,E.h(ue.x*z+ue.offsetX-(x.x*xe.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*xe.height+x.offsetY)-le.top,be,Le)):Ao(E,ue.x*z+ue.offsetX-(x.x*xe.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*xe.height+x.offsetY)-le.top,be,Le));vt?E.assign(at):Te?E.Uu(Ue.x,Ue.y,Ue.width,Ue.height):Ao(E,at.x,at.y,at.width,at.height),Sn.free(Ue)},Pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var le=z-x.x,ue=oe-x.y;for(E.arrange(le,ue,ee,re),ee=Sn.allocAt(0,0,ee,re),vv(E,ee,!1),re=0;re<b;re++){var fe=y[re];if(fe!==E){le=fe.measuredBounds;var xe=le.width,be=le.height;ue=fe.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=So);var Le=fe.alignmentFocus;if(Le.Xb()&&(Le=So),le=null,fe instanceof hi&&fe.$e!==""&&(le=fe.fb(fe.$e),le===fe&&(le=null)),le!==null){var Te=le.actualBounds;for(Le=_e.allocAt(Te.x+(Le.x*Te.width-Le.offsetX),Te.y+(Le.y*Te.height-Le.offsetY)),le=le.panel;le!==fe;)le.transform.Ga(Le),le=le.panel;le=ue.x*ee.width+ue.offsetX-Le.x,ue=ue.y*ee.height+ue.offsetY-Le.y,_e.free(Le)}else le=ue.x*ee.width+ue.offsetX-(Le.x*xe+Le.offsetX),ue=ue.y*ee.height+ue.offsetY-(Le.y*be+Le.offsetY);le+=ee.x-x.x,ue+=ee.y-x.y,fe.visible&&fe.arrange(z+le,oe+ue,xe,be)}}Sn.free(ee)};function vv(a,y,x){var b=null;if(a instanceof hi&&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 Cm(){this.xa="Base"}wt(Cm,Us),Cm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),le=oe.margin,ue=y,fe=x,xe=le.right+le.left,be=le.top+le.bottom;oe.measure(y,x,z,ee),le=oe.measuredBounds;var Le=0,Te=null;oe instanceof io&&(Te=oe,Le=Te.strokeWidth*Te.scale);var at=Math.max(le.width+xe,0);le=Math.max(le.height+be,0);var Ue=wv(oe),vt=Ue.x*at+Ue.offsetX;Ue=Ue.y*le+Ue.offsetY;var St=Pv(oe),Ft=St.x*at+St.offsetX;for(St=St.y*le+St.offsetY,isFinite(y)&&(ue=Math.max(Math.abs(vt-Ft)-Le,0)),isFinite(x)&&(fe=Math.max(Math.abs(Ue-St)-Le,0)),Le=zn.alloc(),Le.h(0,0),a=eh(a),St=0;St<re;St++)Ue=b[St],Ue===oe||!Ue.visible&&Ue!==a||(le=Ue.margin,at=le.right+le.left,vt=le.top+le.bottom,Ue.measure(ue,fe,0,0),le=Ue.measuredBounds,at=Math.max(le.width+at,0),le=Math.max(le.height+vt,0),Le.h(Math.max(at,Le.width),Math.max(le,Le.height)));if(re===1)E.width=at,E.height=le,zn.free(Le);else{switch(Ue=wv(oe),St=Pv(oe),re=b=0,St.x!==Ue.x&&St.y!==Ue.y&&(b=Le.width/Math.abs(St.x-Ue.x),re=Le.height/Math.abs(St.y-Ue.y)),zn.free(Le),Le=0,Te!==null&&(Le=Te.strokeWidth*Te.scale,Mv(Te)===er&&(b=re=Math.max(b,re))),b+=Math.abs(Ue.offsetX)+Math.abs(St.offsetX)+Le,re+=Math.abs(Ue.offsetY)+Math.abs(St.offsetY)+Le,Te=oe.stretch,Te===_r&&(Te=wu(oe,!1)),Te){case ii:ee=z=0;break;case li:isFinite(y)&&(b=y),isFinite(x)&&(re=x);break;case or:isFinite(y)&&(b=y),ee=0;break;case Ar:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(b,re,z,ee),E.width=oe.measuredBounds.width+xe,E.height=oe.measuredBounds.height+be}},Cm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=Sn.alloc();z.h(0,0,1,1);var ee=b.margin,re=ee.left;ee=ee.top;var oe=a.padding,le=oe.left;oe=oe.top,b.arrange(le+re,oe+ee,E.width,E.height);var ue=wv(b),fe=Pv(b),xe=ue.y*E.height+ue.offsetY,be=fe.x*E.width+fe.offsetX;for(fe=fe.y*E.height+fe.offsetY,z.x=ue.x*E.width+ue.offsetX,z.y=xe,Ao(z,be,fe,0,0),z.x+=re+le,z.y+=ee+oe,E=0;E<x;E++)re=y[E],re!==b&&(le=re.measuredBounds,ee=re.margin,oe=Math.max(le.width+ee.right+ee.left,0),ue=Math.max(le.height+ee.top+ee.bottom,0),xe=re.alignment,xe.Xb()&&(xe=a.defaultAlignment),xe.sb()||(xe=So),oe=z.width*xe.x+xe.offsetX-oe*xe.x+ee.left+z.x,ee=z.height*xe.y+xe.offsetY-ue*xe.y+ee.top+z.y,re.visible&&(Ko(z.x,z.y,z.width,z.height,oe,ee,le.width,le.height)?re.arrange(oe,ee,le.width,le.height):re.arrange(oe,ee,le.width,le.height,new Sn(z.x,z.y,z.width,z.height))));Sn.free(z)};function bm(){this.xa="Base",this.name="Table"}wt(bm,Us),bm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,ee=ci(),re=ci(),oe=0;oe<z;oe++){var le=b[oe],ue=le instanceof hi?le:null;if(ue!==null&&xh(ue)&&le.visible){re.push(ue);for(var fe=ue.O.s,xe=fe.length,be=0;be<xe;be++){var Le=fe[be];ue.type===hi.TableRow?Le.row=le.row:ue.type===hi.TableColumn&&(Le.column=le.column),ee.push(Le)}}else ee.push(le)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Te=[],at=0;at<z;at++){var Ue=ee[at];Ue.visible&&(js(Ue,!0),Ld(Ue,!0),Te[Ue.row]||(Te[Ue.row]=[]),Te[Ue.row][Ue.column]||(Te[Ue.row][Ue.column]=[]),Te[Ue.row][Ue.column].push(Ue))}Pi(ee);var vt=ci(),St=ci(),Ft=ci(),Kt={count:0},pn={count:0},ki=y,Ji=x,Ri=a.rowDefs,pi=a.colDefs,ni=null;z=Ri.length;for(var Xr=0;Xr<z;Xr++)ni=Ri[Xr],ni!==void 0&&(ni.actual=0);z=pi.length;for(var Rr=0;Rr<z;Rr++)ni=pi[Rr],ni!==void 0&&(ni.actual=0);for(var Qo=Te.length,Pa=0,qs=0;qs<Qo;qs++)Te[qs]&&(Pa=Math.max(Pa,Te[qs].length));var cl=Math.min(a.topIndex,Qo-1),Xl=Math.min(a.leftIndex,Pa-1),el=0;Qo=Te.length;for(var Nh=eh(a),Ns=0;Ns<Qo;Ns++)if(Te[Ns]){Pa=Te[Ns].length;var ld=a.Fb(Ns);ld.actual=0;for(var Jl=ld.oc=0;Jl<Pa;Jl++)if(Te[Ns][Jl]){var kh=a.Eb(Jl);vt[Jl]===void 0&&(kh.actual=0,kh.oc=0,vt[Jl]=!0);for(var rc=Te[Ns][Jl],Bc=rc.length,Yu=0;Yu<Bc;Yu++){var Iu=rc[Yu];if(Iu.visible||Iu===Nh){var af=1<Iu.rowSpan||1<Iu.columnSpan;af&&(Ns<cl||Jl<Xl||St.push(Iu));var ud=Iu.margin,qg=ud.right+ud.left,Uu=ud.top+ud.bottom,Ql=id(Iu,ld,kh,!1),om=Iu.desiredSize,fg=!isNaN(om.height),xd=!isNaN(om.width)&&fg;if(af||Ql===ii||xd||Ns<cl||Jl<Xl||(Kt[Jl]!==void 0||Ql!==li&&Ql!==or||(Kt[Jl]=-1,Kt.count++),pn[Ns]!==void 0||Ql!==li&&Ql!==Ar||(pn[Ns]=-1,pn.count++),Ft.push(Iu)),Iu.measure(1/0,1/0,0,0),!(Ns<cl||Jl<Xl)){var Ru=Iu.measuredBounds,If=Math.max(Ru.width+qg,0),Xu=Math.max(Ru.height+Uu,0);if(Iu.rowSpan===1&&(Ql===ii||Ql===or)){ni=a.Fb(Ns);var sf=ni.Wc();el=Math.max(Xu-ni.actual,0),el+sf>Ji&&(el=Math.max(Ji-sf,0));var U0=ni.oa===0;ni.oc=ni.oc+el,ni.actual=ni.oa+el,Ji=Math.max(Ji-(el+(U0?sf:0)),0)}if(Iu.columnSpan===1&&(Ql===ii||Ql===Ar)){ni=a.Eb(Jl);var am=ni.Wc();el=Math.max(If-ni.actual,0),el+am>ki&&(el=Math.max(ki-am,0));var Vy=ni.oa===0;ni.oc=ni.oc+el,ni.actual=ni.oa+el,ki=Math.max(ki-(el+(Vy?am:0)),0)}af&&Iu.Uj()}}}}}Pi(vt);var zd=0,ih=0;z=a.columnCount;for(var gg=0;gg<z;gg++){var lf=pi[gg];lf!==void 0&&(zd+=isNaN(lf.Hc)?lf.oc:lf.Hc,lf.oc!==0&&(zd+=lf.Wc()))}z=a.rowCount;for(var ep=0;ep<z;ep++){var uf=Ri[ep];uf!==void 0&&(ih+=isNaN(uf.Hc)?uf.oc:uf.Hc,uf.oc!==0&&(ih+=uf.Wc()))}ki=Math.max(y-zd,0);var jd=Ji=Math.max(x-ih,0),Dh=ki;z=Ft.length;for(var zu=0;zu<z;zu++){var wd=Ft[zu],X0=a.Fb(wd.row),rh=a.Eb(wd.column),tp=wd.measuredBounds,cd=wd.margin,Rf=cd.right+cd.left,Pd=cd.top+cd.bottom;Kt[wd.column]=rh.oc===0&&Kt[wd.column]!==void 0?Math.max(tp.width+Rf,Kt[wd.column]):null,pn[wd.row]=X0.oc===0&&pn[wd.row]!==void 0?Math.max(tp.height+Pd,pn[wd.row]):null}var pg=0,np=0,Xc;for(Xc in pn)Xc!=="count"&&(pg+=pn[Xc]);for(Xc in Kt)Xc!=="count"&&(np+=Kt[Xc]);for(var bl=zn.alloc(),sm=0;sm<z;sm++){var du=Ft[sm];if(du.visible||du===Nh){var ks=a.Fb(du.row),hu=a.Eb(du.column),oh=0;isFinite(hu.width)?oh=hu.width:(isFinite(ki)&&Kt[du.column]!==null?np===0?oh=hu.actual+ki:oh=Kt[du.column]/np*Dh:Kt[du.column]!==null?oh=ki:oh=hu.actual||ki,oh=Math.max(0,oh-hu.Wc()));var Bh=0;switch(isFinite(ks.height)?Bh=ks.height:(isFinite(Ji)&&pn[du.row]!==null?pg===0?Bh=ks.actual+Ji:Bh=pn[du.row]/pg*jd:pn[du.row]!==null?Bh=Ji:Bh=ks.actual||Ji,Bh=Math.max(0,Bh-ks.Wc())),bl.h(Math.max(hu.minimum,Math.min(oh,hu.maximum)),Math.max(ks.minimum,Math.min(Bh,ks.maximum))),Ql=id(du,ks,hu,!1),Ql){case or:bl.height=Math.max(bl.height,ks.actual+Ji);break;case Ar:bl.width=Math.max(bl.width,hu.actual+ki)}var zf=du.margin,Gy=zf.right+zf.left,J0=zf.top+zf.bottom;du.Uj(),du.measure(bl.width,bl.height,hu.minimum,ks.minimum);var ip=du.measuredBounds,jf=Math.max(ip.width+Gy,0),mg=Math.max(ip.height+J0,0);isFinite(ki)&&(jf=Math.min(jf,bl.width)),isFinite(Ji)&&(mg=Math.min(mg,bl.height));var ju=0;ju=ks.actual,ks.actual=Math.max(ks.actual,mg),ks.oc=Math.max(ks.oc,mg),el=ks.actual-ju,Ji=Math.max(Ji-el,0),pn[du.row]===null&&(jd=Math.max(jd-el,0)),ju=hu.actual,hu.actual=Math.max(hu.actual,jf),hu.oc=Math.max(hu.oc,jf),el=hu.actual-ju,ki=Math.max(ki-el,0),Kt[du.column]===null&&(Dh=Math.max(Dh-el,0))}}Pi(Ft);var ah=zn.alloc(),dd=ci(),yc=ci();if(z=St.length,z!==0){for(var cf=0;cf<Qo;cf++)if(Te[cf]){Pa=Te[cf].length;var rp=a.Fb(cf);dd[cf]=rp.actual;for(var df=0;df<Pa;df++)if(Te[cf][df]){var Q0=a.Eb(df);yc[df]=Q0.actual}}}for(var op=0;op<z;op++){var ms=St[op];if(ms.visible||ms===Nh){var Jc=a.Fb(ms.row),Tc=a.Eb(ms.column);switch(bl.h(Math.max(Tc.minimum,Math.min(y,Tc.maximum)),Math.max(Jc.minimum,Math.min(x,Jc.maximum))),Ql=id(ms,Jc,Tc,!1),Ql){case li:yc[Tc.index]!==0&&(bl.width=Math.min(bl.width,yc[Tc.index])),dd[Jc.index]!==0&&(bl.height=Math.min(bl.height,dd[Jc.index]));break;case or:yc[Tc.index]!==0&&(bl.width=Math.min(bl.width,yc[Tc.index]));break;case Ar:dd[Jc.index]!==0&&(bl.height=Math.min(bl.height,dd[Jc.index]))}isFinite(Tc.width)&&(bl.width=Tc.width),isFinite(Jc.height)&&(bl.height=Jc.height),ah.h(0,0);for(var _0=Tc.minimum,Ju=Jc.minimum,Th=1;Th<ms.rowSpan&&!(ms.row+Th>=a.rowCount);Th++)ni=a.Fb(ms.row+Th),el=0,el=Ql===li||Ql===Ar?Math.max(ni.minimum,dd[ms.row+Th]===0?ni.maximum:Math.min(dd[ms.row+Th],ni.maximum)):Math.max(ni.minimum,isNaN(ni.Hc)?ni.maximum:Math.min(ni.Hc,ni.maximum)),ah.height+=el,Ju+=ni.minimum;for(var Oc=1;Oc<ms.columnSpan&&!(ms.column+Oc>=a.columnCount);Oc++)ni=a.Eb(ms.column+Oc),el=0,el=Ql===li||Ql===or?Math.max(ni.minimum,yc[ms.column+Oc]===0?ni.maximum:Math.min(yc[ms.column+Oc],ni.maximum)):Math.max(ni.minimum,isNaN(ni.Hc)?ni.maximum:Math.min(ni.Hc,ni.maximum)),ah.width+=el,_0+=ni.minimum;bl.width+=ah.width,bl.height+=ah.height;var ap=ms.margin,hf=ap.right+ap.left,lm=ap.top+ap.bottom;ms.measure(bl.width,bl.height,_0,Ju);for(var sp=ms.measuredBounds,Cd=Math.max(sp.width+hf,0),Hf=Math.max(sp.height+lm,0),ff=0,lp=0;lp<ms.rowSpan&&!(ms.row+lp>=a.rowCount);lp++)ni=a.Fb(ms.row+lp),ff+=ni.total||0;if(ff<Hf){var Oh=Hf-ff,Hd=Hf-ff;if(ms.spanAllocation!==null)for(var Ih=ms.spanAllocation,sh=0;sh<ms.rowSpan&&!(0>=Oh)&&!(ms.row+sh>=a.rowCount);sh++){ni=a.Fb(ms.row+sh);var Rh=ni.oa||0,Wf=Ih(ms,ni,Hd);ni.actual=Math.min(ni.maximum,Rh+Wf),ni.oa!==Rh&&(Oh-=ni.oa-Rh)}for(;0<Oh;){var hd=ni.oa||0;if(isNaN(ni.height)&&ni.maximum>hd&&(ni.actual=Math.min(ni.maximum,hd+Oh),ni.oa!==hd&&(Oh-=ni.oa-hd)),ni.index===0)break;ni=a.Fb(ni.index-1)}}for(var vg=0,zh=0;zh<ms.columnSpan&&!(ms.column+zh>=a.columnCount);zh++)ni=a.Eb(ms.column+zh),vg+=ni.total||0;if(vg<Cd){var yg=Cd-vg,Yy=Cd-vg;if(ms.spanAllocation!==null)for(var lh=ms.spanAllocation,Zf=0;Zf<ms.columnSpan&&!(0>=yg)&&!(ms.column+Zf>=a.columnCount);Zf++){ni=a.Eb(ms.column+Zf);var um=ni.oa||0,Uy=lh(ms,ni,Yy);ni.actual=Math.min(ni.maximum,um+Uy),ni.oa!==um&&(yg-=ni.oa-um)}for(;0<yg;){var $0=ni.oa||0;if(isNaN(ni.width)&&ni.maximum>$0&&(ni.actual=Math.min(ni.maximum,$0+yg),ni.oa!==$0&&(yg-=ni.oa-$0)),ni.index===0)break;ni=a.Eb(ni.index-1)}}}}Pi(St),zn.free(ah),zn.free(bl),dd!==void 0&&Pi(dd),yc!==void 0&&Pi(yc);var Sg=0,xg=0,q0=a.desiredSize,Sx=a.maxSize;Ql=wu(a,!0);var cm=ih=zd=0,dm=0;z=a.columnCount;for(var ev=0;ev<z;ev++)pi[ev]!==void 0&&(ni=a.Eb(ev),isFinite(ni.width)?(cm+=ni.width,cm+=ni.Wc()):Tm(ni)===Pp?(cm+=ni.oa,cm+=ni.Wc()):ni.oa!==0&&(zd+=ni.oa,zd+=ni.Wc()));isFinite(q0.width)?Sg=Math.min(q0.width,Sx.width):Sg=Ql!==ii&&isFinite(y)?y:zd,Sg=Math.max(Sg,a.minSize.width),Sg=Math.max(Sg-cm,0);for(var aw=zd===0?1:Math.max(Sg/zd,1),tv=0;tv<z;tv++)pi[tv]!==void 0&&(ni=a.Eb(tv),isFinite(ni.width)||Tm(ni)===Pp||(ni.actual=ni.oa*aw),ni.position=E.width,ni.oa!==0&&(E.width+=ni.oa,E.width+=ni.Wc()));z=a.rowCount;for(var nv=0;nv<z;nv++)Ri[nv]!==void 0&&(ni=a.Fb(nv),isFinite(ni.height)?(dm+=ni.height,dm+=ni.Wc()):Tm(ni)===Pp?(dm+=ni.oa,dm+=ni.Wc()):ni.oa!==0&&(ih+=ni.oa,ih+=ni.Wc()));isFinite(q0.height)?xg=Math.min(q0.height,Sx.height):xg=Ql!==ii&&isFinite(x)?x:ih,xg=Math.max(xg,a.minSize.height),xg=Math.max(xg-dm,0);for(var sw=ih===0?1:Math.max(xg/ih,1),iv=0;iv<z;iv++)Ri[iv]!==void 0&&(ni=a.Fb(iv),isFinite(ni.height)||Tm(ni)===Pp||(ni.actual=ni.oa*sw),ni.position=E.height,ni.oa!==0&&(E.height+=ni.oa,E.height+=ni.Wc()));z=re.length;for(var Xy=0;Xy<z;Xy++){var hm=re[Xy],Jy=0,Qy=0;hm.type===hi.TableRow?(Jy=E.width,ni=a.Fb(hm.row),Qy=ni.actual):(ni=a.Eb(hm.column),Jy=ni.actual,Qy=E.height),hm.measuredBounds.h(0,0,Jy,Qy),js(hm,!1)}Pi(re),a.inRowsCols=Te},bm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,le=ee.length,ue=0,fe=0;fe<le;fe++)ee[fe]&&(ue=Math.max(ue,ee[fe].length));oe=a.rowDefs,re=a.colDefs;var xe=fe=0,be=Math.min(a.topIndex,le-1);if(0<oe.length){for(;be!==le&&(oe[be]===void 0||oe[be].oa===0);)be++;be=Math.max(Math.min(be,le-1),0),fe=-oe[be].position}var Le=Math.min(a.leftIndex,ue-1);if(0<re.length){for(;Le!==ue&&(re[Le]===void 0||re[Le].oa===0);)Le++;Le=Math.max(Math.min(Le,ue-1),0),xe=-re[Le].position}for(var Te=0,at=0;Te!==le&&oe[Te]===void 0;)Te++;for(;at!==le&&re[at]===void 0;)at++;ue=a.part,a.Fb(Te),a.Eb(at);for(var Ue=0;Ue<y.length;Ue++){var vt=y[Ue];if(vt instanceof hi&&vt.visible&&xh(vt)){if(vt.type===hi.TableRow){re=a.Fb(vt.row);var St=a.Eb(at)}else re=a.Fb(Te),St=a.Eb(vt.column);oe=re.position+fe+E,re.oa!==0&&(oe+=re.Io(Math.max(Te,be))),re=St.position+xe+z,St.oa!==0&&(re+=St.Io(Math.max(at,Le))),St=vt.measuredBounds,vt.Uk(),vt.actualBounds.ka();var Ft=vt.actualBounds,Kt=Sn.allocAt(Ft.x,Ft.y,Ft.width,Ft.height);Ft.x=vt.type===hi.TableRow?z:re,Ft.y=vt.type===hi.TableColumn?E:oe,Ft.width=St.width,Ft.height=St.height,vt.actualBounds.freeze(),Ld(vt,!1),Zs(Kt,Ft)||ue===null||(ue.oh(),vt.Pn(ue)),Sn.free(Kt)}}for(Ue=zn.alloc(),vt=0;vt<le;vt++)if(ee[vt]){for(ue=ee[vt].length,St=a.Fb(vt),oe=St.position+fe+E,St.oa!==0&&(oe+=St.Io(Math.max(Te,be))),Ft=0;Ft<ue;Ft++)if(ee[vt][Ft]){Kt=a.Eb(Ft),re=Kt.position+xe+z,Kt.oa!==0&&(re+=Kt.Io(Math.max(at,Le)));for(var pn=ee[vt][Ft],ki=pn.length,Ji=0;Ji<ki;Ji++){var Ri=pn[Ji],pi=Ri.measuredBounds;Ue.h(0,0);for(var ni=1;ni<Ri.rowSpan&&!(vt+ni>=a.rowCount);ni++){var Xr=a.Fb(vt+ni);Xr.oa!==0&&(Ue.height+=Xr.total)}for(ni=1;ni<Ri.columnSpan&&!(Ft+ni>=a.columnCount);ni++)Xr=a.Eb(Ft+ni),Xr.oa!==0&&(Ue.width+=Xr.total);var Rr=Kt.oa+Ue.width,Qo=St.oa+Ue.height;ni=re,Xr=oe;var Pa=Rr,qs=Qo,cl=re,Xl=oe,el=Rr,Nh=Qo;re+Rr>x.width&&(el=Math.max(x.width-re,0)),oe+Qo>x.height&&(Nh=Math.max(x.height-oe,0));var Ns=Ri.alignment;if(Ns.Xb()){Ns=a.defaultAlignment,Ns.sb()||(Ns=So);var ld=Ns.x,Jl=Ns.y,kh=Ns.offsetX;Ns=Ns.offsetY;var rc=Kt.alignment,Bc=St.alignment;rc.sb()&&(ld=rc.x,kh=rc.offsetX),Bc.sb()&&(Jl=Bc.y,Ns=Bc.offsetY)}else ld=Ns.x,Jl=Ns.y,kh=Ns.offsetX,Ns=Ns.offsetY;(isNaN(ld)||isNaN(Jl))&&(Jl=ld=.5,Ns=kh=0),rc=pi.width,Bc=pi.height;var Yu=Ri.margin,Iu=Yu.left+Yu.right,af=Yu.top+Yu.bottom,ud=id(Ri,St,Kt,!1);!isNaN(Ri.desiredSize.width)||ud!==li&&ud!==or||(rc=Math.max(Rr-Iu,0)),!isNaN(Ri.desiredSize.height)||ud!==li&&ud!==Ar||(Bc=Math.max(Qo-af,0)),Rr=Ri.maxSize,Qo=Ri.minSize,rc=Math.min(Rr.width,rc),Bc=Math.min(Rr.height,Bc),rc=Math.max(Qo.width,rc),Bc=Math.max(Qo.height,Bc),Rr=Bc+af,ni+=Pa*ld-(rc+Iu)*ld+kh+Yu.left,Xr+=qs*Jl-Rr*Jl+Ns+Yu.top,Ri.visible&&(Ko(cl,Xl,el,Nh,ni,Xr,pi.width,pi.height)?Ri.arrange(ni,Xr,rc,Bc):Ri.arrange(ni,Xr,rc,Bc,new Sn(cl,Xl,el,Nh)))}}}for(zn.free(Ue),a=0;a<b;a++)x=y[a],z=x instanceof hi?x:null,z!==null&&xh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Em(){this.xa="Base"}wt(Em,Us),Em.prototype.measure=function(){},Em.prototype.arrange=function(){};function Am(){this.xa="Base"}wt(Am,Us),Am.prototype.measure=function(){},Am.prototype.arrange=function(){};function Lm(){this.xa="Base"}wt(Lm,Us),Lm.prototype.measure=function(a,y,x,b,E,z,ee){1<b.length&&ct("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,ee);var re=b.measuredBounds,oe=b.margin,le=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var ue=b.scale,fe=re.width;re=re.height;var xe=Math.max(y-le,0),be=Math.max(x-oe,0),Le=1;a.viewboxStretch===er?fe!==0&&re!==0&&(Le=Math.min(xe/fe,be/re)):fe!==0&&re!==0&&(Le=Math.max(xe/fe,be/re)),Le===0&&(Le=1e-4),b.Ca*=Le,ue!==b.scale&&(js(b,!0),b.measure(1/0,1/0,z,ee))}re=b.measuredBounds,E.width=isFinite(y)?y:Math.max(re.width+le,0),E.height=isFinite(x)?x:Math.max(re.height+oe,0)},Lm.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 ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=So),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-E*ee.y+ee.offsetY,b.width,b.height)};function Sp(){this.xa="Base"}wt(Sp,Us),Sp.prototype.measure=function(){},Sp.prototype.arrange=function(){},Sp.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,ee=a.actualBounds,re=z.width,oe=z.height,le=Math.ceil(re/E),ue=Math.ceil(oe/b),fe=a.gridOrigin,xe=fe.x;fe=fe.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var be=[],Le=a.O.s,Te=Le.length,at=0;at<Te;at++){var Ue=Le[at],vt=[];if(be.push(vt),Ue.visible){var St=Ue.interval;if(!(0>St)){Ue=Sv(Ue.figure);for(var Ft=0;Ft<Te;Ft++)if(Ft!==at){var Kt=Le[Ft];Kt.visible&&Sv(Kt.figure)===Ue&&(Kt=Kt.interval,Kt>St&&vt.push(Kt))}}}}for(Le=a.O.s,Te=Le.length,at=0;at<Te;at++){var pn=Le[at];if(pn.visible&&(vt=pn.interval||1,Ue=Math.abs(vt),!(2>E*Ue*x))){if(St=pn.segmentIndex,(!isFinite(St)||isNaN(St))&&(St=0),0>St&&(St=Ue-Math.min(-St,Ue)),St=Math.round(St%Ue),Ue=pn.opacity,Ft=1,Ue!==1){if(Ue===0)continue;Ft=y.globalAlpha,y.globalAlpha=Ft*Ue}Kt=be[at];var ki=!1,Ji=pn.strokeDashArray;if(Ji!==null&&(ki=!0,y.js(Ji,pn.strokeDashOffset)),pn.figure==="LineV"&&pn.stroke!==null&&0<pn.strokeWidth){for(y.lineWidth=pn.strokeWidth,cs(a,y,pn.stroke,!1,!1,z,ee),y.beginPath(),Ji=pn=Math.floor((xe-E)/E);Ji<=pn+le;Ji++){var Ri=Ji*E+xe;0<=Ri&&Ri<=re&&Mm(Ji,vt,St,Kt)&&(y.moveTo(Ri,0),y.lineTo(Ri,oe))}y.stroke(),y.Se()}else if(pn.figure==="LineH"&&pn.stroke!==null&&0<pn.strokeWidth){for(y.lineWidth=pn.strokeWidth,cs(a,y,pn.stroke,!1,!1,z,ee),y.beginPath(),Ji=pn=Math.floor((fe-b)/b);Ji<=pn+ue;Ji++)Ri=Ji*b+fe,0<=Ri&&Ri<=oe&&Mm(Ji,vt,St,Kt)&&(y.moveTo(0,Ri),y.lineTo(re,Ri));y.stroke(),y.Se()}else if(pn.figure==="BarV"&&pn.fill!==null)for(cs(a,y,pn.fill,!0,!1,z,ee),pn=pn.width,isNaN(pn)&&(pn=E),Ri=Ji=Math.floor((xe-E)/E);Ri<=Ji+le;Ri++){var pi=Ri*E+xe;0<=pi+pn&&pi<=re&&Mm(Ri,vt,St,Kt)&&y.fillRect(pi,0,pn,oe)}else if(pn.figure==="BarH"&&pn.fill!==null)for(cs(a,y,pn.fill,!0,!1,z,ee),pn=pn.height,isNaN(pn)&&(pn=b),Ri=Ji=Math.floor((fe-b)/b);Ri<=Ji+ue;Ri++)pi=Ri*b+fe,0<=pi+pn&&pi<=oe&&Mm(Ri,vt,St,Kt)&&y.fillRect(0,pi,re,pn);ki&&y.fs(),Ue!==1&&(y.globalAlpha=Ft)}}y.restore(),y.Vc(!1)};function Mm(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 Fm(){this.xa="Base"}wt(Fm,Us),Fm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Uo||a instanceof mi){var ee=null,re=null;if(a instanceof mi&&(ee=a),a instanceof Uo&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof mi){var oe=ee;if(z===0)oa(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof Uo?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ue=oe.points,fe=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var xe=y.height,be=a.j;if(be.length=0,le!==null){l1(a,re,xe,le);var Le=le.measuredBounds;x.ed(Le),be.push(Le)}Le=jr.alloc();for(var Te=_e.alloc(),at=_e.alloc(),Ue=0;Ue<z;Ue++){var vt=b[Ue];if(vt!==le)if(vt.isPanelMain&&vt instanceof io){l1(a,re,xe,vt);var St=vt.measuredBounds;x.ed(St),be.push(St)}else if(2>fe)vt.measure(1/0,1/0,0,0),St=vt.measuredBounds,x.ed(St),be.push(St);else{var Ft=vt.segmentIndex,Kt=vt.segmentFraction,pn=vt.alignmentFocus;pn.Mc()&&(pn=So);var ki=vt.segmentOrientation,Ji=vt.segmentOffset;if(isNaN(Ft)){var Ri=oe.ua;St=ci(),Ri.Qu(Kt,St);var pi=_e.allocAt(St[0],St[1]);if(pi.add(oe.i(0)),Ri.type===gi.j?pi.offset(-Ri.startX,-Ri.startY):(Ri=Ri.figures.first(),Ri!==null&&pi.offset(-Ri.startX,-Ri.startY)),Ri=St[2],ki!==au){var ni=oe.computeAngle(vt,ki,Ri);vt.Kb=ni}ni=pi.x-y.x;var Xr=pi.y-y.y;_e.free(pi),Pi(St)}else if(Ft<-fe||Ft>=fe)St=_e.alloc(),oe.vg(),oe.computeMidPoint(St),Ri=oe.midAngle,ki!==au&&(ni=oe.computeAngle(vt,ki,Ri),vt.Kb=ni),ni=St.x-y.x,Xr=St.y-y.y,_e.free(St);else{if(ni=0,0<=Ft?(Xr=ue.M(Ft),St=Ft<fe-1?ue.M(Ft+1):Xr):(ni=fe+Ft,Xr=ue.M(ni),St=0<ni?ue.M(ni-1):Xr),Xr.Xa(St)){0<=Ft?(Ri=0<Ft?ue.M(Ft-1):Xr,ni=Ft<fe-2?ue.M(Ft+2):St):(Ri=ni<fe-1?ue.M(ni+1):Xr,ni=1<ni?ue.M(ni-2):St),pi=Ri.Bf(Xr);var Rr=St.Bf(ni);Ri=pi>Rr+10?0<=Ft?Ri.ab(Xr):Xr.ab(Ri):Rr>pi+10?0<=Ft?St.ab(ni):ni.ab(St):0<=Ft?Ri.ab(ni):ni.ab(Ri)}else Ri=0<=Ft?Xr.ab(St):St.ab(Xr);ki!==au&&(ni=oe.computeAngle(vt,ki,Ri),vt.Kb=ni),ni=Xr.x+(St.x-Xr.x)*Kt-y.x,Xr=Xr.y+(St.y-Xr.y)*Kt-y.y}vt.measure(1/0,1/0,0,0),St=vt.measuredBounds,pi=vt.naturalBounds;var Qo=0;vt instanceof io&&(Qo=vt.strokeWidth),Rr=pi.width+Qo;var Pa=pi.height+Qo;Le.reset(),Le.translate(-St.x,-St.y),Le.scale(vt.scale,vt.scale),Le.rotate(ki===au?vt.angle:Ri,Rr/2,Pa/2),ki!==Dp&&ki!==Tp||Le.rotate(90,Rr/2,Pa/2),ki!==Bp&&ki!==Op||Le.rotate(-90,Rr/2,Pa/2),ki===o0&&(45<Ri&&135>Ri||225<Ri&&315>Ri)&&Le.rotate(-Ri,Rr/2,Pa/2),pi=new Sn(0,0,Rr,Pa),Te.xi(pi,pn),Le.Ga(Te),pn=-Te.x+Qo/2*vt.scale,vt=-Te.y+Qo/2*vt.scale,at.assign(Ji),Qo=isNaN(Ji.x);var qs=isNaN(Ji.y);if(Qo||qs){Rr=Rr/2+3,Pa=Pa/2+3;var cl=45<=Ri&&135>=Ri,Xl=225<=Ri&&315>=Ri;ki===au&&(cl||Xl)?(at.x=qs?Rr:Ji.y,at.y=Qo?Pa:Ji.x,cl?0<=Ft||isNaN(Ft)&&.5>Kt||!Qo||(at.y=-Pa):Xl&&((0<=Ft||isNaN(Ft)&&.5>Kt)&&Qo&&(at.y=-Pa),qs&&(at.x=-Rr))):(Qo&&(at.x=0<=Ft||isNaN(Ft)&&.5>Kt?Rr:-Rr),qs&&(at.y=-Pa),at.rotate(Ri))}else at.rotate(Ri);ni+=at.x,Xr+=at.y,pi.set(St),pi.h(ni+pn,Xr+vt,St.width,St.height),be.push(pi),x.ed(pi)}}if(ee!==null)for(b=ee.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),oa(E,x.width||0,x.height||0),jr.free(Le),_e.free(Te),_e.free(at)}}}},Fm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Uo||a instanceof mi){var b=a,E=null;a instanceof Uo&&(E=a,b=E.adornedPart);var z=a instanceof Uo?null:b.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var le=y[oe];if(le!==z&&re<ee.length){var ue=ee[re];re++,le.arrange(ue.x-a.jg.x,ue.y-a.jg.y,ue.width,ue.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof mi)for(z=a.labelNodes;z.next();){var fe=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var xe=ee.alignmentFocus;if(le=ee.segmentOrientation,ue=ee.segmentOffset,isNaN(re)){var be=fe.ua,Le=ci();be.Qu(oe,Le);var Te=_e.allocAt(Le[0],Le[1]);Te.add(fe.i(0)),be.type===gi.j||(be=be.figures.first()),Te.offset(-be.startX,-be.startY),be=Le[2],le!==au&&(fe=fe.computeAngle(ee,le,be),ee.angle=fe),fe=Te.x;var at=Te.y;_e.free(Te),Pi(Le)}else if(re<-x||re>=x)Le=_e.alloc(),be=fe,at=Le,be.vg(),be.computeMidPoint(at),be=fe.midAngle,le!==au&&(fe=fe.computeAngle(ee,le,be),ee.angle=fe),fe=Le.x,at=Le.y,_e.free(Le);else{if(Te=0,0<=re?(Le=y.s[re],at=re<x-1?y.s[re+1]:Le):(Te=x+re,Le=y.s[Te],at=0<Te?y.s[Te-1]:Le),Le.Xa(at)){0<=re?(be=0<re?y.s[re-1]:Le,Te=re<x-2?y.s[re+2]:at):(be=Te<x-1?y.s[Te+1]:Le,Te=1<Te?y.s[Te-2]:at);var Ue=be.Bf(Le),vt=at.Bf(Te);be=Ue>vt+10?0<=re?be.ab(Le):Le.ab(be):vt>Ue+10?0<=re?at.ab(Te):Te.ab(at):0<=re?be.ab(Te):Te.ab(be)}else be=0<=re?Le.ab(at):at.ab(Le);le!==au&&(fe=fe.computeAngle(ee,le,be),ee.angle=fe),fe=Le.x+(at.x-Le.x)*oe,at=Le.y+(at.y-Le.y)*oe}if(xe.ys())ee.location=new _e(fe,at);else{xe.Mc()&&(xe=So),Le=jr.alloc(),Le.reset(),Le.scale(ee.scale,ee.scale),Le.rotate(ee.angle,0,0);var St=ee.naturalBounds;Te=Sn.allocAt(0,0,St.width,St.height),Ue=_e.alloc(),Ue.xi(Te,xe),Le.Ga(Ue),xe=-Ue.x,vt=-Ue.y;var Ft=St.width,Kt=St.height;St=_e.alloc(),St.assign(ue);var pn=isNaN(ue.x),ki=isNaN(ue.y);if(pn||ki){Ft=Ft/2+3,Kt=Kt/2+3;var Ji=45<=be&&135>=be,Ri=225<=be&&315>=be;le===au&&(Ji||Ri)?(St.x=ki?Ft:ue.y,St.y=pn?Kt:ue.x,Ji?0<=re||isNaN(re)&&.5>oe||!pn||(St.y=-Kt):Ri&&((0<=re||isNaN(re)&&.5>oe)&&pn&&(St.y=-Kt),ki&&(St.x=-Ft))):(pn&&(St.x=0<=re||isNaN(re)&&.5>oe?Ft:-Ft),ki&&(St.y=-Kt),St.rotate(be))}else St.rotate(be);fe+=St.x,at+=St.y,Le.pp(Te),xe+=Te.x,vt+=Te.y,re=_e.allocAt(fe+xe,at+vt),ee.move(re),_e.free(re),_e.free(St),_e.free(Ue),Sn.free(Te),jr.free(Le)}}E!==null?E.Ul(!1):b.Ul(!1),b=R1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),_e.free(b)}};function l1(a,y,x,b){if(ec(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Uo&&a.type===hi.Link&&a.adornedObject instanceof io&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof mi&&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 Uo&&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),js(b,!1)}}function xp(){this.xa="Base"}wt(xp,Us),xp.prototype.measure=function(a,y,x,b,E,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,le=oe.right+oe.left,ue=oe.top+oe.bottom;re.measure(y,x,z,ee);var fe=re.measuredBounds,xe=new Sn(-oe.left,-oe.top,Math.max(fe.width+le,0),Math.max(fe.height+ue,0));a.graduatedBounds.push(xe),E.assign(xe);for(var be=re.geometry,Le=re.strokeWidth,Te=be.flattenedSegments,at=be.flattenedLengths,Ue=be.flattenedTotalLength,vt=Te.length,St=0,Ft=0,Kt=ci(),pn=0;pn<vt;pn++){var ki=Te[pn],Ji=[];Ft=St=0;for(var Ri=ki.length,pi=0;pi<Ri;pi+=2){var ni=ki[pi],Xr=ki[pi+1];if(pi!==0){var Rr=180*Math.atan2(Xr-Ft,ni-St)/Math.PI;0>Rr&&(Rr+=360),Ji.push(Rr)}St=ni,Ft=Xr}Kt.push(Ji)}if(a.graduatedIntervals===null){for(var Qo=[],Pa=a.O.s,qs=Pa.length,cl=0;cl<qs;cl++){var Xl=Pa[cl],el=[];if(Qo.push(el),Xl.visible){var Nh=Xl.interval;if(!(0>Nh)){for(var Ns=0;Ns<qs;Ns++)if(Ns!==cl){var ld=Pa[Ns];if(ld.visible&&Xl.constructor===ld.constructor){var Jl=ld.interval;Jl>Nh&&el.push(Jl)}}}}}a.graduatedIntervals=Qo}var kh=a.graduatedIntervals,rc=a.O.s,Bc=rc.length,Yu=0,Iu=0,af=Ue;a.graduatedMarks=[];for(var ud,qg=0;qg<Bc;qg++){var Uu=rc[qg];if(ud=[],Uu.visible&&Uu!==re){var Ql=Math.abs(Uu.interval),om=a.graduatedTickUnit;if(!(2>om*Ql*Ue/a.graduatedRange&&Uu.graduatedSkip===null)){var fg=at[0][0],xd=0,Ru=0;Iu=Ue*Uu.graduatedStart-1e-4,af=Ue*Uu.graduatedEnd+1e-4;var If=om*Ql,Xu=a.graduatedTickBase;if(Xu<a.graduatedMin){var sf=(a.graduatedMin-Xu)/If;sf=sf%1===0?sf:Math.floor(sf+1),Xu+=sf*If}else Xu>a.graduatedMin+If&&(Xu-=Math.floor((Xu-a.graduatedMin)/If)*If);for(var U0=kh[qg],am=Xu,Vy=1e-6*a.graduatedMax,zd=1;Xu<=a.graduatedMax+Vy;zd++){e:{for(var ih=U0.length,gg=0;gg<ih;gg++){var lf=(Xu-a.graduatedTickBase)%(U0[gg]*a.graduatedTickUnit),ep=1e-6*a.graduatedTickUnit;if(lf<ep&&lf>-ep){var uf=!1;break e}}uf=!0}if(uf&&(Xu>a.graduatedMax&&(Xu=a.graduatedMax),Uu.graduatedSkip===null||Uu instanceof ba&&!Uu.graduatedSkip(Xu,Uu)||Uu instanceof io&&!Uu.graduatedSkip(Xu,Uu))&&(Yu=(Xu-a.graduatedMin)*Ue/a.graduatedRange,Yu>Ue&&(Yu=Ue),Iu<=Yu&&Yu<=af)){for(var jd=Kt[xd][Ru],Dh=at[xd][Ru];xd<at.length;){for(;Yu>fg&&Ru<at[xd].length-1;)Ru++,jd=Kt[xd][Ru],Dh=at[xd][Ru],fg+=Dh;if(Yu<=fg)break;xd++,Ru=0,jd=Kt[xd][Ru],Dh=at[xd][Ru],fg+=Dh}var zu=Te[xd],wd=zu[2*Ru],X0=zu[2*Ru+1],rh=(Yu-(fg-Dh))/Dh,tp=new _e(wd+(zu[2*Ru+2]-wd)*rh+Le/2-be.bounds.x,X0+(zu[2*Ru+3]-X0)*rh+Le/2-be.bounds.y);tp.scale(re.scale,re.scale);e:{var cd=jd,Rf=Kt[xd];if(!(.5005>rh&&.4995<rh)){var Pd=cd;if(.5>rh?0<Ru?Pd=Rf[Ru-1]:Vt.$(zu[0],zu[zu.length-2])&&Vt.$(zu[1],zu[zu.length-1])&&(Pd=Rf[Rf.length-1]):.5<rh&&(Ru+1<Rf.length?Pd=Rf[Ru+1]:Vt.$(zu[0],zu[zu.length-2])&&Vt.$(zu[1],zu[zu.length-1])&&(Pd=Rf[0])),cd!==Pd){var pg=Math.abs(cd-Pd);if(180<pg&&(cd<Pd?cd+=360:Pd+=360,pg=Math.abs(cd-Pd)),5e-4>rh||.9995<rh){jd=(cd+Pd)/2%360;break e}if(10>pg){var np=1-Math.abs(.5-rh);jd=(cd*np+Pd*(1-np))%360;break e}}}jd=cd}if(Uu instanceof ba){var Xc="";Uu.graduatedFunction!==null?(Xc=Uu.graduatedFunction(Xu,Uu),Xc=Xc!=null?Xc.toString():""):Xc=(+Xu.toFixed(2)).toString(),Xc!==""&&ud.push({$l:tp,angle:jd,text:Xc})}else ud.push({$l:tp,angle:jd})}Xu=am+zd*If}}}a.graduatedMarks.push(ud)}Pi(Kt);var bl=a.graduatedMarks;if(bl!==null)for(var sm=b.length,du=0;du<sm;du++){var ks=b[du],hu=bl[du];if(ks.visible&&ks!==re&&hu.length!==0){if(ks instanceof io){var oh=a,Bh=E,zf=ks.alignmentFocus;zf.Mc()&&(zf=Os);var Gy=ks.angle;ks.Kb=0,ks.measure(1/0,1/0,0,0),ks.Kb=Gy;var J0=ks.measuredBounds,ip=J0.width,jf=J0.height,mg=Sn.allocAt(0,0,ip,jf),ju=_e.alloc();ju.xi(mg,zf),Sn.free(mg);for(var ah=-ju.x,dd=-ju.y,yc=new Sn,cf=hu.length,rp=0;rp<cf;rp++)for(var df=hu[rp],Q0=df.$l.x,op=df.$l.y,ms=df.angle,Jc=0;4>Jc;Jc++){switch(Jc){case 0:ju.h(ah,dd);break;case 1:ju.h(ah+ip,dd);break;case 2:ju.h(ah,dd+jf);break;case 3:ju.h(ah+ip,dd+jf)}ju.rotate(ms+ks.angle),ju.offset(Q0,op),rp===0&&Jc===0?yc.h(ju.x,ju.y,0,0):yc.Ye(ju),ju.offset(-Q0,-op),ju.rotate(-ms-ks.angle)}_e.free(ju),oh.graduatedBounds!==null&&oh.graduatedBounds.push(yc),Ao(Bh,yc.x,yc.y,yc.width,yc.height)}else if(ks instanceof ba){var Tc=a,_0=E;Tc.temporaryTextBlock===null&&(Tc.temporaryTextBlock=new ba);var Ju=Tc.temporaryTextBlock;C1(Ju,ks);var Th=ks.alignmentFocus;Th.Mc()&&(Th=Os);for(var Oc=ks.segmentOrientation,ap=ks.segmentOffset,hf=new Sn,lm=0,sp=0,Cd=0,Hf=0,ff=0,lp=hu.length,Oh=0;Oh<lp;Oh++){var Hd=hu[Oh];lm=Hd.$l.x,sp=Hd.$l.y,Cd=Hd.angle,ff=Hf=ks.angle,Oc!==au&&(ff=Oc===kp||Oc===r0?Cd+ks.angle:Cd,Hf=mi.computeAngle(Oc,ff)),Ju.Kb=Hf,Ju.text=Hd.text||"",Ju.measure(1/0,1/0,0,0);var Ih=Ju.measuredBounds,sh=Ju.naturalBounds,Rh=sh.width,Wf=sh.height,hd=jr.alloc();hd.reset(),hd.translate(-Ih.x,-Ih.y),hd.scale(Ju.scale,Ju.scale),hd.rotate(ff,Rh/2,Wf/2),Oc!==Dp&&Oc!==Tp||hd.rotate(90,Rh/2,Wf/2),Oc!==Bp&&Oc!==Op||hd.rotate(-90,Rh/2,Wf/2),Oc===o0&&(45<Cd&&135>Cd||225<Cd&&315>Cd)&&hd.rotate(-Cd,Rh/2,Wf/2);var vg=Sn.allocAt(0,0,Rh,Wf),zh=_e.alloc();zh.xi(vg,Th),hd.Ga(zh);var yg=-zh.x,Yy=-zh.y,lh=_e.alloc();lh.assign(ap),isNaN(lh.x)&&(lh.x=Rh/2+3),isNaN(lh.y)&&(lh.y=-(Wf/2+3)),lh.rotate(Cd),lm+=lh.x+yg,sp+=lh.y+Yy;var Zf=new Sn(lm,sp,Ih.width,Ih.height),um=new Sn(Ih.x,Ih.y,Ih.width,Ih.height),Uy=new Sn(sh.x,sh.y,sh.width,sh.height);Hd.Sz=Hf,Hd.lineCount=Ju.lineCount,Hd.lines=[Ju.Cb,Ju.Ih,Ju.df,Ju.Le,Ju.Qc,Ju.Qb,Ju.ze],Hd.actualBounds=Zf,Hd.measuredBounds=um,Hd.naturalBounds=Uy,Oh===0?hf.assign(Zf):hf.ed(Zf),_e.free(lh),_e.free(zh),Sn.free(vg),jr.free(hd)}Tc.graduatedBounds!==null&&Tc.graduatedBounds.push(hf),Ao(_0,hf.x,hf.y,hf.width,hf.height)}js(ks,!1)}}},xp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,b!==null&&b.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,le=0;le<oe;le++){var ue=y[le];re=E[le],ue.visible&&ue!==b&&re.length!==0&&(re=z[ee],ee++,ue.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},xp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,ee=E.height;E=y instanceof Ku,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,le=a.graduatedMarks,ue=oe.length,fe=0;fe<ue;fe++){var xe=oe[fe],be=le[fe],Le=be.length;if(xe.visible&&xe!==z&&be.length!==0){if(xe instanceof io){if(!(2>a.graduatedTickUnit*xe.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&xe.graduatedSkip===null)){var Te=xe.measuredBounds,at=xe.strokeWidth*xe.scale,Ue=xe.alignmentFocus;Ue.Mc()&&(Ue=Os);for(var vt=0;vt<Le;vt++){var St=be[vt].$l,Ft=be[vt].angle,Kt=Ue,pn=xe.Ab;pn.reset(),pn.translate(St.x+re.x,St.y+re.y),pn.rotate(Ft+xe.angle,0,0),pn.translate(-Te.width*Kt.x+Kt.offsetX+at/2,-Te.height*Kt.y+Kt.offsetY+at/2),pn.scale(xe.scale,xe.scale),Mc(xe,!1),xe.wh.set(xe.Ab),xe.Kk=xe.scale,dc(xe,!1),xe.gc(y,x),E&&(a.svg.appendChild(xe.svg),xe.svg=null),xe.Ab.reset()}}}else if(xe instanceof ba)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ba),Te=a.temporaryTextBlock,C1(Te,xe),at=0;at<Le;at++)Ue=be[at],Ue.actualBounds&&Ue.measuredBounds&&Ue.naturalBounds&&(Te.ec=Ue.text||"",Te.Kb=Ue.Sz||0,Te.Gc=Ue.lineCount||0,vt=Ue.lines,vt!==void 0&&(Te.Cb=vt[0],Te.Ih=vt[1],Te.df=vt[2],Te.Le=vt[3],Te.Qc=vt[4],Te.Qb=vt[5],Te.ze=vt[6]),Ue.naturalBounds&&(Te.dc=Ue.naturalBounds),Ue.actualBounds&&(vt=Ue.actualBounds,Te.arrange(vt.x,vt.y,vt.width,vt.height)),vt=Ue.actualBounds,Te.arrange(vt.x,vt.y,vt.width,vt.height),St=Ue.measuredBounds,Ue=Ue.naturalBounds,Ft=Te.Ab,Ft.reset(),Ft.translate(vt.x+re.x,vt.y+re.y),Ft.translate(-St.x,-St.y),Te.no(Ft,Ue.x,Ue.y,Ue.width,Ue.height),Mc(Te,!1),Te.wh.set(Te.Ab),Te.Kk=Te.scale,dc(Te,!1),Te.Ng=xe.part,Te.Me=xe.panel,Te.gc(y,x),Te.Me=null,Te.Ng=null,E&&(a.svg.appendChild(Te.svg),Te.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function hi(a,y){if(Gt.call(this),this.na=null,a===void 0)this.na=hi.Position;else if(typeof a=="string"){var x=Zc.I(a);x!==null&&(this.na=x)}else a instanceof Us?this.na=a:a&&(this.na=hi.Position,y=a);this.na===null&&ct("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===hi.Grid?1048576:0),this.O=new Dn,this.yb=Ds,this.Tm=Jo,this.Uf=_r,this.$g=null,this.$e="",this.jg=new Sn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=er,this.jn=Jr,this.kn=yt,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}wt(hi,Gt),hi.prototype.cloneProtected=function(a){Gt.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},hi.prototype.Af=function(a){Gt.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},hi.prototype.copy=function(){var a=Gt.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,ee=z.count;if(z.Gb(ee,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof Ti&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(fi,"elements",a,null,E,null,ee)}}return a}return null},Ae=hi.prototype,Ae.toString=function(){return"Panel("+this.type.name+")#"+Cr(this)},Ae.Pn=function(a){Gt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Ae.hh=function(a,y){if(this.na===hi.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===hi.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===hi.Table)if(a.yc(),a instanceof Ku){var x=a.yd;a.yd=mm(a,"gojs-ts"),yv(this,a),a.nh.pop(),a.yd=x}else yv(this,a);(x=this.isClipping&&this.na===hi.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];x&&re===b&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function yv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Nm(a,y,!0,x,!0),b!==null&&Nm(a,y,!1,b,!0),x!==null&&u1(a,y,!0,x),b!==null&&u1(a,y,!1,b),x!==null&&Nm(a,y,!0,x,!1),b!==null&&Nm(a,y,!1,b,!1)}function u1(a,y,x,b){for(var E=b.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<E;oe++){var le=b[oe];if(le!==void 0&&le.actual!==0)if(re)re=!1;else{if(x){if(le.position>ee.height)continue}else if(le.position>ee.width)continue;var ue=le.separatorStrokeWidth;isNaN(ue)&&(ue=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var fe=le.separatorStroke;if(fe===null&&(fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ue!==0&&fe!==null){cs(a,y,fe,!1,!1,ee,z),fe=!1;var xe=le.separatorDashArray;xe===null&&(xe=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),xe!==null&&(fe=!0,y.js(xe,0)),y.beginPath(),xe=le.position+ue,x?xe>ee.height&&(ue-=xe-ee.height):xe>ee.width&&(ue-=xe-ee.width),le=le.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(le+=ue.top,xe=ee.width-ue.right,y.moveTo(ue.left,le),y.lineTo(xe,le)):(le+=ue.left,xe=ee.height-ue.bottom,y.moveTo(le,ue.top),y.lineTo(le,xe)),y.stroke(),y.Se(),fe&&y.fs()}}}}function Nm(a,y,x,b,E){for(var z=b.length,ee=a.actualBounds,re=a.naturalBounds,oe=c1(a,!0),le=c1(a,!1),ue=0;ue<z;ue++){var fe=b[ue];if(fe!==void 0&&fe.background!==null&&fe.coversSeparators!==E&&fe.actual!==0){var xe=x?ee.height:ee.width;if(!(fe.position>xe)){var be=fe.Wc(),Le=fe.separatorStrokeWidth;isNaN(Le)&&(Le=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Te=fe.separatorStroke;Te===null&&(Te=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Te===null||fe.index===(x?oe:le))&&(Le=0),be-=Le,Le=fe.position+Le,be+=fe.actual,Le+be>xe&&(be=xe-Le),0>=be||(xe=a.yb,cs(a,y,fe.background,!0,!1,re,ee),x?y.fillRect(xe.left,Le+xe.top,ee.width-(xe.left+xe.right),be):y.fillRect(Le+xe.left,xe.top,be,ee.height-(xe.top+xe.bottom)))}}}}function c1(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 Sv(a){return a==="LineV"||a==="BarV"}Ae.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ae.kk=function(a,y,x){if(!Gt.prototype.kk.call(this,a,y,x))return!1;if(this.type===hi.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,yv(this,a),a.yd=null;else if(this.na===hi.Grid||this.na===hi.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},Ae.nk=function(){return!0},Ae.$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,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;E=ee===0?re.x:Math.min(re.x,E),z=ee===0?re.y:Math.min(re.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 Gt.prototype.$o.call(this,a,y,x,b)},Ae.Sj=function(a,y,x,b,E){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,le=-ee.m12*re,ue=-ee.m21*re,fe=ee.m11*re,xe=re*(ee.m21*ee.dy-ee.m22*ee.dx),be=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Vt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,b,E);if(this.background!==null)return z=a*oe+y*ue+xe,re=a*le+y*fe+be,a=x*oe+b*ue+xe,oe=x*le+b*fe+be,E.h(0,0),x=this.naturalBounds,z=Vt.Ff(0,0,x.width,x.height,z,re,a,oe,E),E.transform(ee),z;z||(oe=1,ue=le=0,fe=1,be=xe=0),re=a*oe+y*ue+xe,a=a*le+y*fe+be,oe=x*oe+b*ue+xe,x=x*le+b*fe+be,E.h(oe,x),b=(oe-re)*(oe-re)+(x-a)*(x-a),le=!1,fe=this.O.s,be=fe.length,ue=_e.alloc(),xe=null,y=1/0;var Le=null,Te=this.isClipping&&this.na===hi.Spot;Te&&(Le=_e.alloc(),xe=this.Pb(),(le=xe.Sj(re,a,oe,x,Le))&&(y=(re-Le.x)*(re-Le.x)+(a-Le.y)*(a-Le.y)));for(var at=0;at<be;at++){var Ue=fe[at];Ue.visible&&Ue!==xe&&Ue.Sj(re,a,oe,x,ue)&&(le=!0,Ue=(re-ue.x)*(re-ue.x)+(a-ue.y)*(a-ue.y),Ue<b&&(b=Ue,E.set(ue)))}return Te&&(y>b&&E.set(Le),_e.free(Le)),_e.free(ue),z&&E.transform(ee),le},Ae.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Gt.prototype.Gj.call(this)},Ae.v=function(a){if(!ec(this)){Gt.prototype.v.call(this,a),a=null,(this.na===hi.Auto||this.na===hi.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=wu(E,!1);(E instanceof ou||E instanceof hi||E instanceof ba||z!==ii)&&E.v(!0)}}}},Ae.Uj=function(){if(!ec(this)){js(this,!0),Ld(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ae.Uk=function(){if(!(this.l&2048)){Mc(this,!0),dc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ae.Wu=function(){dc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ae.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,b=ee.height),x=Math.max(x,ee.width),b=Math.max(b,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(b,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,E,x,b),a=E.width+oe.left+oe.right,oe=E.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(b,oe),oa(E,a,oe),oa(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Ae.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 eh(a){return a.part!==null?a.part.locationObject:null}Ae.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=wu(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===b&&(a=ii),a){case ii:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case li:this.v(!0),this.measure(x+re,b+ee,0,0);break;case or:this.v(!0),this.measure(x+re,z+ee,0,0);break;case Ar:this.v(!0),this.measure(y+re,b+ee,0,0)}}this.na.arrange(this,E,this.jg)}},Ae.gh=function(a){var y=this.naturalBounds,x=eh(this);if(Ko(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=_e.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Kn(E.set(a),z.transform),z.ca(E)))return _e.free(E),!0}return _e.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Ae.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},Ae.qm=function(a,y){if(y(this,a),a instanceof hi){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Mf(a,y){d1(a,a,y)}function d1(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 hi&&d1(a,z,x)}}function Ax(a,y){h1(a,a,y)}function h1(a,y,x){if(x(y),y instanceof hi){y=y.O.s;for(var b=y.length,E=0;E<b;E++)h1(a,y[E],x)}}Ae.Nl=function(a){return f1(this,this,a)};function f1(a,y,x){if(x(y))return y;if(y instanceof hi){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=f1(a,y[E],x);if(z!==null)return z}}return null}Ae.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=wp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof hi){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function g1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof hi?x=Math.max(x,g1(E)):E instanceof io&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Ae.se=function(){return!(this.type===hi.TableRow||this.type===hi.TableColumn)};function xh(a){return a.type===hi.TableRow||a.type===hi.TableColumn}Ae.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),iu(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),ee=z?a:Kn(_e.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),Ko(-(le*E),-(le*E),b.width+oe*E,b.height+oe*E,ee.x,ee.y)){if(!this.isAtomic){E=this.O.s;var ue=E.length;if(re=_e.alloc(),le=(oe=this.isClipping&&this.na===hi.Spot)?this.Pb():null,oe&&(le.se()?Kn(re.set(a),le.transform):re.set(a),!le.ca(re)))return _e.free(re),z||_e.free(ee),null;for(var fe=eh(this);ue--;){var xe=E[ue];if((xe.visible||xe===fe)&&(xe.se()?Kn(re.set(a),xe.transform):re.set(a),!oe||xe!==le)){var be=null;if(xe instanceof hi?be=xe.ic(re,y,x):xe.pickable===!0&&xe.ca(re)&&(be=xe),be!==null&&(y!==null&&(be=y(be)),be!==null&&(x===null||x(be))))return _e.free(re),z||_e.free(ee),be}}_e.free(re)}return this.background===null&&this.areaBackground===null?(z||_e.free(ee),null):(a=Ko(0,0,b.width,b.height,ee.x,ee.y)?this:null,z||_e.free(ee),a)}return z||_e.free(ee),null},Ae.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(),ee=z?a:Kn(_e.allocAt(a.x,a.y),this.transform);if(E=Ko(0,0,E.width,E.height,ee.x,ee.y),xh(this)||E){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,le=_e.alloc(),ue=eh(this);oe--;){var fe=re[oe];if(fe.visible||fe===ue){fe.se()?Kn(le.set(a),fe.transform):le.set(a);var xe=fe;fe=fe instanceof hi?fe:null,(fe!==null?fe.ji(le,y,x,b):xe.ca(le))&&xe.pickable!==!1&&(y!==null&&(xe=y(xe)),xe===null||x!==null&&!x(xe)||b.add(xe))}}_e.free(le)}return z||_e.free(ee),E&&(this.background!==null||this.areaBackground!==null)}return z||_e.free(ee),!1},Ae.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 ee=z;if(z===void 0&&(ee=jr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return xv(this,y,x,E),z===void 0&&jr.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=eh(this),oe=this.O.s,le=oe.length;le--;){var ue=oe[le];if(ue.visible||ue===re){var fe=ue.actualBounds,xe=this.naturalBounds;fe.x>xe.width||fe.y>xe.height||0>fe.x+fe.width||0>fe.y+fe.height||(fe=ue,ue=ue instanceof hi?ue:null,xe=jr.alloc(),xe.set(ee),(ue!==null?ue.Cf(a,y,x,b,E,xe):$s(fe,a,b,xe))&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||E.add(fe)),jr.free(xe))}}return z===void 0&&jr.free(ee),b}return z===void 0&&jr.free(ee),!1};function xv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var ee=E[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof hi&&xv(ee,y,x,b),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||b.add(ee))}}}Ae.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 ee=this.naturalBounds,re=this.se(),oe=re?a:Kn(_e.allocAt(a.x,a.y),this.transform),le=re?y:Kn(_e.allocAt(y.x,y.y),this.transform),ue=oe.Bf(le),fe=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||Ei(oe.x,oe.y,0,0,0,ee.height)<=ue||Ei(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=ue||Ei(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=ue||Ei(oe.x,oe.y,ee.width,0,0,0)<=ue;if(ee=oe.zd(0,0)<=ue&&oe.zd(0,ee.height)<=ue&&oe.zd(ee.width,0)<=ue&&oe.zd(ee.width,ee.height)<=ue,re||(_e.free(oe),_e.free(le)),fe){if(!this.isAtomic){oe=_e.alloc(),le=_e.alloc(),ue=eh(this);for(var xe=this.O.s,be=xe.length;be--;){var Le=xe[be];if(Le.visible||Le===ue){var Te=Le.actualBounds,at=this.naturalBounds;(!re||!(Te.x>at.width||Te.y>at.height||0>Te.x+Te.width||0>Te.y+Te.height))&&(Le.se()?(Te=Le.transform,Kn(oe.set(a),Te),Kn(le.set(y),Te)):(oe.set(a),le.set(y)),Te=Le,Le=Le instanceof hi?Le:null,(Le!==null?Le.og(oe,le,x,b,E,z):Te.tx(oe,le,E))&&(x!==null&&(Te=x(Te)),Te===null||b!==null&&!b(Te)||z.add(Te)))}}_e.free(oe),_e.free(le)}return E?fe:ee}return!1};function wv(a){var y=null;return a instanceof io&&(y=a.spot1,y===Jo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=pa),y}function Pv(a){var y=null;return a instanceof io&&(y=a.spot2,y===Jo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=vl),y}Ae.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},Ae.M=function(a){return this.O.M(a)},Ae.Gb=function(a,y){y instanceof dr&&ct("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&ct("Cannot make a Panel contain itself: "+this.toString()),ct("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&ct("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!==hi.Grid||y instanceof io||ct("Can only add Shapes to a Grid Panel, not: "+y),this.na!==hi.Graduated||y instanceof io||y instanceof ba||ct("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 Oi),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else ct("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),ec(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof hi&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Dm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Ti&&(x.Te=!0),x.Te&&x instanceof Ti&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Ni,"elements",this,y,null,b,null),x.cb(fi,"elements",this,null,y,null,a)))};function Cv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ae.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)},Ae.mb=function(a){0<=a&&this.pc(a,!0)},Ae.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),js(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 Ti&&(b instanceof hi?b.qm(b,function(ee,re){Yv(z,re,y)}):Yv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ni,"elements",this,b,null,a,null))},Ae.Fb=function(a){0>a&&Un(a,">= 0",hi,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Hs;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(fi,"rowdefs",this,null,x,null,a)}return y[a]},Ae.oA=function(a){if(0>a&&Un(a,">= 0",hi,"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(Ni,"rowdefs",this,x,null,a,null),this.v()}}};function p1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Hs?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ae.Eb=function(a){0>a&&Un(a,">= 0",hi,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Hs;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(fi,"coldefs",this,null,x,null,a)}return y[a]},Ae.jA=function(a){if(0>a&&Un(a,">= 0",hi,"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(Ni,"coldefs",this,x,null,a,null),this.v()}}};function m1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Hs?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ae.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Bm(y,a),this},Ae.Hy=function(a,y){return(a=this.Fb(a))&&Bm(a,new Hs(y)),this},Ae.By=function(a,y){return(a=this.Eb(a))&&Bm(a,new Hs(y)),this},Ae.nz=function(a){if(0>a||this.type!==hi.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},Ae.fz=function(a){if(0>a||this.type!==hi.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},Ae.Fz=function(a,y){if(y===void 0&&(y=new _e(NaN,NaN)),this.type!==hi.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)},Ae.Gz=function(a){if(this.type!==hi.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function v1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Nc(a){var y=a.allBindings;if(y===null)a.data!==null&&ct("Template cannot have .data be non-null: "+a),a.allBindings=y=new Dn;else if(y._isFrozen)return;var x=new Dn;Cv(a,!1),a.qm(a,function(le,ue){ue.th();var fe=ue.localBindings;if(fe!==null)for($f(ue,!1),fe=fe.iterator;fe.next();){var xe=fe.value;xe.mode===Kp&&$f(ue,!0);var be=xe.sourceName;be!==null&&(be==="/"&&Cv(le,!0),be=kS(xe,le,ue),be!==null&&(x.add(be),be.srcBindings===null&&(be.srcBindings=new Dn),be.srcBindings.add(xe))),y.add(xe)}if(ue instanceof hi&&ue.type===hi.Table){if(0<ue.rowCount){for(le=ue.rowDefs,fe=le.length,xe=0;xe<fe;xe++)if(be=le[xe],be!==void 0&&be.be!==null)for(var Le=be.be.iterator;Le.next();){var Te=Le.value;Te.xd=be,Te.to=2,Te.wl=be.index,y.add(Te)}}if(0<ue.columnCount){for(ue=ue.colDefs,le=ue.length,fe=0;fe<le;fe++)if(xe=ue[fe],xe!==void 0&&xe.be!==null)for(be=xe.be.iterator;be.next();)Le=be.value,Le.xd=xe,Le.to=1,Le.wl=xe.index,y.add(Le)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){$f(E,!0);for(var z=E.srcBindings.iterator;z.next();){var ee=z.value;E.localBindings===null&&(E.localBindings=new Dn),E.localBindings.add(ee)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var re=E.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof hi&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,E.targetProperty=re):_n('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+E.toString())),z instanceof Hs?(ee=Cr(z.panel),E.Ai=ee===void 0?-1:ee,z.panel.bindingId=E.Ai):z instanceof Gt?(ee=Cr(z),E.Ai=ee===void 0?-1:ee,z.bindingId=E.Ai):ct("Unknown type of binding target: "+z)}y.freeze(),a instanceof dr&&a.Zc()&&a.Va()}Ae.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ax(y,function(x){x instanceof hi&&(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&&Nc(y),y},Ae.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,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),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 hi))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Ae.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Lx(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 hi&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var ee=0;E<x&&ee<b;){if(z=a[E],!(z instanceof hi)||z.data!==y[ee])return!0;E++,ee++}return!1}function wp(a){if(a.type===hi.Spot||a.type===hi.Auto)return Math.min(a.O.length,1);if(a.type===hi.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof io&&b.isPanelMain))break}return x}return a.type===hi.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof hi&&xh(a))?1:0}Ae.mv=function(){for(var a=wp(this);this.O.length>a;)this.pc(this.O.length-1,!1);y1(this,this.itemArray)};function y1(a,y){var x=wp(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++)km(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],ee=b<a.O.length?a.O.M(b):null;if(ee instanceof hi){if(ee.data!==z){var re=Ev(a,ee.data),oe=Ev(a,z),le=oe!==re;le||(re=Av(a,re),le=Av(a,oe)!==re),le?(a.pc(b,!1),km(a,z,E,!1)):ee.data=z}}else km(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,bv(a,x,0),ec(a)||a.v(),a.graduatedIntervals=null,a.If()||Dm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Ti&&(y.Te=!0),y.Te&&y instanceof Ti&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=Ev(a,y);if(E=Av(a,E),E!==null){if(Nc(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Cv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Oi),a.ge.add(y,E)),z=x+wp(a),a.Gb(z,E),b&&(E.ub=y,bv(a,z,x),E.ub=null),E.data=y}}}function bv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof hi){var E=y,z=x;b.type===hi.TableRow?b.row=E:b.type===hi.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Ev(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=As(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;ct("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Av(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(S1||(S1=!0,_n('No item template Panel found for category "'+y+'" on '+a),_n(" Using default item template."),a=new hi,y=new ba,y.bind(new Fs("text","",ji)),a.add(y),x1=a),b=x1)),b}function Dm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof hi){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof hi&&!z.isEnabled||Dm(a,z,x)}}}function yd(a,y){y.name=a,Zc.add(a,y)}ze.Object.defineProperties(hi.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===hi.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&&Un(a,">= 0",hi,"padding"),a=new Hi(a)):(0>a.left&&Un(a.left,">= 0",hi,"padding:value.left"),0>a.right&&Un(a.right,">= 0",hi,"padding:value.right"),0>a.top&&Un(a.top,">= 0",hi,"padding:value.top"),0>a.bottom&&Un(a.bottom,">= 0",hi,"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:Ds},set:function(a){typeof a=="number"&&(a=new Hi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new gc),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 ra)&&(a instanceof ra&&a.freeze(),this.T===null&&(this.T=new gc),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 gc),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)||ct("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 gc),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 ra)&&(a instanceof ra&&a.freeze(),this.T===null&&(this.T=new gc),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 gc),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)||ct("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 gc),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 gc),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||ct("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Ec(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()||ct("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Ec(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 th),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Fl(this)&&(a=this.part,a!==null&&Ma(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 th),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Fl(this)&&(a=this.part,a!==null&&Ma(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 th),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 th),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 th,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 th,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 th,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 th,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 gc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new gc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Om},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new gc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Om},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new gc),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)&&ct("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gc),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)&&ct("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gc),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 dr&&!(this instanceof Uo);Nc(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof mi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof dr&&(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 qf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Lx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&hy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&dy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||y1(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 Oi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof dr||a.isPanelMain)&&ct("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(););uo(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&&(uo(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Qr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Dm(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))}}}),ze.Object.defineProperties(hi,{Position:{get:function(){return Zc.I("Position")}},Horizontal:{get:function(){return Zc.I("Horizontal")}},Vertical:{get:function(){return Zc.I("Vertical")}},Spot:{get:function(){return Zc.I("Spot")}},Auto:{get:function(){return Zc.I("Auto")}},Table:{get:function(){return Zc.I("Table")}},Viewbox:{get:function(){return Zc.I("Viewbox")}},TableRow:{get:function(){return Zc.I("TableRow")}},TableColumn:{get:function(){return Zc.I("TableColumn")}},Link:{get:function(){return Zc.I("Link")}},Grid:{get:function(){return Zc.I("Grid")}},Graduated:{get:function(){return Zc.I("Graduated")}}}),hi.prototype.rebuildItemElements=hi.prototype.mv,hi.prototype.findItemPanelForData=hi.prototype.sx,hi.prototype.updateTargetBindings=hi.prototype.La,hi.prototype.copyTemplate=hi.prototype.Uy,hi.prototype.graduatedValueForPoint=hi.prototype.Gz,hi.prototype.graduatedPointForValue=hi.prototype.Fz,hi.prototype.findColumnForLocalX=hi.prototype.fz,hi.prototype.findRowForLocalY=hi.prototype.nz,hi.prototype.addColumnDefinition=hi.prototype.By,hi.prototype.addRowDefinition=hi.prototype.Hy,hi.prototype.addRowColumnDefinition=hi.prototype.Gy,hi.prototype.removeColumnDefinition=hi.prototype.jA,hi.prototype.getColumnDefinition=hi.prototype.Eb,hi.prototype.removeRowDefinition=hi.prototype.oA,hi.prototype.getRowDefinition=hi.prototype.Fb,hi.prototype.removeAt=hi.prototype.mb,hi.prototype.remove=hi.prototype.remove,hi.prototype.insertAt=hi.prototype.Gb,hi.prototype.elt=hi.prototype.M,hi.prototype.add=hi.prototype.add,hi.prototype.findObject=hi.prototype.fb,hi.prototype.findInVisualTree=hi.prototype.Nl,hi.prototype.walkVisualTreeFrom=hi.prototype.qm,hi.prototype.findMainElement=hi.prototype.Pb;var S1=!1,x1=null,Zc=new Oi;hi.className="Panel",hi.definePanelLayout=yd,yd("Position",new Sm),yd("Vertical",new wm),yd("Auto",new Cm),yd("Link",new Fm);function th(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}th.prototype.copy=function(){var a=new th;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},th.className="GradPanelSettings";function gc(){this.Pc=[],this.Oc=[],this.j=this.ob=Om,this.hb=this.Hb=0,this.Qp=Ds,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}gc.prototype.copy=function(a){for(var y=new gc,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),E[z]=ee}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),E[z]=ee);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},gc.className="TablePanelSettings";function Hs(a){fr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Jo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Lv,this.hg=_r,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))}Hs.prototype.copy=function(){var a=new Hs;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=wi(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Bm(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=wi(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ae=Hs.prototype,Ae.qb=function(a){a.classType===Hs&&(this.sizing=a)},Ae.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Cr(this)},Ae.wi=function(a){this.Me=a},Ae.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)},Ae.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===hi.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var ee=b?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.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)},Ae.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(ui,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 Tm(a){if(a.sizing===Lv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ae.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Fs(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&v1(y)&&ct("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Dn),this.be.add(E),this},ze.Object.defineProperties(Hs.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&&Un(a,">= 0",Hs,"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&&Un(a,">= 0",Hs,"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))&&Un(a,">= 0",Hs,"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&&Un(a,">= 0",Hs,"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 Hi(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&&tg(a,"RowColumnDefinition.separatorStroke"),a instanceof ra&&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)||ct("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&&tg(a,"RowColumnDefinition.background"),a instanceof ra&&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}}}),Hs.prototype.computeEffectiveSpacing=Hs.prototype.Wc,Hs.prototype.computeEffectiveSpacingTop=Hs.prototype.Io;var Lv=new Cn(Hs,"Default",0),Pp=new Cn(Hs,"None",1),Om=new Cn(Hs,"ProportionalExtra",2);Hs.className="RowColumnDefinition",Hs.Default=Lv,Hs.None=Pp,Hs.ProportionalExtra=Om;function io(a,y){Gt.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)}wt(io,Gt),io.prototype.cloneProtected=function(a){Gt.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=wi(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 Ff(a){a.Na===null?a.Na=new Nv:a.Na.nc&&(a.Na=a.Na.copy())}Ae=io.prototype,Ae.th=function(){Gt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ae.qb=function(a){a===ii||a===er||a===Eo||a===_r?this.geometryStretch=a:Gt.prototype.qb.call(this,a)},Ae.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Cr(this)};function kg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],le,ue,fe,xe,be,Le,Te=0,at=ci(),Ue=2;Ue<E;Ue+=2)le=x[Ue],ue=x[Ue+1],fe=le-re,re=ue-oe,fe===0&&(fe=.001),xe=re/fe,be=Math.atan2(re,fe),Le=Math.sqrt(fe*fe+re*re),at.push([fe,be,xe,Le]),Te+=Le,re=le,oe=ue;re=x[0],oe=x[1],fe=b.measuredBounds.width,b instanceof io&&(fe-=b.strokeWidth),1>fe&&(fe=1),E=x=fe,le=ee/2,ue=le!==0,Ue=0,Le=at[Ue],fe=Le[0],be=Le[1],xe=Le[2],Le=Le[3];for(var vt=0;.1<=Te;){if(vt===0&&(ue?(E=x,E-=le,Te-=le,ue=!1):E=x,E===0&&(E=1)),E>Te){Pi(at);return}E>Le?(vt=E-Le,E=Le):vt=0;var St=Math.sqrt(E*E/(1+xe*xe));if(0>fe&&(St=-St),re+=St,oe+=xe*St,a.translate(re,oe),a.rotate(be),a.translate(-(ee/2),-(z/2)),vt===0&&b.hh(a,y),a.translate(ee/2,z/2),a.rotate(-be),a.translate(-re,-oe),Te-=E,Le-=E,vt!==0){if(Ue++,Ue===at.length){Pi(at);return}Le=at[Ue],fe=Le[0],be=Le[1],xe=Le[2],Le=Le[3],E=vt}}Pi(at)}}Ae.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,ee=this.naturalBounds;b!==null&&cs(this,a,b,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===hi.Link&&re instanceof Uo&&re.category==="Selection"&&re.adornedObject instanceof io&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(cs(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||b!==null&&b!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),E.type===gi.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===gi.u){var le=E.startX;oe=E.startY;var ue=E.endX,fe=E.endY;E=Math.min(le,ue);var xe=Math.min(oe,fe);le=Math.abs(ue-le),oe=Math.abs(fe-oe),a.beginPath(),a.rect(E,xe,le,oe),b!==null&&a.ng(b),x!==null&&(re&&z&&Md(a),a.jk(),re&&z&&_d(a)),a.Se()}else if(E.type===gi.F)le=E.startX,oe=E.startY,ue=E.endX,fe=E.endY,E=Math.abs(ue-le)/2,xe=Math.abs(fe-oe)/2,le=Math.min(le,ue)+E,oe=Math.min(oe,fe)+xe,a.beginPath(),a.moveTo(le,oe-xe),a.bezierCurveTo(le+Vt.wg*E,oe-xe,le+E,oe-Vt.wg*xe,le+E,oe),a.bezierCurveTo(le+E,oe+Vt.wg*xe,le+Vt.wg*E,oe+xe,le,oe+xe),a.bezierCurveTo(le-Vt.wg*E,oe+xe,le-E,oe+Vt.wg*xe,le-E,oe),a.bezierCurveTo(le-E,oe-Vt.wg*xe,le-Vt.wg*E,oe-xe,le,oe-xe),a.closePath(),b!==null&&a.ng(b),x!==null&&(re&&z&&Md(a),a.jk(),re&&z&&_d(a)),a.Se();else if(E.type===gi.o)for(E=E.figures,oe=E.length,xe=0;xe<oe;xe++){le=E.s[xe],a.beginPath(),a.moveTo(le.startX,le.startY),ue=le.segments.s,fe=ue.length;for(var be=null,Le=0;Le<fe;Le++){var Te=ue[Le];switch(Te.type){case ws:a.moveTo(Te.endX,Te.endY);break;case va:a.lineTo(Te.endX,Te.endY);break;case ol:a.bezierCurveTo(Te.point1X,Te.point1Y,Te.point2X,Te.point2Y,Te.endX,Te.endY);break;case je:a.quadraticCurveTo(Te.point1X,Te.point1Y,Te.endX,Te.endY);break;case nt:if(Te.radiusX===Te.radiusY){var at=Math.PI/180;a.arc(Te.point1X,Te.point1Y,Te.radiusX,Te.startAngle*at,(Te.startAngle+Te.sweepAngle)*at,0>Te.sweepAngle,be!==null?be.endX:le.startX,be!==null?be.endY:le.startY)}else if(be=wl(Te,le),at=be.length,at===0)a.lineTo(Te.centerX,Te.centerY);else for(var Ue=0;Ue<at;Ue++){var vt=be[Ue];Ue===0&&a.lineTo(vt[0],vt[1]),a.bezierCurveTo(vt[2],vt[3],vt[4],vt[5],vt[6],vt[7])}break;case ut:if(Ue=at=0,be!==null&&be.type===nt){if(be=wl(be,le),vt=be.length,vt===0){a.lineTo(Te.endX,Te.endY);break}be=be[vt-1]||null,be!==null&&(at=be[6],Ue=be[7])}else at=be!==null?be.endX:le.startX,Ue=be!==null?be.endY:le.startY;if(be=Il(Te,le,at,Ue),at=be.length,at===0){a.lineTo(Te.endX,Te.endY);break}for(Ue=0;Ue<at;Ue++)vt=be[Ue],a.bezierCurveTo(vt[2],vt[3],vt[4],vt[5],vt[6],vt[7]);break;default:ct("Segment not of valid type: "+Te.type)}Te.isClosed&&a.closePath(),be=Te}ue=le.isFilled,z?le.isShadowed?(ue===!0&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&(ue&&re&&Md(a),a.jk(),ue&&re&&_d(a))):(Md(a),ue&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk(),_d(a)):(ue&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk()),a.Se(xe)}if(ee&&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=ci(),z.type===gi.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),kg(a,y,b,x);else if(z.type===gi.o)for(z=z.figures.iterator;z.next();){for(re=z.value,b.length=0,b.push(re.startX),b.push(re.startY),ee=re.startX,E=re.startY,oe=ee,xe=E,le=re.segments.s,ue=le.length,fe=0;fe<ue;fe++){switch(Le=le[fe],Le.type){case ws:kg(a,y,b,x),b.length=0,b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY,oe=ee,xe=E;break;case va:b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY;break;case ol:Vt.Qe(ee,E,Le.point1X,Le.point1Y,Le.point2X,Le.point2Y,Le.endX,Le.endY,.5,b),ee=Le.endX,E=Le.endY;break;case je:Vt.ep(ee,E,Le.point1X,Le.point1Y,Le.endX,Le.endY,.5,b),ee=Le.endX,E=Le.endY;break;case nt:if(Te=wl(Le,re),be=Te.length,be===0){b.push(Le.centerX),b.push(Le.centerY),ee=Le.centerX,E=Le.centerY;break}for(at=0;at<be;at++)Ue=Te[at],Vt.Qe(ee,E,Ue[2],Ue[3],Ue[4],Ue[5],Ue[6],Ue[7],.5,b),ee=Ue[6],E=Ue[7];break;case ut:if(Te=Il(Le,re,ee,E),be=Te.length,be===0){b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY;break}for(at=0;at<be;at++)Ue=Te[at],Vt.Qe(ee,E,Ue[2],Ue[3],Ue[4],Ue[5],Ue[6],Ue[7],.5,b),ee=Ue[6],E=Ue[7];break;default:ct("Segment not of valid type: "+Le.type)}Le.isClosed&&(b.push(oe),b.push(xe),kg(a,y,b,x))}kg(a,y,b,x)}else if(z.type===gi.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),kg(a,y,b,x);else if(z.type===gi.F){if(E=new Ts,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,ee=new Io(nt),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,E.add(ee),z=wl(ee,E),re=z.length,re===0)b.push(ee.centerX),b.push(ee.centerY);else for(ee=E.startX,E=E.startY,oe=0;oe<re;oe++)xe=z[oe],Vt.Qe(ee,E,xe[2],xe[3],xe[4],xe[5],xe[6],xe[7],.5,b),ee=xe[6],E=xe[7];kg(a,y,b,x)}Pi(b),a.restore(),a.Vc(!1)}}}},Ae.kk=function(a,y,x){return!Gt.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)},Ae.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Gt.prototype.nk.call(this,a)},Ae.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)}},Ae.ga=function(a,y){if(y===void 0&&(y=new _e),a instanceof Gi){a.Mc()&&ct("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},Ae.mi=function(a){a===void 0&&(a=new Sn);var y=this.naturalBounds,x=this.oe;y=Sn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=_e.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Ao(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Ao(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Ao(a,b.x,b.y,0,0),Sn.free(y),_e.free(b),a},Ae.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!==gi.j||y||(E+=2);var z=Sn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return Sn.free(z),!1;if(b=E+1e-4,x.type===gi.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:(Sn.free(z),Vt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===gi.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return Sn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),Sn.free(z),a}if(x.type===gi.F){ee=x.startX,E=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(E,oe),ee=Math.abs(re-ee)/2,E=Math.abs(oe-E)/2,x=a.x-(x+ee),y=a.y-(y+E),this.fill===null){if(ee-=b,E-=b,0>=ee||0>=E||1>=x*x/(ee*ee)+y*y/(E*E))return Sn.free(z),!1;ee+=b,E+=b}return this.stroke!==null&&(ee+=b,E+=b),Sn.free(z),0>=ee||0>=E?!1:1>=x*x/(ee*ee)+y*y/(E*E)}if(x.type===gi.o)return Sn.free(z),this.fill===null?jl(x,a.x,a.y,E):_l(x,a,E,1<this.strokeWidth,y);ct("Unknown Geometry type: "+x.type)},Ae.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 ee=this.geometry.bounds;else{var re=this.figure,oe=Fv[re];if(oe===void 0){var le=Vt.Ze[re];typeof le=="string"&&(le=Vt.Ze[le]),typeof le=="function"?(oe=le(null,100,100),Fv[re]=oe):ct("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,le=ee.width;var ue=ee.height;switch(wu(this,!0)){case ii:b=x=0;break;case li:le=Math.max(a-z,0),ue=Math.max(y-z,0);break;case or:le=Math.max(a-z,0),b=0;break;case Ar:x=0,ue=Math.max(y-z,0)}isFinite(E.width)&&(le=E.width),isFinite(E.height)&&(ue=E.height);var fe=this.maxSize,xe=this.minSize;switch(x=Math.max(x-z,xe.width),b=Math.max(b-z,xe.height),le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=isFinite(le)?Math.max(x,le):Math.max(re,x),ue=isFinite(ue)?Math.max(b,ue):Math.max(oe,b),x=Mv(this),x){case ii:break;case li:re=le,oe=ue;break;case er:x=Math.min(le/re,ue/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:ct(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,b=re/ee.width,ee=oe/ee.height,isFinite(b)||(b=1),isFinite(ee)||(ee=1),this.ua=b===1&&ee===1?x:x.copy().scale(b,ee)):this.ua!==null&&Vt.$(this.ua.Sk,a-z)&&Vt.$(this.ua.Rk,y-z)||(this.ua=io.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),le+z,ue+z),E.w()?(le=E.width,ue=E.height,le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=Math.max(xe.width,le),ue=Math.max(xe.height,ue),this.dc.h(0,0,le,ue)):this.dc.assign(ee)};function Mv(a){var y=a.geometryStretch;return a.Rd!==null?y===_r?li:y:y===_r?Fv[a.figure].defaultStretch:y}Ae.eh=function(a,y,x,b){Ul(this,a,y,x,b)},Ae.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ae.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),xe=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*le+fe,ee=a*oe+y*ue+xe,re=x*re+b*le+fe,oe=x*oe+b*ue+xe,fe=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var be=le.bounds;if(ue=!1,le.type===gi.j)if(1.5>=this.strokeWidth)ue=Vt.Ve(le.startX,le.startY,le.endX,le.endY,z,ee,re,oe,E);else{if(le.startX===le.endX?(b=fe,ue=0):(y=(le.endY-le.startY)/(le.endX-le.startX),ue=fe/Math.sqrt(1+y*y),b=ue*y),y=ci(),a=new _e,Vt.Ve(le.startX+b,le.startY+ue,le.endX+b,le.endY+ue,z,ee,re,oe,a)&&y.push(a),a=new _e,Vt.Ve(le.startX-b,le.startY-ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),a=new _e,Vt.Ve(le.startX+b,le.startY+ue,le.startX-b,le.startY-ue,z,ee,re,oe,a)&&y.push(a),a=new _e,Vt.Ve(le.endX+b,le.endY+ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return Pi(y),!1;for(ue=!0,oe=1/0,b=0;b<re;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,E.x=a.x,E.y=a.y);Pi(y)}else if(le.type===gi.u)ue=Vt.Ff(be.x-fe,be.y-fe,be.x+be.width+fe,be.y+be.height+fe,z,ee,re,oe,E);else if(le.type===gi.F){y=Sn.allocAt(be.x,be.y,be.width,be.height).Bc(fe,fe);e:if(y.width===0)ue=Vt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,E);else if(y.height===0)ue=Vt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,E);else{if(a=y.width/2,le=y.height/2,b=y.x+a,ue=y.y+le,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-ue-x*(z-b),0>a*a*x*x+le*le-oe*oe){E.x=NaN,E.y=NaN,ue=!1;break e}fe=Math.sqrt(a*a*x*x+le*le-oe*oe),re=(-(a*a*x*oe)+a*le*fe)/(le*le+a*a*x*x)+b,a=(-(a*a*x*oe)-a*le*fe)/(le*le+a*a*x*x)+b,le=x*(re-b)+oe+ue,oe=x*(a-b)+oe+ue,Math.abs((z-re)*(z-re))+Math.abs((ee-le)*(ee-le))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(E.x=re,E.y=le):(E.x=a,E.y=oe)}else{if(re=le*le,oe=z-b,re-=re/(a*a)*oe*oe,0>re){E.x=NaN,E.y=NaN,ue=!1;break e}oe=Math.sqrt(re),re=ue+oe,oe=ue-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(E.x=z,E.y=re):(E.x=z,E.y=oe)}ue=!0}Sn.free(y)}else if(le.type===gi.o){xe=_e.alloc();var Le=re-z,Te=oe-ee,at=Le*Le+Te*Te,Ue=z,vt=ee;if(0<at&&be.contains(Ue,vt)&&(xe.x=Ue,xe.y=vt,this.ca(xe)))for(Le!==0&&.5>Math.abs(Le)?(Te*=.5/Le,Le=.5):Te!==0&&.5>Math.abs(Te)&&(Le*=.5/Te,Te=.5),Ue-=Le,vt-=Te;be.contains(Ue,vt);)Ue-=Le,vt-=Te;for(E.x=re,E.y=oe,Te=0;Te<le.figures.count;Te++){var St=le.figures.s[Te],Ft=St.isFilled?Ue:z,Kt=St.isFilled?vt:ee,pn=St.segments;be=St.startX,Le=St.startY;for(var ki=be,Ji=Le,Ri=0;Ri<pn.count;Ri++){var pi=pn.s[Ri],ni=pi.type,Xr=pi.endX,Rr=pi.endY,Qo=!1;switch(ni){case ws:ki=Xr,Ji=Rr;break;case va:Qo=Rm(be,Le,Xr,Rr,Ft,Kt,re,oe,xe);break;case ol:Qo=Vt.Eo(be,Le,pi.point1X,pi.point1Y,pi.point2X,pi.point2Y,Xr,Rr,Ft,Kt,re,oe,.6,xe);break;case je:Qo=Vt.Eo(be,Le,be+2/3*(pi.point1X-be),Le+2/3*(pi.point1Y-Le),Xr+2/3*(pi.point1X-Xr),Rr+2/3*(pi.point1Y-Rr),Xr,Rr,Ft,Kt,re,oe,.6,xe);break;case nt:case ut:ni=pi.type===nt?wl(pi,St):Il(pi,St,be,Le);var Pa=ni.length;if(Pa===0){Qo=Rm(be,Le,pi.type===nt?pi.centerX:pi.endX,pi.type===nt?pi.centerY:pi.endY,Ft,Kt,re,oe,xe);break}for(Rr=null,Xr=0;Xr<Pa;Xr++){if(Rr=ni[Xr],Xr===0&&Rm(be,Le,Rr[0],Rr[1],Ft,Kt,re,oe,xe)){var qs=Im(Ft,Kt,xe,at,E);qs<at&&(at=qs,ue=!0)}Vt.Eo(Rr[0],Rr[1],Rr[2],Rr[3],Rr[4],Rr[5],Rr[6],Rr[7],Ft,Kt,re,oe,.6,xe)&&(qs=Im(Ft,Kt,xe,at,E),qs<at&&(at=qs,ue=!0))}Xr=Rr[6],Rr=Rr[7];break;default:ct("Unknown Segment type: "+ni)}be=Xr,Le=Rr,Qo&&(Qo=Im(Ft,Kt,xe,at,E),Qo<at&&(at=Qo,ue=!0)),pi.isClosed&&(Xr=ki,Rr=Ji,Rm(be,Le,Xr,Rr,Ft,Kt,re,oe,xe)&&(pi=Im(Ft,Kt,xe,at,E),pi<at&&(at=pi,ue=!0)))}}z=x-a,ee=b-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),E.x-=z*fe,E.y-=ee*fe,_e.free(xe)}else ct("Unknown Geometry type: "+le.type);return ue?(this.transform.Ga(E),!0):!1};function Im(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 Rm(a,y,x,b,E,z,ee,re,oe){if(Vt.$(a,x)&&Vt.$(y,b)||Vt.$(E,ee)&&Vt.$(z,re))return!1;var le=!1,ue=(E-ee)*(y-b)-(z-re)*(a-x);return ue===0?!1:(oe.x=((E*re-z*ee)*(a-x)-(E-ee)*(a*b-y*x))/ue,oe.y=((E*re-z*ee)*(y-b)-(z-re)*(a*b-y*x))/ue,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(oe.y>a||Vt.$(oe.y,a))&&(oe.y<y||Vt.$(oe.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||Vt.$(oe.x,y))&&(oe.x<a||Vt.$(oe.x,a))&&(le=!0)),le)}Ae.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=_e.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)))),_e.free(z),E},Ae.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=jr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var ee=_e.alloc();if(ee.h(b,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(E,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0)))return _e.free(ee),!0;var re=_e.alloc(),oe=_e.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=E,re.y=z,re.transform(x),ee.x=b,ee.y=z,ee.transform(x),y=!1,Nf(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=a,ee.transform(x),Nf(this,ee,re,oe)?y=!0:(re.x=b,re.y=a,re.transform(x),Nf(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=z,ee.transform(x),Nf(this,ee,re,oe)&&(y=!0)))),_e.free(ee),jr.free(x),_e.free(re),_e.free(oe),y};function Nf(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)}Ae.tx=function(a,y,x){function b(at,Ue){for(var vt=at.length,St=0;St<vt;St+=2)if(Ue.zd(at[St],at[St+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 ee=y.bounds,re=ee.x,oe=ee.y,le=ee.x+ee.width;if(ee=ee.y+ee.height,vr(a.x,a.y,re,oe)<=E&&vr(a.x,a.y,le,oe)<=E&&vr(a.x,a.y,re,ee)<=E&&vr(a.x,a.y,le,ee)<=E)return!0}if(re=y.startX,oe=y.startY,le=y.endX,ee=y.endY,y.type===gi.j){if(x=(re-le)*(a.x-le)+(oe-ee)*(a.y-ee),Ei(a.x,a.y,re,oe,le,ee)<=(0<=(le-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?E:z))return!0}else{if(y.type===gi.u)return y=!1,x&&(y=Ei(a.x,a.y,re,oe,re,ee)<=E||Ei(a.x,a.y,re,oe,le,oe)<=E||Ei(a.x,a.y,le,oe,le,ee)<=E||Ei(a.x,a.y,re,ee,le,ee)<=E),y;if(y.type===gi.F){y=a.x-(re+le)/2,z=a.y-(oe+ee)/2;var ue=Math.abs(le-re)/2,fe=Math.abs(ee-oe)/2;if(ue===0||fe===0)return Ei(a.x,a.y,re,oe,le,ee)<=E;if(x){if(a=Vt.$y(ue,fe,y,z),a*a<=E)return!0}else return!(vr(y,z,-ue,0)>=E||vr(y,z,0,-fe)>=E||vr(y,z,0,fe)>=E||vr(y,z,ue,0)>=E)}else if(y.type===gi.o){if(le=y.bounds,z=le.x,re=le.y,oe=le.x+le.width,le=le.y+le.height,a.x>oe&&a.x<z&&a.y>le&&a.y<re&&Ei(a.x,a.y,z,re,z,le)>E&&Ei(a.x,a.y,z,re,oe,re)>E&&Ei(a.x,a.y,oe,le,z,le)>E&&Ei(a.x,a.y,oe,le,oe,re)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?jl(y,a.x,a.y,z):_l(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,ue=z.startY,a.zd(ee,ue)>E)return!1;for(re=z.segments.s,oe=re.length,le=0;le<oe;le++)switch(fe=re[le],fe.type){case ws:case va:if(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E)return!1;break;case ol:var xe=ci();if(Vt.Qe(ee,ue,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,xe),ee=b(xe,a),Pi(xe),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case je:if(xe=ci(),Vt.ep(ee,ue,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,xe),ee=b(xe,a),Pi(xe),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case nt:case ut:xe=fe.type===nt?wl(fe,z):Il(fe,z,ee,ue);var be=xe.length;if(be===0){if(ee=fe.type===nt?fe.centerX:fe.endX,ue=fe.type===nt?fe.centerY:fe.endY,a.zd(ee,ue)>E)return!1;break}fe=null;for(var Le=ci(),Te=0;Te<be;Te++)if(fe=xe[Te],Le.length=0,Vt.Qe(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.8,Le),b(Le,a))return Pi(Le),!1;Pi(Le),fe!==null&&(ee=fe[6],ue=fe[7]);break;default:ct("Unknown Segment type: "+fe.type)}}return!0}}}return!1},Ae.qc=function(){this.ua=null},Ae.kq=function(){return this.ig};function w1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=kp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ls):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Gi(1-Ls.x,Ls.y)))}io.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Nd[a.toArrow];else a.fromArrow!=="None"?b=Nd[a.fromArrow]:(b=Vt.Ze[a.figure],typeof b=="string"&&(b=Vt.Ze[b]),b===void 0&&ct("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Vt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function P1(a){var y=Nd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Nd[x],y===void 0){var b=null,E;for(E in Vt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=gi.parse(Vt.um[b],!1),Nd[b]=a,x!==b&&(Nd[x]=b),b}}return typeof y=="string"?y:y instanceof gi?a:null}ze.Object.defineProperties(io.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),Fl(this)&&(a=this.part,a!==null&&Ma(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=gi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=_e.allocAt(-y.x,-y.y),_e.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&&tg(a,"Shape.fill"),a instanceof ra&&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&&tg(a,"Shape.stroke"),a instanceof ra&&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 Un(a,"value >= 0",io,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Un(a,'"butt", "round", or "square"',io,"strokeCap"):(Ff(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"?Un(a,'"miter", "bevel", or "round"',io,"strokeJoin"):(Ff(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){Ff(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)||ct("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&&(Ff(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=Vt.Ze[a];typeof x=="function"?x=a:(x=Vt.Ze[a.toLowerCase()])||ct("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=P1(a);x===null?ct("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),w1(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=P1(a);x===null?ct("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),w1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Jo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Ff(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Jo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Ff(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&&(Ff(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:_r},set:function(a){var y=this.geometryStretch;y!==a&&(Ff(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 kd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Ec(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 kd),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 kd),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 kd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),io.prototype.intersectsRect=io.prototype.Yc,io.prototype.containedInRect=io.prototype.fh,io.prototype.getNearestIntersectionPoint=io.prototype.rs,io.prototype.getDocumentBounds=io.prototype.mi,io.prototype.getDocumentPoint=io.prototype.ga;var Nd=new ir,Fv=new ir;io.className="Shape",io.getFigureGenerators=function(){var a=new Oi,y;for(y in Vt.Ze)y!==y.toLowerCase()&&a.add(y,Vt.Ze[y]);return a.freeze(),a},io.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Vt.Ze;b[a]=y,b[x]=a},io.getArrowheadGeometries=function(){var a=new Oi;for(b in Vt.um)if(Nd[b]===void 0){var y=gi.parse(Vt.um[b],!1);Nd[b]=y,y=b.toLowerCase(),y!==b&&(Nd[y]=b)}for(var x in Nd)if(x!==x.toLowerCase()){var b=Nd[x];b instanceof gi&&a.add(x,b)}return a.freeze(),a},io.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=gi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||ct("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Nd;b[a]=x,b[y]=a};function Nv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=_r,this.gg=this.fg=Jo}Nv.prototype.copy=function(){var a=new Nv;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 ba(a,y){return Gt.call(this),Zm||(Pu=us?new Fc(null).context:null,Zm=!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}wt(ba,Gt),ba.prototype.cloneProtected=function(a){Gt.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 Sd(a){a.da===null?a.da=new Rv:a.da.nc&&(a.da=a.da.copy())}Ae=ba.prototype,Ae.th=function(){Gt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function C1(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}Ae.qb=function(a){a.classType===ba?this.wrap=a:Gt.prototype.qb.call(this,a)},Ae.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ae.v=function(){Gt.prototype.v.call(this)},Ae.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,ee=bp(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var le=this.isStrikethrough;cs(this,a,this.xc,!0,!1,x,b),(oe||le)&&cs(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ue=this.oe,fe=ue.dx-(ee*ue.m21+ue.dx);ue=ue.dy-(ee*ue.m22+ue.dy);var xe=y.scale;switch(8>(fe*fe+ue*ue)*xe*xe&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ku&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,fe=this.spacingBelow,this.flip){case jo:a.translate(E,0),a.scale(-1,1);break;case fo:a.translate(0,z),a.scale(1,-1);break;case da:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,xe=(y+ee+fe)*ue,z>xe&&(b=this.verticalAlignment,b=b.y*z-b.y*xe+b.offsetY),ue===1&&this.ze!==null)fe=this.Cb,fe>E&&(fe=E),this.Oj(this.ze,a,0,b+y,E,ee,fe,x,re,oe,le);else if(this.Qc!==null&&this.Qb!==null)for(xe=0;xe<ue;xe++){var be=this.Qc[xe];be>E&&(be=E),b+=y,this.Oj(this.Qb[xe],a,0,b,E,ee,be,x,re,oe,le),b+=ee+fe}switch(this.flip){case jo:a.scale(-1,1),a.translate(-E,0);break;case fo:a.scale(1,-1),a.translate(0,-z);break;case da:a.scale(-1,-1),a.translate(-E,-z)}}},Ae.Oj=function(a,y,x,b,E,z,ee,re,oe,le,ue){var fe=0;if(re)oe==="left"?fe=0:oe==="right"?fe=E-ee:oe==="center"&&(fe=(E-ee)/2),y.fillRect(x+fe,b+.25*z,ee,1);else{if(oe==="left"?fe=0:oe==="right"?fe=E:oe==="center"&&(fe=E/2),E=zm!==null?zm(this,z):.75*z,y.fillText(a,x+fe,b+E),a=z/20|0,a===0&&(a=1),oe==="right"?fe-=ee:oe==="center"&&(fe-=ee/2),le){re=jm!==null?jm(this,z):.8*z,oe=x+fe,le=b+re,E=x+fe+ee,re=b+re;var xe=a;y.beginPath(),y.lineWidth=xe,y.moveTo(oe,le),y.lineTo(E,re),y.stroke(),y.Se(),y instanceof Ku&&y.ad.classList.add("gojs-td")}ue&&(ue=b+z-z/2.2|0,a%2!==0&&(ue+=.5),b=x+fe,z=ue,x=x+fe+ee,ee=ue,fe=a,y.beginPath(),y.lineWidth=fe,y.moveTo(b,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof Ku&&y.ad.classList.add("gojs-td"))}},Ae.kk=function(a,y,x){if(!Gt.prototype.kk.call(this,a,y,x))return!1;if(cs(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++)n1(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,n1(a,y,!0);return!0},Ae.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Gt.prototype.nk.call(this,a)},Ae.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)}},Ae.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Pu!==null&&N1!==z&&(N1=Pu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;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 re=ee=0,oe=!1;!oe;){var le=z.indexOf(`
`,re);le===-1&&(le=z.length,oe=!0),re=z.substr(re,le-re),this.formatting===Ep&&(re=re.trim()),ee=Math.max(ee,Kc(re)),re=le+1}z=ee}else ee=z.indexOf(`
`,0),0<=ee&&(z=z.substr(0,ee)),z=Kc(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)),ee=E1(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Hm&&(y=this.Ae,y=this.overflow===Hm?b1(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,bp(this)+le),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/le+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[oe],y=Math.max(1,a-y);Kc(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=Ap,y=Kc(le),this.Qb[oe]=le,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+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===A1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(b,ee),oa(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Ae.eh=function(a,y,x,b){Ul(this,a,y,x,b)};function Cp(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 kv(a,y,x,b){var E=a.formatting===Ep;E&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,bp(a)+re);var oe=a.overflow===Hm?b1(ee):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,re);else if(ee=y,a.wrap===Dv){a.Le=1;var le=Kc(y);if(oe===0||le<=x)a.Cb=Math.max(a.Cb,le),Cp(a,y,a.Cb),b!==null&&b.h(le,re);else{for(z=Dg(a,ee),ee=ee.substr(z.length),y=Dg(a,ee),le=Kc(z+y);0<y.length&&le<=x;)z+=y,ee=ee.substr(y.length),y=Dg(a,ee),le=z+y,E&&(le=le.trim()),le=Kc(le);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);Kc(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Ap;var ue=Kc(z);a.Cb=ue,Cp(a,z,ue),b!==null&&b.h(ue,re)}}else{for(oe=0,ee.length===0&&(oe=1,Cp(a,ee,0));0<ee.length;){for(y=Dg(a,ee),ee=ee.substr(y.length);Kc(y)>x;){var fe=1;for(le=Kc(y.substr(0,fe)),ue=0;le<=x;)fe++,ue=le,le=Kc(y.substr(0,fe));if(fe===1){var xe=le;z=Math.max(z,le)}else xe=ue,z=Math.max(z,ue);if(fe--,1>fe&&(fe=1),Cp(a,y.substr(0,fe),xe),oe++,y=y.substr(fe),a.Gc+oe>a.maxLines)break}for(ue=Dg(a,ee),le=Kc(y+ue);0<ue.length&&le<=x;)y+=ue,ee=ee.substr(ue.length),ue=Dg(a,ee),le=y+ue,E&&(le=le.trim()),le=Kc(le);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ue.length===0?(fe=le,z=Math.max(z,le)):(fe=ue=Kc(y),z=Math.max(z,ue)),Cp(a,y,fe),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,re*a.Le)}}function Dg(a,y){if(a.wrap===L1)return y.substr(0,1);for(var x=y.length,b=0,E=Mx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===M1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Kc(a){return Pu===null?8*a.length:Pu.measureText(a).width}function bp(a){if(a.df!==null)return a.df;var y=a.Ae;if(Pu===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>F1?x=Ov[y]:(x=1.3*Pu.measureText("M").width,Ov[y]=x,F1++),a.df=x}function b1(a){if(Pu===null)return 6;if(Wm[a]!==void 0&&5e3>Iv)var y=Wm[a];else y=Pu.measureText(Ap).width,Wm[a]=y,Iv++;return y}function E1(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,bp(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,ee,re=!1;!re;){if(ee=x.indexOf(`
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Dv){a.Le=0;var oe=zn.alloc();kv(a,z,y,oe),E+=oe.height,zn.free(oe),a.Gc+=a.Le}else kv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=E}ze.Object.defineProperties(ba.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"||(Sd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:ii},set:function(a){var y=this.flip;y!==a&&(Sd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Cs},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Sd(this),this.da.Yr=a,nu(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=zn.alloc();kv(this,this.ec,999999,a);var y=a.width;zn.free(a),a=E1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),oa(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:Bv},set:function(a){var y=this.wrap;y!==a&&(Sd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Tv},set:function(a){var y=this.overflow;y!==a&&(Sd(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&&tg(a,"TextBlock.stroke"),a instanceof ra&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return bp(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&&(Sd(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&&(Sd(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 kd),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 kd),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 kd),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 kd),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 kd),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&&(Sd(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&&(Sd(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&&(Sd(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&&(Sd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Ep},set:function(a){var y=this.formatting;y!==a&&(Sd(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&&Un(a,"> 0",ba,"maxLines"),Sd(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 zm=null,jm=null,Dv=new Cn(ba,"None",0),A1=new Cn(ba,"WrapFit",1),Bv=new Cn(ba,"WrapDesiredSize",2),L1=new Cn(ba,"WrapBreakAll",3),Tv=new Cn(ba,"OverflowClip",0),Hm=new Cn(ba,"OverflowEllipsis",1),Ep=new Cn(ba,"FormatTrim",0),M1=new Cn(ba,"FormatNone",0),Mx=/[ \u200b\u00ad]/,Ov=new ir,F1=0,Wm=new ir,Iv=0,Ap="...",N1="",Pu=null,Zm=!1;ba.className="TextBlock";function Rv(){this.nc=!1,this.Hd=null,this.Xf=ii,this.gq=Ep,this.Jq=1/0,this.$q=Tv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Cs,this.$r=Bv}Rv.prototype.copy=function(){var a=new Rv;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},ba.getEllipsis=function(){return Ap},ba.setEllipsis=function(a){Ap=a,Wm=new ir,Iv=0},ba.getBaseline=function(){return zm},ba.setBaseline=function(a){zm=a},ba.getUnderline=function(){return jm},ba.setUnderline=function(a){jm=a},ba.isValidFont=function(a){if(Zm||(Pu=us?new Fc(null).context:null,Zm=!0),Pu===null)return!0;var y=Pu.font;if(a===y||a==="10px sans-serif")return!0;Pu.font="10px sans-serif",Pu.font=a;var x=Pu.font;if(x!=="10px sans-serif")return Pu.font=y,!0;Pu.font="19px serif";var b=Pu.font;return Pu.font=a,x=Pu.font,Pu.font=y,x!==b},ba.FormatNone=M1,ba.FormatTrim=Ep,ba.None=Dv,ba.OverflowClip=Tv,ba.OverflowEllipsis=Hm,ba.WrapBreakAll=L1,ba.WrapDesiredSize=Bv,ba.WrapFit=A1;function kd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}kd.prototype.copy=function(){var a=new kd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},kd.className="GradElementSettings";function Cu(a,y){Gt.call(this),this.Eg=null,this.qo="",this.Xg=No,this.Nk=li,this.Zg=this.Hd=null,this.Mk=So,this.Xf=ii,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 Bg;wt(Cu,Gt),Cu.prototype.cloneProtected=function(a){Gt.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},Cu.prototype.qb=function(a){a===ii||a===er||a===Eo?this.imageStretch=a:Gt.prototype.qb.call(this,a)},Cu.prototype.toString=function(){return"Picture("+this.source+")#"+Cr(this)};function Tg(a){a===void 0&&(a=""),a!==""?Bg[a]&&(delete Bg[a],Km--):(Bg=new ir,Km=0)}function k1(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")||"",ee=E.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],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()||(js(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")||"",ee=E.Og.I(z);if(ee!==null){E=ee.length,z=ci();for(var re=0;re<E;re++)z.push(ee[re]);if(y.hn)for(re=0;re<E;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);Pi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Cu.prototype.hA=function(){if(this.source!==""){Tg(this.source);var a=this.source;this.source="",this.source=a}},Cu.prototype.redraw=function(){this.N(),this.Uc=!0},Cu.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 Lf)){var E=a instanceof Ku;b=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||b.width,re=re||b.height,oe!==0&&re!==0){var le=oe,ue=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var fe=oe,xe=re,be=this.Nk,Le=this.Mk;switch(be){case ii:if(this.sourceRect.w())break;fe>=b.width&&(z=z+Le.offsetX+(fe*Le.x-b.width*Le.x)),xe>=b.height&&(ee=ee+Le.offsetY+(xe*Le.y-b.height*Le.y)),oe=Math.min(b.width,fe),re=Math.min(b.height,xe);break;case li:fe=b.width,xe=b.height;break;case er:case Eo:be===er?(be=Math.min(b.height/xe,b.width/fe),fe*=be,xe*=be):be===Eo&&(be=Math.max(b.height/xe,b.width/fe),fe*=be,xe*=be,fe>=b.width&&(z=(z+Le.offsetX+(fe*Le.x-b.width*Le.x)/fe)*oe),xe>=b.height&&(ee=(ee+Le.offsetY+(xe*Le.y-b.height*Le.y)/xe)*re),oe*=1/(fe/b.width),re*=1/(xe/b.height),fe=b.width,xe=b.height)}be=this.Df()*y.scale;var Te=fe*be*xe*be,at=oe*re/Te,Ue=x.__goCache;be=null;var vt=Fx;if(!E){if(x.sq&&Ue!==void 0&&4<Te&&at>vt*vt)for(Ue.gi===null&&(B1(Ue,4,le,ue,x),B1(Ue,16,le,ue,x)),E=Ue.gi,le=E.length,ue=0;ue<le&&E[ue].ratio*E[ue].ratio<at;ue++)be=E[ue];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Fc(null).context;try{E.drawImage(this.Eg,0,0)}catch(St){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(St){this.vl=!0}}if(this.vl)return}}switch(E=fe<b.width?Le.offsetX+(b.width*Le.x-fe*Le.x):0,Le=xe<b.height?Le.offsetY+(b.height*Le.y-xe*Le.y):0,this.flip){case jo:a.translate(Math.min(b.width,fe),0),a.scale(-1,1);break;case fo:a.translate(0,Math.min(b.height,xe)),a.scale(1,-1);break;case da:a.translate(Math.min(b.width,fe),Math.min(b.height,xe)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ue!==void 0&&be!==null&&be.ratio!==1){a.save(),y=be.ratio;try{a.drawImage(be.source,z/y,ee/y,Math.min(be.source.width,oe/y),Math.min(be.source.height,re/y),E,Le,Math.min(b.width,fe),Math.min(b.height,xe)),a instanceof Ku&&(this.bt=[z/y,ee/y,Math.min(be.source.width,oe/y),Math.min(be.source.height,re/y),E,Le,Math.min(b.width,fe),Math.min(b.height,xe)])}catch(St){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,E,Le,Math.min(b.width,fe),Math.min(b.height,xe)),a instanceof Ku&&(this.bt=[z,ee,oe,re,E,Le,Math.min(b.width,fe),Math.min(b.height,xe)])}catch(St){this.en=!1}switch(this.flip){case jo:a.scale(-1,1),a.translate(-Math.min(b.width,fe),0);break;case fo:a.scale(1,-1),a.translate(0,-Math.min(b.height,xe));break;case da:a.scale(-1,-1),a.translate(-Math.min(b.width,fe),-Math.min(b.height,xe))}}}}},Cu.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=wu(this,!0),ee=this.Eg,re=this.qn,oe=0,le=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,le=re?+ee.height:ee.naturalHeight),isFinite(E.width)||z===li||z===or?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(E.height)||z===li||z===Ar?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=le)),b=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:le),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),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),oa(this.dc,a,y),this.Ge(0,0,a,y)},Cu.prototype.eh=function(a,y,x,b){Ul(this,a,y,x,b)},ze.Object.defineProperties(Cu.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||ct("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Gf(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Ln),b!==null&&x&&Ad(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()||(js(this,!1),this.v())):x&&k1(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=Bg;if(us){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Km&&(Tg(),x=Bg),b=Hn("img"),b.hn=!0,k1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Km++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new D1),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}}}),Cu.prototype.redraw=Cu.prototype.redraw,Cu.prototype.reloadSource=Cu.prototype.hA;var Km=0,Fx=4;Cu.className="Picture",Bg=new ir,Cu.clearCache=Tg;function D1(){this.gi=null}function B1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Fc(null),ee=z.context,re=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new T1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(E,0,0),a.gi.push(y))}D1.className="PictureCacheArray";function T1(a,y){this.source=a,this.ratio=y}T1.className="PictureCacheInstance";function Og(){this.os=new gi,this.mc=null}Og.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new gi,this.mc=null};function Ig(a,y,x,b,E,z){a.mc=new Ts,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 Nx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Og.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Io(ws);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Og.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Io(va);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function wh(a,y,x,b,E,z,ee){var re;re===void 0&&(re=!1);var oe=new Io(ol);oe.point1X=y,oe.point1Y=x,oe.point2X=b,oe.point2Y=E,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function Vm(a,y,x,b,E){var z;z===void 0&&(z=!1);var ee=new Io(je);ee.point1X=y,ee.point1Y=x,ee.endX=b,ee.endY=E,z&&ee.close(),a.mc.segments.add(ee)}Og.prototype.arcTo=function(a,y,x,b,E,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new Io(nt);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=b,re.radiusX=E,re.radiusY=z!==0?z:E,ee&&re.close(),this.mc.segments.add(re)};function kx(a,y,x,b,E,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new Io(ut,ee,re,y,x,b,E,z),oe&&y.close(),a.mc.segments.add(y)}function O1(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new Og,y.reset(a),y)}var Gm=null;Og.className="StreamGeometryContext";function Vl(a,y){var x=a.toLowerCase(),b=Vt.Ze;b[a]=y,b[x]=a}Vl("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Vt.Mf[a];return b!==void 0||(b=new gi(gi.u),b.endX=y,b.endY=x,Vt.Nf<Vt.vm&&(Vt.Mf[a]=b,Vt.Nf++)),b}),Vl("Square",function(a,y,x){a="s"+y+","+x;var b=Vt.Mf[a];return b!==void 0||(b=new gi(gi.u),b.endX=y,b.endY=x,b.defaultStretch=er,Vt.Nf<Vt.vm&&(Vt.Mf[a]=b,Vt.Nf++)),b}),Vl("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=Vt.Mf[b];if(E!==void 0)return E;var z=a*Vt.wg;return E=new gi().add(new Ts(a,0,!0).add(new Io(va,y-a,0)).add(new Io(ol,y,a,y-z,0,y,z)).add(new Io(va,y,x-a)).add(new Io(ol,y-a,x,y,x-z,y-z,x)).add(new Io(va,a,x)).add(new Io(ol,0,x-a,z,x,0,x-z)).add(new Io(va,0,a)).add(new Io(ol,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Gi(0,0,z,z),E.spot2=new Gi(1,1,-z,-z)),Vt.Nf<Vt.vm&&(Vt.Mf[b]=E,Vt.Nf++),E}),Vl("Border","RoundedRectangle"),Vl("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Vt.Mf[a];return b!==void 0||(b=new gi(gi.F),b.endX=y,b.endY=x,b.spot1=Ks,b.spot2=Bs,Vt.Nf<Vt.vm&&(Vt.Mf[a]=b,Vt.Nf++)),b}),Vl("Circle",function(a,y,x){a="c"+y+","+x;var b=Vt.Mf[a];return b!==void 0||(b=new gi(gi.F),b.endX=y,b.endY=x,b.spot1=Ks,b.spot2=Bs,b.defaultStretch=er,Vt.Nf<Vt.vm&&(Vt.Mf[a]=b,Vt.Nf++)),b}),Vl("TriangleRight",function(a,y,x){return new gi().add(new Ts(0,0).add(new Io(va,y,.5*x)).add(new Io(va,0,x).close())).pm(0,.25,.5,.75)}),Vl("TriangleDown",function(a,y,x){return new gi().add(new Ts(0,0).add(new Io(va,y,0)).add(new Io(va,.5*y,x).close())).pm(.25,0,.75,.5)}),Vl("TriangleLeft",function(a,y,x){return new gi().add(new Ts(y,x).add(new Io(va,0,.5*x)).add(new Io(va,y,0).close())).pm(.5,.25,1,.75)}),Vl("TriangleUp",function(a,y,x){return new gi().add(new Ts(y,x).add(new Io(va,0,x)).add(new Io(va,.5*y,0).close())).pm(.25,.5,.75,1)}),Vl("Triangle","TriangleUp"),Vl("Diamond",function(a,y,x){return new gi().add(new Ts(.5*y,0).add(new Io(va,0,.5*x)).add(new Io(va,.5*y,x)).add(new Io(va,y,.5*x).close())).pm(.25,.25,.75,.75)}),Vl("LineH",function(a,y,x){return a=new gi(gi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Vl("LineV",function(a,y,x){return a=new gi(gi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Vl("None","Rectangle"),Vl("BarH","Rectangle"),Vl("BarV","Rectangle"),Vl("MinusLine","LineH"),Vl("PlusLine",function(a,y,x){return new gi().add(new Ts(0,x/2,!1).add(new Io(va,y,x/2)).add(new Io(ws,y/2,0)).add(new Io(va,y/2,x)))}),Vl("XLine",function(a,y,x){return new gi().add(new Ts(0,x,!1).add(new Io(va,y,0)).add(new Io(ws,0,0)).add(new Io(va,y,x)))}),Vl("LineRight",function(a,y,x){return new gi().add(new Ts(.25*y,0,!1).add(new Io(va,.75*y,.5*x)).add(new Io(va,.25*y,x)))}),Vl("LineDown",function(a,y,x){return new gi().add(new Ts(0,.25*x,!1).add(new Io(va,.5*y,.75*x)).add(new Io(va,y,.25*x)))}),Vl("LineLeft",function(a,y,x){return new gi().add(new Ts(.75*y,0,!1).add(new Io(va,.25*y,.5*x)).add(new Io(va,.75*y,x)))}),Vl("LineUp",function(a,y,x){return new gi().add(new Ts(0,.75*x,!1).add(new Io(va,.5*y,.25*x)).add(new Io(va,y,.75*x)))}),Vt.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 zv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Zo,this.ir=null,this.jr="",this.lr=Jo,this.Gq="",this.Hq=pa,this.Pq=Bt,this.Kq=ln,this.Up=null,this.Cq=127,this.zr=jn,this.yr="gray",this.Vg=4}zv.prototype.copy=function(){var a=new zv;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 dr(a,y){a===void 0||a instanceof Us||typeof a=="string"?hi.call(this,a):(hi.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 _e(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Sn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}wt(dr,hi),dr.prototype.cloneProtected=function(a){hi.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},Ae=dr.prototype,Ae.Af=function(a){hi.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ae.toString=function(){var a=Mi(this.constructor)+"#"+Cr(this);return this.data!==null&&(a+="("+ji(this.data)+")"),a};function bu(a){a.P===null?a.P=new zv:a.P.nc&&(a.P=a.P.copy())}Ae.th=function(){hi.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ae.gk=function(a,y,x,b,E,z,ee){var re=this.diagram;re!==null&&(a===fi&&y==="elements"?E instanceof hi?Mf(E,function(oe){dy(re.partManager,oe),gh(re,oe)}):Ad(re,E):a===Ni&&y==="elements"&&(E instanceof hi?Mf(E,function(oe){hy(re.partManager,oe,re)}):Gf(re,E)),re.cb(a,y,x,b,E,z,ee))},Ae.La=function(a){if(hi.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 hi&&Mf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},dr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},dr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},dr.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 Oi),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)))}}},dr.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)}},dr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=ci();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Pi(y)}},dr.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()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Qr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Uo))break e;Nc(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=hi.Link),x.adornedObject=y)}if(x!==null){x.type===hi.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Dx(this,a),y=this.adornments;y.next();)y.value.La()}},dr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function jv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Dx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Ym(a){if(Yh(a)===!1){Wv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function I1(a){if(a.G|=2097152,Yh(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||j1(a,y,x),x=a.Ib;var b=Sn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Sn.free(b),Wv(a,!1)}}dr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new jr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},dr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=So;this.locationSpot.sb()&&(z=this.locationSpot);var ee=_e.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,b,E,z);a.rotate(this.Kb,ee.x,ee.y),_e.free(ee)}},dr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},dr.prototype.moveTo=function(a,y,x){a=_e.allocAt(a,y),this.move(a,x),_e.free(a)},dr.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())},dr.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())},dr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Oi),y.I(a)!==null)return y.I(a);var x=hi.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Ph(a,y,x,b){b===void 0&&(b=new _e),x=x.Mc()?So: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}dr.prototype.mi=function(a){return a===void 0&&(a=new Sn),a.assign(this.actualBounds)},dr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function R1(a){var y=_e.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof io?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function kf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=g1(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 ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,b-=ee/2,E-=ee/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}dr.prototype.arrange=function(){if(iu(this)===!1)I1(this);else{Ld(this,!1);var a=this.Ib,y=Sn.alloc();y.assign(a);var x=Uh(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;j1(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()||Vt.B(y.width,a.width)&&Vt.B(y.height,a.height)||0<=this.vw&&this.C(16),Sn.free(y),Wv(this,!1)}},Ae=dr.prototype,Ae.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Sn.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),Sn.free(E)}!(this.G&65536)&&a.D(y)||Z1(this,b,x),x.N(),!a.w()&&!y.w()||Zs(a,y)||(this instanceof Ti&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ae.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&z1(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 _e(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Yh(this)===!1&&iu(this)===!1&&(Ym(this),I1(this)),!0};function z1(a,y,x,b,E){y===null||a instanceof Uo||(y=y.animationManager,y.zb&&Ll(y,a,new _e(b,E),x))}Ae.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Yh(this)||iu(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)}Ym(this)},Ae.Av=function(){this.G&=-2097153,Ym(this)};function j1(a,y,x){var b=R1(a),E=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?H1(a,y,x,E,b):W1(a,y,x,E,b):z?H1(a,y,x,E,b):ee&&W1(a,y,x,E,b),a.G|=2097152,_e.free(b),a.Uk()}function H1(a,y,x,b,E){var z=y.x,ee=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 Uo||Ll(x,a,new _e(z,ee),y),b||y.x===z&&y.y===ee||a.g("position",new _e(z,ee),y.copy()))}function W1(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 Z1(a,y,x){Zv(a,!1),a instanceof Ti&&tu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Uh(a)?(wa(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ae.si=function(){return!0},Ae.Zc=function(){return!0},Ae.ph=function(){return!1},Ae.Dd=function(){return!0};function Hv(a,y,x,b){y.constructor===a.constructor||G1||(G1=!0,_n('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),_n(" Old class: "+Mi(a.constructor)+", new class: "+Mi(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,le=!1;a instanceof Ti&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,le=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=ee?a.G|524288:a.G&-524289,a instanceof Ti&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=le?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)}dr.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},dr.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},dr.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},dr.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},dr.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},dr.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},dr.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},dr.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},dr.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 Yh(a){return(a.G&32768)!==0}function Wv(a,y){a.G=y?a.G|32768:a.G&-32769}function Zv(a,y){a.G=y?a.G|65536:a.G&-65537}function Uh(a){return(a.G&131072)!==0}Ae=dr.prototype,Ae.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Um(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ae.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ae.N=function(){var a=this.diagram;a!==null&&!iu(this)&&!Yh(this)&&this.isVisible()&&this.Ib.w()&&a.N(kf(this,this.Ib))},Ae.v=function(){hi.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Ti&&this.labeledLink!==null&&nu(this.labeledLink),a.$b(!0))},Ae.Vo=function(a){a||(a=this.Ah,a!==null&&Xv(a,this))},Ae.Wo=function(a){a||(a=this.Ah,a!==null&&Jv(a,this))},Ae.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ae.oz=function(){return Kv(this,this)};function Kv(a,y){var x=y.containingGroup;return x!==null?1+Kv(a,x):y instanceof Ti&&(y=y.labeledLink,y!==null)?Kv(a,y):0}Ae.sz=function(){return K1(this,this)};function K1(a,y){var x=y.containingGroup;return x!==null||y instanceof Ti&&(x=y.labeledLink,x!==null)?K1(a,x):y}Ae.Td=function(a){return a instanceof Qr?Vv(this,this,a):!1};function Vv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Vv(a,b,x)?y instanceof Ti&&(y=y.labeledLink,y!==null)?Vv(a,y,x):!1:!0}Ae.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Qr&&Um(y,!0),y instanceof Ti){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 Ti&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Qr&&Um(y,!1),y instanceof Ti&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},dr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Ti&&this.isLinkLabel)},dr.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 Ti&&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 V1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Xh(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Uo)){if(a.add(y),y instanceof Ti){if(x&&y instanceof Qr)for(var ee=y.memberParts;ee.next();)Xh(a,ee.value,x,b,E,z);if(E!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,le=re.toNode;oe=oe===null||a.contains(oe),le=le===null||a.contains(le),(E?oe&&le:oe||le)&&Xh(a,re,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Xh(a,y.value,x,b-1,E,z)}else if(y instanceof mi)for(y=y.labelNodes;y.next();)Xh(a,y.value,x,b,E,z)}}ze.Object.defineProperties(dr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Mr: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(Ni,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(fi,"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&&(bu(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&&Zu(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 Uo?this.type!==hi.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:Bt},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),bu(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ln},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),bu(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&&(bu(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:pa},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),bu(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,iu(this)===!1&&(Ym(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)),z1(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 Uo)){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 Uo?this instanceof Uo&&(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&&(Nc(x),x=x.copy(),x!==null&&Hv(this,x,y,a))):(z!==null&&z.jm(b,a),x=mS(x.partManager,b,a),x!==null&&(Nc(x),x=x.copy(),x===null||x instanceof mi||(b=this.location.copy(),Hv(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){Hv(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&&(bu(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&&(bu(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&&(bu(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 mi?(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&&(bu(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&&(bu(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&&(bu(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:Zo},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),bu(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&&(bu(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&&(bu(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:Jo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),bu(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&&ct("Cannot make a Group a member of itself: "+this.toString()),ct("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Jv(y,this):this instanceof Qr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(a,this):this instanceof Qr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof Qr){for(x=new Ln,Xh(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Ti)for(b=b.linksConnected;b.next();)Rg(b.value)}if(this instanceof Ti){for(x=this.linksConnected;x.next();)Rg(x.value);x=this.labeledLink,x!==null&&Rg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Zu(y,-1,a))}}else ct("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&&(bu(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Ti&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(bu(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&&(bu(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:jn},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),bu(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&&(bu(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&&(bu(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),dr.prototype.invalidateLayout=dr.prototype.C,dr.prototype.findCommonContainingGroup=dr.prototype.px,dr.prototype.isMemberOf=dr.prototype.Td,dr.prototype.findTopLevelPart=dr.prototype.sz,dr.prototype.findSubGraphLevel=dr.prototype.oz,dr.prototype.ensureBounds=dr.prototype.Va,dr.prototype.getDocumentBounds=dr.prototype.mi,dr.prototype.findObject=dr.prototype.fb,dr.prototype.moveTo=dr.prototype.moveTo,dr.prototype.invalidateAdornments=dr.prototype.Wb,dr.prototype.clearAdornments=dr.prototype.Ej,dr.prototype.removeAdornment=dr.prototype.Jf,dr.prototype.addAdornment=dr.prototype.bh,dr.prototype.findAdornment=dr.prototype.Pj,dr.prototype.updateTargetBindings=dr.prototype.La;var G1=!1;dr.className="Part",dr.LayoutNone=0,dr.LayoutAdded=1,dr.LayoutRemoved=2,dr.LayoutShown=4,dr.LayoutHidden=8,dr.LayoutNodeSized=16,dr.LayoutGroupLayout=32,dr.LayoutNodeReplaced=64,dr.LayoutStandard=127,dr.LayoutAll=16777215;function Uo(a,y){a===void 0||a instanceof Us||typeof a=="string"?dr.call(this,a):(dr.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)}wt(Uo,dr),Uo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Uo.prototype.updateRelationshipsFromData=function(){},Uo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof mi&&y instanceof io){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof io&&(E.ua=a)}}},Uo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!iu(a))},Uo.prototype.Zc=function(){return!1},Uo.prototype.gk=function(a,y,x,b,E,z,ee){if(a===fi&&y==="elements"){if(E instanceof ou)this.$a===null&&(this.$a=E);else if(E instanceof hi){var re=E.Nl(function(oe){return oe instanceof ou});re instanceof ou&&this.$a===null&&(this.$a=re)}}else a===Ni&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof hi&&this.$a.rg(b)&&(this.$a=null));dr.prototype.gk.call(this,a,y,x,b,E,z,ee)},Uo.prototype.updateAdornments=function(){},Uo.prototype.Lj=function(){},ze.Object.defineProperties(Uo.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}}}),Uo.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=ys,this.er=Qm,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;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 Ti(a,y){a===void 0||a instanceof Us||typeof a=="string"?dr.call(this,a):(dr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Dn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}wt(Ti,dr),Ti.prototype.cloneProtected=function(a){dr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ae=Ti.prototype,Ae.Af=function(a){dr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ch(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ae.th=function(){dr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Y1(a,y){y!==null&&(a.af===null&&(a.af=new Ln),a.af.add(y))}function U1(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}Ae.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=U1(this,a,y,x),a!==null&&a.Sl()},Ae.gk=function(a,y,x,b,E,z,ee){a===fi&&y==="elements"?this.wc=null:a===Ni&&y==="elements"&&(this.wc=null),dr.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ae.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Vu(x.fromPort),Vu(x.toPort),x.bb())}};function X1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Vu(x.fromPort),Vu(x.toPort),x.bb())}}function Vu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Vu(y.port)}}Ae.si=function(){return!0},Ti.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Ti.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Ti.prototype.isVisible=function(){if(!dr.prototype.isVisible.call(this))return!1;var a=!0,y=vh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===vh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===zs){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Pg&&(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},Ti.prototype.Zb=function(a){dr.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)}},Ti.prototype.qx=function(){var a=new Ln,y=new Ln;return J1(this,this,a,y),y.iterator};function J1(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(ee){ee.isTreeLink?(E?ee.fromNode===y:ee.toNode===y)&&J1(a,E?ee.toNode:ee.fromNode,x,b):b.add(ee)})}}Ti.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ui(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Ae=Ti.prototype,Ae.Mo=function(a){a===void 0&&(a=null);var y=new Ui(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Ae.Sd=function(a){a===void 0&&(a=null);var y=new Ui(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Ae.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 Ln,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 Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Di(x):Mr},Ae.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 Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Di(x):Mr},Ae.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 Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Di(x):Mr},Ae.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Ui(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},Ae.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Ui(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 Xm(a,y,x){Vu(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,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,y,x),ee!==null&&(ee.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 Jm(a,y,x){Vu(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 ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=ee)}}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)):Lp(y)))}function Lp(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}}}Ti.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ae=Ti.prototype,Ae.Vo=function(a){dr.prototype.Vo.call(this,a),a||(Lp(this),a=this.Yk,a!==null&&rS(a,this))},Ae.Wo=function(a){dr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ae.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,dr.prototype.Lj.call(this)},Ae.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Q1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Q1(a){a.wc===null?a.wc=new Oi:a.wc.clear(),a.qm(a,function(y,x){_1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function _1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Yv(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=ci()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Pi(x)}}}Ae.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},Ae.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}},Ae.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Um(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;)Um(y,!1),y=y.pg();return x},Ae.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},Ae.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Ti)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},Ae.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 Ln;return a(this,y),y},Ae.uz=function(){return $1(this,this)};function $1(a,y){return y=y.pg(),y===null?0:1+$1(a,y)}Ae.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Ui(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},Ae.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 Dn,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 Dn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Di(x):Mr},Ae.wz=function(a){a===void 0&&(a=1/0);var y=new Ln;return Xh(y,this,!1,a,!0),y},Ti.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 Ln;x.add(this),q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===vh),y.Ue=!1}};function q1(a,y,x,b,E,z,ee){if(1<b)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),q1(oe,y,x,b-1,E,z,ee)))}else eS(a,y,x,E,z,ee)}function eS(a,y,x,b,E,z){for(var ee=E===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var le=re.value;if(le.isTreeLink&&(le=le.To(a),le!==null&&le!==a)){var ue=y.contains(le);if(ue||y.add(le),ee){var fe=x?le.Oo():le.Po();oe.uv=a,fe.all(function(xe){return function(be){return be===xe.uv||!be.isTreeExpanded}}(oe))&&b.Aj(le,E),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,ue||eS(le,y,x,b,E,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}Ti.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 Ln;x.add(this),tS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===vh),y.Ue=!1}};function tS(a,y,x,b,E,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),le={};oe.next();){var ue=oe.value;if(ue.isTreeLink&&(re||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!re){ue.Zb(!0),ue.oh();var fe=x?ue.Oo():ue.Po();le.vv=a,fe.all(function(xe){return function(be){return be===xe.vv||!be.isTreeExpanded}}(le))&&E.Cj(ue,z)}(2<b||ue.wasTreeExpanded)&&(ue.wasTreeExpanded=!1,tS(ue,y,x,b-1,E,z,ee))}le={vv:le.vv}}a.isTreeExpanded=!0}ze.Object.defineProperties(Ti.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Qm},set:function(a){var y=this.portSpreading;y!==a&&(Ch(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&&tu(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:ys},set:function(a){typeof a=="number"&&(a=new Hi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ch(this),this.Ba.yp=a;var x=this.diagram;x!==null&&tu(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&&(Ch(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&&(Ch(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&&(Ch(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 ee=z.wa(b);ee!==void 0&&z.Qx(E,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(rS(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),nu(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Q1(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&&(Ch(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))}}}),Ti.prototype.expandTree=Ti.prototype.expandTree,Ti.prototype.collapseTree=Ti.prototype.collapseTree,Ti.prototype.findTreeParts=Ti.prototype.wz,Ti.prototype.findTreeChildrenNodes=Ti.prototype.Ou,Ti.prototype.findTreeChildrenLinks=Ti.prototype.Qo,Ti.prototype.findTreeLevel=Ti.prototype.uz,Ti.prototype.findTreeParentChain=Ti.prototype.vz,Ti.prototype.findTreeParentNode=Ti.prototype.pg,Ti.prototype.findTreeParentLink=Ti.prototype.kh,Ti.prototype.findCommonTreeParent=Ti.prototype.gz,Ti.prototype.findTreeRoot=Ti.prototype.xz,Ti.prototype.isInTreeOf=Ti.prototype.Nz,Ti.prototype.findPort=Ti.prototype.ns,Ti.prototype.findLinksTo=Ti.prototype.kz,Ti.prototype.findLinksBetween=Ti.prototype.jz,Ti.prototype.findNodesInto=Ti.prototype.Oo,Ti.prototype.findNodesOutOf=Ti.prototype.Po,Ti.prototype.findNodesConnected=Ti.prototype.Mu,Ti.prototype.findLinksInto=Ti.prototype.Sd,Ti.prototype.findLinksOutOf=Ti.prototype.Mo,Ti.prototype.findExternalTreeLinksConnected=Ti.prototype.qx,Ti.prototype.invalidateConnectedLinks=Ti.prototype.Bd,Ti.prototype.invalidateLinkBundle=Ti.prototype.Lz;var Bx=new Cn(Ti,"SpreadingNone",10),Qm=new Cn(Ti,"SpreadingEvenly",11),Uv=new Cn(Ti,"SpreadingPacked",12);Ti.className="Node",Ti.SpreadingNone=Bx,Ti.SpreadingEvenly=Qm,Ti.SpreadingPacked=Uv;function Qr(a,y){a===void 0||a instanceof Us||typeof a=="string"?Ti.call(this,a):(Ti.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ln,this.$a=null,this.Sc=new Za,this.Sc.group=this,this.gl=new Ln,this.tb=this.$p=null,y&&Object.assign(this,y)}wt(Qr,Ti),Qr.prototype.cloneProtected=function(a){Ti.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof ou});y instanceof ou?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())},Ae=Qr.prototype,Ae.Af=function(a){Ti.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 Ti)x.Bd(y);else if(x instanceof mi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ae.gk=function(a,y,x,b,E,z,ee){if(a===fi&&y==="elements"){if(E instanceof ou)this.$a===null?this.$a=E:this.$a!==E&&ct("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof hi){var re=E.Nl(function(oe){return oe instanceof ou});re instanceof ou&&(this.$a===null?this.$a=re:this.$a!==re&&ct("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ni&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof hi&&this.$a.rg(b)&&(this.$a=null));Ti.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ae.Xl=function(a,y){Ti.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==hi.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof hi&&(a=a.Pb()),this.tb===null&&(this.tb=new Sn),a.mi(this.tb),a instanceof io&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ae.eh=function(a,y,x,b){this.nf=this.$a,Ti.prototype.eh.call(this,a,y,x,b)},Ae.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof mi||y.Va()}),Ti.prototype.Va.call(this)},Ae.si=function(){if(!Ti.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Ti){if(y.isVisible()&&iu(y))return!1}else if(y instanceof mi&&y.isVisible()&&iu(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Xv(a,y){if(a.Gn.add(y)){y instanceof Qr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof mi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Jv(a,y){if(a.Gn.remove(y)){y instanceof Qr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof mi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ae.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)}Ti.prototype.Lj.call(this)},Qr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=kn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Qr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=kn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Qr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Ae=Qr.prototype,Ae.Bd=function(a){var y=(this.U&65536)!==0;if(Ti.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()?(Vu(x.fromPort),Vu(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Vu(x.fromPort),Vu(x.toPort),x.bb()))}}},Ae.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 Ln,b=y.iterator;b.next();){var E=b.value;if(E instanceof Ti)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ae.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ln,x=a.iterator;x.next();){var b=x.value;if(b instanceof Ti)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},Ae.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ln;return a(this,y),y},Ae.Rj=function(){var a=new Ln;return Xh(a,this,!0,0,!0),a.remove(this),a},Ae.Zb=function(a){Ti.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Qr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();nS(this,y,a,this),a.Ue=!1}};function nS(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof Qr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nS(z,y,x,b)),z instanceof Ti)z.Bd(y),x.Aj(z,b);else if(z instanceof mi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Qr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();iS(this,y,a,this),a.Ue=!1}};function iS(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof Qr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,iS(z,y,x,b)),z instanceof Ti)z.Bd(y),x.Cj(z,b);else if(z instanceof mi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Qr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=_e.alloc(),Ti.prototype.move.call(this,a,y),a=new Ln,y=this.Rj().iterator;y.next();)E=y.value,E instanceof mi&&(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 Ti&&E.isLinkLabel)){var ee=E.position,re=E.location;ee.w()?(z.x=ee.x+b,z.y=ee.y+x,E.position=z):re.w()&&(z.x=re.x+b,z.y=re.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof mi&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ee=E.position,z.x=ee.x+b,z.y=ee.y+x,z.w()?E.move(z):E.bb(),_v(E)&&E.bb());_e.free(z)}},ze.Object.defineProperties(Qr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&ct("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&&(Ch(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&&(Ch(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&&(Ch(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&&(Ch(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Qr.prototype.expandSubGraph=Qr.prototype.expandSubGraph,Qr.prototype.collapseSubGraph=Qr.prototype.collapseSubGraph,Qr.prototype.findSubGraphParts=Qr.prototype.Rj,Qr.prototype.findContainingGroupChain=Qr.prototype.hz,Qr.prototype.findExternalNodesConnected=Qr.prototype.iz,Qr.prototype.findExternalLinksConnected=Qr.prototype.Lu,Qr.prototype.ensureBounds=Qr.prototype.Va,Qr.className="Group";function ou(a){Gt.call(this),this.yb=Ds,this.ko=new Sn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}wt(ou,Gt),ou.prototype.cloneProtected=function(a){Gt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},ou.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Ko(0,0,y.width,y.height,a.x,a.y)},ou.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Qr||a instanceof Uo)||ct("Placeholder is not inside a Group or Adornment."),a instanceof Qr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(oa(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=_e.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),_e.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 ee=0;z instanceof io&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==hi.Link&&(re=z.ga(a.category==="Selection"?pa:a.locationSpot,_e.alloc()),a.location=re,_e.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(pa,_e.alloc()),le=Sn.allocAt(a.x,a.y,0,0),le.Ye(z.ga(vl,a)),le.Ye(z.ga(ml,a)),le.Ye(z.ga(il,a)),oa(y,le.width+b||0,le.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),_e.free(a),Sn.free(le)):(oa(y,le+b||0,ee+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},ou.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},ou.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Qr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=Sn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Qr&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),Sn.free(x),b&&y instanceof Qr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},ou.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Qr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof mi&&(!y.computesBoundsIncludingLinks||ec(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<b&&(b=re.top),re.right>E&&(E=re.right),re.bottom>z&&(z=re.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},ze.Object.defineProperties(ou.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Hi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ou.className="Placeholder";function mi(a){dr.call(this,hi.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=au,this.Om=0,this.Qm=au,this.Rm=NaN,this.qj=ey,this.po=.5,this.wd=null,this.Nb=new Dn().freeze(),this.Tg=this.Mg=null,this.ml=new Sn,this.ua=new gi,this.u=this.o=this.Sf=this.Wf=null,this.su=new _e,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}wt(mi,dr),mi.prototype.cloneProtected=function(a){dr.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())},Ae=mi.prototype,Ae.Af=function(a){dr.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&&Vu(y),a=a.toPort,a!==null&&Vu(a)},Ae.qb=function(a){a.classType===mi?(a.value&2)===2?this.routing=a:a===nc||a===Eh||a===jg?this.curve=a:a===Np||a===n0||a===i0?this.adjusting=a:a!==ey&&a!==au&&ct("Unknown Link enum value for a Link property: "+a):dr.prototype.qb.call(this,a)},Ae.Xc=function(){this.ba===null&&(this.ba=new mp)},Ae.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),iu(a)||Yh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),iu(a)||Yh(a)))},Ae.zv=function(){return!1},Ae.Av=function(){},Ae.Zc=function(){return!1},mi.prototype.computeAngle=function(a,y,x){return mi.computeAngle(y,x)},mi.computeAngle=function(a,y){switch(a){default:case au:a=0;break;case kp:a=y;break;case Dp:a=y+90;break;case Bp:a=y-90;break;case ty:a=y+180;break;case r0:a=Vt.bp(y),90<a&&270>a&&(a-=180);break;case Tp:a=Vt.bp(y+90),90<a&&270>a&&(a-=180);break;case Op:a=Vt.bp(y-90),90<a&&270>a&&(a-=180);break;case o0:if(a=Vt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Vt.bp(a)};function Rg(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&&Jv(x,a),a.Ah=y,y!==null&&Xv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,x,y),ee!==null&&(ee.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}Ae=mi.prototype,Ae.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&dr.prototype.oh.call(this)},Ae.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ae.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function rS(a,y){a.wd===null&&(a.wd=new Ln),a.wd.add(y),a.v()}Ae.Vo=function(a){if(dr.prototype.Vo.call(this,a),Df(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Xm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Xm(x,this,b)}Mp(this)}},Ae.Wo=function(a){if(dr.prototype.Wo.call(this,a),Df(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Jm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Jm(x,this,b)}Fp(this)}},Ae.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))},mi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},mi.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?dr.prototype.move.call(this,a,!1):(a=_e.allocAt(x.x+b,x.y+E),dr.prototype.move.call(this,a,!1),_e.free(a)),bh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},mi.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},mi.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},mi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ri),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()===nc))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()===nc){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Vt.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),Vt.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 ee=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=ee[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},mi.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()===nc))return this.ua.wx(.5);if(this.computeCurve()===nc&&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),Vt.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)},Ae=mi.prototype,Ae.i=function(a){return this.Nb.s[a]},Ae.dd=function(a,y){this.Nb.cd(a,y)},Ae.L=function(a,y,x){this.Nb.cd(a,new _e(y,x))},Ae.Kz=function(a,y){this.Nb.Gb(a,y)},Ae.m=function(a,y,x){this.Nb.Gb(a,new _e(y,x))},Ae.ne=function(a){this.Nb.add(a)},Ae.yf=function(a,y){this.Nb.add(new _e(a,y))},Ae.pv=function(a){this.Nb.mb(a)},Ae.Fj=function(){this.Nb.clear()};function bh(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 Dn,z=a.Nb.iterator;z.next();){var ee=z.value;E.add(new _e(ee.x+y,ee.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.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),nu(a)),b?_m(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&Sa(ee.animationManager,a,E),a.g("points",z,E)}}Ae.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ae.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,ee=0;ee<z;ee++){var re=E[ee];x=Math.min(re.x,x),b=Math.min(re.y,b)}re=ee=1/0;for(var oe=y.s,le=oe.length,ue=0;ue<le;ue++){var fe=oe[ue];ee=Math.min(fe.x,ee),re=Math.min(fe.y,re),fe.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(ue=E[z],fe=oe[z],ue.x-x!==fe.x-ee||ue.y-b!==fe.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Sa(x.animationManager,this,y),_m(this),this.g("points",a,y)}},Ae.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function _m(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),t0(a,!1))}Ae.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())}},Ae.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()}}},mi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(rg||(rg=new Ti,rg.desiredSize=pr,rg.Va()),this.defaultFromPoint&&(rg.location=this.defaultFromPoint,rg.Va(),y=a=rg)):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?(og||(og=new Ti,og.desiredSize=pr,og.Va()),this.defaultToPoint&&(og.location=this.defaultToPoint,og.Va(),E=b=og)):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,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var re=zg(ee),oe=zg(x),le=y===E&&y!==null,ue=this.isOrthogonal,fe=this.curve===nc;this.Wf=le&&!ue?fe=!0:!1;var xe=this.computeAdjusting()===au||le;if(!ue&&!le&&re&&oe){if(re=!1,!xe&&3<=z&&(xe=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),re=this.adjustPoints(0,xe,z-1,oe))&&(xe=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,xe,z-1,oe)),!re)if(this.Fj(),fe){z=this.getLinkPoint(a,y,ee,!0,!1,b,E),xe=this.getLinkPoint(b,E,x,!1,!1,a,y),re=xe.x-z.x,oe=xe.y-z.y,le=this.computeCurviness(),fe=ue=0;var be=z.x+re/3,Le=z.y+oe/3,Te=be,at=Le;Vt.B(oe,0)?at=0<re?at-le:at+le:(ue=-re/oe,fe=Math.sqrt(le*le/(ue*ue+1)),0>le&&(fe=-fe),Te=(0>oe?-1:1)*fe+be,at=ue*(Te-be)+Le),be=z.x+2*re/3,Le=z.y+2*oe/3;var Ue=be,vt=Le;Vt.B(oe,0)?vt=0<re?vt-le:vt+le:(Ue=(0>oe?-1:1)*fe+be,vt=ue*(Ue-be)+Le),this.Fj(),this.ne(z),this.yf(Te,at),this.yf(Ue,vt),this.ne(xe),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,xe=E,b=this.getLinkPoint(a,y,ee,!0,!1,z,xe),E=this.getLinkPoint(z,xe,x,!1,!1,a,y),this.hasCurviness()?(xe=E.x-b.x,x=E.y-b.y,ee=this.computeCurviness(),a=b.x+xe/2,y=b.y+x/2,z=a,re=y,Vt.B(x,0)?re=0<xe?re-ee:re+ee:(xe=-xe/x,z=Math.sqrt(ee*ee/(xe*xe+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=xe*(z-a)+y),this.ne(b),this.yf(z,re),this.ne(E)):(this.ne(b),this.ne(E),re=Sn.alloc(),y.mi(re),oe=re.ca(E),xe.mi(re),le=re.ca(b),(oe||le)&&(ee=y.ga(qm(ee),new _e),this.dd(0,this.getLinkPointFromPoint(a,y,ee,E,!0,ee)),x=xe.ga(qm(x),new _e),this.dd(1,this.getLinkPointFromPoint(z,xe,x,b,!1,x))),Sn.free(re))}else{fe=this.isAvoiding,xe&&(ue&&fe||le)&&this.Fj();var St=le?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ue,b,E),be=Te=Le=0,(ue||!re||le)&&(at=this.computeEndSegmentLength(a,y,ee,!0),be=this.getLinkDirection(a,y,fe,ee,!0,ue,b,E),le&&(re||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(be-=ue?90:30,0>St&&(be-=180)),0>be?be+=360:360<=be&&(be-=360),le&&(at+=Math.abs(St)*(ue?1:2)),be===0?Le=at:be===90?Te=at:be===180?Le=-at:be===270?Te=-at:(Le=at*Math.cos(be*Math.PI/180),Te=at*Math.sin(be*Math.PI/180)),ee.Mc()&&le&&(at=y.ga(So,_e.alloc()),Ue=_e.allocAt(at.x+1e3*Le,at.y+1e3*Te),this.getLinkPointFromPoint(a,y,at,Ue,!0,fe),_e.free(at),_e.free(Ue))),at=this.getLinkPoint(b,E,x,!1,ue,a,y);var Ft=vt=Ue=0;if(ue||!oe||le){var Kt=this.computeEndSegmentLength(b,E,x,!1);Ft=this.getLinkDirection(b,E,at,x,!1,ue,a,y),le&&(oe||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(Ft+=ue?0:30,0>St&&(Ft+=180)),0>Ft?Ft+=360:360<=Ft&&(Ft-=360),le&&(Kt+=Math.abs(St)*(ue?1:2)),Ft===0?Ue=Kt:Ft===90?vt=Kt:Ft===180?Ue=-Kt:Ft===270?vt=-Kt:(Ue=Kt*Math.cos(Ft*Math.PI/180),vt=Kt*Math.sin(Ft*Math.PI/180)),x.Mc()&&le&&(x=E.ga(So,_e.alloc()),ee=_e.allocAt(x.x+1e3*Ue,x.y+1e3*vt),this.getLinkPointFromPoint(b,E,x,ee,!1,at),_e.free(x),_e.free(ee))}x=fe,(ue||!re||le)&&(x=new _e(fe.x+Le,fe.y+Te)),ee=at,(ue||!oe||le)&&(ee=new _e(at.x+Ue,at.y+vt)),!xe&&!ue&&re&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,at):!xe&&!ue&&oe&&3<z&&this.adjustPoints(1,x,z-1,at)?this.dd(0,fe):!xe&&(ue?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,fe),this.dd(z-1,at)):(this.Fj(),this.ne(fe),(ue||!re||le)&&this.ne(x),ue&&this.addOrthoPoints(x,be,ee,Ft,a,b),(ue||!oe||le)&&this.ne(ee),this.ne(at))}return!0};function Qv(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}mi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new _e),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 ee=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*E;var re=-a.m12*E,oe=-a.m21*E,le=a.m11*E,ue=E*(a.m21*a.dy-a.m22*a.dx),fe=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ee+b.y*oe+ue,b=b.x*re+b.y*le+fe,ee=x.x*ee+x.y*oe+ue,x=x.x*re+x.y*le+fe}return y.Sj(E,b,ee,x,z),a!==null&&z.transform(a),z};function $m(a,y){var x=y.Zn;return x===null&&(x=new ag,x.port=y,x.node=y.part,y.Zn=x),hS(x,a)}mi.prototype.getLinkPoint=function(a,y,x,b,E,z,ee,re){if(re===void 0&&(re=new _e),x.sb()&&!zg(x))return y.ga(x,re),re;if(x.$c()){var oe=$m(this,y);if(oe!==null){if(re.assign(oe.Zo),E&&this.routing===aS){var le=$m(this,ee);if(le!==null&&oe.Gl<le.Gl){oe=_e.alloc(),le=_e.alloc();var ue=new Sn(y.ga(pa,oe),y.ga(vl,le)),fe=this.computeSpot(!b,ee);a=this.getLinkPoint(z,ee,fe,!b,E,a,y,le),(x.Hf(yl)||x.Hf(rl))&&a.y>=ue.y&&a.y<=ue.y+ue.height?re.y=a.y:(x.Hf(fu)||x.Hf(Sl))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(re.x=a.x),_e.free(oe),_e.free(le)}}return re}}return x=y.ga(qm(x),_e.alloc()),this.pointsCount>(E?6:2)?(ee=b?this.i(1):this.i(this.pointsCount-2),E&&(ee=Qv(x,ee.copy()))):(oe=this.computeSpot(!b,ee),z=_e.alloc(),ee=ee.ga(qm(oe),z),E&&(ee=Qv(x,ee)),_e.free(z)),this.getLinkPointFromPoint(a,y,x,ee,b,re),_e.free(x),re},mi.prototype.getLinkDirection=function(a,y,x,b,E,z,ee,re){e:if(b.sb())var oe=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()&&(oe=$m(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(So,_e.alloc()),this.pointsCount>(z?6:2)?(re=E?this.i(1):this.i(this.pointsCount-2),re=z?Qv(oe,re.copy()):x):(x=_e.alloc(),re=re.ga(So,x),_e.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,_e.free(oe),oe=x}return b.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),zg(b)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},mi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=$m(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)},mi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=So:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Jo?Da:y)):(a=y||this.toPort,a===null?a=So:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Jo?Da:y)),a};function zg(a){return a===Da||a.x===.5&&a.y===.5}function qm(a){return a.x===.5&&a.y===.5?a:So}mi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==au&&4<this.pointsCount?this.computeMidPoint(new _e):(a=y.Zn,a=a!==null?hS(a,this):null,a!==null?a.Zo:y.ga(So))},mi.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},mi.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 ee=z;if(z===void 0&&(ee=jr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return xv(this,y,x,E),z===void 0&&jr.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,le=oe.length;le--;){var ue=oe[le];if(ue.visible||ue===this.locationObject){var fe=ue.actualBounds,xe=this.naturalBounds;if(!(fe.x>xe.width||fe.y>xe.height||0>fe.x+fe.width||0>fe.y+fe.height)){if(fe=jr.alloc(),fe.set(ee),ue instanceof hi)re=ue.Cf(a,y,x,b,E,fe);else if(this.path===ue){if(ue instanceof io)if(re=a,xe=b,ue.pickable===!1)re=!1;else if(fe.multiply(ue.transform),xe)e:{var be=re,Le=fe;if(ue.fh(be,Le))re=!0;else{if(Le===void 0&&(Le=ue.transform,be.Re(ue.actualBounds))){re=!0;break e}re=be.left,xe=be.right;var Te=be.top;be=be.bottom;var at=_e.alloc(),Ue=_e.alloc(),vt=_e.alloc(),St=jr.alloc();St.set(Le),St.bv(ue.transform),St.Vj(),Ue.x=xe,Ue.y=Te,Ue.transform(St),at.x=re,at.y=Te,at.transform(St),Le=!1,Nf(ue,at,Ue,vt)?Le=!0:(at.x=xe,at.y=be,at.transform(St),Nf(ue,at,Ue,vt)?Le=!0:(Ue.x=re,Ue.y=be,Ue.transform(St),Nf(ue,at,Ue,vt)?Le=!0:(at.x=re,at.y=Te,at.transform(St),Nf(ue,at,Ue,vt)&&(Le=!0)))),jr.free(St),_e.free(at),_e.free(Ue),_e.free(vt),re=Le}}else re=ue.fh(re,fe)}else re=$s(ue,a,b,fe);re&&(xe=ue,y!==null&&(xe=y(ue)),xe&&(x===null||x(xe))&&E.add(xe)),jr.free(fe)}}}return z===void 0&&jr.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&jr.free(ee),!1},mi.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?nc:this.curve},mi.prototype.computeCorner=function(){if(this.curve===nc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},mi.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},mi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=lS;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,ee=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===kp||b===r0||b===ty?a=Math.max(a,E):b===Bp||b===Op||b===Dp||b===Tp?a=Math.max(a,ee):(y=y.ga(So).ab(x.ga(So))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*E)+1)),this.curve===nc&&(a*=1.333)}}return a},mi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===au&&x.bb()}},mi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sS;var y=this.Sf;if(y!==null){for(var x=ci(),b=0,E=y.links,z=0;z<E.length;z++){var ee=E[z].computeSpacing();x.push(ee),b+=ee}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),Pi(x)}}return a},mi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},mi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},mi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===n0)return!1;E===i0&&(E=Np)}switch(E){case n0:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(b)){E=z.x,z=z.y;var re=ee.x-E,oe=ee.y-z,le=Math.sqrt(re*re+oe*oe);if(!Vt.$(le,0)){if(Vt.$(re,0))var ue=0>oe?-Math.PI/2:Math.PI/2;else ue=Math.atan(oe/Math.abs(re)),0>re&&(ue=Math.PI-ue);ee=y.x;var fe=y.y;re=b.x-ee;var xe=b.y-fe;for(oe=Math.sqrt(re*re+xe*xe),Vt.$(re,0)?xe=0>xe?-Math.PI/2:Math.PI/2:(xe=Math.atan(xe/Math.abs(re)),0>re&&(xe=Math.PI-xe)),le=oe/le,ue=xe-ue,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-E,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),Vt.$(y,0)||(Vt.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ue,y*=le,this.L(a,ee+y*Math.cos(re),fe+y*Math.sin(re)));this.dd(x,b)}}return!0;case i0:if(z=this.i(a),fe=this.i(x),!z.Xa(y)||!fe.Xa(b)){E=z.x,z=z.y,ee=fe.x,fe=fe.y,le=(ee-E)*(ee-E)+(fe-z)*(fe-z),re=y.x,ue=y.y,oe=b.x,xe=b.y;var be=1;if(oe-re!==0){var Le=(xe-ue)/(oe-re);be=Math.sqrt(1+1/(Le*Le))}else Le=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Te=y.x,at=y.y,Ue=.5;le!==0&&(Ue=((E-Te)*(E-ee)+(z-at)*(z-fe))/le);var vt=E+Ue*(ee-E),St=z+Ue*(fe-z);y=Math.sqrt((Te-vt)*(Te-vt)+(at-St)*(at-St)),at<Le*(Te-vt)+St&&(y=-y),0<Le&&(y=-y),Te=re+Ue*(oe-re),Ue=ue+Ue*(xe-ue),Le!==0?(y=Te+y/be,this.L(a,y,Ue-(y-Te)/Le)):this.L(a,Te,Ue+y)}this.dd(x,b)}return!0;case Np:e:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,ue=z.y,fe=re,le=ue,Vt.B(E.y,z.y)?Vt.B(z.x,ee.x)?ue=y.y:Vt.B(z.y,ee.y)&&(re=y.x):Vt.B(E.x,z.x)&&(Vt.B(z.y,ee.y)?re=y.x:Vt.B(z.x,ee.x)&&(ue=y.y)),this.L(a+1,re,ue),E=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,ue=z.y,oe=re,xe=ue,Vt.B(E.y,z.y)?Vt.B(z.x,ee.x)?ue=b.y:Vt.B(z.y,ee.y)&&(re=b.x):Vt.B(E.x,z.x)&&(Vt.B(z.y,ee.y)?re=b.x:Vt.B(z.x,ee.x)&&(ue=b.y)),this.L(x-1,re,ue),_v(this))){this.L(a+1,fe,le),this.L(x-1,oe,xe),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},mi.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 ee=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 re=E.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Ip,Ip),oe.Bc(Ip,Ip),re.Ye(a),oe.Ye(x);var le=_e.alloc(),ue=_e.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&oe.right>a.x||b===90&&x.y>a.y&&oe.right>a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),b===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(le.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ue.x=le.x,ue.y=x.y):b===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=le.y)):(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===180&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===180||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(b===90||b===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===0?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=le.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&oe.left<a.x||b===90&&x.y>a.y&&oe.left<a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),b===0?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(le.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ue.x=le.x,ue.y=x.y):b===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=le.y)):(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===0&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===0||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(b===90||b===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===180?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=le.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&oe.bottom>a.y||b===0&&x.x>a.x&&oe.bottom>a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),b===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(le.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ue.x=x.x,ue.y=le.y):b===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ue.x=le.x)):(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===270&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(b===0||b===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===90?re.right:Math.max(re.right,oe.right)),ue.x=le.x,ue.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&oe.top<a.y||b===0&&x.x>a.x&&oe.top<a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),b===90?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(le.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ue.x=x.x,ue.y=le.y):b===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ue.x=le.x)):(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===90&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(b===0||b===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===270?re.right:Math.max(re.right,oe.right)),ue.x=le.x,ue.y=x.y)));var fe=x;if(this.isAvoiding){var xe=this.diagram;if(xe===null||E===z||this.layer.isTemporary||!ca(xe)||re.ca(fe)&&!z.Td(E)||oe.ca(a)&&!E.Td(z))y=!1;else{var be=is(xe,!0,this.containingGroup,null);if(this.segmentIndex!==17&&be.Yj(Math.min(a.x,le.x),Math.min(a.y,le.y),Math.abs(a.x-le.x),Math.abs(a.y-le.y))&&be.Yj(Math.min(le.x,ue.x),Math.min(le.y,ue.y),Math.abs(le.x-ue.x),Math.abs(le.y-ue.y))&&be.Yj(Math.min(ue.x,fe.x),Math.min(ue.y,fe.y),Math.abs(ue.x-fe.x),Math.abs(ue.y-fe.y)))y=!1;else{E=a,z=fe;var Le=x=null;if(xe.isVirtualized){xe=be.bounds.copy(),xe.Bc(-be.Ho,-be.Go);var Te=_e.alloc();Hg(be,a.x,a.y)||(Vt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,a.x,a.y,le.x,le.y,Te)?(x=a=Te.copy(),y=Te.ab(le)):Vt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,le.x,le.y,ue.x,ue.y,Te)?(x=a=Te.copy(),y=Te.ab(ue)):Vt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,ue.x,ue.y,fe.x,fe.y,Te)&&(x=a=Te.copy(),y=Te.ab(fe))),Hg(be,fe.x,fe.y)||(Vt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,fe.x,fe.y,ue.x,ue.y,Te)?(Le=fe=Te.copy(),b=ue.ab(Te)):Vt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,ue.x,ue.y,le.x,le.y,Te)?(Le=fe=Te.copy(),b=le.ab(Te)):Vt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,le.x,le.y,a.x,a.y,Te)&&(Le=fe=Te.copy(),b=a.ab(Te))),_e.free(Te)}re=re.copy().ed(oe),re.Bc(be.Ho*be.Os,be.Go*be.Os),cS(be,a,y,fe,b,re,!0),oe=Dd(be,fe.x,fe.y),!be.abort&&oe>=Wg&&(uS(be),re.Bc(be.Ho*be.Hx,be.Go*be.Ix),cS(be,a,y,fe,b,re,!1),oe=Dd(be,fe.x,fe.y)),!be.abort&&oe<Wg&&Dd(be,fe.x,fe.y)!==Ah?($v(this,be,fe.x,fe.y,b,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=fe.y):(re.x=fe.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?Vt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):Vt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=be.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Vt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):Vt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=be.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Le!==null&&(b===0||b===180?this.yf(z.x,Le.y):this.yf(Le.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ue.copy())),_e.free(le),_e.free(ue)}},mi.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 _v(a){if(a.diagram===null||!a.isAvoiding||!ca(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=is(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 $v(a,y,x,b,E,z,ee){var re=y.Ho,oe=y.Go,le=Dd(y,x,b),ue=x,fe=b;for(E===0?ue+=re:E===90?fe+=oe:E===180?ue-=re:fe-=oe,E!==ee&&le>Bf&&Dd(y,ue,fe)!==le-1&&(Dd(y,x-re,b)===le-1?(E=180,ue=x-re,fe=b):Dd(y,x+re,b)===le-1?(E=0,ue=x+re,fe=b):Dd(y,x,b-oe)===le-1?(E=270,ue=x,fe=b-oe):Dd(y,x,b+oe)===le-1&&(E=90,ue=x,fe=b+oe));le>Bf&&Dd(y,ue,fe)===le-1;)x=ue,b=fe,E===0?ue+=re:E===90?fe+=oe:E===180?ue-=re:fe-=oe,--le;z?le>Bf&&(E===180||E===0?x=Math.floor(x/re)*re+re/2:(E===90||E===270)&&(b=Math.floor(b/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,b=Math.floor(b/oe)*oe+oe/2),le>Bf&&(z=E,ee=x,ue=b,E===0?(z=90,ue+=oe):E===90?(z=180,ee-=re):E===180?(z=270,ue-=oe):E===270&&(z=0,ee+=re),Dd(y,ee,ue)===le-1?$v(a,y,ee,ue,z,!1,z):(ee=x,ue=b,E===0?(z=270,ue-=oe):E===90?(z=0,ee+=re):E===180?(z=90,ue+=oe):E===270&&(z=180,ee-=re),Dd(y,ee,ue)===le-1&&$v(a,y,ee,ue,z,!1,z))),a.yf(x,b)}mi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Ei(y,a,x.x,x.y,b.x,b.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=Ei(y,a,b.x,b.y,x.x,x.y);b=x,re<E&&(z=ee,E=re)}return z},mi.prototype.qc=function(){this.lk=!1,this.v()},mi.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof io&&(E.ua=this.ua)}}},mi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Df(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 ee=this.computeCurve();if(ee===nc&&3<=y&&!Vt.$(this.smoothness,0))if(y===3){var re=this.i(1);b=Math.min(E.x,re.x);var oe=Math.min(E.y,re.y);re=this.i(2),b=Math.min(b,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),oe=this.i(b),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);b=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,oe=z.y}if(b-=this.su.x,oe-=this.su.y,E.x-=b,E.y-=oe,y!==2||Df(this)){if(a.type=gi.o,re=O1(a),this.computeShortLength(!0)!==0&&(E=ng(this,E,!0,z)),Ig(re,E.x,E.y,!1),ee===nc&&3<=y&&!Vt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-oe,E=this.i(2).copy(),E.x-=b,E.y-=oe,this.computeShortLength(!1)!==0&&(E=ng(this,E,!1,z)),wh(re,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=_e.allocAt(b,oe),x=_e.alloc(),x.assign(this.i(1)),z=_e.allocAt(b,oe),E=_e.allocAt(b,oe),ee=this.i(0);for(var le,ue=this.smoothness/3,fe=1;fe<this.pointsCount-1;fe++){le=this.i(fe);var xe=ee,be=le,Le=this.i(qv(this,le,fe,!1));if((!Vt.$(xe.x,be.x)||!Vt.$(be.x,Le.x))&&(!Vt.$(xe.y,be.y)||!Vt.$(be.y,Le.y))){var Te=ue;isNaN(Te)&&(Te=this.smoothness/3);var at=xe.x;xe=xe.y;var Ue=be.x;be=be.y;var vt=Le.x;Le=Le.y;var St=Te*e0(at,xe,Ue,be);Te*=e0(Ue,be,vt,Le),Vt.$(xe,be)&&Vt.$(Ue,vt)&&(Ue>at?Le>be?(z.x=Ue-St,z.y=be-St,E.x=Ue+Te,E.y=be+Te):(z.x=Ue-St,z.y=be+St,E.x=Ue+Te,E.y=be-Te):Le>be?(z.x=Ue+St,z.y=be-St,E.x=Ue-Te,E.y=be+Te):(z.x=Ue+St,z.y=be+St,E.x=Ue-Te,E.y=be-Te)),Vt.$(at,Ue)&&Vt.$(be,Le)&&(be>xe?(vt>Ue?(z.x=Ue-St,z.y=be-St,E.x=Ue+Te):(z.x=Ue+St,z.y=be-St,E.x=Ue-Te),E.y=be+Te):(vt>Ue?(z.x=Ue-St,z.y=be+St,E.x=Ue+Te):(z.x=Ue+St,z.y=be+St,E.x=Ue-Te),E.y=be-Te)),(Vt.$(at,Ue)&&Vt.$(Ue,vt)||Vt.$(xe,be)&&Vt.$(be,Le))&&(at=.5*(at+vt),xe=.5*(xe+Le),z.x=at,z.y=xe,E.x=at,E.y=xe),(fe===1||fe===2&&Vt.$(ee.x,this.i(0).x)&&Vt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+le.x),x.y=.5*(ee.y+le.y)),wh(re,x.x-b,x.y-oe,z.x-b,z.y-oe,le.x-b,le.y-oe),y.set(z),x.set(E),ee=le}}le=ee.x,ee=ee.y,ue=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ue=ng(this,ue.copy(),!1,yt)),le=.5*(le+ue.x),ee=.5*(ee+ue.y),wh(re,E.x-b,E.y-oe,le-b,ee-oe,ue.x-b,ue.y-oe),_e.free(y),_e.free(x),_e.free(z),_e.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),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=ng(this,ee.copy(),!1,yt)),wh(re,z.x-b,z.y-oe,E.x-b,E.y-oe,ee.x-b,ee.y-oe);else{for(z=_e.alloc(),z.assign(this.i(0)),E=_e.alloc(),E.assign(z),ee=this.computeCorner(),fe=1,le=0;fe<y;){if(fe=qv(this,z,fe,1<fe),ue=this.i(fe),fe>=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=ng(this,ue.copy(),!1,yt)),ig(this,re,-b,-oe,z,ue,x);else if(le===0)for(fe=1;fe<y;)E.assign(z),ue=this.i(fe++),ig(this,re,-b,-oe,z,ue,x),z.assign(ue);break}if(le=qv(this,ue,fe+1,fe<y-3),fe=-b,at=-oe,xe=ue,Ue=this.i(le),Te=x,Vt.B(z.y,xe.y)&&Vt.B(xe.x,Ue.x))if(Le=Math.min(ee,Math.abs(xe.x-E.x)/2),Le=St=Math.min(Le,Math.abs(Ue.y-xe.y)/2),Vt.B(Le,0))ig(this,re,fe,at,z,xe,Te),z.assign(xe);else{var Ft=xe.x,Kt=xe.y;be=Ft,vt=Kt,xe.x>z.x?Ft=xe.x-Le:Ft=xe.x+Le,Ue.y>xe.y?vt=xe.y+St:vt=xe.y-St,Ue=_e.allocAt(Ft,Kt),ig(this,re,fe,at,z,Ue,Te),_e.free(Ue),Vm(re,xe.x+fe,xe.y+at,be+fe,vt+at),z.h(be,vt)}else Vt.B(z.x,xe.x)&&Vt.B(xe.y,Ue.y)?(Le=Math.min(ee,Math.abs(xe.y-E.y)/2),Le=St=Math.min(Le,Math.abs(Ue.x-xe.x)/2),Vt.B(St,0)?(ig(this,re,fe,at,z,xe,Te),z.assign(xe)):(Ft=xe.x,Kt=xe.y,be=Ft,vt=Kt,xe.y>z.y?Kt=xe.y-Le:Kt=xe.y+Le,Ue.x>xe.x?be=xe.x+St:be=xe.x-St,Ue=_e.allocAt(Ft,Kt),ig(this,re,fe,at,z,Ue,Te),_e.free(Ue),Vm(re,xe.x+fe,xe.y+at,be+fe,vt+at),z.h(be,vt))):(ig(this,re,fe,at,z,xe,Te),z.assign(xe));E.assign(ue),fe=le}_e.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=b,re.y-=oe,this.computeShortLength(!0)!==0&&(E=ng(this,E,!0,z)),this.computeShortLength(!1)!==0&&(re=ng(this,re,!1,z)),a.type=gi.j,a.startX=E.x,a.startY=E.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function e0(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),Vt.$(a,0)?y:Vt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function ng(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=e0(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=e0(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 qv(a,y,x,b){for(var E=a.pointsCount,z=y;Vt.$(y.x,z.x)&&Vt.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Vt.$(y.x,z.x)&&!Vt.$(y.y,z.y))return x-1;for(var ee=z;Vt.$(y.x,z.x)&&Vt.$(z.x,ee.x)&&(!b||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Vt.$(y.y,z.y)&&Vt.$(z.y,ee.y)&&(!b||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=E)return E-1;ee=a.i(x++)}return x-2}mi.prototype.computeJumpLength=function(){return 10};function ig(a,y,x,b,E,z,ee){if(!ee&&Df(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],le=0;if(a.isVisible()&&(le=Tx(a,E,z,oe)),0<le){if(Vt.B(E.y,z.y))if(E.x<z.x)for(var ue=0;ue<le;){var fe=Math.max(E.x,Math.min(oe[ue++]-re,z.x-ee));y.lineTo(fe+x,z.y+b);for(var xe=fe+x,be=Math.min(fe+ee,z.x);ue<le&&(fe=oe[ue],fe<be+ee);)ue++,be=Math.min(fe+re,z.x);fe=z.y-ee+b,be+=x;var Le=z.y+b;a.curve===Eh?Ig(y,be,Le,!1):wh(y,xe,fe,be,fe,be,Le)}else for(--le;0<=le;){for(ue=Math.min(E.x,Math.max(oe[le--]+re,z.x+ee)),y.lineTo(ue+x,z.y+b),xe=ue+x,fe=Math.max(ue-ee,z.x);0<=le&&(ue=oe[le],ue>fe-ee);)le--,fe=Math.max(ue-re,z.x);ue=z.y-ee+b,fe+=x,be=z.y+b,a.curve===Eh?Ig(y,fe,be,!1):wh(y,xe,ue,fe,ue,fe,be)}else if(Vt.B(E.x,z.x))if(E.y<z.y)for(ue=0;ue<le;){for(fe=Math.max(E.y,Math.min(oe[ue++]-re,z.y-ee)),y.lineTo(z.x+x,fe+b),xe=fe+b,fe=Math.min(fe+ee,z.y);ue<le&&(be=oe[ue],be<fe+ee);)ue++,fe=Math.min(be+re,z.y);be=z.x-ee+x,Le=z.x+x,fe+=b,a.curve===Eh?Ig(y,Le,fe,!1):wh(y,be,xe,be,fe,Le,fe)}else for(--le;0<=le;){for(ue=Math.min(E.y,Math.max(oe[le--]+re,z.y+ee)),y.lineTo(z.x+x,ue+b),xe=ue+b,ue=Math.max(ue-ee,z.y);0<=le&&(fe=oe[le],fe>ue-ee);)le--,ue=Math.max(fe-re,z.y);fe=z.x-ee+x,be=z.x+x,ue+=b,a.curve===Eh?Ig(y,be,ue,!1):wh(y,fe,xe,fe,ue,be,ue)}}}y.lineTo(z.x+x,z.y+b)}function Tx(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 ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof mi){if(oe===a)return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length;if(oe.isVisible()&&Df(oe)){var le=oe.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(oe)&&(le=oe.path,le!==null&&le.Ed()&&Ox(y,x,b,oe))}}}}}return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length}function Ox(a,y,x,b){for(var E=Vt.B(a.y,y.y),z=b.pointsCount,ee=b.i(0),re=_e.alloc(),oe=1;oe<z;oe++){var le=b.i(oe);if(oe<z-1){var ue=b.i(oe+1);if(ee.y===le.y&&le.y===ue.y){if(le.x>ee.x&&ue.x>=le.x||le.x<ee.x&&ue.x<=le.x)continue}else if(ee.x===le.x&&le.x===ue.x&&(le.y>ee.y&&ue.y>=le.y||le.y<ee.y&&ue.y<=le.y))continue}e:{ue=a.x;var fe=a.y,xe=y.x,be=y.y,Le=ee.x;ee=ee.y;var Te=le.x,at=le.y;if(Vt.B(ue,xe)){if(!Vt.B(fe,be)&&Vt.B(ee,at)&&Math.min(fe,be)<ee&&Math.max(fe,be)>ee&&Math.min(Le,Te)<ue&&Math.max(Le,Te)>ue&&!Vt.B(Le,Te)){re.x=ue,re.y=ee,ue=!0;break e}}else if(Vt.B(fe,be)&&Vt.B(Le,Te)&&Math.min(ue,xe)<Le&&Math.max(ue,xe)>Le&&Math.min(ee,at)<fe&&Math.max(ee,at)>fe&&!Vt.B(ee,at)){re.x=Le,re.y=fe,ue=!0;break e}re.x=0,re.y=0,ue=!1}ue&&(E?x.push(re.x):x.push(re.y)),ee=le}_e.free(re)}function Df(a){return a=a.curve,a===jg||a===Eh}function t0(a,y){(y||Df(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()))}mi.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 ee=E.length,re=0;re<ee;re++){var oe=E[re];oe instanceof mi&&(oe===this?z=!0:z&&oS(this,oe,a))}}else if(b)for(z=E.Pa.s,E=z.length,ee=0;ee<E;ee++)re=z[ee],re instanceof mi&&oS(this,re,a)}}}}};function oS(a,y,x){if(y!==null&&y.lk&&y.fd&&Df(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}mi.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},mi.prototype.isVisible=function(){if(!dr.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},mi.prototype.Zb=function(a){if(dr.prototype.Zb.call(this,a),a&&t0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},mi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Np:this.qk};function Mp(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,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];(le.ef===y&&le.ff===b&&le.uf===x&&le.vf===E||le.ef===x&&le.ff===E&&le.uf===y&&le.vf===b)&&(z===null?z=le:(a===null&&(a=[],a.push(z)),a.push(le)))}if(a!==null){for(z=U1(y,x,b,E),z===null&&(z=new a0(y,b,x,E),Y1(y,z),Y1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Fp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(yi(y.links,a),y.Sl()))}mi.prototype.ph=function(){return!0},ze.Object.defineProperties(mi.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&&Jm(y,this,x),Fp(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 ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.uf!==a&&Xm(a,this,E),Mp(this),this.C(1)),this.g("fromNode",y,a),Rg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Vu(x),Fp(this),this.ff=a;var b=this.fromPort;b!==null&&Vu(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),Mp(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&&Jm(y,this,x),Fp(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 ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.ef!==a&&Xm(a,this,E),Mp(this),this.C(1)),this.g("toNode",y,a),Rg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Vu(x),Fp(this),this.vf=a;var b=this.toPort;b!==null&&Vu(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),Mp(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:Jo},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&&Vu(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&&Un(a,">= 0",mi,"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:Jo},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&&Vu(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&&Un(a,">= 0",mi,"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?Mr: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&&Lp(this.fromNode),this.toNode!==null&&Lp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof io?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===nc&&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),Vt.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 ee=this.i(z-2);z+3>=b&&(z=b-1);var re=this.i(z-1),oe=this.i(z);Vt.Dl(E.x,E.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),E=oe}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 _e)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||_m(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);Vt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Vt.$(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 Dn,b=0;b<a.length/2;b++)E=new _e(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(!Zt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Dn,b=0;b<a.length;b++)E=a[b],x.add(new _e(E.x,E.y).freeze())}}else if(a instanceof Dn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else ct("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),_m(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Sa(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||!zg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!zg(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(),t0(this,y===Eh||y===jg||a===Eh||a===jg),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(),t0(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)}}}),mi.prototype.invalidateOtherJumpOvers=mi.prototype.Xo,mi.prototype.findClosestSegment=mi.prototype.ez,mi.prototype.updateRoute=mi.prototype.vg,mi.prototype.invalidateRoute=mi.prototype.bb,mi.prototype.rollbackRoute=mi.prototype.rv,mi.prototype.commitRoute=mi.prototype.zf,mi.prototype.startRoute=mi.prototype.uh,mi.prototype.clearPoints=mi.prototype.Fj,mi.prototype.removePoint=mi.prototype.pv,mi.prototype.addPointAt=mi.prototype.yf,mi.prototype.addPoint=mi.prototype.ne,mi.prototype.insertPointAt=mi.prototype.m,mi.prototype.insertPoint=mi.prototype.Kz,mi.prototype.setPointAt=mi.prototype.L,mi.prototype.setPoint=mi.prototype.dd,mi.prototype.getPoint=mi.prototype.i,mi.prototype.getOtherPort=mi.prototype.Cz,mi.prototype.getOtherNode=mi.prototype.To;var rg=null,og=null,ey=new Cn(mi,"Normal",1),Ix=new Cn(mi,"Orthogonal",2),Rx=new Cn(mi,"AvoidsNodes",6),aS=new Cn(mi,"AvoidsNodesStraight",7),au=new Cn(mi,"None",0),nc=new Cn(mi,"Bezier",9),Eh=new Cn(mi,"JumpGap",10),jg=new Cn(mi,"JumpOver",11),Np=new Cn(mi,"End",17),n0=new Cn(mi,"Scale",18),i0=new Cn(mi,"Stretch",19),kp=new Cn(mi,"OrientAlong",21),Dp=new Cn(mi,"OrientPlus90",22),Bp=new Cn(mi,"OrientMinus90",23),ty=new Cn(mi,"OrientOpposite",24),r0=new Cn(mi,"OrientUpright",25),Tp=new Cn(mi,"OrientPlus90Upright",26),Op=new Cn(mi,"OrientMinus90Upright",27),o0=new Cn(mi,"OrientUpright45",28),sS=16,lS=14,Ip=8;mi.className="Link",mi.Normal=ey,mi.Orthogonal=Ix,mi.AvoidsNodes=Rx,mi.AvoidsNodesStraight=aS,mi.None=au,mi.Bezier=nc,mi.JumpGap=Eh,mi.JumpOver=jg,mi.End=Np,mi.Scale=n0,mi.Stretch=i0,mi.OrientAlong=kp,mi.OrientPlus90=Dp,mi.OrientMinus90=Bp,mi.OrientOpposite=ty,mi.OrientUpright=r0,mi.OrientPlus90Upright=Tp,mi.OrientMinus90Upright=Op,mi.OrientUpright45=o0,mi.EndSegmentStep=8,mi.CurvinessStart=sS,mi.SpacingMin=lS,mi.OrthoShortCut=Ip;function a0(a,y,x,b){fr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}a0.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},a0.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))}},a0.className="LinkBundle";function Rp(a){fr(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}Rp.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=ny,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 Hg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Dd(a,y,x){return Hg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ny}function uS(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]>=Bf&&(x[b]=ny)}Rp.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]===Ah)return!1}return!0};function Bd(a,y,x,b,E,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var le=y|0,ue=x|0,fe=a.ac[le][ue];if(fe>=Bf&&fe<Wg)for(E?ue+=b:le+=b,fe+=1;z<=le&&le<=ee&&re<=ue&&ue<=oe&&!(fe>=a.ac[le][ue]);)a.ac[le][ue]=fe,fe+=1,E?ue+=b:le+=b;if(le=E?ue:le,E)if(0<b)for(x+=b;x<le;x+=b)Bd(a,y,x,1,!E,z,ee,re,oe),Bd(a,y,x,-1,!E,z,ee,re,oe);else for(x+=b;x>le;x+=b)Bd(a,y,x,1,!E,z,ee,re,oe),Bd(a,y,x,-1,!E,z,ee,re,oe);else if(0<b)for(y+=b;y<le;y+=b)Bd(a,y,x,1,!E,z,ee,re,oe),Bd(a,y,x,-1,!E,z,ee,re,oe);else for(y+=b;y>le;y+=b)Bd(a,y,x,1,!E,z,ee,re,oe),Bd(a,y,x,-1,!E,z,ee,re,oe)}}function s0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var le=Ah,ue=Bf;for(a.ac[y][x]=ue;le===Ah&&y>z&&y<ee&&x>re&&x<oe;)ue+=1,a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function l0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var le=Ah,ue=Wg;for(a.ac[y][x]=ue;le===Ah&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function cS(a,y,x,b,E,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(Hg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var le=b.x,ue=b.y;if(Hg(a,le,ue))if(le-=a.Nd,le/=a.rc,ue-=a.Od,ue/=a.sc,1>=Math.abs(re-le)&&1>=Math.abs(oe-ue))a.abort=!0;else{var fe=z.x;b=z.y,y=z.x+z.width;var xe=z.y+z.height;fe-=a.Nd,fe/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,xe-=a.Od,xe/=a.sc,z=Math.max(0,Math.min(a.di,fe|0)),y=Math.min(a.di,Math.max(0,y|0)),fe=Math.max(0,Math.min(a.ei,b|0)),xe=Math.min(a.ei,Math.max(0,xe|0)),b=a.ac,re|=0,oe|=0,le|=0,ue|=0;var be=x===0||x===90?1:-1;if(x=x===90||x===270,b[re][oe]===Ah?(s0(a,re,oe,be,x,z,y,fe,xe),s0(a,re,oe,1,!x,z,y,fe,xe),s0(a,re,oe,-1,!x,z,y,fe,xe)):s0(a,re,oe,be,x,re,oe,re,oe),b[le][ue]===Ah?(l0(a,le,ue,E===0||E===90?1:-1,E===90||E===270,z,y,fe,xe),l0(a,le,ue,1,!(E===90||E===270),z,y,fe,xe),l0(a,le,ue,-1,!(E===90||E===270),z,y,fe,xe)):l0(a,le,ue,be,x,le,ue,le,ue),x=ci(),ee&&dS(a,le,ue,E,re,oe,x))for((x[0]!==le||x[1]!==ue)&&(x.unshift(ue),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=Bf,E=x[x.length-2],ee=x[x.length-1],b[E][ee]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],ee=x[z+3],y=x[z],le=x[z+1];y>E?E++:y<E?E--:le>ee?ee++:le<ee&&ee--,b[E][ee]=a++,E!==y||ee!==le;);else Bd(a,re,oe,1,!1,z,y,fe,xe),Bd(a,re,oe,-1,!1,z,y,fe,xe),Bd(a,re,oe,1,!0,z,y,fe,xe),Bd(a,re,oe,-1,!0,z,y,fe,xe);Pi(x)}}}}function dS(a,y,x,b,E,z,ee){for(var re=a.ac,oe=y,le=x;;){if(oe===E&&le===z)return!0;var ue=oe,fe=le;if(b===0)if(ue<E)ue++;else break;else if(b===90)if(fe<z)fe++;else break;else if(b===180)if(ue>E)ue--;else break;else if(fe>z)fe--;else break;var xe=re[ue][fe];if(xe===0||xe===iy)break;oe=ue,le=fe}for(;;){if(ue=b,fe=oe,xe=le,b===0?xe<z?(ue=90,xe++):xe>z&&(ue=270,xe--):b===90?fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--):b===180?xe<z?(ue=90,xe++):xe>z&&(ue=270,xe--):fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--),fe=re[fe][xe],ue!==b&&fe!==0&&fe!==iy){if(ee.push(oe),ee.push(le),dS(a,oe,le,ue,E,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][le]=iy,b===0){if(oe===y)return!1;oe--}else if(b===90){if(le===x)return!1;le--}else if(b===180){if(oe===y)return!1;oe++}else{if(le===x)return!1;le++}}}ze.Object.defineProperties(Rp.prototype,{bounds:{get:function(){return new Sn(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 Ah=0,Bf=1,Wg=999999,ny=Wg+1,iy=Wg+2;Rp.className="PositionArray";function ag(){fr(this),this.port=this.node=null,this.pe=[],this.ap=!1}ag.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 zx(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}ag.prototype.Sl=function(){this.pe.length=0};function hS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof Qr?E:null;if(z===null||z.isSubGraphExpanded)var ee=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}b=z,ee=b.Lu()}z=a.pe.length=0;var re=a.port.ga(pa,_e.alloc()),oe=a.port.ga(vl,_e.alloc());for(E=Sn.allocAt(re.x,re.y,0,0),E.Ye(oe),_e.free(re),_e.free(oe),re=_e.allocAt(E.x+E.width/2,E.y+E.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var le=ee.value;if(le.isVisible()&&le.fromPort!==le.toPort){var ue=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(b),fe=le.computeSpot(ue,a.port);if(fe.$c()&&(ue=ue?le.toPort:le.fromPort,ue!==null)){var xe=ue.part;if(xe!==null){var be=xe.findVisibleNode();be!==null&&be!==xe&&(xe=be,ue=xe.port),ue=le.computeOtherPoint(xe,ue),xe=re.ab(ue),xe-=oe,0>xe?xe+=360:360<=xe&&(xe-=360),fe=zx(E,fe,xe,le.isOrthogonal),fe===0?(fe=4,180<xe&&(xe-=360)):fe===90?(fe=8,270<xe&&(xe-=360)):fe===180?fe=2:(fe=1,90>xe&&(xe+=360)),be=a.pe[z],be===void 0?(be=new ry(le,xe,fe),a.pe[z]=be):(be.link=le,be.angle=xe,be.Nc=fe),be.hv.set(ue),z++}}}}for(_e.free(re),a.pe.sort(ag.prototype.j),oe=a.pe.length,b=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==b&&(b=ee.Nc,re=0),ee.Uo=re,re++);for(b=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==b&&(b=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,fe=a.port,b=a.node.portSpreading,re=_e.alloc(),oe=_e.alloc(),ee=_e.alloc(),le=_e.alloc(),fe.ga(pa,re),fe.ga(ml,oe),fe.ga(vl,ee),fe.ga(il,le),be=xe=ue=fe=0,b===Uv)for(var Le=0;Le<z.length;Le++){var Te=z[Le];if(Te!==null){var at=Te.link.computeThickness();switch(Te.Nc){case 8:xe+=at;break;case 2:be+=at;break;case 1:fe+=at;break;default:case 4:ue+=at}}}var Ue=Le=0,vt=1,St=Te=0;for(at=0;at<z.length;at++){var Ft=z[at];if(Ft!==null){if(Le!==Ft.Nc){switch(Le=Ft.Nc,Le){case 8:var Kt=ee;Ue=le;break;case 2:Kt=le,Ue=re;break;case 1:Kt=re,Ue=oe;break;default:case 4:Kt=oe,Ue=ee}switch(Te=Ue.x-Kt.x,St=Ue.y-Kt.y,Le){case 8:xe>Math.abs(Te)?(vt=Math.abs(Te)/xe,xe=Math.abs(Te)):vt=1;break;case 2:be>Math.abs(St)?(vt=Math.abs(St)/be,be=Math.abs(St)):vt=1;break;case 1:fe>Math.abs(Te)?(vt=Math.abs(Te)/fe,fe=Math.abs(Te)):vt=1;break;default:case 4:ue>Math.abs(St)?(vt=Math.abs(St)/ue,ue=Math.abs(St)):vt=1}Ue=0}var pn=Ft.Zo;if(b===Uv){switch(Ft=Ft.link.computeThickness(),Ft*=vt,pn.set(Kt),Le){case 8:pn.x=Kt.x+Te/2+xe/2-Ue-Ft/2;break;case 2:pn.y=Kt.y+St/2+be/2-Ue-Ft/2;break;case 1:pn.x=Kt.x+Te/2-fe/2+Ue+Ft/2;break;default:case 4:pn.y=Kt.y+St/2-ue/2+Ue+Ft/2}Ue+=Ft}else{var ki=.5;b===Qm&&(ki=(Ft.Uo+1)/(Ft.Gl+1)),pn.x=Kt.x+Te*ki,pn.y=Kt.y+St*ki}}}for(_e.free(re),_e.free(oe),_e.free(ee),_e.free(le),Kt=a.pe,z=0;z<Kt.length;z++)b=Kt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Sn.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}ag.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},ag.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Da,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)},ag.className="Knot";function ry(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new _e,this.Gl=this.Uo=0,this.Zo=new _e,this.Ju=0}ry.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()},ry.className="LinkInfo";function Za(a){fr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new _e(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Za.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},Za.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Za.prototype.qb=function(){},Za.prototype.toString=function(){var a=Mi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Za.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())}}},Za.prototype.createNetwork=function(){return new Ea(this)},Za.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof gn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Qr?y.lg(a.memberParts):y.lg(a.iterator),y},Za.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")}},Za.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()}},Za.prototype.doLayout=function(a){var y=new Ln;a instanceof gn?(Jh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Jh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Qr?Jh(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},Za.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,ee=0;for(a=a.iterator;a.next();){var re=a.value;zp(re);var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(b,E),re instanceof Qr&&(re.rh=!1),b+=Math.max(le,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,b=x,E+=ee+20,ee=0):z++}},Za.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,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof mi)&&(zp(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,b),re instanceof Qr&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(oe,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Za.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Qr&&a.rh)};function Jh(a,y,x,b,E,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;b&&!oe.isTopLevel||E!==null&&!E(oe)||!oe.canLayout()||(z&&oe instanceof Ti?oe.isLinkLabel||(oe instanceof Qr&&oe.layout===null?Jh(a,y,oe.memberParts,!1,E,z,ee,re):(zp(oe),y.add(oe))):ee&&oe instanceof mi?y.add(oe):!re||!oe.Zc()||oe instanceof Ti||(zp(oe),y.add(oe)))}}function zp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Za.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Sn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Za.prototype.ex=function(a){var y=new Ln;return a instanceof gn?(Jh(this,y,a.nodes,!0,null,!0,!0,!0),Jh(this,y,a.links,!0,null,!0,!0,!0),Jh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Qr?Jh(this,y,a.memberParts,!1,null,!0,!0,!0):Jh(this,y,a.iterator,!1,null,!0,!0,!0),y},Za.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(pa),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},ze.Object.defineProperties(Za.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())}}}),Za.prototype.collectParts=Za.prototype.ex,Za.prototype.getLayoutBounds=Za.prototype.ni,Za.prototype.invalidateLayout=Za.prototype.C,Za.className="Layout";function Ea(a){fr(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new Oi,this.zs=new Oi}Ea.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 Ln,this.ye=new Ln,this.Es=new Oi,this.zs=new Oi},Ea.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},Ea.prototype.createVertex=function(){return new Xs(this)},Ea.prototype.createEdge=function(){return new Gu(this)},Ea.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof Ti)return!ee.isLinkLabel;if(ee instanceof mi){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Ti&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Qr&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof mi&&(!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))}}},Ea.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},Ae=Ea.prototype,Ae.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ae.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},Ae.Iu=function(a){if(a!==null&&fS(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 fS(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}Ae.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ae.ki=function(a){return a===null?null:this.Es.I(a)},Ae.Bo=function(a){if(a!==null){oy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function oy(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}}Ae.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},Ae.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ay(this,a)}};function ay(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ae.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ae.Lo=function(a){return a===null?null:this.zs.I(a)},Ae.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},Ae.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))}},Ae.Ko=function(){for(var a=ci(),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]);Pi(a)},Ea.prototype.deleteArtificialVertexes=function(){for(var a=ci(),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=ci(),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]);Pi(a),Pi(y)};function jx(a){for(var y=ci(),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]);Pi(y)}Ea.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jx(this),this.Ko()),a=new Dn;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),sy(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 sy(a,y,x){if(x!==null&&x.network!==y){fS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ay(a,E),oy(y,E),sy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ay(a,x),oy(y,x),sy(a,y,x.toVertex))}}Ea.prototype.dz=function(){for(var a=new Ln,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},ze.Object.defineProperties(Ea.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}}}),Ea.prototype.findAllParts=Ea.prototype.dz,Ea.prototype.splitIntoSubNetworks=Ea.prototype.Zx,Ea.prototype.deleteSelfEdges=Ea.prototype.Ko,Ea.prototype.reverseEdge=Ea.prototype.gm,Ea.prototype.linkVertexes=Ea.prototype.Zj,Ea.prototype.findEdge=Ea.prototype.Lo,Ea.prototype.deleteLink=Ea.prototype.Yy,Ea.prototype.deleteEdge=Ea.prototype.Mj,Ea.prototype.addLink=Ea.prototype.Dy,Ea.prototype.addEdge=Ea.prototype.Bo,Ea.prototype.findVertex=Ea.prototype.ki,Ea.prototype.deleteNode=Ea.prototype.Zy,Ea.prototype.deleteVertex=Ea.prototype.Iu,Ea.prototype.addNode=Ea.prototype.Bl,Ea.prototype.addVertex=Ea.prototype.dh,Ea.prototype.addParts=Ea.prototype.lg,Ea.className="LayoutNetwork";function Xs(a){fr(this),this.ob=a,this.j=new Sn(0,0,10,10).freeze(),this.o=new _e(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Dn,this.mg=new Dn}Xs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Dn,this.mg=new Dn},Xs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Cr(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},Xs.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Zt(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Qr)){x=Sn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(So);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),Sn.free(x);return}Sn.free(x)}a.moveTo(y.x,y.y)}},Xs.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Xs.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Xs.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Xs.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ly(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}ze.Object.defineProperties(Xs.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=Sn.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),Sn.free(x),!(a instanceof Qr)&&(a=a.locationObject.ga(So),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 Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ln,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ln,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 Dn,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}}}),Xs.prototype.deleteDestinationEdge=Xs.prototype.Jl,Xs.prototype.addDestinationEdge=Xs.prototype.zl,Xs.prototype.deleteSourceEdge=Xs.prototype.Kl,Xs.prototype.addSourceEdge=Xs.prototype.Cl,Xs.className="LayoutVertex",Xs.standardComparer=ly,Xs.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 Gu(a){fr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Gu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Gu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Cr(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},Gu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Gu.prototype.commit=function(){},Gu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},ze.Object.defineProperties(Gu.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)}}}),Gu.prototype.getOtherVertex=Gu.prototype.Ax,Gu.className="LayoutEdge";function Cl(a){Za.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new zn(NaN,NaN).freeze(),this.tf=new zn(10,10).freeze(),this.Jb=jp,this.Rb=c0,this.nd=Hp,this.hd=gS,a&&Object.assign(this,a)}wt(Cl,Za),Cl.prototype.cloneProtected=function(a){Za.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},Cl.prototype.qb=function(a){a.classType===Cl?a===Hp||a===h0||a===uy||a===d0?this.sorting=a:a===c0||a===rd?this.arrangement=a:a===jp||a===u0?this.alignment=a:ct("Unknown enum value: "+a):Za.prototype.qb.call(this,a)},Cl.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Qr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case d0:E.reverse();break;case Hp:E.sort(this.comparer);break;case h0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(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 u0:var re=y,oe=x,le=Sn.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var fe=ue=0;fe<E.length;fe++){var xe=this.ni(E[fe],le);ue=Math.max(ue,xe.width)}if(ue=Math.max(ue+re,1),fe=Math.max(this.cellSize.height,1),!isFinite(fe))for(xe=fe=0;xe<E.length;xe++){var be=this.ni(E[xe],le);fe=Math.max(fe,be.height)}fe=Math.max(fe+oe,1),xe=this.arrangement;for(var Le=be=this.arrangementOrigin.x,Te=this.arrangementOrigin.y,at=0,Ue=0,vt=0;vt<E.length;vt++){var St=E[vt],Ft=this.ni(St,le),Kt=Math.ceil((Ft.width+re)/ue)*ue,pn=Math.ceil((Ft.height+oe)/fe)*fe;switch(xe){case rd:var ki=Math.abs(Le-Ft.width);break;default:ki=Le+Ft.width}switch((0<z&&at>z-1||0<ee&&0<at&&ki-be>ee)&&(b.push(new Sn(0,Te,ee+re,Ue)),at=0,Le=be,Te+=Ue,Ue=0),Ue=Math.max(Ue,pn),xe){case rd:Ft=-Ft.width;break;default:Ft=0}switch(St.moveTo(Le+Ft,Te),xe){case rd:Le-=Kt;break;default:Le+=Kt}at++}b.push(new Sn(0,Te,ee+re,Ue)),Sn.free(le);break;case jp:for(oe=ee,ue=z,fe=y,xe=x,ee=Sn.alloc(),be=Math.max(this.cellSize.width,1),z=Te=le=0,re=_e.alloc(),Le=0;Le<E.length;Le++)Ue=E[Le],at=this.ni(Ue,ee),Ue=Ph(Ue,Ue.locationObject,Ue.locationSpot,re),le=Math.max(le,Ue.x),Te=Math.max(Te,at.width-Ue.x),z=Math.max(z,Ue.y);switch(Le=this.arrangement,Le){case rd:le+=fe;break;default:Te+=fe}be=isFinite(be)?Math.max(be+fe,1):Math.max(le+Te,1);var Ji=Ue=this.arrangementOrigin.x;for(vt=this.arrangementOrigin.y,Te=0,oe>=le&&(oe-=le),le=St=0,Kt=Math.max(this.cellSize.height,1),Ft=z=0,pn=!0,at=_e.alloc(),ki=0;ki<E.length;ki++){var Ri=E[ki],pi=this.ni(Ri,ee),ni=Ph(Ri,Ri.locationObject,Ri.locationSpot,re);if(0<Te)switch(Le){case rd:Ji=(Ji-Ue-(pi.width-ni.x))/be,Ji=Vt.$(Math.round(Ji),Ji)?Math.round(Ji):Math.floor(Ji),Ji=Ji*be+Ue;break;default:Ji=(Ji-Ue+ni.x)/be,Ji=Vt.$(Math.round(Ji),Ji)?Math.round(Ji):Math.ceil(Ji),Ji=Ji*be+Ue}else switch(Le){case rd:St=Ji+ni.x+pi.width;break;default:St=Ji-ni.x}switch(Le){case rd:var Xr=-(Ji+ni.x)+St;break;default:Xr=Ji+pi.width-ni.x-St}if(0<ue&&Te>ue-1||0<oe&&0<Te&&Xr>oe){for(b.push(new Sn(0,pn?vt-z:vt,oe+fe,Ft+z+xe)),Ji=0;Ji<Te&&ki!==Te;Ji++){Xr=E[ki-Te+Ji];var Rr=Ph(Xr,Xr.locationObject,Xr.locationSpot,at);Xr.moveTo(Xr.position.x,Xr.position.y+z-Rr.y)}Ft+=xe,vt=pn?vt+Ft:vt+(Ft+z),Te=Ft=z=0,Ji=Ue,pn=!1}switch(Ji===Ue&&(le=Le===rd?Math.max(le,pi.width-ni.x):Math.min(le,-ni.x)),z=Math.max(z,ni.y),Ft=Math.max(Ft,pi.height-ni.y),isFinite(Kt)&&(Ft=Math.max(Ft,Math.max(pi.height,Kt)-ni.y)),pn?Ri.moveTo(Ji-ni.x,vt-ni.y):Ri.moveTo(Ji-ni.x,vt),Le){case rd:Ji-=ni.x+fe;break;default:Ji+=pi.width-ni.x+fe}Te++}if(b.push(new Sn(0,vt,oe+fe,(pn?Ft:Ft+z)+xe)),E.length!==Te)for(oe=0;oe<Te;oe++)ue=E[E.length-Te+oe],fe=Ph(ue,ue.locationObject,ue.locationSpot,re),ue.moveTo(ue.position.x,ue.position.y+z-fe.y);if(_e.free(re),_e.free(at),Le===rd)for(E=0;E<b.length;E++)z=b[E],z.width+=le,z.x-=le;else for(E=0;E<b.length;E++)z=b[E],z.x>le&&(z.width+=z.x-le,z.x=le);Sn.free(ee)}for(re=z=ee=E=0;re<b.length;re++)oe=b[re],E=Math.min(E,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===rd?this.commitLayers(b,new _e(E+y/2-(z+E),ee-x/2)):this.commitLayers(b,new _e(E-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Cl.prototype.commitLayers=function(){};function gS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}ze.Object.defineProperties(Cl.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!==jp&&a!==u0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==c0&&a!==rd||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==uy&&a!==d0&&a!==Hp&&a!==h0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var u0=new Cn(Cl,"Position",0),jp=new Cn(Cl,"Location",1),c0=new Cn(Cl,"LeftToRight",2),rd=new Cn(Cl,"RightToLeft",3),uy=new Cn(Cl,"Forward",4),d0=new Cn(Cl,"Reverse",5),Hp=new Cn(Cl,"Ascending",6),h0=new Cn(Cl,"Descending",7);Cl.className="GridLayout",Cl.standardComparer=gS,Cl.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},Cl.Position=u0,Cl.Location=jp,Cl.LeftToRight=c0,Cl.RightToLeft=rd,Cl.Forward=uy,Cl.Reverse=d0,Cl.Ascending=Hp,Cl.Descending=h0;function aa(){this.On=new Ln,this.Dn=new Ln,this.Pa=new Ln,this.cf=new Oi,this.bf=new Oi,this.aj=new Oi,this.H=null,this.tp=!1}Ae=aa.prototype,Ae.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ae.Xe=function(a){this.H=a},Ae.oi=function(a){if(a instanceof Ti){if(this.On.add(a),a instanceof Qr){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof mi?this.Dn.add(a):a instanceof Uo||this.Pa.add(a);y=a.data,y===null||a instanceof Uo||(a instanceof mi?this.bf.add(y,a):this.cf.add(y,a))},Ae.pc=function(a){if(a.Ej(),a instanceof Ti){if(this.On.remove(a),a instanceof Qr){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof mi?this.Dn.remove(a):a instanceof Uo||this.Pa.remove(a);y=a.data,y===null||a instanceof Uo||(a instanceof mi?this.bf.remove(y):this.cf.remove(y))},Ae.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof Qr)&&ct('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Qr||ct('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 mi||ct('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=ci(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=ci(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=ci(),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]);Pi(y),Pi(x),Pi(a)}},aa.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},aa.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&pS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&Wh(this.diagram,!1)};function pS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=mS(a,y,b);if(E!==null&&(Nc(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 e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}aa.prototype.insertLink=function(){return null},aa.prototype.resolveReferencesForData=function(){},aa.prototype.Ro=function(a){return this.H.model.Ro(a)};function mS(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&&(SS||(SS=!0,_n('No Group template found for category "'+x+'"'),_n(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yS||(yS=!0,_n('No Node template found for category "'+x+'"'),_n(" Using default node template")),y=a.ny))),y}aa.prototype.getLinkCategoryForData=function(){return""},aa.prototype.setLinkCategoryForData=function(){},aa.prototype.setFromNodeForLink=function(){},aa.prototype.setToNodeForLink=function(){},aa.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(xS||(xS=!0,_n('No Link template found for category "'+a+'"'),_n(" Using default link template")),x=y.my)),x},aa.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},aa.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},aa.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Jd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},aa.prototype.unresolveReferencesForPart=function(){},aa.prototype.removeDataForLink=function(){},aa.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},aa.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Ti?a:null)},aa.prototype.findLinkForKey=function(){return null},Ae=aa.prototype,Ae.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ae.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Ti?a:null)},Ae.Kc=function(a){return a===null?null:this.bf.I(a)},Ae.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;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 ee=arguments[z];if(Zt(ee)&&cy(this,E,ee)){y.add(b);break}}}return y.iterator},Ae.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;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 ee=arguments[z];if(Zt(ee)&&cy(this,E,ee)){y.add(b);break}}}return y.iterator};function cy(a,y,x){for(var b in x){var E=y[b],z=x[b];if(rn(z)){if(!rn(E)||E.length<z.length)return!1;for(var ee=0;ee<E.length;ee++){var re=z[ee];if(re!==void 0&&!vS(a,E[ee],re))return!1}}else if(!vS(a,E,z))return!1}return!0}function vS(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(Zt(y)&&Zt(x)){if(!cy(a,y,x))return!1}else if(y!==x)return!1;return!0}aa.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===ui){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===fi){var ee=a.newValue;b==="nodeDataArray"&&Zt(ee)&&pS(this,ee),y.isModified=!0}else if(x===Ni){var re=a.oldValue;b==="nodeDataArray"&&Zt(re)&&this.ip(re),y.isModified=!0}else x===Wn&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===ui){var oe=a.propertyName,le=a.object;le===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,oe),y.isModified=!0}else if(x===fi||x===Ni){var ue=a.change===fi,fe=ue?a.newParam:a.oldParam,xe=ue?a.newValue:a.oldValue,be=this.aj.I(a.object);if(Array.isArray(be))for(a=0;a<be.length;a++){var Le=be[a];if(ue)km(Le,xe,fe,!0);else if(!(0>fe)){var Te=fe+wp(Le);Le.pc(Te,!0),bv(Le,Te,fe)}}y.isModified=!0}}finally{y.aa=!0}}}}},aa.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)},aa.prototype.rp=function(){for(var a=this.H.model,y=new Ln,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),E.forEach(function(ee){FS(a,ee,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&MS(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()},aa.prototype.refreshDataBoundLinks=function(){},aa.prototype.updateRelationshipsFromData=function(){},aa.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 ee=E[z].sx(a);ee!==null&&(x===null&&(x=ci()),x.push(ee))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Pi(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function dy(a,y){var x=y.Hh;if(rn(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 hy(a,y,x){Mf(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)Gf(x,ee[oe])});var b=y.Hh;if(rn(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}}}}aa.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Oi;if(rn(a))for(var E=0;E<a.length;E++)f0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)f0(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 Ln;for(var z=new Oi,ee=b.iterator;ee.next();){var re=ee.value;if(re instanceof mi)a||re.fromNode!==null&&re.toNode!==null||E.add(re);else if(re instanceof Ti&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var le=re.pg();le!==null&&(le=b.I(le),le!==null?(x.qe(oe.data,x.wa(le.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.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 ue=new Oi;b.each(function(fe){fe.key.data!==null&&ue.add(fe.key.data,fe.value.data)}),x(ue,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function f0(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 dr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Ti){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=b.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=b.I(re),re!==null&&(re.toNode=z))}if(y instanceof Qr&&z instanceof Qr)for(y=y.memberParts;y.next();)ee=f0(a,y.value,x,b,E),ee instanceof mi||ee===null||(ee.containingGroup=z)}else if(y instanceof mi&&z instanceof mi)for(ee=y.fromNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=f0(a,y.value,x,b,E),ee!==null&&ee instanceof Ti&&(ee.labeledLink=z);return z}aa.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof mi||(b=E.copyNodeData(b),Zt(b)&&(E.xf(b),x=y.Lc(b)))}else Nc(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 mi||(E=y.copyNodeData(b)),Zt(E)&&(x.data=E)));return x},ze.Object.defineProperties(aa.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}}}),aa.prototype.updateAllRelationshipsFromData=aa.prototype.rp,aa.prototype.findLinksByExample=aa.prototype.ls,aa.prototype.findNodesByExample=aa.prototype.ms,aa.prototype.findLinkForData=aa.prototype.Kc,aa.prototype.findNodeForData=aa.prototype.ii,aa.prototype.findPartForData=aa.prototype.Lc,aa.prototype.findNodeForKey=aa.prototype.Vb,aa.prototype.removeModeledPart=aa.prototype.ip,aa.prototype.removeModeledParts=aa.prototype.Gs,aa.prototype.rebuildParts=aa.prototype.Wd;var yS=!1,SS=!1,xS=!1;aa.className="PartManager";function ul(a){aa.apply(this,arguments)}wt(ul,aa),ul.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),wS(this,a.linkDataArray)},ul.prototype.addModeledParts=function(a){for(aa.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Rg(a.value);Wh(this.diagram,!1)};function wS(a,y){y.forEach(function(x){PS(a,x)}),Wh(a.diagram,!1)}function PS(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){Nc(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=v0(x,y,!0);z!==""&&(E.fromPortId=z),z=ic(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Ti&&(E.fromNode=z)),z=v0(x,y,!1),z!==""&&(E.toPortId=z),z=ic(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Ti&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}ul.prototype.removeAllModeledParts=function(){var a=this.diagram.model;CS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function CS(a,y){y.forEach(function(x){a.ip(x)})}ul.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ul.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ul.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ul.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ul.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ul.prototype.findPartForKey=function(a){var y=aa.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ul.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ul.prototype.doModelChanged=function(a){var y=this;if(aa.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===ui){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(E==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(E==="linkFromPortId"){var le=this.Kc(a.object);if(le!==null){var ue=a.newValue;typeof ue=="string"&&(le.fromPortId=ue)}}else if(E==="linkToPortId"){var fe=this.Kc(a.object);if(fe!==null){var xe=a.newValue;typeof xe=="string"&&(fe.toPortId=xe)}}else if(E==="nodeGroupKey"){var be=this.Lc(a.object);if(be!==null){var Le=a.newValue;if(Le!==void 0){var Te=this.Vb(Le);Te instanceof Qr?be.containingGroup=Te:be.containingGroup=null}else be.containingGroup=null}}else if(E==="linkLabelKeys"){var at=this.Kc(a.object);if(at!==null){var Ue=a.oldValue,vt=a.newValue;Array.isArray(Ue)&&Ue.forEach(function(ni){0<=vt.indexOf(ni)||(ni=y.Vb(ni),ni!==null&&(ni.labeledLink=null))}),Array.isArray(vt)&&vt.forEach(function(ni){ni=y.Vb(ni),ni!==null&&(ni.labeledLink=at)})}}else if(E==="linkCategory"){var St=this.Kc(a.object),Ft=a.newValue;St!==null&&typeof Ft=="string"&&(St.category=Ft)}else E==="linkDataArray"&&(CS(this,a.oldValue),wS(this,a.newValue));x.isModified=!0}else if(b===fi){var Kt=a.newValue;if(E==="linkDataArray"&&typeof Kt=="object"&&Kt!==null)PS(this,Kt);else if(E==="linkLabelKeys"&&_h(Kt)){var pn=this.Kc(a.object),ki=this.Vb(Kt);pn!==null&&ki!==null&&(ki.labeledLink=pn)}x.isModified=!0}else if(b===Ni){var Ji=a.oldValue;if(E==="linkDataArray"&&typeof Ji=="object"&&Ji!==null)this.ip(Ji);else if(E==="linkLabelKeys"&&_h(Ji)){var Ri=this.Vb(Ji);Ri!==null&&(Ri.labeledLink=null)}x.isModified=!0}}else if(b===ui){var pi=a.propertyName;a.object!==x.model||pi!=="linkFromKeyProperty"&&pi!=="linkToKeyProperty"&&pi!=="linkFromPortIdProperty"&&pi!=="linkToPortIdProperty"&&pi!=="linkLabelKeysProperty"&&pi!=="nodeIsGroupProperty"&&pi!=="nodeGroupKeyProperty"&&pi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ul.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ln,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){OS(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&TS(y,z,!1)})},ul.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 mi){var E=ic(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=ic(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 Ln().addAll(y);var ee=new Ln;a.labelNodes.each(function(re){re.data!==null&&(re=b.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(E),E=E.copy(),E.hp(ee),(0<y.count||0<E.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),E.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Uo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Qr)&&(a.containingGroup=y)}}},ul.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Wp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var ee=b.value;y.lb(ee)?E instanceof Qr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=E)):(z.link=this.Kc(ee),z.link!==null&&E instanceof Ti&&(ic(y,ee,!0)===x&&(z.link.fromNode=E),ic(y,ee,!1)===x&&(z.link.toNode=E),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(E.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}ad(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Qr&&(E.containingGroup=a))}},ul.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ti){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)od(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&od(y,x,b.data)),a instanceof Qr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&od(y,x,b)}}},ul.prototype.copyPartData=function(a,y){var x=aa.prototype.copyPartData.call(this,a,y);if(a instanceof mi)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},ul.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,ee=E.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ee.archetypeLinkData,b instanceof mi){if(Nc(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,E.add(z),a=ee.archetypeLabelNodeData,a instanceof Ti&&(Nc(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&&Kg(z,b,z.wa(a.data),!0),Vg(z,b,re,!0),x!==null&&Kg(z,b,z.wa(x.data),!1),Vg(z,b,y,!1),z.fi(b),a=ee.archetypeLabelNodeData,a===null||a instanceof Ti||(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},ul.prototype.findLinkForKey=ul.prototype.findLinkForKey,ul.prototype.findPartForKey=ul.prototype.findPartForKey,ul.prototype.removeAllModeledParts=ul.prototype.removeAllModeledParts,ul.prototype.addModeledParts=ul.prototype.addModeledParts,ul.prototype.addAllModeledParts=ul.prototype.addAllModeledParts,ul.className="GraphLinksPartManager";function pc(){aa.apply(this,arguments),this.Sg=null}wt(pc,aa);function g0(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||!Yn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Nc(b),b=b.copy(),b!==null))){var ee=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=ee}}}pc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},pc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},pc.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}},pc.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))},pc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},pc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},pc.prototype.doModelChanged=function(a){if(aa.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===ui){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),ee=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:g0(this,z,ee)}}else if(b==="parentLinkCategory"){var oe=this.ii(a.object),le=a.newValue;if(oe!==null&&typeof le=="string"){var ue=oe.kh();ue!==null&&(ue.category=le)}}y.isModified=!0}}else if(x===ui){var fe=a.propertyName;a.object===y.model&&fe==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},pc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Ti&&(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:g0(this,y,a):b!==null&&Jd(x,b,!1)))}}},pc.prototype.updateDataBindings=function(a,y){aa.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},pc.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Wp(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 Ti&&y.mh(z)===x&&g0(this,E,this.ii(z))}ad(y,x)}a=y.mh(a),a!==void 0&&E instanceof Ti&&(a=this.Vb(a),g0(this,a,E))}},pc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ti){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(Ni,"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)&&od(y,x,E)}},pc.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},pc.prototype.findLinkForKey=pc.prototype.findLinkForKey,pc.className="TreePartManager";function tr(a,y){this.kl=new Ln,this.il=new Ln,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,fr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Oi,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 Oi,this.Lt=new Dn,this.Wg=!1,this.o=null,this.undoManager=new Fi,a!==void 0&&(rn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}tr.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},tr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},tr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},tr.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)+":"+ji(E)}}return y},tr.prototype.xA=function(a){a.change!==Wn&&ct("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof ar?(ES(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},tr.prototype.Qv=function(a,y){var x=this,b=!1,E=new Ln,z=new Ln,ee=new Ln,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===fi?E.add(fe.newValue):fe.change===Ni&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==ui||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(xe){x.lb(xe)&&z.add(xe)}):fe.object instanceof tr||x.ri()&&x.Jc(fe.object)||AS(x,fe.object).each(function(xe){z.add(xe)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(fe){oe.add(x.wa(fe)),y||z.add(fe)});var le=this.kl;le.clear(),ee.each(function(fe){le.add(x.wa(fe)),y&&z.add(fe)}),a=x.cloneDeep(z.Fa());var ue=null;return b&&(ue===null&&(ue={}),ue.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(ue===null&&(ue={}),y?ue.removedNodeKeys=oe.Fa():ue.insertedNodeKeys=oe.Fa()),0<a.length&&(ue===null&&(ue={}),ue.modifiedNodeData=a),0<le.count&&(ue===null&&(ue={}),y?ue.insertedNodeKeys=le.Fa():ue.removedNodeKeys=le.Fa()),le.clear(),oe.clear(),ue},tr.prototype.cloneDeep=function(a){return Zg(this,a,!0)};function Zg(a,y,x,b,E,z){function ee(fe,xe){re?(fe.__gohashid===void 0&&z.push(fe),b.set(fe,xe)):(fe=Do++,b.set(fe,xe),E.set(fe,y))}if(!Zt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new Oi),re){var oe=b.get(y);if(oe)return oe}else for(E||(E=new Oi),oe=E.iterator;oe.next();){var le=oe.key;if(oe.value===y&&(le=b.get(le)))return le}if(Array.isArray(y)){oe=[],ee(y,oe);for(var ue=0;ue<y.length;ue++)oe.push(Zg(a,y[ue],!1,b,E,z))}else if(y instanceof _e||y instanceof zn||y instanceof Sn||y instanceof Hi||y instanceof Gi)oe=y.copy(),ee(y,oe);else{if(y instanceof ra||y instanceof gi||y instanceof Cn)return y;if(y instanceof Dn)oe=new Dn().addAll(Zg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof Ln)oe=new Ln().addAll(Zg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof Oi)oe=new Oi().addAll(Zg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(ue in oe={},ee(y,oe),y)ue!=="__gohashid"&&(oe[ue]=Zg(a,y[ue],!1,b,E,z))}return x&&z.forEach(function(fe){delete fe.__gohashid}),oe}Ae=tr.prototype,Ae.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ae.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},Ae.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 bS(a,y){y=y.modelData,Zt(y)&&(a.dm(y),a.modelData=y)}Ae.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!LS(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+fy(this,this.modelData)),a+`,
"nodeDataArray": `+Qh(this,this.nodeDataArray,!0)},Ae.kv=function(a){bS(this,a),a=a.nodeDataArray,rn(a)&&(this.dm(a),this.nodeDataArray=a)};function ES(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var ee=b.get(E);ee===null?(ee=new Ln,ee.add(z),b.add(E,ee)):ee.add(z)}}var b=a.vh;b===null&&(b=new Oi,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===ui?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===fi||z===Ni)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function AS(a,y){for(var x=new Ln,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];p0(a,y,E,E,x)}return x}function p0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ee=x[z];if(ee===y)return E.add(b),!0;if(p0(a,y,ee,b,E))return!0}else if(Zt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return E.add(b),!0;if(p0(a,y,ee,b,E))return!0}return!1}Ae.Pv=function(a,y){var x=this,b=!1,E=new Ln,z=new Ln,ee=new Ln,re=this.vh;a.changes.each(function(ue){ue.model===x&&(ue.modelChange==="nodeDataArray"?ue.change===fi?E.add(ue.newValue):ue.change===Ni&&ee.add(ue.oldValue):x.lb(ue.object)?z.add(ue.object):ue.change!==ui||x.modelData!==ue.object&&ue.propertyName!=="modelData"?ue.object!==null&&(re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){x.lb(fe)&&z.add(fe)}):ue.object instanceof tr||x.ri()&&x.Jc(ue.object)||AS(x,ue.object).each(function(fe){z.add(fe)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(x.wa(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(x.wa(ue)),y&&z.add(ue)}),a="",b&&(a+=`,
"modelData": `+fy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+Qh(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+Qh(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+Qh(this,le.Fa(),!0)),le.clear(),oe.clear(),a},Ae.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)&&ct("applyIncrementalJson cannot change Model properties"),bS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Oi;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],ee=this.wa(z);ee!=null&&b.set(ee,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=b.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}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 oe in E)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,E[oe]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Ae.$x=function(a,y){a.change!==Wn&&ct("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof ar?(y===void 0&&(y=Zp(this,this)),ES(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 }'},Ae.yA=function(a,y){return this.$x(a,y)},Ae.np=function(a){return a===void 0&&(a=Zp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ae.toJSON=function(a){return this.np(a)},Ae.Zw=function(a){var y=null;if(typeof a=="string")try{y=Qe.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:ct("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&ct("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ae.Ky=function(a){return this.Zw(a)},tr.constructGraphLinksModel=function(){return new tr},Ae=tr.prototype,Ae.dm=function(a){if(rn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Zt(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:ct("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(Zt(a)){for(y in a)if(x=a[y],Zt(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 Dn,b=0;b<x.length/2;b++)E.add(new _e(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Hx(a)}return a},Ae.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()):rn(a)?Qh(this,a):Zt(a)?fy(this,a):typeof a=="function"?"null":a.toString()};function Qh(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Ki;E.add("["),x&&1<b&&E.add(`
`);for(var z=0;z<b;z++){var ee=y[z];ee!==void 0&&(0<z&&(E.add(","),x&&E.add(`
`)),E.add(a.sm(ee)))}return x&&1<b&&E.add(`
`),E.add("]"),E.toString()}function LS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function su(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function fy(a,y){var x=y;if(x instanceof _e)y={class:"go.Point",x:su(x.x),y:su(x.y)};else if(x instanceof zn)y={class:"go.Size",width:su(x.width),height:su(x.height)};else if(x instanceof Sn)y={class:"go.Rect",x:su(x.x),y:su(x.y),width:su(x.width),height:su(x.height)};else if(x instanceof Hi)y={class:"go.Margin",top:su(x.top),right:su(x.right),bottom:su(x.bottom),left:su(x.left)};else if(x instanceof Gi)x.sb()?y={class:"go.Spot",x:su(x.x),y:su(x.y),offsetX:su(x.offsetX),offsetY:su(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof ra){if(y={class:"go.Brush",type:x.type.name},x.type===Sh?y.color=x.color:(x.type===qd||x.type===fc)&&(y.start=x.start,y.end=x.end,x.type===fc&&(x.startRadius!==0&&(y.startRadius=su(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=su(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 gi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=su(x.startX)),x.startY!==0&&(y.startY=su(x.startY)),x.endX!==0&&(y.endX=su(x.endX)),x.endY!==0&&(y.endY=su(x.endY)),x.spot1.D(pa)||(y.spot1=x.spot1),x.spot2.D(vl)||(y.spot2=x.spot2),x.type===gi.o&&(y.path=gi.ia(x))):x instanceof Cn&&(y={class:"go.EnumValue",classType:Zp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=As(y,E);if(!LS(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Dn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",b+=ee}else b+=a.sm(z)}return b+"}"}function lu(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Hx(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 _e(lu(a.x),lu(a.y));else if(y==="Size")x=new zn(lu(a.width),lu(a.height));else if(y==="Rect")x=new Sn(lu(a.x),lu(a.y),lu(a.width),lu(a.height));else if(y==="Margin")x=new Hi(lu(a.top),lu(a.right),lu(a.bottom),lu(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Hu(a.enum):x=new Gi(lu(a.x),lu(a.y),lu(a.offsetX),lu(a.offsetY));else if(y==="Brush"){if(x=new ra,x.type=di(ra,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Gi&&(x.start=a.start),a.end instanceof Gi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=lu(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=lu(a.endRadius)),a=a.colorStops,Zt(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=gi.parse(a.path):x=new gi,x.type=di(gi,a.type),typeof a.startX=="number"&&(x.startX=lu(a.startX)),typeof a.startY=="number"&&(x.startY=lu(a.startY)),typeof a.endX=="number"&&(x.endX=lu(a.endX)),typeof a.endY=="number"&&(x.endY=lu(a.endY)),a.spot1 instanceof Gi&&(x.spot1=a.spot1),a.spot2 instanceof Gi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=py(b),typeof b=="function"&&(x=di(b,a.name)));return x}Ae.Pe=function(a){return this.Lt.add(a),this},Ae.ik=function(a){this.Lt.remove(a)},Ae.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)},Ae.cb=function(a,y,x,b,E,z,ee){Ws(this,"",a,y,x,b,E,z,ee)},Ae.g=function(a,y,x,b,E){Ws(this,"",ui,a,this,y,x,b,E)},Ae.Fs=function(a,y,x,b,E,z){Ws(this,"",ui,y,a,x,b,E,z)};function Ws(a,y,x,b,E,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var le=new In;le.model=a,le.change=x,le.modelChange=y,le.propertyName=b,le.object=E,le.oldValue=z,le.oldParam=re,le.newValue=ee,le.newParam=oe,a.ds(le)}tr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===ui){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)),ja(x,b,E)}else a.change===fi?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Zt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&yi(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&Ci(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!rn(b)&&a.propertyName&&(b=As(a.object,a.propertyName)),rn(b)&&typeof x=="number"&&(a=a.newValue,y?yi(b,x):Ci(b,x,a))):ct("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ni?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Zt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&Ci(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&yi(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!rn(b)&&a.propertyName&&(b=As(a.object,a.propertyName)),rn(b)&&typeof x=="number"&&(a=a.oldValue,y?Ci(b,x,a):yi(b,x))):ct("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Wn&&ct("unknown ChangedEvent: "+a.toString())},tr.prototype.Ea=function(a){return this.undoManager.Ea(a)},tr.prototype.eb=function(a){return this.undoManager.eb(a)},tr.prototype.Kf=function(){return this.undoManager.Kf()},tr.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}},Ae=tr.prototype,Ae.La=function(a,y){y===void 0&&(y=""),Ws(this,"SourceChanged",Wn,y,a,null,null)},Ae.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;ct("Key value for node data "+a+" is not a number or a string: "+y)}}},Ae.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=As(a,x);b!==y&&this.hc(y)===null&&(ja(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ws(this,"nodeKey",ui,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else ja(a,x,y)}};function _h(a){return typeof a=="number"||typeof a=="string"}Ae.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ae.hc=function(a){return a===null&&ct("Model.findNodeDataForKey:key must not be null"),a!==void 0&&_h(a)?this.kb.I(a):null},Ae.$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))){ja(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;ja(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;ja(a,y,x)}}}}},Ae.xf=function(a){a!==null&&(Ur(a),this.lb(a)||MS(this,a,!0))};function MS(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&&ct("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,Ci(a.Tc,b,y)),Ws(a,"nodeDataArray",fi,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Ae.Fy=function(a){if(rn(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)},Ae.cm=function(a){a!==null&&FS(this,a,!0)};function FS(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){e: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 e}b=-1}if(0>b)return;yi(a.Tc,b)}Ws(a,"nodeDataArray",Ni,"nodeDataArray",a,y,null,b,null),a.qp(y)}Ae.nA=function(a){if(rn(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)},Ae.$z=function(a){if(a!==this.nodeDataArray&&rn(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],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Ae.jp=function(a,y){y!==void 0&&(a=Wp(this,a),a instanceof Ln&&this.Vf.add(y,a))},Ae.Lv=function(){},Ae.fm=function(){},Ae.em=function(){},Ae.qp=function(){};function od(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ln,a.Vf.add(y,b)),b.add(x)}}function ad(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Ln&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Wp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Ln?a:null)}Ae.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},tr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):m0(this,a,!0),Zt(a)&&fr(a),a};function m0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=m0(a,y[x],a.copiesArrayObjects);b.push(E)}return fr(b),b}if(x&&Zt(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=As(y,b),ee=Zp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof tr||z instanceof Fi||z instanceof ar||z instanceof In||(z=m0(a,z,!1)),ja(x,b,z)}return fr(x),x}return y instanceof _e||y instanceof zn||y instanceof Sn||y instanceof Gi||y instanceof Hi?y.copy():y}tr.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!NS&&a instanceof Gt&&(NS=!0,_n('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),_n(" Is that really your intent?"));var b=As(a,y);b!==x&&(ja(a,y,x),this.Fs(a,y,b,x))},Ae=tr.prototype,Ae.set=function(a,y,x){this.setDataProperty(a,y,x)},Ae.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])}},Ae.Ay=function(a,y){this.ts(a,-1,y)},Ae.ts=function(a,y,x){0>y&&(y=a.length),Ci(a,y,x),Ws(this,"",fi,"",a,null,x,null,y)},Ae.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ct("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];yi(a,y),Ws(this,"",Ni,"",a,x,null,y,null)},Ae.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=As(a,y),y===void 0))return"";if(typeof y=="string")return y;ct("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ae.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(ja(a,x,y),Ws(this,"nodeCategory",ui,x,a,b,y))}else ja(a,x,y)}},Ae.lm=function(a,y){this.jm(y,this.Ro(a))},Ae.Tl=function(){return!1},Ae.Wj=function(){return!1},Ae.ri=function(){return!1},Ae.xs=function(){return!1},Ae.Xj=function(){return!1};function gy(){return new tr}function Zp(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 Zp(a,y.constructor);return typeof y}function py(a){return Vc[a]?Vc[a]:Qe.go!==void 0&&Qe.go[a]?Qe.go[a]:null}function As(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 ja(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){}}ze.Object.defineProperties(tr.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===""&&ct("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&ct("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];Zt(E)||ct("Model.nodeDataArray must only contain Objects, not: "+E),Ur(E)}for(this.Tc=a,b=new Dn,E=0;E<x;E++){var z=a[E],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?b.add(z):this.kb.add(ee,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(Ws(this,"nodeDataArray",ui,"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"}}}),tr.prototype.setCategoryForNodeData=tr.prototype.jm,tr.prototype.getCategoryForNodeData=tr.prototype.Ro,tr.prototype.removeArrayItem=tr.prototype.ov,tr.prototype.insertArrayItem=tr.prototype.ts,tr.prototype.addArrayItem=tr.prototype.Ay,tr.prototype.assignAllDataProperties=tr.prototype.Do,tr.prototype.set=tr.prototype.set,tr.prototype.clearUnresolvedReferences=tr.prototype.Qy,tr.prototype.mergeNodeDataArray=tr.prototype.$z,tr.prototype.removeNodeDataCollection=tr.prototype.nA,tr.prototype.removeNodeData=tr.prototype.cm,tr.prototype.addNodeDataCollection=tr.prototype.Fy,tr.prototype.addNodeData=tr.prototype.xf,tr.prototype.makeNodeDataKeyUnique=tr.prototype.$u,tr.prototype.findNodeDataForKey=tr.prototype.hc,tr.prototype.containsNodeData=tr.prototype.lb,tr.prototype.setKeyForNodeData=tr.prototype.km,tr.prototype.getKeyForNodeData=tr.prototype.wa,tr.prototype.updateTargetBindings=tr.prototype.La,tr.prototype.commit=tr.prototype.commit,tr.prototype.rollbackTransaction=tr.prototype.Kf,tr.prototype.commitTransaction=tr.prototype.eb,tr.prototype.startTransaction=tr.prototype.Ea,tr.prototype.raiseDataChanged=tr.prototype.Fs,tr.prototype.raiseChanged=tr.prototype.g,tr.prototype.raiseChangedEvent=tr.prototype.cb,tr.prototype.removeChangedListener=tr.prototype.ik,tr.prototype.addChangedListener=tr.prototype.Pe,tr.prototype.writeJsonValue=tr.prototype.sm,tr.prototype.replaceJsonObjects=tr.prototype.dm,tr.prototype.applyIncrementalJSON=tr.prototype.Ky,tr.prototype.applyIncrementalJson=tr.prototype.Zw,tr.prototype.toJSON=tr.prototype.toJSON,tr.prototype.toJson=tr.prototype.np,tr.prototype.toIncrementalJSON=tr.prototype.yA,tr.prototype.toIncrementalJson=tr.prototype.$x,tr.prototype.toIncrementalData=tr.prototype.xA,tr.prototype.clear=tr.prototype.clear;var NS=!1,Vc={};tr.className="Model",tr.fromJSON=tr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Qe.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:ct("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=py(b)):(E=py(b),E===null&&(E=Qe[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof tr?y=a:ct("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=tr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},tr.safePropertyValue=As,tr.safePropertySet=ja,Vc.Brush=ra,Vc.ChangedEvent=In,Vc.Geometry=gi,Vc.Margin=Hi,Vc.Panel=hi,Vc.Point=_e,Vc.Rect=Sn,Vc.Size=zn,Vc.Spot=Gi,Vc.Transaction=ar,Vc.UndoManager=Fi;function Fs(a,y,x,b){fr(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=DS,this.wk=null):(this.el=Kp,this.wk=b),this.st=new Ln}Fs.prototype.copy=function(){var a=new Fs;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},Ae=Fs.prototype,Ae.qb=function(a){a.classType===Fs&&(this.mode=a)},Ae.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ae.freeze=function(){return this._isFrozen=!0,this},Ae.ka=function(){return this._isFrozen=!1,this},Ae.Kx=function(a){return a===void 0&&(a=null),this.mode=Kp,this.backConverter=a,this},Ae.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ae.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function kS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ae.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==="")_n("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=As(y,b)),z!==void 0)if(E===null)x!==""&&ja(a,x,z);else try{if(x!==""){var ee=E(z,a);ja(a,x,ee)}else E(z,a)}catch(re){}}}},Ae.sp=function(a,y,x,b){if(this.el===Kp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,ee=a;if(E!==""&&(ee=As(a,E)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=b!==null?b.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):ja(y,x,ee);else if(oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var le=b.itemIndex,ue=b.panel.itemArray;oe.ov(ue,le),oe.ts(ue,le,ee)}}else try{if(x!==""){var fe=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,fe):ja(y,x,fe)}else{var xe=z(ee,y,oe);if(xe!==void 0&&oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var be=b.itemIndex,Le=b.panel.itemArray;oe.ov(Le,be),oe.ts(Le,be,xe)}}}catch(Te){}}finally{this.st.remove(a)}}}},ze.Object.defineProperties(Fs.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&sn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&sn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&sn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&sn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&sn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&sn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&sn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&sn(this),this.el=a}}}),Fs.prototype.updateSource=Fs.prototype.sp,Fs.prototype.updateTarget=Fs.prototype.Mv,Fs.prototype.ofModel=Fs.prototype.dA,Fs.prototype.ofObject=Fs.prototype.cp,Fs.prototype.makeTwoWay=Fs.prototype.Kx;var Wx="Binding",DS=new Cn(Fs,"OneWay",1),Kp=new Cn(Fs,"TwoWay",2);Fs.className="Binding",Fs.parseEnum=function(a,y){return function(x){return x=di(a,x),x===null?y:x}},Fs.toString=ji,Fs.OneWay=DS,Fs.TwoWay=Kp;function To(a,y,x){tr.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Ln,this.wb=new Oi,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&&(rn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}wt(To,tr),To.constructGraphLinksModel=tr.constructGraphLinksModel,To.prototype.cloneProtected=function(a){tr.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},Ae=To.prototype,Ae.clear=function(){tr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ae.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)+":"+ji(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+ic(this,E,!0)+"-->"+ic(this,E,!1)}return y},Ae.Qv=function(a,y){this.linkKeyProperty===""&&ct("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=tr.prototype.Qv.call(this,a,y),b=this,E=new Ln,z=new Ln,ee=new Ln,re=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===fi?E.add(ue.newValue):ue.change===Ni&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof tr||b.lb(ue.object)||BS(b,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(b.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(b.Ac(ue)),y&&z.add(ue)}),a=b.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<le.count&&(x===null&&(x={}),y?x.insertedLinkKeys=le.Fa():x.removedLinkKeys=le.Fa()),le.clear(),oe.clear(),x},Ae.rm=function(){var a=tr.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},Ae.gp=function(a){tr.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)},Ae.Rv=function(){var a=tr.prototype.Rv.call(this),y=`,
"linkDataArray": `+Qh(this,this.linkDataArray,!0);return a+y},Ae.kv=function(a){tr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function BS(a,y){for(var x=new Ln,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];p0(a,y,E,E,x)}return x}Ae.Pv=function(a,y){this.linkKeyProperty===""&&ct("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=tr.prototype.Pv.call(this,a,y),b=this,E=new Ln,z=new Ln,ee=new Ln,re=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===fi?E.add(ue.newValue):ue.change===Ni&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof tr||b.lb(ue.object)||BS(b,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(b.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(b.Ac(ue)),y&&z.add(ue)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+Qh(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+Qh(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+Qh(this,le.Fa(),!0)),le.clear(),oe.clear(),a},Ae.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)&&ct("applyIncrementalJson cannot change Model properties"),tr.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 ee in E)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,E[ee]);IS(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},To.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===ui){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),ja(x,b,E);return}}else if(a.change===fi){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Zt(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===Ni){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Zt(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}}tr.prototype.changeState.call(this,a,y)}},Ae=To.prototype,Ae.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),ja(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ae.yx=function(a){return ic(this,a,!0)},Ae.wv=function(a,y){Kg(this,a,y,!0)},Ae.Bx=function(a){return ic(this,a,!1)},Ae.Bv=function(a,y){Kg(this,a,y,!1)};function ic(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=As(y,a),a!==void 0))){if(_h(a))return a;ct((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Kg(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=As(y,E);z!==x&&(ad(a,z,y),ja(y,E,x),a.hc(x)===null&&od(a,x,y),Ws(a,b?"linkFromKey":"linkToKey",ui,E,y,z,x),typeof E=="string"&&a.La(y,E))}else ja(y,E,x)}}Ae.zx=function(a){return v0(this,a,!0)},Ae.xv=function(a,y){Vg(this,a,y,!0)},Ae.Cx=function(a){return v0(this,a,!1)},Ae.Cv=function(a,y){Vg(this,a,y,!1)};function v0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=As(y,a),y===void 0?"":y)}function Vg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=As(y,E);z===void 0&&(z=""),z!==x&&(ja(y,E,x),Ws(a,b?"linkFromPortId":"linkToPortId",ui,E,y,z,x),typeof E=="string"&&a.La(y,E))}else ja(y,E,x)}}Ae.Ef=function(a){if(a===null)return y0;var y=this.je;return y===""?y0:(a=As(a,y),a===void 0?y0:a)},Ae.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=As(a,x);if(b===void 0&&(b=y0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)ad(this,b[z],a);for(ja(a,x,y),E=y.length,z=0;z<E;z++){var ee=y[z];this.hc(ee)===null&&od(this,ee,a)}Ws(this,"linkLabelKeys",ui,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else ja(a,x,y)}},Ae.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=As(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&&od(this,y,a),Ws(this,"linkLabelKeys",fi,x,a,null,y,null,E)))}else ct(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ae.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=As(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(ad(this,y,a),Ws(this,"linkLabelKeys",Ni,x,a,y,null,E,null)))}else b!==void 0&&ct(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ae.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;ct("Key value for link data "+a+" is not a number or a string: "+y)}}},Ae.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=As(a,x);b!==y&&this.jh(y)===null&&(ja(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ws(this,"linkKey",ui,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Ae.jh=function(a){return a===null&&ct("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&_h(a)?this.wb.I(a):null},Ae.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))){ja(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;ja(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ja(a,y,x)}}}}},Ae.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ae.fi=function(a){a!==null&&(Ur(a),this.Jc(a)||TS(this,a,!0))};function TS(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&&ct("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)),Ws(a,"linkDataArray",fi,"linkDataArray",a,null,y,null,b),my(a,y)}Ae.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)},Ae.bm=function(a){a!==null&&OS(this,a,!0)};function OS(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(Ws(a,"linkDataArray",Ni,"linkDataArray",a,y,null,b,null),x=ic(a,y,!0),ad(a,x,y),x=ic(a,y,!1),ad(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],ad(a,x,y)}Ae.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)},Ae.Zz=function(a){if(this.linkKeyProperty===""&&ct("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&rn(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],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),IS(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function my(a,y){var x=ic(a,y,!0);x=a.Vl(x),a.hc(x)===null&&od(a,x,y),x=ic(a,y,!1),x=a.Vl(x),a.hc(x)===null&&od(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&&od(a,x,y)}Ae.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):m0(this,a,!0),Zt(a)&&(fr(a),this.lf!==""&&ja(a,this.lf,void 0),this.mf!==""&&ja(a,this.mf,void 0),this.je!==""&&ja(a,this.je,[])),a},Ae.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!As(a,y)},Ae.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;ct("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ae.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=As(a,x);b!==y&&(ad(this,b,a),ja(a,x,y),this.hc(y)===null&&od(this,y,a),Ws(this,"nodeGroupKey",ui,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},To.prototype.copyNodeData=function(a){return a===null?null:(a=tr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||As(a,this.Je)===void 0||ja(a,this.Je,void 0),a)},To.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){Kg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Kg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Vg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Vg(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=As(a,y);b!==x&&(ja(a,y,x),this.Fs(a,y,b,x))},Ae=To.prototype,Ae.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&&As(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Ae.jp=function(a,y){tr.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(ic(this,b,!0)===E){var ee=this.lf;ja(b,ee,z),Ws(this,"linkFromKey",ui,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)}if(ic(this,b,!1)===E&&(ee=this.mf,ja(b,ee,z),Ws(this,"linkToKey",ui,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)),ee=this.Ef(b),Array.isArray(ee))for(var re=ee.length,oe=this.je,le=0;le<re;le++)ee[le]===E&&(ee[le]=z,Ws(this,"linkLabelKeys",fi,oe,b,E,z,le,le))}},Ae.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;ja(a,b,x),Ws(this,"nodeGroupKey",ui,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ae.Lv=function(){tr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)my(this,a[x])},Ae.fm=function(a){tr.prototype.fm.call(this,a),a=this.wa(a);var y=Wp(this,a);if(y!==null){var x=ci();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Ws(this,"nodeGroupKey",ui,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(ic(this,b,!0)===a&&(E=this.lf,Ws(this,"linkFromKey",ui,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),ic(this,b,!1)===a&&(E=this.mf,Ws(this,"linkToKey",ui,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,ee=this.je,re=0;re<z;re++)E[re]===a&&(Ws(this,"linkLabelKeys",fi,ee,b,a,a,re,re),x.push(b))}for(y=0;y<x.length;y++)ad(this,a,x[y]);Pi(x)}},Ae.em=function(a){tr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&od(this,y,a)},Ae.qp=function(a){tr.prototype.qp.call(this,a);var y=this.lh(a);ad(this,y,a)},Ae.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=As(a,y),y===void 0))return"";if(typeof y=="string")return y;ct("getCategoryForLinkData found a non-string category for "+a+": "+y)},To.prototype.getLinkCategoryForData=function(a){return this.ps(a)},To.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(ja(a,x,y),Ws(this,"linkCategory",ui,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},To.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ae=To.prototype,Ae.lm=function(a,y){tr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function IS(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))}Ae.Wj=function(){return!0},Ae.ri=function(){return!0},Ae.xs=function(){return!0},Ae.Xj=function(){return!0},ze.Object.defineProperties(To.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];Zt(E)||ct("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Ur(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Dn,E=0;E<x;E++){var z=a[E],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?b.add(z):this.wb.add(ee,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 Ln,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Ws(this,"linkDataArray",ui,"linkDataArray",this,y,a),y=0;y<x;y++)my(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"}}}),To.prototype.setCategoryForLinkData=To.prototype.lp,To.prototype.getCategoryForLinkData=To.prototype.ps,To.prototype.assignAllDataProperties=To.prototype.Do,To.prototype.setGroupKeyForNodeData=To.prototype.mp,To.prototype.getGroupKeyForNodeData=To.prototype.lh,To.prototype.isGroupForNodeData=To.prototype.Yu,To.prototype.copyLinkData=To.prototype.Jo,To.prototype.mergeLinkDataArray=To.prototype.Zz,To.prototype.removeLinkDataCollection=To.prototype.lA,To.prototype.removeLinkData=To.prototype.bm,To.prototype.addLinkDataCollection=To.prototype.Ey,To.prototype.addLinkData=To.prototype.fi,To.prototype.containsLinkData=To.prototype.Jc,To.prototype.makeLinkDataKeyUnique=To.prototype.Bs,To.prototype.findLinkDataForKey=To.prototype.jh,To.prototype.setKeyForLinkData=To.prototype.Ks,To.prototype.getKeyForLinkData=To.prototype.Ac,To.prototype.removeLabelKeyForLinkData=To.prototype.Qx,To.prototype.addLabelKeyForLinkData=To.prototype.Bu,To.prototype.setLabelKeysForLinkData=To.prototype.Ls,To.prototype.getLabelKeysForLinkData=To.prototype.Ef,To.prototype.setToPortIdForLinkData=To.prototype.Cv,To.prototype.getToPortIdForLinkData=To.prototype.Cx,To.prototype.setFromPortIdForLinkData=To.prototype.xv,To.prototype.getFromPortIdForLinkData=To.prototype.zx,To.prototype.setToKeyForLinkData=To.prototype.Bv,To.prototype.getToKeyForLinkData=To.prototype.Bx,To.prototype.setFromKeyForLinkData=To.prototype.wv,To.prototype.getFromKeyForLinkData=To.prototype.yx,To.prototype.clear=To.prototype.clear;var y0=Object.freeze([]);To.className="GraphLinksModel",Vc.GraphLinksModel=To,tr.constructGraphLinksModel=tr.constructGraphLinksModel=function(){return new To},tr.initDiagramModel=gy=function(){return new To};function uu(a,y){tr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(rn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}wt(uu,tr),uu.constructGraphLinksModel=tr.constructGraphLinksModel,uu.prototype.cloneProtected=function(a){tr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ae=uu.prototype,Ae.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)+":"+ji(E)}}return y},Ae.rm=function(){var a=tr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ae.gp=function(a){tr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ae.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&ct("applyIncrementalJson cannot change Model properties"),tr.prototype.fp.call(this,a)},Ae.Vl=function(a){return a},Ae.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;ct("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ae.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=As(a,x);b!==y&&(ad(this,b,a),ja(a,x,y),this.hc(y)===null&&od(this,y,a),Ws(this,"nodeParentKey",ui,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Ae.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=As(a,y),y===void 0)?"":typeof y=="string"?y:(ct("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},uu.prototype.getLinkCategoryForData=function(a){return this.ss(a)},uu.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(ja(a,x,y),Ws(this,"parentLinkCategory",ui,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},uu.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},uu.prototype.copyNodeData=function(a){return a===null?null:(a=tr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||As(a,this.Ke)===void 0||ja(a,this.Ke,void 0),a)},uu.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=As(a,y);b!==x&&(ja(a,y,x),this.Fs(a,y,b,x))},Ae=uu.prototype,Ae.jp=function(a,y){tr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ae.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;ja(a,b,x),Ws(this,"nodeParentKey",ui,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ae.fm=function(a){tr.prototype.fm.call(this,a),a=this.wa(a);var y=Wp(this,a);if(y!==null){var x=ci();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Ws(this,"nodeParentKey",ui,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)ad(this,a,x[y]);Pi(x)}},Ae.em=function(a){tr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&od(this,y,a)},Ae.qp=function(a){tr.prototype.qp.call(this,a);var y=this.mh(a);ad(this,y,a)},Ae.lm=function(a,y){tr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ae.Tl=function(){return!0},Ae.xs=function(){return!0},ze.Object.defineProperties(uu.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"}}}),uu.prototype.setParentLinkCategoryForNodeData=uu.prototype.Ms,uu.prototype.getParentLinkCategoryForNodeData=uu.prototype.ss,uu.prototype.setParentKeyForNodeData=uu.prototype.qe,uu.prototype.getParentKeyForNodeData=uu.prototype.mh,uu.className="TreeModel",Vc.TreeModel=uu;function es(a){Za.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Gc,this.Ti=0,this.Zv=new _e,this.Jp=this.me=0,this.Xr=new Up,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Gc,this.K=cu,this.nd=Yg,this.hd=ly,this.tf=6,this.Nn=E0,a&&Object.assign(this,a)}wt(es,Za),es.prototype.cloneProtected=function(a){Za.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},es.prototype.qb=function(a){a.classType===es?a===C0||a===b0||a===w0||a===P0||a===Yg?this.sorting=a:a===Tf||a===Gg||a===cu||a===qh?this.direction=a:a===Lh||a===$h||a===Gc||a===Yc?this.arrangement=a:(a===sg||a===E0)&&(this.nodeDiameterFormula=a):Za.prototype.qb.call(this,a)},es.prototype.createNetwork=function(){return new Ug(this)},es.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 Dn;y.addAll(a.iterator),a=new Dn;var x=new Dn,b=this.sort(y),E,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var ue=this.aspectRatio;(!isFinite(ue)||0>=ue)&&(ue=1);var fe=this.startAngle;isFinite(fe)||(fe=0);var xe=this.sweepAngle;if((!isFinite(xe)||360<xe||1>xe)&&(xe=360),y=this.spacing,isFinite(y)||(y=NaN),re===Yc&&oe===sg?re=Gc:re===Yc&&oe!==sg&&(re=this.arrangement),(this.direction===Tf||this.direction===Gg)&&this.sorting!==Yg){for(oe=0;!(oe>=b.length)&&(a.add(b.M(oe)),!(oe+1>=b.length));oe+=2)x.add(b.M(oe+1));this.direction===Tf?(this.arrangement===Yc&&a.reverse(),b=new Dn,b.addAll(a),b.addAll(x)):(this.arrangement===Yc&&x.reverse(),b=new Dn,b.addAll(x),b.addAll(a))}oe=b.length;for(var be=z=E=0;be<b.length;be++){var Le=fe+xe*z*(this.direction===cu?1:-1)/oe,Te=b.M(be).diameter;isNaN(Te)&&(Te=ef(b.M(be),Le)),360>xe&&(be===0||be===b.length-1)&&(Te/=2),E+=Te,z++}if(isNaN(le)||re===Yc){if(isNaN(y)&&(y=6),re!==Gc&&re!==Yc){for(z=-1/0,ee=0;ee<oe;ee++)be=b.M(ee),E=b.M(ee===oe-1?0:ee+1),isNaN(be.diameter)&&ef(be,0),isNaN(E.diameter)&&ef(E,0),z=Math.max(z,(be.diameter+E.diameter)/2);ee=z+y,re===Lh?le=(z+y)/(2*Math.PI/oe):le=S0(this,ee*(360<=xe?oe:oe-1),ue,fe*Math.PI/180,xe*Math.PI/180)}else le=S0(this,E+(360<=xe?oe:oe-1)*(re!==Yc?y:1.6*y),ue,fe*Math.PI/180,xe*Math.PI/180);z=le*ue}else if(z=le*ue,be=vy(this,le,z,fe*Math.PI/180,xe*Math.PI/180),isNaN(y))(re===Gc||re===Yc)&&(y=(be-E)/(360<=xe?oe:oe-1));else if(re===Gc||re===Yc)be=(be-E)/(360<=xe?oe:oe-1),be<y?(le=S0(this,E+y*(360<=xe?oe:oe-1),ue,fe*Math.PI/180,xe*Math.PI/180),z=le*ue):y=be;else{for(ee=-1/0,E=0;E<oe;E++)Le=b.M(E),Te=b.M(E===oe-1?0:E+1),isNaN(Le.diameter)&&ef(Le,0),isNaN(Te.diameter)&&ef(Te,0),ee=Math.max(ee,(Le.diameter+Te.diameter)/2);ee+=y,E=S0(this,ee*(360<=xe?oe:oe-1),ue,fe*Math.PI/180,xe*Math.PI/180),E>le?(le=E,z=le*ue):ee=be/(360<=xe?oe:oe-1)}if(this.kw=re,this.lc=le,this.Zm=ue,this.lw=fe,this.Wp=xe,this.Ti=y,this.me=z,this.Jp=ee,y=b,b=this.kw,re=this.lc,le=this.lw,ue=this.Wp,fe=this.Ti,xe=this.me,oe=this.Jp,this.direction!==Tf&&this.direction!==Gg||b!==Yc)if(this.direction===Tf||this.direction===Gg){switch(ee=0,b){case $h:ee=180*x0(this,re,xe,le,oe)/Math.PI;break;case Gc:oe=y=0,ee=a.first(),ee!==null&&(y=ef(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=ef(ee,Math.PI/2)),ee=180*x0(this,re,xe,le,fe+(y+oe)/2)/Math.PI;break;case Lh:ee=ue/y.length}if(this.direction===Tf){switch(b){case $h:Yp(this,a,le,qh);break;case Gc:Gp(this,a,le,qh);break;case Lh:Vp(this,a,ue/2,le,qh)}switch(b){case $h:Yp(this,x,le+ee,cu);break;case Gc:Gp(this,x,le+ee,cu);break;case Lh:Vp(this,x,ue/2,le+ee,cu)}}else{switch(b){case $h:Yp(this,x,le,qh);break;case Gc:Gp(this,x,le,qh);break;case Lh:Vp(this,x,ue/2,le,qh)}switch(b){case $h:Yp(this,a,le+ee,cu);break;case Gc:Gp(this,a,le+ee,cu);break;case Lh:Vp(this,a,ue/2,le+ee,cu)}}}else switch(b){case $h:Yp(this,y,le,this.direction);break;case Gc:Gp(this,y,le,this.direction);break;case Lh:Vp(this,y,ue,le,this.direction);break;case Yc:RS(this,y,ue,le,this.direction)}else RS(this,y,ue,le-ue/2,cu)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Vp(a,y,x,b,E){var z=a.Wp,ee=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=b+(E===cu?oe*x/(360<=z?re:re-1):-(oe*x)/re),ue=y.M(oe),fe=ee*Math.tan(le)/a;fe=Math.sqrt((ee*ee+a*a*fe*fe)/(1+fe*fe)),ue.centerX=fe*Math.cos(le),ue.centerY=fe*Math.sin(le),ue.actualAngle=180*le/Math.PI}}function Gp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe),ue=y.M(oe===re-1?0:oe+1),fe=z*Math.sin(x);le.centerX=E*Math.cos(x),le.centerY=fe,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&ef(le,0),isNaN(ue.diameter)&&ef(ue,0),le=x0(a,E,z,b===cu?x:-x,(le.diameter+ue.diameter)/2+ee),x+=b===cu?le:-le}}function Yp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe);le.centerX=E*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=x0(a,E,z,b===cu?x:-x,ee),x+=b===cu?le:-le}}function RS(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Up,360>x){for(z=b+(E===cu?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,jS(a,y,x,b,E)}else zS(a,y,x,b,E);a.Xr.commit(y)}function zS(a,y,x,b,E){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),le=a.me*Math.sin(b*Math.PI/180),ue=y.Fa();if(ue.length===3)ue[0].centerX=z,ue[0].centerY=0,ue[1].centerX=ue[0].centerX-ue[0].width/2-ue[1].width/2-ee,ue[1].y=ue[0].y,ue[2].centerX=(ue[0].centerX+ue[1].centerX)/2,ue[2].y=ue[0].y-ue[2].height-ee;else if(ue.length===4)ue[0].centerX=z,ue[0].centerY=0,ue[2].centerX=-ue[0].centerX,ue[2].centerY=ue[0].centerY,ue[1].centerX=0,ue[1].y=Math.min(ue[0].y,ue[2].y)-ue[1].height-ee,ue[3].centerX=0,ue[3].y=Math.max(ue[0].y+ue[0].height+ee,ue[2].y+ue[2].height+ee);else{z=_e.alloc();for(var fe=0;fe<ue.length&&(ue[fe].centerX=oe,ue[fe].centerY=le,!(fe>=ue.length-1));fe++)HS(a,oe,le,ue,fe,E,z)||WS(a,oe,le,ue,fe,E,z),oe=z.x,le=z.y;if(_e.free(z),a.mj++,!(23<a.mj)){oe=ue[0].centerX,le=ue[0].centerY,z=ue[ue.length-1].centerX,fe=ue[ue.length-1].centerY;var xe=Math.abs(oe-z)-((ue[0].width+ue[ue.length-1].width)/2+ee),be=Math.abs(le-fe)-((ue[0].height+ue[ue.length-1].height)/2+ee);ee=0,1>Math.abs(be)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0<be?be:1>Math.abs(xe)?0:xe,oe=Math.abs(z)>Math.abs(fe)?0<z!=le>fe:0<fe!=oe<z,(oe=E===cu?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-ue[ue.length-1].width),ee=Math.min(ee,-ue[ue.length-1].height)),a.Xr.compare(ee,ue),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>ue.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,zS(a,y,x,b,E))}}}function jS(a,y,x,b,E){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),le=ee*Math.sin(b*Math.PI/180),ue=_e.alloc(),fe=y.Fa(),xe=0;xe<fe.length&&(fe[xe].centerX=oe,fe[xe].centerY=le,!(xe>=fe.length-1));xe++)HS(a,oe,le,fe,xe,E,ue)||WS(a,oe,le,fe,xe,E,ue),oe=ue.x,le=ue.y;if(_e.free(ue),a.mj++,!(23<a.mj)){if(oe=Math.atan2(le,oe),oe=E===cu?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<fe.length;oe++)ee.mk[oe]=fe[oe].bounds.x,ee.tm[oe]=fe[oe].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*re,jS(a,y,x,b,E))}}function HS(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,le=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ue=!1;if(0<=x!=(z===cu)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=le,!1;ue=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=le,!1;ue=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ue&&(le=-le),Math.abs(x-le)>(b[E].height+b[E+1].height)/2?(ee.x=z,ee.y=le,!1):(ee.x=z,ee.y=le,!0)}function WS(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,le=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===cu)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=le,ee.y=z;return}b=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=le,ee.y=z;return}b=!0}le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==b&&(le=-le),ee.x=le,ee.y=z}es.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},es.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 _e(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))},es.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function vy(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 ee=0,re=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),oe=0,le=0;le<=z;le++){b!==void 0&&E!==void 0?oe=b+le*E/z:oe=le*Math.PI/(2*z);var ue=Math.sin(oe);ee+=Math.sqrt(1-a*a*ue*ue)*re}return b!==void 0&&E!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function S0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?vy(a,1,x,b,E):vy(a,1,x))}function x0(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,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(b+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=E)return re*a}}es.prototype.sort=function(a){switch(this.sorting){case w0:break;case P0:a.reverse();break;case C0:a.sort(this.comparer);break;case b0:a.sort(this.comparer),a.reverse();break;case Yg:return this.ak(Zx(a));default:ct("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Dn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>E&&(E=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>E&&(E=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)E=a.indexOf(ee.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}es.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 ee=[],re=[];b=[],E=new Dn;for(var oe=0,le=0;le<y.length;le++){var ue=y[le].length;if(ue===1)b.push(le);else if(ue===0)E.add(a.M(le));else{if(oe===0)x.push(le);else{for(var fe=ue=1/0,xe=-1,be=[],Le=0;Le<x.length;Le++)0>y[x[Le]].indexOf(x[Le===x.length-1?0:Le+1])&&be.push(Le===x.length-1?0:Le+1);if(be.length===0)for(Le=0;Le<x.length;Le++)be.push(Le);for(Le=0;Le<be.length;Le++){for(var Te=be[Le],at=y[le],Ue=0,vt=0;vt<ee.length;vt++){var St=z[ee[vt]],Ft=z[re[vt]];if(St<Ft){var Kt=St;St=Ft}else Kt=Ft;if(Kt<Te&&Te<=St)for(Ft=0;Ft<at.length;Ft++){var pn=at[Ft];0>x.indexOf(pn)||Kt<z[pn]&&z[pn]<St||Kt===z[pn]||St===z[pn]||Ue++}else for(Ft=0;Ft<at.length;Ft++)pn=at[Ft],0>x.indexOf(pn)||Kt<z[pn]&&z[pn]<St&&Kt!==z[pn]&&St!==z[pn]&&Ue++}for(at=Ue,vt=Ue=0;vt<y[le].length;vt++)Kt=x.indexOf(y[le][vt]),0<=Kt&&(Kt=Math.abs(Te-(Kt>=Te?Kt+1:Kt)),Ue+=Kt<x.length+1-Kt?Kt:x.length+1-Kt);for(vt=0;vt<ee.length;vt++)Kt=z[ee[vt]],St=z[re[vt]],Kt>=Te&&Kt++,St>=Te&&St++,Kt>St&&(Ft=St,St=Kt,Kt=Ft),St-Kt<(x.length+2)/2==(Kt<Te&&Te<=St)&&Ue++;(at<ue||at===ue&&Ue<fe)&&(ue=at,fe=Ue,xe=Te)}for(x.splice(xe,0,le),ue=0;ue<x.length;ue++)z[x[ue]]=ue;for(ue=0;ue<y[le].length;ue++)fe=y[le][ue],0<=x.indexOf(fe)&&(ee.push(le),re.push(fe))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<b.length;re++)if(oe=b[re],le=y[oe][0],ue=x.indexOf(le),0<=ue){for(xe=fe=0;xe<y[le].length;xe++)be=x.indexOf(y[le][xe]),0>be||be===ue||(Le=be>ue?be-ue:ue-be,fe+=be<ue!=Le>ee-Le?1:-1);x.splice(0>fe?ue:ue+1,0,oe),b.splice(re,1),re--}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},ze.Object.defineProperties(es.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!==Yc&&a!==Gc&&a!==$h&&a!==Lh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==cu&&a!==qh&&a!==Tf&&a!==Gg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==w0&&a!==P0&&a!==C0&&!b0&&a!==Yg||(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!==E0&&a!==sg||(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 Gc=new Cn(es,"ConstantSpacing",0),$h=new Cn(es,"ConstantDistance",1),Lh=new Cn(es,"ConstantAngle",2),Yc=new Cn(es,"Packed",3),cu=new Cn(es,"Clockwise",4),qh=new Cn(es,"Counterclockwise",5),Tf=new Cn(es,"BidirectionalLeft",6),Gg=new Cn(es,"BidirectionalRight",7),w0=new Cn(es,"Forwards",8),P0=new Cn(es,"Reverse",9),C0=new Cn(es,"Ascending",10),b0=new Cn(es,"Descending",11),Yg=new Cn(es,"Optimized",12),E0=new Cn(es,"Pythagorean",13),sg=new Cn(es,"Circular",14);es.className="CircularLayout",es.ConstantSpacing=Gc,es.ConstantDistance=$h,es.ConstantAngle=Lh,es.Packed=Yc,es.Clockwise=cu,es.Counterclockwise=qh,es.BidirectionalLeft=Tf,es.BidirectionalRight=Gg,es.Forwards=w0,es.Reverse=P0,es.Ascending=C0,es.Descending=b0,es.Optimized=Yg,es.Pythagorean=E0,es.Circular=sg;function Up(){this.Pl=-1/0,this.tm=this.mk=null}Up.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},Up.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]}},Up.className="VertexArrangement";function Ug(a){Ea.call(this,a)}wt(Ug,Ea),Ug.prototype.createVertex=function(){return new Xp(this)},Ug.prototype.createEdge=function(){return new A0(this)},Ug.className="CircularNetwork";function Xp(a){Xs.call(this,a),this.u=this.Si=NaN}wt(Xp,Xs);function ef(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Yc)if(x.nodeDiameterFormula===sg)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===sg?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}ze.Object.defineProperties(Xp.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)}}}),Xp.className="CircularVertex";function A0(a){Gu.call(this,a)}wt(A0,Gu),A0.className="CircularEdge";function Bl(a){Za.call(this),this.ah=null,this.An=0,this.$d=new zn(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)}wt(Bl,Za),Bl.prototype.cloneProtected=function(a){Za.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},Bl.prototype.createNetwork=function(){return new lg(this)},Bl.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}ZS(this,0,a)}this.network=y;var ee=b=x.iterator;b=this.arrangementSpacing;var re=ee.count,oe=!0;z=E=0;for(var le=ci(),ue=0;ue<re+y.vertexes.count+2;ue++)le[ue]=null;re=0,ee.reset();for(var fe=Sn.alloc();ee.next();)if(ue=ee.value,this.computeBounds(ue,fe),oe)oe=!1,E=fe.x+fe.width/2,z=fe.y+fe.height/2,le[0]=new _e(fe.x+fe.width+b.width,fe.y),le[1]=new _e(fe.x,fe.y+fe.height+b.height),re=2;else{var xe=KS(le,re,E,z,fe.width,fe.height,b),be=le[xe],Le=new _e(be.x+fe.width+b.width,be.y),Te=new _e(be.x,be.y+fe.height+b.height);for(xe+1<re&&le.splice(xe+1,0,null),le[xe]=Le,le[xe+1]=Te,re++,xe=be.x-fe.x,be=be.y-fe.y,ue=ue.vertexes.iterator;ue.next();)Le=ue.value,Le.centerX+=xe,Le.centerY+=be}for(Sn.free(fe),ue=y.vertexes.iterator;ue.next();)ee=ue.value,xe=ee.bounds,2>re?(E=xe.x+xe.width/2,z=xe.y+xe.height/2,le[0]=new _e(xe.x+xe.width+b.width,xe.y),le[1]=new _e(xe.x,xe.y+xe.height+b.height),re=2):(oe=KS(le,re,E,z,xe.width,xe.height,b),fe=le[oe],be=new _e(fe.x+xe.width+b.width,fe.y),xe=new _e(fe.x,fe.y+xe.height+b.height),oe+1<re&&le.splice(oe+1,0,null),le[oe]=be,le[oe+1]=xe,re++,ee.centerX=fe.x+ee.width/2,ee.centerY=fe.y+ee.height/2);for(Pi(le),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)}}GS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Bl.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},Bl.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 ZS(a,y,x){if(Kx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Vx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,ZS(a,y+1,x),GS(a,z),Gx(a,E),y=E.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Yx(a,y[x]);a.Zf=b}}function Kx(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 Vx(a,y){for(var x=a.network,b=new lg(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var ee=new YS;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new Dn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;E=re.fromVertex,ee=re.toVertex,E.network===b&&ee.network===b?b.Bo(re):E.network===b?(re=E.Hj,re===null&&(re=new Dn,E.Hj=re),re.add(ee),E.Vd--,E.sh+=ee.sh):ee.network===b&&(re=ee.Hj,re===null&&(re=new Dn,ee.Hj=re),re.add(E),ee.Vd--,ee.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Vt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var oe=E.Hj;if(oe!==null&&0<oe.count&&(ee=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ee))){for(var le=re=0,ue=oe.count-ee;ue<oe.count;ue++){var fe=oe.M(ue),xe=null;for(z=fe.edges.iterator;z.next();){var be=z.value;if(be.Ax(fe)===E){xe=be;break}}xe!==null&&(le+=xe.length,re+=fe.width*fe.height)}z=E.centerX,oe=E.centerY,ue=E.width,fe=E.height,xe=E.focus,be=ue*fe,1>be&&(be=1),re=Vt.sqrt((re+be+le*le*4/(ee*ee))/be),ee=(re-1)*ue/2,re=(re-1)*fe/2,E.bounds=new Sn(z-xe.x-ee,oe-xe.y-re,ue+2*ee,fe+2*re),E.focus=new _e(xe.x+ee,xe.y+re)}}return a.network=b,x}function Gx(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,ee=E.Tv;b.bounds=new Sn(b.centerX-z,b.centerY-ee,E.Ss,E.Qs),b.focus=new _e(z,ee),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Yx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=Vt.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,le=0,ue=y.vertexes.iterator;ue.next();){var fe=ue.value;1>=fe.Vd?oe++:(re=!0,le++,ee+=Math.atan2(y.centerY-fe.centerY,y.centerX-fe.centerX))}if(oe!==0){for(0<le&&(ee/=le),le=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(le=y/2),1<x.count&&x.sort(function(be,Le){return be===null||Le===null||be===Le?0:Le.width*Le.height-be.width*be.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(ue=null,fe=oe.edges.iterator;fe.next();){ue=fe.value;break}fe=oe.width;var xe=oe.height;fe=Vt.sqrt(fe*fe+xe*xe)/2,ue=z+ue.length+fe,fe=ee+(y*(re/2>>1)+le)*(re%2===0?1:-1),oe.centerX=b+ue*Math.cos(fe),oe.centerY=E+ue*Math.sin(fe),re++}}}}function KS(a,y,x,b,E,z,ee){var re=9e19,oe=-1,le=0;e:for(;le<y;le++){var ue=a[le],fe=ue.x-x,xe=ue.y-b;if(fe=fe*fe+xe*xe,fe<re){for(xe=le-1;0<=xe;xe--)if(a[xe].y>ue.y&&a[xe].x-ue.x<E+ee.width)continue e;for(xe=le+1;xe<y;xe++)if(a[xe].x>ue.x&&a[xe].y-ue.y<z+ee.height)continue e;oe=le,re=fe}}return oe}Bl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Bl.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 VS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,b+E<ee?a>y+z?(x=b+E-ee,a=a-y-z,Vt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ee,a=a+x-y,Vt.sqrt(b*b+a*a)):ee-(b+E):b>ee+re?a>y+z?(x=b-ee-re,a=a-y-z,Vt.sqrt(x*x+a*a)):a+x<y?(b=b-ee-re,a=a+x-y,Vt.sqrt(b*b+a*a)):b-(ee+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function GS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Ux(a)););a.ah=null}function Ux(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,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,b=Math.min(b,oe),E=Math.max(E,oe),x=Math.min(x,re),z=Math.max(z,re)}(E=E-b>z-x)?y.sort(function(Te,at){return Te===null||at===null||Te===at?0:Te.centerX-at.centerX}):y.sort(function(Te,at){return Te===null||at===null||Te===at?0:Te.centerY-at.centerY}),x=a.Zf;var le=b=re=0;for(z=0;z<y.length;z++){ee=y[z],b=ee.bounds,re=ee.focus,oe=b.x+re.x;var ue=b.y+re.y;b=ee.charge*a.electricalFieldX(oe,ue),le=ee.charge*a.electricalFieldY(oe,ue),b+=ee.mass*a.gravitationalFieldX(oe,ue),le+=ee.mass*a.gravitationalFieldY(oe,ue),ee.forceX+=b,ee.forceY+=le;for(var fe=z+1;fe<y.length;fe++){var xe=y[fe];if(xe!==ee){b=xe.bounds,re=xe.focus,le=b.x+re.x;var be=b.y+re.y;if(oe-le>x||le-oe>x){if(E)break}else if(ue-be>x||be-ue>x){if(!E)break}else{var Le=VS(ee,xe);1>Le?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new L0),Le=b.random(),re=b.random(),oe>le?(b=Math.abs(xe.bounds.right-ee.bounds.x),b=(1+b)*Le):oe<le?(b=Math.abs(xe.bounds.x-ee.bounds.right),b=-(1+b)*Le):(b=Math.max(xe.width,ee.width),b=(1+b)*Le-b/2),ue>be?(le=Math.abs(xe.bounds.bottom-ee.bounds.y),le=(1+le)*re):oe<le?(le=Math.abs(xe.bounds.y-ee.bounds.bottom),le=-(1+le)*re):(le=Math.max(xe.height,ee.height),le=(1+le)*re-le/2)):(re=-(ee.charge*xe.charge)/(Le*Le),b=(le-oe)/Le*re,le=(be-ue)/Le*re),ee.forceX+=b,ee.forceY+=le,xe.forceX-=b,xe.forceY-=le}}}}for(E=a.network.edges.iterator;E.next();)re=E.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,b=ee.x+oe.x,ee=ee.y+oe.y,ue=z.bounds,fe=z.focus,oe=ue.x+fe.x,ue=ue.y+fe.y,fe=VS(x,z),1>fe?(fe=a.randomNumberGenerator,fe===null&&(a.randomNumberGenerator=fe=new L0),re=fe.random(),fe=fe.random(),b=(b>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(ee>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*fe):(re=re.stiffness*(fe-re.length),b=(oe-b)/fe*re,le=(ue-ee)/fe*re),x.forceX+=b,x.forceY+=le,z.forceX-=b,z.forceY-=le;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}Bl.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},Bl.prototype.moveFixedVertex=function(){},Bl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Bl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Jo,y.toSpot=Jo)}},Bl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Sn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Sn.free(x)}x=Sn.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()}Sn.free(x)},Bl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Bl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Bl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Bl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Bl.prototype.electricalFieldX=function(){return 0},Bl.prototype.electricalFieldY=function(){return 0},Bl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Bl.prototype.gravitationalFieldX=function(){return 0},Bl.prototype.gravitationalFieldY=function(){return 0},Bl.prototype.isFixed=function(a){return a.isFixed},ze.Object.defineProperties(Bl.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"&&ct('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())}}}),Bl.className="ForceDirectedLayout";function YS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}YS.className="ForceDirectedSubnet";function lg(a){Ea.call(this,a)}wt(lg,Ea),lg.prototype.createVertex=function(){return new Jp(this)},lg.prototype.createEdge=function(){return new Qp(this)},lg.className="ForceDirectedNetwork";function Jp(a){Xs.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}wt(Jp,Xs),ze.Object.defineProperties(Jp.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)}}}),Jp.className="ForceDirectedVertex";function Qp(a){Gu.call(this,a),this.j=this.o=NaN}wt(Qp,Gu),ze.Object.defineProperties(Qp.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)}}}),Qp.className="ForceDirectedEdge";function L0(){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()}L0.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},L0.className="RandomNumberGenerator";function sa(a){Za.call(this),this.kc=this.ie=25,this.K=0,this.Dk=D0,this.Zk=B0,this.Qk=T0,this.bj=4,this.rk=O0,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 _e,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}wt(sa,Za),sa.prototype.cloneProtected=function(a){Za.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},sa.prototype.qb=function(a){a.classType===sa?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:ct("Unknown enum value: "+a):Za.prototype.qb.call(this,a)},sa.prototype.createNetwork=function(){return new Jg(this)},sa.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!==$p&&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===$p&&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 ee=0,re=0,oe=0,le=0;if(b.link!==null){if(re=b.link,re===null)continue;var ue=E.node;if(ee=z.node,ue===null||ee===null)continue;var fe=re.fromNode;oe=re.toNode;for(var xe=re.fromPort;xe!==null&&!xe.Ed();)xe=xe.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(b.rev){le=fe;var be=xe;fe=oe,xe=re,oe=le,re=be}var Le=E.focus;le=z.focus;var Te=b.rev?z.bounds:E.bounds;be=_e.alloc(),ue!==fe?Te.w()&&fe.isVisible()?fe.actualBounds.w()?(Ph(fe,xe,So,be),be.x+=fe.actualBounds.x-Te.x,be.y+=fe.actualBounds.y-Te.y):(Ph(fe,xe,So,be),be.w()||be.assign(Le)):be.assign(Le):Te.w()?(Ph(fe,xe,So,be),be.w()||be.assign(Le)):be.assign(Le),fe=b.rev?E.bounds:z.bounds,ue=_e.alloc(),ee!==oe?fe.w()&&oe.isVisible()?oe.actualBounds.w()?(Ph(oe,re,So,ue),ue.x+=oe.actualBounds.x-fe.x,ue.y+=oe.actualBounds.y-fe.y):(Ph(oe,re,So,ue),ue.w()||ue.assign(le)):ue.assign(le):fe.w()?(Ph(oe,re,So,ue),ue.w()||ue.assign(le)):ue.assign(le),this.K===90||this.K===270?(ee=Math.round((be.x-Le.x)/this.kc),oe=be.x,re=Math.round((ue.x-le.x)/this.kc),le=ue.x):(ee=Math.round((be.y-Le.y)/this.kc),oe=be.y,re=Math.round((ue.y-le.y)/this.kc),le=ue.y),_e.free(be),_e.free(ue),b.portFromColOffset=ee,b.portFromPos=oe,b.portToColOffset=re,b.portToPos=le}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(be=E.layer,ue=z.layer,fe=0,Te=b.link,Te!==null){var at=Te.fromPort,Ue=Te.toPort;if(at!==null&&Ue!==null){var vt=Te.fromNode;if(xe=Te.toNode,vt!==null&&xe!==null){var St=k0(this,!0),Ft=k0(this,!1),Kt=this.setsPortSpots?St:Te.computeSpot(!0,at);Le=this.setsPortSpots?Ft:Te.computeSpot(!1,Ue);var pn=Te.isOrthogonal;Kt.$c()&&Kt.Hf(Ft)&&Le.$c()&&Le.Hf(St)?fe=0:(St=Te.getLinkPoint(vt,at,Kt,!0,pn,xe,Ue,_e.alloc()),Ft=Te.getLinkDirection(vt,at,St,Kt,!0,pn,xe,Ue),_e.free(St),Kt.ys()||Ft!==tx(this,b,!0)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&b.rev&&(fe+=1):fe+=1,Kt=Te.getLinkPoint(xe,Ue,Le,!1,pn,vt,at,_e.alloc()),Te=Te.getLinkDirection(xe,Ue,Kt,Le,!1,pn,vt,at),_e.free(Kt),Le.ys()||Te!==tx(this,b,!1)?this.setsPortSpots&&xe!==null&&xe.ports.count===1&&b.rev&&(fe+=2):fe+=2)}}}if(xe=fe,fe=xe===1||xe===3,(xe=xe===2||xe===3)&&(Le=a.createVertex(),Le.node=null,Le.Dj=1,Le.layer=be,Le.near=E,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ee,E.portToColOffset=0,E.portFromPos=oe,E.portToPos=0,E=Le),Te=1,fe&&Te--,be-ue>Te&&0<be){for(b.valid=!1,Le=a.createVertex(),Le.node=null,Le.Dj=2,Le.layer=be-1,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=xe?0:ee,E.portToColOffset=0,E.portFromPos=xe?0:oe,E.portToPos=0,E=Le,be--;be-ue>Te&&0<be;)Le=a.createVertex(),Le.node=null,Le.Dj=3,Le.layer=be-1,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Le,be--;E=a.Zj(Le,z,b.link),E.valid=!fe,fe&&(Le.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=re,E.portFromPos=0,E.portToPos=le}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=tf(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),nf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},sa.prototype.linkMinLength=function(){return 1};function yy(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}sa.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},sa.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 Eu(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 mc(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 US(a,y,x){var b=tf(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<E;ee++){var re=0,oe=b[ee],le=oe.near;if(le!==null&&le.layer===oe.layer)if(oe=le.index,oe>ee)for(var ue=ee+1;ue<oe;ue++){var fe=b[ue];fe.near===le&&fe.Dj===le.Dj||re++}else for(ue=ee-1;ue>oe;ue--)fe=b[ue],fe.near===le&&fe.Dj===le.Dj||re++;var xe;if(0<=x)for(oe=b[ee].sourceEdgesArrayAccess,le=0;le<oe.length;le++){var be=oe[le];if(be.valid&&be.fromVertex.layer!==y)for(fe=be.fromVertex.index,ue=be.portToPos,be=be.portFromPos,xe=le+1;xe<oe.length;xe++){var Le=oe[xe];if(Le.valid&&Le.fromVertex.layer!==y){var Te=Le.fromVertex.index,at=Le.portToPos;Le=Le.portFromPos,ue<at&&(fe>Te||fe===Te&&be>Le)&&re++,at<ue&&(Te>fe||Te===fe&&Le>be)&&re++}}}if(0>=x){for(oe=b[ee].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(be=oe[le],be.valid&&be.toVertex.layer!==y)for(fe=be.toVertex.index,ue=be.portToPos,be=be.portFromPos,xe=le+1;xe<oe.length;xe++)Le=oe[xe],Le.valid&&Le.toVertex.layer!==y&&(Te=Le.toVertex.index,at=Le.portToPos,Le=Le.portFromPos,be<Le&&(fe>Te||fe===Te&&ue>at)&&re++,Le<be&&(Te>fe||Te===fe&&at>ue)&&re++)}for(z[ee*E+ee]=re,oe=ee+1;oe<E;oe++){var Ue=0,vt=0;if(0<=x){re=b[ee].sourceEdgesArrayAccess;var St=b[oe].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(be=re[le],be.valid&&be.fromVertex.layer!==y)for(fe=be.fromVertex.index,be=be.portFromPos,xe=0;xe<St.length;xe++)Le=St[xe],Le.valid&&Le.fromVertex.layer!==y&&(Te=Le.fromVertex.index,Le=Le.portFromPos,(fe<Te||fe===Te&&be<Le)&&vt++,(Te<fe||Te===fe&&Le<be)&&Ue++)}if(0>=x){for(re=b[ee].destinationEdgesArrayAccess,St=b[oe].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(be=re[le],be.valid&&be.toVertex.layer!==y)for(fe=be.toVertex.index,ue=be.portToPos,xe=0;xe<St.length;xe++)Le=St[xe],Le.valid&&Le.toVertex.layer!==y&&(Te=Le.toVertex.index,at=Le.portToPos,(fe<Te||fe===Te&&ue<at)&&vt++,(Te<fe||Te===fe&&at<ue)&&Ue++)}z[ee*E+oe]=Ue,z[oe*E+ee]=vt}}return nf(a,y,b),z}sa.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=US(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 M0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=tf(b,E),ee=b.tc[E],re=0,oe=0;oe<ee;oe++){var le=z[oe].destinationEdgesArrayAccess;if(le!==null)for(var ue=0;ue<le.length;ue++){var fe=le[ue];if(fe.valid&&fe.toVertex.layer!==E){var xe=fe.fromVertex.column+fe.portFromColOffset,be=fe.toVertex.column+fe.portToColOffset;re+=(Math.abs(xe-be)+1)*yy(fe)}}}nf(b,E,z),y+=re}return y}sa.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 Sy(a,y,x){for(var b=tf(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,fe=0,xe=re.near;if(xe!==null&&xe.layer===re.layer&&(ue+=xe.column-1,fe++),oe!==null)for(xe=0;xe<oe.length;xe++){re=oe[xe];var be=re.fromVertex;re.valid&&!re.rev&&be.layer!==y&&(ue+=be.column,fe++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],xe=re.toVertex,re.valid&&!re.rev&&xe.layer!==y&&(ue+=xe.column,fe++);z[ee]=fe===0?-1:ue/fe}return nf(a,y,b),z}function XS(a,y,x){for(var b=tf(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,fe=[],xe=re.near;if(xe!==null&&xe.layer===re.layer&&(fe[ue]=xe.column-1,ue++),re=void 0,oe!==null)for(xe=0;xe<oe.length;xe++){re=oe[xe];var be=re.fromVertex;re.valid&&!re.rev&&be.layer!==y&&(fe[ue]=be.column+re.portFromColOffset,ue++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],xe=re.toVertex,re.valid&&!re.rev&&xe.layer!==y&&(fe[ue]=xe.column+re.portToColOffset,ue++);ue===0?z[ee]=-1:(fe.sort(function(Le,Te){return Le-Te}),le=ue>>1,z[ee]=ue&1?fe[le]:fe[le-1]+fe[le]>>1)}return nf(a,y,b),z}function _p(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,le=y.layer-oe.layer;re=a.linkMinLength(re),le===re&&_p(a,oe,x,b,E,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,le=oe.layer-y.layer,re=a.linkMinLength(re),le===re&&_p(a,oe,x,b,E,z)}}function xy(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();)xy(a,ee.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)xy(a,y.value.fromVertex,x,b,E,z)}}sa.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Cy: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(;Xx(a)!==null;){for(E=JS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=JS(a);for(E=QS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=QS(a);E=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&oe++;le=0;for(var ue=re.sourceEdges;ue.next();)ue.value.fromVertex.valid&&le++;(E===null||z<oe-le)&&(E=re,z=oe-le)}}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 D0: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&&wy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&wy(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 $p: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 Xx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function JS(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 QS(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 wy(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,wy(a,E))}y.finish=a.Kn,a.Kn++}sa.prototype.assignLayers=function(){switch(this.Zk){case by:_S(this);break;case Ey:for(var a,y=this.network.vertexes.iterator;y.next();)a=qS(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 B0:for(_S(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&ex(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 _S(a){for(var y=a.network.vertexes.iterator;y.next();){var x=$S(a,y.value);a.Ia=Math.max(x,a.Ia)}}function $S(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,$S(a,z)+E)}y.layer=x}else x=y.layer;return x}function qS(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,qS(a,z)+E)}y.layer=x}else x=y.layer;return x}function ex(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)ex(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 ee=b[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&_p(a,re,0,-1,!0,!1)}for(_p(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var le=ee.value;if(le.component===1){var ue=0,fe=!1,xe=le.sourceEdgesArrayAccess;E=xe.length;for(var be=0;be<E;be++){var Le=xe[be],Te=Le.fromVertex;ue+=1,Te.component!==1&&(z+=1,Te=Te.layer-le.layer,Le=a.linkMinLength(Le),b=Math.min(b,Te-Le))}for(xe=le.destinationEdgesArrayAccess,E=xe.length,be=0;be<E;be++)Le=xe[be].toVertex,--ue,Le.component!==1?--z:fe=!0;(oe===null||ue<re)&&!fe&&(oe=le,re=ue)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(_p(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(le=0,ue=!1,xe=ee.sourceEdgesArrayAccess,fe=xe.length,be=0;be<fe;be++)Le=xe[be].fromVertex,le+=1,Le.component!==1?b+=1:ue=!0;for(xe=ee.destinationEdgesArrayAccess,fe=xe.length,be=0;be<fe;be++)Le=xe[be],Te=Le.toVertex,--le,Te.component!==1&&(--b,Te=ee.layer-Te.layer,Le=a.linkMinLength(Le),E=Math.min(E,Te-Le));(re===null||le>z)&&!ue&&(re=ee,z=le)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else re.component=0}}}function tx(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}sa.prototype.initializeIndices=function(){switch(this.Qk){default:case Ly: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 T0: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&&nx(this,x);break;case Ay: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&&ix(this,x)}};function nx(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&&nx(a,b))}function ix(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&&ix(a,b))}sa.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Eu(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)F0(this,b,1),kc(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Eu(this)),b=this.Ia;0<=b;b--)F0(this,b,-1),kc(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Eu(this))}for(mc(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)F0(this,b,0),kc(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Eu(this)),b=this.Ia;0<=b;b--)F0(this,b,0),kc(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Eu(this))}mc(this,y);var z,ee,re;switch(this.rk){case My:break;case Fy:for(re=a+1;(b=this.countCrossings())<re;)for(re=b,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=kc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=kc(this,b,1)||z;for(E=this.countCrossings(),E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=kc(this,b,1)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=kc(this,b,-1)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=kc(this,b,0)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=kc(this,b,0)||z;E>=a?mc(this,y):(a=E,y=Eu(this))}break;default:case O0:for(x=this.Ia,ee=0,re=a+1;(b=this.countCrossings())<re;){for(re=b,z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=kc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=kc(this,b,1)||z;for(E=this.countCrossings(),E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=kc(this,b,1)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=kc(this,b,-1)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=kc(this,b,0)||z;for(E>=a?mc(this,y):(a=E,y=Eu(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=kc(this,b,0)||z;E>=a?mc(this,y):(a=E,y=Eu(this))}}mc(this,y)};function F0(a,y,x){var b=tf(a,y),E=a.tc[y],z=XS(a,y,x),ee=Sy(a,y,x);for(x=0;x<E;x++)ee[x]===-1&&(ee[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=b[x],b[x]=b[x+1],b[x+1]=oe);for(x=z=0;x<E;x++)oe=b[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);nf(a,y,b)}function kc(a,y,x){var b=tf(a,y),E=a.tc[y];x=US(a,y,x);var z,ee=[];for(z=0;z<E;z++)ee[z]=-1;var re=[];for(z=0;z<E;z++)re[z]=-1;for(var oe=!1,le=!0;le;)for(le=!1,z=0;z<E-1;z++){var ue=x[b[z].index*E+b[z+1].index],fe=x[b[z+1].index*E+b[z].index],xe=0,be=0,Le=b[z].column,Te=b[z+1].column,at=a.nodeMinColumnSpace(b[z],!0),Ue=a.nodeMinColumnSpace(b[z],!1),vt=a.nodeMinColumnSpace(b[z+1],!0),St=a.nodeMinColumnSpace(b[z+1],!1);at=Le-at+vt,Ue=Te-Ue+St;var Ft=b[z].sourceEdges.iterator;for(Ft.reset();Ft.next();)if(vt=Ft.value,St=vt.fromVertex,vt.valid&&St.layer===y){for(vt=0;b[vt]!==St;)vt++;vt<z&&(xe+=2*(z-vt),be+=2*(z+1-vt)),vt===z+1&&(xe+=1),vt>z+1&&(xe+=4*(vt-z),be+=4*(vt-(z+1)))}for(Ft=b[z].destinationEdges.iterator,Ft.reset();Ft.next();)if(vt=Ft.value,St=vt.toVertex,vt.valid&&St.layer===y){for(vt=0;b[vt]!==St;)vt++;vt===z+1&&(be+=1)}for(Ft=b[z+1].sourceEdges.iterator,Ft.reset();Ft.next();)if(vt=Ft.value,St=vt.fromVertex,vt.valid&&St.layer===y){for(vt=0;b[vt]!==St;)vt++;vt<z&&(xe+=2*(z+1-vt),be+=2*(z-vt)),vt===z&&(be+=1),vt>z+1&&(xe+=4*(vt-(z+1)),be+=4*(vt-z))}for(Ft=b[z+1].destinationEdges.iterator,Ft.reset();Ft.next();)if(vt=Ft.value,St=vt.toVertex,vt.valid&&St.layer===y){for(vt=0;b[vt]!==St;)vt++;vt===z&&(xe+=1)}vt=St=0,Ft=ee[b[z].index];var Kt=re[b[z].index],pn=ee[b[z+1].index],ki=re[b[z+1].index];Ft!==-1&&(St+=Math.abs(Ft-Le),vt+=Math.abs(Ft-Ue)),Kt!==-1&&(St+=Math.abs(Kt-Le),vt+=Math.abs(Kt-Ue)),pn!==-1&&(St+=Math.abs(pn-Te),vt+=Math.abs(pn-at)),ki!==-1&&(St+=Math.abs(ki-Te),vt+=Math.abs(ki-at)),(be<xe-.5||be===xe&&fe<ue-.5||be===xe&&fe===ue&&vt<St-.5)&&(le=oe=!0,b[z].column=Ue,b[z+1].column=at,ue=b[z],b[z]=b[z+1],b[z+1]=ue)}for(z=0;z<E;z++)b[z].index=z;return nf(a,y,b),oe}sa.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&nw)!==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=Xg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Xg(this,y,-1)||x;x=Xg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Py(this,y,1);for(y=this.Md-1;0<=y;y--)Py(this,y,-1);Py(this,this.Md,0)}if(a&&(rx(this,-1),rx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Xg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Xg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Xg(this,y,0)||x}}else $x(this)};function Xg(a,y,x){for(var b=!1;Jx(a,y,x);)b=!0;return b}function Jx(a,y,x){var b,E=tf(a,y),z=a.tc[y],ee=Sy(a,y,-1);if(0<x)for(b=0;b<z;b++)ee[b]=-1;var re=Sy(a,y,1);if(0>x)for(b=0;b<z;b++)re[b]=-1;for(var oe=!1,le=!0;le;)for(le=!1,b=0;b<z;b++){var ue=E[b].column,fe=a.nodeMinColumnSpace(E[b],!0),xe=a.nodeMinColumnSpace(E[b],!1),be=0;0>b-1||ue-E[b-1].column-1>fe+a.nodeMinColumnSpace(E[b-1],!1)?be=ue-1:be=ue,fe=b+1>=z||E[b+1].column-ue-1>xe+a.nodeMinColumnSpace(E[b+1],!0)?ue+1:ue;var Le=xe=0,Te=0;if(0>=x)for(var at=E[b].sourceEdges.iterator;at.next();){var Ue=at.value,vt=Ue.fromVertex;if(Ue.valid&&vt.layer!==y){var St=yy(Ue),Ft=Ue.portFromColOffset;Ue=Ue.portToColOffset,vt=vt.column,xe+=(Math.abs(ue+Ue-(vt+Ft))+1)*St,Le+=(Math.abs(be+Ue-(vt+Ft))+1)*St,Te+=(Math.abs(fe+Ue-(vt+Ft))+1)*St}}if(0<=x)for(at=E[b].destinationEdges.iterator;at.next();)Ue=at.value,vt=Ue.toVertex,Ue.valid&&vt.layer!==y&&(St=yy(Ue),Ft=Ue.portFromColOffset,Ue=Ue.portToColOffset,vt=vt.column,xe+=(Math.abs(ue+Ft-(vt+Ue))+1)*St,Le+=(Math.abs(be+Ft-(vt+Ue))+1)*St,Te+=(Math.abs(fe+Ft-(vt+Ue))+1)*St);Ue=Ft=St=0,at=ee[E[b].index],vt=re[E[b].index],at!==-1&&(St+=Math.abs(at-ue),Ft+=Math.abs(at-be),Ue+=Math.abs(at-fe)),vt!==-1&&(St+=Math.abs(vt-ue),Ft+=Math.abs(vt-be),Ue+=Math.abs(vt-fe)),Le<xe||Le===xe&&Ft<St?(le=oe=!0,E[b].column=be):(Te<xe||Te===xe&&Ue<St)&&(le=oe=!0,E[b].column=fe)}return nf(a,y,E),a.normalize(),oe}function Py(a,y,x){var b=tf(a,y),E=a.tc[y],z=XS(a,y,x),ee=[];for(x=0;x<E;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var re=b[x].column,oe=a.nodeMinColumnSpace(b[x],!0),le=a.nodeMinColumnSpace(b[x],!1),ue=0;if(ee[x]===-1)if(x===0&&x===E-1)ue=re;else if(x===0){var fe=b[x+1].column;fe-re===le+a.nodeMinColumnSpace(b[x+1],!0)?ue=re-1:ue=re}else x===E-1?(fe=b[x-1].column,ue=re-fe===oe+a.nodeMinColumnSpace(b[x-1],!1)?re+1:re):(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=(oe+le)/2|0);else x===0&&x===E-1?ue=ee[x]:x===0?(fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=Math.min(ee[x],le)):x===E-1?(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,ue=Math.max(ee[x],oe)):(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,oe<ee[x]&&ee[x]<le?ue=ee[x]:oe>=ee[x]?ue=oe:le<=ee[x]&&(ue=le));ue!==re&&(z=!0,b[x].column=ue)}nf(a,y,b),a.normalize()}function Qx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),ee=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+ee>=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 _x(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){b=ee.value;var re=b.column-a.nodeMinColumnSpace(b,!0),oe=b.column+a.nodeMinColumnSpace(b,!1);re<=y&&oe>=y&&(E[b.layer]=!0),re<=x&&oe>=x&&(z[b.layer]=!0)}for(re=!0,x=!1,b=0;b<=a.Ia;b++)re=re&&!(E[b]&&z[b]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function rx(a,y){for(var x=0;x<=a.Ra;x++)for(;Qx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;_x(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Eu(a),z=M0(a);for(b=z+1;z<b;){b=z,ox(a,x,1);var ee=M0(a);ee>z?mc(a,E):ee<z&&(z=ee,E=Eu(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Eu(a),z=M0(a),b=z+1;z<b;)b=z,ox(a,x,-1),ee=M0(a),ee>z?mc(a,E):ee<z&&(z=ee,E=Eu(a));a.normalize()}function ox(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&&(xy(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 ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)E[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee+1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee+1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee-1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee-1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),E[oe])for(E[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.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 $x(a){for(var y=ci(),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 Ln,qx(y,x);var z=null,ee=null,re=null,oe=null,le=(a.ve&1)!==0,ue=(a.ve&2)!==0,fe=(a.ve&4)!==0,xe=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=N0(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),re=N0(a,y,!1,!1)),b=oi(y),E=b.next();!E.done;E=b.next())E.value.reverse();xe&&(a.verticalAlignment(y,x,!1),oe=N0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=N0(a,y,!0,!0)),Pi(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(be){var Le=ci();le&&Le.push(z.get(be)),ue&&Le.push(ee.get(be)),fe&&Le.push(re.get(be)),xe&&Le.push(oe.get(be)),Le.sort(function(at,Ue){return at-Ue});var Te=Le.length;Te=(Le[Math.floor((Te-1)/2)]+Le[Math.ceil((Te-1)/2)])/2,Pi(Le),be.zc=Te})}function qx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,ee=a[b],re=a[b+1],oe=0;z<re.length;oe++){var le=re[oe];e:{if(le.node===null){var ue=Ny(le);if(0<ue.length){ue=ue[0].node===null;break e}}ue=!1}var fe=ue;if(oe===re.length-1||fe){for(ue=ee.length-1,fe&&(ue=Ny(le)[0].index);z<=oe;){if(le=re[z],!le.bo){fe=[];for(var xe=oi(le.sourceEdgesArrayAccess),be=xe.next();!be.done;be=xe.next())be=be.value,be.valid&&fe.push(be);le.bo=fe}for(le=oi(le.bo),fe=le.next();!fe.done;fe=le.next())fe=fe.value,xe=fe.fromVertex.index,(xe<E||xe>ue)&&y.add(fe);z++}E=ue}}}sa.prototype.verticalAlignment=function(a,y,x){ew(a),a=oi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=oi(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ee=x?Ny(z):iw(z),re=ee.length;if(0<re){ee.sort(function(fe,xe){return fe.vi-xe.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var le=ee[re],ue=void 0;ue=x?I0(le,z):I0(z,le),!y.contains(ue)&&E<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,E=le.vi)}}}}};function ew(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 N0(a,y,x,b){for(var E=a.K===90||a.K===270,z=oi(y),ee=z.next();!ee.done;ee=z.next()){var re=oi(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=oi(y),re=z.next();!re.done;re=z.next()){re=oi(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var le=0,ue=oe;ue.align!==oe;){var fe=ue.align,xe=ee?ue.width:ue.height,be=ee?fe.width:fe.height;if(x){var Le=I0(ue,fe),Te=Le.portFromPos,at=Le.portToPos;Le.link!==null&&(ue.node&&ue.node!==Le.link.fromNode&&(Te=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Le.link.toNode&&(at=ee?fe.focusX:fe.focusY))}else Le=I0(fe,ue),Te=Le.portToPos,at=Le.portFromPos,Le.link!==null&&(ue.node&&ue.node!==Le.link.toNode&&(Te=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Le.link.fromNode&&(at=ee?fe.focusX:fe.focusY));xe=b?ue.qg+(xe-Te)-(be-at):ue.qg+Te-at,fe.qg=xe,le=Math.min(le,xe),ue=ue.align}ue=oe;do ue.qg=ue.qg-le,ue=ue.align;while(ue!==oe)}}for(x=oi(y),ee=x.next();!ee.done;ee=x.next())for(z=oi(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&ax(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=sx(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(E?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new Oi,y=oi(y),ee=y.next();!ee.done;ee=y.next())for(x=oi(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=E?ee.width:ee.height,a.add(ee,b?-ee.zc-z:ee.zc);return a}function ax(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=sx(b,x),z=E.root;ax(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+ee-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 sx(a,y){var x=a.Tz;return a=a.vi,1>a&&ct("Could not determine previous vertex in layer"),y[x][a-1]}sa.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=ci(),E=ci(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=tw(this,y[ee],b,E,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?b[x]-b[ee]:E[x]-E[ee],z.delta!==0&&y[ee].each(function(oe){return function(le){le.value+=oe.delta}}(z)));Pi(b),Pi(E)};function tw(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[E]=z,b[E]=ee,ee-z}sa.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(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 k0(a,y){return a.K===270?y?rs:xs:a.K===90?y?xs:rs:a.K===180?y?ds:Ls:y?Ls:ds}sa.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,ee=E=1/0,re=-1/0;a.next();){var oe=a.value,le=oe.layer,ue=oe.column|0;b?(ee=y.x+this.kc*ue,le=this.Kd[le]):(ee=this.Kd[le],le=y.y+this.kc*ue),oe.centerX=ee,oe.centerY=le,x&&isFinite(oe.zc)&&(b?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),E=Math.min(oe.y,E),b?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=E,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-E,this.Rf=new _e(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},sa.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 Sn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Sn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Sn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Sn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Sn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Sn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Sn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Sn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},sa.prototype.commitLayers=function(){},sa.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,ee=b.fromPort,re=b.toPort;if(E!==null){var oe=E.findVisibleNode();oe!==null&&oe!==E&&(E=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var le=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var ue=x.fromVertex,fe=x.toVertex;if(x.valid)y.curve===nc&&y.pointsCount===4&&(ue.column===fe.column&&this.alignOption===0?(x=y.getLinkPoint(E,ee,le,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,E,ee),x.w()||x.set(E.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=b=!1,ee!==null&&le===Da&&(b=!0),re!==null&&oe===Da&&(x=!0),(b||x)&&(oe=null,b&&(oe=y.getLinkPointFromPoint(E,ee,ee.ga(So),y.i(3),!0),oe.w()||oe.set(E.actualBounds.center),y.L(0,oe.x,oe.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,re,re.ga(So),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.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(ue.layer===fe.layer)y.zf();else{var xe=!1,be=!1,Le=this.ie,Te=y.firstPickIndex+1;if(y.isOrthogonal){be=!0;var at=y.pointsCount;4<at&&y.points.removeRange(2,at-3)}else if(y.curve===nc)xe=!0,at=y.pointsCount,4<at&&y.points.removeRange(2,at-3),at===4&&(Te=2);else{at=y.pointsCount;var Ue=le===Da,vt=oe===Da;2<at&&Ue&&vt?y.points.removeRange(1,at-2):3<at&&Ue&&!vt?y.points.removeRange(1,at-3):3<at&&!Ue&&vt?y.points.removeRange(2,at-2):4<at&&!Ue&&!vt&&y.points.removeRange(2,at-3)}if(x.rev){for(;fe!==null&&ue!==fe;){var St=at=null;for(Ue=fe.sourceEdges.iterator;Ue.next()&&(vt=Ue.value,vt.link!==x.link||(at=vt.fromVertex,St=vt.toVertex,at.node!==null)););if(at===null)break;if(at!==ue){Ue=y.i(Te-1).x,vt=y.i(Te-1).y;var Ft=at.centerX,Kt=at.centerY;if(be)this.K===180||this.K===0?Te===y.firstPickIndex+1?(y.m(Te++,Ue,vt),y.m(Te++,Ue,Kt)):(St!==null?St.centerY:vt)!==Kt&&(St=this.Ta[at.layer-1]+this.Rf.x,y.m(Te++,St,vt),y.m(Te++,St,Kt)):Te===y.firstPickIndex+1?(y.m(Te++,Ue,vt),y.m(Te++,Ft,vt)):(St!==null?St.centerX:Ue)!==Ft&&(St=this.Ta[at.layer-1]+this.Rf.y,y.m(Te++,Ue,St),y.m(Te++,Ft,St));else if(Te===y.firstPickIndex+1){St=Math.max(10,this.he[fe.layer]);var pn=Math.max(10,this.Ld[fe.layer]);if(xe)this.K===180?Ft<=fe.bounds.x?(fe=fe.bounds.x,y.m(Te++,fe-St,Kt),y.m(Te++,fe,Kt),y.m(Te++,fe+pn,Kt)):(y.m(Te++,Ft-St,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft+pn,Kt)):this.K===90?Kt>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(Te++,Ft,fe+pn),y.m(Te++,Ft,fe),y.m(Te++,Ft,fe-St)):(y.m(Te++,Ft,Kt+pn),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt-St)):this.K===270?Kt<=fe.bounds.y?(fe=fe.bounds.y,y.m(Te++,Ft,fe-St),y.m(Te++,Ft,fe),y.m(Te++,Ft,fe+pn)):(y.m(Te++,Ft,Kt-St),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt+pn)):this.K===0&&(Ft>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(Te++,fe+pn,Kt),y.m(Te++,fe,Kt),y.m(Te++,fe-St,Kt)):(y.m(Te++,Ft+pn,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft-St,Kt)));else{y.m(Te++,Ue,vt);var ki=0;this.K===180||this.K===0?((this.K===180?Ft>=fe.bounds.right:Ft<=fe.bounds.x)&&(ki=(this.K===0?-St:pn)/2),y.m(Te++,Ue+ki,Kt)):((this.K===270?Kt>=fe.bounds.bottom:Kt<=fe.bounds.y)&&(ki=(this.K===90?-St:pn)/2),y.m(Te++,Ft,vt+ki)),y.m(Te++,Ft,Kt)}}else St=Math.max(10,this.he[at.layer]),pn=Math.max(10,this.Ld[at.layer]),xe?this.K===180?(y.m(Te++,Ft-St-Le,Kt),y.m(Te++,Math.min(Ft-St+Le/2,Ft),Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Math.max(Ft+pn-Le/2,Ft),Kt),y.m(Te++,Ft+pn+Le,Kt)):this.K===90?(y.m(Te++,Ft,Kt+pn+Le),y.m(Te++,Ft,Math.max(Kt+pn-Le/2,Kt)),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Math.min(Kt-St+Le/2,Kt)),y.m(Te++,Ft,Kt-St-Le)):this.K===270?(y.m(Te++,Ft,Kt-St-Le),y.m(Te++,Ft,Math.min(Kt-St+Le/2,Kt)),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Math.max(Kt+pn-Le/2,Kt)),y.m(Te++,Ft,Kt+pn+Le)):(y.m(Te++,Ft+pn+Le,Kt),y.m(Te++,Math.max(Ft+pn-Le/2,Ft),Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Math.min(Ft-St+Le/2,Ft),Kt),y.m(Te++,Ft-St-Le,Kt)):y.m(Te++,Ft,Kt)}fe=at}(re===null||le!==Da||be)&&(Ue=y.i(Te-1).x,vt=y.i(Te-1).y,Ft=y.i(Te).x,Kt=y.i(Te).y,be?(Le=this.Ld[ue.layer],this.K===180||this.K===0?(be=vt,be>=ue.bounds.y&&be<=ue.bounds.bottom&&(this.K===180?Ft>=ue.bounds.x:Ft<=ue.bounds.right)&&(fe=ue.centerX+(this.K===180?-Le:Le),be<ue.bounds.y+ue.bounds.height/2?be=ue.bounds.y-this.kc/2:be=ue.bounds.bottom+this.kc/2,y.m(Te++,fe,vt),y.m(Te++,fe,be)),y.m(Te++,Ft,be)):(be=Ue,be>=ue.bounds.x&&be<=ue.bounds.right&&(this.K===270?Kt>=ue.bounds.y:Kt<=ue.bounds.bottom)&&(fe=ue.centerY+(this.K===270?-Le:Le),be<ue.bounds.x+ue.bounds.width/2?be=ue.bounds.x-this.kc/2:be=ue.bounds.right+this.kc/2,y.m(Te++,Ue,fe),y.m(Te++,be,fe)),y.m(Te++,be,Kt)),y.m(Te++,Ft,Kt)):xe?(St=Math.max(10,this.he[ue.layer]),pn=Math.max(10,this.Ld[ue.layer]),this.K===180&&Ft>=ue.bounds.x?(fe=ue.bounds.x+ue.bounds.width,y.L(Te-2,fe,vt),y.L(Te-1,fe+pn,vt)):this.K===90&&Kt<=ue.bounds.bottom?(fe=ue.bounds.y,y.L(Te-2,Ue,fe),y.L(Te-1,Ue,fe-St)):this.K===270&&Kt>=ue.bounds.y?(fe=ue.bounds.y+ue.bounds.height,y.L(Te-2,Ue,fe),y.L(Te-1,Ue,fe+pn)):this.K===0&&Ft<=ue.bounds.right&&(fe=ue.bounds.x,y.L(Te-2,fe,vt),y.L(Te-1,fe-St,vt))):(St=Math.max(10,this.he[ue.layer]),pn=Math.max(10,this.Ld[ue.layer]),be=0,this.K===180||this.K===0?((this.K===180?Ft<=ue.bounds.x:Ft>=ue.bounds.right)&&(be=(this.K===0?pn:-St)/2),y.m(Te++,Ft+be,vt)):((this.K===270?Kt<=ue.bounds.y:Kt>=ue.bounds.bottom)&&(be=(this.K===90?pn:-St)/2),y.m(Te++,Ue,Kt+be)),y.m(Te++,Ft,Kt)))}else{for(;ue!==null&&ue!==fe;){for(St=at=null,ue=ue.destinationEdges.iterator;ue.next()&&(Ue=ue.value,Ue.link!==x.link||(at=Ue.toVertex,St=Ue.fromVertex,St.node!==null&&(St=null),at.node!==null)););if(at===null)break;at!==fe&&(Ue=y.i(Te-1).x,vt=y.i(Te-1).y,Ft=at.centerX,Kt=at.centerY,be?this.K===180||this.K===0?(St!==null?St.centerY:vt)!==Kt&&(St=this.Ta[at.layer]+this.Rf.x,Te===y.firstPickIndex+1&&(St=this.K===0?Math.max(St,Ue):Math.min(St,Ue)),y.m(Te++,St,vt),y.m(Te++,St,Kt)):(St!==null?St.centerX:Ue)!==Ft&&(St=this.Ta[at.layer]+this.Rf.y,Te===y.firstPickIndex+1&&(St=this.K===90?Math.max(St,vt):Math.min(St,vt)),y.m(Te++,Ue,St),y.m(Te++,Ft,St)):(St=Math.max(10,this.he[at.layer]),pn=Math.max(10,this.Ld[at.layer]),xe?this.K===180?(y.m(Te++,Ft+pn+Le,Kt),y.m(Te++,Math.max(Ft+pn-Le/2,Ft),Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Math.min(Ft-St+Le/2,Ft),Kt),y.m(Te++,Ft-St-Le,Kt)):this.K===90?(y.m(Te++,Ft,Kt-St-Le),y.m(Te++,Ft,Math.min(Kt-St+Le/2,Kt)),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Math.max(Kt+pn-Le/2,Kt)),y.m(Te++,Ft,Kt+pn+Le)):this.K===270?(y.m(Te++,Ft,Kt+pn+Le),y.m(Te++,Ft,Math.max(Kt+pn-Le/2,Kt)),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Math.min(Kt-St+Le/2,Kt)),y.m(Te++,Ft,Kt-St-Le)):(y.m(Te++,Ft-St-Le,Kt),y.m(Te++,Math.min(Ft-St+Le/2,Ft),Kt),y.m(Te++,Ft,Kt),y.m(Te++,Ft,Kt),y.m(Te++,Math.max(Ft+pn-Le/2,Ft),Kt),y.m(Te++,Ft+pn+Le,Kt)):this.K===180?(y.m(Te++,Ft+pn,Kt),y.m(Te++,Ft-St,Kt)):this.K===90?(y.m(Te++,Ft,Kt-St),y.m(Te++,Ft,Kt+pn)):this.K===270?(y.m(Te++,Ft,Kt+pn),y.m(Te++,Ft,Kt-St)):(y.m(Te++,Ft-St,Kt),y.m(Te++,Ft+pn,Kt)))),ue=at}be&&(Ue=y.i(Te-1).x,vt=y.i(Te-1).y,Ft=y.i(Te).x,Kt=y.i(Te).y,this.K===180||this.K===0?vt!==Kt&&(St=this.K===0?Math.min(Math.max((Ft+Ue)/2,this.Ta[fe.layer]+this.Rf.x),Ft):Math.max(Math.min((Ft+Ue)/2,this.Ta[fe.layer]+this.Rf.x),Ft),y.m(Te++,St,vt),y.m(Te++,St,Kt)):Ue!==Ft&&(St=this.K===90?Math.min(Math.max((Kt+vt)/2,this.Ta[fe.layer]+this.Rf.y),Kt):Math.max(Math.min((Kt+vt)/2,this.Ta[fe.layer]+this.Rf.y),Kt),y.m(Te++,Ue,St),y.m(Te++,Ft,St)))}b!==null&&xe&&4<=y.pointsCount&&(ee!==null&&(ee=le===Da?y.getLinkPointFromPoint(E,ee,ee.ga(So),y.i(3),!0):y.i(0),le===Da&&(le=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+le.x)/2,le.y),y.L(2,b.x,(le.y+b.y)/2)):(y.L(1,le.x,(ee.y+le.y)/2),y.L(2,(le.x+b.x)/2,b.y))),ee.w()||ee.set(E.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(E=oe===Da?y.getLinkPointFromPoint(z,re,re.ga(So),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Da&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(E.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},sa.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Dn,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),ee=b.i(E+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new rf;re.layer=Math.floor(z.y/2);var oe=b.i(0),le=b.i(b.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=le.x*le.x+le.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=E,re.link=b,E+2<b.pointsCount){oe=b.i(E-1),le=b.i(E+2);var ue=0;oe.y<z.y?ue=le.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(ue=le.y>z.y?0:ee.x<z.x?2:1),re.j=ue}x.push(re)}}}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(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<E;oe++)le=x[oe],le.jc!==re&&(ue++,re=le.jc);this.zi(x,this.Ux,z,z+ee);var fe=1;for(re=x[z].first,oe=z;oe<E;oe++)le=x[oe],le.first!==re&&(fe++,re=le.first);for(oe=!0,le=fe,ue<fe?(oe=!1,le=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<E;fe++){var xe=x[fe];(oe?xe.first:xe.jc)!==re&&(ue++,re=oe?xe.first:xe.jc);var be=xe.link;z=be.i(xe.index),ee=be.i(xe.index+1);var Le=this.linkSpacing*(ue-(le-1)/2);y++,be.uh(),be.L(xe.index,z.x,z.y+Le),be.L(xe.index+1,ee.x,ee.y+Le),be.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),ee=b.i(E+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new rf,re.layer=Math.floor(z.x/2),oe=b.i(0),le=b.i(b.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=le.x+le.y*le.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=E,re.link=b,E+2<b.pointsCount&&(oe=b.i(E-1),le=b.i(E+2),ue=0,oe.x<z.x?ue=le.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(ue=le.x>z.x?0:ee.y<z.y?2:1),re.j=ue),x.push(re));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(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<E;oe++)le=x[oe],le.jc!==re&&(ue++,re=le.jc);for(this.zi(x,this.Ux,z,z+ee),fe=1,re=x[z].first,oe=z;oe<E;oe++)le=x[oe],le.first!==re&&(fe++,re=le.first);for(oe=!0,le=fe,ue<fe?(oe=!1,le=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<E;fe++)xe=x[fe],(oe?xe.first:xe.jc)!==re&&(ue++,re=oe?xe.first:xe.jc),be=xe.link,z=be.i(xe.index),ee=be.i(xe.index+1),Le=this.linkSpacing*(ue-(le-1)/2),y++,be.uh(),be.L(xe.index,z.x+Le,z.y),be.L(xe.index+1,ee.x+Le,ee.y),be.zf()}z=E}a=b}}}},Ae=sa.prototype,Ae.Vx=function(a,y){return a instanceof rf&&y instanceof rf&&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},Ae.Ux=function(a,y){return a instanceof rf&&y instanceof rf&&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},Ae.Js=function(a,y){return a instanceof rf&&y instanceof rf&&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},Ae.B=function(a,y){return a-=y,-1<a&&1>a},Ae.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&ct("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 tf(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 nf(a,y,x){a.He[a.tc[y]]=x}ze.Object.defineProperties(sa.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()):ct("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Cy&&a!==D0&&a!==$p||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==B0&&a!==by&&a!==Ey||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==T0&&a!==Ay&&a!==Ly||(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!==My&&a!==O0&&a!==Fy||(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 D0=new Cn(sa,"CycleDepthFirst",0),Cy=new Cn(sa,"CycleGreedy",1),$p=new Cn(sa,"CycleFromLayers",2),B0=new Cn(sa,"LayerOptimalLinkLength",0),by=new Cn(sa,"LayerLongestPathSink",1),Ey=new Cn(sa,"LayerLongestPathSource",2),T0=new Cn(sa,"InitDepthFirstOut",0),Ay=new Cn(sa,"InitDepthFirstIn",1),Ly=new Cn(sa,"InitNaive",2),My=new Cn(sa,"AggressiveNone",0),O0=new Cn(sa,"AggressiveLess",1),Fy=new Cn(sa,"AggressiveMore",2),nw=8;sa.className="LayeredDigraphLayout",sa.CycleDepthFirst=D0,sa.CycleGreedy=Cy,sa.CycleFromLayers=$p,sa.LayerOptimalLinkLength=B0,sa.LayerLongestPathSink=by,sa.LayerLongestPathSource=Ey,sa.InitDepthFirstOut=T0,sa.InitDepthFirstIn=Ay,sa.InitNaive=Ly,sa.AggressiveNone=My,sa.AggressiveLess=O0,sa.AggressiveMore=Fy,sa.PackNone=0,sa.PackExpand=1,sa.PackStraighten=2,sa.PackMedian=4,sa.PackAll=15,sa.AlignNone=0,sa.AlignUpperLeft=1,sa.AlignUpperRight=2,sa.AlignLowerLeft=4,sa.AlignLowerRight=8,sa.AlignAll=15;function rf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}rf.className="SegInfo";function Jg(a){Ea.call(this,a)}wt(Jg,Ea),Jg.prototype.createVertex=function(){return new vc(this)},Jg.prototype.createEdge=function(){return new qp(this)},Jg.className="LayeredDigraphNetwork";function vc(a){Xs.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}wt(vc,Xs);function lx(a,y){return a.index-y.index}function I0(a,y){if(!a.$n){for(var x=[],b=oi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=oi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ct("Unable to find destination edge to given vertex")}function Ny(a){if(!a.co){for(var y=[],x=oi(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(lx),a.co=y}return a.co}function iw(a){if(!a.ao){for(var y=[],x=oi(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(lx),a.ao=y}return a.ao}vc.prototype.Cl=function(a){Xs.prototype.Cl.call(this,a),this.bo=this.co=null},vc.prototype.Kl=function(a){Xs.prototype.Kl.call(this,a),this.bo=this.co=null},vc.prototype.zl=function(a){Xs.prototype.zl.call(this,a),this.$n=this.ao=null},vc.prototype.Jl=function(a){Xs.prototype.Jl.call(this,a),this.$n=this.ao=null},ze.Object.defineProperties(vc.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)}}}),vc.prototype.deleteDestinationEdge=vc.prototype.Jl,vc.prototype.addDestinationEdge=vc.prototype.zl,vc.prototype.deleteSourceEdge=vc.prototype.Kl,vc.prototype.addSourceEdge=vc.prototype.Cl,vc.className="LayeredDigraphVertex";function qp(a){Gu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}wt(qp,Gu),ze.Object.defineProperties(qp.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)}}}),qp.className="LayeredDigraphEdge";function Po(a){Za.call(this),this.Ub=new Ln,this.Wn=H0,this.ud=Td,this.vo=Z0,this.Bq=Wy,this.$v=[],this.td=!0,this.Rb=K0,this.$d=new zn(10,10).freeze();var y=new hg(this);this.W=new Dc(y),this.Y=new Dc(y),this.ru=[],a&&Object.assign(this,a)}wt(Po,Za),Po.prototype.cloneProtected=function(a){Za.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)},Po.prototype.qb=function(a){a.classType===Po?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:ct("Unknown enum value: "+a):Za.prototype.qb.call(this,a)},Po.prototype.createNetwork=function(){return new hg(this)},Po.prototype.makeNetwork=function(a){function y(b){if(b instanceof Ti)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof mi){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 gn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Qr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Po.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==V0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof gn&&(y=a),this.path===H0&&y!==null?this.ud=y.isTreePathToChildren?Td:cg:this.ud=this.path===H0?Td: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 Ln,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Ti?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Dc&&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,ky(this,y));for(y=this.network.vertexes,a=null;a=rw(y),0<a.count;)y=ux(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,ky(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Dc&&dx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Dc&&hx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Dc&&fx(this,y);if(this.Cu(),this.layerStyle===G0){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===Zy)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 Dc&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ln,this.isValidLayout=!0};function rw(a){var y=new Ln;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Po.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Td:x.sourceEdges.count===0&&this.Ub.add(x);break;case cg:x.destinationEdges.count===0&&this.Ub.add(x);break;default:ct("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ux(this,a),a!==null&&this.Ub.add(a))};function ux(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Td:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case cg:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:ct("Unhandled path value "+a.ud.toString())}}return b}function ky(a,y){if(y!==null){switch(a.ud){case Td:if(0<y.destinationEdges.count){for(var x=new Dn,b=y.destinationVertexes;b.next();){var E=b.value;cx(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case cg:if(0<y.sourceEdges.count){for(x=new Dn,b=y.sourceVertexes;b.next();)E=b.value,cx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:ct("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++)ky(a,x[y])}}function cx(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}Po.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 dx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Rd&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];dx(a,oe),x+=oe.descendantCount+1,b=Math.max(b,oe.maxChildrenCount),E=Math.max(E,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function ow(a,y){switch(a.vo){default:case Z0:return y.parent!==null?y.parent:a.W;case jy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case zy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ry: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}}Po.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ow(this,a)),a.parent!==null&&a.parent.alignment===Rd){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 hx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)hx(a,y[b])}}Po.prototype.assignTreeVertexValues=function(){};function fx(a,y){if(y!==null){y.alignment!==Rd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}Po.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Qg:break;case tm:a.children.reverse();break;case nm:a.children.sort(a.comparer);break;case im:a.children.sort(a.comparer),a.children.reverse();break;default:ct("Unhandled sorting value "+a.sorting.toString())}},Po.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Po.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=of(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var le=a.node.Mu();le.next();){var ue=le.value;ue.category==="Comment"&&ue.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ue),ue.Va(),ue=ue.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ue.width),ee+=ue.height+Math.abs(re)):(z+=ue.width+Math.abs(re),ee=Math.max(ee,ue.height)),re=oe)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=Sn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=E,Sn.free(E))};function of(a){return a===Mh||a===Rd||a===Fh||a===nh}function em(a){return a===Mh||a===Rd}function Dy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(of(x)){if(em(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Fh)return!0}}return!1}Po.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=of(z)),b=b===90||b===270,x=E===90||E===270;for(var ee=a.childrenCount===0,re=Dy(a),oe=0,le=a.comments,ue=le.length,fe=_e.alloc(),xe=0;xe<ue;xe++){var be=le[xe],Le=be.measuredBounds;if(b&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<E&&!z||x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x-a.commentMargin-Le.width,a.bounds.y+oe),be.move(fe),be=be.Sd();be.next();){var Te=be.value;Te.fromSpot=ds,Te.toSpot=Ls}else for(fe.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),be.move(fe),be=be.Sd();be.next();)Te=be.value,Te.fromSpot=Ls,Te.toSpot=ds;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),be.move(fe),be=be.Sd();be.next();)Te=be.value,Te.fromSpot=Ls,Te.toSpot=ds;else for(fe.h(a.bounds.x+a.commentMargin-Le.width,a.bounds.y+oe),be.move(fe),be=be.Sd();be.next();)Te=be.value,Te.fromSpot=ds,Te.toSpot=Ls;oe=0<=a.commentSpacing?oe+(Le.height+a.commentSpacing):oe+(a.commentSpacing-Le.height)}else{if(135<E&&!z||!x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Le.height),be.move(fe),be=be.Sd();be.next();)Te=be.value,Te.fromSpot=rs,Te.toSpot=xs;else for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),be.move(fe),be=be.Sd();be.next();)Te=be.value,Te.fromSpot=xs,Te.toSpot=rs;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),be.move(fe),be=be.Sd();be.next();)Te=be.value,Te.fromSpot=xs,Te.toSpot=rs;else for(fe.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Le.height),be.move(fe),be=be.Sd();be.next();)Te=be.value,Te.fromSpot=rs,Te.toSpot=xs;oe=0<=a.commentSpacing?oe+(Le.width+a.commentSpacing):oe+(a.commentSpacing-Le.width)}}if(_e.free(fe),y=oe-a.commentSpacing-(b?y.height:y.width),this.ud===Td)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)}},Po.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 W0:gx(this,a);break;case rm:if(a.alignment===Rd)gx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=of(x)),b=Dy(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=Uc(a);y=E===90||E===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)b=ee[x],z=Math.max(z,y?b.Da.width:b.Da.height);var oe=a.alignment;b=oe===Od;var le=oe===Id,ue=of(oe),fe=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var xe=a.nodeSpacing,be=this.computeNodeIndent(a),Le=a.rowSpacing,Te=0;(b||le||a.hm||a.im&&a.maxGenerationCount===1)&&(Te=Math.max(0,a.rowIndent)),b=a.width;var at=a.height,Ue=0,vt=0,St=0,Ft=null,Kt=null,pn=0,ki=0,Ji=0,Ri=0,pi=0,ni=0,Xr=0,Rr=0;if(ue&&!em(oe)&&135<E&&ee.reverse(),em(oe))if(1<re)for(var Qo=0;Qo<re;Qo++)Qo%2===0&&Qo!==re-1&&(Rr=Math.max(Rr,y?ee[Qo].Da.width:ee[Qo].Da.height));else re===1&&(Rr=y?ee[0].Da.width:ee[0].Da.height);if(ue){switch(oe){case Mh:vt=135>E?px(this,a,ee,Rr,Ue,vt):mx(this,a,ee,Rr,Ue,vt),Rr=vt.x,Ue=vt.width,vt=vt.height;break;case Fh:for(Ft=0;Ft<re;Ft++)Kt=ee[Ft],fe=Kt.Da,St=ni===0?0:Le,y?(Kt.S.h(z-fe.width,Ri+St),Ue=Math.max(Ue,fe.width),vt=Math.max(vt,Ri+St+fe.height),Ri+=St+fe.height):(Kt.S.h(Ji+St,z-fe.height),Ue=Math.max(Ue,Ji+St+fe.width),vt=Math.max(vt,fe.height),Ji+=St+fe.width),ni++;break;case nh:for(Ft=0;Ft<re;Ft++)Kt=ee[Ft],z=Kt.Da,fe=ni===0?0:Le,y?(Kt.S.h(xe/2+a.focus.x,Ri+fe),Ue=Math.max(Ue,z.width),vt=Math.max(vt,Ri+fe+z.height),Ri+=fe+z.height):(Kt.S.h(Ji+fe,xe/2+a.focus.y),Ue=Math.max(Ue,Ji+fe+z.width),vt=Math.max(vt,z.height),Ji+=fe+z.width),ni++}Ft=Ou(this,2),Kt=Ou(this,2),y?(Ft[0].h(0,0),Ft[1].h(0,vt),Kt[0].h(Ue,0)):(Ft[0].h(0,0),Ft[1].h(Ue,0),Kt[0].h(0,vt)),Kt[1].h(Ue,vt)}else for(Qo=0;Qo<re;Qo++){var Pa=ee[Qo],qs=Pa.Da;if(y){0<fe&&0<ni&&Ji+xe+qs.width>fe&&(Ji<z&&Of(a,oe,z-Ji,0,Xr,Qo-1),pi++,ni=0,Xr=Qo,St=vt,Ji=0,Ri=135<E?-vt-Le:vt+Le),z0(this,Pa,0,Ri);var cl=0;if(ni===0)Ft=Pa.Yo,Kt=Pa.kp,pn=qs.width,ki=qs.height,(Ft===null||Kt===null||E!==Uc(Pa))&&(Ft=Ou(this,2),Kt=Ou(this,2),Ft[0].h(0,0),Ft[1].h(0,ki),Kt[0].h(pn,0),Kt[1].h(pn,ki));else{var Xl=ci();ki=vx(this,a,Pa,Ft,Kt,pn,ki,Xl),cl=ki.x,Ft=Xl[0],Kt=Xl[1],pn=ki.width,ki=ki.height,Pi(Xl),Ji<qs.width&&0>cl&&(ug(a,-cl,0,Xr,Qo-1),j0(Ft,-cl,0),j0(Kt,-cl,0),cl=0)}Pa.S.h(cl,Ri),Ue=Math.max(Ue,pn),vt=Math.max(vt,St+(pi===0?0:Le)+qs.height),Ji=pn}else 0<fe&&0<ni&&Ri+xe+qs.height>fe&&(Ri<z&&Of(a,oe,0,z-Ri,Xr,Qo-1),pi++,ni=0,Xr=Qo,St=Ue,Ri=0,Ji=135<E?-Ue-Le:Ue+Le),z0(this,Pa,Ji,0),cl=0,ni===0?(Ft=Pa.Yo,Kt=Pa.kp,pn=qs.width,ki=qs.height,(Ft===null||Kt===null||E!==Uc(Pa))&&(Ft=Ou(this,2),Kt=Ou(this,2),Ft[0].h(0,0),Ft[1].h(pn,0),Kt[0].h(0,ki),Kt[1].h(pn,ki))):(Xl=ci(),ki=vx(this,a,Pa,Ft,Kt,pn,ki,Xl),cl=ki.x,Ft=Xl[0],Kt=Xl[1],pn=ki.width,ki=ki.height,Pi(Xl),Ri<qs.height&&0>cl&&(ug(a,0,-cl,Xr,Qo-1),j0(Ft,0,-cl),j0(Kt,0,-cl),cl=0)),Pa.S.h(Ji,cl),vt=Math.max(vt,ki),Ue=Math.max(Ue,St+(pi===0?0:Le)+qs.width),Ri=ki;ni++}switch(0<pi&&(y?(vt+=Math.max(0,x),Ji<Ue&&Of(a,oe,Ue-Ji,0,Xr,re-1),0<Te&&(le||ug(a,Te,0,0,re-1),Ue+=Te)):(Ue+=Math.max(0,x),Ri<vt&&Of(a,oe,0,vt-Ri,Xr,re-1),0<Te&&(le||ug(a,0,Te,0,re-1),vt+=Te))),Te=le=0,oe){case _g:y?le+=Ue/2-a.focus.x-be/2:Te+=vt/2-a.focus.y-be/2;break;case dg:0<pi?y?le+=Ue/2-a.focus.x-be/2:Te+=vt/2-a.focus.y-be/2:y?(Rr=ee[0].S.x+ee[0].la.x,le+=Rr+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-Rr)/2-a.focus.x-be/2):(Rr=ee[0].S.y+ee[0].la.y,Te+=Rr+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-Rr)/2-a.focus.y-be/2);break;case Od:y?(le-=be,Ue+=be):(Te-=be,vt+=be);break;case Id:y?(le+=Ue-a.width+be,Ue+=be):(Te+=vt-a.height+be,vt+=be);break;case Mh:y?1<re?le+=Rr+xe/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Te+=Rr+xe/2-a.focus.y:Te+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Fh:y?le+=Ue+xe/2-a.focus.x:Te+=vt+xe/2-a.focus.y;break;case nh:break;default:vt=this.customAlignment(a,le,Te,Ue,vt),le=vt[0],Te=vt[1],Ue=vt[2],vt=vt[3]}for(be=0;be<re;be++)Rr=ee[be],y?Rr.S.h(Rr.S.x+Rr.la.x-le,Rr.S.y+(135<E?(ue?-vt:-Rr.Da.height)+Rr.la.y-x:at+x+Rr.la.y)):Rr.S.h(Rr.S.x+(135<E?(ue?-Ue:-Rr.Da.width)+Rr.la.x-x:b+x+Rr.la.x),Rr.S.y+Rr.la.y-Te);if(re=ee=0,ue?y?(Ue=By(a,Ue,le),0>le&&(le=0),135<E&&(Te+=vt+x),vt+=at+x,oe===nh&&(ee+=xe/2+a.focus.x),re+=at+x):(135<E&&(le+=Ue+x),Ue+=b+x,vt=Ty(a,vt,Te),0>Te&&(Te=0),oe===nh&&(re+=xe/2+a.focus.y),ee+=b+x):y?(a.comments===null?b>Ue&&(Ue=Oy(oe,b-Ue,0),ee=Ue.x,re=Ue.y,Ue=b,le=0):Ue=By(a,Ue,le),0>le&&(ee-=le,le=0),135<E&&(Te+=vt+x),vt=Math.max(Math.max(vt,at),vt+at+x),re+=at+x):(135<E&&(le+=Ue+x),Ue=Math.max(Math.max(Ue,b),Ue+b+x),a.comments===null?at>vt&&(vt=Oy(oe,0,at-vt),ee=vt.x,re=vt.y,vt=at,Te=0):vt=Ty(a,vt,Te),0>Te&&(re-=Te,Te=0),ee+=b+x),0<pi)E=Ou(this,4),pi=Ou(this,4),y?(E[2].h(0,at+x),E[3].h(E[2].x,vt),pi[2].h(Ue,E[2].y),pi[3].h(pi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Ue,E[2].y),pi[2].h(E[2].x,vt),pi[3].h(E[3].x,pi[2].y));else{for(E=Ou(this,Ft.length+2),pi=Ou(this,Kt.length+2),oe=0;oe<Ft.length;oe++)ue=Ft[oe],E[oe+2].h(ue.x+ee,ue.y+re);for(oe=0;oe<Kt.length;oe++)ue=Kt[oe],pi[oe+2].h(ue.x+ee,ue.y+re)}y?(E[0].h(le,0),E[1].h(E[0].x,at),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])),pi[0].h(le+b,0),pi[1].h(pi[0].x,at),pi[2].y<pi[1].y&&(pi[2].x<pi[0].x?pi[2].assign(pi[1]):pi[1].assign(pi[2])),pi[3].y<pi[2].y&&(pi[3].x<pi[0].x?pi[3].assign(pi[2]):pi[2].assign(pi[3])),E[2].y-=x/2,pi[2].y-=x/2):(E[0].h(0,Te),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])),pi[0].h(0,Te+at),pi[1].h(b,pi[0].y),pi[2].x<pi[1].x&&(pi[2].y<pi[0].y?pi[2].assign(pi[1]):pi[1].assign(pi[2])),pi[3].x<pi[2].x&&(pi[3].y<pi[0].y?pi[3].assign(pi[2]):pi[2].assign(pi[3])),E[2].x-=x/2,pi[2].x-=x/2),sd(this,Ft),sd(this,Kt),a.Yo=E,a.kp=pi,a.la.h(le,Te),a.Da.h(Ue,vt)}break;default:ct("Unhandled compaction value "+a.compaction.toString())}}};function gx(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=of(x));var E=Dy(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=Uc(y),x=b===90||b===270;var z=0;E=y.children;for(var ee=E.length,re=0;re<ee;re++){var oe=E[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var le=y.alignment,ue=le===Od,fe=le===Id;re=of(le);var xe=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var be=y.nodeSpacing,Le=a.computeNodeIndent(y),Te=ue||fe?0:Le/2,at=y.rowSpacing,Ue=0;(ue||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(Ue=Math.max(0,y.rowIndent)),ue=y.width;var vt=y.height,St=0,Ft=0,Kt=0,pn=0,ki=0,Ji=0,Ri=0,pi=0,ni=0,Xr=0;if(re&&!em(le)&&135<b&&E.reverse(),em(le))if(1<ee)for(var Rr=0;Rr<ee;Rr++){var Qo=E[Rr],Pa=Qo.Da;Rr%2===0&&Rr!==ee-1?ni=Math.max(ni,(x?Pa.width:Pa.height)+a.computeBusNodeSpacing(Qo)-be):Rr%2!==0&&(Xr=Math.max(Xr,(x?Pa.width:Pa.height)+a.computeBusNodeSpacing(Qo)-be))}else ee===1&&(ni=x?E[0].Da.width:E[0].Da.height);if(re)switch(le){case Mh:case Rd:Ft=135>b?px(a,y,E,ni,St,Ft):mx(a,y,E,ni,St,Ft),ni=Ft.x,St=Ft.width,Ft=Ft.height;break;case Fh:for(xe=0;xe<ee;xe++)Te=E[xe],Kt=Te.Da,Xr=Ri===0?0:at,x?(Te.S.h(z-Kt.width,ki+Xr),St=Math.max(St,Kt.width),Ft=Math.max(Ft,ki+Xr+Kt.height),ki+=Xr+Kt.height):(Te.S.h(pn+Xr,z-Kt.height),St=Math.max(St,pn+Xr+Kt.width),Ft=Math.max(Ft,Kt.height),pn+=Xr+Kt.width),Ri++;break;case nh:for(z=0;z<ee;z++)xe=E[z],Te=xe.Da,Kt=Ri===0?0:at,x?(xe.S.h(be/2+y.focus.x,ki+Kt),St=Math.max(St,Te.width),Ft=Math.max(Ft,ki+Kt+Te.height),ki+=Kt+Te.height):(xe.S.h(pn+Kt,be/2+y.focus.y),St=Math.max(St,pn+Kt+Te.width),Ft=Math.max(Ft,Te.height),pn+=Kt+Te.width),Ri++}else for(Xr=0;Xr<ee;Xr++)Rr=E[Xr],Qo=Rr.Da,x?(0<xe&&0<Ri&&pn+be+Qo.width>xe&&(pn<z&&Of(y,le,z-pn,0,pi,Xr-1),Ji++,Ri=0,pi=Xr,Kt=Ft,pn=0,ki=135<b?-Ft-at:Ft+at),Pa=Ri===0?Te:be,z0(a,Rr,0,ki),Rr.S.h(pn+Pa,ki),St=Math.max(St,pn+Pa+Qo.width),Ft=Math.max(Ft,Kt+(Ji===0?0:at)+Qo.height),pn+=Pa+Qo.width):(0<xe&&0<Ri&&ki+be+Qo.height>xe&&(ki<z&&Of(y,le,0,z-ki,pi,Xr-1),Ji++,Ri=0,pi=Xr,Kt=St,ki=0,pn=135<b?-St-at:St+at),Pa=Ri===0?Te:be,z0(a,Rr,pn,0),Rr.S.h(pn,ki+Pa),Ft=Math.max(Ft,ki+Pa+Qo.height),St=Math.max(St,Kt+(Ji===0?0:at)+Qo.width),ki+=Pa+Qo.height),Ri++;switch(0<Ji&&(x?(Ft+=Math.max(0,oe),pn<St&&Of(y,le,St-pn,0,pi,ee-1),0<Ue&&(fe||ug(y,Ue,0,0,ee-1),St+=Ue)):(St+=Math.max(0,oe),ki<Ft&&Of(y,le,0,Ft-ki,pi,ee-1),0<Ue&&(fe||ug(y,0,Ue,0,ee-1),Ft+=Ue))),Ue=fe=0,le){case _g:x?fe+=St/2-y.focus.x-Le/2:Ue+=Ft/2-y.focus.y-Le/2;break;case dg:0<Ji?x?fe+=St/2-y.focus.x-Le/2:Ue+=Ft/2-y.focus.y-Le/2:x?(a=E[0].S.x+E[0].la.x,fe+=a+(E[ee-1].S.x+E[ee-1].la.x+2*E[ee-1].focus.x-a)/2-y.focus.x-Le/2):(a=E[0].S.y+E[0].la.y,Ue+=a+(E[ee-1].S.y+E[ee-1].la.y+2*E[ee-1].focus.y-a)/2-y.focus.y-Le/2);break;case Od:x?(fe-=Le,St+=Le):(Ue-=Le,Ft+=Le);break;case Id:x?(fe+=St-y.width+Le,St+=Le):(Ue+=Ft-y.height+Le,Ft+=Le);break;case Mh:case Rd:x?1<ee?fe+=ni+be/2-y.focus.x:fe+=E[0].focus.x-y.focus.x+E[0].la.x:1<ee?Ue+=ni+be/2-y.focus.y:Ue+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Fh:x?fe+=St+be/2-y.focus.x:Ue+=Ft+be/2-y.focus.y;break;case nh:break;default:a=a.customAlignment(y,fe,Ue,St,Ft),fe=a[0],Ue=a[1],St=a[2],Ft=a[3]}for(a=0;a<ee;a++)Le=E[a],x?Le.S.h(Le.S.x+Le.la.x-fe,Le.S.y+(135<b?(re?-Ft:-Le.Da.height)+Le.la.y-oe:vt+oe+Le.la.y)):Le.S.h(Le.S.x+(135<b?(re?-St:-Le.Da.width)+Le.la.x-oe:ue+oe+Le.la.x),Le.S.y+Le.la.y-Ue);x?(St=By(y,St,fe),0>fe&&(fe=0),135<b&&(Ue+=Ft+oe),Ft=Math.max(Math.max(Ft,vt),Ft+vt+oe)):(135<b&&(fe+=St+oe),St=Math.max(Math.max(St,ue),St+ue+oe),Ft=Ty(y,Ft,Ue),0>Ue&&(Ue=0)),y.la.h(fe,Ue),y.Da.h(St,Ft)}}Po.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function px(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new Sn(b,0,E,z);if(ee===1)return y=x[0],E=y.Da.width,z=y.Da.height,new Sn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Uc(y)===90,ue=0,fe=0,xe=0,be=0;be<ee;be++)if(!(be%2!==0||1<ee&&be===ee-1)){var Le=x[be],Te=Le.Da,at=ue===0?0:oe;if(le){var Ue=a.computeBusNodeSpacing(Le)-re;Le.S.h(b-(Te.width+Ue),xe+at),E=Math.max(E,Te.width+Ue),z=Math.max(z,xe+at+Te.height),xe+=at+Te.height}else Ue=a.computeBusNodeSpacing(Le)-re,Le.S.h(fe+at,b-(Te.height+Ue)),z=Math.max(z,Te.height+Ue),E=Math.max(E,fe+at+Te.width),fe+=at+Te.width;ue++}for(ue=0,Le=fe,be=xe,le?(fe=b+re,xe=0):(fe=0,xe=b+re),Te=0;Te<ee;Te++)if(Te%2!==0){at=x[Te],Ue=at.Da;var vt=ue===0?0:oe;if(le){var St=a.computeBusNodeSpacing(at)-re;at.S.h(fe+St,xe+vt),E=Math.max(E,fe+Ue.width+St),z=Math.max(z,xe+vt+Ue.height),xe+=vt+Ue.height}else St=a.computeBusNodeSpacing(at)-re,at.S.h(fe+vt,xe+St),E=Math.max(E,fe+vt+Ue.width),z=Math.max(z,xe+Ue.height+St),fe+=vt+Ue.width;ue++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(be),Math.abs(xe)):Math.max(Math.abs(Le),Math.abs(fe))),le?(x.S.h(b+re/2-x.focus.x-x.la.x,z+a),le=b+re/2-x.focus.x-x.la.x,E=Math.max(E,le+ee.width),0>le&&(E-=le),z=Math.max(z,Math.max(be,xe)+a+ee.height),0>x.S.x&&(b=R0(y,x.S.x,!1,b,re))):(x.S.h(E+a,b+re/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Le,fe)+a+ee.width),xe=b+re/2-x.focus.y-x.la.y,z=Math.max(z,xe+ee.height),0>xe&&(z-=xe),0>x.S.y&&(b=R0(y,x.S.y,!0,b,re)))),new Sn(b,0,E,z)}function mx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new Sn(b,0,E,z);if(ee===1)return x=x[0],E=x.Da.width,z=x.Da.height,new Sn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Uc(y)===270,ue=0,fe=0,xe=0,be=0;be<ee;be++)if(!(be%2!==0||1<ee&&be===ee-1)){var Le=x[be],Te=Le.Da,at=ue===0?0:oe;if(le){var Ue=a.computeBusNodeSpacing(Le)-re;xe-=at+Te.height,Le.S.h(b-(Te.width+Ue),xe),E=Math.max(E,Te.width+Ue),z=Math.max(z,Math.abs(xe))}else Ue=a.computeBusNodeSpacing(Le)-re,fe-=at+Te.width,Le.S.h(fe,b-(Te.height+Ue)),z=Math.max(z,Te.height+Ue),E=Math.max(E,Math.abs(fe));ue++}for(ue=0,Le=fe,be=xe,le?(fe=b+re,xe=0):(fe=0,xe=b+re),Te=0;Te<ee;Te++)if(Te%2!==0){at=x[Te],Ue=at.Da;var vt=ue===0?0:oe;if(le){var St=a.computeBusNodeSpacing(at)-re;xe-=vt+Ue.height,at.S.h(fe+St,xe),E=Math.max(E,fe+Ue.width+St),z=Math.max(z,Math.abs(xe))}else St=a.computeBusNodeSpacing(at)-re,fe-=vt+Ue.width,at.S.h(fe,xe+St),z=Math.max(z,xe+Ue.height+St),E=Math.max(E,Math.abs(fe));ue++}for(1<ee&&ee%2===1&&(oe=x[ee-1],ue=oe.Da,a=a.computeBusLastRowSpacing(oe,le?Math.max(Math.abs(be),Math.abs(xe)):Math.max(Math.abs(Le),Math.abs(fe))),le?(oe.S.h(b+re/2-oe.focus.x-oe.la.x,-z-ue.height-a),fe=b+re/2-oe.focus.x-oe.la.x,E=Math.max(E,fe+ue.width),0>fe&&(E-=fe),z=Math.max(z,Math.abs(Math.min(be,xe))+a+ue.height),0>oe.S.x&&(b=R0(y,oe.S.x,!1,b,re))):(oe.S.h(-E-ue.width-a,b+re/2-oe.focus.y-oe.la.y),E=Math.max(E,Math.abs(Math.min(Le,fe))+a+ue.width),xe=b+re/2-oe.focus.y-oe.la.y,z=Math.max(z,xe+ue.height),0>xe&&(z-=xe),0>oe.S.y&&(b=R0(y,oe.S.y,!0,b,re)))),y=0;y<ee;y++)re=x[y],le?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+E,re.S.y);return new Sn(b,0,E,z)}Po.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Po.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function R0(a,y,x,b,E){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].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 By(a,y,x){switch(a.alignment){case dg:case _g:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Od:return a.width>y?a.width:y;case Id:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Mh:case Rd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Fh:return a.width-a.focus.x+a.nodeSpacing/2+y;case nh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a.alignment){case dg:case _g:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Od:return a.height>y?a.height:y;case Id:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Mh:case Rd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Fh:return a.height-a.focus.y+a.nodeSpacing/2+y;case nh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case _g:y/=2,x/=2;break;case dg:y/=2,x/=2;break;case Od:x=y=0;break;case Id:break;default:ct("Unhandled alignment value "+a.toString())}return new _e(y,x)}function Of(a,y,x,b,E,z){y=Oy(y,x,b),ug(a,y.x,y.y,E,z)}function ug(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 z0(a,y,x,b){var E=y.parent;switch(a.ud){case Td:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case cg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:ct("Unhandled path value "+a.ud.toString())}}function j0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function vx(a,y,x,b,E,z,ee,re){var oe=Uc(y),le=oe===90||oe===270,ue=y.nodeSpacing;y=b;var fe=E;b=z;var xe=ee,be=x.Yo,Le=x.kp;ee=x.Da;var Te=le?Math.max(xe,ee.height):Math.max(b,ee.width);if((be===null||oe!==Uc(x))&&(be=Ou(a,2),Le=Ou(a,2),le?(be[0].h(0,0),be[1].h(0,ee.height),Le[0].h(ee.width,0),Le[1].h(Le[0].x,be[1].y)):(be[0].h(0,0),be[1].h(ee.width,0),Le[0].h(0,ee.height),Le[1].h(be[1].x,Le[0].y))),le){if(xe=9999999,!(fe===null||2>fe.length||be===null||2>be.length))for(E=x=0;x<fe.length&&E<be.length;){z=fe[x];var at=be[E];oe=at.x,le=at.y,oe+=b;var Ue=z;x+1<fe.length&&(Ue=fe[x+1]);var vt=at;at=vt.x,vt=vt.y,E+1<be.length&&(vt=be[E+1],at=vt.x,vt=vt.y,at+=b);var St=xe;z.y===le?St=oe-z.x:z.y>le&&z.y<vt?St=oe+(z.y-le)/(vt-le)*(at-oe)-z.x:le>z.y&&le<Ue.y&&(St=oe-(z.x+(le-z.y)/(Ue.y-z.y)*(Ue.x-z.x))),St<xe&&(xe=St),Ue.y<=z.y?x++:vt<=le?E++:(Ue.y<=vt&&x++,vt<=Ue.y&&E++)}if(xe=b-xe,xe+=ue,x=be,E=xe,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=Ou(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],ue[b++].h(le.x+E,le.y);for(;oe<y.length;)le=y[oe++],ue[b++].h(le.x,le.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)le=x[z++],ue[b++].h(le.x+E,le.y);for(x=Ou(a,b),oe=0;oe<b;oe++)x[oe].assign(ue[oe]);sd(a,ue),b=x}if(z=Le,oe=xe,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=Ou(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].y<z[0].y;)Ue=fe[x++],ue[E++].h(Ue.x,Ue.y);for(;le<z.length;)Ue=z[le++],ue[E++].h(Ue.x+oe,Ue.y);for(z=z[z.length-1].y;x<fe.length&&fe[x].y<=z;)x++;for(;x<fe.length&&fe[x].y>z;)oe=fe[x++],ue[E++].h(oe.x,oe.y);for(z=Ou(a,E),x=0;x<E;x++)z[x].assign(ue[x]);sd(a,ue),E=z}return z=Math.max(0,xe)+ee.width,ee=Te,sd(a,y),sd(a,be),sd(a,fe),sd(a,Le),re[0]=b,re[1]=E,new Sn(xe,0,z,ee)}if(b=9999999,!(fe===null||2>fe.length||be===null||2>be.length))for(E=x=0;x<fe.length&&E<be.length;)z=fe[x],at=be[E],oe=at.x,le=at.y,le+=xe,Ue=z,x+1<fe.length&&(Ue=fe[x+1]),vt=at,at=vt.x,vt=vt.y,E+1<be.length&&(vt=be[E+1],at=vt.x,vt=vt.y,vt+=xe),St=b,z.x===oe?St=le-z.y:z.x>oe&&z.x<at?St=le+(z.x-oe)/(at-oe)*(vt-le)-z.y:oe>z.x&&oe<Ue.x&&(St=le-(z.y+(oe-z.x)/(Ue.x-z.x)*(Ue.y-z.y))),St<b&&(b=St),Ue.x<=z.x?x++:at<=oe?E++:(Ue.x<=at&&x++,at<=Ue.x&&E++);if(xe-=b,xe+=ue,x=be,E=xe,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=Ou(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],ue[b++].h(le.x,le.y+E);for(;oe<y.length;)le=y[oe++],ue[b++].h(le.x,le.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)le=x[z++],ue[b++].h(le.x,le.y+E);for(x=Ou(a,b),oe=0;oe<b;oe++)x[oe].assign(ue[oe]);sd(a,ue),b=x}if(z=Le,oe=xe,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=Ou(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].x<z[0].x;)Ue=fe[x++],ue[E++].h(Ue.x,Ue.y);for(;le<z.length;)Ue=z[le++],ue[E++].h(Ue.x,Ue.y+oe);for(z=z[z.length-1].x;x<fe.length&&fe[x].x<=z;)x++;for(;x<fe.length&&fe[x].x>z;)oe=fe[x++],ue[E++].h(oe.x,oe.y);for(z=Ou(a,E),x=0;x<E;x++)z[x].assign(ue[x]);sd(a,ue),E=z}return z=Te,ee=Math.max(0,xe)+ee.height,sd(a,y),sd(a,be),sd(a,fe),sd(a,Le),re[0]=b,re[1]=E,new Sn(xe,0,z,ee)}function Ou(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 _e;return a}function sd(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Po.prototype.arrangeTrees=function(){if(this.Rb===V0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Dc){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),Iy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Dc&&a.push(x);switch(this.sorting){case Qg:break;case tm:a.reverse();break;case nm:a.sort(this.comparer);break;case im:a.sort(this.comparer),a.reverse();break;default:ct("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(Iy(this,E,y+E.la.x,x+E.la.y),this.Rb){case K0:x+=E.Da.height+this.$d.height;break;case Hy:y+=E.Da.width+this.$d.width;break;default:ct("Unhandled arrangement value "+this.Rb.toString())}}}};function Iy(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 ee=y[z];Iy(a,ee,x+ee.S.x,b+ee.S.y)}}}Po.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Po.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Po.prototype.Gu=function(){if(this.layerStyle===G0){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 _e(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new _e(-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 ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,E.push(new Sn(0,z,x,re))):this.angle===90?(E.push(new Sn(0,z,x,re)),z+=re):this.angle===180?(z-=re,E.push(new Sn(z,0,re,x))):(E.push(new Sn(z,0,re,x)),z+=re)}this.commitLayers(E,b)}},Po.prototype.commitLayers=function(){},Po.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Po.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Dc&&yx(this,y)}};function yx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)yx(a,y[b])}}Po.prototype.setPortSpots=function(a){var y=a.alignment;if(of(y)){var x=this.ud===Td,b=Uc(a);switch(b){case 0:var E=Ls;break;case 90:E=xs;break;case 180:E=ds;break;default:E=rs}var z=a.children,ee=z.length;switch(y){case Mh:case Rd:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=b===90||b===270?ds:rs;if(ee===1||y===ee-1&&ee%2===1)switch(b){case 0:oe=ds;break;case 90:oe=rs;break;case 180:oe=Ls;break;default:oe=xs}else y%2===0&&(oe=b===90||b===270?Ls:xs);x?(a.setsPortSpot&&(re.fromSpot=E),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=E))}}break;case Fh:for(b=b===90||b===270?Ls:xs,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)));break;case nh:for(b=b===90||b===270?ds:rs,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)))}}else if(x=Uc(a),this.ud===Td){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=Ls;break;case 90:b.fromSpot=xs;break;case 180:b.fromSpot=ds;break;default:b.fromSpot=rs}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=ds;break;case 90:b.toSpot=rs;break;case 180:b.toSpot=Ls;break;default:b.toSpot=xs}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=Ls;break;case 90:b.toSpot=xs;break;case 180:b.toSpot=ds;break;default:b.toSpot=rs}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=ds;break;case 90:b.fromSpot=rs;break;case 180:b.fromSpot=Ls;break;default:b.fromSpot=xs}else b.fromSpot=a.childPortSpot}};function Uc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Po.prototype.computeLayerSpacing=function(a){var y=Uc(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},Po.prototype.computeNodeIndent=function(a){var y=Uc(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)},ze.Object.defineProperties(Po.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!==Z0&&a!==zy&&a!==Ry&&a!==jy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Wy&&a!==Zy&&a!==G0||(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!==K0&&a!==Hy&&a!==V0||(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!==Qg&&a!==tm&&a!==nm&&!im||(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()):ct("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!==W0&&a!==rm||(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!==Qg&&a!==tm&&a!==nm&&!im||(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!==W0&&a!==rm||(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 H0=new Cn(Po,"PathDefault",-1),Td=new Cn(Po,"PathDestination",0),cg=new Cn(Po,"PathSource",1),Qg=new Cn(Po,"SortingForwards",10),tm=new Cn(Po,"SortingReverse",11),nm=new Cn(Po,"SortingAscending",12),im=new Cn(Po,"SortingDescending",13),_g=new Cn(Po,"AlignmentCenterSubtrees",20),dg=new Cn(Po,"AlignmentCenterChildren",21),Od=new Cn(Po,"AlignmentStart",22),Id=new Cn(Po,"AlignmentEnd",23),Mh=new Cn(Po,"AlignmentBus",24),Rd=new Cn(Po,"AlignmentBusBranching",25),Fh=new Cn(Po,"AlignmentTopLeftBus",26),nh=new Cn(Po,"AlignmentBottomRightBus",27),W0=new Cn(Po,"CompactionNone",30),rm=new Cn(Po,"CompactionBlock",31),Z0=new Cn(Po,"StyleLayered",40),Ry=new Cn(Po,"StyleLastParents",41),zy=new Cn(Po,"StyleAlternating",42),jy=new Cn(Po,"StyleRootOnly",43),K0=new Cn(Po,"ArrangementVertical",50),Hy=new Cn(Po,"ArrangementHorizontal",51),V0=new Cn(Po,"ArrangementFixedRoots",52),Wy=new Cn(Po,"LayerIndividual",60),Zy=new Cn(Po,"LayerSiblings",61),G0=new Cn(Po,"LayerUniform",62);Po.className="TreeLayout",Po.PathDefault=H0,Po.PathDestination=Td,Po.PathSource=cg,Po.SortingForwards=Qg,Po.SortingReverse=tm,Po.SortingAscending=nm,Po.SortingDescending=im,Po.AlignmentCenterSubtrees=_g,Po.AlignmentCenterChildren=dg,Po.AlignmentStart=Od,Po.AlignmentEnd=Id,Po.AlignmentBus=Mh,Po.AlignmentBusBranching=Rd,Po.AlignmentTopLeftBus=Fh,Po.AlignmentBottomRightBus=nh,Po.CompactionNone=W0,Po.CompactionBlock=rm,Po.StyleLayered=Z0,Po.StyleLastParents=Ry,Po.StyleAlternating=zy,Po.StyleRootOnly=jy,Po.ArrangementVertical=K0,Po.ArrangementHorizontal=Hy,Po.ArrangementFixedRoots=V0,Po.LayerIndividual=Wy,Po.LayerSiblings=Zy,Po.LayerUniform=G0;function hg(a){Ea.call(this,a)}wt(hg,Ea),hg.prototype.createVertex=function(){return new Dc(this)},hg.prototype.createEdge=function(){return new $g(this)},hg.className="TreeNetwork";function Dc(a){Xs.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 _e(0,0),this.Da=new zn(0,0),this.la=new _e(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Qg,this.hd=ly,this.Kb=0,this.Jb=dg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=rm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Jo,this.wr=!0,this.Dp=Jo}wt(Dc,Xs),Dc.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)},ze.Object.defineProperties(Dc.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)}}}),Dc.className="TreeVertex";function $g(a){Gu.call(this,a),this.$t=new _e(0,0)}wt($g,Gu),$g.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 Td:x=this.fromVertex,b=this.toVertex;break;case cg:x=this.toVertex,b=this.fromVertex;break;default:ct("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=Uc(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===nc,le=a.isOrthogonal,ue;if(a.uh(),le||oe){for(ue=2;4<a.pointsCount;)a.pv(2);var fe=a.i(1),xe=a.i(2)}else{for(ue=1;3<a.pointsCount;)a.pv(1);fe=a.i(0),xe=a.i(a.pointsCount-1)}var be=a.i(a.pointsCount-1);z===0?(x.alignment===Id?(z=b.bottom+E.y,E.y===0&&fe.y>be.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Od?(z=b.top+E.y,E.y===0&&fe.y<be.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.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,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,b.right+ee,z),ue++,a.m(ue,b.right+ee+(E.x-re)/3,z),ue++,a.m(ue,b.right+ee+2*(E.x-re)/3,z),ue++,a.m(ue,b.right+ee+(E.x-re),z),ue++,a.m(ue,xe.x,z)):(le&&(a.m(ue,b.right+ee/2,fe.y),ue++),a.m(ue,b.right+ee/2,z),ue++,a.m(ue,b.right+ee+E.x-(le?re/2:re),z),ue++,le&&a.m(ue,a.i(ue-1).x,xe.y))):z===90?(x.alignment===Id?(z=b.right+E.x,E.x===0&&fe.x>be.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Od?(z=b.left+E.x,E.x===0&&fe.x<be.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.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,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.bottom+ee),ue++,a.m(ue,z,b.bottom+ee+(E.y-re)/3),ue++,a.m(ue,z,b.bottom+ee+2*(E.y-re)/3),ue++,a.m(ue,z,b.bottom+ee+(E.y-re)),ue++,a.m(ue,z,xe.y)):(le&&(a.m(ue,fe.x,b.bottom+ee/2),ue++),a.m(ue,z,b.bottom+ee/2),ue++,a.m(ue,z,b.bottom+ee+E.y-(le?re/2:re)),ue++,le&&a.m(ue,xe.x,a.i(ue-1).y))):z===180?(x.alignment===Id?(z=b.bottom+E.y,E.y===0&&fe.y>be.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Od?(z=b.top+E.y,E.y===0&&fe.y<be.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.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,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,b.left-ee,z),ue++,a.m(ue,b.left-ee+(E.x+re)/3,z),ue++,a.m(ue,b.left-ee+2*(E.x+re)/3,z),ue++,a.m(ue,b.left-ee+(E.x+re),z),ue++,a.m(ue,xe.x,z)):(le&&(a.m(ue,b.left-ee/2,fe.y),ue++),a.m(ue,b.left-ee/2,z),ue++,a.m(ue,b.left-ee+E.x+(le?re/2:re),z),ue++,le&&a.m(ue,a.i(ue-1).x,xe.y))):z===270?(x.alignment===Id?(z=b.right+E.x,E.x===0&&fe.x>be.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Od?(z=b.left+E.x,E.x===0&&fe.x<be.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.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,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.top-ee),ue++,a.m(ue,z,b.top-ee+(E.y+re)/3),ue++,a.m(ue,z,b.top-ee+2*(E.y+re)/3),ue++,a.m(ue,z,b.top-ee+(E.y+re)),ue++,a.m(ue,z,xe.y)):(le&&(a.m(ue,fe.x,b.top-ee/2),ue++),a.m(ue,z,b.top-ee/2),ue++,a.m(ue,z,b.top-ee+E.y+(le?re/2:re)),ue++,le&&a.m(ue,xe.x,a.i(ue-1).y))):ct("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Uc(x),y!==Uc(E)&&(ee=b.computeLayerSpacing(x),re=x.bounds,x=E.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===nc,E=a.isOrthogonal,b=of(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/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=re.bottom+ee/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=re.left-ee/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=re.top-ee/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()))}}},ze.Object.defineProperties($g.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)}}}),$g.className="TreeEdge",ai.prototype.initializeStandardTools=function(){this.gb("Action",new Ir,this.mouseDownTools),this.gb("Relinking",new Ii,this.mouseDownTools),this.gb("LinkReshaping",new Zi,this.mouseDownTools),this.gb("Rotating",new qr,this.mouseDownTools),this.gb("Resizing",new Hr,this.mouseDownTools),this.gb("Linking",new si,this.mouseMoveTools),this.gb("Dragging",new ur,this.mouseMoveTools),this.gb("DragSelecting",new Wr,this.mouseMoveTools),this.gb("Panning",new mr,this.mouseMoveTools),this.gb("ContextMenu",new Mo,this.mouseUpTools),this.gb("TextEditing",new wo,this.mouseUpTools),this.gb("ClickCreating",new ao,this.mouseUpTools),this.gb("ClickSelecting",new Vo,this.mouseUpTools)},yd("Horizontal",new xm),yd("Spot",new Pm),yd("Table",new bm),yd("Viewbox",new Lm),yd("TableRow",new Em),yd("TableColumn",new Am),yd("Graduated",new xp),yd("Grid",new Sp),nd.add("GraphLinksModel",ul),nd.add("TreeModel",pc);var Y0=Qe.go,Ky={get licenseKey(){return gn.licenseKey},set licenseKey(a){gn.licenseKey=a},get version(){return gn.version},Group:Qr,EnumValue:Cn,List:Dn,Set:Ln,Map:Oi,Point:_e,Size:zn,Rect:Sn,Margin:Hi,Spot:Gi,Geometry:gi,PathFigure:Ts,PathSegment:Io,InputEvent:$t,DiagramEvent:un,ChangedEvent:In,Model:tr,GraphLinksModel:To,TreeModel:uu,Binding:Fs,Transaction:ar,UndoManager:Fi,CommandHandler:ot,Tool:bi,DraggingTool:ur,DraggingInfo:Qd,DraggingOptions:ae,LinkingBaseTool:hn,LinkingTool:si,RelinkingTool:Ii,LinkReshapingTool:Zi,ResizingTool:Hr,RotatingTool:qr,ClickSelectingTool:Vo,ActionTool:Ir,ClickCreatingTool:ao,HTMLInfo:Dr,ContextMenuTool:Mo,DragSelectingTool:Wr,PanningTool:mr,TextEditingTool:wo,ToolManager:ai,Animation:qa,AnimationManager:Na,AnimationTrigger:yu,Layer:za,Diagram:gn,Palette:he,Overview:pe,Brush:ra,GraphObject:Gt,Panel:hi,RowColumnDefinition:Hs,Shape:io,TextBlock:ba,Picture:Cu,Part:dr,Adornment:Uo,Node:Ti,Link:mi,Placeholder:ou,Layout:Za,LayoutNetwork:Ea,LayoutVertex:Xs,LayoutEdge:Gu,GridLayout:Cl,PanelLayout:Us,CircularLayout:es,CircularNetwork:Ug,CircularVertex:Xp,CircularEdge:A0,ForceDirectedLayout:Bl,ForceDirectedNetwork:lg,ForceDirectedVertex:Jp,ForceDirectedEdge:Qp,LayeredDigraphLayout:sa,LayeredDigraphNetwork:Jg,LayeredDigraphVertex:vc,LayeredDigraphEdge:qp,TreeLayout:Po,TreeNetwork:hg,TreeVertex:Dc,TreeEdge:$g};typeof Y0=="object"&&Y0.version&&_n("WARNING: a `go` object on the root object is already defined. "+("Debug"in Y0?"debug ":"")+"version: "+Y0.version+", replaced with version: "+Ky.version),gn.prototype.go=Ky,Qe.go=Ky,typeof Rn.exports=="object"&&(Rn.exports=typeof ve.g!="undefined"?ve.g.go:self.go)}();var ye=typeof ve.g!="undefined"?ve.g.go:self.go;const Oe=typeof ve.g!="undefined"?ve.g.go:self.go,He=Oe.Group,Rt=Oe.EnumValue,$e=Oe.List,qe=Oe.Set,De=Oe.Map,Tt=Oe.Point,Et=Oe.Size,et=Oe.Rect,Ot=Oe.Margin,it=Oe.Spot,Pt=Oe.Geometry,Me=Oe.PathFigure,te=Oe.PathSegment,ne=Oe.InputEvent,ce=Oe.DiagramEvent,se=Oe.ChangedEvent,ge=Oe.Model,me=Oe.GraphLinksModel,Ce=Oe.TreeModel,Fe=Oe.Binding,Pe=Oe.Transaction,Ie=Oe.UndoManager,Ge=Oe.CommandHandler,Ke=Oe.Tool,Ye=Oe.DraggingTool,pt=Oe.DraggingInfo,Je=Oe.LinkingBaseTool,kt=Oe.LinkingTool,Xe=Oe.RelinkingTool,Wt=Oe.LinkReshapingTool,zt=Oe.ResizingTool,jt=Oe.RotatingTool,Mt=Oe.ClickSelectingTool,Ut=Oe.ActionTool,ft=Oe.ClickCreatingTool,Re=Oe.HTMLInfo,Lt=Oe.ContextMenuTool,yn=Oe.DragSelectingTool,mn=Oe.PanningTool,Nt=Oe.TextEditingTool,en=Oe.ToolManager,nn=Oe.Animation,On=Oe.AnimationManager,dn=Oe.AnimationTrigger,Tn=Oe.Layer,mt=Oe.Diagram,Gn=Oe.Palette,xn=Oe.Overview,tt=Oe.Brush,Ee=Oe.GraphObject,we=Oe.Panel,Be=Oe.RowColumnDefinition,ke=Oe.Shape,Se=Oe.TextBlock,st=Oe.TextBlockMetrics,At=Oe.Picture,Ve=Oe.Part,We=Oe.Adornment,Ct=Oe.Node,bt=Oe.Link,dt=Oe.Placeholder,Ht=Oe.Layout,En=Oe.LayoutNetwork,An=Oe.LayoutVertex,qt=Oe.LayoutEdge,cn=Oe.GridLayout,qn=Oe.PanelLayout,wn=Oe.CircularLayout,vi=Oe.CircularNetwork,ei=Oe.CircularVertex,Li=Oe.CircularEdge,Vi=Oe.ForceDirectedLayout,zi=Oe.ForceDirectedNetwork,Bn=Oe.ForceDirectedVertex,rr=Oe.ForceDirectedEdge,Yr=Oe.LayeredDigraphLayout,zr=Oe.LayeredDigraphNetwork,Zr=Oe.LayeredDigraphVertex,Nr=Oe.LayeredDigraphEdge,Co=Oe.TreeLayout,$r=Oe.TreeNetwork,sr=Oe.TreeVertex,Fo=Oe.TreeEdge,ti=Oe.version},24334:function(Rn,Mn,ve){var ye,Oe;(function(He,Rt){Rn.exports=Rt(He)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ve.g!="undefined"?ve.g:this,function(He){"use strict";He=He||{};var Rt=He.Base64,$e="2.6.4",qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",De=function(Xe){for(var Wt={},zt=0,jt=Xe.length;zt<jt;zt++)Wt[Xe.charAt(zt)]=zt;return Wt}(qe),Tt=String.fromCharCode,Et=function(Xe){if(Xe.length<2){var Wt=Xe.charCodeAt(0);return Wt<128?Xe:Wt<2048?Tt(192|Wt>>>6)+Tt(128|Wt&63):Tt(224|Wt>>>12&15)+Tt(128|Wt>>>6&63)+Tt(128|Wt&63)}else{var Wt=65536+(Xe.charCodeAt(0)-55296)*1024+(Xe.charCodeAt(1)-56320);return Tt(240|Wt>>>18&7)+Tt(128|Wt>>>12&63)+Tt(128|Wt>>>6&63)+Tt(128|Wt&63)}},et=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ot=function(Xe){return Xe.replace(et,Et)},it=function(Xe){var Wt=[0,2,1][Xe.length%3],zt=Xe.charCodeAt(0)<<16|(Xe.length>1?Xe.charCodeAt(1):0)<<8|(Xe.length>2?Xe.charCodeAt(2):0),jt=[qe.charAt(zt>>>18),qe.charAt(zt>>>12&63),Wt>=2?"=":qe.charAt(zt>>>6&63),Wt>=1?"=":qe.charAt(zt&63)];return jt.join("")},Pt=He.btoa&&typeof He.btoa=="function"?function(Xe){return He.btoa(Xe)}:function(Xe){if(Xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Xe.replace(/[\s\S]{1,3}/g,it)},Me=function(Xe){return Pt(Ot(String(Xe)))},te=function(Xe){return Xe.replace(/[+\/]/g,function(Wt){return Wt=="+"?"-":"_"}).replace(/=/g,"")},ne=function(Xe,Wt){return Wt?te(Me(Xe)):Me(Xe)},ce=function(Xe){return ne(Xe,!0)},se;He.Uint8Array&&(se=function(Xe,Wt){for(var zt="",jt=0,Mt=Xe.length;jt<Mt;jt+=3){var Ut=Xe[jt],ft=Xe[jt+1],Re=Xe[jt+2],Lt=Ut<<16|ft<<8|Re;zt+=qe.charAt(Lt>>>18)+qe.charAt(Lt>>>12&63)+(typeof ft!="undefined"?qe.charAt(Lt>>>6&63):"=")+(typeof Re!="undefined"?qe.charAt(Lt&63):"=")}return Wt?te(zt):zt});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(Xe){switch(Xe.length){case 4:var Wt=(7&Xe.charCodeAt(0))<<18|(63&Xe.charCodeAt(1))<<12|(63&Xe.charCodeAt(2))<<6|63&Xe.charCodeAt(3),zt=Wt-65536;return Tt((zt>>>10)+55296)+Tt((zt&1023)+56320);case 3:return Tt((15&Xe.charCodeAt(0))<<12|(63&Xe.charCodeAt(1))<<6|63&Xe.charCodeAt(2));default:return Tt((31&Xe.charCodeAt(0))<<6|63&Xe.charCodeAt(1))}},Ce=function(Xe){return Xe.replace(ge,me)},Fe=function(Xe){var Wt=Xe.length,zt=Wt%4,jt=(Wt>0?De[Xe.charAt(0)]<<18:0)|(Wt>1?De[Xe.charAt(1)]<<12:0)|(Wt>2?De[Xe.charAt(2)]<<6:0)|(Wt>3?De[Xe.charAt(3)]:0),Mt=[Tt(jt>>>16),Tt(jt>>>8&255),Tt(jt&255)];return Mt.length-=[0,0,2,1][zt],Mt.join("")},Pe=He.atob&&typeof He.atob=="function"?function(Xe){return He.atob(Xe)}:function(Xe){return Xe.replace(/\S{1,4}/g,Fe)},Ie=function(Xe){return Pe(String(Xe).replace(/[^A-Za-z0-9\+\/]/g,""))},Ge=function(Xe){return Ce(Pe(Xe))},Ke=function(Xe){return String(Xe).replace(/[-_]/g,function(Wt){return Wt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ye=function(Xe){return Ge(Ke(Xe))},pt;He.Uint8Array&&(pt=function(Xe){return Uint8Array.from(Ie(Ke(Xe)),function(Wt){return Wt.charCodeAt(0)})});var Je=function(){var Xe=He.Base64;return He.Base64=Rt,Xe};if(He.Base64={VERSION:$e,atob:Ie,btoa:Pt,fromBase64:Ye,toBase64:ne,utob:Ot,encode:ne,encodeURI:ce,btou:Ce,decode:Ye,noConflict:Je,fromUint8Array:se,toUint8Array:pt},typeof Object.defineProperty=="function"){var kt=function(Xe){return{value:Xe,enumerable:!1,writable:!0,configurable:!0}};He.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",kt(function(){return Ye(this)})),Object.defineProperty(String.prototype,"toBase64",kt(function(Xe){return ne(this,Xe)})),Object.defineProperty(String.prototype,"toBase64URI",kt(function(){return ne(this,!0)}))}}return He.Meteor&&(Base64=He.Base64),Rn.exports?Rn.exports.Base64=He.Base64:(ye=[],Oe=function(){return He.Base64}.apply(Mn,ye),Oe!==void 0&&(Rn.exports=Oe)),{Base64:He.Base64}})},2859:function(Rn,Mn,ve){"use strict";ve.d(Mn,{hP:function(){return xn}});var ye=function(tt,Ee){return(ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,Be){we.__proto__=Be}||function(we,Be){for(var ke in Be)Object.prototype.hasOwnProperty.call(Be,ke)&&(we[ke]=Be[ke])})(tt,Ee)};function Oe(tt,Ee){function we(){this.constructor=tt}ye(tt,Ee),tt.prototype=Ee===null?Object.create(Ee):(we.prototype=Ee.prototype,new we)}function He(tt,Ee,we,Be){return new(we||(we=Promise))(function(ke,Se){function st(We){try{Ve(Be.next(We))}catch(Ct){Se(Ct)}}function At(We){try{Ve(Be.throw(We))}catch(Ct){Se(Ct)}}function Ve(We){var Ct;We.done?ke(We.value):(Ct=We.value,Ct instanceof we?Ct:new we(function(bt){bt(Ct)})).then(st,At)}Ve((Be=Be.apply(tt,Ee||[])).next())})}function Rt(tt,Ee){var we,Be,ke,Se,st={label:0,sent:function(){if(1&ke[0])throw ke[1];return ke[1]},trys:[],ops:[]};return Se={next:At(0),throw:At(1),return:At(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function At(Ve){return function(We){return function(Ct){if(we)throw new TypeError("Generator is already executing.");for(;st;)try{if(we=1,Be&&(ke=2&Ct[0]?Be.return:Ct[0]?Be.throw||((ke=Be.return)&&ke.call(Be),0):Be.next)&&!(ke=ke.call(Be,Ct[1])).done)return ke;switch(Be=0,ke&&(Ct=[2&Ct[0],ke.value]),Ct[0]){case 0:case 1:ke=Ct;break;case 4:return st.label++,{value:Ct[1],done:!1};case 5:st.label++,Be=Ct[1],Ct=[0];continue;case 7:Ct=st.ops.pop(),st.trys.pop();continue;default:if(ke=st.trys,!((ke=ke.length>0&&ke[ke.length-1])||Ct[0]!==6&&Ct[0]!==2)){st=0;continue}if(Ct[0]===3&&(!ke||Ct[1]>ke[0]&&Ct[1]<ke[3])){st.label=Ct[1];break}if(Ct[0]===6&&st.label<ke[1]){st.label=ke[1],ke=Ct;break}if(ke&&st.label<ke[2]){st.label=ke[2],st.ops.push(Ct);break}ke[2]&&st.ops.pop(),st.trys.pop();continue}Ct=Ee.call(tt,st)}catch(bt){Ct=[6,bt],Be=0}finally{we=ke=0}if(5&Ct[0])throw Ct[1];return{value:Ct[0]?Ct[1]:void 0,done:!0}}([Ve,We])}}}function $e(){for(var tt=0,Ee=0,we=arguments.length;Ee<we;Ee++)tt+=arguments[Ee].length;var Be=Array(tt),ke=0;for(Ee=0;Ee<we;Ee++)for(var Se=arguments[Ee],st=0,At=Se.length;st<At;st++,ke++)Be[ke]=Se[st];return Be}var qe=function(){function tt(){}return tt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},tt.setAttributes=function(Ee,we){for(var Be=0,ke=we;Be<ke.length;Be++){var Se=ke[Be],st=Se[0],At=Se[1];Ee.setAttribute(st,At)}},tt.createRect=function(Ee,we,Be){var ke=document.createElementNS("http://www.w3.org/2000/svg","rect");return ke.setAttribute("width",Ee.toString()),ke.setAttribute("height",we.toString()),Be&&tt.setAttributes(ke,Be),ke},tt.createLine=function(Ee,we,Be,ke,Se){var st=document.createElementNS("http://www.w3.org/2000/svg","line");return st.setAttribute("x1",Ee.toString()),st.setAttribute("y1",we.toString()),st.setAttribute("x2",Be.toString()),st.setAttribute("y2",ke.toString()),Se&&tt.setAttributes(st,Se),st},tt.createPolygon=function(Ee,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Be.setAttribute("points",Ee),we&&tt.setAttributes(Be,we),Be},tt.createCircle=function(Ee,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","circle");return Be.setAttribute("cx",(Ee/2).toString()),Be.setAttribute("cy",(Ee/2).toString()),Be.setAttribute("r",Ee.toString()),we&&tt.setAttributes(Be,we),Be},tt.createEllipse=function(Ee,we,Be){var ke=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ke.setAttribute("cx",(Ee/2).toString()),ke.setAttribute("cy",(we/2).toString()),ke.setAttribute("rx",(Ee/2).toString()),ke.setAttribute("ry",(we/2).toString()),Be&&tt.setAttributes(ke,Be),ke},tt.createGroup=function(Ee){var we=document.createElementNS("http://www.w3.org/2000/svg","g");return Ee&&tt.setAttributes(we,Ee),we},tt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},tt.createMarker=function(Ee,we,Be,ke,Se,st,At){var Ve=document.createElementNS("http://www.w3.org/2000/svg","marker");return tt.setAttributes(Ve,[["id",Ee],["orient",we],["markerWidth",Be.toString()],["markerHeight",ke.toString()],["refX",Se.toString()],["refY",st.toString()]]),Ve.appendChild(At),Ve},tt.createText=function(Ee){var we=document.createElementNS("http://www.w3.org/2000/svg","text");return we.setAttribute("x","0"),we.setAttribute("y","0"),Ee&&tt.setAttributes(we,Ee),we},tt.createTSpan=function(Ee,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Be.textContent=Ee,we&&tt.setAttributes(Be,we),Be},tt.createImage=function(Ee){var we=document.createElementNS("http://www.w3.org/2000/svg","image");return Ee&&tt.setAttributes(we,Ee),we},tt.createPoint=function(Ee,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Be.x=Ee,Be.y=we,Be},tt.createPath=function(Ee,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","path");return Be.setAttribute("d",Ee),we&&tt.setAttributes(Be,we),Be},tt}(),De=function(){function tt(){}return tt.addKey=function(Ee){tt.key=Ee},Object.defineProperty(tt,"isLicensed",{get:function(){return!!tt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(tt.key)},enumerable:!1,configurable:!0}),tt}(),Tt=function(){function tt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return tt.prototype.rasterize=function(Ee,we,Be){var ke=this;return new Promise(function(Se){var st=Be!==void 0?Be:document.createElement("canvas");Ee===null&&(ke.markersOnly=!0,ke.naturalSize=!1);var At=document.createElementNS("http://www.w3.org/2000/svg","svg");At.setAttribute("xmlns","http://www.w3.org/2000/svg"),At.setAttribute("width",we.width.baseVal.valueAsString),At.setAttribute("height",we.height.baseVal.valueAsString),At.setAttribute("viewBox","0 0 "+we.viewBox.baseVal.width.toString()+" "+we.viewBox.baseVal.height.toString()),At.innerHTML=we.innerHTML,ke.naturalSize===!0?(At.width.baseVal.value=Ee.naturalWidth,At.height.baseVal.value=Ee.naturalHeight):ke.width!==void 0&&ke.height!==void 0&&(At.width.baseVal.value=ke.width,At.height.baseVal.value=ke.height),st.width=At.width.baseVal.value,st.height=At.height.baseVal.value;var Ve=At.outerHTML,We=st.getContext("2d");ke.markersOnly!==!0&&We.drawImage(Ee,0,0,st.width,st.height);var Ct=window.URL,bt=new Image(st.width,st.height);bt.setAttribute("crossOrigin","anonymous");var dt=new Blob([Ve],{type:"image/svg+xml"}),Ht=Ct.createObjectURL(dt);bt.onload=function(){We.drawImage(bt,0,0),Ct.revokeObjectURL(Ht);var En=st.toDataURL(ke.imageType,ke.imageQuality);Se(En)},bt.src=Ht})},tt}(),Et=function(){},et=function(){function tt(Ee){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ee+"_"}return Object.defineProperty(tt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(tt.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(tt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),tt.prototype.addClass=function(Ee){return this.styleSheet===void 0&&this.addStyleSheet(),Ee.name=""+this.classNamePrefix+Ee.localName,this.classes.push(Ee),this.styleSheet.sheet.insertRule("."+Ee.name+" {"+Ee.style+"}",this.styleSheet.sheet.cssRules.length),Ee},tt.prototype.addRule=function(Ee){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ee),this.styleSheet.sheet.insertRule(Ee.selector+" {"+Ee.style+"}",this.styleSheet.sheet.cssRules.length)},tt.prototype.addStyleSheet=function(){var Ee;this.styleSheet=document.createElement("style"),((Ee=this.styleSheetRoot)!==null&&Ee!==void 0?Ee:document.head).appendChild(this.styleSheet),this.addRule(new Ot("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ot("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ot("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new it("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new it("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},tt.prototype.removeStyleSheet=function(){var Ee;this.styleSheet&&(((Ee=this.styleSheetRoot)!==null&&Ee!==void 0?Ee:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},tt}(),Ot=function(tt,Ee){this.selector=tt,this.style=Ee},it=function(tt,Ee){this.localName=tt,this.style=Ee},Pt=function(){function tt(Ee,we,Be,ke,Se){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ee,this.displayMode=we,this.markerItems=Be,this.uiStyleSettings=ke,this.styles=Se,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return tt.prototype.show=function(Ee){var we=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ee,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Be=document.createElement("div");Be.className=this.toolbarBlockStyleClass.name,Be.style.whiteSpace="nowrap",this.uiContainer.appendChild(Be),this.addActionButton(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Se){var st=document.createElement("div");st.className=""+we.toolbarButtonStyleClass.name,st.setAttribute("data-type-name",Se.typeName),st.innerHTML=Se.icon,st.addEventListener("click",function(){we.markerToolbarButtonClicked(st,Se)}),we.buttons.push(st),we.markerButtons.push(st)}),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 ke=document.createElement("div");ke.className=this.toolbarBlockStyleClass.name,ke.style.whiteSpace="nowrap",ke.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ke),this.addActionButton(ke,'<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(ke,'<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()},tt.prototype.addButtonClickListener=function(Ee){this.buttonClickListeners.push(Ee)},tt.prototype.removeButtonClickListener=function(Ee){this.buttonClickListeners.indexOf(Ee)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ee),1)},tt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},tt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ee=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var we=0;we<this.markerButtons.length;we++)we<Ee||we===Ee&&this.markerButtons.length-1===Ee?this.markerButtonBlock.appendChild(this.markerButtons[we]):(we===Ee&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[we]))}},tt.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")},tt.prototype.resetButtonStyles=function(){var Ee=this;this.buttons.forEach(function(we){we.className=we.className.replace(Ee.uiStyleSettings.toolbarButtonStyleColorsClassName?Ee.uiStyleSettings.toolbarButtonStyleColorsClassName:Ee.toolbarButtonStyleColorsClass.name,"").trim(),we.className=we.className.replace(Ee.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ee.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ee.toolbarActiveButtonStyleColorsClass.name,"").trim(),we.className+=" "+(Ee.uiStyleSettings.toolbarButtonStyleColorsClassName?Ee.uiStyleSettings.toolbarButtonStyleColorsClassName:Ee.toolbarButtonStyleColorsClass.name)})},tt.prototype.addActionButton=function(Ee,we,Be){var ke=this,Se=document.createElement("div");switch(Se.className=""+this.toolbarButtonStyleClass.name,Se.innerHTML=we,Se.setAttribute("data-action",Be),Se.addEventListener("click",function(){ke.actionToolbarButtonClicked(Se,Be)}),Be){case"select":Se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Se.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Se.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Se.style.fill=this.uiStyleSettings.closeButtonColor}Ee.appendChild(Se),this.buttons.push(Se)},tt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new it("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 it("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new it("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new it("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 it("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Ee=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new it("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Ee)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Ee)+`px;
padding: `+Ee+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new it("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new it("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ot("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ot("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},tt.prototype.markerToolbarButtonClicked=function(Ee,we){this.setActiveButton(Ee),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("marker",we)}),this.markerButtonOverflowBlock.style.display="none"},tt.prototype.actionToolbarButtonClicked=function(Ee,we){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("action",we)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},tt.prototype.setActiveButton=function(Ee){this.resetButtonStyles(),Ee.className=Ee.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ee.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},tt.prototype.setActiveMarkerButton=function(Ee){var we=this.markerButtons.find(function(Be){return Be.getAttribute("data-type-name")===Ee});we&&this.setActiveButton(we)},tt.prototype.setCurrentMarker=function(Ee){var we=this;this.currentMarker=Ee,this.buttons.filter(function(Be){return/delete|notes/.test(Be.getAttribute("data-action"))}).forEach(function(Be){we.currentMarker===void 0?(Be.style.fillOpacity="0.4",Be.style.pointerEvents="none"):(Be.style.fillOpacity="1",Be.style.pointerEvents="all")})},tt}(),Me=function(){function tt(Ee,we,Be,ke){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ee,this.displayMode=we,this.uiStyleSettings=Be,this.styles=ke,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return tt.prototype.addStyles=function(){var Ee;this.toolboxStyleClass=this.styles.addClass(new it("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 it("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var we=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new it("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new it("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new it("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 it("toolbox-panel-row_colors",`
background-color: `+((Ee=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ee!==void 0?Ee:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new it("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
padding: `+we+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new it("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new it("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Ot("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ot("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},tt.prototype.show=function(Ee){var we;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ee,this.uiContainer.className=this.toolboxStyleClass.name+" "+((we=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&we!==void 0?we:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},tt.prototype.setPanelButtons=function(Ee){var we,Be,ke=this;this.panels=Ee,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((we=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&we!==void 0?we:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Be=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Be!==void 0?Be:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Se){var st;Se.uiStyleSettings=ke.uiStyleSettings;var At=document.createElement("div");At.className=ke.toolboxButtonStyleClass.name+" "+((st=ke.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:ke.toolboxButtonStyleColorsClass.name),At.innerHTML=Se.icon,At.title=Se.title,At.addEventListener("click",function(){ke.panelButtonClick(Se)}),ke.panelButtons.push(At),ke.buttonRow.appendChild(At)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},tt.prototype.panelButtonClick=function(Ee){var we=this,Be=-1;if(Ee!==this.activePanel){Be=this.panels.indexOf(Ee),this.panelRow.innerHTML="";var ke=Ee.getUi();ke.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ke),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=Ee}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){we.displayMode==="inline"?we.panelRow.style.display="none":we.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Se,st){var At,Ve;Se.className=we.toolboxButtonStyleClass.name+" "+(st===Be?""+((At=we.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&At!==void 0?At:we.toolboxActiveButtonStyleColorsClass.name):""+((Ve=we.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:we.toolboxButtonStyleColorsClass.name))})},tt}(),te=function(tt,Ee){this.title=tt,this.icon=Ee},ne=function(tt){function Ee(we,Be,ke,Se){var st=tt.call(this,we,Se||'<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 st.colors=[],st.addTransparent=!1,st.colorBoxes=[],st.colors=Be,st.currentColor=ke,st.setCurrentColor=st.setCurrentColor.bind(st),st.getColorBox=st.getColorBox.bind(st),st}return Oe(Ee,tt),Ee.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.whiteSpace="nowrap",this.colors.forEach(function(ke){var Se=we.getColorBox(ke);Be.appendChild(Se),we.colorBoxes.push(Se)}),Be},Ee.prototype.getColorBox=function(we){var Be=this,ke=this.uiStyleSettings.toolbarHeight/4,Se=this.uiStyleSettings.toolbarHeight-ke,st=document.createElement("div");st.style.display="inline-block",st.style.boxSizing="content-box",st.style.width=Se-2+"px",st.style.height=Se-2+"px",st.style.padding="1px",st.style.marginRight="2px",st.style.marginBottom="2px",st.style.borderWidth="2px",st.style.borderStyle="solid",st.style.borderRadius=(Se+2)/2+"px",st.style.borderColor=we===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",st.addEventListener("click",function(){Be.setCurrentColor(we,st)});var At=document.createElement("div");return At.style.display="inline-block",At.style.width=Se-2+"px",At.style.height=Se-2+"px",At.style.backgroundColor=we,At.style.borderRadius=Se/2+"px",we==="transparent"&&(At.style.fill=this.uiStyleSettings.toolboxAccentColor,At.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>`),st.appendChild(At),st},Ee.prototype.setCurrentColor=function(we,Be){var ke=this;this.currentColor=we,this.colorBoxes.forEach(function(Se){Se.style.borderColor=Se===Be?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(we)},Ee}(te),ce=function(){function tt(Ee,we,Be){this._state="new",this._isSelected=!1,this._container=Ee,this._overlayContainer=we,this.globalSettings=Be,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(tt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),tt.prototype.ownsTarget=function(Ee){return!1},Object.defineProperty(tt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),tt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},tt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},tt.prototype.pointerDown=function(Ee,we){},tt.prototype.dblClick=function(Ee,we){},tt.prototype.manipulate=function(Ee){},tt.prototype.pointerUp=function(Ee){this.stateChanged()},tt.prototype.dispose=function(){},tt.prototype.addMarkerVisualToContainer=function(Ee){this.container.childNodes.length>0?this.container.insertBefore(Ee,this.container.childNodes[0]):this.container.appendChild(Ee)},tt.prototype.getState=function(){return{typeName:tt.typeName,state:this.state,notes:this.notes}},tt.prototype.restoreState=function(Ee){this._state=Ee.state,this.notes=Ee.notes},tt.prototype.scale=function(Ee,we){},tt.prototype.colorChanged=function(Ee){this.onColorChanged&&this.onColorChanged(Ee),this.stateChanged()},tt.prototype.fillColorChanged=function(Ee){this.onFillColorChanged&&this.onFillColorChanged(Ee),this.stateChanged()},tt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ee=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ee.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ee)&&this.onStateChanged(this)}},tt.typeName="MarkerBase",tt}(),se=function(){function tt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return tt.prototype.findGripByVisual=function(Ee){return this.topLeft.ownsTarget(Ee)?this.topLeft:this.topCenter.ownsTarget(Ee)?this.topCenter:this.topRight.ownsTarget(Ee)?this.topRight:this.centerLeft.ownsTarget(Ee)?this.centerLeft:this.centerRight.ownsTarget(Ee)?this.centerRight:this.bottomLeft.ownsTarget(Ee)?this.bottomLeft:this.bottomCenter.ownsTarget(Ee)?this.bottomCenter:this.bottomRight.ownsTarget(Ee)?this.bottomRight:void 0},tt}(),ge=function(){function tt(){this.GRIP_SIZE=10,this.visual=qe.createGroup(),this.visual.appendChild(qe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(qe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return tt.prototype.ownsTarget=function(Ee){return Ee===this.visual||Ee===this.visual.childNodes[0]||Ee===this.visual.childNodes[1]},tt}(),me=function(){function tt(){}return tt.toITransformMatrix=function(Ee){return{a:Ee.a,b:Ee.b,c:Ee.c,d:Ee.d,e:Ee.e,f:Ee.f}},tt.toSVGMatrix=function(Ee,we){return Ee.a=we.a,Ee.b=we.b,Ee.c=we.c,Ee.d=we.d,Ee.e=we.e,Ee.f=we.f,Ee},tt}(),Ce=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.left=0,Se.top=0,Se.width=0,Se.height=0,Se.defaultSize={x:50,y:20},Se.offsetX=0,Se.offsetY=0,Se.rotationAngle=0,Se.CB_DISTANCE=10,Se._suppressMarkerCreateEvent=!1,Se.container.transform.baseVal.appendItem(qe.createTransform()),Se.setupControlBox(),Se}return Oe(Ee,tt),Object.defineProperty(Ee.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"visual",{get:function(){return this._visual},set:function(we){this._visual=we;var Be=qe.createTransform();this._visual.transform.baseVal.appendItem(Be)},enumerable:!1,configurable:!0}),Ee.prototype.ownsTarget=function(we){return!!tt.prototype.ownsTarget.call(this,we)||!!(this.controlGrips.findGripByVisual(we)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(we))},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.left=we.x,this.top=we.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ke=this.unrotatePoint(we);if(this.manipulationStartX=ke.x,this.manipulationStartY=ke.y,this.offsetX=ke.x-this.left,this.offsetY=ke.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Be),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Be)){this.activeGrip=this.rotatorGrip;var Se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Se.x-this.width/2,this.top=Se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var st=this.container.transform.baseVal.getItem(0);st.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(st,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ee.prototype.pointerUp=function(we){var Be=this.state;tt.prototype.pointerUp.call(this,we),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(we),this._state="select",Be==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ee.prototype.moveVisual=function(we){this.visual.style.transform="translate("+we.x+"px, "+we.y+"px)"},Ee.prototype.manipulate=function(we){var Be=this.unrotatePoint(we);this.state==="creating"?this.resize(we):this.state==="move"?(this.left=this.manipulationStartLeft+(Be.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Be.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Be):this.state==="rotate"&&this.rotate(we)},Ee.prototype.resize=function(we){var Be=this.manipulationStartLeft,ke=this.manipulationStartWidth,Se=this.manipulationStartTop,st=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Be=this.manipulationStartLeft+we.x-this.manipulationStartX,ke=this.manipulationStartWidth+this.manipulationStartLeft-Be;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ke=this.manipulationStartWidth+we.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Se=this.manipulationStartTop+we.y-this.manipulationStartY,st=this.manipulationStartHeight+this.manipulationStartTop-Se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:st=this.manipulationStartHeight+we.y-this.manipulationStartY}ke>=0?(this.left=Be,this.width=ke):(this.left=Be+ke,this.width=-ke),st>=0?(this.top=Se,this.height=st):(this.top=Se+st,this.height=-st),this.setSize()},Ee.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ee.prototype.rotate=function(we){if(Math.abs(we.x-this.centerX)>.1){var Be=Math.sign(we.x-this.centerX);this.rotationAngle=180*Math.atan((we.y-this.centerY)/(we.x-this.centerX))/Math.PI+90*Be,this.applyRotation()}},Ee.prototype.applyRotation=function(){var we=this.container.transform.baseVal.getItem(0);we.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(we,0)},Ee.prototype.rotatePoint=function(we){if(this.rotationAngle===0)return we;var Be=this.container.getCTM(),ke=qe.createPoint(we.x,we.y);return{x:(ke=ke.matrixTransform(Be)).x,y:ke.y}},Ee.prototype.unrotatePoint=function(we){if(this.rotationAngle===0)return we;var Be=this.container.getCTM();Be=Be.inverse();var ke=qe.createPoint(we.x,we.y);return{x:(ke=ke.matrixTransform(Be)).x,y:ke.y}},Ee.prototype.select=function(){tt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ee.prototype.deselect=function(){tt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ee.prototype.setupControlBox=function(){this.controlBox=qe.createGroup();var we=qe.createTransform();we.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(we),this.container.appendChild(this.controlBox),this.controlRect=qe.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=qe.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 se,this.addControlGrips(),this.controlBox.style.display="none"},Ee.prototype.adjustControlBox=function(){var we=this.controlBox.transform.baseVal.getItem(0);we.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(we,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()},Ee.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()},Ee.prototype.createGrip=function(){var we=new ge;return we.visual.transform.baseVal.appendItem(qe.createTransform()),this.controlBox.appendChild(we.visual),we},Ee.prototype.positionGrips=function(){var we=this.controlGrips.topLeft.GRIP_SIZE,Be=-we/2,ke=Be,Se=(this.width+this.CB_DISTANCE)/2-we/2,st=(this.height+this.CB_DISTANCE)/2-we/2,At=this.height+this.CB_DISTANCE-we/2,Ve=this.width+this.CB_DISTANCE-we/2;this.positionGrip(this.controlGrips.topLeft.visual,Be,ke),this.positionGrip(this.controlGrips.topCenter.visual,Se,ke),this.positionGrip(this.controlGrips.topRight.visual,Ve,ke),this.positionGrip(this.controlGrips.centerLeft.visual,Be,st),this.positionGrip(this.controlGrips.centerRight.visual,Ve,st),this.positionGrip(this.controlGrips.bottomLeft.visual,Be,At),this.positionGrip(this.controlGrips.bottomCenter.visual,Se,At),this.positionGrip(this.controlGrips.bottomRight.visual,Ve,At),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Se,ke-3*this.CB_DISTANCE)},Ee.prototype.positionGrip=function(we,Be,ke){var Se=we.transform.baseVal.getItem(0);Se.setTranslate(Be,ke),we.transform.baseVal.replaceItem(Se,0)},Ee.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ee.prototype.showControlBox=function(){this.controlBox.style.display=""},Ee.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},tt.prototype.getState.call(this))},Ee.prototype.restoreState=function(we){tt.prototype.restoreState.call(this,we);var Be=we;this.left=Be.left,this.top=Be.top,this.width=Be.width,this.height=Be.height,this.rotationAngle=Be.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Be.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Be.containerTransformMatrix))},Ee.prototype.scale=function(we,Be){tt.prototype.scale.call(this,we,Be);var ke=this.rotatePoint({x:this.left,y:this.top}),Se=this.unrotatePoint({x:ke.x*we,y:ke.y*Be});this.left=Se.x,this.top=Se.y,this.width=this.width*we,this.height=this.height*Be,this.adjustControlBox()},Ee}(ce),Fe=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.fillColor="transparent",Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.opacity=1,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setFillColor=Se.setFillColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.createVisual=Se.createVisual.bind(Se),Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return!(!tt.prototype.ownsTarget.call(this,we)&&we!==this.visual)},Ee.prototype.createVisual=function(){this.visual=qe.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)},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},Ee.prototype.manipulate=function(we){tt.prototype.manipulate.call(this,we)},Ee.prototype.resize=function(we){tt.prototype.resize.call(this,we),this.setSize()},Ee.prototype.setSize=function(){tt.prototype.setSize.call(this),qe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ee.prototype.pointerUp=function(we){tt.prototype.pointerUp.call(this,we),this.setSize()},Ee.prototype.setStrokeColor=function(we){this.strokeColor=we,this.visual&&qe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(we),this.stateChanged()},Ee.prototype.setFillColor=function(we){this.fillColor=we,this.visual&&qe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ee.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.visual&&qe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ee.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.visual&&qe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ee.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},tt.prototype.getState.call(this))},Ee.prototype.restoreState=function(we){var Be=we;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),tt.prototype.restoreState.call(this,we),this.setSize()},Ee.prototype.scale=function(we,Be){tt.prototype.scale.call(this,we,Be),this.setSize()},Ee.title="Rectangle marker",Ee}(Ce),Pe=function(tt){function Ee(we,Be,ke,Se){var st=tt.call(this,we,Se||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return st.widths=[],st.widthBoxes=[],st.widths=Be,st.currentWidth=ke,st.setCurrentWidth=st.setCurrentWidth.bind(st),st}return Oe(Ee,tt),Ee.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.widths.forEach(function(ke){var Se=document.createElement("div");Se.style.display="flex",Se.style.flexGrow="2",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.borderColor=ke===we.currentWidth?we.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){we.setCurrentWidth(ke,Se)}),Be.appendChild(Se);var st=document.createElement("div");st.innerText=ke.toString(),st.style.marginRight="5px",Se.appendChild(st);var At=document.createElement("div");At.style.minHeight="20px",At.style.flexGrow="2",At.style.display="flex",At.style.alignItems="center";var Ve=document.createElement("hr");Ve.style.minWidth="20px",Ve.style.border="0px",Ve.style.borderTop=ke+"px solid "+we.uiStyleSettings.toolboxColor,Ve.style.flexGrow="2",At.appendChild(Ve),Se.appendChild(At),we.widthBoxes.push(Se)}),Be},Ee.prototype.setCurrentWidth=function(we,Be){var ke=this;this.currentWidth=we,this.widthBoxes.forEach(function(Se){Se.style.borderColor=Se===Be?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ee}(te),Ie=function(tt){function Ee(we,Be,ke,Se){var st=tt.call(this,we,Se||'<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 st.styles=[],st.styleBoxes=[],st.styles=Be,st.currentStyle=ke,st.setCurrentStyle=st.setCurrentStyle.bind(st),st}return Oe(Ee,tt),Ee.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.styles.forEach(function(ke){var Se=document.createElement("div");Se.style.display="flex",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.overflow="hidden",Se.style.maxWidth=100/we.styles.length-5+"%",Se.style.borderColor=ke===we.currentStyle?we.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){we.setCurrentStyle(ke,Se)}),Be.appendChild(Se);var st=document.createElement("div");st.style.minHeight="20px",st.style.flexGrow="2",st.style.overflow="hidden";var At=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+we.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ke!==""?'stroke-dasharray="'+ke+'"':"")+` />
</svg>`;st.innerHTML=At,Se.appendChild(st),we.styleBoxes.push(Se)}),Be},Ee.prototype.setCurrentStyle=function(we,Be){var ke=this;this.currentStyle=we,this.styleBoxes.forEach(function(Se){Se.style.borderColor=Se===Be?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ee}(te),Ge=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.strokePanel=new ne("Line color",ke.defaultColorSet,ke.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new Pe("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return Oe(Ee,tt),Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=tt.prototype.getState.call(this);return we.typeName=Ee.typeName,we},Ee.typeName="FrameMarker",Ee.title="Frame marker",Ee.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ee}(Fe),Ke=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"},Ye=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.x1=0,Se.y1=0,Se.x2=0,Se.y2=0,Se.defaultLength=50,Se.manipulationStartX=0,Se.manipulationStartY=0,Se.manipulationStartX1=0,Se.manipulationStartY1=0,Se.manipulationStartX2=0,Se.manipulationStartY2=0,Se.setupControlBox(),Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return!!tt.prototype.ownsTarget.call(this,we)||!(!this.grip1.ownsTarget(we)&&!this.grip2.ownsTarget(we))},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.manipulationStartX=we.x,this.manipulationStartY=we.y,this.state==="new"&&(this.x1=we.x,this.y1=we.y,this.x2=we.x,this.y2=we.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(Be)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Be)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ee.prototype.pointerUp=function(we){var Be=this.state;tt.prototype.pointerUp.call(this,we),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(we),this._state="select",Be==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ee.prototype.adjustVisual=function(){},Ee.prototype.manipulate=function(we){this.state==="creating"?this.resize(we):this.state==="move"?(this.x1=this.manipulationStartX1+we.x-this.manipulationStartX,this.y1=this.manipulationStartY1+we.y-this.manipulationStartY,this.x2=this.manipulationStartX2+we.x-this.manipulationStartX,this.y2=this.manipulationStartY2+we.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(we)},Ee.prototype.resize=function(we){switch(this.activeGrip){case this.grip1:this.x1=we.x,this.y1=we.y;break;case this.grip2:case void 0:this.x2=we.x,this.y2=we.y}this.adjustVisual(),this.adjustControlBox()},Ee.prototype.select=function(){tt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ee.prototype.deselect=function(){tt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ee.prototype.setupControlBox=function(){this.controlBox=qe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ee.prototype.adjustControlBox=function(){this.positionGrips()},Ee.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ee.prototype.createGrip=function(){var we=new ge;return we.visual.transform.baseVal.appendItem(qe.createTransform()),this.controlBox.appendChild(we.visual),we},Ee.prototype.positionGrips=function(){var we=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-we/2,this.y1-we/2),this.positionGrip(this.grip2.visual,this.x2-we/2,this.y2-we/2)},Ee.prototype.positionGrip=function(we,Be,ke){var Se=we.transform.baseVal.getItem(0);Se.setTranslate(Be,ke),we.transform.baseVal.replaceItem(Se,0)},Ee.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},tt.prototype.getState.call(this))},Ee.prototype.restoreState=function(we){tt.prototype.restoreState.call(this,we);var Be=we;this.x1=Be.x1,this.y1=Be.y1,this.x2=Be.x2,this.y2=Be.y2},Ee.prototype.scale=function(we,Be){tt.prototype.scale.call(this,we,Be),this.x1=this.x1*we,this.y1=this.y1*Be,this.x2=this.x2*we,this.y2=this.y2*Be,this.adjustVisual(),this.adjustControlBox()},Ee}(ce),pt=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.strokePanel=new ne("Line color",ke.defaultColorSet,ke.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new Pe("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return!(!tt.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.selectorLine&&we!==this.visibleLine)},Ee.prototype.createVisual=function(){this.visual=qe.createGroup(),this.selectorLine=qe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=qe.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)},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ee.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()),qe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),qe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),qe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ee.prototype.setStrokeColor=function(we){this.strokeColor=we,this.adjustVisual(),this.colorChanged(we)},Ee.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.adjustVisual()},Ee.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},tt.prototype.getState.call(this));return we.typeName=Ee.typeName,we},Ee.prototype.restoreState=function(we){tt.prototype.restoreState.call(this,we);var Be=we;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.createVisual(),this.adjustVisual()},Ee.typeName="LineMarker",Ee.title="Line marker",Ee.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ee}(Ye),Je=function(tt){function Ee(we,Be,ke,Se){var st=tt.call(this,we,Se||'<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 st.fonts=[],st.fontBoxes=[],st.fonts=Be,st.currentFont=ke,st.setCurrentFont=st.setCurrentFont.bind(st),st}return Oe(Ee,tt),Ee.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.flexGrow="2",this.fonts.forEach(function(ke){var Se=document.createElement("div");Se.style.display="inline-block",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.overflow="hidden",Se.style.maxWidth=100/we.fonts.length-5+"%",Se.style.borderColor=ke===we.currentFont?we.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){we.setCurrentFont(ke,Se)}),Be.appendChild(Se);var st=document.createElement("div");st.style.display="flex",st.style.minHeight="20px",st.style.flexGrow="2",st.style.fontFamily=ke,st.style.overflow="hidden";var At=document.createElement("div");At.style.whiteSpace="nowrap",At.style.overflow="hidden",At.style.textOverflow="ellipsis",At.innerHTML="The quick brown fox jumps over the lazy dog",st.appendChild(At),Se.appendChild(st),we.fontBoxes.push(Se)}),Be},Ee.prototype.setCurrentFont=function(we,Be){var ke=this;this.currentFont=we,this.fontBoxes.forEach(function(Se){Se.style.borderColor=Se===Be?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ee}(te),kt=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.color="transparent",Se.padding=5,Se.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Se.text=Se.DEFAULT_TEXT,Se.isMoved=!1,Se.color=ke.defaultColor,Se.fontFamily=ke.defaultFontFamily,Se.defaultSize={x:100,y:30},Se.setColor=Se.setColor.bind(Se),Se.setFont=Se.setFont.bind(Se),Se.renderText=Se.renderText.bind(Se),Se.sizeText=Se.sizeText.bind(Se),Se.textEditDivClicked=Se.textEditDivClicked.bind(Se),Se.showTextEditor=Se.showTextEditor.bind(Se),Se.setSize=Se.setSize.bind(Se),Se.positionTextEditor=Se.positionTextEditor.bind(Se),Se.colorPanel=new ne("Color",ke.defaultColorSet,ke.defaultColor),Se.colorPanel.onColorChanged=Se.setColor,Se.fontFamilyPanel=new Je("Font",ke.defaultFontFamilies,ke.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){if(tt.prototype.ownsTarget.call(this,we)||we===this.visual||we===this.textElement||we===this.bgRectangle)return!0;var Be=!1;return this.textElement.childNodes.forEach(function(ke){ke===we&&(Be=!0)}),Be},Ee.prototype.createVisual=function(){this.visual=qe.createGroup(),this.bgRectangle=qe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=qe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(qe.createTransform()),this.textElement.transform.baseVal.appendItem(qe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.isMoved=!1,this.pointerDownPoint=we,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},Ee.prototype.renderText=function(){var we=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(Be){we.textElement.appendChild(qe.createTSpan(Be.trim()===""?" ":Be.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ee.prototype.getTextScale=function(){var we=this.textElement.getBBox(),Be=1;if(we.width>0&&we.height>0){var ke=(1*this.width-this.width*this.padding*2/100)/we.width,Se=(1*this.height-this.height*this.padding*2/100)/we.height;Be=Math.min(ke,Se)}return Be},Ee.prototype.getTextPosition=function(we){var Be=this.textElement.getBBox(),ke=0,Se=0;return Be.width>0&&Be.height>0&&(ke=(this.width-Be.width*we)/2,Se=this.height/2-Be.height*we/2),{x:ke,y:Se}},Ee.prototype.sizeText=function(){var we=this.textElement.getBBox(),Be=this.getTextScale(),ke=this.getTextPosition(Be);ke.y-=we.y*Be,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ke.x+"px, "+ke.y+"px) scale("+Be+", "+Be+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ke.x,ke.y),this.textElement.transform.baseVal.getItem(1).setScale(Be,Be))},Ee.prototype.manipulate=function(we){tt.prototype.manipulate.call(this,we),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(we.x-this.pointerDownPoint.x)>5||Math.abs(we.y-this.pointerDownPoint.y)>5)},Ee.prototype.resize=function(we){tt.prototype.resize.call(this,we),this.isMoved=!0,this.setSize(),this.sizeText()},Ee.prototype.setSize=function(){tt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(qe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),qe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ee.prototype.pointerUp=function(we){var Be=this.state;Be==="creating"&&(this._suppressMarkerCreateEvent=!0),tt.prototype.pointerUp.call(this,we),this.setSize(),(Be==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ee.prototype.showTextEditor=function(){var we=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(Be){Be.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Be=Number.parseFloat(we.textEditor.style.fontSize);we.textEditor.clientWidth>=Number.parseInt(we.textEditor.style.maxWidth)&&Be>.9;)Be-=.1,we.textEditor.style.fontSize=Math.max(Be,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Be){if(Be.clipboardData){var ke=Be.clipboardData.getData("text"),Se=window.getSelection();if(!Se.rangeCount)return!1;Se.deleteFromDocument(),Se.getRangeAt(0).insertNode(document.createTextNode(ke)),Be.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){we.textEditDivClicked(we.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ee.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var we=this.getTextScale(),Be=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ke=this.textElement.getBBox(),Se={x:ke.width*we,y:ke.height*we};Be.x-=Se.x/2,Be.y-=Se.y/2,this.textEditor.style.top=Be.y+"px",this.textEditor.style.left=Be.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Be.x+"px",this.textEditor.style.fontSize=Math.max(16*we,12)+"px",this.textElement.style.display="none"}},Ee.prototype.textEditDivClicked=function(we){this.text=we.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ee.prototype.select=function(){tt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ee.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),tt.prototype.deselect.call(this)},Ee.prototype.dblClick=function(we,Be){tt.prototype.dblClick.call(this,we,Be),this.showTextEditor()},Ee.prototype.setColor=function(we){this.textElement&&qe.setAttributes(this.textElement,[["fill",we]]),this.color=we,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(we)},Ee.prototype.setFont=function(we){this.textElement&&qe.setAttributes(this.textElement,[["font-family",we]]),this.fontFamily=we,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ee.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ee.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},tt.prototype.getState.call(this));return we.typeName=Ee.typeName,we},Ee.prototype.restoreState=function(we){var Be=we;this.color=Be.color,this.fontFamily=Be.fontFamily,this.padding=Be.padding,this.text=Be.text,this.createVisual(),tt.prototype.restoreState.call(this,we),this.setSize()},Ee.prototype.scale=function(we,Be){tt.prototype.scale.call(this,we,Be),this.setSize(),this.sizeText(),this.positionTextEditor()},Ee.typeName="TextMarker",Ee.title="Text marker",Ee.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>',Ee}(Ce),Xe=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.color="transparent",Se.lineWidth=3,Se.drawing=!1,Se.pixelRatio=1,Se.color=ke.defaultColor,Se.lineWidth=ke.defaultStrokeWidth,Se.pixelRatio=ke.freehandPixelRatio,Se.setColor=Se.setColor.bind(Se),Se.addCanvas=Se.addCanvas.bind(Se),Se.finishCreation=Se.finishCreation.bind(Se),Se.setLineWidth=Se.setLineWidth.bind(Se),Se.colorPanel=new ne("Color",ke.defaultColorSet,ke.defaultColor),Se.colorPanel.onColorChanged=Se.setColor,Se.lineWidthPanel=new Pe("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.lineWidthPanel.onWidthChanged=Se.setLineWidth,Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return!(!tt.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.drawingImage)},Ee.prototype.createVisual=function(){this.visual=qe.createGroup(),this.drawingImage=qe.createImage(),this.visual.appendChild(this.drawingImage);var we=qe.createTransform();this.visual.transform.baseVal.appendItem(we),this.addMarkerVisualToContainer(this.visual)},Ee.prototype.pointerDown=function(we,Be){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(we.x,we.y),this.drawing=!0):tt.prototype.pointerDown.call(this,we,Be)},Ee.prototype.manipulate=function(we){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(we.x,we.y),this.canvasContext.stroke()):tt.prototype.manipulate.call(this,we)},Ee.prototype.resize=function(we){tt.prototype.resize.call(this,we),qe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),qe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ee.prototype.pointerUp=function(we){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):tt.prototype.pointerUp.call(this,we)},Ee.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)},Ee.prototype.select=function(){this.state==="creating"&&this.finishCreation(),tt.prototype.select.call(this)},Ee.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),tt.prototype.deselect.call(this)},Ee.prototype.finishCreation=function(){for(var we=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Be=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ke=Be[0],Se=Be[1],st=Be[2],At=Be[3],Ve=!1,We=0;We<this.canvasElement.height;We++)for(var Ct=0;Ct<this.canvasElement.width;Ct++)we.data[We*this.canvasElement.width*4+4*Ct+3]>0&&(Ve=!0,We<Se&&(Se=We),Ct<ke&&(ke=Ct),We>At&&(At=We),Ct>st&&(st=Ct));if(Ve){this.left=ke/this.pixelRatio,this.top=Se/this.pixelRatio,this.width=(st-ke)/this.pixelRatio,this.height=(At-Se)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=st-ke,bt.height=At-Se,bt.getContext("2d").putImageData(this.canvasContext.getImageData(ke,Se,st-ke,At-Se),0,0),this.drawingImgUrl=bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ee.prototype.setDrawingImage=function(){qe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),qe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ee.prototype.setColor=function(we){this.color=we,this.colorChanged(we)},Ee.prototype.setLineWidth=function(we){this.lineWidth=we},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=Object.assign({drawingImgUrl:this.drawingImgUrl},tt.prototype.getState.call(this));return we.typeName=Ee.typeName,we},Ee.prototype.restoreState=function(we){this.createVisual(),tt.prototype.restoreState.call(this,we),this.drawingImgUrl=we.drawingImgUrl,this.setDrawingImage()},Ee.prototype.scale=function(we,Be){tt.prototype.scale.call(this,we,Be),this.setDrawingImage()},Ee.typeName="FreehandMarker",Ee.title="Freehand marker",Ee.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>',Ee}(Ce),Wt=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,ke||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Se.typeBoxes=[],Se.currentType=Be,Se.setCurrentType=Se.setCurrentType.bind(Se),Se}return Oe(Ee,tt),Ee.prototype.getUi=function(){var we=this,Be=document.createElement("div");Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2";for(var ke=function(At){var Ve="both";switch(At){case 0:Ve="both";break;case 1:Ve="start";break;case 2:Ve="end";break;case 3:Ve="none"}var We=document.createElement("div");if(We.style.display="flex",We.style.flexGrow="2",We.style.alignItems="center",We.style.justifyContent="space-between",We.style.padding="5px",We.style.borderWidth="2px",We.style.borderStyle="solid",We.style.borderColor=Ve===Se.currentType?Se.uiStyleSettings.toolboxAccentColor:"transparent",We.addEventListener("click",function(){we.setCurrentType(Ve,We)}),Be.appendChild(We),Ve==="both"||Ve==="start"){var Ct=document.createElement("div");Ct.style.display="flex",Ct.style.alignItems="center",Ct.style.minHeight="20px",Ct.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="`+(Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ct.style.marginLeft="5px",We.appendChild(Ct)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var dt=document.createElement("hr");if(dt.style.minWidth="20px",dt.style.border="0px",dt.style.borderTop="3px solid "+(Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxColor:"#eeeeee"),dt.style.flexGrow="2",bt.appendChild(dt),We.appendChild(bt),Ve==="both"||Ve==="end"){var Ht=document.createElement("div");Ht.style.display="flex",Ht.style.alignItems="center",Ht.style.minHeight="20px",Ht.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="`+(Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ht.style.marginRight="5px",We.appendChild(Ht)}Se.typeBoxes.push(We)},Se=this,st=0;st<4;st++)ke(st);return Be},Ee.prototype.setCurrentType=function(we,Be){var ke=this;this.currentType=we,this.typeBoxes.forEach(function(Se){Se.style.borderColor=Se===Be?ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ee}(te),zt=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.arrowType="end",Se.arrowBaseHeight=10,Se.arrowBaseWidth=10,Se.getArrowPoints=Se.getArrowPoints.bind(Se),Se.setArrowType=Se.setArrowType.bind(Se),Se.arrowTypePanel=new Wt("Arrow type","end"),Se.arrowTypePanel.onArrowTypeChanged=Se.setArrowType,Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return!(!tt.prototype.ownsTarget.call(this,we)&&we!==this.arrow1&&we!==this.arrow2)},Ee.prototype.getArrowPoints=function(we,Be){var ke=this.arrowBaseWidth+2*this.strokeWidth,Se=this.arrowBaseHeight+2*this.strokeWidth;return we-ke/2+","+(Be+Se/2)+" "+we+","+(Be-Se/2)+" "+(we+ke/2)+","+(Be+Se/2)},Ee.prototype.createTips=function(){this.arrow1=qe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(qe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=qe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(qe.createTransform()),this.visual.appendChild(this.arrow2)},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.state==="creating"&&this.createTips()},Ee.prototype.adjustVisual=function(){if(tt.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",qe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),qe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var we=0;Math.abs(this.x1-this.x2)>.1&&(we=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Be=this.arrow1.transform.baseVal.getItem(0);Be.setRotate(we,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Be,0);var ke=this.arrow2.transform.baseVal.getItem(0);ke.setRotate(we+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ke,0)}},Ee.prototype.setArrowType=function(we){this.arrowType=we,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=Object.assign({arrowType:this.arrowType},tt.prototype.getState.call(this));return we.typeName=Ee.typeName,we},Ee.prototype.restoreState=function(we){tt.prototype.restoreState.call(this,we);var Be=we;this.arrowType=Be.arrowType,this.createTips(),this.adjustVisual()},Ee.typeName="ArrowMarker",Ee.title="Arrow marker",Ee.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ee}(pt),jt=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.fillColor=ke.defaultFillColor,Se.strokeWidth=0,Se.fillPanel=new ne("Color",ke.defaultColorSet,ke.defaultFillColor),Se.fillPanel.onColorChanged=Se.setFillColor,Se}return Oe(Ee,tt),Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=tt.prototype.getState.call(this);return we.typeName=Ee.typeName,we},Ee.typeName="CoverMarker",Ee.title="Cover marker",Ee.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ee}(Fe),Mt=function(tt){function Ee(we,Be,ke,Se){var st=tt.call(this,we,Se||'<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 st.opacities=[],st.opacityBoxes=[],st.opacities=Be,st.currentOpacity=ke,st.setCurrentOpacity=st.setCurrentOpacity.bind(st),st}return Oe(Ee,tt),Ee.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",Be.style.justifyContent="space-between",this.opacities.forEach(function(ke){var Se=document.createElement("div");Se.style.display="flex",Se.style.alignItems="center",Se.style.justifyContent="center",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.borderColor=ke===we.currentOpacity?we.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){we.setCurrentOpacity(ke,Se)}),Be.appendChild(Se);var st=document.createElement("div");st.innerText=100*ke+"%",Se.appendChild(st),we.opacityBoxes.push(Se)}),Be},Ee.prototype.setCurrentOpacity=function(we,Be){var ke=this;this.currentOpacity=we,this.opacityBoxes.forEach(function(Se){Se.style.borderColor=Se===Be?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ee}(te),Ut=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.setOpacity=Se.setOpacity.bind(Se),Se.fillColor=ke.defaultHighlightColor,Se.strokeWidth=0,Se.opacity=ke.defaultHighlightOpacity,Se.fillPanel=new ne("Color",ke.defaultColorSet,Se.fillColor),Se.fillPanel.onColorChanged=Se.setFillColor,Se.opacityPanel=new Mt("Opacity",ke.defaultOpacitySteps,Se.opacity),Se.opacityPanel.onOpacityChanged=Se.setOpacity,Se}return Oe(Ee,tt),Ee.prototype.setOpacity=function(we){this.opacity=we,this.visual&&qe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=tt.prototype.getState.call(this);return we.typeName=Ee.typeName,we},Ee.typeName="HighlightMarker",Ee.title="Highlight marker",Ee.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>',Ee}(jt),ft='<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>',Re='<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>',Lt=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.bgColor="transparent",Se.tipPosition={x:0,y:0},Se.tipBase1Position={x:0,y:0},Se.tipBase2Position={x:0,y:0},Se.tipMoving=!1,Se.color=ke.defaultStrokeColor,Se.bgColor=ke.defaultFillColor,Se.fontFamily=ke.defaultFontFamily,Se.defaultSize={x:100,y:30},Se.setBgColor=Se.setBgColor.bind(Se),Se.getTipPoints=Se.getTipPoints.bind(Se),Se.positionTip=Se.positionTip.bind(Se),Se.setTipPoints=Se.setTipPoints.bind(Se),Se.colorPanel=new ne("Text color",ke.defaultColorSet,Se.color,ft),Se.colorPanel.onColorChanged=Se.setColor,Se.bgColorPanel=new ne("Fill color",ke.defaultColorSet,Se.bgColor,Re),Se.bgColorPanel.onColorChanged=Se.setBgColor,Se.fontFamilyPanel=new Je("Font",ke.defaultFontFamilies,ke.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se.tipGrip=new ge,Se.tipGrip.visual.transform.baseVal.appendItem(qe.createTransform()),Se.controlBox.appendChild(Se.tipGrip.visual),Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return tt.prototype.ownsTarget.call(this,we)||this.tipGrip.ownsTarget(we)||this.tip===we},Ee.prototype.createTip=function(){qe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=qe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ee.prototype.pointerDown=function(we,Be){this.state==="new"&&tt.prototype.pointerDown.call(this,we,Be),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Be)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):tt.prototype.pointerDown.call(this,we,Be)},Ee.prototype.pointerUp=function(we){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,tt.prototype.pointerUp.call(this,we);else{var Be=this.state==="creating";tt.prototype.pointerUp.call(this,we),this.setTipPoints(Be),this.positionTip()}},Ee.prototype.manipulate=function(we){if(this.tipMoving){var Be=this.unrotatePoint(we);this.tipPosition={x:Be.x-this.manipulationStartLeft,y:Be.y-this.manipulationStartTop},this.positionTip()}else tt.prototype.manipulate.call(this,we)},Ee.prototype.setBgColor=function(we){this.bgRectangle&&this.tip&&(qe.setAttributes(this.bgRectangle,[["fill",we]]),qe.setAttributes(this.tip,[["fill",we]])),this.bgColor=we,this.fillColorChanged(we)},Ee.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},Ee.prototype.setTipPoints=function(we){we===void 0&&(we=!1);var Be=Math.min(this.height/2,15),ke=this.height/5;we&&(this.tipPosition={x:Be+ke/2,y:this.height+20});var Se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Se<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ke=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:Be,y:0},this.tipBase2Position={x:Be+ke,y:0}):(this.tipBase1Position={x:0,y:Be},this.tipBase2Position={x:0,y:Be+ke}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Se<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ke=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Be-ke,y:0},this.tipBase2Position={x:this.width-Be,y:0}):(this.tipBase1Position={x:this.width,y:Be},this.tipBase2Position={x:this.width,y:Be+ke}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Se<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ke=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Be-ke,y:this.height},this.tipBase2Position={x:this.width-Be,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Be-ke},this.tipBase2Position={x:this.width,y:this.height-Be}):Se<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ke=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:Be,y:this.height},this.tipBase2Position={x:Be+ke,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Be},this.tipBase2Position={x:0,y:this.height-Be-ke})},Ee.prototype.resize=function(we){tt.prototype.resize.call(this,we),this.positionTip()},Ee.prototype.positionTip=function(){qe.setAttributes(this.tip,[["points",this.getTipPoints()]]);var we=this.tipGrip.visual.transform.baseVal.getItem(0);we.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(we,0)},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ee.prototype.select=function(){this.positionTip(),tt.prototype.select.call(this)},Ee.prototype.getState=function(){var we=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},tt.prototype.getState.call(this));return we.typeName=Ee.typeName,we},Ee.prototype.restoreState=function(we){var Be=we;this.bgColor=Be.bgColor,this.tipPosition=Be.tipPosition,tt.prototype.restoreState.call(this,we),this.createTip(),this.setTipPoints()},Ee.prototype.scale=function(we,Be){tt.prototype.scale.call(this,we,Be),this.tipPosition={x:this.tipPosition.x*we,y:this.tipPosition.y*Be},this.positionTip()},Ee.typeName="CalloutMarker",Ee.title="Callout marker",Ee.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>',Ee}(kt),yn=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.fillColor="transparent",Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.opacity=1,Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.fillColor=ke.defaultFillColor,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setFillColor=Se.setFillColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.setOpacity=Se.setOpacity.bind(Se),Se.createVisual=Se.createVisual.bind(Se),Se.strokePanel=new ne("Line color",$e(ke.defaultColorSet,["transparent"]),ke.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.fillPanel=new ne("Fill color",$e(ke.defaultColorSet,["transparent"]),Se.fillColor,Re),Se.fillPanel.onColorChanged=Se.setFillColor,Se.strokeWidthPanel=new Pe("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se.opacityPanel=new Mt("Opacity",ke.defaultOpacitySteps,Se.opacity),Se.opacityPanel.onOpacityChanged=Se.setOpacity,Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return!(!tt.prototype.ownsTarget.call(this,we)&&we!==this.visual)},Ee.prototype.createVisual=function(){this.visual=qe.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)},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},Ee.prototype.manipulate=function(we){tt.prototype.manipulate.call(this,we)},Ee.prototype.resize=function(we){tt.prototype.resize.call(this,we),this.setSize()},Ee.prototype.setSize=function(){tt.prototype.setSize.call(this),qe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ee.prototype.pointerUp=function(we){tt.prototype.pointerUp.call(this,we),this.setSize()},Ee.prototype.setStrokeColor=function(we){this.strokeColor=we,this.visual&&qe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(we),this.stateChanged()},Ee.prototype.setFillColor=function(we){this.fillColor=we,this.visual&&qe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(we),this.stateChanged()},Ee.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.visual&&qe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ee.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.visual&&qe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ee.prototype.setOpacity=function(we){this.opacity=we,this.visual&&qe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},tt.prototype.getState.call(this));return we.typeName=Ee.typeName,we},Ee.prototype.restoreState=function(we){var Be=we;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),tt.prototype.restoreState.call(this,we),this.setSize()},Ee.prototype.scale=function(we,Be){tt.prototype.scale.call(this,we,Be),this.setSize()},Ee.typeName="EllipseMarker",Ee.title="Ellipse marker",Ee.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>',Ee}(Ce),mn=function(tt){function Ee(we,Be,ke){return tt.call(this,we,Be,ke)||this}return Oe(Ee,tt),Object.defineProperty(Ee.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ee.prototype.ownsTarget=function(we){return!(!tt.prototype.ownsTarget.call(this,we)&&we!==this.tip1&&we!==this.tip2)},Ee.prototype.createTips=function(){this.tip1=qe.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(qe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=qe.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(qe.createTransform()),this.visual.appendChild(this.tip2)},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.state==="creating"&&this.createTips()},Ee.prototype.adjustVisual=function(){if(tt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(qe.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()]]),qe.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 we=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Be=this.tip1.transform.baseVal.getItem(0);Be.setRotate(we,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Be,0);var ke=this.tip2.transform.baseVal.getItem(0);ke.setRotate(we+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ke,0)}},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=tt.prototype.getState.call(this);return we.typeName=Ee.typeName,we},Ee.prototype.restoreState=function(we){tt.prototype.restoreState.call(this,we),this.createTips(),this.adjustVisual()},Ee.typeName="MeasurementMarker",Ee.title="Measurement marker",Ee.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>',Ee}(pt),Nt=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.strokePanel.colors=ke.defaultColorSet,Se.fillColor="transparent",Se}return Oe(Ee,tt),Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=tt.prototype.getState.call(this);return we.typeName=Ee.typeName,we},Ee.typeName="EllipseFrameMarker",Ee.title="Ellipse frame marker",Ee.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>',Ee}(yn),en=function(){function tt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(tt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),tt.prototype.addUndoStep=function(Ee){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ee)||(this.undoStack.push(Ee),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ee)&&this.redoStack.splice(0,this.redoStack.length))},tt.prototype.replaceLastUndoStep=function(Ee){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ee)},tt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},tt.prototype.undo=function(){if(this.undoStack.length>1){var Ee=this.undoStack.pop();return Ee!==void 0&&this.redoStack.push(Ee),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},tt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},tt}(),nn=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.curveX=0,Se.curveY=0,Se.manipulationStartCurveX=0,Se.manipulationStartCurveY=0,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.positionGrips=Se.positionGrips.bind(Se),Se.addControlGrips=Se.addControlGrips.bind(Se),Se.adjustVisual=Se.adjustVisual.bind(Se),Se.setupControlBox=Se.setupControlBox.bind(Se),Se.resize=Se.resize.bind(Se),Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.strokePanel=new ne("Line color",ke.defaultColorSet,ke.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new Pe("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return!(!tt.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.selectorCurve&&we!==this.visibleCurve&&!this.curveGrip.ownsTarget(we))},Ee.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ee.prototype.createVisual=function(){this.visual=qe.createGroup(),this.selectorCurve=qe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=qe.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)},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=we.x,this.curveY=we.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Be)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ee.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),qe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),qe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),qe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ee.prototype.setupControlBox=function(){tt.prototype.setupControlBox.call(this),this.curveControlLine1=qe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=qe.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)},Ee.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,tt.prototype.addControlGrips.call(this)},Ee.prototype.positionGrips=function(){tt.prototype.positionGrips.call(this);var we=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-we/2,this.curveY-we/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()))},Ee.prototype.manipulate=function(we){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+we.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+we.y-this.manipulationStartY),tt.prototype.manipulate.call(this,we)},Ee.prototype.resize=function(we){this.activeGrip===this.curveGrip&&(this.curveX=we.x,this.curveY=we.y),tt.prototype.resize.call(this,we),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ee.prototype.setStrokeColor=function(we){this.strokeColor=we,this.adjustVisual(),this.colorChanged(we)},Ee.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.adjustVisual()},Ee.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.adjustVisual()},Ee.prototype.scale=function(we,Be){this.curveX=this.curveX*we,this.curveY=this.curveY*Be,tt.prototype.scale.call(this,we,Be)},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},tt.prototype.getState.call(this));return we.typeName=Ee.typeName,we},Ee.prototype.restoreState=function(we){tt.prototype.restoreState.call(this,we);var Be=we;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.curveX=Be.curveX,this.curveY=Be.curveY,this.createVisual(),this.adjustVisual()},Ee.typeName="CurveMarker",Ee.title="Curve marker",Ee.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>',Ee}(Ye),On=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,Be,ke)||this;return Se.fillColor="transparent",Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.textColor="transparent",Se.fontSize="1rem",Se.isMoved=!1,Se.captionText="Caption",Se.PADDING=5,Se.captionBoxWidth=0,Se.captionBoxHeight=0,Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.fillColor=ke.defaultFillColor,Se.textColor=ke.defaultStrokeColor,Se.fontFamily=ke.defaultFontFamily,Se.fontSize=ke.defaultCaptionFontSize,Se.captionText=ke.defaultCaptionText,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setFillColor=Se.setFillColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.createVisual=Se.createVisual.bind(Se),Se.sizeCaption=Se.sizeCaption.bind(Se),Se.setCaptionText=Se.setCaptionText.bind(Se),Se.showTextEditor=Se.showTextEditor.bind(Se),Se.positionTextEditor=Se.positionTextEditor.bind(Se),Se.finishTextEditing=Se.finishTextEditing.bind(Se),Se.setFont=Se.setFont.bind(Se),Se.setTextColor=Se.setTextColor.bind(Se),Se.strokePanel=new ne("Line color",$e(ke.defaultColorSet,["transparent"]),Se.strokeColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.fillPanel=new ne("Fill color",$e(ke.defaultColorSet,["transparent"]),Se.fillColor,Re),Se.fillPanel.onColorChanged=Se.setFillColor,Se.strokeWidthPanel=new Pe("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se.fontFamilyPanel=new Je("Font",ke.defaultFontFamilies,ke.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se.textColorPanel=new ne("Text color",ke.defaultColorSet,Se.textColor,ft),Se.textColorPanel.onColorChanged=Se.setTextColor,Se}return Oe(Ee,tt),Ee.prototype.ownsTarget=function(we){return!(!tt.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.frame&&we!==this.captionBg&&we!==this.captionElement)},Ee.prototype.createVisual=function(){this.visual=qe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=qe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=qe.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=qe.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()},Ee.prototype.setCaptionText=function(we){this.captionText=we,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ee.prototype.pointerDown=function(we,Be){tt.prototype.pointerDown.call(this,we,Be),this.isMoved=!1,this.pointerDownPoint=we,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},Ee.prototype.manipulate=function(we){tt.prototype.manipulate.call(this,we),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(we.x-this.pointerDownPoint.x)>5||Math.abs(we.y-this.pointerDownPoint.y)>5)},Ee.prototype.resize=function(we){tt.prototype.resize.call(this,we),this.setSize()},Ee.prototype.sizeCaption=function(){var we=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=we.width+2*this.PADDING,this.captionBoxHeight=we.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),qe.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')"]]),qe.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')"]])},Ee.prototype.showTextEditor=function(){var we=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(Be){Be.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Be){Be.key==="Enter"&&we.finishTextEditing(we.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){we.finishTextEditing(we.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){we.finishTextEditing(we.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ee.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"))},Ee.prototype.finishTextEditing=function(we){this.setCaptionText(we.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ee.prototype.setFont=function(we){this.captionElement&&qe.setAttributes(this.captionElement,[["font-family",we]]),this.fontFamily=we,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ee.prototype.setTextColor=function(we){this.captionElement&&qe.setAttributes(this.captionElement,[["fill",we]]),this.textColor=we,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ee.prototype.setSize=function(){tt.prototype.setSize.call(this),qe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ee.prototype.pointerUp=function(we){tt.prototype.pointerUp.call(this,we),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ee.prototype.dblClick=function(we,Be){tt.prototype.dblClick.call(this,we,Be),this.showTextEditor()},Ee.prototype.setStrokeColor=function(we){this.strokeColor=we,this.frame&&qe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(we),this.stateChanged()},Ee.prototype.setFillColor=function(we){this.fillColor=we,this.captionBg&&qe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(we),this.stateChanged()},Ee.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.frame&&qe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ee.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.frame&&qe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ee.prototype.getState=function(){var we=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},tt.prototype.getState.call(this));return we.typeName=this.typeName,we},Ee.prototype.restoreState=function(we){var Be=we;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.textColor=Be.textColor,this.fontFamily=Be.fontFamily,this.captionText=Be.captionText,this.fontSize=Be.fontSize,this.createVisual(),tt.prototype.restoreState.call(this,we),this.setSize()},Ee.prototype.scale=function(we,Be){tt.prototype.scale.call(this,we,Be),this.setSize()},Ee.typeName="CaptionFrameMarker",Ee.title="Caption frame marker",Ee.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>',Ee}(Ce),dn=function(){function tt(Ee,we){we===void 0&&(we=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ee,this.cancelable=we}return Object.defineProperty(tt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),tt.prototype.preventDefault=function(){this._defaultPrevented=!0},tt}(),Tn=function(tt){function Ee(we,Be,ke){var Se=tt.call(this,we,!1)||this;return Se.dataUrl=Be,Se.state=ke,Se}return Oe(Ee,tt),Ee}(dn),mt=function(tt){function Ee(we,Be,ke){ke===void 0&&(ke=!1);var Se=tt.call(this,we,ke)||this;return Se.marker=Be,Se}return Oe(Ee,tt),Ee}(dn),Gn=function(){function tt(){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 tt.prototype.addEventListener=function(Ee,we){this[Ee].push(we)},tt.prototype.removeEventListener=function(Ee,we){var Be=this[Ee].indexOf(we);Be>-1&&this[Ee].splice(Be,1)},tt}(),xn=function(){function tt(Ee){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ke,this._isOpen=!1,this.undoRedoManager=new en,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Gn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=tt.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ee,this.targetRoot=document.body,this.width=Ee.clientWidth,this.height=Ee.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(tt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ge,Xe,zt,kt,Nt,yn,Ut,Lt,mn,jt,pt,nn,On]},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ge,Xe,zt,kt,yn,Ut,Lt]},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ge,Xe,zt,kt,Ut]},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ee){var we=this;this._availableMarkerTypes.splice(0),Ee.forEach(function(Be){if(typeof Be=="string"){var ke=we.ALL_MARKER_TYPES.find(function(Se){return Se.typeName===Be});ke!==void 0&&we._availableMarkerTypes.push(ke)}else we._availableMarkerTypes.push(Be)})},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ee){this._zoomLevel=Ee,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(tt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),tt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),De.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},tt.prototype.show=function(){var Ee=this;this.styles.styleSheetRoot===void 0&&Et.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Et.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(we){return we(new dn(Ee))})},tt.prototype.render=function(){return He(this,void 0,void 0,function(){var Ee;return Rt(this,function(we){switch(we.label){case 0:return this.setCurrentMarker(),(Ee=new Tt).naturalSize=this.renderAtNaturalSize,Ee.imageType=this.renderImageType,Ee.imageQuality=this.renderImageQuality,Ee.markersOnly=this.renderMarkersOnly,Ee.width=this.renderWidth,Ee.height=this.renderHeight,[4,Ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return we.sent(),[4,Ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,we.sent()]}})})},tt.prototype.close=function(Ee){var we=this;if(Ee===void 0&&(Ee=!1),this.isOpen){var Be=!1;Ee||this.eventListeners.beforeclose.forEach(function(ke){var Se=new dn(we,!0);ke(Se),Se.defaultPrevented&&(Be=!0)}),Be||(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(ke){return ke(new dn(we))}),this.detachEvents(),this._isOpen=!1)}},tt.prototype.addMarkersToToolbar=function(){for(var Ee,we=[],Be=0;Be<arguments.length;Be++)we[Be]=arguments[Be];(Ee=this._availableMarkerTypes).push.apply(Ee,we)},tt.prototype.addRenderEventListener=function(Ee){this.addEventListener("render",function(we){Ee(we.dataUrl,we.state)})},tt.prototype.removeRenderEventListener=function(Ee){},tt.prototype.addCloseEventListener=function(Ee){this.addEventListener("close",function(){Ee()})},tt.prototype.removeCloseEventListener=function(Ee){},tt.prototype.setupResizeObserver=function(){var Ee=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ee.resize(Ee.target.clientWidth,Ee.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ee.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},tt.prototype.onPopupTargetResize=function(){var Ee=1*this.target.clientWidth/this.target.clientHeight,we=this.editorCanvas.clientWidth/Ee>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ee:this.editorCanvas.clientWidth,Be=we<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ee;this.resize(we,Be)},tt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},tt.prototype.resize=function(Ee,we){this._isResizing=!0;var Be=Ee/this.imageWidth,ke=we/this.imageHeight;this.imageWidth=Math.round(Ee),this.imageHeight=Math.round(we),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(Be,ke),this._isResizing=!1},tt.prototype.scaleMarkers=function(Ee,we){var Be,ke=this;this._currentMarker&&this._currentMarker instanceof kt?this._currentMarker.scale(Ee,we):(Be=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Se){Se!==ke._currentMarker&&Se.scale(Ee,we)}),Be!==void 0&&this.setCurrentMarker(Be)},tt.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"},tt.prototype.setTopLeft=function(){var Ee=this.editingTarget.getBoundingClientRect(),we=this.editorCanvas.getBoundingClientRect();this.left=Ee.left-we.left,this.top=Ee.top-we.top},tt.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)},tt.prototype.addDefs=function(){for(var Ee,we=[],Be=0;Be<arguments.length;Be++)we[Be]=arguments[Be];this.defs=qe.createDefs(),this.addDefsToImage(),(Ee=this.defs).append.apply(Ee,we)},tt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},tt.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)},tt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},tt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},tt.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)},tt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},tt.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)},tt.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 Ee=document.createElement("a");Ee.href="https://markerjs.com/",Ee.target="_blank",Ee.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>',Ee.title="Powered by marker.js",Ee.style.display="grid",Ee.style.alignItems="center",Ee.style.justifyItems="center",Ee.style.padding="3px",Ee.style.width="20px",Ee.style.height="20px",this.logoUI.appendChild(Ee),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},tt.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")},tt.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"},tt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},tt.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 Ee=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=Ee+"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 Pt(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 Me(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},tt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},tt.prototype.removeMarker=function(Ee){this.markerImage.removeChild(Ee.container),this.markers.indexOf(Ee)>-1&&this.markers.splice(this.markers.indexOf(Ee),1),Ee.dispose()},tt.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())},tt.prototype.toolbarButtonClicked=function(Ee,we){if(Ee==="marker"&&we!==void 0)this.createNewMarker(we);else if(Ee==="action")switch(we){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()}},tt.prototype.deleteSelectedMarker=function(){var Ee=this;if(this._currentMarker!==void 0){var we=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ke){var Se=new mt(Ee,Ee._currentMarker,!0);ke(Se),Se.defaultPrevented&&(we=!0)}),!we){var Be=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(ke){return ke(new mt(Ee,Be))})}}},tt.prototype.clear=function(){var Ee=this,we=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(st){var At=new mt(Ee,void 0,!0);st(At),At.defaultPrevented&&(we=!0)}),!we)){this.setCurrentMarker();for(var Be=function(st){var At=ke.markers[st];ke.setCurrentMarker(ke.markers[st]),ke._currentMarker.dispose(),ke.markerImage.removeChild(ke._currentMarker.container),ke.markers.splice(ke.markers.indexOf(ke._currentMarker),1),ke.eventListeners.markerdelete.forEach(function(Ve){return Ve(new mt(Ee,At))})},ke=this,Se=this.markers.length-1;Se>=0;Se--)Be(Se);this.addUndoStep()}},Object.defineProperty(tt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),tt.prototype.showNotesEditor=function(){var Ee;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=(Ee=this._currentMarker.notes)!==null&&Ee!==void 0?Ee:"",this.overlayContainer.appendChild(this.notesArea))},tt.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)},tt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},tt.prototype.addUndoStep=function(){var Ee=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var we=this.getState(),Be=this.undoRedoManager.getLastUndoStep();if(!Be||Be.width===we.width&&Be.height===we.height){var ke=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(we),ke<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Se){return Se(new dn(Ee))})}else this.undoRedoManager.replaceLastUndoStep(we),this.eventListeners.statechange.forEach(function(Se){return Se(new dn(Ee))})}},tt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},tt.prototype.undoStep=function(){var Ee=this,we=this.undoRedoManager.undo();we!==void 0&&(this.restoreState(we),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Be){return Be(new dn(Ee))}))},tt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},tt.prototype.redoStep=function(){var Ee=this,we=this.undoRedoManager.redo();we!==void 0&&(this.restoreState(we),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Be){return Be(new dn(Ee))}))},tt.prototype.stepZoom=function(){var Ee=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ee<this.zoomSteps.length-1?this.zoomSteps[Ee+1]:this.zoomSteps[0]},tt.prototype.panTo=function(Ee){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ee.x,top:this.prevPanPoint.y-Ee.y}),this.prevPanPoint=Ee},tt.prototype.startRenderAndClose=function(){return He(this,void 0,void 0,function(){var Ee,we,Be=this;return Rt(this,function(ke){switch(ke.label){case 0:return[4,this.render()];case 1:return Ee=ke.sent(),we=this.getState(),this.eventListeners.render.forEach(function(Se){return Se(new Tn(Be,Ee,we))}),this.close(!0),[2]}})})},tt.prototype.getState=function(Ee){Ee===!0&&this.setCurrentMarker();var we={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Be){return we.markers.push(Be.getState())}),we},tt.prototype.restoreState=function(Ee){var we=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ee.markers.forEach(function(Be){var ke=we._availableMarkerTypes.find(function(st){return st.typeName===Be.typeName});if(ke!==void 0){var Se=we.addNewMarker(ke);Se.restoreState(Be),we.markers.push(Se)}}),Ee.width&&Ee.height&&(Ee.width!==this.imageWidth||Ee.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ee.width,this.imageHeight/Ee.height),this.eventListeners.restorestate.forEach(function(Be){return Be(new dn(we))})},tt.prototype.addNewMarker=function(Ee){var we=qe.createGroup();return this.markerImage.appendChild(we),new Ee(we,this.overlayContainer,this.settings)},tt.prototype.createNewMarker=function(Ee){var we,Be=this;(we=typeof Ee=="string"?this._availableMarkerTypes.find(function(ke){return ke.typeName===Ee}):Ee)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(we),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(we.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ke){return ke(new mt(Be,Be._currentMarker))}))},tt.prototype.markerCreated=function(Ee){var we=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ee),this.setCurrentMarker(Ee),Ee instanceof Xe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Xe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Be){return Be(new mt(we,we._currentMarker))})},tt.prototype.colorChanged=function(Ee){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ee,this.settings.defaultStrokeColor=Ee)},tt.prototype.fillColorChanged=function(Ee){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ee)},tt.prototype.markerStateChanged=function(Ee){var we=this;this.eventListeners.markerchange.forEach(function(Be){return Be(new mt(we,Ee))})},tt.prototype.setCurrentMarker=function(Ee){var we=this;this._currentMarker!==Ee&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Be){return Be(new mt(we,we._currentMarker))})),this._currentMarker=Ee,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(Be){return Be(new mt(we,we._currentMarker))}))},tt.prototype.onPointerDown=function(Ee){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ee.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var we=this.markers.find(function(Be){return Be.ownsTarget(Ee.target)});we!==void 0?(this.setCurrentMarker(we),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ee.clientX,Ee.clientY),Ee.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ee.clientX,y:Ee.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ee.clientX,Ee.clientY))},tt.prototype.onDblClick=function(Ee){if(this._isFocused||this.focus(),this.mode==="select"){var we=this.markers.find(function(Be){return Be.ownsTarget(Ee.target)});we!==void 0&&we!==this._currentMarker&&this.setCurrentMarker(we),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ee.clientX,Ee.clientY),Ee.target):this.setCurrentMarker()}},tt.prototype.onPointerMove=function(Ee){this.touchPoints!==1&&Ee.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ee.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ee.clientX,Ee.clientY)):this.zoomLevel>1&&this.panTo({x:Ee.clientX,y:Ee.clientY}))},tt.prototype.onPointerUp=function(Ee){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ee.clientX,Ee.clientY)),this.isDragging=!1,this.addUndoStep()},tt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},tt.prototype.onKeyUp=function(Ee){this._currentMarker===void 0||this.notesArea!==void 0||Ee.key!=="Delete"&&Ee.key!=="Backspace"||this.deleteSelectedMarker()},tt.prototype.clientToLocalCoordinates=function(Ee,we){var Be=this.markerImage.getBoundingClientRect();return{x:(Ee-Be.left)/this.zoomLevel,y:(we-Be.top)/this.zoomLevel}},tt.prototype.onWindowResize=function(){this.positionUI()},tt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ee=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ee+"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()},tt.prototype.addLicenseKey=function(Ee){De.addKey(Ee)},tt.prototype.addEventListener=function(Ee,we){this.eventListeners.addEventListener(Ee,we)},tt.prototype.removeEventListener=function(Ee,we){this.eventListeners.removeEventListener(Ee,we)},tt.prototype.renderState=function(Ee){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ee),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(tt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),tt.prototype.focus=function(){var Ee=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(we){return we(new dn(Ee))}))},tt.prototype.blur=function(){var Ee=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(we){return we(new dn(Ee))}))},tt.instanceCounter=0,tt}()},17115:function(Rn,Mn,ve){"use strict";ve.d(Mn,{ZP:function(){return De}});var ye=ve(33606),Oe=ve(59301),He=ve(47273),Rt=0,$e=(0,He.Z)();function qe(){var Tt;return $e?(Tt=Rt,Rt+=1):Tt="TEST_OR_SSR",Tt}function De(Tt){var Et=Oe.useState(),et=(0,ye.Z)(Et,2),Ot=et[0],it=et[1];return Oe.useEffect(function(){it("rc_select_".concat(qe()))},[]),Tt||Ot}},77861:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Ac:function(){return Ht},Xo:function(){return rr},Wx:function(){return zr},ZP:function(){return on},lk:function(){return Ce}});var ye=ve(92413),Oe=ve(26407),He=ve(400),Rt=ve(33708),$e=ve(33606),qe=ve(37061),De=ve(39559),Tt=ve(18929),Et=ve(48736),et=ve(59301),Ot=ve(92310),it=ve.n(Ot),Pt=ve(34280),Me=ve(49658),te=ve(10228),ne=ve(8654),ce=function(Qe){var _t=Qe.className,It=Qe.customizeIcon,Fn=Qe.customizeIconProps,Hn=Qe.onMouseDown,ct=Qe.onClick,sn=Qe.children,Un;return typeof It=="function"?Un=It(Fn):Un=It,et.createElement("span",{className:_t,onMouseDown:function(Zt){Zt.preventDefault(),Hn&&Hn(Zt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ct,"aria-hidden":!0},Un!==void 0?Un:et.createElement("span",{className:it()(_t.split(/\s+/).map(function(_n){return"".concat(_n,"-icon")}))},sn))},se=ce;function ge(ht,Qe,_t,It,Fn){var Hn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ct=arguments.length>6?arguments[6]:void 0,sn=arguments.length>7?arguments[7]:void 0,Un=et.useMemo(function(){if((0,De.Z)(It)==="object")return It.clearIcon;if(Fn)return Fn},[It,Fn]),_n=et.useMemo(function(){return!!(!Hn&&It&&(_t.length||ct)&&!(sn==="combobox"&&ct===""))},[It,Hn,_t.length,ct,sn]);return{allowClear:_n,clearIcon:et.createElement(se,{className:"".concat(ht,"-clear"),onMouseDown:Qe,customizeIcon:Un},"\xD7")}}var me=et.createContext(null);function Ce(){return et.useContext(me)}function Fe(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Qe=et.useState(!1),_t=(0,$e.Z)(Qe,2),It=_t[0],Fn=_t[1],Hn=et.useRef(null),ct=function(){window.clearTimeout(Hn.current)};et.useEffect(function(){return ct},[]);var sn=function(_n,Zt){ct(),Hn.current=window.setTimeout(function(){Fn(_n),Zt&&Zt()},ht)};return[It,sn,ct]}function Pe(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Qe=et.useRef(null),_t=et.useRef(null);et.useEffect(function(){return function(){window.clearTimeout(_t.current)}},[]);function It(Fn){(Fn||Qe.current===null)&&(Qe.current=Fn),window.clearTimeout(_t.current),_t.current=window.setTimeout(function(){Qe.current=null},ht)}return[function(){return Qe.current},It]}function Ie(ht,Qe,_t,It){var Fn=et.useRef(null);Fn.current={open:Qe,triggerOpen:_t,customizedTrigger:It},et.useEffect(function(){function Hn(ct){var sn;if(!((sn=Fn.current)!==null&&sn!==void 0&&sn.customizedTrigger)){var Un=ct.target;Un.shadowRoot&&ct.composed&&(Un=ct.composedPath()[0]||Un),Fn.current.open&&ht().filter(function(_n){return _n}).every(function(_n){return!_n.contains(Un)&&_n!==Un})&&Fn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Hn),function(){return window.removeEventListener("mousedown",Hn)}},[])}var Ge=ve(26112),Ke=ve(11780),Ye=function(Qe,_t){var It,Fn,Hn=Qe.prefixCls,ct=Qe.id,sn=Qe.inputElement,Un=Qe.disabled,_n=Qe.tabIndex,Zt=Qe.autoFocus,rn=Qe.autoComplete,wi=Qe.editable,Ci=Qe.activeDescendantId,yi=Qe.value,ci=Qe.maxLength,Pi=Qe.onKeyDown,Mi=Qe.onMouseDown,ji=Qe.onChange,lr=Qe.onPaste,nr=Qe.onCompositionStart,Nn=Qe.onCompositionEnd,Pr=Qe.open,Tr=Qe.attrs,br=sn||et.createElement("input",null),Cn=br,di=Cn.ref,Ki=Cn.props,ir=Ki.onKeyDown,Yi=Ki.onChange,cr=Ki.onMouseDown,Mr=Ki.onCompositionStart,Di=Ki.onCompositionEnd,Ui=Ki.style;return(0,Et.Kp)(!("maxLength"in br.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),br=et.cloneElement(br,(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({type:"search"},Ki),{},{id:ct,ref:(0,ne.sQ)(_t,di),disabled:Un,tabIndex:_n,autoComplete:rn||"off",autoFocus:Zt,className:it()("".concat(Hn,"-selection-search-input"),(It=br)===null||It===void 0||(Fn=It.props)===null||Fn===void 0?void 0:Fn.className),role:"combobox","aria-label":"Search","aria-expanded":Pr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ct,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ct,"_list"),"aria-activedescendant":Pr?Ci:void 0},Tr),{},{value:wi?yi:"",maxLength:ci,readOnly:!wi,unselectable:wi?null:"on",style:(0,Rt.Z)((0,Rt.Z)({},Ui),{},{opacity:wi?null:0}),onKeyDown:function(Dn){Pi(Dn),ir&&ir(Dn)},onMouseDown:function(Dn){Mi(Dn),cr&&cr(Dn)},onChange:function(Dn){ji(Dn),Yi&&Yi(Dn)},onCompositionStart:function(Dn){nr(Dn),Mr&&Mr(Dn)},onCompositionEnd:function(Dn){Nn(Dn),Di&&Di(Dn)},onPaste:lr})),br},pt=et.forwardRef(Ye);pt.displayName="Input";var Je=pt;function kt(ht){return Array.isArray(ht)?ht:ht!==void 0?[ht]:[]}var Xe=typeof window!="undefined"&&window.document&&window.document.documentElement,Wt=Xe;function zt(ht){return ht!=null}function jt(ht){return!ht&&ht!==0}function Mt(ht){return["string","number"].includes((0,De.Z)(ht))}function Ut(ht){var Qe=void 0;return ht&&(Mt(ht.title)?Qe=ht.title.toString():Mt(ht.label)&&(Qe=ht.label.toString())),Qe}function ft(ht,Qe){Wt?et.useLayoutEffect(ht,Qe):et.useEffect(ht,Qe)}function Re(ht){var Qe;return(Qe=ht.key)!==null&&Qe!==void 0?Qe:ht.value}var Lt=function(Qe){Qe.preventDefault(),Qe.stopPropagation()},yn=function(Qe){var _t=Qe.id,It=Qe.prefixCls,Fn=Qe.values,Hn=Qe.open,ct=Qe.searchValue,sn=Qe.autoClearSearchValue,Un=Qe.inputRef,_n=Qe.placeholder,Zt=Qe.disabled,rn=Qe.mode,wi=Qe.showSearch,Ci=Qe.autoFocus,yi=Qe.autoComplete,ci=Qe.activeDescendantId,Pi=Qe.tabIndex,Mi=Qe.removeIcon,ji=Qe.maxTagCount,lr=Qe.maxTagTextLength,nr=Qe.maxTagPlaceholder,Nn=nr===void 0?function(yt){return"+ ".concat(yt.length," ...")}:nr,Pr=Qe.tagRender,Tr=Qe.onToggleOpen,br=Qe.onRemove,Cn=Qe.onInputChange,di=Qe.onInputPaste,Ki=Qe.onInputKeyDown,ir=Qe.onInputMouseDown,Yi=Qe.onInputCompositionStart,cr=Qe.onInputCompositionEnd,Mr=et.useRef(null),Di=(0,et.useState)(0),Ui=(0,$e.Z)(Di,2),Wi=Ui[0],Dn=Ui[1],Fr=(0,et.useState)(!1),Ln=(0,$e.Z)(Fr,2),fr=Ln[0],Ur=Ln[1],Cr="".concat(It,"-selection"),Do=Hn||rn==="multiple"&&sn===!1||rn==="tags"?ct:"",so=rn==="tags"||rn==="multiple"&&sn===!1||wi&&(Hn||fr);ft(function(){Dn(Mr.current.scrollWidth)},[Do]);function yr(yt,Bt,ln,jn,ri){return et.createElement("span",{className:it()("".concat(Cr,"-item"),(0,He.Z)({},"".concat(Cr,"-item-disabled"),ln)),title:Ut(yt)},et.createElement("span",{className:"".concat(Cr,"-item-content")},Bt),jn&&et.createElement(se,{className:"".concat(Cr,"-item-remove"),onMouseDown:Lt,onClick:ri,customizeIcon:Mi},"\xD7"))}function gr(yt,Bt,ln,jn,ri){var tn=function(Xn){Lt(Xn),Tr(!Hn)};return et.createElement("span",{onMouseDown:tn},Pr({label:Bt,value:yt,disabled:ln,closable:jn,onClose:ri}))}function hr(yt){var Bt=yt.disabled,ln=yt.label,jn=yt.value,ri=!Zt&&!Bt,tn=ln;if(typeof lr=="number"&&(typeof ln=="string"||typeof ln=="number")){var bn=String(tn);bn.length>lr&&(tn="".concat(bn.slice(0,lr),"..."))}var Xn=function(Ei){Ei&&Ei.stopPropagation(),br(yt)};return typeof Pr=="function"?gr(jn,tn,Bt,ri,Xn):yr(yt,tn,Bt,ri,Xn)}function Gr(yt){var Bt=typeof Nn=="function"?Nn(yt):Nn;return yr({title:Bt},Bt,!1)}var Oi=et.createElement("div",{className:"".concat(Cr,"-search"),style:{width:Wi},onFocus:function(){Ur(!0)},onBlur:function(){Ur(!1)}},et.createElement(Je,{ref:Un,open:Hn,prefixCls:It,id:_t,inputElement:null,disabled:Zt,autoFocus:Ci,autoComplete:yi,editable:so,activeDescendantId:ci,value:Do,onKeyDown:Ki,onMouseDown:ir,onChange:Cn,onPaste:di,onCompositionStart:Yi,onCompositionEnd:cr,tabIndex:Pi,attrs:(0,Ge.Z)(Qe,!0)}),et.createElement("span",{ref:Mr,className:"".concat(Cr,"-search-mirror"),"aria-hidden":!0},Do,"\xA0")),_e=et.createElement(Ke.Z,{prefixCls:"".concat(Cr,"-overflow"),data:Fn,renderItem:hr,renderRest:Gr,suffix:Oi,itemKey:Re,maxCount:ji});return et.createElement(et.Fragment,null,_e,!Fn.length&&!Do&&et.createElement("span",{className:"".concat(Cr,"-placeholder")},_n))},mn=yn,Nt=function(Qe){var _t=Qe.inputElement,It=Qe.prefixCls,Fn=Qe.id,Hn=Qe.inputRef,ct=Qe.disabled,sn=Qe.autoFocus,Un=Qe.autoComplete,_n=Qe.activeDescendantId,Zt=Qe.mode,rn=Qe.open,wi=Qe.values,Ci=Qe.placeholder,yi=Qe.tabIndex,ci=Qe.showSearch,Pi=Qe.searchValue,Mi=Qe.activeValue,ji=Qe.maxLength,lr=Qe.onInputKeyDown,nr=Qe.onInputMouseDown,Nn=Qe.onInputChange,Pr=Qe.onInputPaste,Tr=Qe.onInputCompositionStart,br=Qe.onInputCompositionEnd,Cn=Qe.title,di=et.useState(!1),Ki=(0,$e.Z)(di,2),ir=Ki[0],Yi=Ki[1],cr=Zt==="combobox",Mr=cr||ci,Di=wi[0],Ui=Pi||"";cr&&Mi&&!ir&&(Ui=Mi),et.useEffect(function(){cr&&Yi(!1)},[cr,Mi]);var Wi=Zt!=="combobox"&&!rn&&!ci?!1:!!Ui,Dn=Cn===void 0?Ut(Di):Cn,Fr=function(){if(Di)return null;var fr=Wi?{visibility:"hidden"}:void 0;return et.createElement("span",{className:"".concat(It,"-selection-placeholder"),style:fr},Ci)};return et.createElement(et.Fragment,null,et.createElement("span",{className:"".concat(It,"-selection-search")},et.createElement(Je,{ref:Hn,prefixCls:It,id:Fn,open:rn,inputElement:_t,disabled:ct,autoFocus:sn,autoComplete:Un,editable:Mr,activeDescendantId:_n,value:Ui,onKeyDown:lr,onMouseDown:nr,onChange:function(fr){Yi(!0),Nn(fr)},onPaste:Pr,onCompositionStart:Tr,onCompositionEnd:br,tabIndex:yi,attrs:(0,Ge.Z)(Qe,!0),maxLength:cr?ji:void 0})),!cr&&Di?et.createElement("span",{className:"".concat(It,"-selection-item"),title:Dn,style:Wi?{visibility:"hidden"}:void 0},Di.label):null,Fr())},en=Nt;function nn(ht){return![te.Z.ESC,te.Z.SHIFT,te.Z.BACKSPACE,te.Z.TAB,te.Z.WIN_KEY,te.Z.ALT,te.Z.META,te.Z.WIN_KEY_RIGHT,te.Z.CTRL,te.Z.SEMICOLON,te.Z.EQUALS,te.Z.CAPS_LOCK,te.Z.CONTEXT_MENU,te.Z.F1,te.Z.F2,te.Z.F3,te.Z.F4,te.Z.F5,te.Z.F6,te.Z.F7,te.Z.F8,te.Z.F9,te.Z.F10,te.Z.F11,te.Z.F12].includes(ht)}var On=function(Qe,_t){var It=(0,et.useRef)(null),Fn=(0,et.useRef)(!1),Hn=Qe.prefixCls,ct=Qe.open,sn=Qe.mode,Un=Qe.showSearch,_n=Qe.tokenWithEnter,Zt=Qe.autoClearSearchValue,rn=Qe.onSearch,wi=Qe.onSearchSubmit,Ci=Qe.onToggleOpen,yi=Qe.onInputKeyDown,ci=Qe.domRef;et.useImperativeHandle(_t,function(){return{focus:function(){It.current.focus()},blur:function(){It.current.blur()}}});var Pi=Pe(0),Mi=(0,$e.Z)(Pi,2),ji=Mi[0],lr=Mi[1],nr=function(Ui){var Wi=Ui.which;(Wi===te.Z.UP||Wi===te.Z.DOWN)&&Ui.preventDefault(),yi&&yi(Ui),Wi===te.Z.ENTER&&sn==="tags"&&!Fn.current&&!ct&&(wi==null||wi(Ui.target.value)),nn(Wi)&&Ci(!0)},Nn=function(){lr(!0)},Pr=(0,et.useRef)(null),Tr=function(Ui){rn(Ui,!0,Fn.current)!==!1&&Ci(!0)},br=function(){Fn.current=!0},Cn=function(Ui){Fn.current=!1,sn!=="combobox"&&Tr(Ui.target.value)},di=function(Ui){var Wi=Ui.target.value;if(_n&&Pr.current&&/[\r\n]/.test(Pr.current)){var Dn=Pr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Wi=Wi.replace(Dn,Pr.current)}Pr.current=null,Tr(Wi)},Ki=function(Ui){var Wi=Ui.clipboardData,Dn=Wi.getData("text");Pr.current=Dn},ir=function(Ui){var Wi=Ui.target;if(Wi!==It.current){var Dn=document.body.style.msTouchAction!==void 0;Dn?setTimeout(function(){It.current.focus()}):It.current.focus()}},Yi=function(Ui){var Wi=ji();Ui.target!==It.current&&!Wi&&sn!=="combobox"&&Ui.preventDefault(),(sn!=="combobox"&&(!Un||!Wi)||!ct)&&(ct&&Zt!==!1&&rn("",!0,!1),Ci())},cr={inputRef:It,onInputKeyDown:nr,onInputMouseDown:Nn,onInputChange:di,onInputPaste:Ki,onInputCompositionStart:br,onInputCompositionEnd:Cn},Mr=sn==="multiple"||sn==="tags"?et.createElement(mn,(0,ye.Z)({},Qe,cr)):et.createElement(en,(0,ye.Z)({},Qe,cr));return et.createElement("div",{ref:ci,className:"".concat(Hn,"-selector"),onClick:ir,onMouseDown:Yi},Mr)},dn=et.forwardRef(On);dn.displayName="Selector";var Tn=dn,mt=ve(35593),Gn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xn=function(Qe){var _t=Qe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"}}},tt=function(Qe,_t){var It=Qe.prefixCls,Fn=Qe.disabled,Hn=Qe.visible,ct=Qe.children,sn=Qe.popupElement,Un=Qe.animation,_n=Qe.transitionName,Zt=Qe.dropdownStyle,rn=Qe.dropdownClassName,wi=Qe.direction,Ci=wi===void 0?"ltr":wi,yi=Qe.placement,ci=Qe.builtinPlacements,Pi=Qe.dropdownMatchSelectWidth,Mi=Qe.dropdownRender,ji=Qe.dropdownAlign,lr=Qe.getPopupContainer,nr=Qe.empty,Nn=Qe.getTriggerDOMNode,Pr=Qe.onPopupVisibleChange,Tr=Qe.onPopupMouseEnter,br=(0,qe.Z)(Qe,Gn),Cn="".concat(It,"-dropdown"),di=sn;Mi&&(di=Mi(sn));var Ki=et.useMemo(function(){return ci||xn(Pi)},[ci,Pi]),ir=Un?"".concat(Cn,"-").concat(Un):_n,Yi=typeof Pi=="number",cr=et.useMemo(function(){return Yi?null:Pi===!1?"minWidth":"width"},[Pi,Yi]),Mr=Zt;Yi&&(Mr=(0,Rt.Z)((0,Rt.Z)({},Mr),{},{width:Pi}));var Di=et.useRef(null);return et.useImperativeHandle(_t,function(){return{getPopupElement:function(){return Di.current}}}),et.createElement(mt.Z,(0,ye.Z)({},br,{showAction:Pr?["click"]:[],hideAction:Pr?["click"]:[],popupPlacement:yi||(Ci==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ki,prefixCls:Cn,popupTransitionName:ir,popup:et.createElement("div",{ref:Di,onMouseEnter:Tr},di),stretch:cr,popupAlign:ji,popupVisible:Hn,getPopupContainer:lr,popupClassName:it()(rn,(0,He.Z)({},"".concat(Cn,"-empty"),nr)),popupStyle:Mr,getTriggerDOMNode:Nn,onPopupVisibleChange:Pr}),ct)},Ee=et.forwardRef(tt);Ee.displayName="SelectTrigger";var we=Ee,Be=ve(34589);function ke(ht,Qe){var _t=ht.key,It;return"value"in ht&&(It=ht.value),_t!=null?_t:It!==void 0?It:"rc-index-key-".concat(Qe)}function Se(ht,Qe){var _t=ht||{},It=_t.label,Fn=_t.value,Hn=_t.options,ct=_t.groupLabel,sn=It||(Qe?"children":"label");return{label:sn,value:Fn||"value",options:Hn||"options",groupLabel:ct||sn}}function st(ht){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=Qe.fieldNames,It=Qe.childrenAsData,Fn=[],Hn=Se(_t,!1),ct=Hn.label,sn=Hn.value,Un=Hn.options,_n=Hn.groupLabel;function Zt(rn,wi){rn.forEach(function(Ci){if(wi||!(Un in Ci)){var yi=Ci[sn];Fn.push({key:ke(Ci,Fn.length),groupOption:wi,data:Ci,label:Ci[ct],value:yi})}else{var ci=Ci[_n];ci===void 0&&It&&(ci=Ci.label),Fn.push({key:ke(Ci,Fn.length),group:!0,data:Ci,label:ci}),Zt(Ci[Un],!0)}})}return Zt(ht,!1),Fn}function At(ht){var Qe=(0,Rt.Z)({},ht);return"props"in Qe||Object.defineProperty(Qe,"props",{get:function(){return(0,Et.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Qe}}),Qe}function Ve(ht,Qe){if(!Qe||!Qe.length)return null;var _t=!1;function It(Hn,ct){var sn=(0,Be.Z)(ct),Un=sn[0],_n=sn.slice(1);if(!Un)return[Hn];var Zt=Hn.split(Un);return _t=_t||Zt.length>1,Zt.reduce(function(rn,wi){return[].concat((0,Oe.Z)(rn),(0,Oe.Z)(It(wi,_n)))},[]).filter(function(rn){return rn})}var Fn=It(ht,Qe);return _t?Fn:null}var We=["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"],Ct=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function bt(ht){return ht==="tags"||ht==="multiple"}var dt=et.forwardRef(function(ht,Qe){var _t,It,Fn=ht.id,Hn=ht.prefixCls,ct=ht.className,sn=ht.showSearch,Un=ht.tagRender,_n=ht.direction,Zt=ht.omitDomProps,rn=ht.displayValues,wi=ht.onDisplayValuesChange,Ci=ht.emptyOptions,yi=ht.notFoundContent,ci=yi===void 0?"Not Found":yi,Pi=ht.onClear,Mi=ht.mode,ji=ht.disabled,lr=ht.loading,nr=ht.getInputElement,Nn=ht.getRawInputElement,Pr=ht.open,Tr=ht.defaultOpen,br=ht.onDropdownVisibleChange,Cn=ht.activeValue,di=ht.onActiveValueChange,Ki=ht.activeDescendantId,ir=ht.searchValue,Yi=ht.autoClearSearchValue,cr=ht.onSearch,Mr=ht.onSearchSplit,Di=ht.tokenSeparators,Ui=ht.allowClear,Wi=ht.suffixIcon,Dn=ht.clearIcon,Fr=ht.OptionList,Ln=ht.animation,fr=ht.transitionName,Ur=ht.dropdownStyle,Cr=ht.dropdownClassName,Do=ht.dropdownMatchSelectWidth,so=ht.dropdownRender,yr=ht.dropdownAlign,gr=ht.placement,hr=ht.builtinPlacements,Gr=ht.getPopupContainer,Oi=ht.showAction,_e=Oi===void 0?[]:Oi,yt=ht.onFocus,Bt=ht.onBlur,ln=ht.onKeyUp,jn=ht.onKeyDown,ri=ht.onMouseDown,tn=(0,qe.Z)(ht,We),bn=bt(Mi),Xn=(sn!==void 0?sn:bn)||Mi==="combobox",Kn=(0,Rt.Z)({},tn);Ct.forEach(function(Jo){delete Kn[Jo]}),Zt==null||Zt.forEach(function(Jo){delete Kn[Jo]});var Ei=et.useState(!1),vr=(0,$e.Z)(Ei,2),Ai=vr[0],Bi=vr[1];et.useEffect(function(){Bi((0,Me.Z)())},[]);var zn=et.useRef(null),pr=et.useRef(null),kr=et.useRef(null),po=et.useRef(null),to=et.useRef(null),Jr=Fe(),eo=(0,$e.Z)(Jr,3),Zo=eo[0],$o=eo[1],ia=eo[2];et.useImperativeHandle(Qe,function(){var Jo,ma;return{focus:(Jo=po.current)===null||Jo===void 0?void 0:Jo.focus,blur:(ma=po.current)===null||ma===void 0?void 0:ma.blur,scrollTo:function(Cs){var Ss;return(Ss=to.current)===null||Ss===void 0?void 0:Ss.scrollTo(Cs)}}});var qo=et.useMemo(function(){var Jo;if(Mi!=="combobox")return ir;var ma=(Jo=rn[0])===null||Jo===void 0?void 0:Jo.value;return typeof ma=="string"||typeof ma=="number"?String(ma):""},[ir,Mi,rn]),Sn=Mi==="combobox"&&typeof nr=="function"&&nr()||null,oa=typeof Nn=="function"&&Nn(),vs=(0,ne.x1)(pr,oa==null||(_t=oa.props)===null||_t===void 0?void 0:_t.ref),Ga=et.useState(!1),Zs=(0,$e.Z)(Ga,2),xa=Zs[0],pl=Zs[1];(0,Pt.Z)(function(){pl(!0)},[]);var wa=(0,Tt.Z)(!1,{defaultValue:Tr,value:Pr}),Ao=(0,$e.Z)(wa,2),Ko=Ao[0],Ka=Ao[1],Kr=xa?Ko:!1,No=!ci&&Ci;(ji||No&&Kr&&Mi==="combobox")&&(Kr=!1);var ro=No?!1:Kr,Hi=et.useCallback(function(Jo){var ma=Jo!==void 0?Jo:!Kr;ji||(Ka(ma),Kr!==ma&&(br==null||br(ma)))},[ji,Kr,Ka,br]),fa=et.useMemo(function(){return(Di||[]).some(function(Jo){return[`
`,`\r
`].includes(Jo)})},[Di]),ka=function(ma,dl,Cs){var Ss=!0,rs=ma;di==null||di(null);var ds=Cs?null:Ve(ma,Di);return Mi!=="combobox"&&ds&&(rs="",Mr==null||Mr(ds),Hi(!1),Ss=!1),cr&&qo!==rs&&cr(rs,{source:dl?"typing":"effect"}),Ss},Ds=function(ma){!ma||!ma.trim()||cr(ma,{source:"submit"})};et.useEffect(function(){!Kr&&!bn&&Mi!=="combobox"&&ka("",!1,!1)},[Kr]),et.useEffect(function(){Ko&&ji&&Ka(!1),ji&&$o(!1)},[ji]);var ys=Pe(),nl=(0,$e.Z)(ys,2),Gi=nl[0],Da=nl[1],pa=function(ma){var dl=Gi(),Cs=ma.which;if(Cs===te.Z.ENTER&&(Mi!=="combobox"&&ma.preventDefault(),Kr||Hi(!0)),Da(!!qo),Cs===te.Z.BACKSPACE&&!dl&&bn&&!qo&&rn.length){for(var Ss=(0,Oe.Z)(rn),rs=null,ds=Ss.length-1;ds>=0;ds-=1){var Ls=Ss[ds];if(!Ls.disabled){Ss.splice(ds,1),rs=Ls;break}}rs&&wi(Ss,{type:"remove",values:[rs]})}for(var xs=arguments.length,Ks=new Array(xs>1?xs-1:0),Bs=1;Bs<xs;Bs++)Ks[Bs-1]=arguments[Bs];if(Kr&&to.current){var Fa;(Fa=to.current).onKeyDown.apply(Fa,[ma].concat(Ks))}jn==null||jn.apply(void 0,[ma].concat(Ks))},Os=function(ma){for(var dl=arguments.length,Cs=new Array(dl>1?dl-1:0),Ss=1;Ss<dl;Ss++)Cs[Ss-1]=arguments[Ss];if(Kr&&to.current){var rs;(rs=to.current).onKeyUp.apply(rs,[ma].concat(Cs))}ln==null||ln.apply(void 0,[ma].concat(Cs))},ml=function(ma){var dl=rn.filter(function(Cs){return Cs!==ma});wi(dl,{type:"remove",values:[ma]})},Gl=et.useRef(!1),So=function(){$o(!0),ji||(yt&&!Gl.current&&yt.apply(void 0,arguments),_e.includes("focus")&&Hi(!0)),Gl.current=!0},Au=function(){$o(!1,function(){Gl.current=!1,Hi(!1)}),!ji&&(qo&&(Mi==="tags"?cr(qo,{source:"submit"}):Mi==="multiple"&&cr("",{source:"blur"})),Bt&&Bt.apply(void 0,arguments))},il=[];et.useEffect(function(){return function(){il.forEach(function(Jo){return clearTimeout(Jo)}),il.splice(0,il.length)}},[]);var Nl=function(ma){var dl,Cs=ma.target,Ss=(dl=kr.current)===null||dl===void 0?void 0:dl.getPopupElement();if(Ss&&Ss.contains(Cs)){var rs=setTimeout(function(){var Ks=il.indexOf(rs);if(Ks!==-1&&il.splice(Ks,1),ia(),!Ai&&!Ss.contains(document.activeElement)){var Bs;(Bs=po.current)===null||Bs===void 0||Bs.focus()}});il.push(rs)}for(var ds=arguments.length,Ls=new Array(ds>1?ds-1:0),xs=1;xs<ds;xs++)Ls[xs-1]=arguments[xs];ri==null||ri.apply(void 0,[ma].concat(Ls))},vl=et.useState({}),fu=(0,$e.Z)(vl,2),yl=fu[1];function rl(){yl({})}var Sl;oa&&(Sl=function(ma){Hi(ma)}),Ie(function(){var Jo;return[zn.current,(Jo=kr.current)===null||Jo===void 0?void 0:Jo.getPopupElement()]},ro,Hi,!!oa);var oc=et.useMemo(function(){return(0,Rt.Z)((0,Rt.Z)({},ht),{},{notFoundContent:ci,open:Kr,triggerOpen:ro,id:Fn,showSearch:Xn,multiple:bn,toggleOpen:Hi})},[ht,ci,ro,Kr,Fn,Xn,bn,Hi]),Sc=!!Wi||lr,xc;Sc&&(xc=et.createElement(se,{className:it()("".concat(Hn,"-arrow"),(0,He.Z)({},"".concat(Hn,"-arrow-loading"),lr)),customizeIcon:Wi,customizeIconProps:{loading:lr,searchValue:qo,open:Kr,focused:Zo,showSearch:Xn}}));var Qc=function(){var ma;Pi==null||Pi(),(ma=po.current)===null||ma===void 0||ma.focus(),wi([],{type:"clear",values:rn}),ka("",!1,!1)},gu=ge(Hn,Qc,rn,Ui,Dn,ji,qo,Mi),zl=gu.allowClear,xl=gu.clearIcon,Tl=et.createElement(Fr,{ref:to}),pu=it()(Hn,ct,(It={},(0,He.Z)(It,"".concat(Hn,"-focused"),Zo),(0,He.Z)(It,"".concat(Hn,"-multiple"),bn),(0,He.Z)(It,"".concat(Hn,"-single"),!bn),(0,He.Z)(It,"".concat(Hn,"-allow-clear"),Ui),(0,He.Z)(It,"".concat(Hn,"-show-arrow"),Sc),(0,He.Z)(It,"".concat(Hn,"-disabled"),ji),(0,He.Z)(It,"".concat(Hn,"-loading"),lr),(0,He.Z)(It,"".concat(Hn,"-open"),Kr),(0,He.Z)(It,"".concat(Hn,"-customize-input"),Sn),(0,He.Z)(It,"".concat(Hn,"-show-search"),Xn),It)),wc=et.createElement(we,{ref:kr,disabled:ji,prefixCls:Hn,visible:ro,popupElement:Tl,animation:Ln,transitionName:fr,dropdownStyle:Ur,dropdownClassName:Cr,direction:_n,dropdownMatchSelectWidth:Do,dropdownRender:so,dropdownAlign:yr,placement:gr,builtinPlacements:hr,getPopupContainer:Gr,empty:Ci,getTriggerDOMNode:function(){return pr.current},onPopupVisibleChange:Sl,onPopupMouseEnter:rl},oa?et.cloneElement(oa,{ref:vs}):et.createElement(Tn,(0,ye.Z)({},ht,{domRef:pr,prefixCls:Hn,inputElement:Sn,ref:po,id:Fn,showSearch:Xn,autoClearSearchValue:Yi,mode:Mi,activeDescendantId:Ki,tagRender:Un,values:rn,open:Kr,onToggleOpen:Hi,activeValue:Cn,searchValue:qo,onSearch:ka,onSearchSubmit:Ds,onRemove:ml,tokenWithEnter:fa}))),mu;return oa?mu=wc:mu=et.createElement("div",(0,ye.Z)({className:pu},Kn,{ref:zn,onMouseDown:Nl,onKeyDown:pa,onKeyUp:Os,onFocus:So,onBlur:Au}),Zo&&!Kr&&et.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(rn.map(function(Jo){var ma=Jo.label,dl=Jo.value;return["number","string"].includes((0,De.Z)(ma))?ma:dl}).join(", "))),wc,xc,zl&&xl),et.createElement(me.Provider,{value:oc},mu)}),Ht=dt,En=function(ht,Qe){var _t=et.useRef({values:new Map,options:new Map}),It=et.useMemo(function(){var Hn=_t.current,ct=Hn.values,sn=Hn.options,Un=ht.map(function(rn){if(rn.label===void 0){var wi;return(0,Rt.Z)((0,Rt.Z)({},rn),{},{label:(wi=ct.get(rn.value))===null||wi===void 0?void 0:wi.label})}return rn}),_n=new Map,Zt=new Map;return Un.forEach(function(rn){_n.set(rn.value,rn),Zt.set(rn.value,Qe.get(rn.value)||sn.get(rn.value))}),_t.current.values=_n,_t.current.options=Zt,Un},[ht,Qe]),Fn=et.useCallback(function(Hn){return Qe.get(Hn)||_t.current.options.get(Hn)},[Qe]);return[It,Fn]};function An(ht,Qe){return kt(ht).join("").toUpperCase().includes(Qe)}var qt=function(ht,Qe,_t,It,Fn){return et.useMemo(function(){if(!_t||It===!1)return ht;var Hn=Qe.options,ct=Qe.label,sn=Qe.value,Un=[],_n=typeof It=="function",Zt=_t.toUpperCase(),rn=_n?It:function(Ci,yi){return Fn?An(yi[Fn],Zt):yi[Hn]?An(yi[ct!=="children"?ct:"label"],Zt):An(yi[sn],Zt)},wi=_n?function(Ci){return At(Ci)}:function(Ci){return Ci};return ht.forEach(function(Ci){if(Ci[Hn]){var yi=rn(_t,wi(Ci));if(yi)Un.push(Ci);else{var ci=Ci[Hn].filter(function(Pi){return rn(_t,wi(Pi))});ci.length&&Un.push((0,Rt.Z)((0,Rt.Z)({},Ci),{},(0,He.Z)({},Hn,ci)))}return}rn(_t,wi(Ci))&&Un.push(Ci)}),Un},[ht,It,Fn,_t,Qe])},cn=ve(17115),qn=ve(11592),wn=["children","value"],vi=["children"];function ei(ht){var Qe=ht,_t=Qe.key,It=Qe.props,Fn=It.children,Hn=It.value,ct=(0,qe.Z)(It,wn);return(0,Rt.Z)({key:_t,value:Hn!==void 0?Hn:_t,children:Fn},ct)}function Li(ht){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,qn.Z)(ht).map(function(_t,It){if(!et.isValidElement(_t)||!_t.type)return null;var Fn=_t,Hn=Fn.type.isSelectOptGroup,ct=Fn.key,sn=Fn.props,Un=sn.children,_n=(0,qe.Z)(sn,vi);return Qe||!Hn?ei(_t):(0,Rt.Z)((0,Rt.Z)({key:"__RC_SELECT_GRP__".concat(ct===null?It:ct,"__"),label:ct},_n),{},{options:Li(Un)})}).filter(function(_t){return _t})}function Vi(ht,Qe,_t,It,Fn){return et.useMemo(function(){var Hn=ht,ct=!ht;ct&&(Hn=Li(Qe));var sn=new Map,Un=new Map,_n=function(wi,Ci,yi){yi&&typeof yi=="string"&&wi.set(Ci[yi],Ci)};function Zt(rn){for(var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ci=0;Ci<rn.length;Ci+=1){var yi=rn[Ci];!yi[_t.options]||wi?(sn.set(yi[_t.value],yi),_n(Un,yi,_t.label),_n(Un,yi,It),_n(Un,yi,Fn)):Zt(yi[_t.options],!0)}}return Zt(Hn),{options:Hn,valueOptions:sn,labelOptions:Un}},[ht,Qe,_t,It,Fn])}function zi(ht){var Qe=et.useRef();Qe.current=ht;var _t=et.useCallback(function(){return Qe.current.apply(Qe,arguments)},[]);return _t}var Bn=function(){return null};Bn.isSelectOptGroup=!0;var rr=Bn,Yr=function(){return null};Yr.isSelectOption=!0;var zr=Yr,Zr=ve(80547),Nr=ve(2738),Co=ve(57149),$r=et.createContext(null),sr=$r;function Fo(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ti=["disabled","title","children","style","className"];function Ae(ht){return typeof ht=="string"||typeof ht=="number"}var $n=function(Qe,_t){var It=Ce(),Fn=It.prefixCls,Hn=It.id,ct=It.open,sn=It.multiple,Un=It.mode,_n=It.searchValue,Zt=It.toggleOpen,rn=It.notFoundContent,wi=It.onPopupScroll,Ci=et.useContext(sr),yi=Ci.flattenOptions,ci=Ci.onActiveValue,Pi=Ci.defaultActiveFirstOption,Mi=Ci.onSelect,ji=Ci.menuItemSelectedIcon,lr=Ci.rawValues,nr=Ci.fieldNames,Nn=Ci.virtual,Pr=Ci.direction,Tr=Ci.listHeight,br=Ci.listItemHeight,Cn="".concat(Fn,"-item"),di=(0,Zr.Z)(function(){return yi},[ct,yi],function(yr,gr){return gr[0]&&yr[1]!==gr[1]}),Ki=et.useRef(null),ir=function(gr){gr.preventDefault()},Yi=function(gr){Ki.current&&Ki.current.scrollTo(typeof gr=="number"?{index:gr}:gr)},cr=function(gr){for(var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Gr=di.length,Oi=0;Oi<Gr;Oi+=1){var _e=(gr+Oi*hr+Gr)%Gr,yt=di[_e],Bt=yt.group,ln=yt.data;if(!Bt&&!ln.disabled)return _e}return-1},Mr=et.useState(function(){return cr(0)}),Di=(0,$e.Z)(Mr,2),Ui=Di[0],Wi=Di[1],Dn=function(gr){var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Wi(gr);var Gr={source:hr?"keyboard":"mouse"},Oi=di[gr];if(!Oi){ci(null,-1,Gr);return}ci(Oi.value,gr,Gr)};(0,et.useEffect)(function(){Dn(Pi!==!1?cr(0):-1)},[di.length,_n]);var Fr=et.useCallback(function(yr){return lr.has(yr)&&Un!=="combobox"},[Un,(0,Oe.Z)(lr).toString(),lr.size]);(0,et.useEffect)(function(){var yr=setTimeout(function(){if(!sn&&ct&&lr.size===1){var hr=Array.from(lr)[0],Gr=di.findIndex(function(Oi){var _e=Oi.data;return _e.value===hr});Gr!==-1&&(Dn(Gr),Yi(Gr))}});if(ct){var gr;(gr=Ki.current)===null||gr===void 0||gr.scrollTo(void 0)}return function(){return clearTimeout(yr)}},[ct,_n,yi.length]);var Ln=function(gr){gr!==void 0&&Mi(gr,{selected:!lr.has(gr)}),sn||Zt(!1)};if(et.useImperativeHandle(_t,function(){return{onKeyDown:function(gr){var hr=gr.which,Gr=gr.ctrlKey;switch(hr){case te.Z.N:case te.Z.P:case te.Z.UP:case te.Z.DOWN:{var Oi=0;if(hr===te.Z.UP?Oi=-1:hr===te.Z.DOWN?Oi=1:Fo()&&Gr&&(hr===te.Z.N?Oi=1:hr===te.Z.P&&(Oi=-1)),Oi!==0){var _e=cr(Ui+Oi,Oi);Yi(_e),Dn(_e,!0)}break}case te.Z.ENTER:{var yt=di[Ui];yt&&!yt.data.disabled?Ln(yt.value):Ln(void 0),ct&&gr.preventDefault();break}case te.Z.ESC:Zt(!1),ct&&gr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(gr){Yi(gr)}}}),di.length===0)return et.createElement("div",{role:"listbox",id:"".concat(Hn,"_list"),className:"".concat(Cn,"-empty"),onMouseDown:ir},rn);var fr=Object.keys(nr).map(function(yr){return nr[yr]}),Ur=function(gr){return gr.label};function Cr(yr,gr){var hr=yr.group;return{role:hr?"presentation":"option",id:"".concat(Hn,"_list_").concat(gr)}}var Do=function(gr){var hr=di[gr];if(!hr)return null;var Gr=hr.data||{},Oi=Gr.value,_e=hr.group,yt=(0,Ge.Z)(Gr,!0),Bt=Ur(hr);return hr?et.createElement("div",(0,ye.Z)({"aria-label":typeof Bt=="string"&&!_e?Bt:null},yt,{key:gr},Cr(hr,gr),{"aria-selected":Fr(Oi)}),Oi):null},so={role:"listbox",id:"".concat(Hn,"_list")};return et.createElement(et.Fragment,null,Nn&&et.createElement("div",(0,ye.Z)({},so,{style:{height:0,width:0,overflow:"hidden"}}),Do(Ui-1),Do(Ui),Do(Ui+1)),et.createElement(Co.Z,{itemKey:"key",ref:Ki,data:di,height:Tr,itemHeight:br,fullHeight:!1,onMouseDown:ir,onScroll:wi,virtual:Nn,direction:Pr,innerProps:Nn?null:so},function(yr,gr){var hr,Gr=yr.group,Oi=yr.groupOption,_e=yr.data,yt=yr.label,Bt=yr.value,ln=_e.key;if(Gr){var jn,ri=(jn=_e.title)!==null&&jn!==void 0?jn:Ae(yt)?yt.toString():void 0;return et.createElement("div",{className:it()(Cn,"".concat(Cn,"-group")),title:ri},yt!==void 0?yt:ln)}var tn=_e.disabled,bn=_e.title,Xn=_e.children,Kn=_e.style,Ei=_e.className,vr=(0,qe.Z)(_e,ti),Ai=(0,Nr.Z)(vr,fr),Bi=Fr(Bt),zn="".concat(Cn,"-option"),pr=it()(Cn,zn,Ei,(hr={},(0,He.Z)(hr,"".concat(zn,"-grouped"),Oi),(0,He.Z)(hr,"".concat(zn,"-active"),Ui===gr&&!tn),(0,He.Z)(hr,"".concat(zn,"-disabled"),tn),(0,He.Z)(hr,"".concat(zn,"-selected"),Bi),hr)),kr=Ur(yr),po=!ji||typeof ji=="function"||Bi,to=typeof kr=="number"?kr:kr||Bt,Jr=Ae(to)?to.toString():void 0;return bn!==void 0&&(Jr=bn),et.createElement("div",(0,ye.Z)({},(0,Ge.Z)(Ai),Nn?{}:Cr(yr,gr),{"aria-selected":Bi,className:pr,title:Jr,onMouseMove:function(){Ui===gr||tn||Dn(gr)},onClick:function(){tn||Ln(Bt)},style:Kn}),et.createElement("div",{className:"".concat(zn,"-content")},to),et.isValidElement(ji)||Bi,po&&et.createElement(se,{className:"".concat(Cn,"-option-state"),customizeIcon:ji,customizeIconProps:{isSelected:Bi}},Bi?"\u2713":null))}))},oi=et.forwardRef($n);oi.displayName="OptionList";var fn=oi;function Qn(ht){var Qe=ht.mode,_t=ht.options,It=ht.children,Fn=ht.backfill,Hn=ht.allowClear,ct=ht.placeholder,sn=ht.getInputElement,Un=ht.showSearch,_n=ht.onSearch,Zt=ht.defaultOpen,rn=ht.autoFocus,wi=ht.labelInValue,Ci=ht.value,yi=ht.inputValue,ci=ht.optionLabelProp,Pi=isMultiple(Qe),Mi=Un!==void 0?Un:Pi||Qe==="combobox",ji=_t||convertChildrenToData(It);if(warning(Qe!=="tags"||ji.every(function(Pr){return!Pr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Qe==="tags"||Qe==="combobox"){var lr=ji.some(function(Pr){return Pr.options?Pr.options.some(function(Tr){return typeof("value"in Tr?Tr.value:Tr.key)=="number"}):typeof("value"in Pr?Pr.value:Pr.key)=="number"});warning(!lr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Qe!=="combobox"||!ci,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Qe==="combobox"||!Fn,"`backfill` only works with `combobox` mode."),warning(Qe==="combobox"||!sn,"`getInputElement` only work with `combobox` mode."),noteOnce(Qe!=="combobox"||!sn||!Hn||!ct,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_n&&!Mi&&Qe!=="combobox"&&Qe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Zt||rn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ci!=null){var nr=toArray(Ci);warning(!wi||nr.every(function(Pr){return _typeof(Pr)==="object"&&("key"in Pr||"value"in Pr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Pi||Array.isArray(Ci),"`value` should be array when `mode` is `multiple` or `tags`")}if(It){var Nn=null;toNodeArray(It).some(function(Pr){if(!React.isValidElement(Pr)||!Pr.type)return!1;var Tr=Pr,br=Tr.type;if(br.isSelectOption)return!1;if(br.isSelectOptGroup){var Cn=toNodeArray(Pr.props.children).every(function(di){return!React.isValidElement(di)||!Pr.type||di.type.isSelectOption?!0:(Nn=di.type,!1)});return!Cn}return Nn=br,!0}),Nn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Nn.displayName||Nn.name||Nn,"`.")),warning(yi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Zn(ht,Qe){if(ht){var _t=function It(Fn){for(var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=0;ct<Fn.length;ct++){var sn=Fn[ct];if(sn[Qe==null?void 0:Qe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Hn&&Array.isArray(sn[Qe==null?void 0:Qe.options])&&It(sn[Qe==null?void 0:Qe.options],!0))break}};_t(ht)}}var an=null,Jt=["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"],vn=["inputValue"];function xt(ht){return!ht||(0,De.Z)(ht)!=="object"}var wt=et.forwardRef(function(ht,Qe){var _t=ht.id,It=ht.mode,Fn=ht.prefixCls,Hn=Fn===void 0?"rc-select":Fn,ct=ht.backfill,sn=ht.fieldNames,Un=ht.inputValue,_n=ht.searchValue,Zt=ht.onSearch,rn=ht.autoClearSearchValue,wi=rn===void 0?!0:rn,Ci=ht.onSelect,yi=ht.onDeselect,ci=ht.dropdownMatchSelectWidth,Pi=ci===void 0?!0:ci,Mi=ht.filterOption,ji=ht.filterSort,lr=ht.optionFilterProp,nr=ht.optionLabelProp,Nn=ht.options,Pr=ht.children,Tr=ht.defaultActiveFirstOption,br=ht.menuItemSelectedIcon,Cn=ht.virtual,di=ht.direction,Ki=ht.listHeight,ir=Ki===void 0?200:Ki,Yi=ht.listItemHeight,cr=Yi===void 0?20:Yi,Mr=ht.value,Di=ht.defaultValue,Ui=ht.labelInValue,Wi=ht.onChange,Dn=(0,qe.Z)(ht,Jt),Fr=(0,cn.ZP)(_t),Ln=bt(It),fr=!!(!Nn&&Pr),Ur=et.useMemo(function(){return Mi===void 0&&It==="combobox"?!1:Mi},[Mi,It]),Cr=et.useMemo(function(){return Se(sn,fr)},[JSON.stringify(sn),fr]),Do=(0,Tt.Z)("",{value:_n!==void 0?_n:Un,postState:function(No){return No||""}}),so=(0,$e.Z)(Do,2),yr=so[0],gr=so[1],hr=Vi(Nn,Pr,Cr,lr,nr),Gr=hr.valueOptions,Oi=hr.labelOptions,_e=hr.options,yt=et.useCallback(function(Kr){var No=kt(Kr);return No.map(function(ro){var Hi,fa,ka,Ds,ys;if(xt(ro))Hi=ro;else{var nl;ka=ro.key,fa=ro.label,Hi=(nl=ro.value)!==null&&nl!==void 0?nl:ka}var Gi=Gr.get(Hi);if(Gi){var Da;if(fa===void 0&&(fa=Gi==null?void 0:Gi[nr||Cr.label]),ka===void 0&&(ka=(Da=Gi==null?void 0:Gi.key)!==null&&Da!==void 0?Da:Hi),Ds=Gi==null?void 0:Gi.disabled,ys=Gi==null?void 0:Gi.title,0)var pa}return{label:fa,value:Hi,key:ka,disabled:Ds,title:ys}})},[Cr,nr,Gr]),Bt=(0,Tt.Z)(Di,{value:Mr}),ln=(0,$e.Z)(Bt,2),jn=ln[0],ri=ln[1],tn=et.useMemo(function(){var Kr,No=yt(jn);return It==="combobox"&&jt((Kr=No[0])===null||Kr===void 0?void 0:Kr.value)?[]:No},[jn,yt,It]),bn=En(tn,Gr),Xn=(0,$e.Z)(bn,2),Kn=Xn[0],Ei=Xn[1],vr=et.useMemo(function(){if(!It&&Kn.length===1){var Kr=Kn[0];if(Kr.value===null&&(Kr.label===null||Kr.label===void 0))return[]}return Kn.map(function(No){var ro;return(0,Rt.Z)((0,Rt.Z)({},No),{},{label:(ro=No.label)!==null&&ro!==void 0?ro:No.value})})},[It,Kn]),Ai=et.useMemo(function(){return new Set(Kn.map(function(Kr){return Kr.value}))},[Kn]);et.useEffect(function(){if(It==="combobox"){var Kr,No=(Kr=Kn[0])===null||Kr===void 0?void 0:Kr.value;gr(zt(No)?String(No):"")}},[Kn]);var Bi=zi(function(Kr,No){var ro,Hi=No!=null?No:Kr;return ro={},(0,He.Z)(ro,Cr.value,Kr),(0,He.Z)(ro,Cr.label,Hi),ro}),zn=et.useMemo(function(){if(It!=="tags")return _e;var Kr=(0,Oe.Z)(_e),No=function(Hi){return Gr.has(Hi)};return(0,Oe.Z)(Kn).sort(function(ro,Hi){return ro.value<Hi.value?-1:1}).forEach(function(ro){var Hi=ro.value;No(Hi)||Kr.push(Bi(Hi,ro.label))}),Kr},[Bi,_e,Gr,Kn,It]),pr=qt(zn,Cr,yr,Ur,lr),kr=et.useMemo(function(){return It!=="tags"||!yr||pr.some(function(Kr){return Kr[lr||"value"]===yr})||pr.some(function(Kr){return Kr[Cr.value]===yr})?pr:[Bi(yr)].concat((0,Oe.Z)(pr))},[Bi,lr,It,pr,yr,Cr]),po=et.useMemo(function(){return ji?(0,Oe.Z)(kr).sort(function(Kr,No){return ji(Kr,No)}):kr},[kr,ji]),to=et.useMemo(function(){return st(po,{fieldNames:Cr,childrenAsData:fr})},[po,Cr,fr]),Jr=function(No){var ro=yt(No);if(ri(ro),Wi&&(ro.length!==Kn.length||ro.some(function(ka,Ds){var ys;return((ys=Kn[Ds])===null||ys===void 0?void 0:ys.value)!==(ka==null?void 0:ka.value)}))){var Hi=Ui?ro:ro.map(function(ka){return ka.value}),fa=ro.map(function(ka){return At(Ei(ka.value))});Wi(Ln?Hi:Hi[0],Ln?fa:fa[0])}},eo=et.useState(null),Zo=(0,$e.Z)(eo,2),$o=Zo[0],ia=Zo[1],qo=et.useState(0),Sn=(0,$e.Z)(qo,2),oa=Sn[0],vs=Sn[1],Ga=Tr!==void 0?Tr:It!=="combobox",Zs=et.useCallback(function(Kr,No){var ro=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Hi=ro.source,fa=Hi===void 0?"keyboard":Hi;vs(No),ct&&It==="combobox"&&Kr!==null&&fa==="keyboard"&&ia(String(Kr))},[ct,It]),xa=function(No,ro,Hi){var fa=function(){var Gl,So=Ei(No);return[Ui?{label:So==null?void 0:So[Cr.label],value:No,key:(Gl=So==null?void 0:So.key)!==null&&Gl!==void 0?Gl:No}:No,At(So)]};if(ro&&Ci){var ka=fa(),Ds=(0,$e.Z)(ka,2),ys=Ds[0],nl=Ds[1];Ci(ys,nl)}else if(!ro&&yi&&Hi!=="clear"){var Gi=fa(),Da=(0,$e.Z)(Gi,2),pa=Da[0],Os=Da[1];yi(pa,Os)}},pl=zi(function(Kr,No){var ro,Hi=Ln?No.selected:!0;Hi?ro=Ln?[].concat((0,Oe.Z)(Kn),[Kr]):[Kr]:ro=Kn.filter(function(fa){return fa.value!==Kr}),Jr(ro),xa(Kr,Hi),It==="combobox"?ia(""):(!bt||wi)&&(gr(""),ia(""))}),wa=function(No,ro){Jr(No);var Hi=ro.type,fa=ro.values;(Hi==="remove"||Hi==="clear")&&fa.forEach(function(ka){xa(ka.value,!1,Hi)})},Ao=function(No,ro){if(gr(No),ia(null),ro.source==="submit"){var Hi=(No||"").trim();if(Hi){var fa=Array.from(new Set([].concat((0,Oe.Z)(Ai),[Hi])));Jr(fa),xa(Hi,!0),gr("")}return}ro.source!=="blur"&&(It==="combobox"&&Jr(No),Zt==null||Zt(No))},Ko=function(No){var ro=No;It!=="tags"&&(ro=No.map(function(fa){var ka=Oi.get(fa);return ka==null?void 0:ka.value}).filter(function(fa){return fa!==void 0}));var Hi=Array.from(new Set([].concat((0,Oe.Z)(Ai),(0,Oe.Z)(ro))));Jr(Hi),Hi.forEach(function(fa){xa(fa,!0)})},Ka=et.useMemo(function(){var Kr=Cn!==!1&&Pi!==!1;return(0,Rt.Z)((0,Rt.Z)({},hr),{},{flattenOptions:to,onActiveValue:Zs,defaultActiveFirstOption:Ga,onSelect:pl,menuItemSelectedIcon:br,rawValues:Ai,fieldNames:Cr,virtual:Kr,direction:di,listHeight:ir,listItemHeight:cr,childrenAsData:fr})},[hr,to,Zs,Ga,pl,br,Ai,Cr,Cn,Pi,ir,cr,fr]);return et.createElement(sr.Provider,{value:Ka},et.createElement(Ht,(0,ye.Z)({},Dn,{id:Fr,prefixCls:Hn,ref:Qe,omitDomProps:vn,mode:It,displayValues:vr,onDisplayValuesChange:wa,direction:di,searchValue:yr,onSearch:Ao,autoClearSearchValue:wi,onSearchSplit:Ko,dropdownMatchSelectWidth:Pi,OptionList:fn,emptyOptions:!to.length,activeValue:$o,activeDescendantId:"".concat(Fr,"_list_").concat(oa)})))}),ze=wt;ze.Option=zr,ze.OptGroup=rr;var Yt=ze,on=Yt},9296:function(Rn,Mn,ve){"use strict";ve.r(Mn),ve.d(Mn,{ResizableTextArea:function(){return pt},default:function(){return jt}});var ye=ve(92413),Oe=ve(33708),He=ve(400),Rt=ve(39559),$e=ve(33606),qe=ve(37061),De=ve(26407),Tt=ve(92310),Et=ve.n(Tt),et=ve(93681),Ot=ve(5643),it=ve(18929),Pt=ve(59301),Me=ve(29301),te=ve(34280),ne=ve(16089),ce=`
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;
`,se=["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"],ge={},me;function Ce(Mt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=Mt.getAttribute("id")||Mt.getAttribute("data-reactid")||Mt.getAttribute("name");if(Ut&&ge[ft])return ge[ft];var Re=window.getComputedStyle(Mt),Lt=Re.getPropertyValue("box-sizing")||Re.getPropertyValue("-moz-box-sizing")||Re.getPropertyValue("-webkit-box-sizing"),yn=parseFloat(Re.getPropertyValue("padding-bottom"))+parseFloat(Re.getPropertyValue("padding-top")),mn=parseFloat(Re.getPropertyValue("border-bottom-width"))+parseFloat(Re.getPropertyValue("border-top-width")),Nt=se.map(function(nn){return"".concat(nn,":").concat(Re.getPropertyValue(nn))}).join(";"),en={sizingStyle:Nt,paddingSize:yn,borderSize:mn,boxSizing:Lt};return Ut&&ft&&(ge[ft]=en),en}function Fe(Mt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;me||(me=document.createElement("textarea"),me.setAttribute("tab-index","-1"),me.setAttribute("aria-hidden","true"),document.body.appendChild(me)),Mt.getAttribute("wrap")?me.setAttribute("wrap",Mt.getAttribute("wrap")):me.removeAttribute("wrap");var Lt=Ce(Mt,Ut),yn=Lt.paddingSize,mn=Lt.borderSize,Nt=Lt.boxSizing,en=Lt.sizingStyle;me.setAttribute("style","".concat(en,";").concat(ce)),me.value=Mt.value||Mt.placeholder||"";var nn=void 0,On=void 0,dn,Tn=me.scrollHeight;if(Nt==="border-box"?Tn+=mn:Nt==="content-box"&&(Tn-=yn),ft!==null||Re!==null){me.value=" ";var mt=me.scrollHeight-yn;ft!==null&&(nn=mt*ft,Nt==="border-box"&&(nn=nn+yn+mn),Tn=Math.max(nn,Tn)),Re!==null&&(On=mt*Re,Nt==="border-box"&&(On=On+yn+mn),dn=Tn>On?"":"hidden",Tn=Math.min(On,Tn))}var Gn={height:Tn,overflowY:dn,resize:"none"};return nn&&(Gn.minHeight=nn),On&&(Gn.maxHeight=On),Gn}var Pe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,Ge=1,Ke=2,Ye=Pt.forwardRef(function(Mt,Ut){var ft=Mt,Re=ft.prefixCls,Lt=ft.onPressEnter,yn=ft.defaultValue,mn=ft.value,Nt=ft.autoSize,en=ft.onResize,nn=ft.className,On=ft.style,dn=ft.disabled,Tn=ft.onChange,mt=ft.onInternalAutoSize,Gn=(0,qe.Z)(ft,Pe),xn=(0,it.Z)(yn,{value:mn,postState:function(rr){return rr!=null?rr:""}}),tt=(0,$e.Z)(xn,2),Ee=tt[0],we=tt[1],Be=function(rr){we(rr.target.value),Tn==null||Tn(rr)},ke=Pt.useRef();Pt.useImperativeHandle(Ut,function(){return{textArea:ke.current}});var Se=Pt.useMemo(function(){return Nt&&(0,Rt.Z)(Nt)==="object"?[Nt.minRows,Nt.maxRows]:[]},[Nt]),st=(0,$e.Z)(Se,2),At=st[0],Ve=st[1],We=!!Nt,Ct=function(){try{if(document.activeElement===ke.current){var rr=ke.current,Yr=rr.selectionStart,zr=rr.selectionEnd,Zr=rr.scrollTop;ke.current.setSelectionRange(Yr,zr),ke.current.scrollTop=Zr}}catch(Nr){}},bt=Pt.useState(Ke),dt=(0,$e.Z)(bt,2),Ht=dt[0],En=dt[1],An=Pt.useState(),qt=(0,$e.Z)(An,2),cn=qt[0],qn=qt[1],wn=function(){En(Ie)};(0,te.Z)(function(){We&&wn()},[mn,At,Ve,We]),(0,te.Z)(function(){if(Ht===Ie)En(Ge);else if(Ht===Ge){var Bn=Fe(ke.current,!1,At,Ve);En(Ke),qn(Bn)}else Ct()},[Ht]);var vi=Pt.useRef(),ei=function(){ne.Z.cancel(vi.current)},Li=function(rr){Ht===Ke&&(en==null||en(rr),Nt&&(ei(),vi.current=(0,ne.Z)(function(){wn()})))};Pt.useEffect(function(){return ei},[]);var Vi=We?cn:null,zi=(0,Oe.Z)((0,Oe.Z)({},On),Vi);return(Ht===Ie||Ht===Ge)&&(zi.overflowY="hidden",zi.overflowX="hidden"),Pt.createElement(Me.Z,{onResize:Li,disabled:!(Nt||en)},Pt.createElement("textarea",(0,ye.Z)({},Gn,{ref:ke,style:zi,className:Et()(Re,nn,(0,He.Z)({},"".concat(Re,"-disabled"),dn)),disabled:dn,value:Ee,onChange:Be})))}),pt=Ye,Je=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function kt(Mt,Ut){return(0,De.Z)(Mt||"").slice(0,Ut).join("")}function Xe(Mt,Ut,ft,Re){var Lt=ft;return Mt?Lt=kt(ft,Re):(0,De.Z)(Ut||"").length<ft.length&&(0,De.Z)(ft||"").length>Re&&(Lt=Ut),Lt}var Wt=Pt.forwardRef(function(Mt,Ut){var ft,Re=Mt.defaultValue,Lt=Mt.value,yn=Mt.onFocus,mn=Mt.onBlur,Nt=Mt.onChange,en=Mt.allowClear,nn=Mt.maxLength,On=Mt.onCompositionStart,dn=Mt.onCompositionEnd,Tn=Mt.suffix,mt=Mt.prefixCls,Gn=mt===void 0?"rc-textarea":mt,xn=Mt.classes,tt=Mt.showCount,Ee=Mt.className,we=Mt.style,Be=Mt.disabled,ke=Mt.hidden,Se=Mt.classNames,st=Mt.styles,At=Mt.onResize,Ve=(0,qe.Z)(Mt,Je),We=(0,it.Z)(Re,{value:Lt,defaultValue:Re}),Ct=(0,$e.Z)(We,2),bt=Ct[0],dt=Ct[1],Ht=(0,Pt.useRef)(null),En=Pt.useState(!1),An=(0,$e.Z)(En,2),qt=An[0],cn=An[1],qn=Pt.useState(!1),wn=(0,$e.Z)(qn,2),vi=wn[0],ei=wn[1],Li=Pt.useRef(),Vi=Pt.useRef(0),zi=Pt.useState(null),Bn=(0,$e.Z)(zi,2),rr=Bn[0],Yr=Bn[1],zr=function(){var xt;(xt=Ht.current)===null||xt===void 0||xt.textArea.focus()};(0,Pt.useImperativeHandle)(Ut,function(){return{resizableTextArea:Ht.current,focus:zr,blur:function(){var xt;(xt=Ht.current)===null||xt===void 0||xt.textArea.blur()}}}),(0,Pt.useEffect)(function(){cn(function(vn){return!Be&&vn})},[Be]);var Zr=Number(nn)>0,Nr=function(xt){ei(!0),Li.current=bt,Vi.current=xt.currentTarget.selectionStart,On==null||On(xt)},Co=function(xt){ei(!1);var wt=xt.currentTarget.value;if(Zr){var ze,Yt=Vi.current>=nn+1||Vi.current===((ze=Li.current)===null||ze===void 0?void 0:ze.length);wt=Xe(Yt,Li.current,wt,nn)}wt!==bt&&(dt(wt),(0,Ot.rJ)(xt.currentTarget,xt,Nt,wt)),dn==null||dn(xt)},$r=function(xt){var wt=xt.target.value;if(!vi&&Zr){var ze=xt.target.selectionStart>=nn+1||xt.target.selectionStart===wt.length||!xt.target.selectionStart;wt=Xe(ze,bt,wt,nn)}dt(wt),(0,Ot.rJ)(xt.currentTarget,xt,Nt,wt)},sr=function(xt){var wt=Ve.onPressEnter,ze=Ve.onKeyDown;xt.key==="Enter"&&wt&&wt(xt),ze==null||ze(xt)},Fo=function(xt){cn(!0),yn==null||yn(xt)},ti=function(xt){cn(!1),mn==null||mn(xt)},Ae=function(xt){var wt;dt(""),zr(),(0,Ot.rJ)((wt=Ht.current)===null||wt===void 0?void 0:wt.textArea,xt,Nt)},$n=(0,Ot.D7)(bt);!vi&&Zr&&Lt==null&&($n=kt($n,nn));var oi=Tn,fn;if(tt){var Qn=(0,De.Z)($n).length;(0,Rt.Z)(tt)==="object"?fn=tt.formatter({value:$n,count:Qn,maxLength:nn}):fn="".concat(Qn).concat(Zr?" / ".concat(nn):""),oi=Pt.createElement(Pt.Fragment,null,oi,Pt.createElement("span",{className:Et()("".concat(Gn,"-data-count"),Se==null?void 0:Se.count),style:st==null?void 0:st.count},fn))}var Zn=function(xt){var wt;At==null||At(xt),(wt=Ht.current)!==null&&wt!==void 0&&wt.textArea.style.height&&Yr(!0)},an=!Ve.autoSize&&!tt&&!en,Jt=Pt.createElement(et.BaseInput,{value:$n,allowClear:en,handleReset:Ae,suffix:oi,prefixCls:Gn,classes:{affixWrapper:Et()(xn==null?void 0:xn.affixWrapper,(ft={},(0,He.Z)(ft,"".concat(Gn,"-show-count"),tt),(0,He.Z)(ft,"".concat(Gn,"-textarea-allow-clear"),en),ft))},disabled:Be,focused:qt,className:Ee,style:(0,Oe.Z)((0,Oe.Z)({},we),rr&&!an?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof fn=="string"?fn:void 0}},hidden:ke,inputElement:Pt.createElement(pt,(0,ye.Z)({},Ve,{onKeyDown:sr,onChange:$r,onFocus:Fo,onBlur:ti,onCompositionStart:Nr,onCompositionEnd:Co,className:Se==null?void 0:Se.textarea,style:(0,Oe.Z)((0,Oe.Z)({},st==null?void 0:st.textarea),{},{resize:we==null?void 0:we.resize}),disabled:Be,prefixCls:Gn,onResize:Zn,ref:Ht}))});return Jt}),zt=Wt,jt=zt},39417:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Ge}});var ye=ve(92413),Oe=ve(400),He=ve(37061),Rt=ve(33708),$e=ve(6909),qe=ve(4771),De=ve(25314),Tt=ve(9427),Et=ve(25440),et=ve(92310),Ot=ve.n(et),it=ve(26112),Pt=ve(59301),Me=ve(39378),te=function(Ye){for(var pt=Ye.prefixCls,Je=Ye.level,kt=Ye.isStart,Xe=Ye.isEnd,Wt="".concat(pt,"-indent-unit"),zt=[],jt=0;jt<Je;jt+=1){var Mt;zt.push(Pt.createElement("span",{key:jt,className:Ot()(Wt,(Mt={},(0,Oe.Z)(Mt,"".concat(Wt,"-start"),kt[jt]),(0,Oe.Z)(Mt,"".concat(Wt,"-end"),Xe[jt]),Mt))}))}return Pt.createElement("span",{"aria-hidden":"true",className:"".concat(pt,"-indent")},zt)},ne=Pt.memo(te),ce=ve(67841),se=ve(71430),ge=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],me="open",Ce="close",Fe="---",Pe=function(Ke){(0,Tt.Z)(pt,Ke);var Ye=(0,Et.Z)(pt);function pt(){var Je;(0,$e.Z)(this,pt);for(var kt=arguments.length,Xe=new Array(kt),Wt=0;Wt<kt;Wt++)Xe[Wt]=arguments[Wt];return Je=Ye.call.apply(Ye,[this].concat(Xe)),Je.state={dragNodeHighlight:!1},Je.selectHandle=void 0,Je.cacheIndent=void 0,Je.onSelectorClick=function(zt){var jt=Je.props.context.onNodeClick;jt(zt,(0,se.F)(Je.props)),Je.isSelectable()?Je.onSelect(zt):Je.onCheck(zt)},Je.onSelectorDoubleClick=function(zt){var jt=Je.props.context.onNodeDoubleClick;jt(zt,(0,se.F)(Je.props))},Je.onSelect=function(zt){if(!Je.isDisabled()){var jt=Je.props.context.onNodeSelect;jt(zt,(0,se.F)(Je.props))}},Je.onCheck=function(zt){if(!Je.isDisabled()){var jt=Je.props,Mt=jt.disableCheckbox,Ut=jt.checked,ft=Je.props.context.onNodeCheck;if(!(!Je.isCheckable()||Mt)){var Re=!Ut;ft(zt,(0,se.F)(Je.props),Re)}}},Je.onMouseEnter=function(zt){var jt=Je.props.context.onNodeMouseEnter;jt(zt,(0,se.F)(Je.props))},Je.onMouseLeave=function(zt){var jt=Je.props.context.onNodeMouseLeave;jt(zt,(0,se.F)(Je.props))},Je.onContextMenu=function(zt){var jt=Je.props.context.onNodeContextMenu;jt(zt,(0,se.F)(Je.props))},Je.onDragStart=function(zt){var jt=Je.props.context.onNodeDragStart;zt.stopPropagation(),Je.setState({dragNodeHighlight:!0}),jt(zt,(0,De.Z)(Je));try{zt.dataTransfer.setData("text/plain","")}catch(Mt){}},Je.onDragEnter=function(zt){var jt=Je.props.context.onNodeDragEnter;zt.preventDefault(),zt.stopPropagation(),jt(zt,(0,De.Z)(Je))},Je.onDragOver=function(zt){var jt=Je.props.context.onNodeDragOver;zt.preventDefault(),zt.stopPropagation(),jt(zt,(0,De.Z)(Je))},Je.onDragLeave=function(zt){var jt=Je.props.context.onNodeDragLeave;zt.stopPropagation(),jt(zt,(0,De.Z)(Je))},Je.onDragEnd=function(zt){var jt=Je.props.context.onNodeDragEnd;zt.stopPropagation(),Je.setState({dragNodeHighlight:!1}),jt(zt,(0,De.Z)(Je))},Je.onDrop=function(zt){var jt=Je.props.context.onNodeDrop;zt.preventDefault(),zt.stopPropagation(),Je.setState({dragNodeHighlight:!1}),jt(zt,(0,De.Z)(Je))},Je.onExpand=function(zt){var jt=Je.props,Mt=jt.loading,Ut=jt.context.onNodeExpand;Mt||Ut(zt,(0,se.F)(Je.props))},Je.setSelectHandle=function(zt){Je.selectHandle=zt},Je.getNodeState=function(){var zt=Je.props.expanded;return Je.isLeaf()?null:zt?me:Ce},Je.hasChildren=function(){var zt=Je.props.eventKey,jt=Je.props.context.keyEntities,Mt=(0,ce.Z)(jt,zt)||{},Ut=Mt.children;return!!(Ut||[]).length},Je.isLeaf=function(){var zt=Je.props,jt=zt.isLeaf,Mt=zt.loaded,Ut=Je.props.context.loadData,ft=Je.hasChildren();return jt===!1?!1:jt||!Ut&&!ft||Ut&&Mt&&!ft},Je.isDisabled=function(){var zt=Je.props.disabled,jt=Je.props.context.disabled;return!!(jt||zt)},Je.isCheckable=function(){var zt=Je.props.checkable,jt=Je.props.context.checkable;return!jt||zt===!1?!1:jt},Je.syncLoadData=function(zt){var jt=zt.expanded,Mt=zt.loading,Ut=zt.loaded,ft=Je.props.context,Re=ft.loadData,Lt=ft.onNodeLoad;Mt||Re&&jt&&!Je.isLeaf()&&!Je.hasChildren()&&!Ut&&Lt((0,se.F)(Je.props))},Je.isDraggable=function(){var zt=Je.props,jt=zt.data,Mt=zt.context.draggable;return!!(Mt&&(!Mt.nodeDraggable||Mt.nodeDraggable(jt)))},Je.renderDragHandler=function(){var zt=Je.props.context,jt=zt.draggable,Mt=zt.prefixCls;return jt!=null&&jt.icon?Pt.createElement("span",{className:"".concat(Mt,"-draggable-icon")},jt.icon):null},Je.renderSwitcherIconDom=function(zt){var jt=Je.props.switcherIcon,Mt=Je.props.context.switcherIcon,Ut=jt||Mt;return typeof Ut=="function"?Ut((0,Rt.Z)((0,Rt.Z)({},Je.props),{},{isLeaf:zt})):Ut},Je.renderSwitcher=function(){var zt=Je.props.expanded,jt=Je.props.context.prefixCls;if(Je.isLeaf()){var Mt=Je.renderSwitcherIconDom(!0);return Mt!==!1?Pt.createElement("span",{className:Ot()("".concat(jt,"-switcher"),"".concat(jt,"-switcher-noop"))},Mt):null}var Ut=Ot()("".concat(jt,"-switcher"),"".concat(jt,"-switcher_").concat(zt?me:Ce)),ft=Je.renderSwitcherIconDom(!1);return ft!==!1?Pt.createElement("span",{onClick:Je.onExpand,className:Ut},ft):null},Je.renderCheckbox=function(){var zt=Je.props,jt=zt.checked,Mt=zt.halfChecked,Ut=zt.disableCheckbox,ft=Je.props.context.prefixCls,Re=Je.isDisabled(),Lt=Je.isCheckable();if(!Lt)return null;var yn=typeof Lt!="boolean"?Lt:null;return Pt.createElement("span",{className:Ot()("".concat(ft,"-checkbox"),jt&&"".concat(ft,"-checkbox-checked"),!jt&&Mt&&"".concat(ft,"-checkbox-indeterminate"),(Re||Ut)&&"".concat(ft,"-checkbox-disabled")),onClick:Je.onCheck},yn)},Je.renderIcon=function(){var zt=Je.props.loading,jt=Je.props.context.prefixCls;return Pt.createElement("span",{className:Ot()("".concat(jt,"-iconEle"),"".concat(jt,"-icon__").concat(Je.getNodeState()||"docu"),zt&&"".concat(jt,"-icon_loading"))})},Je.renderSelector=function(){var zt=Je.state.dragNodeHighlight,jt=Je.props,Mt=jt.title,Ut=Mt===void 0?Fe:Mt,ft=jt.selected,Re=jt.icon,Lt=jt.loading,yn=jt.data,mn=Je.props.context,Nt=mn.prefixCls,en=mn.showIcon,nn=mn.icon,On=mn.loadData,dn=mn.titleRender,Tn=Je.isDisabled(),mt="".concat(Nt,"-node-content-wrapper"),Gn;if(en){var xn=Re||nn;Gn=xn?Pt.createElement("span",{className:Ot()("".concat(Nt,"-iconEle"),"".concat(Nt,"-icon__customize"))},typeof xn=="function"?xn(Je.props):xn):Je.renderIcon()}else On&&Lt&&(Gn=Je.renderIcon());var tt;typeof Ut=="function"?tt=Ut(yn):dn?tt=dn(yn):tt=Ut;var Ee=Pt.createElement("span",{className:"".concat(Nt,"-title")},tt);return Pt.createElement("span",{ref:Je.setSelectHandle,title:typeof Ut=="string"?Ut:"",className:Ot()("".concat(mt),"".concat(mt,"-").concat(Je.getNodeState()||"normal"),!Tn&&(ft||zt)&&"".concat(Nt,"-node-selected")),onMouseEnter:Je.onMouseEnter,onMouseLeave:Je.onMouseLeave,onContextMenu:Je.onContextMenu,onClick:Je.onSelectorClick,onDoubleClick:Je.onSelectorDoubleClick},Gn,Ee,Je.renderDropIndicator())},Je.renderDropIndicator=function(){var zt=Je.props,jt=zt.disabled,Mt=zt.eventKey,Ut=Je.props.context,ft=Ut.draggable,Re=Ut.dropLevelOffset,Lt=Ut.dropPosition,yn=Ut.prefixCls,mn=Ut.indent,Nt=Ut.dropIndicatorRender,en=Ut.dragOverNodeKey,nn=Ut.direction,On=!!ft,dn=!jt&&On&&en===Mt,Tn=mn!=null?mn:Je.cacheIndent;return Je.cacheIndent=mn,dn?Nt({dropPosition:Lt,dropLevelOffset:Re,indent:Tn,prefixCls:yn,direction:nn}):null},Je}return(0,qe.Z)(pt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var kt=this.props.selectable,Xe=this.props.context.selectable;return typeof kt=="boolean"?kt:Xe}},{key:"render",value:function(){var kt,Xe=this.props,Wt=Xe.eventKey,zt=Xe.className,jt=Xe.style,Mt=Xe.dragOver,Ut=Xe.dragOverGapTop,ft=Xe.dragOverGapBottom,Re=Xe.isLeaf,Lt=Xe.isStart,yn=Xe.isEnd,mn=Xe.expanded,Nt=Xe.selected,en=Xe.checked,nn=Xe.halfChecked,On=Xe.loading,dn=Xe.domRef,Tn=Xe.active,mt=Xe.data,Gn=Xe.onMouseMove,xn=Xe.selectable,tt=(0,He.Z)(Xe,ge),Ee=this.props.context,we=Ee.prefixCls,Be=Ee.filterTreeNode,ke=Ee.keyEntities,Se=Ee.dropContainerKey,st=Ee.dropTargetKey,At=Ee.draggingNodeKey,Ve=this.isDisabled(),We=(0,it.Z)(tt,{aria:!0,data:!0}),Ct=(0,ce.Z)(ke,Wt)||{},bt=Ct.level,dt=yn[yn.length-1],Ht=this.isDraggable(),En=!Ve&&Ht,An=At===Wt,qt=xn!==void 0?{"aria-selected":!!xn}:void 0;return Pt.createElement("div",(0,ye.Z)({ref:dn,className:Ot()(zt,"".concat(we,"-treenode"),(kt={},(0,Oe.Z)(kt,"".concat(we,"-treenode-disabled"),Ve),(0,Oe.Z)(kt,"".concat(we,"-treenode-switcher-").concat(mn?"open":"close"),!Re),(0,Oe.Z)(kt,"".concat(we,"-treenode-checkbox-checked"),en),(0,Oe.Z)(kt,"".concat(we,"-treenode-checkbox-indeterminate"),nn),(0,Oe.Z)(kt,"".concat(we,"-treenode-selected"),Nt),(0,Oe.Z)(kt,"".concat(we,"-treenode-loading"),On),(0,Oe.Z)(kt,"".concat(we,"-treenode-active"),Tn),(0,Oe.Z)(kt,"".concat(we,"-treenode-leaf-last"),dt),(0,Oe.Z)(kt,"".concat(we,"-treenode-draggable"),Ht),(0,Oe.Z)(kt,"dragging",An),(0,Oe.Z)(kt,"drop-target",st===Wt),(0,Oe.Z)(kt,"drop-container",Se===Wt),(0,Oe.Z)(kt,"drag-over",!Ve&&Mt),(0,Oe.Z)(kt,"drag-over-gap-top",!Ve&&Ut),(0,Oe.Z)(kt,"drag-over-gap-bottom",!Ve&&ft),(0,Oe.Z)(kt,"filter-node",Be&&Be((0,se.F)(this.props))),kt)),style:jt,draggable:En,"aria-grabbed":An,onDragStart:En?this.onDragStart:void 0,onDragEnter:Ht?this.onDragEnter:void 0,onDragOver:Ht?this.onDragOver:void 0,onDragLeave:Ht?this.onDragLeave:void 0,onDrop:Ht?this.onDrop:void 0,onDragEnd:Ht?this.onDragEnd:void 0,onMouseMove:Gn},qt,We),Pt.createElement(ne,{prefixCls:we,level:bt,isStart:Lt,isEnd:yn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),pt}(Pt.Component),Ie=function(Ye){return Pt.createElement(Me.k.Consumer,null,function(pt){return Pt.createElement(Pe,(0,ye.Z)({},Ye,{context:pt}))})};Ie.displayName="TreeNode",Ie.isTreeNode=1;var Ge=Ie},39378:function(Rn,Mn,ve){"use strict";ve.d(Mn,{k:function(){return Oe}});var ye=ve(59301),Oe=ye.createContext(null)},23130:function(Rn,Mn,ve){"use strict";ve.d(Mn,{O:function(){return Ge.Z},Z:function(){return Ee}});var ye=ve(92413),Oe=ve(400),He=ve(39559),Rt=ve(33708),$e=ve(26407),qe=ve(6909),De=ve(4771),Tt=ve(25314),Et=ve(9427),et=ve(25440),Ot=ve(92310),it=ve.n(Ot),Pt=ve(10228),Me=ve(26112),te=ve(48736),ne=ve(59301),ce=ve(39378);function se(we){var Be=we.dropPosition,ke=we.dropLevelOffset,Se=we.indent,st={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Be){case-1:st.top=0,st.left=-ke*Se;break;case 1:st.bottom=0,st.left=-ke*Se;break;case 0:st.bottom=0,st.left=Se;break}return ne.createElement("div",{style:st})}function ge(we){if(we==null)throw new TypeError("Cannot destructure "+we)}var me=ve(33606),Ce=ve(37061),Fe=ve(34280),Pe=ve(57149),Ie=ve(77900),Ge=ve(39417);function Ke(we,Be){var ke=ne.useState(!1),Se=(0,me.Z)(ke,2),st=Se[0],At=Se[1];ne.useLayoutEffect(function(){if(st)return we(),function(){Be()}},[st]),ne.useLayoutEffect(function(){return At(!0),function(){At(!1)}},[])}var Ye=ve(71430),pt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Je=function(Be,ke){var Se=Be.className,st=Be.style,At=Be.motion,Ve=Be.motionNodes,We=Be.motionType,Ct=Be.onMotionStart,bt=Be.onMotionEnd,dt=Be.active,Ht=Be.treeNodeRequiredProps,En=(0,Ce.Z)(Be,pt),An=ne.useState(!0),qt=(0,me.Z)(An,2),cn=qt[0],qn=qt[1],wn=ne.useContext(ce.k),vi=wn.prefixCls,ei=Ve&&We!=="hide";(0,Fe.Z)(function(){Ve&&ei!==cn&&qn(ei)},[Ve]);var Li=function(){Ve&&Ct()},Vi=ne.useRef(!1),zi=function(){Ve&&!Vi.current&&(Vi.current=!0,bt())};Ke(Li,zi);var Bn=function(Yr){ei===Yr&&zi()};return Ve?ne.createElement(Ie.default,(0,ye.Z)({ref:ke,visible:cn},At,{motionAppear:We==="show",onVisibleChanged:Bn}),function(rr,Yr){var zr=rr.className,Zr=rr.style;return ne.createElement("div",{ref:Yr,className:it()("".concat(vi,"-treenode-motion"),zr),style:Zr},Ve.map(function(Nr){var Co=(0,ye.Z)({},(ge(Nr.data),Nr.data)),$r=Nr.title,sr=Nr.key,Fo=Nr.isStart,ti=Nr.isEnd;delete Co.children;var Ae=(0,Ye.H8)(sr,Ht);return ne.createElement(Ge.Z,(0,ye.Z)({},Co,Ae,{title:$r,active:dt,data:Nr.data,key:sr,isStart:Fo,isEnd:ti}))}))}):ne.createElement(Ge.Z,(0,ye.Z)({domRef:ke,className:Se,style:st},En,{active:dt}))};Je.displayName="MotionTreeNode";var kt=ne.forwardRef(Je),Xe=kt;function Wt(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ke=we.length,Se=Be.length;if(Math.abs(ke-Se)!==1)return{add:!1,key:null};function st(At,Ve){var We=new Map;At.forEach(function(bt){We.set(bt,!0)});var Ct=Ve.filter(function(bt){return!We.has(bt)});return Ct.length===1?Ct[0]:null}return ke<Se?{add:!0,key:st(we,Be)}:{add:!1,key:st(Be,we)}}function zt(we,Be,ke){var Se=we.findIndex(function(We){return We.key===ke}),st=we[Se+1],At=Be.findIndex(function(We){return We.key===ke});if(st){var Ve=Be.findIndex(function(We){return We.key===st.key});return Be.slice(At+1,Ve)}return Be.slice(At+1)}var jt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Mt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ut=function(){},ft="RC_TREE_MOTION_".concat(Math.random()),Re={key:ft},Lt={key:ft,level:0,index:0,pos:"0",node:Re,nodes:[Re]},yn={parent:null,children:[],pos:Lt.pos,data:Re,title:null,key:ft,isStart:[],isEnd:[]};function mn(we,Be,ke,Se){return Be===!1||!ke?we:we.slice(0,Math.ceil(ke/Se)+1)}function Nt(we){var Be=we.key,ke=we.pos;return(0,Ye.km)(Be,ke)}function en(we){for(var Be=String(we.data.key),ke=we;ke.parent;)ke=ke.parent,Be="".concat(ke.data.key," > ").concat(Be);return Be}var nn=ne.forwardRef(function(we,Be){var ke=we.prefixCls,Se=we.data,st=we.selectable,At=we.checkable,Ve=we.expandedKeys,We=we.selectedKeys,Ct=we.checkedKeys,bt=we.loadedKeys,dt=we.loadingKeys,Ht=we.halfCheckedKeys,En=we.keyEntities,An=we.disabled,qt=we.dragging,cn=we.dragOverNodeKey,qn=we.dropPosition,wn=we.motion,vi=we.height,ei=we.itemHeight,Li=we.virtual,Vi=we.focusable,zi=we.activeItem,Bn=we.focused,rr=we.tabIndex,Yr=we.onKeyDown,zr=we.onFocus,Zr=we.onBlur,Nr=we.onActiveChange,Co=we.onListChangeStart,$r=we.onListChangeEnd,sr=(0,Ce.Z)(we,jt),Fo=ne.useRef(null),ti=ne.useRef(null);ne.useImperativeHandle(Be,function(){return{scrollTo:function(rn){Fo.current.scrollTo(rn)},getIndentWidth:function(){return ti.current.offsetWidth}}});var Ae=ne.useState(Ve),$n=(0,me.Z)(Ae,2),oi=$n[0],fn=$n[1],Qn=ne.useState(Se),Zn=(0,me.Z)(Qn,2),an=Zn[0],Jt=Zn[1],vn=ne.useState(Se),xt=(0,me.Z)(vn,2),wt=xt[0],ze=xt[1],Yt=ne.useState([]),on=(0,me.Z)(Yt,2),ht=on[0],Qe=on[1],_t=ne.useState(null),It=(0,me.Z)(_t,2),Fn=It[0],Hn=It[1],ct=ne.useRef(Se);ct.current=Se;function sn(){var Zt=ct.current;Jt(Zt),ze(Zt),Qe([]),Hn(null),$r()}(0,Fe.Z)(function(){fn(Ve);var Zt=Wt(oi,Ve);if(Zt.key!==null)if(Zt.add){var rn=an.findIndex(function(Mi){var ji=Mi.key;return ji===Zt.key}),wi=mn(zt(an,Se,Zt.key),Li,vi,ei),Ci=an.slice();Ci.splice(rn+1,0,yn),ze(Ci),Qe(wi),Hn("show")}else{var yi=Se.findIndex(function(Mi){var ji=Mi.key;return ji===Zt.key}),ci=mn(zt(Se,an,Zt.key),Li,vi,ei),Pi=Se.slice();Pi.splice(yi+1,0,yn),ze(Pi),Qe(ci),Hn("hide")}else an!==Se&&(Jt(Se),ze(Se))},[Ve,Se]),ne.useEffect(function(){qt||sn()},[qt]);var Un=wn?wt:Se,_n={expandedKeys:Ve,selectedKeys:We,loadedKeys:bt,loadingKeys:dt,checkedKeys:Ct,halfCheckedKeys:Ht,dragOverNodeKey:cn,dropPosition:qn,keyEntities:En};return ne.createElement(ne.Fragment,null,Bn&&zi&&ne.createElement("span",{style:Mt,"aria-live":"assertive"},en(zi)),ne.createElement("div",null,ne.createElement("input",{style:Mt,disabled:Vi===!1||An,tabIndex:Vi!==!1?rr:null,onKeyDown:Yr,onFocus:zr,onBlur:Zr,value:"",onChange:Ut,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(ke,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(ke,"-indent")},ne.createElement("div",{ref:ti,className:"".concat(ke,"-indent-unit")}))),ne.createElement(Pe.Z,(0,ye.Z)({},sr,{data:Un,itemKey:Nt,height:vi,fullHeight:!1,virtual:Li,itemHeight:ei,prefixCls:"".concat(ke,"-list"),ref:Fo,onVisibleChange:function(rn,wi){var Ci=new Set(rn),yi=wi.filter(function(ci){return!Ci.has(ci)});yi.some(function(ci){return Nt(ci)===ft})&&sn()}}),function(Zt){var rn=Zt.pos,wi=(0,ye.Z)({},(ge(Zt.data),Zt.data)),Ci=Zt.title,yi=Zt.key,ci=Zt.isStart,Pi=Zt.isEnd,Mi=(0,Ye.km)(yi,rn);delete wi.key,delete wi.children;var ji=(0,Ye.H8)(Mi,_n);return ne.createElement(Xe,(0,ye.Z)({},wi,ji,{title:Ci,active:!!zi&&yi===zi.key,pos:rn,data:Zt.data,isStart:ci,isEnd:Pi,motion:wn,motionNodes:yi===ft?ht:null,motionType:Fn,onMotionStart:Co,onMotionEnd:sn,treeNodeRequiredProps:_n,onMouseMove:function(){Nr(null)}}))}))});nn.displayName="NodeList";var On=nn,dn=ve(35654),Tn=ve(90782),mt=ve(67841),Gn=10,xn=function(we){(0,Et.Z)(ke,we);var Be=(0,et.Z)(ke);function ke(){var Se;(0,qe.Z)(this,ke);for(var st=arguments.length,At=new Array(st),Ve=0;Ve<st;Ve++)At[Ve]=arguments[Ve];return Se=Be.call.apply(Be,[this].concat(At)),Se.destroyed=!1,Se.delayedDragEnterLogic=void 0,Se.loadingRetryTimes={},Se.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ye.w$)()},Se.dragStartMousePosition=null,Se.dragNode=void 0,Se.currentMouseOverDroppableNodeKey=null,Se.listRef=ne.createRef(),Se.onNodeDragStart=function(We,Ct){var bt=Se.state,dt=bt.expandedKeys,Ht=bt.keyEntities,En=Se.props.onDragStart,An=Ct.props.eventKey;Se.dragNode=Ct,Se.dragStartMousePosition={x:We.clientX,y:We.clientY};var qt=(0,dn._5)(dt,An);Se.setState({draggingNodeKey:An,dragChildrenKeys:(0,dn.wA)(An,Ht),indent:Se.listRef.current.getIndentWidth()}),Se.setExpandedKeys(qt),window.addEventListener("dragend",Se.onWindowDragEnd),En==null||En({event:We,node:(0,Ye.F)(Ct.props)})},Se.onNodeDragEnter=function(We,Ct){var bt=Se.state,dt=bt.expandedKeys,Ht=bt.keyEntities,En=bt.dragChildrenKeys,An=bt.flattenNodes,qt=bt.indent,cn=Se.props,qn=cn.onDragEnter,wn=cn.onExpand,vi=cn.allowDrop,ei=cn.direction,Li=Ct.props,Vi=Li.pos,zi=Li.eventKey,Bn=(0,Tt.Z)(Se),rr=Bn.dragNode;if(Se.currentMouseOverDroppableNodeKey!==zi&&(Se.currentMouseOverDroppableNodeKey=zi),!rr){Se.resetDragState();return}var Yr=(0,dn.OM)(We,rr,Ct,qt,Se.dragStartMousePosition,vi,An,Ht,dt,ei),zr=Yr.dropPosition,Zr=Yr.dropLevelOffset,Nr=Yr.dropTargetKey,Co=Yr.dropContainerKey,$r=Yr.dropTargetPos,sr=Yr.dropAllowed,Fo=Yr.dragOverNodeKey;if(En.indexOf(Nr)!==-1||!sr){Se.resetDragState();return}if(Se.delayedDragEnterLogic||(Se.delayedDragEnterLogic={}),Object.keys(Se.delayedDragEnterLogic).forEach(function(ti){clearTimeout(Se.delayedDragEnterLogic[ti])}),rr.props.eventKey!==Ct.props.eventKey&&(We.persist(),Se.delayedDragEnterLogic[Vi]=window.setTimeout(function(){if(Se.state.draggingNodeKey!==null){var ti=(0,$e.Z)(dt),Ae=(0,mt.Z)(Ht,Ct.props.eventKey);Ae&&(Ae.children||[]).length&&(ti=(0,dn.L0)(dt,Ct.props.eventKey)),"expandedKeys"in Se.props||Se.setExpandedKeys(ti),wn==null||wn(ti,{node:(0,Ye.F)(Ct.props),expanded:!0,nativeEvent:We.nativeEvent})}},800)),rr.props.eventKey===Nr&&Zr===0){Se.resetDragState();return}Se.setState({dragOverNodeKey:Fo,dropPosition:zr,dropLevelOffset:Zr,dropTargetKey:Nr,dropContainerKey:Co,dropTargetPos:$r,dropAllowed:sr}),qn==null||qn({event:We,node:(0,Ye.F)(Ct.props),expandedKeys:dt})},Se.onNodeDragOver=function(We,Ct){var bt=Se.state,dt=bt.dragChildrenKeys,Ht=bt.flattenNodes,En=bt.keyEntities,An=bt.expandedKeys,qt=bt.indent,cn=Se.props,qn=cn.onDragOver,wn=cn.allowDrop,vi=cn.direction,ei=(0,Tt.Z)(Se),Li=ei.dragNode;if(Li){var Vi=(0,dn.OM)(We,Li,Ct,qt,Se.dragStartMousePosition,wn,Ht,En,An,vi),zi=Vi.dropPosition,Bn=Vi.dropLevelOffset,rr=Vi.dropTargetKey,Yr=Vi.dropContainerKey,zr=Vi.dropAllowed,Zr=Vi.dropTargetPos,Nr=Vi.dragOverNodeKey;dt.indexOf(rr)!==-1||!zr||(Li.props.eventKey===rr&&Bn===0?Se.state.dropPosition===null&&Se.state.dropLevelOffset===null&&Se.state.dropTargetKey===null&&Se.state.dropContainerKey===null&&Se.state.dropTargetPos===null&&Se.state.dropAllowed===!1&&Se.state.dragOverNodeKey===null||Se.resetDragState():zi===Se.state.dropPosition&&Bn===Se.state.dropLevelOffset&&rr===Se.state.dropTargetKey&&Yr===Se.state.dropContainerKey&&Zr===Se.state.dropTargetPos&&zr===Se.state.dropAllowed&&Nr===Se.state.dragOverNodeKey||Se.setState({dropPosition:zi,dropLevelOffset:Bn,dropTargetKey:rr,dropContainerKey:Yr,dropTargetPos:Zr,dropAllowed:zr,dragOverNodeKey:Nr}),qn==null||qn({event:We,node:(0,Ye.F)(Ct.props)}))}},Se.onNodeDragLeave=function(We,Ct){Se.currentMouseOverDroppableNodeKey===Ct.props.eventKey&&!We.currentTarget.contains(We.relatedTarget)&&(Se.resetDragState(),Se.currentMouseOverDroppableNodeKey=null);var bt=Se.props.onDragLeave;bt==null||bt({event:We,node:(0,Ye.F)(Ct.props)})},Se.onWindowDragEnd=function(We){Se.onNodeDragEnd(We,null,!0),window.removeEventListener("dragend",Se.onWindowDragEnd)},Se.onNodeDragEnd=function(We,Ct){var bt=Se.props.onDragEnd;Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),bt==null||bt({event:We,node:(0,Ye.F)(Ct.props)}),Se.dragNode=null,window.removeEventListener("dragend",Se.onWindowDragEnd)},Se.onNodeDrop=function(We,Ct){var bt,dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ht=Se.state,En=Ht.dragChildrenKeys,An=Ht.dropPosition,qt=Ht.dropTargetKey,cn=Ht.dropTargetPos,qn=Ht.dropAllowed;if(qn){var wn=Se.props.onDrop;if(Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),qt!==null){var vi=(0,Rt.Z)((0,Rt.Z)({},(0,Ye.H8)(qt,Se.getTreeNodeRequiredProps())),{},{active:((bt=Se.getActiveItem())===null||bt===void 0?void 0:bt.key)===qt,data:(0,mt.Z)(Se.state.keyEntities,qt).node}),ei=En.indexOf(qt)!==-1;(0,te.ZP)(!ei,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Li=(0,dn.yx)(cn),Vi={event:We,node:(0,Ye.F)(vi),dragNode:Se.dragNode?(0,Ye.F)(Se.dragNode.props):null,dragNodesKeys:[Se.dragNode.props.eventKey].concat(En),dropToGap:An!==0,dropPosition:An+Number(Li[Li.length-1])};dt||wn==null||wn(Vi),Se.dragNode=null}}},Se.cleanDragState=function(){var We=Se.state.draggingNodeKey;We!==null&&Se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Se.dragStartMousePosition=null,Se.currentMouseOverDroppableNodeKey=null},Se.triggerExpandActionExpand=function(We,Ct){var bt=Se.state,dt=bt.expandedKeys,Ht=bt.flattenNodes,En=Ct.expanded,An=Ct.key,qt=Ct.isLeaf;if(!(qt||We.shiftKey||We.metaKey||We.ctrlKey)){var cn=Ht.filter(function(wn){return wn.key===An})[0],qn=(0,Ye.F)((0,Rt.Z)((0,Rt.Z)({},(0,Ye.H8)(An,Se.getTreeNodeRequiredProps())),{},{data:cn.data}));Se.setExpandedKeys(En?(0,dn._5)(dt,An):(0,dn.L0)(dt,An)),Se.onNodeExpand(We,qn)}},Se.onNodeClick=function(We,Ct){var bt=Se.props,dt=bt.onClick,Ht=bt.expandAction;Ht==="click"&&Se.triggerExpandActionExpand(We,Ct),dt==null||dt(We,Ct)},Se.onNodeDoubleClick=function(We,Ct){var bt=Se.props,dt=bt.onDoubleClick,Ht=bt.expandAction;Ht==="doubleClick"&&Se.triggerExpandActionExpand(We,Ct),dt==null||dt(We,Ct)},Se.onNodeSelect=function(We,Ct){var bt=Se.state.selectedKeys,dt=Se.state,Ht=dt.keyEntities,En=dt.fieldNames,An=Se.props,qt=An.onSelect,cn=An.multiple,qn=Ct.selected,wn=Ct[En.key],vi=!qn;vi?cn?bt=(0,dn.L0)(bt,wn):bt=[wn]:bt=(0,dn._5)(bt,wn);var ei=bt.map(function(Li){var Vi=(0,mt.Z)(Ht,Li);return Vi?Vi.node:null}).filter(function(Li){return Li});Se.setUncontrolledState({selectedKeys:bt}),qt==null||qt(bt,{event:"select",selected:vi,node:Ct,selectedNodes:ei,nativeEvent:We.nativeEvent})},Se.onNodeCheck=function(We,Ct,bt){var dt=Se.state,Ht=dt.keyEntities,En=dt.checkedKeys,An=dt.halfCheckedKeys,qt=Se.props,cn=qt.checkStrictly,qn=qt.onCheck,wn=Ct.key,vi,ei={event:"check",node:Ct,checked:bt,nativeEvent:We.nativeEvent};if(cn){var Li=bt?(0,dn.L0)(En,wn):(0,dn._5)(En,wn),Vi=(0,dn._5)(An,wn);vi={checked:Li,halfChecked:Vi},ei.checkedNodes=Li.map(function(Zr){return(0,mt.Z)(Ht,Zr)}).filter(function(Zr){return Zr}).map(function(Zr){return Zr.node}),Se.setUncontrolledState({checkedKeys:Li})}else{var zi=(0,Tn.S)([].concat((0,$e.Z)(En),[wn]),!0,Ht),Bn=zi.checkedKeys,rr=zi.halfCheckedKeys;if(!bt){var Yr=new Set(Bn);Yr.delete(wn);var zr=(0,Tn.S)(Array.from(Yr),{checked:!1,halfCheckedKeys:rr},Ht);Bn=zr.checkedKeys,rr=zr.halfCheckedKeys}vi=Bn,ei.checkedNodes=[],ei.checkedNodesPositions=[],ei.halfCheckedKeys=rr,Bn.forEach(function(Zr){var Nr=(0,mt.Z)(Ht,Zr);if(Nr){var Co=Nr.node,$r=Nr.pos;ei.checkedNodes.push(Co),ei.checkedNodesPositions.push({node:Co,pos:$r})}}),Se.setUncontrolledState({checkedKeys:Bn},!1,{halfCheckedKeys:rr})}qn==null||qn(vi,ei)},Se.onNodeLoad=function(We){var Ct=We.key,bt=new Promise(function(dt,Ht){Se.setState(function(En){var An=En.loadedKeys,qt=An===void 0?[]:An,cn=En.loadingKeys,qn=cn===void 0?[]:cn,wn=Se.props,vi=wn.loadData,ei=wn.onLoad;if(!vi||qt.indexOf(Ct)!==-1||qn.indexOf(Ct)!==-1)return null;var Li=vi(We);return Li.then(function(){var Vi=Se.state.loadedKeys,zi=(0,dn.L0)(Vi,Ct);ei==null||ei(zi,{event:"load",node:We}),Se.setUncontrolledState({loadedKeys:zi}),Se.setState(function(Bn){return{loadingKeys:(0,dn._5)(Bn.loadingKeys,Ct)}}),dt()}).catch(function(Vi){if(Se.setState(function(Bn){return{loadingKeys:(0,dn._5)(Bn.loadingKeys,Ct)}}),Se.loadingRetryTimes[Ct]=(Se.loadingRetryTimes[Ct]||0)+1,Se.loadingRetryTimes[Ct]>=Gn){var zi=Se.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Se.setUncontrolledState({loadedKeys:(0,dn.L0)(zi,Ct)}),dt()}Ht(Vi)}),{loadingKeys:(0,dn.L0)(qn,Ct)}})});return bt.catch(function(){}),bt},Se.onNodeMouseEnter=function(We,Ct){var bt=Se.props.onMouseEnter;bt==null||bt({event:We,node:Ct})},Se.onNodeMouseLeave=function(We,Ct){var bt=Se.props.onMouseLeave;bt==null||bt({event:We,node:Ct})},Se.onNodeContextMenu=function(We,Ct){var bt=Se.props.onRightClick;bt&&(We.preventDefault(),bt({event:We,node:Ct}))},Se.onFocus=function(){var We=Se.props.onFocus;Se.setState({focused:!0});for(var Ct=arguments.length,bt=new Array(Ct),dt=0;dt<Ct;dt++)bt[dt]=arguments[dt];We==null||We.apply(void 0,bt)},Se.onBlur=function(){var We=Se.props.onBlur;Se.setState({focused:!1}),Se.onActiveChange(null);for(var Ct=arguments.length,bt=new Array(Ct),dt=0;dt<Ct;dt++)bt[dt]=arguments[dt];We==null||We.apply(void 0,bt)},Se.getTreeNodeRequiredProps=function(){var We=Se.state,Ct=We.expandedKeys,bt=We.selectedKeys,dt=We.loadedKeys,Ht=We.loadingKeys,En=We.checkedKeys,An=We.halfCheckedKeys,qt=We.dragOverNodeKey,cn=We.dropPosition,qn=We.keyEntities;return{expandedKeys:Ct||[],selectedKeys:bt||[],loadedKeys:dt||[],loadingKeys:Ht||[],checkedKeys:En||[],halfCheckedKeys:An||[],dragOverNodeKey:qt,dropPosition:cn,keyEntities:qn}},Se.setExpandedKeys=function(We){var Ct=Se.state,bt=Ct.treeData,dt=Ct.fieldNames,Ht=(0,Ye.oH)(bt,We,dt);Se.setUncontrolledState({expandedKeys:We,flattenNodes:Ht},!0)},Se.onNodeExpand=function(We,Ct){var bt=Se.state.expandedKeys,dt=Se.state,Ht=dt.listChanging,En=dt.fieldNames,An=Se.props,qt=An.onExpand,cn=An.loadData,qn=Ct.expanded,wn=Ct[En.key];if(!Ht){var vi=bt.indexOf(wn),ei=!qn;if((0,te.ZP)(qn&&vi!==-1||!qn&&vi===-1,"Expand state not sync with index check"),ei?bt=(0,dn.L0)(bt,wn):bt=(0,dn._5)(bt,wn),Se.setExpandedKeys(bt),qt==null||qt(bt,{node:Ct,expanded:ei,nativeEvent:We.nativeEvent}),ei&&cn){var Li=Se.onNodeLoad(Ct);Li&&Li.then(function(){var Vi=(0,Ye.oH)(Se.state.treeData,bt,En);Se.setUncontrolledState({flattenNodes:Vi})}).catch(function(){var Vi=Se.state.expandedKeys,zi=(0,dn._5)(Vi,wn);Se.setExpandedKeys(zi)})}}},Se.onListChangeStart=function(){Se.setUncontrolledState({listChanging:!0})},Se.onListChangeEnd=function(){setTimeout(function(){Se.setUncontrolledState({listChanging:!1})})},Se.onActiveChange=function(We){var Ct=Se.state.activeKey,bt=Se.props.onActiveChange;Ct!==We&&(Se.setState({activeKey:We}),We!==null&&Se.scrollTo({key:We}),bt==null||bt(We))},Se.getActiveItem=function(){var We=Se.state,Ct=We.activeKey,bt=We.flattenNodes;return Ct===null?null:bt.find(function(dt){var Ht=dt.key;return Ht===Ct})||null},Se.offsetActiveKey=function(We){var Ct=Se.state,bt=Ct.flattenNodes,dt=Ct.activeKey,Ht=bt.findIndex(function(qt){var cn=qt.key;return cn===dt});Ht===-1&&We<0&&(Ht=bt.length),Ht=(Ht+We+bt.length)%bt.length;var En=bt[Ht];if(En){var An=En.key;Se.onActiveChange(An)}else Se.onActiveChange(null)},Se.onKeyDown=function(We){var Ct=Se.state,bt=Ct.activeKey,dt=Ct.expandedKeys,Ht=Ct.checkedKeys,En=Ct.fieldNames,An=Se.props,qt=An.onKeyDown,cn=An.checkable,qn=An.selectable;switch(We.which){case Pt.Z.UP:{Se.offsetActiveKey(-1),We.preventDefault();break}case Pt.Z.DOWN:{Se.offsetActiveKey(1),We.preventDefault();break}}var wn=Se.getActiveItem();if(wn&&wn.data){var vi=Se.getTreeNodeRequiredProps(),ei=wn.data.isLeaf===!1||!!(wn.data[En.children]||[]).length,Li=(0,Ye.F)((0,Rt.Z)((0,Rt.Z)({},(0,Ye.H8)(bt,vi)),{},{data:wn.data,active:!0}));switch(We.which){case Pt.Z.LEFT:{ei&&dt.includes(bt)?Se.onNodeExpand({},Li):wn.parent&&Se.onActiveChange(wn.parent.key),We.preventDefault();break}case Pt.Z.RIGHT:{ei&&!dt.includes(bt)?Se.onNodeExpand({},Li):wn.children&&wn.children.length&&Se.onActiveChange(wn.children[0].key),We.preventDefault();break}case Pt.Z.ENTER:case Pt.Z.SPACE:{cn&&!Li.disabled&&Li.checkable!==!1&&!Li.disableCheckbox?Se.onNodeCheck({},Li,!Ht.includes(bt)):!cn&&qn&&!Li.disabled&&Li.selectable!==!1&&Se.onNodeSelect({},Li);break}}}qt==null||qt(We)},Se.setUncontrolledState=function(We){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Se.destroyed){var dt=!1,Ht=!0,En={};Object.keys(We).forEach(function(An){if(An in Se.props){Ht=!1;return}dt=!0,En[An]=We[An]}),dt&&(!Ct||Ht)&&Se.setState((0,Rt.Z)((0,Rt.Z)({},En),bt))}},Se.scrollTo=function(We){Se.listRef.current.scrollTo(We)},Se}return(0,De.Z)(ke,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var st=this.props.activeKey;st!==void 0&&st!==this.state.activeKey&&(this.setState({activeKey:st}),st!==null&&this.scrollTo({key:st}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var st,At=this.state,Ve=At.focused,We=At.flattenNodes,Ct=At.keyEntities,bt=At.draggingNodeKey,dt=At.activeKey,Ht=At.dropLevelOffset,En=At.dropContainerKey,An=At.dropTargetKey,qt=At.dropPosition,cn=At.dragOverNodeKey,qn=At.indent,wn=this.props,vi=wn.prefixCls,ei=wn.className,Li=wn.style,Vi=wn.showLine,zi=wn.focusable,Bn=wn.tabIndex,rr=Bn===void 0?0:Bn,Yr=wn.selectable,zr=wn.showIcon,Zr=wn.icon,Nr=wn.switcherIcon,Co=wn.draggable,$r=wn.checkable,sr=wn.checkStrictly,Fo=wn.disabled,ti=wn.motion,Ae=wn.loadData,$n=wn.filterTreeNode,oi=wn.height,fn=wn.itemHeight,Qn=wn.virtual,Zn=wn.titleRender,an=wn.dropIndicatorRender,Jt=wn.onContextMenu,vn=wn.onScroll,xt=wn.direction,wt=wn.rootClassName,ze=wn.rootStyle,Yt=(0,Me.Z)(this.props,{aria:!0,data:!0}),on;return Co&&((0,He.Z)(Co)==="object"?on=Co:typeof Co=="function"?on={nodeDraggable:Co}:on={}),ne.createElement(ce.k.Provider,{value:{prefixCls:vi,selectable:Yr,showIcon:zr,icon:Zr,switcherIcon:Nr,draggable:on,draggingNodeKey:bt,checkable:$r,checkStrictly:sr,disabled:Fo,keyEntities:Ct,dropLevelOffset:Ht,dropContainerKey:En,dropTargetKey:An,dropPosition:qt,dragOverNodeKey:cn,indent:qn,direction:xt,dropIndicatorRender:an,loadData:Ae,filterTreeNode:$n,titleRender:Zn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},ne.createElement("div",{role:"tree",className:it()(vi,ei,wt,(st={},(0,Oe.Z)(st,"".concat(vi,"-show-line"),Vi),(0,Oe.Z)(st,"".concat(vi,"-focused"),Ve),(0,Oe.Z)(st,"".concat(vi,"-active-focused"),dt!==null),st)),style:ze},ne.createElement(On,(0,ye.Z)({ref:this.listRef,prefixCls:vi,style:Li,data:We,disabled:Fo,selectable:Yr,checkable:!!$r,motion:ti,dragging:bt!==null,height:oi,itemHeight:fn,virtual:Qn,focusable:zi,focused:Ve,tabIndex:rr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Jt,onScroll:vn},this.getTreeNodeRequiredProps(),Yt))))}}],[{key:"getDerivedStateFromProps",value:function(st,At){var Ve=At.prevProps,We={prevProps:st};function Ct(zi){return!Ve&&zi in st||Ve&&Ve[zi]!==st[zi]}var bt,dt=At.fieldNames;if(Ct("fieldNames")&&(dt=(0,Ye.w$)(st.fieldNames),We.fieldNames=dt),Ct("treeData")?bt=st.treeData:Ct("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),bt=(0,Ye.zn)(st.children)),bt){We.treeData=bt;var Ht=(0,Ye.I8)(bt,{fieldNames:dt});We.keyEntities=(0,Rt.Z)((0,Oe.Z)({},ft,Lt),Ht.keyEntities)}var En=We.keyEntities||At.keyEntities;if(Ct("expandedKeys")||Ve&&Ct("autoExpandParent"))We.expandedKeys=st.autoExpandParent||!Ve&&st.defaultExpandParent?(0,dn.r7)(st.expandedKeys,En):st.expandedKeys;else if(!Ve&&st.defaultExpandAll){var An=(0,Rt.Z)({},En);delete An[ft],We.expandedKeys=Object.keys(An).map(function(zi){return An[zi].key})}else!Ve&&st.defaultExpandedKeys&&(We.expandedKeys=st.autoExpandParent||st.defaultExpandParent?(0,dn.r7)(st.defaultExpandedKeys,En):st.defaultExpandedKeys);if(We.expandedKeys||delete We.expandedKeys,bt||We.expandedKeys){var qt=(0,Ye.oH)(bt||At.treeData,We.expandedKeys||At.expandedKeys,dt);We.flattenNodes=qt}if(st.selectable&&(Ct("selectedKeys")?We.selectedKeys=(0,dn.BT)(st.selectedKeys,st):!Ve&&st.defaultSelectedKeys&&(We.selectedKeys=(0,dn.BT)(st.defaultSelectedKeys,st))),st.checkable){var cn;if(Ct("checkedKeys")?cn=(0,dn.E6)(st.checkedKeys)||{}:!Ve&&st.defaultCheckedKeys?cn=(0,dn.E6)(st.defaultCheckedKeys)||{}:bt&&(cn=(0,dn.E6)(st.checkedKeys)||{checkedKeys:At.checkedKeys,halfCheckedKeys:At.halfCheckedKeys}),cn){var qn=cn,wn=qn.checkedKeys,vi=wn===void 0?[]:wn,ei=qn.halfCheckedKeys,Li=ei===void 0?[]:ei;if(!st.checkStrictly){var Vi=(0,Tn.S)(vi,!0,En);vi=Vi.checkedKeys,Li=Vi.halfCheckedKeys}We.checkedKeys=vi,We.halfCheckedKeys=Li}}return Ct("loadedKeys")&&(We.loadedKeys=st.loadedKeys),We}}]),ke}(ne.Component);xn.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:se,allowDrop:function(){return!0},expandAction:!1},xn.TreeNode=Ge.Z;var tt=xn,Ee=tt},35654:function(Rn,Mn,ve){"use strict";ve.d(Mn,{BT:function(){return ne},E6:function(){return ge},L0:function(){return et},OM:function(){return te},_5:function(){return Et},r7:function(){return me},wA:function(){return it},yx:function(){return Ot}});var ye=ve(26407),Oe=ve(39559),He=ve(48736),Rt=ve(59301),$e=ve(39417),qe=ve(67841),De=ve(71430),Tt=null;function Et(Ce,Fe){if(!Ce)return[];var Pe=Ce.slice(),Ie=Pe.indexOf(Fe);return Ie>=0&&Pe.splice(Ie,1),Pe}function et(Ce,Fe){var Pe=(Ce||[]).slice();return Pe.indexOf(Fe)===-1&&Pe.push(Fe),Pe}function Ot(Ce){return Ce.split("-")}function it(Ce,Fe){var Pe=[],Ie=(0,qe.Z)(Fe,Ce);function Ge(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ke.forEach(function(Ye){var pt=Ye.key,Je=Ye.children;Pe.push(pt),Ge(Je)})}return Ge(Ie.children),Pe}function Pt(Ce){if(Ce.parent){var Fe=Ot(Ce.pos);return Number(Fe[Fe.length-1])===Ce.parent.children.length-1}return!1}function Me(Ce){var Fe=Ot(Ce.pos);return Number(Fe[Fe.length-1])===0}function te(Ce,Fe,Pe,Ie,Ge,Ke,Ye,pt,Je,kt){var Xe,Wt=Ce.clientX,zt=Ce.clientY,jt=Ce.target.getBoundingClientRect(),Mt=jt.top,Ut=jt.height,ft=(kt==="rtl"?-1:1)*(((Ge==null?void 0:Ge.x)||0)-Wt),Re=(ft-12)/Ie,Lt=(0,qe.Z)(pt,Pe.props.eventKey);if(zt<Mt+Ut/2){var yn=Ye.findIndex(function(Ee){return Ee.key===Lt.key}),mn=yn<=0?0:yn-1,Nt=Ye[mn].key;Lt=(0,qe.Z)(pt,Nt)}var en=Lt.key,nn=Lt,On=Lt.key,dn=0,Tn=0;if(!Je.includes(en))for(var mt=0;mt<Re&&Pt(Lt);mt+=1)Lt=Lt.parent,Tn+=1;var Gn=Fe.props.data,xn=Lt.node,tt=!0;return Me(Lt)&&Lt.level===0&&zt<Mt+Ut/2&&Ke({dragNode:Gn,dropNode:xn,dropPosition:-1})&&Lt.key===Pe.props.eventKey?dn=-1:(nn.children||[]).length&&Je.includes(On)?Ke({dragNode:Gn,dropNode:xn,dropPosition:0})?dn=0:tt=!1:Tn===0?Re>-1.5?Ke({dragNode:Gn,dropNode:xn,dropPosition:1})?dn=1:tt=!1:Ke({dragNode:Gn,dropNode:xn,dropPosition:0})?dn=0:Ke({dragNode:Gn,dropNode:xn,dropPosition:1})?dn=1:tt=!1:Ke({dragNode:Gn,dropNode:xn,dropPosition:1})?dn=1:tt=!1,{dropPosition:dn,dropLevelOffset:Tn,dropTargetKey:Lt.key,dropTargetPos:Lt.pos,dragOverNodeKey:On,dropContainerKey:dn===0?null:((Xe=Lt.parent)===null||Xe===void 0?void 0:Xe.key)||null,dropAllowed:tt}}function ne(Ce,Fe){if(Ce){var Pe=Fe.multiple;return Pe?Ce.slice():Ce.length?[Ce[0]]:Ce}}var ce=function(Fe){return Fe};function se(Ce,Fe){if(!Ce)return[];var Pe=Fe||{},Ie=Pe.processProps,Ge=Ie===void 0?ce:Ie,Ke=Array.isArray(Ce)?Ce:[Ce];return Ke.map(function(Ye){var pt=Ye.children,Je=_objectWithoutProperties(Ye,Tt),kt=se(pt,Fe);return React.createElement(TreeNode,_extends({key:Je.key},Ge(Je)),kt)})}function ge(Ce){if(!Ce)return null;var Fe;if(Array.isArray(Ce))Fe={checkedKeys:Ce,halfCheckedKeys:void 0};else if((0,Oe.Z)(Ce)==="object")Fe={checkedKeys:Ce.checked||void 0,halfCheckedKeys:Ce.halfChecked||void 0};else return(0,He.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Fe}function me(Ce,Fe){var Pe=new Set;function Ie(Ge){if(!Pe.has(Ge)){var Ke=(0,qe.Z)(Fe,Ge);if(Ke){Pe.add(Ge);var Ye=Ke.parent,pt=Ke.node;pt.disabled||Ye&&Ie(Ye.key)}}}return(Ce||[]).forEach(function(Ge){Ie(Ge)}),(0,ye.Z)(Pe)}},90782:function(Rn,Mn,ve){"use strict";ve.d(Mn,{S:function(){return De}});var ye=ve(48736),Oe=ve(67841);function He(Tt,Et){var et=new Set;return Tt.forEach(function(Ot){Et.has(Ot)||et.add(Ot)}),et}function Rt(Tt){var Et=Tt||{},et=Et.disabled,Ot=Et.disableCheckbox,it=Et.checkable;return!!(et||Ot)||it===!1}function $e(Tt,Et,et,Ot){for(var it=new Set(Tt),Pt=new Set,Me=0;Me<=et;Me+=1){var te=Et.get(Me)||new Set;te.forEach(function(ge){var me=ge.key,Ce=ge.node,Fe=ge.children,Pe=Fe===void 0?[]:Fe;it.has(me)&&!Ot(Ce)&&Pe.filter(function(Ie){return!Ot(Ie.node)}).forEach(function(Ie){it.add(Ie.key)})})}for(var ne=new Set,ce=et;ce>=0;ce-=1){var se=Et.get(ce)||new Set;se.forEach(function(ge){var me=ge.parent,Ce=ge.node;if(!(Ot(Ce)||!ge.parent||ne.has(ge.parent.key))){if(Ot(ge.parent.node)){ne.add(me.key);return}var Fe=!0,Pe=!1;(me.children||[]).filter(function(Ie){return!Ot(Ie.node)}).forEach(function(Ie){var Ge=Ie.key,Ke=it.has(Ge);Fe&&!Ke&&(Fe=!1),!Pe&&(Ke||Pt.has(Ge))&&(Pe=!0)}),Fe&&it.add(me.key),Pe&&Pt.add(me.key),ne.add(me.key)}})}return{checkedKeys:Array.from(it),halfCheckedKeys:Array.from(He(Pt,it))}}function qe(Tt,Et,et,Ot,it){for(var Pt=new Set(Tt),Me=new Set(Et),te=0;te<=Ot;te+=1){var ne=et.get(te)||new Set;ne.forEach(function(me){var Ce=me.key,Fe=me.node,Pe=me.children,Ie=Pe===void 0?[]:Pe;!Pt.has(Ce)&&!Me.has(Ce)&&!it(Fe)&&Ie.filter(function(Ge){return!it(Ge.node)}).forEach(function(Ge){Pt.delete(Ge.key)})})}Me=new Set;for(var ce=new Set,se=Ot;se>=0;se-=1){var ge=et.get(se)||new Set;ge.forEach(function(me){var Ce=me.parent,Fe=me.node;if(!(it(Fe)||!me.parent||ce.has(me.parent.key))){if(it(me.parent.node)){ce.add(Ce.key);return}var Pe=!0,Ie=!1;(Ce.children||[]).filter(function(Ge){return!it(Ge.node)}).forEach(function(Ge){var Ke=Ge.key,Ye=Pt.has(Ke);Pe&&!Ye&&(Pe=!1),!Ie&&(Ye||Me.has(Ke))&&(Ie=!0)}),Pe||Pt.delete(Ce.key),Ie&&Me.add(Ce.key),ce.add(Ce.key)}})}return{checkedKeys:Array.from(Pt),halfCheckedKeys:Array.from(He(Me,Pt))}}function De(Tt,Et,et,Ot){var it=[],Pt;Ot?Pt=Ot:Pt=Rt;var Me=new Set(Tt.filter(function(se){var ge=!!(0,Oe.Z)(et,se);return ge||it.push(se),ge})),te=new Map,ne=0;Object.keys(et).forEach(function(se){var ge=et[se],me=ge.level,Ce=te.get(me);Ce||(Ce=new Set,te.set(me,Ce)),Ce.add(ge),ne=Math.max(ne,me)}),(0,ye.ZP)(!it.length,"Tree missing follow keys: ".concat(it.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var ce;return Et===!0?ce=$e(Me,te,ne,Pt):ce=qe(Me,Et.halfCheckedKeys,te,ne,Pt),ce}},67841:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return ye}});function ye(Oe,He){return Oe[He]}},71430:function(Rn,Mn,ve){"use strict";ve.d(Mn,{F:function(){return me},H8:function(){return ge},I8:function(){return se},km:function(){return it},oH:function(){return ne},w$:function(){return Pt},zn:function(){return te}});var ye=ve(39559),Oe=ve(26407),He=ve(33708),Rt=ve(37061),$e=ve(11592),qe=ve(2738),De=ve(48736),Tt=ve(67841),Et=["children"];function et(Ce,Fe){return"".concat(Ce,"-").concat(Fe)}function Ot(Ce){return Ce&&Ce.type&&Ce.type.isTreeNode}function it(Ce,Fe){return Ce!=null?Ce:Fe}function Pt(Ce){var Fe=Ce||{},Pe=Fe.title,Ie=Fe._title,Ge=Fe.key,Ke=Fe.children,Ye=Pe||"title";return{title:Ye,_title:Ie||[Ye],key:Ge||"key",children:Ke||"children"}}function Me(Ce,Fe){var Pe=new Map;function Ie(Ge){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ge||[]).forEach(function(Ye){var pt=Ye[Fe.key],Je=Ye[Fe.children];warning(pt!=null,"Tree node must have a certain key: [".concat(Ke).concat(pt,"]"));var kt=String(pt);warning(!Pe.has(kt)||pt===null||pt===void 0,"Same 'key' exist in the Tree: ".concat(kt)),Pe.set(kt,!0),Ie(Je,"".concat(Ke).concat(kt," > "))})}Ie(Ce)}function te(Ce){function Fe(Pe){var Ie=(0,$e.Z)(Pe);return Ie.map(function(Ge){if(!Ot(Ge))return(0,De.ZP)(!Ge,"Tree/TreeNode can only accept TreeNode as children."),null;var Ke=Ge.key,Ye=Ge.props,pt=Ye.children,Je=(0,Rt.Z)(Ye,Et),kt=(0,He.Z)({key:Ke},Je),Xe=Fe(pt);return Xe.length&&(kt.children=Xe),kt}).filter(function(Ge){return Ge})}return Fe(Ce)}function ne(Ce,Fe,Pe){var Ie=Pt(Pe),Ge=Ie._title,Ke=Ie.key,Ye=Ie.children,pt=new Set(Fe===!0?[]:Fe),Je=[];function kt(Xe){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Xe.map(function(zt,jt){for(var Mt=et(Wt?Wt.pos:"0",jt),Ut=it(zt[Ke],Mt),ft,Re=0;Re<Ge.length;Re+=1){var Lt=Ge[Re];if(zt[Lt]!==void 0){ft=zt[Lt];break}}var yn=(0,He.Z)((0,He.Z)({},(0,qe.Z)(zt,[].concat((0,Oe.Z)(Ge),[Ke,Ye]))),{},{title:ft,key:Ut,parent:Wt,pos:Mt,children:null,data:zt,isStart:[].concat((0,Oe.Z)(Wt?Wt.isStart:[]),[jt===0]),isEnd:[].concat((0,Oe.Z)(Wt?Wt.isEnd:[]),[jt===Xe.length-1])});return Je.push(yn),Fe===!0||pt.has(Ut)?yn.children=kt(zt[Ye]||[],yn):yn.children=[],yn})}return kt(Ce),Je}function ce(Ce,Fe,Pe){var Ie={};(0,ye.Z)(Pe)==="object"?Ie=Pe:Ie={externalGetKey:Pe},Ie=Ie||{};var Ge=Ie,Ke=Ge.childrenPropName,Ye=Ge.externalGetKey,pt=Ge.fieldNames,Je=Pt(pt),kt=Je.key,Xe=Je.children,Wt=Ke||Xe,zt;Ye?typeof Ye=="string"?zt=function(Ut){return Ut[Ye]}:typeof Ye=="function"&&(zt=function(Ut){return Ye(Ut)}):zt=function(Ut,ft){return it(Ut[kt],ft)};function jt(Mt,Ut,ft,Re){var Lt=Mt?Mt[Wt]:Ce,yn=Mt?et(ft.pos,Ut):"0",mn=Mt?[].concat((0,Oe.Z)(Re),[Mt]):[];if(Mt){var Nt=zt(Mt,yn),en={node:Mt,index:Ut,pos:yn,key:Nt,parentPos:ft.node?ft.pos:null,level:ft.level+1,nodes:mn};Fe(en)}Lt&&Lt.forEach(function(nn,On){jt(nn,On,{node:Mt,pos:yn,level:ft?ft.level+1:-1},mn)})}jt(null)}function se(Ce){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=Fe.initWrapper,Ie=Fe.processEntity,Ge=Fe.onProcessFinished,Ke=Fe.externalGetKey,Ye=Fe.childrenPropName,pt=Fe.fieldNames,Je=arguments.length>2?arguments[2]:void 0,kt=Ke||Je,Xe={},Wt={},zt={posEntities:Xe,keyEntities:Wt};return Pe&&(zt=Pe(zt)||zt),ce(Ce,function(jt){var Mt=jt.node,Ut=jt.index,ft=jt.pos,Re=jt.key,Lt=jt.parentPos,yn=jt.level,mn=jt.nodes,Nt={node:Mt,nodes:mn,index:Ut,key:Re,pos:ft,level:yn},en=it(Re,ft);Xe[ft]=Nt,Wt[en]=Nt,Nt.parent=Xe[Lt],Nt.parent&&(Nt.parent.children=Nt.parent.children||[],Nt.parent.children.push(Nt)),Ie&&Ie(Nt,zt)},{externalGetKey:kt,childrenPropName:Ye,fieldNames:pt}),Ge&&Ge(zt),zt}function ge(Ce,Fe){var Pe=Fe.expandedKeys,Ie=Fe.selectedKeys,Ge=Fe.loadedKeys,Ke=Fe.loadingKeys,Ye=Fe.checkedKeys,pt=Fe.halfCheckedKeys,Je=Fe.dragOverNodeKey,kt=Fe.dropPosition,Xe=Fe.keyEntities,Wt=(0,Tt.Z)(Xe,Ce),zt={eventKey:Ce,expanded:Pe.indexOf(Ce)!==-1,selected:Ie.indexOf(Ce)!==-1,loaded:Ge.indexOf(Ce)!==-1,loading:Ke.indexOf(Ce)!==-1,checked:Ye.indexOf(Ce)!==-1,halfChecked:pt.indexOf(Ce)!==-1,pos:String(Wt?Wt.pos:""),dragOver:Je===Ce&&kt===0,dragOverGapTop:Je===Ce&&kt===-1,dragOverGapBottom:Je===Ce&&kt===1};return zt}function me(Ce){var Fe=Ce.data,Pe=Ce.expanded,Ie=Ce.selected,Ge=Ce.checked,Ke=Ce.loaded,Ye=Ce.loading,pt=Ce.halfChecked,Je=Ce.dragOver,kt=Ce.dragOverGapTop,Xe=Ce.dragOverGapBottom,Wt=Ce.pos,zt=Ce.active,jt=Ce.eventKey,Mt=(0,He.Z)((0,He.Z)({},Fe),{},{expanded:Pe,selected:Ie,checked:Ge,loaded:Ke,loading:Ye,halfChecked:pt,dragOver:Je,dragOverGapTop:kt,dragOverGapBottom:Xe,pos:Wt,active:zt,key:jt});return"props"in Mt||Object.defineProperty(Mt,"props",{get:function(){return(0,De.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ce}}),Mt}},8224:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Oe}});var ye=ve(4676);function Oe(He,Rt,$e,qe){var De=ye.unstable_batchedUpdates?function(Et){ye.unstable_batchedUpdates($e,Et)}:$e;return He!=null&&He.addEventListener&&He.addEventListener(Rt,De,qe),{remove:function(){He!=null&&He.removeEventListener&&He.removeEventListener(Rt,De,qe)}}}},55468:function(Rn,Mn,ve){"use strict";ve.d(Mn,{g1:function(){return Ot},os:function(){return Pt}});var ye=/margin|padding|width|height|max|min|offset/,Oe={left:!0,top:!0},He={cssFloat:1,styleFloat:1,float:1};function Rt(Me){return Me.nodeType===1?Me.ownerDocument.defaultView.getComputedStyle(Me,null):{}}function $e(Me,te,ne){if(te=te.toLowerCase(),ne==="auto"){if(te==="height")return Me.offsetHeight;if(te==="width")return Me.offsetWidth}return te in Oe||(Oe[te]=ye.test(te)),Oe[te]?parseFloat(ne)||0:ne}function qe(Me,te){var ne=arguments.length,ce=Rt(Me);return te=He[te]?"cssFloat"in Me.style?"cssFloat":"styleFloat":te,ne===1?ce:$e(Me,te,ce[te]||Me.style[te])}function De(Me,te,ne){var ce=arguments.length;if(te=He[te]?"cssFloat"in Me.style?"cssFloat":"styleFloat":te,ce===3)return typeof ne=="number"&&ye.test(te)&&(ne="".concat(ne,"px")),Me.style[te]=ne,ne;for(var se in te)te.hasOwnProperty(se)&&De(Me,se,te[se]);return Rt(Me)}function Tt(Me){return Me===document.body?document.documentElement.clientWidth:Me.offsetWidth}function Et(Me){return Me===document.body?window.innerHeight||document.documentElement.clientHeight:Me.offsetHeight}function et(){var Me=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),te=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Me,height:te}}function Ot(){var Me=document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight;return{width:Me,height:te}}function it(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Pt(Me){var te=Me.getBoundingClientRect(),ne=document.documentElement;return{left:te.left+(window.pageXOffset||ne.scrollLeft)-(ne.clientLeft||document.body.clientLeft||0),top:te.top+(window.pageYOffset||ne.scrollTop)-(ne.clientTop||document.body.clientTop||0)}}},24514:function(Rn,Mn,ve){"use strict";ve.d(Mn,{G:function(){return Rt}});var ye=ve(47273),Oe=function(qe){if((0,ye.Z)()&&window.document.documentElement){var De=Array.isArray(qe)?qe:[qe],Tt=window.document.documentElement;return De.some(function(Et){return Et in Tt.style})}return!1},He=function(qe,De){if(!Oe(qe))return!1;var Tt=document.createElement("div"),Et=Tt.style[qe];return Tt.style[qe]=De,Tt.style[qe]!==Et};function Rt($e,qe){return!Array.isArray($e)&&qe!==void 0?He($e,qe):Oe($e)}},57149:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return tt}});var ye=ve(92413),Oe=ve(39559),He=ve(33708),Rt=ve(400),$e=ve(33606),qe=ve(37061),De=ve(92310),Tt=ve.n(De),Et=ve(29301),et=ve(70425),Ot=ve(34280),it=ve(59301),Pt=ve(4676),Me=it.forwardRef(function(Ee,we){var Be=Ee.height,ke=Ee.offsetY,Se=Ee.offsetX,st=Ee.children,At=Ee.prefixCls,Ve=Ee.onInnerResize,We=Ee.innerProps,Ct=Ee.rtl,bt=Ee.extra,dt={},Ht={display:"flex",flexDirection:"column"};return ke!==void 0&&(dt={height:Be,position:"relative",overflow:"hidden"},Ht=(0,He.Z)((0,He.Z)({},Ht),{},(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({transform:"translateY(".concat(ke,"px)")},Ct?"marginRight":"marginLeft",-Se),"position","absolute"),"left",0),"right",0),"top",0))),it.createElement("div",{style:dt},it.createElement(Et.Z,{onResize:function(An){var qt=An.offsetHeight;qt&&Ve&&Ve()}},it.createElement("div",(0,ye.Z)({style:Ht,className:Tt()((0,Rt.Z)({},"".concat(At,"-holder-inner"),At)),ref:we},We),st,bt)))});Me.displayName="Filler";var te=Me;function ne(Ee){var we=Ee.children,Be=Ee.setRef,ke=it.useCallback(function(Se){Be(Se)},[]);return it.cloneElement(we,{ref:ke})}function ce(Ee,we,Be,ke,Se,st,At,Ve){var We=Ve.getKey;return Ee.slice(we,Be+1).map(function(Ct,bt){var dt=we+bt,Ht=At(Ct,dt,{style:{width:ke},offsetX:Se}),En=We(Ct);return it.createElement(ne,{key:En,setRef:function(qt){return st(Ct,qt)}},Ht)})}function se(Ee,we,Be,ke){var Se=Be-Ee,st=we-Be,At=Math.min(Se,st)*2;if(ke<=At){var Ve=Math.floor(ke/2);return ke%2?Be+Ve+1:Be-Ve}return Se>st?Be-(ke-st):Be+(ke-Se)}function ge(Ee,we,Be){var ke=Ee.length,Se=we.length,st,At;if(ke===0&&Se===0)return null;ke<Se?(st=Ee,At=we):(st=we,At=Ee);var Ve={__EMPTY_ITEM__:!0};function We(An){return An!==void 0?Be(An):Ve}for(var Ct=null,bt=Math.abs(ke-Se)!==1,dt=0;dt<At.length;dt+=1){var Ht=We(st[dt]),En=We(At[dt]);if(Ht!==En){Ct=dt,bt=bt||Ht!==We(At[dt+1]);break}}return Ct===null?null:{index:Ct,multiple:bt}}function me(Ee,we,Be){var ke=it.useState(Ee),Se=(0,$e.Z)(ke,2),st=Se[0],At=Se[1],Ve=it.useState(null),We=(0,$e.Z)(Ve,2),Ct=We[0],bt=We[1];return it.useEffect(function(){var dt=ge(st||[],Ee||[],we);(dt==null?void 0:dt.index)!==void 0&&(Be==null||Be(dt.index),bt(Ee[dt.index])),At(Ee)},[Ee]),[Ct]}var Ce=ve(16089),Fe=(typeof navigator=="undefined"?"undefined":(0,Oe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Pe=Fe,Ie=function(Ee,we,Be,ke){var Se=(0,it.useRef)(!1),st=(0,it.useRef)(null);function At(){clearTimeout(st.current),Se.current=!0,st.current=setTimeout(function(){Se.current=!1},50)}var Ve=(0,it.useRef)({top:Ee,bottom:we,left:Be,right:ke});return Ve.current.top=Ee,Ve.current.bottom=we,Ve.current.left=Be,Ve.current.right=ke,function(We,Ct){var bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,dt=We?Ct<0&&Ve.current.left||Ct>0&&Ve.current.right:Ct<0&&Ve.current.top||Ct>0&&Ve.current.bottom;return bt&&dt?(clearTimeout(st.current),Se.current=!1):(!dt||Se.current)&&At(),!Se.current&&dt}};function Ge(Ee,we,Be,ke,Se,st,At){var Ve=(0,it.useRef)(0),We=(0,it.useRef)(null),Ct=(0,it.useRef)(null),bt=(0,it.useRef)(!1),dt=Ie(we,Be,ke,Se);function Ht(wn,vi){if(Ce.Z.cancel(We.current),!dt(!1,vi)){var ei=wn;if(!ei._virtualHandled)ei._virtualHandled=!0;else return;Ve.current+=vi,Ct.current=vi,Pe||ei.preventDefault(),We.current=(0,Ce.Z)(function(){var Li=bt.current?10:1;At(Ve.current*Li,!1),Ve.current=0})}}function En(wn,vi){At(vi,!0),Pe||wn.preventDefault()}var An=(0,it.useRef)(null),qt=(0,it.useRef)(null);function cn(wn){if(Ee){Ce.Z.cancel(qt.current),qt.current=(0,Ce.Z)(function(){An.current=null},2);var vi=wn.deltaX,ei=wn.deltaY,Li=wn.shiftKey,Vi=vi,zi=ei;(An.current==="sx"||!An.current&&Li&&ei&&!vi)&&(Vi=ei,zi=0,An.current="sx");var Bn=Math.abs(Vi),rr=Math.abs(zi);An.current===null&&(An.current=st&&Bn>rr?"x":"y"),An.current==="y"?Ht(wn,zi):En(wn,Vi)}}function qn(wn){Ee&&(bt.current=wn.detail===Ct.current)}return[cn,qn]}function Ke(Ee,we,Be,ke){var Se=it.useMemo(function(){return[new Map,[]]},[Ee,Be.id,ke]),st=(0,$e.Z)(Se,2),At=st[0],Ve=st[1],We=function(bt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt,Ht=At.get(bt),En=At.get(dt);if(Ht===void 0||En===void 0)for(var An=Ee.length,qt=Ve.length;qt<An;qt+=1){var cn,qn=Ee[qt],wn=we(qn);At.set(wn,qt);var vi=(cn=Be.get(wn))!==null&&cn!==void 0?cn:ke;if(Ve[qt]=(Ve[qt-1]||0)+vi,wn===bt&&(Ht=qt),wn===dt&&(En=qt),Ht!==void 0&&En!==void 0)break}return{top:Ve[Ht-1]||0,bottom:Ve[En]}};return We}var Ye=ve(76846),pt=ve(6909),Je=ve(4771),kt=function(){function Ee(){(0,pt.Z)(this,Ee),(0,Rt.Z)(this,"maps",void 0),(0,Rt.Z)(this,"id",0),(0,Rt.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Je.Z)(Ee,[{key:"set",value:function(Be,ke){this.maps[Be]=ke,this.id+=1,this.diffKeys.add(Be)}},{key:"get",value:function(Be){return this.maps[Be]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ee}(),Xe=kt;function Wt(Ee){var we=parseFloat(Ee);return isNaN(we)?0:we}function zt(Ee,we,Be){var ke=it.useState(0),Se=(0,$e.Z)(ke,2),st=Se[0],At=Se[1],Ve=(0,it.useRef)(new Map),We=(0,it.useRef)(new Xe),Ct=(0,it.useRef)(0);function bt(){Ct.current+=1}function dt(){var En=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;bt();var An=function(){var qn=!1;Ve.current.forEach(function(wn,vi){if(wn&&wn.offsetParent){var ei=(0,Ye.ZP)(wn),Li=ei.offsetHeight,Vi=getComputedStyle(ei),zi=Vi.marginTop,Bn=Vi.marginBottom,rr=Wt(zi),Yr=Wt(Bn),zr=Li+rr+Yr;We.current.get(vi)!==zr&&(We.current.set(vi,zr),qn=!0)}}),qn&&At(function(wn){return wn+1})};if(En)An();else{Ct.current+=1;var qt=Ct.current;Promise.resolve().then(function(){qt===Ct.current&&An()})}}function Ht(En,An){var qt=Ee(En),cn=Ve.current.get(qt);An?(Ve.current.set(qt,An),dt()):Ve.current.delete(qt),!cn!=!An&&(An?we==null||we(En):Be==null||Be(En))}return(0,it.useEffect)(function(){return bt},[]),[Ht,dt,We.current,st]}var jt=14/15;function Mt(Ee,we,Be){var ke=(0,it.useRef)(!1),Se=(0,it.useRef)(0),st=(0,it.useRef)(0),At=(0,it.useRef)(null),Ve=(0,it.useRef)(null),We,Ct=function(En){if(ke.current){var An=Math.ceil(En.touches[0].pageX),qt=Math.ceil(En.touches[0].pageY),cn=Se.current-An,qn=st.current-qt,wn=Math.abs(cn)>Math.abs(qn);wn?Se.current=An:st.current=qt;var vi=Be(wn,wn?cn:qn,!1,En);vi&&En.preventDefault(),clearInterval(Ve.current),vi&&(Ve.current=setInterval(function(){wn?cn*=jt:qn*=jt;var ei=Math.floor(wn?cn:qn);(!Be(wn,ei,!0)||Math.abs(ei)<=.1)&&clearInterval(Ve.current)},16))}},bt=function(){ke.current=!1,We()},dt=function(En){We(),En.touches.length===1&&!ke.current&&(ke.current=!0,Se.current=Math.ceil(En.touches[0].pageX),st.current=Math.ceil(En.touches[0].pageY),At.current=En.target,At.current.addEventListener("touchmove",Ct,{passive:!1}),At.current.addEventListener("touchend",bt,{passive:!0}))};We=function(){At.current&&(At.current.removeEventListener("touchmove",Ct),At.current.removeEventListener("touchend",bt))},(0,Ot.Z)(function(){return Ee&&we.current.addEventListener("touchstart",dt,{passive:!0}),function(){var Ht;(Ht=we.current)===null||Ht===void 0||Ht.removeEventListener("touchstart",dt),We(),clearInterval(Ve.current)}},[Ee])}function Ut(Ee){return Math.floor(Math.pow(Ee,.5))}function ft(Ee,we){var Be="touches"in Ee?Ee.touches[0]:Ee;return Be[we?"pageX":"pageY"]-window[we?"scrollX":"scrollY"]}function Re(Ee,we,Be){it.useEffect(function(){var ke=we.current;if(Ee&&ke){var Se=!1,st,At,Ve=function(){Ce.Z.cancel(st)},We=function Ht(){Ve(),st=(0,Ce.Z)(function(){Be(At),Ht()})},Ct=function(En){if(!En.target.draggable){var An=En;An._virtualHandled||(An._virtualHandled=!0,Se=!0)}},bt=function(){Se=!1,Ve()},dt=function(En){if(Se){var An=ft(En,!1),qt=ke.getBoundingClientRect(),cn=qt.top,qn=qt.bottom;if(An<=cn){var wn=cn-An;At=-Ut(wn),We()}else if(An>=qn){var vi=An-qn;At=Ut(vi),We()}else Ve()}};return ke.addEventListener("mousedown",Ct),ke.ownerDocument.addEventListener("mouseup",bt),ke.ownerDocument.addEventListener("mousemove",dt),function(){ke.removeEventListener("mousedown",Ct),ke.ownerDocument.removeEventListener("mouseup",bt),ke.ownerDocument.removeEventListener("mousemove",dt),Ve()}}},[Ee])}var Lt=10;function yn(Ee,we,Be,ke,Se,st,At,Ve){var We=it.useRef(),Ct=it.useState(null),bt=(0,$e.Z)(Ct,2),dt=bt[0],Ht=bt[1];return(0,Ot.Z)(function(){if(dt&&dt.times<Lt){if(!Ee.current){Ht(function(Ae){return(0,He.Z)({},Ae)});return}st();var En=dt.targetAlign,An=dt.originAlign,qt=dt.index,cn=dt.offset,qn=Ee.current.clientHeight,wn=!1,vi=En,ei=null;if(qn){for(var Li=En||An,Vi=0,zi=0,Bn=0,rr=Math.min(we.length-1,qt),Yr=0;Yr<=rr;Yr+=1){var zr=Se(we[Yr]);zi=Vi;var Zr=Be.get(zr);Bn=zi+(Zr===void 0?ke:Zr),Vi=Bn}for(var Nr=Li==="top"?cn:qn-cn,Co=rr;Co>=0;Co-=1){var $r=Se(we[Co]),sr=Be.get($r);if(sr===void 0){wn=!0;break}if(Nr-=sr,Nr<=0)break}switch(Li){case"top":ei=zi-cn;break;case"bottom":ei=Bn-qn+cn;break;default:{var Fo=Ee.current.scrollTop,ti=Fo+qn;zi<Fo?vi="top":Bn>ti&&(vi="bottom")}}ei!==null&&At(ei),ei!==dt.lastTop&&(wn=!0)}wn&&Ht((0,He.Z)((0,He.Z)({},dt),{},{times:dt.times+1,targetAlign:vi,lastTop:ei}))}},[dt,Ee.current]),function(En){if(En==null){Ve();return}if(Ce.Z.cancel(We.current),typeof En=="number")At(En);else if(En&&(0,Oe.Z)(En)==="object"){var An,qt=En.align;"index"in En?An=En.index:An=we.findIndex(function(wn){return Se(wn)===En.key});var cn=En.offset,qn=cn===void 0?0:cn;Ht({times:0,index:An,offset:qn,originAlign:qt})}}}var mn=it.forwardRef(function(Ee,we){var Be=Ee.prefixCls,ke=Ee.rtl,Se=Ee.scrollOffset,st=Ee.scrollRange,At=Ee.onStartMove,Ve=Ee.onStopMove,We=Ee.onScroll,Ct=Ee.horizontal,bt=Ee.spinSize,dt=Ee.containerSize,Ht=Ee.style,En=Ee.thumbStyle,An=Ee.showScrollBar,qt=it.useState(!1),cn=(0,$e.Z)(qt,2),qn=cn[0],wn=cn[1],vi=it.useState(null),ei=(0,$e.Z)(vi,2),Li=ei[0],Vi=ei[1],zi=it.useState(null),Bn=(0,$e.Z)(zi,2),rr=Bn[0],Yr=Bn[1],zr=!ke,Zr=it.useRef(),Nr=it.useRef(),Co=it.useState(An),$r=(0,$e.Z)(Co,2),sr=$r[0],Fo=$r[1],ti=it.useRef(),Ae=function(){An===!0||An===!1||(clearTimeout(ti.current),Fo(!0),ti.current=setTimeout(function(){Fo(!1)},3e3))},$n=st-dt||0,oi=dt-bt||0,fn=it.useMemo(function(){if(Se===0||$n===0)return 0;var Yt=Se/$n;return Yt*oi},[Se,$n,oi]),Qn=function(on){on.stopPropagation(),on.preventDefault()},Zn=it.useRef({top:fn,dragging:qn,pageY:Li,startTop:rr});Zn.current={top:fn,dragging:qn,pageY:Li,startTop:rr};var an=function(on){wn(!0),Vi(ft(on,Ct)),Yr(Zn.current.top),At(),on.stopPropagation(),on.preventDefault()};it.useEffect(function(){var Yt=function(_t){_t.preventDefault()},on=Zr.current,ht=Nr.current;return on.addEventListener("touchstart",Yt,{passive:!1}),ht.addEventListener("touchstart",an,{passive:!1}),function(){on.removeEventListener("touchstart",Yt),ht.removeEventListener("touchstart",an)}},[]);var Jt=it.useRef();Jt.current=$n;var vn=it.useRef();vn.current=oi,it.useEffect(function(){if(qn){var Yt,on=function(_t){var It=Zn.current,Fn=It.dragging,Hn=It.pageY,ct=It.startTop;Ce.Z.cancel(Yt);var sn=Zr.current.getBoundingClientRect(),Un=dt/(Ct?sn.width:sn.height);if(Fn){var _n=(ft(_t,Ct)-Hn)*Un,Zt=ct;!zr&&Ct?Zt-=_n:Zt+=_n;var rn=Jt.current,wi=vn.current,Ci=wi?Zt/wi:0,yi=Math.ceil(Ci*rn);yi=Math.max(yi,0),yi=Math.min(yi,rn),Yt=(0,Ce.Z)(function(){We(yi,Ct)})}},ht=function(){wn(!1),Ve()};return window.addEventListener("mousemove",on,{passive:!0}),window.addEventListener("touchmove",on,{passive:!0}),window.addEventListener("mouseup",ht,{passive:!0}),window.addEventListener("touchend",ht,{passive:!0}),function(){window.removeEventListener("mousemove",on),window.removeEventListener("touchmove",on),window.removeEventListener("mouseup",ht),window.removeEventListener("touchend",ht),Ce.Z.cancel(Yt)}}},[qn]),it.useEffect(function(){return Ae(),function(){clearTimeout(ti.current)}},[Se]),it.useImperativeHandle(we,function(){return{delayHidden:Ae}});var xt="".concat(Be,"-scrollbar"),wt={position:"absolute",visibility:sr?null:"hidden"},ze={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ct?(wt.height=8,wt.left=0,wt.right=0,wt.bottom=0,ze.height="100%",ze.width=bt,zr?ze.left=fn:ze.right=fn):(wt.width=8,wt.top=0,wt.bottom=0,zr?wt.right=0:wt.left=0,ze.width="100%",ze.height=bt,ze.top=fn),it.createElement("div",{ref:Zr,className:Tt()(xt,(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({},"".concat(xt,"-horizontal"),Ct),"".concat(xt,"-vertical"),!Ct),"".concat(xt,"-visible"),sr)),style:(0,He.Z)((0,He.Z)({},wt),Ht),onMouseDown:Qn,onMouseMove:Ae},it.createElement("div",{ref:Nr,className:Tt()("".concat(xt,"-thumb"),(0,Rt.Z)({},"".concat(xt,"-thumb-moving"),qn)),style:(0,He.Z)((0,He.Z)({},ze),En),onMouseDown:an}))}),Nt=mn,en=20;function nn(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Be=Ee/we*Ee;return isNaN(Be)&&(Be=0),Be=Math.max(Be,en),Math.floor(Be)}var On=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],dn=[],Tn={overflowY:"auto",overflowAnchor:"none"};function mt(Ee,we){var Be=Ee.prefixCls,ke=Be===void 0?"rc-virtual-list":Be,Se=Ee.className,st=Ee.height,At=Ee.itemHeight,Ve=Ee.fullHeight,We=Ve===void 0?!0:Ve,Ct=Ee.style,bt=Ee.data,dt=Ee.children,Ht=Ee.itemKey,En=Ee.virtual,An=Ee.direction,qt=Ee.scrollWidth,cn=Ee.component,qn=cn===void 0?"div":cn,wn=Ee.onScroll,vi=Ee.onVirtualScroll,ei=Ee.onVisibleChange,Li=Ee.innerProps,Vi=Ee.extraRender,zi=Ee.styles,Bn=Ee.showScrollBar,rr=Bn===void 0?"optional":Bn,Yr=(0,qe.Z)(Ee,On),zr=it.useCallback(function(bn){return typeof Ht=="function"?Ht(bn):bn==null?void 0:bn[Ht]},[Ht]),Zr=zt(zr,null,null),Nr=(0,$e.Z)(Zr,4),Co=Nr[0],$r=Nr[1],sr=Nr[2],Fo=Nr[3],ti=!!(En!==!1&&st&&At),Ae=it.useMemo(function(){return Object.values(sr.maps).reduce(function(bn,Xn){return bn+Xn},0)},[sr.id,sr.maps]),$n=ti&&bt&&(Math.max(At*bt.length,Ae)>st||!!qt),oi=An==="rtl",fn=Tt()(ke,(0,Rt.Z)({},"".concat(ke,"-rtl"),oi),Se),Qn=bt||dn,Zn=(0,it.useRef)(),an=(0,it.useRef)(),Jt=(0,it.useRef)(),vn=(0,it.useState)(0),xt=(0,$e.Z)(vn,2),wt=xt[0],ze=xt[1],Yt=(0,it.useState)(0),on=(0,$e.Z)(Yt,2),ht=on[0],Qe=on[1],_t=(0,it.useState)(!1),It=(0,$e.Z)(_t,2),Fn=It[0],Hn=It[1],ct=function(){Hn(!0)},sn=function(){Hn(!1)},Un={getKey:zr};function _n(bn){ze(function(Xn){var Kn;typeof bn=="function"?Kn=bn(Xn):Kn=bn;var Ei=Mr(Kn);return Zn.current.scrollTop=Ei,Ei})}var Zt=(0,it.useRef)({start:0,end:Qn.length}),rn=(0,it.useRef)(),wi=me(Qn,zr),Ci=(0,$e.Z)(wi,1),yi=Ci[0];rn.current=yi;var ci=it.useMemo(function(){if(!ti)return{scrollHeight:void 0,start:0,end:Qn.length-1,offset:void 0};if(!$n){var bn;return{scrollHeight:((bn=an.current)===null||bn===void 0?void 0:bn.offsetHeight)||0,start:0,end:Qn.length-1,offset:void 0}}for(var Xn=0,Kn,Ei,vr,Ai=Qn.length,Bi=0;Bi<Ai;Bi+=1){var zn=Qn[Bi],pr=zr(zn),kr=sr.get(pr),po=Xn+(kr===void 0?At:kr);po>=wt&&Kn===void 0&&(Kn=Bi,Ei=Xn),po>wt+st&&vr===void 0&&(vr=Bi),Xn=po}return Kn===void 0&&(Kn=0,Ei=0,vr=Math.ceil(st/At)),vr===void 0&&(vr=Qn.length-1),vr=Math.min(vr+1,Qn.length-1),{scrollHeight:Xn,start:Kn,end:vr,offset:Ei}},[$n,ti,wt,Qn,Fo,st]),Pi=ci.scrollHeight,Mi=ci.start,ji=ci.end,lr=ci.offset;Zt.current.start=Mi,Zt.current.end=ji,it.useLayoutEffect(function(){var bn=sr.getRecord();if(bn.size===1){var Xn=Array.from(bn)[0],Kn=Qn[Mi];if(Kn){var Ei=zr(Kn);if(Ei===Xn){var vr=sr.get(Xn),Ai=vr-At;_n(function(Bi){return Bi+Ai})}}}sr.resetRecord()},[Pi]);var nr=it.useState({width:0,height:st}),Nn=(0,$e.Z)(nr,2),Pr=Nn[0],Tr=Nn[1],br=function(Xn){Tr({width:Xn.offsetWidth,height:Xn.offsetHeight})},Cn=(0,it.useRef)(),di=(0,it.useRef)(),Ki=it.useMemo(function(){return nn(Pr.width,qt)},[Pr.width,qt]),ir=it.useMemo(function(){return nn(Pr.height,Pi)},[Pr.height,Pi]),Yi=Pi-st,cr=(0,it.useRef)(Yi);cr.current=Yi;function Mr(bn){var Xn=bn;return Number.isNaN(cr.current)||(Xn=Math.min(Xn,cr.current)),Xn=Math.max(Xn,0),Xn}var Di=wt<=0,Ui=wt>=Yi,Wi=ht<=0,Dn=ht>=qt,Fr=Ie(Di,Ui,Wi,Dn),Ln=function(){return{x:oi?-ht:ht,y:wt}},fr=(0,it.useRef)(Ln()),Ur=(0,et.useEvent)(function(bn){if(vi){var Xn=(0,He.Z)((0,He.Z)({},Ln()),bn);(fr.current.x!==Xn.x||fr.current.y!==Xn.y)&&(vi(Xn),fr.current=Xn)}});function Cr(bn,Xn){var Kn=bn;Xn?((0,Pt.flushSync)(function(){Qe(Kn)}),Ur()):_n(Kn)}function Do(bn){var Xn=bn.currentTarget.scrollTop;Xn!==wt&&_n(Xn),wn==null||wn(bn),Ur()}var so=function(Xn){var Kn=Xn,Ei=qt?qt-Pr.width:0;return Kn=Math.max(Kn,0),Kn=Math.min(Kn,Ei),Kn},yr=(0,et.useEvent)(function(bn,Xn){Xn?((0,Pt.flushSync)(function(){Qe(function(Kn){var Ei=Kn+(oi?-bn:bn);return so(Ei)})}),Ur()):_n(function(Kn){var Ei=Kn+bn;return Ei})}),gr=Ge(ti,Di,Ui,Wi,Dn,!!qt,yr),hr=(0,$e.Z)(gr,2),Gr=hr[0],Oi=hr[1];Mt(ti,Zn,function(bn,Xn,Kn,Ei){var vr=Ei;return Fr(bn,Xn,Kn)?!1:!vr||!vr._virtualHandled?(vr&&(vr._virtualHandled=!0),Gr({preventDefault:function(){},deltaX:bn?Xn:0,deltaY:bn?0:Xn}),!0):!1}),Re($n,Zn,function(bn){_n(function(Xn){return Xn+bn})}),(0,Ot.Z)(function(){function bn(Kn){var Ei=Di&&Kn.detail<0,vr=Ui&&Kn.detail>0;ti&&!Ei&&!vr&&Kn.preventDefault()}var Xn=Zn.current;return Xn.addEventListener("wheel",Gr,{passive:!1}),Xn.addEventListener("DOMMouseScroll",Oi,{passive:!0}),Xn.addEventListener("MozMousePixelScroll",bn,{passive:!1}),function(){Xn.removeEventListener("wheel",Gr),Xn.removeEventListener("DOMMouseScroll",Oi),Xn.removeEventListener("MozMousePixelScroll",bn)}},[ti,Di,Ui]),(0,Ot.Z)(function(){if(qt){var bn=so(ht);Qe(bn),Ur({x:bn})}},[Pr.width,qt]);var _e=function(){var Xn,Kn;(Xn=Cn.current)===null||Xn===void 0||Xn.delayHidden(),(Kn=di.current)===null||Kn===void 0||Kn.delayHidden()},yt=yn(Zn,Qn,sr,At,zr,function(){return $r(!0)},_n,_e);it.useImperativeHandle(we,function(){return{nativeElement:Jt.current,getScrollInfo:Ln,scrollTo:function(Xn){function Kn(Ei){return Ei&&(0,Oe.Z)(Ei)==="object"&&("left"in Ei||"top"in Ei)}Kn(Xn)?(Xn.left!==void 0&&Qe(so(Xn.left)),yt(Xn.top)):yt(Xn)}}}),(0,Ot.Z)(function(){if(ei){var bn=Qn.slice(Mi,ji+1);ei(bn,Qn)}},[Mi,ji,Qn]);var Bt=Ke(Qn,zr,sr,At),ln=Vi==null?void 0:Vi({start:Mi,end:ji,virtual:$n,offsetX:ht,offsetY:lr,rtl:oi,getSize:Bt}),jn=ce(Qn,Mi,ji,qt,ht,Co,dt,Un),ri=null;st&&(ri=(0,He.Z)((0,Rt.Z)({},We?"height":"maxHeight",st),Tn),ti&&(ri.overflowY="hidden",qt&&(ri.overflowX="hidden"),Fn&&(ri.pointerEvents="none")));var tn={};return oi&&(tn.dir="rtl"),it.createElement("div",(0,ye.Z)({ref:Jt,style:(0,He.Z)((0,He.Z)({},Ct),{},{position:"relative"}),className:fn},tn,Yr),it.createElement(Et.Z,{onResize:br},it.createElement(qn,{className:"".concat(ke,"-holder"),style:ri,ref:Zn,onScroll:Do,onMouseEnter:_e},it.createElement(te,{prefixCls:ke,height:Pi,offsetX:ht,offsetY:lr,scrollWidth:qt,onInnerResize:$r,ref:an,innerProps:Li,rtl:oi,extra:ln},jn))),$n&&Pi>st&&it.createElement(Nt,{ref:Cn,prefixCls:ke,scrollOffset:wt,scrollRange:Pi,rtl:oi,onScroll:Cr,onStartMove:ct,onStopMove:sn,spinSize:ir,containerSize:Pr.height,style:zi==null?void 0:zi.verticalScrollBar,thumbStyle:zi==null?void 0:zi.verticalScrollBarThumb,showScrollBar:rr}),$n&&qt>Pr.width&&it.createElement(Nt,{ref:di,prefixCls:ke,scrollOffset:ht,scrollRange:qt,rtl:oi,onScroll:Cr,onStartMove:ct,onStopMove:sn,spinSize:Ki,containerSize:Pr.width,horizontal:!0,style:zi==null?void 0:zi.horizontalScrollBar,thumbStyle:zi==null?void 0:zi.horizontalScrollBarThumb,showScrollBar:rr}))}var Gn=it.forwardRef(mt);Gn.displayName="List";var xn=Gn,tt=xn},25510:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoEBYICQYGgwB6hQACWPcLoGGZQICgQFAgKBAV2MgUCsOxk7kXfgwJBgaBAUCAosEcoEIBljzA6hhkUCAoEBYICQYGdTIEALDuZe9H3oEBQICgQFAgK7BEKBGDZI4yOYQYFggJBgaBAUGAnUyAAy07mXvQ9KBAUCAoEBYICe4QCAVj2CKNjmEGBoEBQICgQFNjJFAjAspO5F30PCgQFggJBgaDAHqFAAJY9wugYZlAgKBAUCAoEBXYyBQKw7GTuRd+DAkGBoEBQICiwRygQgGWPMDqGGRQ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aCvo3IQUksMXWqHfutb9huu32gPwHcaA6sm79l56UXX7a777orrLjGTxhnv/7VGbbFVlva6EVG2+tz2J3TFwvCh/iYESPGBBdReHzWXFtkLOf99OlsgNTzzzxvvzj3ZPvhKT+y+/5yv7340qthN82c2XNtypQlgmVz3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9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po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn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lJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Rn,Mn,ve){"use strict";Rn.exports=ve.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5Y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82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Rn,Mn,ve){"use strict";ve.d(Mn,{Z:function(){return Tt}});const ye=Et=>typeof Et=="object"&&Et!=null&&Et.nodeType===1,Oe=(Et,et)=>(!et||Et!=="hidden")&&Et!=="visible"&&Et!=="clip",He=(Et,et)=>{if(Et.clientHeight<Et.scrollHeight||Et.clientWidth<Et.scrollWidth){const Ot=getComputedStyle(Et,null);return Oe(Ot.overflowY,et)||Oe(Ot.overflowX,et)||(it=>{const Pt=(Me=>{if(!Me.ownerDocument||!Me.ownerDocument.defaultView)return null;try{return Me.ownerDocument.defaultView.frameElement}catch(te){return null}})(it);return!!Pt&&(Pt.clientHeight<it.scrollHeight||Pt.clientWidth<it.scrollWidth)})(Et)}return!1},Rt=(Et,et,Ot,it,Pt,Me,te,ne)=>Me<Et&&te>et||Me>Et&&te<et?0:Me<=Et&&ne<=Ot||te>=et&&ne>=Ot?Me-Et-it:te>et&&ne<Ot||Me<Et&&ne>Ot?te-et+Pt:0,$e=Et=>{const et=Et.parentElement;return et==null?Et.getRootNode().host||null:et},qe=(Et,et)=>{var Ot,it,Pt,Me;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:ce,boundary:se,skipOverflowHiddenElements:ge}=et,me=typeof se=="function"?se:mn=>mn!==se;if(!ye(Et))throw new TypeError("Invalid target");const Ce=document.scrollingElement||document.documentElement,Fe=[];let Pe=Et;for(;ye(Pe)&&me(Pe);){if(Pe=$e(Pe),Pe===Ce){Fe.push(Pe);break}Pe!=null&&Pe===document.body&&He(Pe)&&!He(document.documentElement)||Pe!=null&&He(Pe,ge)&&Fe.push(Pe)}const Ie=(it=(Ot=window.visualViewport)==null?void 0:Ot.width)!=null?it:innerWidth,Ge=(Me=(Pt=window.visualViewport)==null?void 0:Pt.height)!=null?Me:innerHeight,{scrollX:Ke,scrollY:Ye}=window,{height:pt,width:Je,top:kt,right:Xe,bottom:Wt,left:zt}=Et.getBoundingClientRect(),{top:jt,right:Mt,bottom:Ut,left:ft}=(mn=>{const Nt=window.getComputedStyle(mn);return{top:parseFloat(Nt.scrollMarginTop)||0,right:parseFloat(Nt.scrollMarginRight)||0,bottom:parseFloat(Nt.scrollMarginBottom)||0,left:parseFloat(Nt.scrollMarginLeft)||0}})(Et);let Re=ne==="start"||ne==="nearest"?kt-jt:ne==="end"?Wt+Ut:kt+pt/2-jt+Ut,Lt=ce==="center"?zt+Je/2-ft+Mt:ce==="end"?Xe+Mt:zt-ft;const yn=[];for(let mn=0;mn<Fe.length;mn++){const Nt=Fe[mn],{height:en,width:nn,top:On,right:dn,bottom:Tn,left:mt}=Nt.getBoundingClientRect();if(te==="if-needed"&&kt>=0&&zt>=0&&Wt<=Ge&&Xe<=Ie&&(Nt===Ce&&!He(Nt)||kt>=On&&Wt<=Tn&&zt>=mt&&Xe<=dn))return yn;const Gn=getComputedStyle(Nt),xn=parseInt(Gn.borderLeftWidth,10),tt=parseInt(Gn.borderTopWidth,10),Ee=parseInt(Gn.borderRightWidth,10),we=parseInt(Gn.borderBottomWidth,10);let Be=0,ke=0;const Se="offsetWidth"in Nt?Nt.offsetWidth-Nt.clientWidth-xn-Ee:0,st="offsetHeight"in Nt?Nt.offsetHeight-Nt.clientHeight-tt-we:0,At="offsetWidth"in Nt?Nt.offsetWidth===0?0:nn/Nt.offsetWidth:0,Ve="offsetHeight"in Nt?Nt.offsetHeight===0?0:en/Nt.offsetHeight:0;if(Ce===Nt)Be=ne==="start"?Re:ne==="end"?Re-Ge:ne==="nearest"?Rt(Ye,Ye+Ge,Ge,tt,we,Ye+Re,Ye+Re+pt,pt):Re-Ge/2,ke=ce==="start"?Lt:ce==="center"?Lt-Ie/2:ce==="end"?Lt-Ie:Rt(Ke,Ke+Ie,Ie,xn,Ee,Ke+Lt,Ke+Lt+Je,Je),Be=Math.max(0,Be+Ye),ke=Math.max(0,ke+Ke);else{Be=ne==="start"?Re-On-tt:ne==="end"?Re-Tn+we+st:ne==="nearest"?Rt(On,Tn,en,tt,we+st,Re,Re+pt,pt):Re-(On+en/2)+st/2,ke=ce==="start"?Lt-mt-xn:ce==="center"?Lt-(mt+nn/2)+Se/2:ce==="end"?Lt-dn+Ee+Se:Rt(mt,dn,nn,xn,Ee+Se,Lt,Lt+Je,Je);const{scrollLeft:We,scrollTop:Ct}=Nt;Be=Ve===0?0:Math.max(0,Math.min(Ct+Be/Ve,Nt.scrollHeight-en/Ve+st)),ke=At===0?0:Math.max(0,Math.min(We+ke/At,Nt.scrollWidth-nn/At+Se)),Re+=Ct-Be,Lt+=We-ke}yn.push({el:Nt,top:Be,left:ke})}return yn},De=Et=>Et===!1?{block:"end",inline:"nearest"}:(et=>et===Object(et)&&Object.keys(et).length!==0)(Et)?Et:{block:"start",inline:"nearest"};function Tt(Et,et){if(!Et.isConnected||!(Pt=>{let Me=Pt;for(;Me&&Me.parentNode;){if(Me.parentNode===document)return!0;Me=Me.parentNode instanceof ShadowRoot?Me.parentNode.host:Me.parentNode}return!1})(Et))return;const Ot=(Pt=>{const Me=window.getComputedStyle(Pt);return{top:parseFloat(Me.scrollMarginTop)||0,right:parseFloat(Me.scrollMarginRight)||0,bottom:parseFloat(Me.scrollMarginBottom)||0,left:parseFloat(Me.scrollMarginLeft)||0}})(Et);if((Pt=>typeof Pt=="object"&&typeof Pt.behavior=="function")(et))return et.behavior(qe(Et,et));const it=typeof et=="boolean"||et==null?void 0:et.behavior;for(const{el:Pt,top:Me,left:te}of qe(Et,De(et))){const ne=Me-Ot.top+Ot.bottom,ce=te-Ot.left+Ot.right;Pt.scroll({top:ne,left:ce,behavior:it})}}}}]);
}());